Template:Anchor: Difference between revisions
(Created page with "<noinclude> Creates a “fancy” anchor (HTML attribute that lets you link to a specific element on a page) together with a clickable link == Arguments == # (Optional) How to name the anchor. #* '''Default''': a URL-sanitized version of the contents. # What to anchor. == Example == {{anchor|example}} </noinclude><includeonly ><span id="{{#anchorname:{{{1}}}}}">{{{2|{{{1}}}}}}</span></includeonly>") |
No edit summary |
||
Line 10: | Line 10: | ||
== Example == | == Example == | ||
{{anchor|example}} | {{anchor|example}}</noinclude | ||
><includeonly | |||
><span id= | ><span id={{#anchorencode:{{{1}}}}}>{{{2|{{{1}}}}}}</span> <a href="#{{#anchorencode:{{{1}}}}}">#</a></includeonly> |
Revision as of 19:43, 2 September 2024
Creates a “fancy” anchor (HTML attribute that lets you link to a specific element on a page) together with a clickable link
Arguments
- (Optional) How to name the anchor.
- Default: a URL-sanitized version of the contents.
- What to anchor.
Example
example <a href="#{{#anchorencode:example}}">#</a>