Difference between revisions of "Template:Anchor/doc"
(copied from vmc wiki) |
|||
Line 1: | Line 1: | ||
− | |||
This template can be used to allow linking to a section of an article without the creation of headers. | This template can be used to allow linking to a section of an article without the creation of headers. | ||
Line 6: | Line 5: | ||
If <code><nowiki>{{anchor|Example}}</nowiki></code> is placed on the next line, then [[Template:Anchor#Example]] will link to that line. | If <code><nowiki>{{anchor|Example}}</nowiki></code> is placed on the next line, then [[Template:Anchor#Example]] will link to that line. | ||
− | {{ | + | <code><nowiki>{{anchor|Example}}</nowiki></code>Example anchor sentence. |
:{{anchor|Example}}Example anchor sentence. | :{{anchor|Example}}Example anchor sentence. | ||
Line 12: | Line 11: | ||
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. | 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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 20:21, 7 April 2020
This template can be used to allow linking to a section of an article without the creation of headers.
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 it's 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.