Modèle:Article de jeu/doc

Révision datée du 25 mars 2016 à 22:44 par Kharmitch (discussion | contributions) (→‎Examples)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Ceci est la page de documentation de Modèle:Article de jeu [modifier] [purger].

Cette sous-page contient les instructions et les catégories de son modèle d'origine et elle n'est pas destinée à être visualisée directement.

Template for linking gameplay articles from an overview article about a type of item. Automatically generates links based on the abbreviations specified.

Based on {{Hatnote}}.

Usage

{{articlejeu|abréviation jeu 1|abréviation jeu 2}}

Parameters

<unnamed 1> à <unnamed 10>

Game abbreviations (e.g. "FO2"). See {{abb}} for valid abbreviations.

link

By default, the template generates links to subpages based on the name of the page it is used in. If the gameplay articles have a different naming than the overview page, you can use this parameter to specify the differing "base" name.

For example, if the template is used on a page called "Laser Pistol", the links it generates will be of the format "Laser Pistol (Fallout)" (etc). If you set link to "Laser Gun", the links will have the format "Laser Gun (Fallout)".

link1 à link10

Allows you to set the target page for the corresponding unnamed parameter directly. This overrides the default behaviour of appending game names in brackets to the current pagename or the pagename set by link.

type

If set to "mentioned", no links will be generated. Instead the template will display that there are no appearances of this item and list the games it is mentioned in (if any).

Examples

Standard

{{Articlejeu|FO1|FO3|FOBOS}}

results in (hover mouse over the links to see the target page): Modèle:Articlejeu

With "link"

{{Articlejeu|link=Laser Pistol|FO1|FO3|FOBOS}}

results in (hover mouse over the links to see the target page): Modèle:Articlejeu

With "link#"

{{Articlejeu|FO1|FO3|FOBOS|link2=Laser Pistol}}

results in (hover mouse over the links to see the target page): Modèle:Articlejeu

With "type"

{{Articlejeu|type=mentioned|FO1|FO3|FOBOS}}

results in: Modèle:Articlejeu

Technique

Source