dev
Documentation icon Template documentation
[view] [edit] [history] [purge]

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:

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:

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 (§).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Page name1

The name of the page to link to. If left empty, the template creates a link to the current page.

Page namesuggested
Section name 12

The name of the first section to link to.

Linerequired
Section name 23

The name of the second section to link to.

Lineoptional
Section name 34

The name of the third section to link to.

Lineoptional
Section name 45

The name of the fourth section to link to.

Stringoptional
Hide page namenopage

If set to "yes", "y" or "true", the page name will not be displayed in the link text.

Booleanoptional
Keep underscoreskeep-underscores

If set to "yes", "y" or "true", the template will not replace underscores with spaces in the page name and section names.

Booleanoptional
Displayed page namedisplay

If this parameter is set, the entered text will be displayed instead of the page name.

Lineoptional