Plantilla:Template reference list

Referències

Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

Aquesta plantilla s'utilitza per mostrar les referències utilitzades en una plantilla en la pàgina de la plantilla.

Introducció

modifica

{{Template reference list}} provides an explanatory list of references that are entered into the template in which Template reference list is inserted. The references appear in the article where the template is used if either {{Reflist}} or the <references /> tag is used in the article. By showing the references on the template page, the Cite error message is defeated, and it allows the template editor to verify those references.

Pàgina de documentació

modifica

If the template includes a documentation page, simply add a regular references section there.

Ús bàsic

modifica

If the template does not include a documentation page, add:

<noinclude>{{Template reference list}}</noinclude>

near the end of the template as in any article.

Referències agrupades

modifica

If one or more references of the template are grouped (like: <ref group="groupname">), you may use:

<noinclude>{{Template reference list|groupname1|groupname2|groupname3}}</noinclude>

It supports a maximum of 6 group names.

Nota important

modifica

The article where the template is used must include a <references /> tag or the {{Reflist}} template.

If the references are grouped, the article must also include <references group="groupname" /> tags or the {{Reflist|group="groupname"}} templates.

Detalls tècnics

modifica

This templates uses <h2>References</h2> instead of == References == to create the section header. The standard wikimarkup creates an edit link that when transcluded links back to the original template. Thus, an editor who clicked on the edit link on the References section would confusingly open this template for editing.

Vegeu també

modifica