Note: parts of or the entire template might not be visible without values provided.
The template {{section link}} can be used to generate links to page sections, nicely formatted with the "§" character instead of the default "#".
Usage
Linking to a section on another page
To create a link to a section on another page, provide the page name and the section name as positional arguments:
{{section link|page name|section name}}
Examples:
{{section link|Repository|Branches}}→ Repository § Branches{{section link|Dev Wiki:Policy|Guidelines}}→ Dev Wiki:Policy § Guidelines
Linking to a section on the current page
To create a link to a section on the current page, leave the first positional argument (the page name) blank:
{{section link||section name}}
Examples:
{{section link||Usage}}→ § Usage
Linking to multiple sections
It is also possible to create links to multiple sections on a page by append additional section names after the first one:
{{section link|page name|section name 1|section name 2|...}}
Examples:
{{section link|Lua reference manual|boolean|string|number}}→ Lua reference manual §§ boolean, string, and number
TemplateData
This template can be used to generate one or more links to a sections of a wiki page, rendered with an appropriate section mark (§).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page name | 1 | The name of the page to link to. If left empty, the template creates a link to the current page. | Page name | suggested |
| Section name 1 | 2 | The name of the first section to link to. | Line | required |
| Section name 2 | 3 | The name of the second section to link to. | Line | optional |
| Section name 3 | 4 | The name of the third section to link to. | Line | optional |
| Section name 4 | 5 | The name of the fourth section to link to. | String | optional |
| Hide page name | nopage | If set to "yes", "y" or "true", the page name will not be displayed in the link text. | Boolean | optional |
| Keep underscores | keep-underscores | If set to "yes", "y" or "true", the template will not replace underscores with spaces in the page name and section names. | Boolean | optional |
| Displayed page name | display | If this parameter is set, the entered text will be displayed instead of the page name. | Line | optional |