Template:Section link/doc: Difference between revisions
More actions
Create documentation subpage for {{Section link}} |
m 6 revisions imported |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{TemplateBox | |||
{{TemplateBox | |||
| name = Section link | | name = Section link | ||
| desc = Links to one or more sections of an article | |||
| desc-de = Verlinkt zu einem oder mehreren Abschnitten eines Artikels | |||
| shorthand = {{T|§l}}{{,}}{{T|sect}}{{,}}{{Conj-or}}{{T|slink}} | |||
| usage-notes = | |||
| mbox = {{Lua|Module:Section link}} | |||
| namespace = all | | namespace = all | ||
| usergroup = all | | usergroup = all | ||
| Line 12: | Line 14: | ||
| 1 = 1 | | 1 = 1 | ||
| 1label = Page name | | 1label = Page name | ||
| 1label-de = Artikelname | |||
| 1d-en = 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. | | 1d-en = 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. | ||
| 1d-de = Name des Artikels, zu der der Link erstellt werden soll. Lass das Feld leer, um einen Link zum aktuellen Artikel zu erstellen. In diesem Fall wird kein Artikelname angezeigt. | |||
| 1stat = suggested | | 1stat = suggested | ||
| 1def = current page name | |||
| 1def-de = Name des aktuellen Artikels | |||
| 1type = wiki-page-name | | 1type = wiki-page-name | ||
| 2 = 2 | | 2 = 2 | ||
| 2label = Section name 1 | | 2label = Section name 1 | ||
| 2label-de = Abschnittsname 1 | |||
| 2d-en = Name of the (first) section to which the link must be created. This parameter is mandatory. | | 2d-en = Name of the (first) section to which the link must be created. This parameter is mandatory. | ||
| 2d-de = Name des (ersten) Abschnitts, zu dem der Link erstellt werden soll. Dieser Parameter ist ein Pflichtfeld. | |||
| 2stat = required | | 2stat = required | ||
| 2type = string | | 2type = string | ||
| Line 24: | Line 32: | ||
| 3 = 3 | | 3 = 3 | ||
| 3label = Section name 2 | | 3label = Section name 2 | ||
| 3label-de = Abschnittsname 2 | |||
| 3d-en = This template can link to additional sections within one page. You can supply another section name in this field. | | 3d-en = This template can link to additional sections within one page. You can supply another section name in this field. | ||
| 3d-de = Diese Vorlage kann auf weitere Abschnitte innerhalb eines Artikels verweisen. Du kannst in diesem Feld einen anderen Abschnittsnamen eingeben. | |||
| 3stat = optional- | | 3stat = optional- | ||
| 3type = string | | 3type = string | ||
| Line 30: | Line 40: | ||
| 4 = 4 | | 4 = 4 | ||
| 4label = Section name 3 | | 4label = Section name 3 | ||
| 4label-de = Abschnittsname 3 | |||
| 4d-en = This template can link to additional sections within one page. You can supply another section name in this field. | | 4d-en = This template can link to additional sections within one page. You can supply another section name in this field. | ||
| 4d-de = Diese Vorlage kann auf andere Abschnitte im selben Artikel verweisen. Du kannst in diesem Feld einen anderen Abschnittsnamen eingeben. | |||
| 4stat = optional- | | 4stat = optional- | ||
| 4type = string | | 4type = string | ||
| Line 36: | Line 48: | ||
| 5 = 5 | | 5 = 5 | ||
| 5label = Section name 4 | | 5label = Section name 4 | ||
| 5d- | | 5label-de = Abschnittsname 4 | ||
| 5d-de = Diese Vorlage kann auf andere Abschnitte im selben Artikel verweisen. Du kannst in diesem Feld einen anderen Abschnittsnamen eingeben. | |||
| 5stat = optional- | | 5stat = optional- | ||
| 5type = string | | 5type = string | ||
| Line 42: | Line 55: | ||
| 6 = nopage | | 6 = nopage | ||
| 6label = Hide Page Name? | | 6label = Hide Page Name? | ||
| 6label-de = Artikelname verbergen? | |||
| 6d-en = If set to a truthy value, hides the page name (only section names are displayed). | | 6d-en = If set to a truthy value, hides the page name (only section names are displayed). | ||
| 6d-de = Wenn auf einen Wahrheitswert gesetzt, wird der Seitenname ausgeblendet (nur Abschnittsnamen werden angezeigt). | |||
| 6def = 0 | | 6def = 0 | ||
| 6av = 1 | | 6av = 1 | ||
| Line 50: | Line 65: | ||
| 7 = keep-underscores | | 7 = keep-underscores | ||
| 7label = Keep Underscores? | | 7label = Keep Underscores? | ||
| 7label-de = Unterstriche behalten? | |||
| 7d-en = If set to a truthy value, doesn't replace underscores with spaces in the page name and section names. | | 7d-en = If set to a truthy value, doesn't replace underscores with spaces in the page name and section names. | ||
| 7d-de = Wenn auf einen Wahrheitswert gesetzt, werden Unterstriche in Seitennamen und Abschnittsnamen nicht durch Leerzeichen ersetzt. | |||
| 7def = 0 | | 7def = 0 | ||
| 7av = 1 | | 7av = 1 | ||
| Line 58: | Line 75: | ||
| 8 = display | | 8 = display | ||
| 8label = Displayed Page Name | | 8label = Displayed Page Name | ||
| 8label-de = Angezeigter Artikelname | |||
| 8d-en = If the page name must be displayed differently (e.g. in italics), enter it here. | | 8d-en = If the page name must be displayed differently (e.g. in italics), enter it here. | ||
| 8d-de = Wenn der Artikelname anders angezeigt werden soll (z. B. kursiv), gib ihn hier ein. | |||
| 8stat = optional- | | 8stat = optional- | ||
| 8type = line | | 8type = line | ||
Latest revision as of 17:04, 12 August 2026
Links to one or more sections of an article
Usage
{{Section link |1= |2= }}
Or use the shorthand
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
Links to one or more sections of an article
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page name | 1 | 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.
| Page name | suggested |
| Section name 1 | 2 | Name of the (first) section to which the link must be created. This parameter is mandatory. | String | required |
| Section name 2 | 3 | This template can link to additional sections within one page. You can supply another section name in this field. | String | optional |
| Section name 3 | 4 | This template can link to additional sections within one page. You can supply another section name in this field. | String | optional |
| Section name 4 | 5 | String | optional | |
| Displayed Page Name | display | If the page name must be displayed differently (e.g. in italics), enter it here. | Line | optional |
| Keep Underscores? | keep-underscores | If set to a truthy value, doesn't replace underscores with spaces in the page name and section names.
| Boolean | optional |
| Hide Page Name? | nopage | If set to a truthy value, hides the page name (only section names are displayed).
| Boolean | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users