plugin:anchor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:anchor [2023-06-29 23:00] – [Needs the colon even with no text] 2403:5801:d88c:aa:81ec:826c:d95e:ea38 | 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 : 2021-10-09 | + | lastupdate : 2024-02-10 |
- | compatible : 2010-11-07, 2011-05-25, Angua, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Frusterick Manners, Greebo, Hogfather | + | 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 | ||
Line 39: | Line 39: | ||
**anchor_name** is an arbitrary name of your choosing. It must begin with a letter, and must be lowercase. | **anchor_name** is an arbitrary name of your choosing. It must begin with a letter, and must be lowercase. | ||
- | **text**, if provided, is a block of text that the anchor will wrap in HTML. It's not all that useful, unless your template adds space or other decoration to empty anchor tags. | + | **text**, if provided, is a block of text that the anchor will wrap in HTML. It's not all that useful, unless your template adds space or other decoration to empty anchor tags. It's also optional, so this is also valid: |
+ | |||
+ | < | ||
+ | {{anchor: | ||
+ | </ | ||
To link to an anchor from within DokuWiki: | To link to an anchor from within DokuWiki: | ||
Line 95: | Line 99: | ||
==== Needs the colon even with no text ==== | ==== 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. | 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) | ||
Very handy little plugin! | Very handy little plugin! |
plugin/anchor.1688072411.txt.gz · Last modified: 2023-06-29 23:00 by 2403:5801:d88c:aa:81ec:826c:d95e:ea38