Minecraft Wiki
mNo edit summary
(CSS class)
Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<!--
 
<includeonly>{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<!--
-->{{#if:{{{2|}}}|<span id="{{{2|}}}"></span>}}<!--
+
-->{{#if:{{{2|}}}|<span class="anchor" id="{{{2|}}}"></span>}}<!--
-->{{#if:{{{3|}}}|<span id="{{{3|}}}"></span>}}<!--
+
-->{{#if:{{{3|}}}|<span class="anchor" id="{{{3|}}}"></span>}}<!--
-->{{#if:{{{4|}}}|<span id="{{{4|}}}"></span>}}<!--
+
-->{{#if:{{{4|}}}|<span class="anchor" id="{{{4|}}}"></span>}}<!--
-->{{#if:{{{5|}}}|<span id="{{{5|}}}"></span>}}<!--
+
-->{{#if:{{{5|}}}|<span class="anchor" id="{{{5|}}}"></span>}}<!--
-->{{#if:{{{6|}}}|<span id="{{{6|}}}"></span>}}<!--
+
-->{{#if:{{{6|}}}|<span class="anchor" id="{{{6|}}}"></span>}}<!--
-->{{#if:{{{7|}}}|<span id="{{{7|}}}"></span>}}<!--
+
-->{{#if:{{{7|}}}|<span class="anchor" id="{{{7|}}}"></span>}}<!--
-->{{#if:{{{8|}}}|<span id="{{{8|}}}"></span>}}<!--
+
-->{{#if:{{{8|}}}|<span class="anchor" id="{{{8|}}}"></span>}}<!--
-->{{#if:{{{9|}}}|<span id="{{{9|}}}"></span>}}<!--
+
-->{{#if:{{{9|}}}|<span class="anchor" id="{{{9|}}}"></span>}}<!--
-->{{#if:{{{10|}}}|<span id="{{{10|}}}"></span>}}<!--
+
-->{{#if:{{{10|}}}|<span class="anchor" id="{{{10|}}}"></span>}}<!--
-->{{#if:{{{11|}}}|<span id="{{{11|}}}"></span>}}<!--
+
-->{{#if:{{{11|}}}|<span class="anchor" id="{{{11|}}}"></span>}}<!--
-->{{#if:{{{12|}}}|<span id="{{{12|}}}"></span>}}<!--
+
-->{{#if:{{{12|}}}|<span class="anchor" id="{{{12|}}}"></span>}}<!--
-->{{#if:{{{13|}}}|<span id="{{{13|}}}"></span>}}<!--
+
-->{{#if:{{{13|}}}|<span class="anchor" id="{{{13|}}}"></span>}}<!--
-->{{#if:{{{14|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 13.</span>}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
-->{{#if:{{{14|}}}|<span class="error">[[Template:Anchor]]: too many anchors, maximum is 13.</span>}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 16:31, 30 November 2020

[view | edit | history | purge]Documentation

This template can be used to allow linking to a section of an article without the creation of headers. Common use cases include use within tables and after renaming a section.

Usage

If {{anchor|Example}} is placed on the next line, then Template:Anchor#Example will link to that line.

{{anchor|Example}}Example anchor sentence.

Example anchor sentence.

This template supports multiple parameters as well. So {{anchor|Example|Anchor|Test}} will create anchors "Example", "Anchor", and "Test" at the place of its usage.

Only thirteen anchors are supported in one call of the template, if you need any more, you will need to call a second instance of the template.

See also

[view | edit | history | purge]The above documentation is transcluded from Template:Anchor/doc.