Template:Anchor: Difference between revisions
Content added Content deleted
(Created page with '<span id="{{{1}}}">{{{#if: {{{2|}}}|{{{2|}}}|}}}</span><noinclude>Adds a custom HTML anchor anywhere on a page (except probably in a span tag). Example: <nowiki>{{anchor|link|te…') |
m (Extra characters) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<span id="{{{1}}}"> |
<span id="{{anchorencode:{{{1}}}}}">{{#if: {{{2|}}}|{{{2}}}|}}</span><noinclude>Adds a custom HTML anchor anywhere on a page (except probably in a span tag). Example: |
||
<nowiki>{{anchor|link|text}}</nowiki> |
<nowiki>{{anchor|link|text}}</nowiki> |
Latest revision as of 18:41, 25 September 2009
Adds a custom HTML anchor anywhere on a page (except probably in a span tag). Example:
{{anchor|link|text}}
will create an anchor accessible by appending "#link" to the end of the URL with the optional text "text" showing in its place.