Template:Anchor: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<span id="{{{1}}}">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}|}}</span><noinclude> ==Use== Adds an anchor to a line of text. ==Syntax== <pre>{{Anchor|text2anchor|optDisplayText}}</pre>...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span id="{{{1}}}">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}|}}</span><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>


[[Category:Templates|Anchor]]</noinclude>
produces...
 
{{anchor|booga}}
 
[[Category:Templates|Anchor]]
</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