Difference between revisions of "Template:Anchor"
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- | <!-- | ||
-->{{#if: {{{1|}}}|<span id="{{anchorencode:{{{1|}}}}}"></span><!-- | -->{{#if: {{{1|}}}|<span id="{{anchorencode:{{{1|}}}}}"></span><!-- | ||
Line 28: | Line 11: | ||
-->{{#if: {{{10|}}}|<span id="{{anchorencode:{{{10|}}}}}"></span><!-- | -->{{#if: {{{10|}}}|<span id="{{anchorencode:{{{10|}}}}}"></span><!-- | ||
-->{{#if: {{{11|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 10.</span><!-- | -->{{#if: {{{11|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 10.</span><!-- | ||
− | -->}} }} }} }} }} }} }} }} }} }} }}<noinclude> | + | -->}}}}}}}}}}}}}}}}}}}}}}<noinclude> |
− | + | {{Wikipedia doc}} | |
− | + | {{Doc begin}} | |
* <code><nowiki>{{anchor|foo|bar|baz}}</nowiki></code> will create HTML page anchors for [[#foo]], [[#bar]], and [[#baz]] (supports up to 10 anchors). | * <code><nowiki>{{anchor|foo|bar|baz}}</nowiki></code> will create HTML page anchors for [[#foo]], [[#bar]], and [[#baz]] (supports up to 10 anchors). | ||
* Use this underneath a section header if you change its name to preserve any redirects that use anchors. | * Use this underneath a section header if you change its name to preserve any redirects that use anchors. | ||
[[Category:Formatting templates|Anchor]] | [[Category:Formatting templates|Anchor]] | ||
</noinclude> | </noinclude> |
Latest revision as of 02:13, 23 October 2014
Documentation for this template is available at Template:Anchor on Wikipedia. |