Template:Anchor: Difference between revisions

From The Toaq Wiki
mNo edit summary
mNo edit summary
Line 12: Line 12:


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

Revision as of 19:49, 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  [[#{{#anchorencode:example}}|#]]