Difference between revisions of "Template:Anchor"
m (Draft) |
(OK) |
||
Line 6: | Line 6: | ||
{{Template | {{Template | ||
|description= | |description= | ||
− | Adds an html anchor to the page, which can be by [[# | + | Adds an html anchor to the page, which can be referenced by [[#anchor]]. |
|template=<nowiki>{{Anchor|text|anchor}}</nowiki> | |template=<nowiki>{{Anchor|text|anchor}}</nowiki> | ||
Line 17: | Line 17: | ||
|examples= | |examples= | ||
− | <pre>{{Anchor|Any Text with ''style''|myAnchor}}</pre> | + | ;Input |
− | {{Anchor|Any Text with ''style''|myAnchor}} | + | <pre> |
+ | * The {{Anchor|output}} is described below. | ||
+ | * {{Anchor|Any Text with ''style''|myAnchor}} | ||
+ | </pre> | ||
+ | ;Output | ||
+ | * The {{Anchor|output}} is described below. | ||
+ | *{{Anchor|Any Text with ''style''|myAnchor}} | ||
+ | ;References | ||
+ | : Go to [[#output]] or [[#myAnchor]]. | ||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 16:03, 20 October 2010
Adds an 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''|myAnchor}}
- Output
- The output is described below.
- Any Text with style
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.