Template:AnchorText/doc

Revision as of 06:59, 6 November 2024 by BlackHawk (talk | contribs) (Created page with "{{Documentation}} The templates {{T|Anchor}} and {{T|AnchorText}} create anchors on a page. These can be used as the target for links in the format <nowiki>Page name#Anchor code</nowiki>. They are used as follows: {| class="wikitable" |+ !Code !Visible result !Link with |- |<nowiki>{{Anchor|ref}}</nowiki> |''none'' |#ref |- |<nowiki>{{AnchorText|text}}</nowiki> |text |#text |- |<nowiki>{{AnchorText|ref|text}}</nowiki> |text |#ref |} <pre> {{AnchorText|Text}} </pre>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:AnchorText.
It contains usage information, categories, and other content that is not part of the original template page.

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
{{AnchorText|text}} text #text
{{AnchorText|ref|text}} text #ref
{{AnchorText|Text}}