plugin:anchor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:anchor [2019-10-25 10:17] – Dr-Yukon | plugin:anchor [2024-02-11 03:39] (current) – zioth | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : elifenton@this_is_not_a_real_email.fake | email : elifenton@this_is_not_a_real_email.fake | ||
type : syntax | type : syntax | ||
- | lastupdate : 2018-12-20 | + | lastupdate : 2024-02-10 |
- | compatible : 2010-11-07, 2011-05-25, Angua, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Frusterick Manners, Greebo | + | compatible : 2010-11-07, 2011-05-25, Angua, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum, Kaos |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : anchor, links, sample, bookmark | + | tags : anchor, bookmark, links |
downloadurl: | downloadurl: | ||
Line 20: | Line 20: | ||
---- | ---- | ||
- | Normally, | + | DokuWiki allows |
- | This plugin is also a useful sample, if you' | + | This plugin is extremely simple, so it's a good place to start if you' |
===== Installation ===== | ===== Installation ===== | ||
Line 31: | Line 31: | ||
===== Examples/ | ===== Examples/ | ||
- | Here's how you create | + | This syntax creates |
< | < | ||
Line 37: | Line 37: | ||
</ | </ | ||
- | The anchor_name | + | **anchor_name** is an arbitrary |
- | The text part is optional, and, for the most part, not very useful. It lets you wrap the anchor | + | **text**, if provided, is a block of text that the anchor will wrap in HTML. It' |
+ | |||
+ | < | ||
+ | {{anchor: | ||
+ | </ | ||
To link to an anchor from within DokuWiki: | To link to an anchor from within DokuWiki: | ||
+ | |||
+ | Use standard DokuWiki syntax to link to the new anchor: | ||
< | < | ||
Line 55: | Line 61: | ||
==== Changelog ==== | ==== Changelog ==== | ||
- | * 2017-06-20 | + | * 2017-06-20 |
- | * 2013-05-23 | + | * 2013-05-23 |
===== Discussion ===== | ===== Discussion ===== | ||
+ | ==== Gratuitous newline ==== | ||
+ | |||
+ | The plugin inserts an unwanted newline after the anchor tag. But I want to create a glossary page with anchored entries of the form:\\ | ||
+ | **term** -- definition | ||
+ | |||
+ | It looks like the [[: | ||
==== Case sensitivity is not compatible with DW ==== | ==== Case sensitivity is not compatible with DW ==== | ||
While using anchor I found that you have to type the anchor_name in all lowercase letters to be compatible with the DW internal link mechanics, which converts the letters of a link to lowercase. | While using anchor I found that you have to type the anchor_name in all lowercase letters to be compatible with the DW internal link mechanics, which converts the letters of a link to lowercase. | ||
Line 68: | Line 80: | ||
If I use this internal link, DW jumps to the top of the page.\\ | If I use this internal link, DW jumps to the top of the page.\\ | ||
Isn't it possible to jump to the part of the page, where the anchor is defined?< | Isn't it possible to jump to the part of the page, where the anchor is defined?< | ||
+ | |||
+ | Answer: It's possible that your DokuWiki template includes code that automatically scrolls to the top of the page after page load. You can confirm this by creating a link to a Doku section header and seeing if it behaves the same way. | ||
==== / | ==== / | ||
Line 83: | Line 97: | ||
//ViForEver 20140207// | //ViForEver 20140207// | ||
+ | ==== Needs the colon even with no text ==== | ||
+ | Note that even if you don't provide the optional text for the anchor you still need the colon following the anchor name, otherwise the plugin will error. | ||
+ | UPDATE: This has been fixed (2023-08-14) | ||
- | Hello, | + | Very handy little plugin! |
- | in my private wiki __it does not work__. | + | // |
- | How i have to create an anchor and an anchor-goal? | + | |
- | Please give me an example! | + | |
===== Old Discussion ===== | ===== Old Discussion ===== |
plugin/anchor.1571991474.txt.gz · Last modified: 2019-10-25 10:17 by Dr-Yukon