Template:Anchor: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<includeonly><span id="{{{1}}}">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}|}}</span></includeonly><noinclude>
<includeonly><span id="{{{1}}}" style="text-decoration:underline dotted slateblue; <!--font-size:1.1em;-->">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}|}}</span></includeonly><noinclude>
==Use==
==Use==
Adds an anchor to a line of text.
Adds an anchor to a line of text.
Line 5: Line 5:
==Syntax==
==Syntax==
<pre>{{Anchor|text2anchor|optDisplayText}}</pre>
<pre>{{Anchor|text2anchor|optDisplayText}}</pre>
==Example==
<pre>{{anchor|booga}}</pre>
produces...
{{anchor|booga}}


[[Category:Templates|Anchor]]
[[Category:Templates|Anchor]]
</noinclude>
</noinclude>

Latest revision as of 06:19, 24 September 2021

Use

Adds an anchor to a line of text.

Syntax

{{Anchor|text2anchor|optDisplayText}}

Example

{{anchor|booga}}

produces...

booga