Difference between revisions of "Template:Anchor"

From Starfleet Commander
Jump to navigationJump to search
m
 
(2 intermediate revisions by the same user not shown)
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>
 +
{{Doc-begin}}
 +
__TOC__
 +
{{Note}}When viewing this template it shows: &lt;span id="<span style="color:red">Missing reqired parameter</span>">&lt;/span> it's not an error.
 
==Functonality==
 
==Functonality==
 
Creates an [[Wikipedia:HTML element#Anchor|HTML anchor]].
 
Creates an [[Wikipedia:HTML element#Anchor|HTML anchor]].
  
This template is used for a single tag.
+
This template is used to create a single tag or anchor.
 
  <nowiki>{{Anchor|id|Text to display}}</nowiki>
 
  <nowiki>{{Anchor|id|Text to display}}</nowiki>
  
 
==Usage==
 
==Usage==
{{tlx|section|parameter1|parameter2}}
+
<nowiki>{{Anchor|parameter1|parameter2}}</nowiki>
  
 
* '''parameter1''' &mdash; ''required''
 
* '''parameter1''' &mdash; ''required''
Line 21: Line 24:
  
 
{{Anchor|parameter1|parameter2}}
 
{{Anchor|parameter1|parameter2}}
 
 
}}
 
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
+
{{Doc-end}}
 
</noinclude>
 
</noinclude>

Latest revision as of 04:13, 20 September 2011

<span id="Missing reqired parameter">

Template Documentation Icon.png Template documentation

Light Bulb Icon.png 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}}

  • parameter1required
    This indicates the name of the HTML anchor
  • parameter2optional
    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