Template:Anchor: Difference between revisions

From The Toaq Wiki
(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>")
 
mNo edit summary
 
(9 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 ==


{{anchor|example}}
{{anchor|example}}</noinclude


</noinclude><includeonly
><includeonly
><span id="{{#anchorname:{{{1}}}}}">{{{2|{{{1}}}}}}</span></includeonly>
><span id={{anchorencode:{{{1}}}}}>{{{2|{{{1}}}}}}</span><sup>[[#{{anchorencode:{{{1}}}}}|#]]</sup></includeonly>

Latest revision as of 19:54, 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

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

Example

example#