« Modèle:Infobox munition » : différence entre les versions

De Les Archives de Vault-Tec
Kims (discussion | contributions)
m Révocation des modifications de Kims (discussion) vers la dernière version de Kharmitch
Balise : Révocation
Kharmitch (discussion | contributions)
Utilisation des module Infobox et Infobox/Munition
Balise : Contenu remplacé
Ligne 1 : Ligne 1 :
<onlyinclude><includeonly><!--
<onlyinclude><includeonly>{{#invoke:Infobox|build|nom=Munition}}</includeonly></onlyinclude>
 
#################################
## SET VARIABLES              ##
#################################
 
-->{{#vardefine:ibammo-tooltip-acmod|Indicates how much the target's Armor Class is modified when using this ammo. Negative values yield a higher chance to hit.}}<!--
-->{{#vardefine:ibammo-tooltip-damage|Indicates how much the base damage of the weapon is modified when using this ammo. This number represents an addition to the base damage, i.e. '+20%' means the weapon does 120% of its base damage.}}<!--
-->{{#vardefine:ibammo-tooltip-dammod|Indicates how much the base damage of the weapon is modified when using this ammo. This number represents a fraction of the base damage, i.e. '80%' means the weapon does 80% of its base damage.}}<!--
-->{{#vardefine:ibammo-tooltip-drmod|Indicates how much the target's Damage Resistance is modified when using this ammo. Negative values yield higher damage.}}<!--
-->{{#vardefine:ibammo-tooltip-magsize|Ammo/shots per magazine.}}<!--
-->{{#vardefine:ibammo-tooltip-penetration|Indicates how much the target's Damage Resistance is modified when using this ammo. Negative values yield lower damage.}}<!--
 
-->{{#vardefine:ibammo-label-dammodDam|<!--
-->{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}<!--
  -->|dégâts<!--
  -->|dégâts du mode<!--
-->}}<!--
-->}}<!--
-->{{#vardefine:ibammo-tooltip-dammodDam|<!--
-->{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}<!--
  -->|{{#var:ibammo-tooltip-damage}}<!--
  -->|{{#var:ibammo-tooltip-dammod}}<!--
-->}}<!--
-->}}<!--
 
-->{{#vardefine:ibammo-label-drmodPen|<!--
-->{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}<!--
  -->|pénétration<!--
  -->|mode RD<!--
-->}}<!--
-->}}<!--
-->{{#vardefine:ibammo-tooltip-drmodPen|<!--
-->{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}<!--
  -->|{{#var:ibammo-tooltip-penetration}}<!--
  -->|{{#var:ibammo-tooltip-drmod}}<!--
-->}}<!--
-->}}<!--
 
#################################
## DISPLAY INFOBOX            ##
#################################
 
-->{{Infobox
|games              ={{{jeux|}}}
|title              ={{{nom|}}}
|subtitle          ={{{sous-titre|}}}
|supertitle        =munition
|supertitle link    =munitions
|icon              ={{{icône|}}}
|icon offset        ={{{position icône|}}}
|main image1        ={{{image|}}}
|main image1 size  ={{{taille image|}}}
|main image2        ={{{image2|}}}
|main image2 size  ={{{taille image2|}}}
|main image3        ={{{image3|}}}
|main image3 size  ={{{taille image3|}}}
|main image4        ={{{image4|}}}
|main image4 size  ={{{taille image4|}}}
|main image5        ={{{image5|}}}
|main image5 size  ={{{taille image5|}}}
|main image desc    ={{{image desc|}}}
|main image columns =5
|size main images  =x130px
|footer            ={{{pied|}}}
|group1            ={{#if:{{{nom mun2|}}}{{{nom mun3|}}}{{{nom mun4|}}}{{{nom mun5|}}}|{{#if:{{{nom mun|}}}|{{{nom mun}}}|{{#if:{{{nom|}}}|{{{nom}}}|{{Pagename nd}}}}}}|@hide}}
|options1          ={{#if:{{#pos:{{lc:{{{nom mun|}}}}}|{{cut}}}}{{#pos:{{lc:{{{nom mun|}}}}}|{{icon|cut}}}}{{#pos:{{lc:{{{nom mun|}}}}}|(cut)}}|collapsed}}
|cond2              ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}||1}}
|label2-1          =capacité charg.
|label2-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content2-2        ={{{chargeur|}}}
|label2-3          =mode CA
|label2-3 tooltip  ={{#var:ibammo-tooltip-acmod}}
|content2-4        ={{{mode ca|}}}
|cond3              ={{abbcontains|{{{jeux|}}}|FOT*}}
|label3-1          =capacité charg.
|label3-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content3-2        ={{{chargeur|}}}
|cond4              =1
|label4-1          ={{#var:ibammo-label-dammodDam}}
|label4-1 tooltip  ={{#var:ibammo-tooltip-dammodDam}}
|content4-2        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{dégâts|}}}|{{{mode dégâts|}}}}}
|label4-3          ={{#var:ibammo-label-drmodPen}}
|label4-3 tooltip  ={{#var:ibammo-tooltip-drmodPen}}
|content4-4        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{pénétration|}}}|{{{mode rd|}}}}}
|cond5              =1
|label5-1          =poids
|content5-2        ={{{poids|}}}
|label5-3          =valeur
|content5-4        ={{{valeur|}}}
|label6-1          =prototype id
|content6-2        ={{{proto|}}}
|group7            ={{{nom mun2|}}}
|options7          ={{#if:{{#pos:{{lc:{{{nom mun2|}}}}}|{{cut}}}}{{#pos:{{lc:{{{nom mun2|}}}}}|{{icon|cut}}}}{{#pos:{{lc:{{{nom mun2|}}}}}|(cut)}}|collapsed}}
|cond8              ={{#if:{{{nom mun2|}}}|{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}||1}}}}
|label8-1          =capacité charg.
|label8-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content8-2        ={{{chargeur2|}}}
|label8-3          =mode CA
|label8-3 tooltip  ={{#var:ibammo-tooltip-acmod}}
|content8-4        ={{{mode ca2|}}}
|cond9              ={{#if:{{{nom mun2|}}}|{{abbcontains|{{{jeux|}}}|FOT*}}}}
|label9-1          =capacité charg.
|label9-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content9-2        ={{{chargeur2|}}}
|cond10            ={{{nom mun2|}}}
|label10-1          ={{#var:ibammo-label-dammodDam}}
|label10-1 tooltip  ={{#var:ibammo-tooltip-dammodDam}}
|content10-2        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{dégâts2|}}}|{{{mode dégâts2|}}}}}
|label10-3          ={{#var:ibammo-label-drmodPen}}
|label10-3 tooltip  ={{#var:ibammo-tooltip-drmodPen}}
|content10-4        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{pénétration2|}}}|{{{mode rd2|}}}}}
|cond11            ={{{nom mun2|}}}
|label11-1          =poids
|content11-2        ={{{poids2|}}}
|label11-3          =valeur
|content11-4        ={{{valeur2|}}}
|cond12            ={{#if:{{{nom mun2|}}}|{{{proto2|}}}}}
|label12-1          =prototype id
|content12-2        ={{{proto2|}}}
|group13            ={{{nom mun3|}}}
|options13          ={{#if:{{#pos:{{lc:{{{nom mun3|}}}}}|{{cut}}}}{{#pos:{{lc:{{{nom mun3|}}}}}|{{icon|cut}}}}{{#pos:{{lc:{{{nom mun3|}}}}}|(cut)}}|collapsed}}
|cond14            ={{#if:{{{nom mun3|}}}|{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}||1}}}}
|label14-1          =capacité charg.
|label14-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content14-2        ={{{chargeur3|}}}
|label14-3          =mode CA
|label14-3 tooltip  ={{#var:ibammo-tooltip-acmod}}
|content14-4        ={{{mode ca3|}}}
|cond15            ={{#if:{{{nom mun3|}}}|{{abbcontains|{{{jeux|}}}|FOT*}}}}
|label15-1          =capacité charg.
|label15-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content15-2        ={{{chargeur3|}}}
|cond16            ={{{nom mun3|}}}
|label16-1          ={{#var:ibammo-label-dammodDam}}
|label16-1 tooltip  ={{#var:ibammo-tooltip-dammodDam}}
|content16-2        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{dégâts3|}}}|{{{mode dégâts3|}}}}}
|label16-3          ={{#var:ibammo-label-drmodPen}}
|label16-3 tooltip  ={{#var:ibammo-tooltip-drmodPen}}
|content16-4        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{pénétration3|}}}|{{{mode rd3|}}}}}
|cond17            ={{{nom mun3|}}}
|label17-1          =poids
|content17-2        ={{{poids3|}}}
|label17-3          =valeur
|content17-4        ={{{valeur3|}}}
|cond18            ={{#if:{{{nom mun3|}}}|{{{proto3|}}}}}
|label18-1          =prototype id
|content18-2        ={{{proto3|}}}
|group19            ={{{nom mun4|}}}
|options19          ={{#if:{{#pos:{{lc:{{{nom mun4|}}}}}|{{cut}}}}{{#pos:{{lc:{{{nom mun4|}}}}}|{{icon|cut}}}}{{#pos:{{lc:{{{nom mun4|}}}}}|(cut)}}|collapsed}}
|cond20            ={{#if:{{{nom mun4|}}}|{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}||1}}}}
|label20-1          =capacité charg.
|label20-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content20-2        ={{{chargeur4|}}}
|label20-3          =mode CA
|label20-3 tooltip  ={{#var:ibammo-tooltip-acmod}}
|content20-4        ={{{mode ca4|}}}
|cond21            ={{#if:{{{nom mun4|}}}|{{abbcontains|{{{jeux|}}}|FOT*}}}}
|label21-1          =capacité charg.
|label21-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content21-2        ={{{chargeur4|}}}
|cond22            ={{{nom mun4|}}}
|label22-1          ={{#var:ibammo-label-dammodDam}}
|label22-1 tooltip  ={{#var:ibammo-tooltip-dammodDam}}
|content22-2        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{dégâts4|}}}|{{{mode dégâts4|}}}}}
|label22-3          ={{#var:ibammo-label-drmodPen}}
|label22-3 tooltip  ={{#var:ibammo-tooltip-drmodPen}}
|content22-4        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{pénétration4|}}}|{{{mode rd4|}}}}}
|cond23            ={{{nom mun4|}}}
|label23-1          =poids
|content23-2        ={{{poids4|}}}
|label23-3          =valeur
|content23-4        ={{{valeur4|}}}
|cond24            ={{#if:{{{nom mun4|}}}|{{{proto4|}}}}}
|label24-1          =prototype id
|content24-2        ={{{proto4|}}}
|group25            ={{{nom mun5|}}}
|options25          ={{#if:{{#pos:{{lc:{{{nom mun5|}}}}}|{{cut}}}}{{#pos:{{lc:{{{nom mun5|}}}}}|{{icon|cut}}}}{{#pos:{{lc:{{{nom mun5|}}}}}|(cut)}}|collapsed}}
|cond26            ={{#if:{{{nom mun5|}}}|{{#if:{{abbcontains|{{{jeux|}}}|FOT*}}||1}}}}
|label26-1          =capacité charg.
|label26-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content26-2        ={{{chargeur5|}}}
|label26-3          =mode CA
|label26-3 tooltip  ={{#var:ibammo-tooltip-acmod}}
|content26-4        ={{{mode ca5|}}}
|cond27            ={{#if:{{{nom mun5|}}}|{{abbcontains|{{{jeux|}}}|FOT*}}}}
|label27-1          =capacité charg.
|label27-1 tooltip  ={{#var:ibammo-tooltip-magsize}}
|content27-2        ={{{chargeur5|}}}
|cond28            ={{{nom mun5|}}}
|label28-1          ={{#var:ibammo-label-dammodDam}}
|label28-1 tooltip  ={{#var:ibammo-tooltip-dammodDam}}
|content28-2        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{dégâts5|}}}|{{{mode dégâts5|}}}}}
|label28-3          ={{#var:ibammo-label-drmodPen}}
|label28-3 tooltip  ={{#var:ibammo-tooltip-drmodPen}}
|content28-4        ={{#if:{{abbcontains|{{{jeux|}}}|FOT*}}|{{{pénétration5|}}}|{{{mode rd5|}}}}}
|cond29            ={{{nom mun5|}}}
|label29-1          =poids
|content29-2        ={{{poids5|}}}
|label29-3          =valeur
|content29-4        ={{{valeur5|}}}
|cond30            ={{#if:{{{nom mun5|}}}|{{{proto5|}}}}}
|label30-1          =prototype id
|content30-2        ={{{proto5|}}}
}}<!--
 
--></includeonly></onlyinclude>
{{documentation}}
{{documentation}}
[[Category:Modèles Infobox|Munition]]
[[Category:Modèles Infobox|Munition]]

Version du 1 août 2021 à 18:27

Documentation du modèle (pour le modèle ci-dessus, parfois caché ou invisible)

Infobox template for ammunition in games other than Fallout 3 and Fallout: New Vegas.

Based on {{Infobox}}.

Usage

Place the following at the top of the article, below any page management templates:

{{Infobox munition
<!-- insert parameters -->
}}

Parameters

Specific parameters

ac mod à ac mod5

Armor Class modifier of the corresponding ammo variant (Fallout, Fallout 2).

damage à damage5

Damage of the corresponding ammo variant (Fallout Tactics).

damage mod à damage mod5

Damage modifier of the corresponding ammo variant (Fallout, Fallout 2).

dr mod à dr mod5

Damage Resistance modifier of the corresponding ammo variant (Fallout, Fallout 2).

item name à item name10

Name of the corresponding ammo variant; only required if there is more than one variant listed. If item name contains "{{cut}}", "{{icon|cut}}" or "(cut)", the corresponding section will be collapsed by default.

penetration à penetration5

Penetration of the corresponding ammo variant (Fallout Tactics).

mag size à mag size5

Shots/rounds per magazine for the corresponding ammo variant.

proto à proto5

Prototype ID of the corresponding ammo variant. Enclose ID(s) in {{proto}}.

value à value5

Base value of the corresponding ammo variant per unit.

weight à weight5

Weight of the corresponding ammo variant.

General infobox parameters

pied

Contenu de la dernière rangée de l'infobox.

jeux

Abréviation(s) des jeux ; pour accepter les abréviations, veuillez consultez la documentation du modèle {{abb}}. Plusieurs abréviations peuvent être déclarées en étant séparées par une virgule (,).

icône

Nom du fichier de l'icône (sans le préfixe « Fichier: »), c'est-à-dire une petite image disposée en haut à droite de la zone de l'image principale.

position icône

Position de icône en pixels, l'icône est déplacé « vers le haut » par la quantité de pixels spécifié. La valeur maximale est « taille icône - hauteur spécifiée + 5 ».

image à image5

Nom de fichier de(s) image(s) (sans le préfixe "Fichier:") à disposer en dessous de l'en-tête principal de l'infobox.

image desc

Description de la zone image, disposée sous le(s) image(s).

(default: "260x200px")
taille image à taille image5

Largeur de l'image correspondante en pixels (e.g. "260px").

|x130px}}
(default: "{{Pagename nd}}")
nom

Titre principale de l'infobox. Par défaut, il s'agit du nom de la page courante sans les suffixes d'homonymie (les termes entres parenthèses à la fin).

sous-titre

Texte en petits caractères sous nom de l'infobox.

Exemples

OP 10 mm
Taille du magasin
24
Modification de la CA
24
Modification des dégâts
1/2
Modification de la RD
−25 %
Poids
1
Valeur
100
Proto ID
30
CCM 10 mm
Taille du magasin
24
Modification de la CA
24
Modification des dégâts
2/1
Modification de la RD
+25 %
Poids
1
Valeur
75
Proto ID
00000029
{{Infobox munition
|jeux            =FO1, FO2
|nom             =10 mm
|image           =Fo1 CCM10mm.gif
|image2          =Fo1 OP10mm.gif
<!-- ####### Munition 1 ####### -->
|nom munition    =OP 10 mm
|magasin         =24
|ca              =0
|dégâts          =1/2
|rd              =−25 %
|poids           =1
|valeur          =100
|proto           =30
<!-- ####### Munition 2 ####### -->
|nom munition2   =CCM 10 mm
|magasin2        =24
|ca2             =0
|dégâts2         =2/1
|rd2             =+25 %
|poids2          =1
|valeur2         =75
|proto2          ={{proto|29}}
}}

Copy/paste

Fallout, Fallout 2

Single Multiple
{{Infobox munition
|games        =FO1
|image        =
|mag size     =
|ac mod       =
|damage mod   =
|dr mod       =
|weight       =
|value        =
|proto        ={{proto|}}
}}
{{Infobox munition
|games        =FO1
|image        =
<!-- ####### Variant 1 ####### -->
|item name    =
|mag size     =
|ac mod       =
|damage mod   =
|dr mod       =
|weight       =
|value        =
|proto        ={{proto|}}
<!-- ####### Variant 2 ####### -->
|item name2   =
|mag size2    =
|ac mod2      =
|damage mod2  =
|dr mod2      =
|weight2      =
|value2       =
|proto2       ={{proto|}}
<!-- ####### Variant 3 ####### -->
|item name3   =
|mag size3    =
|ac mod3      =
|damage mod3  =
|dr mod3      =
|weight3      =
|value3       =
|proto3       ={{proto|}}
}}

Fallout Tactics

Single Multiple
{{Infobox munition
|games        =FOT
|image        =
|mag size     =
|penetration  =
|damage       =
|weight       =
|value        =
}}
{{Infobox munition
|games        =FOT
|image        =
<!-- ####### Variant 1 ####### -->
|item name    =
|mag size     =
|penetration  =
|damage       =
|weight       =
|value        =
<!-- ####### Variant 2 ####### -->
|item name2   =
|mag size2    =
|penetration2 =
|damage2      =
|weight2      =
|value2       =
<!-- ####### Variant 3 ####### -->
|item name3   =
|mag size3    =
|penetration3 =
|damage3      =
|weight3      =
|value3       =
}}

Source

  • Le modèle et sa page de documentation sont issus du Wikipédia The Vault. Vous pouvez les retrouver en suivant ce lien.
Documentation transclues de Modèle:Infobox munition/doc.