Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Section link/doc: Difference between revisions

Template page
No edit summary
+de
Line 2: Line 2:
{{TemplateBox
{{TemplateBox
| name = Section link
| name = Section link
| mbox =
| desc                = Links to one or more sections of an article
{{Lua|Module:Section link}}
| desc-de            = Verlinkt zu einem oder mehreren Abschnitten eines Artikels
{{-|right}}
| shorthand          = {{T|§l}}{{,}}{{T|sect}}{{,}}{{Conj-or}}{{T|slink}}
{{tsh|§l|sect|slink}}
| usage-notes        =
 
| mbox = {{Lua|Module:Section link}}
| namespace = all
| namespace = all
| usergroup = all
| usergroup = all
Line 14: 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 = 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 26: 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 32: 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 38: Line 48:
| 5      = 5
| 5      = 5
| 5label = Section name 4
| 5label = Section name 4
| 5d-en = This template can link to additional sections within one page. You can supply another section name in this field.
| 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 44: 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 52: 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 60: 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

Revision as of 11:08, 5 November 2025

Links to one or more sections of an article

Usage

{{Section link |1= |2= }}

Or use the shorthand

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 TemplateDataCommons-specific information

Links to one or more sections of an article

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page name1

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.

Default
current page name
Page namesuggested
Abschnittsname 12

Name of the (first) section to which the link must be created. This parameter is mandatory.

Stringrequired
Section name 23

This template can link to additional sections within one page. You can supply another section name in this field.

Stringoptional
Section name 34

This template can link to additional sections within one page. You can supply another section name in this field.

Stringoptional
Section name 45

Stringoptional
Displayed Page Namedisplay

If the page name must be displayed differently (e.g. in italics), enter it here.

Lineoptional
Keep Underscores?keep-underscores

If set to a truthy value, doesn't replace underscores with spaces in the page name and section names.

Default
0
Auto value
1
Booleanoptional
Hide Page Name?nopage

If set to a truthy value, hides the page name (only section names are displayed).

Default
0
Auto value
1
Booleanoptional

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.