Template:Anchor: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
Minip (talk | contribs)
Added a template.
 
No edit summary
 
Line 12: Line 12:
-->{{#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>
Please see [[wikipedia:Template:Anchor/doc|Template:Anchor/doc]] on [[wikipedia:Main Page|Wikipedia]] for full documentation on this template.
{{Template doc}}
 
* <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.
[[Category:Formatting templates|Anchor]]
</noinclude>
</noinclude>

Latest revision as of 23:39, 27 August 2020

Note: portions of the template sample may not be visible without values provided. This is normal.

Documentation for Anchor

Please see Template:Anchor/doc on Wikipedia for full documentation on this template.

  • {{anchor|foo|bar|baz}} 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.
This documentation is transcluded from Template:Anchor/doc.