Difference between revisions of "Template:Anchor"

From SoftMC-Wiki
Jump to: navigation, search
(OK)
m
Line 1: Line 1:
<includeonly><!-- {{#tag:span|{{{1}}}|id={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}} --><span id={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}>{{{1}}}</span></includeonly><!--  
+
<includeonly><span id={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}>{{{1}}}</span></includeonly><!--  
  
  

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
References
Go to #output or #myAnchor.

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.