Template:Anchor: Difference between revisions

27 bytes added ,  19:54, 2 September 2024
m
no edit summary
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
== Arguments ==
== Arguments ==


# (Optional) How to name the anchor.
# (Optional) How to name the anchor. '''Default:''' a URL-sanitized version of the contents.
#* '''Default''': a URL-sanitized version of the contents.
# What to anchor. This is transcluded as-is.
# What to anchor.


== Example ==
== Example ==
Line 13: Line 12:


><includeonly
><includeonly
><span id={{#anchorencode:{{{1}}}}}>{{{2|{{{1}}}}}}</span>&nbsp;[[#{{#anchorencode:{{{1}}}}}|#]]</includeonly>
><span id={{anchorencode:{{{1}}}}}>{{{2|{{{1}}}}}}</span><sup>[[#{{anchorencode:{{{1}}}}}|#]]</sup></includeonly>