Template:Section link/doc: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "{{documentation subpage}} {{template shortcuts|slink}} {{lua|Module:Section link}} This template, {{tl|section link}}, or its shortcut, {{tl-r|slink}}, is used to generate a link to a certain section(s) of a local wiki page and render an appropriate w:section mark (§ or §§). For example, instead of: :<code><nowiki>Albert Einstein#Scientific career</nowiki></code> ...you can write: :<code><nowiki>{{section link|Albert Einstein|Scientific career}}</nowiki..." |
Forgot copyright attribution to Wikipedia (see w:Special:History/Template:Section link/doc) |
||
| Line 17: | Line 17: | ||
:<code><nowiki>{{section link|Albert Einstein#Scientific career}}</nowiki></code> |
:<code><nowiki>{{section link|Albert Einstein#Scientific career}}</nowiki></code> |
||
==TemplateData== |
|||
{{TemplateDataHeader}} |
|||
<templatedata> |
|||
{ |
|||
"description": "This template is used to generate a link to a certain section of a local wiki page and render an appropriate section mark (§). This template may generate consecutive links to several sections of the same page.", |
|||
"params": { |
|||
"1": { |
|||
"label": "Page name", |
|||
"description": "Name of the page to which the link must be created. Leave empty to link to the current page. Doing so causes no page name to appear.", |
|||
"type": "wiki-page-name", |
|||
"required": true |
|||
}, |
|||
"2": { |
|||
"label": "Section name 1", |
|||
"description": "Name of the (first) section to which the link must be created. This parameter is mandatory.", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"3": { |
|||
"label": "Section name 2", |
|||
"description": "This template can link to additional sections within one page. You can supply another section name in this field.", |
|||
"type": "string" |
|||
}, |
|||
"4": { |
|||
"label": "Section name 3", |
|||
"description": "This template can link to additional sections within one page. You can supply another section name in this field.", |
|||
"type": "string" |
|||
}, |
|||
"5": { |
|||
"label": "Section name 4", |
|||
"description": "This template can link to additional sections within one page. You can supply another section name in this field.", |
|||
"type": "string" |
|||
}, |
|||
"nopage": { |
|||
"label": "Hide page name", |
|||
"description": "If set to \"yes\", \"y\" or \"true\", hides the page name (only section names are displayed).", |
|||
"type": "boolean" |
|||
}, |
|||
"keep-underscores": { |
|||
"label": "Keep underscores", |
|||
"description": "If set to \"yes\", \"y\" or \"true\", doesn't replace underscores with spaces in the page name and section names.", |
|||
"type": "boolean" |
|||
}, |
|||
"display": { |
|||
"label": "Displayed page name", |
|||
"description": "If the page name must be displayed differently (e.g. in italics), enter it here.", |
|||
"type": "string" |
|||
}, |
|||
"permalink": { |
|||
"label": "Permanent link", |
|||
"description": "Revision ID, for a permanent link to the section (only works with one section link)", |
|||
"type": "number" |
|||
} |
|||
} |
|||
} |
|||
</templatedata> |
|||
==See also== |
==See also== |
||
Latest revision as of 04:37, 20 February 2026
This template, {{section link}}, or its shortcut, {{slink}}, is used to generate a link to a certain section(s) of a local wiki page and render an appropriate section mark (§ or §§).
For example, instead of:
[[Albert Einstein#Scientific career]]
...you can write:
{{section link|Albert Einstein|Scientific career}}
...or
{{section link|Albert Einstein#Scientific career}}
See also
[edit source]- {{Anchor}}