Template:Anchor: Difference between revisions
Jump to navigation
Jump to search
m Protected "Template:Anchor" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
m Replaced content with "<span id="{{{1}}}" class="wgl-anchor"></span><noinclude>{{AnchorText/doc}}</noinclude>" Tag: Replaced |
||
| Line 1: | Line 1: | ||
<span id="{{{1}}}" class="wgl-anchor"></span><noinclude>{{AnchorText/doc}}</noinclude> | |||
Latest revision as of 07:59, 2 June 2020
Template documentation
This documentation is transcluded from Template:Anchor/doc. [edit] [purge]
The templates {{Anchor}} and {{AnchorText}} create anchors on a page. These can be used as the target for links in the format [[Page name#Anchor code]]. They are used as follows:
| Code | Visible result | Link with |
|---|---|---|
| {{Anchor|ref}} | none | #ref |
| {{Anchor text|text}} | text | #text |
| {{Anchor text|ref|text}} | text | #ref |
{{AnchorText|Text}}