« Modèle:Infobox évènement » : différence entre les versions
Contenu remplacé par « <onlyinclude><includeonly>{{#invoke:Infobox|build|nom=Évènement}}</includeonly></onlyinclude> {{Documentation}} Évènement » Balises : Contenu remplacé Révoqué |
Annulation des modifications 73483 de Kharmitch (discussion) Balise : Annulation |
||
Ligne 1 : | Ligne 1 : | ||
<onlyinclude><includeonly>{{# | <onlyinclude><includeonly><!-- | ||
{{ | |||
################################# | |||
## 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}} | |||
[[Catégorie:Modèles Infobox|Évènement]] | [[Catégorie:Modèles Infobox|Évènement]] |
Version du 29 juillet 2021 à 14:28
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ètre | Description | Type | État | |
---|---|---|---|---|
Nom | nom | Titre de l'infobox | Chaîne | facultatif |
Image | image | Illustration de l'infobox | Fichier | facultatif |
Image 2 | image2 | Illustration de l'infobox | Fichier | facultatif |
Image 3 | image3 | Illustration de l'infobox | Fichier | facultatif |
Image 4 | image4 | Illustration de l'infobox | Fichier | facultatif |
Image 5 | image5 | Illustration de l'infobox | Fichier | facultatif |
Légende | légende | Légende de l'illustration | Chaîne | facultatif |
Date | date | Date à laquelle a eu lieu le conflit. | Chaîne | facultatif |
Lieu | lieu | L'endroit où le conflit a eu lieu. | Chaîne | facultatif |
Casus belli | casus belli | Le casus belli du conflit | Chaîne | facultatif |
Issue | issue | Issue de l'affrontement ou du conflit. Conséquence. | Chaîne | facultatif |
combattant 1 | combattant1 | Partie engagée dans le conflit. À utiliser avec le champ "combattant2" en principe. | Chaîne | facultatif |
combattant 2 | combattant2 | Partie engagée dans le conflit. À utiliser avec le champ "combattant1" en principe. | Chaîne | facultatif |
combattant 3 | combattant3 | Partie engagée dans le conflit. | Chaîne | facultatif |
combattant 4 | combattant4 | Partie engagée dans le conflit. | Chaîne | facultatif |
Commandant 1 | commandant1 | Commandant des "combattant1". | Chaîne | facultatif |
Commandant 2 | commandant2 | Commandant des "combattant2". | Chaîne | facultatif |
Commandant 3 | commandant3 | Commandant des "combattant3". | Chaîne | facultatif |
Commandant 4 | commandant4 | Commandant des "combattant4". | Chaîne | facultatif |
Forces 1 | forces1 | Les effectifs des forces engagées par "combattant1". | Chaîne | facultatif |
Forces 2 | forces2 | Les effectifs des forces engagées par "combattant2". | Chaîne | facultatif |
Forces 3 | forces3 | Les effectifs des forces engagées par "combattant3". | Chaîne | facultatif |
Forces 4 | forces4 | Les effectifs des forces engagées par "combattant4". | Chaîne | facultatif |
Pertes 1 | pertes1 | Les pertes subies par "combattant1". | Chaîne | facultatif |
Pertes 2 | pertes2 | Les pertes subies par "combattant2". | Chaîne | facultatif |
Pertes 3 | pertes3 | Les pertes subies par "combattant3". | Chaîne | facultatif |
Pertes 4 | pertes4 | Les pertes subies par "combattant4". | Chaîne | facultatif |
Partie de | partie de | Si l'événement fait partie d'un événement plus important | Chaîne | facultatif |
Connexe | connexe | Tous les événements en relation avec cet événement. | Chaîne | facultatif |
précédent | précédent | Si cet événement fait partie d'une série d'événement, donner le suivant. | Chaîne | facultatif |
Suivant | suivant | Si cet événement fait partie d'une série d'événement, donner le suivant. | Chaîne | facultatif |
Exemples
Grande Guerre
{{#vardefine:ibevent-parti-all|}}{{#vardefine:ibevent-parti-count|26}}{{#vardefine:ibevent-parti1|{}}{{#vardefine:ibevent-parti2|{}}{{#vardefine:ibevent-parti3|
- }}{{#vardefine:ibevent-parti4|v}}Modèle:Infobox
{{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
{{#vardefine:ibevent-parti-all|}}{{#vardefine:ibevent-parti-count|26}}{{#vardefine:ibevent-parti1|{}}{{#vardefine:ibevent-parti2|{}}{{#vardefine:ibevent-parti3|
- }}{{#vardefine:ibevent-parti4|v}}Modèle:Infobox
{{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]]
}}