Différences entre les versions de « Utilisateur:Lunaramethyst/Infobox »
Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
{{#ifeq:{{{Colonnes|}}}|4| | |||
|- | |- | ||
! colspan=6 | {{{Nom1}}}<br />(''{{{NomVO1}}}'') !! colspan=6 | {{{Nom2}}}<br />(''{{{NomVO2}}}'') !! colspan=6 | {{{Nom3}}}<br />(''{{{NomVO3}}}'') !! colspan=6 | {{{Nom4}}}<br />(''{{{NomVO4}}}'') | |||
|- | |- | ||
<!-- Images -->| colspan=6 align="center" | {{{Image1}}} | <!-- Images -->| colspan=6 align="center" | {{{Image1}}} || colspan=6 align="center" | {{{Image2}}} || colspan=6 align="center" | {{{Image3}}} || colspan=6 align="center" | {{{Image4}}} | ||
|- | |- | ||
<!-- Coûts/Niveaux -->| colspan=3 align="center" | Coût : '''{{{Coût1}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux1}}} | <!-- Coûts/Niveaux -->| colspan=3 align="center" | Coût : '''{{{Coût1}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux1}}} || colspan=3 align="center" | Coût : '''{{{Coût2}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux2}}} || colspan=3 align="center" | Coût : '''{{{Coût3}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux3}}} ||colspan=3 align="center" | Coût : '''{{{Coût4}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux4}}} | ||
{{#if:{{{Pouvoir|}}}|| | {{#if:{{{Pouvoir|}}}|| | ||
|- | |- | ||
<!-- Forces/Faiblesses -->| colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs | <!-- Forces/Faiblesses -->| colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs ||colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie2}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules2}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs2}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs ||colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie3}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules3}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs3}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs ||colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie4}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules4}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs4}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs | ||
}} | }} | ||
|- | |- | ||
<!-- Attributs -->| colspan=6 | {{#if:{{{Mot-clé1|}}}|'''{{{Mot-clé1}}}''' : }}{{{Attribut1|}}}{{#if:{{{Mot-clé12|}}}|<br />'''{{{Mot-clé12}}}''' : }}{{{Attribut12|}}} | <!-- Attributs -->| colspan=6 | {{#if:{{{Mot-clé1|}}}|'''{{{Mot-clé1}}}''' : }}{{{Attribut1|}}}{{#if:{{{Mot-clé12|}}}|<br />'''{{{Mot-clé12}}}''' : }}{{{Attribut12|}}} || colspan=6 | {{#if:{{{Mot-clé2|}}}|'''{{{Mot-clé2}}}''' : }}{{{Attribut2|}}}{{#if:{{{Mot-clé22|}}}|<br />'''{{{Mot-clé22}}}''' : }}{{{Attribut22|}}} || colspan=6 | {{#if:{{{Mot-clé3|}}}|'''{{{Mot-clé3}}}''' : }}{{{Attribut3|}}}{{#if:{{{Mot-clé32|}}}|<br />'''{{{Mot-clé32}}}''' : }}{{{Attribut32|}}} || colspan=6 | {{#if:{{{Mot-clé4|}}}|'''{{{Mot-clé4}}}''' : }}{{{Attribut4|}}}{{#if:{{{Mot-clé42|}}}|<br />'''{{{Mot-clé42}}}''' : }}{{{Attribut42|}}} | ||
{{#if:{{{Pouvoir|}}}|||- | {{#if:{{{Pouvoir|}}}|||- | ||
<!-- Capacités -->| colspan=6 {{#if:{{{Capacité1|}}}|bgcolor="#C0CC66"}}| {{{Capacité1|}}} | <!-- Capacités -->| colspan=6 {{#if:{{{Capacité1|}}}|bgcolor="#C0CC66"}}| {{{Capacité1|}}} || colspan=6 {{#if:{{{Capacité2|}}}|bgcolor="#C0CC66"}}| {{{Capacité2|}}} || colspan=6 {{#if:{{{Capacité3|}}}|bgcolor="#C0CC66"}}| {{{Capacité3|}}} || colspan=6 {{#if:{{{Capacité4|}}}|bgcolor="#C0CC66"}}| {{{Capacité4|}}} | ||
}} | }} | ||
|- | |- | ||
<!-- Commandants -->| colspan=6 align="center" | {{{Commandant1|}}} | <!-- Commandants -->| colspan=6 align="center" | {{{Commandant1|}}} || colspan=6 align="center" | {{{Commandant2|}}} || colspan=6 align="center" | {{{Commandant3|}}} || colspan=6 align="center" | {{{Commandant4|}}} | ||
|- | |- | ||
}} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Ligne 123 : | Ligne 105 : | ||
*Masquer : Permet de ne pas afficher les colonnes 2 (Masquer2), 3 (Masquer3) ou 4 (Masquer4). Utiliser Masquer3 masque les colonnes 3 et 4 en même temps, et Masquer2 masque les colonnes 2, 3 et 4. | *Masquer : Permet de ne pas afficher les colonnes 2 (Masquer2), 3 (Masquer3) ou 4 (Masquer4). Utiliser Masquer3 masque les colonnes 3 et 4 en même temps, et Masquer2 masque les colonnes 2, 3 et 4. | ||
</noinclude> | </noinclude> | ||
<!-- | |||
|- | |||
<!-- Noms -->! colspan=6 | {{{Nom1}}}<br />(''{{{NomVO1}}}'')<!-- | |||
-->{{#if:{{{Masquer2|}}}|| !! colspan=6 | {{{Nom2}}}<br />(''{{{NomVO2}}}'')<!-- | |||
-->{{#if:{{{Masquer3|}}}|| !! colspan=6 | {{{Nom3}}}<br />(''{{{NomVO3}}}'')<!-- | |||
-->{{#if:{{{Masquer4|}}}|| !! colspan=6 | {{{Nom4}}}<br />(''{{{NomVO4}}}'')}}}}}} | |||
|- | |||
<!-- Images -->| colspan=6 align="center" | {{{Image1}}}<!-- | |||
-->{{#if:{{{Masquer2|}}}|| || colspan=6 align="center" | {{{Image2}}}<!-- | |||
-->{{#if:{{{Masquer3|}}}|| || colspan=6 align="center" | {{{Image3}}}<!-- | |||
-->{{#if:{{{Masquer4|}}}|| || colspan=6 align="center" | {{{Image4}}} }}}}}} | |||
|- | |||
<!-- Coûts/Niveaux -->| colspan=3 align="center" | Coût : '''{{{Coût1}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux1}}} <!-- | |||
-->{{#if:{{{Masquer2|}}}|| ||colspan=3 align="center" | Coût : '''{{{Coût2}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux2}}}<!-- | |||
--> {{#if:{{{Masquer3|}}}|| ||colspan=3 align="center" | Coût : '''{{{Coût3}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux3}}}<!-- | |||
-->{{#if:{{{Masquer4|}}}|| ||colspan=3 align="center" | Coût : '''{{{Coût4}}}''' || colspan=3 align="center" | Niveaux : {{{Niveaux4}}} }}}}}} | |||
{{#if:{{{Pouvoir|}}}|| | |||
|- | |||
<!-- Forces/Faiblesses -->| colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs1}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs<!-- | |||
-->{{#if:{{{Masquer2|}}}|| ||colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie2}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules2}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs2}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs<!-- | |||
-->{{#if:{{{Masquer3|}}}|| ||colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie3}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules3}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs3}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs<!-- | |||
-->{{#if:{{{Masquer4|}}}|| ||colspan=2 align="center" bgcolor="#{{#switch:{{{Infanterie4}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Infanterie || colspan=2 align="center" bgcolor="#{{#switch:{{{Véhicules4}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Véhicules || colspan=2 align="center" bgcolor="#{{#switch:{{{Aéronefs4}}}|vert=A8E4A0|rouge=F08080|jaune=C0CC66|gris=999999|default=}}" | Aéronefs }}}}}} | |||
}} | |||
|- | |||
<!-- Attributs -->| colspan=6 | {{#if:{{{Mot-clé1|}}}|'''{{{Mot-clé1}}}''' : }}{{{Attribut1|}}}{{#if:{{{Mot-clé12|}}}|<br />'''{{{Mot-clé12}}}''' : }}{{{Attribut12|}}} <!-- | |||
-->{{#if:{{{Masquer2|}}}|| || colspan=6 | {{#if:{{{Mot-clé2|}}}|'''{{{Mot-clé2}}}''' : }}{{{Attribut2|}}}{{#if:{{{Mot-clé22|}}}|<br />'''{{{Mot-clé22}}}''' : }}{{{Attribut22|}}} <!-- | |||
-->{{#if:{{{Masquer3|}}}|| || colspan=6 | {{#if:{{{Mot-clé3|}}}|'''{{{Mot-clé3}}}''' : }}{{{Attribut3|}}}{{#if:{{{Mot-clé32|}}}|<br />'''{{{Mot-clé32}}}''' : }}{{{Attribut32|}}} <!-- | |||
-->{{#if:{{{Masquer4|}}}|| || colspan=6 | {{#if:{{{Mot-clé4|}}}|'''{{{Mot-clé4}}}''' : }}{{{Attribut4|}}}{{#if:{{{Mot-clé42|}}}|<br />'''{{{Mot-clé42}}}''' : }}{{{Attribut42|}}} }}}}}} | |||
{{#if:{{{Pouvoir|}}}|||- | |||
<!-- Capacités -->| colspan=6 {{#if:{{{Capacité1|}}}|bgcolor="#C0CC66"}}| {{{Capacité1|}}}<!-- | |||
-->{{#if:{{{Masquer2|}}}|| || colspan=6 {{#if:{{{Capacité2|}}}|bgcolor="#C0CC66"}}| {{{Capacité2|}}}<!-- | |||
-->{{#if:{{{Masquer3|}}}|| || colspan=6 {{#if:{{{Capacité3|}}}|bgcolor="#C0CC66"}}| {{{Capacité3|}}}<!-- | |||
-->{{#if:{{{Masquer4|}}}|| || colspan=6 {{#if:{{{Capacité4|}}}|bgcolor="#C0CC66"}}| {{{Capacité4|}}} }}}}}} | |||
}} | |||
|- | |||
<!-- Commandants -->| colspan=6 align="center" | {{{Commandant1|}}}<!-- | |||
-->{{#if:{{{Masquer2|}}}|| || colspan=6 align="center" | {{{Commandant2|}}} <!-- | |||
-->{{#if:{{{Masquer3|}}}|| || colspan=6 align="center" | {{{Commandant3|}}} <!-- | |||
-->{{#if:{{{Masquer4|}}}|| || colspan=6 align="center" | {{{Commandant4|}}} }}}}}} | |||
|- | |||
--> |
Version du 20 janvier 2017 à 19:38
Ce modèle est exclusif à la page Blitz/Liste et permet de faciliter l'utilisation des tableaux. Ce modèle créé une unique ligne de quatre colonnes. Si plusieurs lignes de tableau sont nécessaires, placer plusieurs fois ce modèle à la suite. Ces modèles doivent être entourés des codes « {| class="wikitable" » et « |} » pour fonctionner.
{{Utilisateur:Lunaramethyst/Infobox |Pouvoir= |Nom1= |NomVO1= |Image1= |Coût1= |Niveaux1= |Infanterie1= |Véhicules1= |Aéronefs1= |Mot-clé1= |Attribut1= |Mot-clé12= |Attribut12= |Capacité1= |Commandant1= |Masquer2= |Nom2= |NomVO2= |Image2= |Coût2= |Niveaux2= |Infanterie2= |Véhicules2= |Aéronefs2= |Mot-clé2= |Attribut2= |Mot-clé22= |Attribut22= |Capacité2= |Commandant2= |Masquer3= |Nom3= |NomVO3= |Image3= |Coût3= |Niveaux3= |Infanterie3= |Véhicules3= |Aéronefs3= |Mot-clé3= |Attribut3= |Capacité3= |Mot-clé32= |Attribut32= |Commandant3= |Masquer4= |Nom4= |NomVO4= |Image4= |Coût4= |Niveaux4= |Infanterie4= |Véhicules4= |Aéronefs4= |Mot-clé4= |Attribut4= |Mot-clé42= |Attribut42= |Capacité4= |Commandant4= }}
Les chiffres suivant les noms de paramètres indiquent la colonne concernée. Si le paramètre Masquer est utilisé, les paramètres liés aux colonnes masquées peuvent être supprimés.
- Pouvoir : Si les cartes sont des pouvoirs, indiquer « Oui » (ou autre chose). Sinon, ne rien mettre. Permet de désactiver les cases des forces et faiblesses et de la capacité, qui ne sont pas applicables à ce type de cartes.
- Nom : Le nom en français de la carte
- NomVO : Le nom en anglais de la carte
- Coût : Coût de la carte en énergie
- Niveaux : Niveau maximal atteignable.
- Infanterie/Véhicules/Aéronefs : Indiquer la couleur présente sur la carte parmi les quatre options possibles : vert, rouge, jaune ou gris. Indiquer une autre couleur mettra la couleur par défaut du tableau.
- Mot-clé : Mot(s)-clé(s) de(s) l'attribut(s) de la carte, si applicable.
- Attribut : Attribut de la carte, ou description du ou des mot(s)-clé(s), si applicable.
- Capacité : Capacité associée au bouton Y de la carte, si applicable. La couleur jaune ne s'active que si ce paramètre est rempli.
- Commandant : Commandant auquel la carte est unique, si applicable.
- Masquer : Permet de ne pas afficher les colonnes 2 (Masquer2), 3 (Masquer3) ou 4 (Masquer4). Utiliser Masquer3 masque les colonnes 3 et 4 en même temps, et Masquer2 masque les colonnes 2, 3 et 4.
! colspan=6 | {{{Nom1}}}
({{{NomVO1}}})!! colspan=6
|-
| colspan=6 align="center" | {{{Image1}}}
|-
| colspan=3 align="center" | Coût : {{{Coût1}}} || colspan=3 align="center" | Niveaux : {{{Niveaux1}}}
|- | colspan=6 |
|- | colspan=6 align="center" | |- -->