Difference between revisions of "Template:Anchor"
From Starfleet Commander
Jump to navigationJump to searchm |
m |
||
Line 2: | Line 2: | ||
{{Doc-begin}} | {{Doc-begin}} | ||
__TOC__ | __TOC__ | ||
+ | {{Note}}When viewing this template it shows: <span id="<span style="color:red">Missing reqired parameter</span>"></span> it's not an error. | ||
==Functonality== | ==Functonality== | ||
Creates an [[Wikipedia:HTML element#Anchor|HTML anchor]]. | Creates an [[Wikipedia:HTML element#Anchor|HTML anchor]]. |
Latest revision as of 04:13, 20 September 2011
<span id="Missing reqired parameter">
Template documentation
Note: When viewing this template it shows: <span id="Missing reqired parameter"></span> it's not an error.
Functonality
Creates an HTML anchor.
This template is used to create a single tag or anchor.
{{Anchor|id|Text to display}}
Usage
{{Anchor|parameter1|parameter2}}
- parameter1 — required
- This indicates the name of the HTML anchor
- parameter2 — optional
- This creates text to display at the location of the template
In order to access this link anchor, use [[examplepagename#parameter1]]
Example
{{Anchor|parameter1|parameter2}}
parameter2
The above template can be edited by editors, and experiments can be done in this template's Sandbox and Testcases pages. Subpages of this template.