Template:Anchor

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(from http://en.wikipedia.org/wiki/Template:Anchor)
 
(fix by adding close block with </noinclude> and cat it, add usage)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
<!--
+
<!-- --><includeonly><span id="{{{1}}}"></span></includeonly><noinclude>
-->{{#if: {{{1|}}}|<span id="{{anchorencode:{{{1|}}}}}"></span><!--
+
[[category:Link and Navigation templates|{{PAGENAME}}]]
-->{{#if: {{{2|}}}|<span id="{{anchorencode:{{{2|}}}}}"></span><!--
+
 
-->{{#if: {{{3|}}}|<span id="{{anchorencode:{{{3|}}}}}"></span><!--
+
;This template is used to preserve a Page's section title for cross linking.
-->{{#if: {{{4|}}}|<span id="{{anchorencode:{{{4|}}}}}"></span><!--
+
 
-->{{#if: {{{5|}}}|<span id="{{anchorencode:{{{5|}}}}}"></span><!--
+
:It's code is invisible and will not appear even on the page which contains it.
-->{{#if: {{{6|}}}|<span id="{{anchorencode:{{{6|}}}}}"></span><!--
+
 
-->{{#if: {{{7|}}}|<span id="{{anchorencode:{{{7|}}}}}"></span><!--
+
Use when changing a section title on a page to another to preserve the ability of Wikimarkup linking to the section title line. It should contain exactly the same character string as the title line<!--, but may also contain aliases 
-->{{#if: {{{8|}}}|<span id="{{anchorencode:{{{8|}}}}}"></span><!--
+
-->
-->{{#if: {{{9|}}}|<span id="{{anchorencode:{{{9|}}}}}"></span><!--
+
* A more complicated version {{Wp|Template:Anchor}} may be imported from many Wikimedia Foundation Projects pages (such as en.Wikipedia's, which allows ten parameters for aliasing titles) which would allow a section to be referenced aliases for the section name, perhaps for example, an English versus US Spelling difference.
-->{{#if: {{{10|}}}|<span id="{{anchorencode:{{{10|}}}}}"></span><!--
+
[[Category:Self-documenting templates|{{PAGENAME}}]]
-->{{#if: {{{11|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 10.</span><!--
+
</noinclude>
-->}} }} }} }} }} }} }} }} }} }} }}<noinclude>
+

Latest revision as of 14:47, 17 June 2013


This template is used to preserve a Page's section title for cross linking.
It's code is invisible and will not appear even on the page which contains it.

Use when changing a section title on a page to another to preserve the ability of Wikimarkup linking to the section title line. It should contain exactly the same character string as the title line

  • A more complicated version Template:Anchor may be imported from many Wikimedia Foundation Projects pages (such as en.Wikipedia's, which allows ten parameters for aliasing titles) which would allow a section to be referenced aliases for the section name, perhaps for example, an English versus US Spelling difference.
Personal tools