Difference between revisions of "Template:Anchor"
m (typo) |
(added {{anchorencode:}}) |
||
Line 1: | Line 1: | ||
− | <includeonly><span id={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}>{{{1}}}</span></includeonly><!-- | + | <includeonly><span id={{anchorencode:{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}>{{{1}}}</span></includeonly><!-- |
Line 20: | Line 20: | ||
<pre> | <pre> | ||
* The {{Anchor|output}} is described below. | * The {{Anchor|output}} is described below. | ||
− | * {{Anchor|Any Text with ''style''| | + | * {{Anchor|Any Text with ''style''|my Anchor}} |
</pre> | </pre> | ||
;Output | ;Output | ||
* The {{Anchor|output}} is described below. | * The {{Anchor|output}} is described below. | ||
− | *{{Anchor|Any Text with ''style''| | + | *{{Anchor|Any Text with ''style''|my Anchor}} |
;References | ;References | ||
− | : Go to [[#output]] or [[# | + | : Go to [[#output]] or [[#my_Anchor]]. |
}} | }} | ||
Revision as of 14:10, 7 November 2011
Adds a html anchor to the page, which can be referenced by #anchor.
Template
{{Anchor|text|anchor}}
Parameters
- text
- Display text
- anchor (optional)
- Anchor string. If missing, text is used as anchor string.
Examples
- Input
* The {{Anchor|output}} is described below. * {{Anchor|Any Text with ''style''|my Anchor}}
- Output
- The output is described below.
- Any Text with style
- References
- Go to #output or #my_Anchor.
For more examples refer to pages, which use this template: What links here.
Help:Templates describes general usage of templates, including treatment of special characters.
Long page simulation
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10