Vés al contingut

Plantilla:Enllaç a secció

De la Viquipèdia, l'enciclopèdia lliure

Plantilla:Enllaç a secció § Notes

Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]
"Template:Slink" redirigeix aquí. Si cerqueu the template that links to search results, vegeu Template:Search link.

Plantilla:Template shortcuts

Aquesta plantilla és apropiada per a ser utilitzada en notes i a seccions, o per referènciar seccions del mateix article. Quan s'utilitzi en el text del cos de l'article, considereu si un enllaç obert a una secció específica d'un altre article pot confondre als lectors que no poden seguir els enllaços, com ara la visualització d'una versió impresa del material o una versió publicada sense enllaços.

Sintaxi (visió general)

[modifica]

Secció única

[modifica]

This template, {{section link}}, or its shortcut, {{slink}}, is used to generate a link to a certain section of a local wiki page and render an appropriate section mark (§).

Instead of:

[[Albert Einstein#Scientific career]]

Albert Einstein#Scientific career

...you can write:

{{section link|Albert Einstein|Scientific career}}

Plantilla:Enllaç a secció § Notes

...or

{{section link|Albert Einstein#Scientific career}}

Plantilla:Enllaç a secció § Notes

Múltiples seccions

[modifica]

This template may generate consecutive links to several sections of the same page. You can write:

{{section link|History of IBM|1880s–1924: The origin of IBM|1969: Antitrust, the Unbundling of software and services|1993–present: IBM's near disaster and rebirth}}
Plantilla:Enllaç a secció § Notes

...or:

{{section link|History of IBM#1880s–1924: The origin of IBM|1969: Antitrust, the Unbundling of software and services|1993–present: IBM's near disaster and rebirth}}
Plantilla:Enllaç a secció § Notes

Suprimint el nom de la pàgina

[modifica]

Sometimes the page name needs not to appear, e.g. to avoid redundancy and wordiness. For the page on which the template is used, not specifying a page name creates a section link only. The following:

{{Section link||Suppressing page name}}

...is the equivalent of:

[[#Suppressing page name|§ Suppressing page name]]

...and renders as:

Plantilla:Enllaç a secció § Notes

For other pages, |nopage=y can be used to suppress the page name. This can be used when the page name is clear from context, such as on talk pages referring to the article being discussed.

This common case can be entered using {{Section link|{{ARTICLEPAGENAME}}|Section|nopage=y}}. The template {{Article link}}, alias {{alink}}, exists for this purpose.

Comparison of displayed results:

Estil del nom de la pàgina

[modifica]

For some page names (e.g., titles of films or short stories) we're supposed to present the core part of the page's name (without any parenthetic disambiguation) in italics, quotation marks, or some other markup (per ). The |display= parameter can be used for this purpose:

Guions baixos

[modifica]

It is common practice to copy article and section name from the browser's address bar. When doing that, the article and section names may contain underscores:

Albert_Einstein#Scientific_career

This template automatically replaces the underscores with space characters:

{{section link|Albert_Einstein#Scientific_career}}Plantilla:Enllaç a secció § Notes

There are articles that have underscores (see Categoria:Articles with underscores in the title). To retain the underscores in the rendered output, use |keep-underscores=yes:

article and section copied from browser address bar:
Dual_EC_DRBG#Timeline_of_the_Dual_EC_DRBG_cryptotrojan
manual removal of extraneous underscores:
Dual_EC_DRBG#Timeline of the Dual_EC_DRBG cryptotrojan
{{section link|Dual_EC_DRBG#Timeline of the Dual_EC_DRBG cryptotrojan|keep-underscores=yes}}Plantilla:Enllaç a secció § Notes

TemplateData

[modifica]

Aquesta és la documentació dels paràmetres de la plantilla utilitzada pel nou editor visual.

Enllaç a secció

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.

Paràmetres de la plantilla[Edita les dades de la plantilla]

ParàmetreDescripcióTipusEstat
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.

Nom de la pàgina:suggerit
Section name 12

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

Cadenaobligatori
Section name 23

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

Cadenaopcional
Section name 34

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

Cadenaopcional
Section name 45

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

Cadenaopcional
Hide page namenopage

If set to "yes", "y" or "true", hides the page name (only section names are displayed).

Booleàopcional
Keep underscoreskeep-underscores

If set to "yes", "y" or "true", doesn't replace underscores with spaces in the page name and section names.

Booleàopcional
Displayed page namedisplay

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

Cadenaopcional

Vegeu també

[modifica]
  • {{Multi-section link}} – for linking to a section listing nested section names
  • {{Pslink}} – for linking to a section without displaying the section sign (§)