Template:Section: Difference between revisions
Appearance
Content deleted Content added
m Reverted edits by 8.225.195.254 to last version by Plastikspork (GLOO) |
mNo edit summary |
||
Line 5: | Line 5: | ||
==Functonality== |
==Functonality== |
||
Creates an [[HTML element#Anchor|HTML anchor]]. |
Creates an [[HTML element#Anchor|HTML anchor]]. |
||
Note: The template should be avoided, it is now only rarely used and the much more widely used [[Template:Anchor]] should be used instead. "<nowiki>{{Section|id123|Text to display}}</nowiki>" can be replaced with "<nowiki>{{Anchor|id123}}Text to display</nowiki>". |
|||
==Usage== |
==Usage== |
Revision as of 20:44, 8 April 2011
Template documentation
Functonality
Creates an HTML anchor.
Note: The template should be avoided, it is now only rarely used and the much more widely used Template:Anchor should be used instead. "{{Section|id123|Text to display}}" can be replaced with "{{Anchor|id123}}Text to display".
Usage
{{section|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
{{section|parameter1|parameter2}}
parameter2
See also
- {{Anchor}}