Difference between revisions of "Template:Anchor"

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

Revision as of 15:58, 20 October 2010

Adds an html anchor to the page, which can be by #myAnchor.

Template

{{Anchor|text|anchor}}

Parameters

text
Display text
anchor (optional)
Anchor string. If missing, text is used as anchor string.

Examples

{{Anchor|Any Text with ''style''|myAnchor}}

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.