Template:Anchor: Difference between revisions

From The Battle for Wesnoth Wiki
Created page with "<noinclude>Creates an arbitrary anchor on a page that can be linked to from elsewhere. Usage: <nowiki>{{{Anchor|text}}} or {{{Anchor|id|text}}}</nowiki> In the first form, t..."
 
Fix example
Line 1: Line 1:
<noinclude>Creates an arbitrary anchor on a page that can be linked to from elsewhere.
<noinclude>Creates an arbitrary anchor on a page that can be linked to from elsewhere.


Usage: <nowiki>{{{Anchor|text}}} or {{{Anchor|id|text}}}</nowiki>
Usage: <nowiki>{{Anchor|text}} or {{Anchor|id|text}}</nowiki>


In the first form, the text itself is used as the ID for the anchor. In this case, it ''must not'' contain non-alphanumeric characters!</noinclude><includeonly><span id="{{{1}}}">{{{2|{{{1}}}}}}</span>
In the first form, the text itself is used as the ID for the anchor. In this case, it ''must not'' contain non-alphanumeric characters!</noinclude><includeonly><span id="{{{1}}}">{{{2|{{{1}}}}}}</span>

Revision as of 14:36, 21 February 2024

Creates an arbitrary anchor on a page that can be linked to from elsewhere.

Usage: {{Anchor|text}} or {{Anchor|id|text}}

In the first form, the text itself is used as the ID for the anchor. In this case, it must not contain non-alphanumeric characters!

This page was last edited on 21 February 2024, at 14:36.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.