Difference between revisions of "Template:Anchor"

From Starfleet Commander
Jump to navigationJump to search
m
Line 1: Line 1:
 
<span id="{{{1|<span class="error">Missing reqired parameter</span>}}}">{{{2|}}}</span><noinclude>
 
<span id="{{{1|<span class="error">Missing reqired parameter</span>}}}">{{{2|}}}</span><noinclude>
==Functonality==
+
{{Documentation}}
Creates an [[Wikipedia:HTML element#Anchor|HTML anchor]].
 
 
 
This template is used for a single tag.
 
<nowiki>{{Anchor|id|Text to display}}</nowiki>
 
 
 
==Usage==
 
{{tlx|section|parameter1|parameter2}}
 
 
 
* '''parameter1''' &mdash; ''required''
 
*: This indicates the name of the HTML anchor
 
 
 
* '''parameter2''' &mdash; ''optional''
 
*: This creates text to display at the location of the template
 
 
 
In order to access this link anchor, use <nowiki>[[</nowiki>[[{{FULLPAGENAME}}#{{{1|parameter1}}}|examplepagename#parameter1]]<nowiki>]]</nowiki>
 
 
 
==Example==
 
<nowiki>{{Anchor|parameter1|parameter2}}</nowiki>
 
 
 
{{Anchor|parameter1|parameter2}}
 
 
 
 
 
}}
 
 
 
[[Category:Templates|{{PAGENAME}}]]
 
 
 
 
</noinclude>
 
</noinclude>

Revision as of 00:22, 20 September 2011

<span id="Missing reqired parameter"> Template:Documentation