Difference between revisions of "Template:Anchor"

From geofiction
Jump to navigation Jump to search
(Created page with "<includeonly><div id="{{{1|}}}">{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</div></includeonly><noinclude> ==Tests== <pre>text in front {{Anchor}} text behind</pre> text in front {{An...")
 
m
Line 1: Line 1:
 
<includeonly><div id="{{{1|}}}">{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</div></includeonly><noinclude>
 
<includeonly><div id="{{{1|}}}">{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</div></includeonly><noinclude>
  
==Tests==
+
==Test of anchors==
 
<pre>text in front {{Anchor}} text behind</pre>
 
<pre>text in front {{Anchor}} text behind</pre>
 
text in front {{Anchor}} text behind
 
text in front {{Anchor}} text behind
Line 13: Line 13:
 
<pre>text in front <br>'''{{Anchor|test3|test3b}}''' text behind</pre>
 
<pre>text in front <br>'''{{Anchor|test3|test3b}}''' text behind</pre>
 
text in front <br>'''{{Anchor|test3|test3b}}''' text behind
 
text in front <br>'''{{Anchor|test3|test3b}}''' text behind
 +
 +
==Test of links==
 +
*[[{{PAGENAME}}#test1|test1]]
 +
*[[{{PAGENAME}}#test2|test2]]
 +
*[[{{PAGENAME}}#test3|test3]]
  
 
[[Category:Formatting and function templates]]
 
[[Category:Formatting and function templates]]
 
</noinclude>
 
</noinclude>

Revision as of 02:51, 3 January 2023


Test of anchors

text in front {{Anchor}} text behind

text in front

text behind

text in front {{Anchor|test1}} text behind

text in front

test1

text behind

text in front {{Anchor|test2|test2b}} text behind

text in front

test2b

text behind

text in front <br>'''{{Anchor|test3|test3b}}''' text behind

text in front

test3b

text behind

Test of links