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

De Les Archives de Vault-Tec
Kharmitch (discussion | contributions)
Annulation des modifications 73483 de Kharmitch (discussion)
Balise : Annulation
Kharmitch (discussion | contributions)
Utilisation des module Infobox et Infobox/Évènement
Balise : Contenu remplacé
Ligne 1 : Ligne 1 :
<onlyinclude><includeonly><!--
<onlyinclude><includeonly>{{#invoke:Infobox|build|nom=Évènement}}</includeonly></onlyinclude>
 
#################################
## VARIABLES                  ##
#################################
 
-->{{#vardefine:ibevent-parti-all|{{#if:{{{parti1|}}}|1}}{{#if:{{{parti2|}}}|2}}{{#if:{{{parti3|}}}|3}}{{#if:{{{parti4|}}}|4}}}}<!--
-->{{#vardefine:ibevent-parti-count|{{#len:{{#var:ibevent-parti-all}}}}}}<!--
 
-->{{#vardefine:ibevent-parti1|{{#sub:{{#var:ibevent-parti-all}}|0|1}}}}<!--
-->{{#vardefine:ibevent-parti2|{{#sub:{{#var:ibevent-parti-all}}|1|1}}}}<!--
-->{{#vardefine:ibevent-parti3|{{#sub:{{#var:ibevent-parti-all}}|2|1}}}}<!--
-->{{#vardefine:ibevent-parti4|{{#sub:{{#var:ibevent-parti-all}}|3|1}}}}<!--
 
#################################
## INFOBOX                    ##
#################################
 
-->{{Infobox
|games              =
|title              ={{{nom|}}}
|subtitle          ={{{sous-titre|}}}
|supertitle        =événement
|supertitle link    =chronologie
|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    ={{{desc image|}}}
|size main images  =x260px
|footer            ={{{pied|}}}
|group1            =Informations générales
|colwidths1        =23,77
|label2-1          =Emplacement
|content2-2        ={{{emplacement|}}}
|label3-1          =date
|content3-2        ={{{date|}}}
|label4-1          =résultat
|content4-2        ={{{résultat|}}}
|group5            =Belligérants
|colwidths5        ={{#switch:{{#var:ibevent-parti-count}}|2=50,50|3=33,34,33|4=25,25,25,25}}
|style contents5    =text-align: center;
|cond6              ={{#ifeq:{{#var:ibevent-parti-count}}|1|{{{parti{{#var:ibevent-parti1}}|}}}}}
|content6-1        ={{{parti{{#var:ibevent-parti1}}|}}}
|cond7              ={{#ifeq:{{#var:ibevent-parti-count}}|2|{{{parti{{#var:ibevent-parti1}}|}}}{{{parti{{#var:ibevent-parti2}}|}}}}}
|content7-1        ={{{parti{{#var:ibevent-parti1}}|}}}
|content7-2        ={{{parti{{#var:ibevent-parti2}}|}}}
|cond8              ={{#ifeq:{{#var:ibevent-parti-count}}|3|{{{parti{{#var:ibevent-parti1}}|}}}{{{parti{{#var:ibevent-parti2}}|}}}{{{parti{{#var:ibevent-parti3}}|}}}}}
|content8-1        ={{{parti{{#var:ibevent-parti1}}|}}}
|content8-2        ={{{parti{{#var:ibevent-parti2}}|}}}
|content8-3        ={{{parti{{#var:ibevent-parti3}}|}}}
|cond9              ={{#ifeq:{{#var:ibevent-parti-count}}|4|{{{parti{{#var:ibevent-parti1}}|}}}{{{parti{{#var:ibevent-parti2}}|}}}{{{parti{{#var:ibevent-parti3}}|}}}{{{parti{{#var:ibevent-parti4}}|}}}}}
|content9-1        ={{{parti{{#var:ibevent-parti1}}|}}}
|content9-2        ={{{parti{{#var:ibevent-parti2}}|}}}
|content9-3        ={{{parti{{#var:ibevent-parti3}}|}}}
|content9-4        ={{{parti{{#var:ibevent-parti4}}|}}}
|group10            =Leader
|colwidths10        ={{#switch:{{#var:ibevent-parti-count}}|2=50,50|3=33,34,33|4=25,25,25,25}}
|style contents10  =text-align: center;
|cond11            ={{#ifeq:{{#var:ibevent-parti-count}}|1|{{{leader{{#var:ibevent-parti1}}|}}}}}
|content11-1        ={{{leader{{#var:ibevent-parti1}}|}}}
|cond12            ={{#ifeq:{{#var:ibevent-parti-count}}|2|{{{leader{{#var:ibevent-parti1}}|}}}{{{leader{{#var:ibevent-parti2}}|}}}}}
|content12-1        ={{{leader{{#var:ibevent-parti1}}|}}}
|content12-2        ={{{leader{{#var:ibevent-parti2}}|}}}
|cond13            ={{#ifeq:{{#var:ibevent-parti-count}}|3|{{{leader{{#var:ibevent-parti1}}|}}}{{{leader{{#var:ibevent-parti2}}|}}}{{{leader{{#var:ibevent-parti3}}|}}}}}
|content13-1        ={{{leader{{#var:ibevent-parti1}}|}}}
|content13-2        ={{{leader{{#var:ibevent-parti2}}|}}}
|content13-3        ={{{leader{{#var:ibevent-parti3}}|}}}
|cond14            ={{#ifeq:{{#var:ibevent-parti-count}}|4|{{{leader{{#var:ibevent-parti1}}|}}}{{{leader{{#var:ibevent-parti2}}|}}}{{{leader{{#var:ibevent-parti3}}|}}}{{{leader{{#var:ibevent-parti4}}|}}}}}
|content14-1        ={{{leader{{#var:ibevent-parti1}}|}}}
|content14-2        ={{{leader{{#var:ibevent-parti2}}|}}}
|content14-3        ={{{leader{{#var:ibevent-parti3}}|}}}
|content14-4        ={{{leader{{#var:ibevent-parti4}}|}}}
|group15            =Forces en présence
|colwidths15        ={{#switch:{{#var:ibevent-parti-count}}|2=50,50|3=33,34,33|4=25,25,25,25}}
|style contents15  =text-align: center;
|cond16            ={{#ifeq:{{#var:ibevent-parti-count}}|1|{{{forces{{#var:ibevent-parti1}}|}}}}}
|content16-1        ={{{forces{{#var:ibevent-parti1}}|}}}
|cond17            ={{#ifeq:{{#var:ibevent-parti-count}}|2|{{{forces{{#var:ibevent-parti1}}|}}}{{{forces{{#var:ibevent-parti2}}|}}}}}
|content17-1        ={{{forces{{#var:ibevent-parti1}}|}}}
|content17-2        ={{{forces{{#var:ibevent-parti2}}|}}}
|cond18            ={{#ifeq:{{#var:ibevent-parti-count}}|3|{{{forces{{#var:ibevent-parti1}}|}}}{{{forces{{#var:ibevent-parti2}}|}}}{{{forces{{#var:ibevent-parti3}}|}}}}}
|content18-1        ={{{forces{{#var:ibevent-parti1}}|}}}
|content18-2        ={{{forces{{#var:ibevent-parti2}}|}}}
|content18-3        ={{{forces{{#var:ibevent-parti3}}|}}}
|cond19            ={{#ifeq:{{#var:ibevent-parti-count}}|4|{{{forces{{#var:ibevent-parti1}}|}}}{{{forces{{#var:ibevent-parti2}}|}}}{{{forces{{#var:ibevent-parti3}}|}}}{{{forces{{#var:ibevent-parti4}}|}}}}}
|content19-1        ={{{forces{{#var:ibevent-parti1}}|}}}
|content19-2        ={{{forces{{#var:ibevent-parti2}}|}}}
|content19-3        ={{{forces{{#var:ibevent-parti3}}|}}}
|content19-4        ={{{forces{{#var:ibevent-parti4}}|}}}
|group20            =Pertes
|colwidths20        ={{#switch:{{#var:ibevent-parti-count}}|2=50,50|3=33,34,33|4=25,25,25,25}}
|style contents20  =text-align: center;
|cond21            ={{#ifeq:{{#var:ibevent-parti-count}}|1|{{{victimes{{#var:ibevent-parti1}}|}}}}}
|content21-1        ={{{victimes{{#var:ibevent-parti1}}|}}}
|cond22            ={{#ifeq:{{#var:ibevent-parti-count}}|2|{{{victimes{{#var:ibevent-parti1}}|}}}{{{victimes{{#var:ibevent-parti2}}|}}}}}
|content22-1        ={{{victimes{{#var:ibevent-parti1}}|}}}
|content22-2        ={{{victimes{{#var:ibevent-parti2}}|}}}
|cond23            ={{#ifeq:{{#var:ibevent-parti-count}}|3|{{{victimes{{#var:ibevent-parti1}}|}}}{{{victimes{{#var:ibevent-parti2}}|}}}{{{victimes{{#var:ibevent-parti3}}|}}}}}
|content23-1        ={{{victimes{{#var:ibevent-parti1}}|}}}
|content23-2        ={{{victimes{{#var:ibevent-parti2}}|}}}
|content23-3        ={{{victimes{{#var:ibevent-parti3}}|}}}
|cond24            ={{#ifeq:{{#var:ibevent-parti-count}}|4|{{{victimes{{#var:ibevent-parti1}}|}}}{{{victimes{{#var:ibevent-parti2}}|}}}{{{victimes{{#var:ibevent-parti3}}|}}}{{{victimes{{#var:ibevent-parti4}}|}}}}}
|content24-1        ={{{victimes{{#var:ibevent-parti1}}|}}}
|content24-2        ={{{victimes{{#var:ibevent-parti2}}|}}}
|content24-3        ={{{victimes{{#var:ibevent-parti3}}|}}}
|content24-4        ={{{victimes{{#var:ibevent-parti4}}|}}}
|group25            =Événements en lien
|colwidths25        =50,50
|style contents25  =text-align: center;
|cond26            ={{{partie de|}}}
|content26-1        =Partie de :<br/>{{{partie de}}}
|cond27            ={{{precedent|}}}{{{suivant|}}}
|content27-1        =Précédent :<br/>{{#if:{{{précédent|}}}|{{{précédent}}}|-}}
|content27-2        =Suivant :<br/>{{#if:{{{suivant|}}}|{{{suivant}}}|-}}
|cond28            ={{{connexe|}}}
|content28-1        =Connexe :<br/>{{{connexe}}}
}}<!--
 
--></includeonly></onlyinclude>
{{documentation}}
{{documentation}}
[[Catégorie:Modèles Infobox|Évènement]]
[[Catégorie:Modèles Infobox|Évènement]]

Version du 2 août 2021 à 00:31

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

Infobox pour tous les événements de la série (conflit militaire). Son paramétrage est disponible dans le module Module:Infobox/Évènement.

Usage

{{Infobox évènement
|nom               =
|image             =
|légende           =
|type              =
<!-- Informations générales -->
|date              =
|lieu              =
|casus belli       =
|issue             =
<!-- Belligérants -->
|combattant1       =
|combattant2       =
|combattant3       =
|combattant4       =
<!-- Commandants -->
|commandant1       =
|commandant2       =
|commandant3       =
|commandant4       =
<!-- Forces en présence -->
|forces1           =
|forces2           =
|forces3           =
|forces4           =
<!-- Pertes -->
|pertes1           =
|pertes2           =
|pertes3           =
|pertes4           =
<!-- Évènements associés -->
|partie de         =
|connexe           =
|précédent         =
|suivant           =
}}

Paramètres

Infobox pour tous les événements de la série, notamment les conflits militaires

Paramètres du modèle[Modifier les données du modèle]

La mise en forme multiligne est préférée pour ce modèle.

ParamètreDescriptionTypeÉtat
Nomnom

Titre de l'infobox

Chaînefacultatif
Imageimage

Illustration de l'infobox

Fichierfacultatif
Image 2image2

Illustration de l'infobox

Fichierfacultatif
Image 3image3

Illustration de l'infobox

Fichierfacultatif
Image 4image4

Illustration de l'infobox

Fichierfacultatif
Image 5image5

Illustration de l'infobox

Fichierfacultatif
Légendelégende

Légende de l'illustration

Chaînefacultatif
Datedate

Date à laquelle a eu lieu le conflit.

Chaînefacultatif
Lieulieu

L'endroit où le conflit a eu lieu.

Chaînefacultatif
Casus bellicasus belli

Le casus belli du conflit

Chaînefacultatif
Issueissue

Issue de l'affrontement ou du conflit. Conséquence.

Chaînefacultatif
combattant 1combattant1

Partie engagée dans le conflit. À utiliser avec le champ "combattant2" en principe.

Chaînefacultatif
combattant 2combattant2

Partie engagée dans le conflit. À utiliser avec le champ "combattant1" en principe.

Chaînefacultatif
combattant 3combattant3

Partie engagée dans le conflit.

Chaînefacultatif
combattant 4combattant4

Partie engagée dans le conflit.

Chaînefacultatif
Commandant 1commandant1

Commandant des "combattant1".

Chaînefacultatif
Commandant 2commandant2

Commandant des "combattant2".

Chaînefacultatif
Commandant 3commandant3

Commandant des "combattant3".

Chaînefacultatif
Commandant 4commandant4

Commandant des "combattant4".

Chaînefacultatif
Forces 1forces1

Les effectifs des forces engagées par "combattant1".

Chaînefacultatif
Forces 2forces2

Les effectifs des forces engagées par "combattant2".

Chaînefacultatif
Forces 3forces3

Les effectifs des forces engagées par "combattant3".

Chaînefacultatif
Forces 4forces4

Les effectifs des forces engagées par "combattant4".

Chaînefacultatif
Pertes 1pertes1

Les pertes subies par "combattant1".

Chaînefacultatif
Pertes 2pertes2

Les pertes subies par "combattant2".

Chaînefacultatif
Pertes 3pertes3

Les pertes subies par "combattant3".

Chaînefacultatif
Pertes 4pertes4

Les pertes subies par "combattant4".

Chaînefacultatif
Partie departie de

Si l'événement fait partie d'un événement plus important

Chaînefacultatif
Connexeconnexe

Tous les événements en relation avec cet événement.

Chaînefacultatif
précédentprécédent

Si cet événement fait partie d'une série d'événement, donner le suivant.

Chaînefacultatif
Suivantsuivant

Si cet événement fait partie d'une série d'événement, donner le suivant.

Chaînefacultatif

Exemples

Grande Guerre

Infobox évènement
Une explosion nucléaire près de Boston, dans le Massachusetts
Informations générales
Date
Lieu
Issue
Effondrement global de l'ordre social
Désintégration des états existants
Graves dommages environnementaux, changements climatiques.
Belligérants
Évènements associés
{{Infobox évènement
|image            =FO4 frappe nucleaire sur Boston.jpg
|légende          =Une explosion nucléaire près de [[Boston]], dans le [[état#Massachusetts|Massachusetts]]
|date             =[[Chronologie#2077|23 octobre 2077]]
|lieu             =[[Univers de Fallout|Terre]]
|issue            =Effondrement global de l'ordre social<br/>Désintégration des états existants<br/>Graves dommages environnementaux, changements climatiques.
|combattant1      =[[États-Unis d'Amérique]]
|combattant2      =[[République Populaire de Chine]]
|combattant3      =Autres puissances nucléaires
|précédent        =[[Guerres de ressource]]
}}

Guerre RNC-Confrérie

Guerre RNC-Confrérie
Drapeau de la RNC (gauche) et emblème de la Confrérie de l'Acier (droite).
Informations générales
Date
Après 2246
Lieu
Issue
  • Lourdes pertes dans les deux camps
  • Survivants de la Confrérie forcés de se cacher
  • Chapitre du Mojave relocalisé à Hidden Valley
  • Prise de contrôle d'HELIOS One par la RNC
Belligérants
Commandants
Wendell Peterson
(2253-2273)
Aaron Kimball
(2273-)
Haut Aîné Jeremy Maxson
Aîné Nolan McNamara
Aîné Elijah
(jusqu'en 2276)
Paladin en Chef Edgar Hardin
(2281-)
Forces en présence
Pertes
Inconnues
  • Lourdes pertes, dont la moitié du chapitre du Mojave
  • Perte de six bunkers militaires
  • Chapitres décimés
Évènements associés
Partie de
Connexe
{{Infobox évènement
|type           = conflit militaire
|image          = Drapeau de la rnc.png
|image2         = ConfrerieAcier Symbole.png
|légende        = Drapeau de la RNC (gauche) et emblème de la Confrérie de l'Acier (droite).
|lieu           = [[Nouvelle Californie]]<br/>[[Terres dévastées du Mojave|Désert de Mojave]]
|date           = Après [[Chronologie#2246|2246]]
|issue          = {{Cellule liste|Lourdes pertes dans les deux camps|Survivants de la Confrérie forcés de se cacher|Chapitre du Mojave relocalisé à [[Hidden Valley]]|Prise de contrôle d'[[HELIOS One]] par la RNC}}
|combattant1    = [[Fichier:Drapeau de la rnc.png|x14px]] [[République de Nouvelle Californie]]
|combattant2    = [[Fichier:ConfrerieAcier Symbole.png|x14px]] [[Confrérie de l'Acier]]<br/>[[Fichier:Fnv bannière CdA.png|x14px]] [[Confrérie de l'Acier (Chapitre du Mojave)|Chapitre du Mojave]]
|commandant1    = [[Fichier:Drapeau de la rnc.png|x14px]] [[Wendell Peterson]]<br/>(2253-2273)<br/>[[Fichier:Drapeau de la rnc.png|x14px]] [[Aaron Kimball]]<br/>(2273-)
|commandant2    = [[Fichier:ConfrerieAcier Symbole.png|x14px]] Haut Aîné [[Jeremy Maxson]]<br/>[[Fichier:Fnv bannière CdA.png|x14px]] Aîné [[Nolan McNamara]]<br />[[Fichier:Fnv bannière CdA.png|x14px]] Aîné [[Elijah]]<br/>(jusqu'en 2276)<br/>[[Fichier:Fnv bannière CdA.png|x14px]] [[Edgar Hardin|Paladin en Chef Edgar Hardin]]<br/>(2281-)
|forces1        = [[Armée de la République de Nouvelle Californie|Armée de la RNC]]<br/>[[Rangers de la République de Nouvelle Californie|Rangers de la RNC]]
|forces2        = [[Rangs de la Confrérie de l'Acier#Paladin|Paladins]], [[Rangs de la Confrérie de l'Acier#Chevalier|Chevaliers]], [[Rangs de la Confrérie de l'Acier#Scribe|Scribes]] et [[Robot|Robots]] de la Confrérie
|pertes1        = Inconnues
|pertes2        = {{Cellule liste|Lourdes pertes, dont la moitié du chapitre du Mojave|Perte de six bunkers militaires|Chapitres décimés}}
|partie de      =[[Campagne du Mojave]]
|précédent      =[[Guerre RNC-Enclave]]
|connexe        =[[Guerre RNC-Légion]]<br/>[[Guerre RNC-Grands Khans]]<br/>[[Guerre RNC-Tox]]<br/>[[Guerre RNC-Raiders]]<br/>[[Guerre Confrérie-Enclave]]
}}
Documentation transclues de Modèle:Infobox évènement/doc.