Version actuelle |
Votre texte |
Ligne 5 : |
Ligne 5 : |
| |for = {{#switch: {{{2}}}|1 = <nowiki>#999999</nowiki>|2 = <nowiki>#DDDDDD</nowiki>|3 = <nowiki>#f0f0f0</nowiki>}} | | |for = {{#switch: {{{2}}}|1 = <nowiki>#999999</nowiki>|2 = <nowiki>#DDDDDD</nowiki>|3 = <nowiki>#f0f0f0</nowiki>}} |
| |rebelles = {{#switch: {{{2}}}|1 = <nowiki>#cc2200</nowiki>|2 = <nowiki>#ff7766</nowiki>|3 = <nowiki>#ffdddd</nowiki>}} | | |rebelles = {{#switch: {{{2}}}|1 = <nowiki>#cc2200</nowiki>|2 = <nowiki>#ff7766</nowiki>|3 = <nowiki>#ffdddd</nowiki>}} |
| |humanc = {{#switch: {{{2}}}|1 = <nowiki>#A0522D</nowiki>|2 = <nowiki>#F5DEB3</nowiki>|3 = <nowiki>#FFF8DC</nowiki>}}
| |
| |par = {{#switch: {{{2}}}|1 = <nowiki>#808000</nowiki>|2 = <nowiki>#808040</nowiki>|3 = <nowiki>#FFF8DC</nowiki>}}
| |
| |esport = {{#switch: {{{2}}}|1 = <nowiki>#0F0441</nowiki>|2 = <nowiki>#A00206</nowiki>|3 = <nowiki>#ffffff</nowiki>}}
| |
| |ent = {{#switch: {{{2}}}|1 = <nowiki>#08A8E5</nowiki>|2 = <nowiki>#71848B</nowiki>|3 = <nowiki>#f0f0f0</nowiki>}}
| |
| |sos = {{#switch: {{{2}}}|1 = <nowiki>#D55208</nowiki>|2 = <nowiki>#FFED95</nowiki>|3 = <nowiki>#FFF8DC</nowiki>}}
| |
| |paria = {{#switch: {{{2}}}|1 = <nowiki>#8A0108</nowiki>|2 = <nowiki>#71848B</nowiki>|3 = <nowiki>#f0f0f0</nowiki>}}
| |
| |#default = {{#switch: {{{2}}}|1 = <nowiki>#000099</nowiki>|2 = <nowiki>#4477FF</nowiki>|3 = <nowiki>#f0f0f0</nowiki>}} | | |#default = {{#switch: {{{2}}}|1 = <nowiki>#000099</nowiki>|2 = <nowiki>#4477FF</nowiki>|3 = <nowiki>#f0f0f0</nowiki>}} |
| }}</includeonly><noinclude> | | }}</includeonly><noinclude> |
| ==Usage==
| | Dans les infoboxes utilisant ce modèle, indiquez dans le paramètre ''faction'' le mot indiqué en italique : |
| <pre>{{couleur|faction|nuance}}</pre>
| |
|
| |
|
| Renvoie le code hexadécimal de la couleur voulue, en fonction de la faction et du numéro de nuance choisi. Le croisillon en début de code est inclus. En usage dans les [[Aide:Infobox|infoboxes]].
| | *Pour l'UNSC, nuances vertes : ''unsc'' |
| | *Pour les Covenants, nuances violettes : ''cov'' |
| | *Pour les Brutes, nuances marrons : ''brutes'' |
| | *Pour les Forerunners , nuances grises: ''for'' |
| | *Pour les Rebelles, nuances rouges : ''rebelles'' |
|
| |
|
| {| class=wikitable
| | Si vous n'indiquez rien dans le paramètre ''faction'', l'infobox s'affichera avec les nuances de bleu. |
| ! Faction
| |
| ! Code
| |
| ! Couleur primaire
| |
| ! Couleur secondaire
| |
| ! Couleur tertiaire
| |
| |-
| |
| | [[UNSC]] et affiliés
| |
| | unsc
| |
| | style="background-color:{{couleur|unsc|1}}; text-align:center; color:#ffffff;" | {{couleur|unsc|1}}
| |
| | style="background-color:{{couleur|unsc|2}}; text-align:center;" | {{couleur|unsc|2}}
| |
| | style="background-color:{{couleur|unsc|3}}; text-align:center;" | {{couleur|unsc|3}}
| |
| |-
| |
| | [[Alliance Covenante]], [[Covenants de Jul 'Mdama]] et affiliés
| |
| | cov
| |
| | style="background-color:{{couleur|cov|1}}; text-align:center; color:#ffffff;" |{{couleur|cov|1}}
| |
| | style="background-color:{{couleur|cov|2}}; text-align:center;" |{{couleur|cov|2}}
| |
| | style="background-color:{{couleur|cov|3}}; text-align:center;" |{{couleur|cov|3}}
| |
| |-
| |
| | [[Brutes]] (hors personnages)
| |
| | brutes
| |
| | style="background-color:{{couleur|brutes|1}}; text-align:center; color:#ffffff;" |{{couleur|brutes|1}}
| |
| | style="background-color:{{couleur|brutes|2}}; text-align:center;" |{{couleur|brutes|2}}
| |
| | style="background-color:{{couleur|brutes|3}}; text-align:center;" |{{couleur|brutes|3}}
| |
| |-
| |
| | [[Forerunner]]s
| |
| | for
| |
| | style="background-color:{{couleur|for|1}}; text-align:center; color:#ffffff;" |{{couleur|for|1}}
| |
| | style="background-color:{{couleur|for|2}}; text-align:center;" |{{couleur|for|2}}
| |
| | style="background-color:{{couleur|for|3}}; text-align:center;" |{{couleur|for|3}}
| |
| |-
| |
| | [[Rebelles]] (dont [[Hérétiques]])
| |
| | rebelles
| |
| | style="background-color:{{couleur|rebelles|1}}; text-align:center; color:#ffffff;" |{{couleur|rebelles|1}}
| |
| | style="background-color:{{couleur|rebelles|2}}; text-align:center;" |{{couleur|rebelles|2}}
| |
| | style="background-color:{{couleur|rebelles|3}}; text-align:center;" |{{couleur|rebelles|3}}
| |
| |-
| |
| | [[Anciens humains]]
| |
| | humanc
| |
| | style="background-color:{{couleur|humanc|1}}; text-align:center; color:#ffffff;" |{{couleur|humanc|1}}
| |
| | style="background-color:{{couleur|humanc|2}}; text-align:center;" |{{couleur|humanc|2}}
| |
| | style="background-color:{{couleur|humanc|3}}; text-align:center;" |{{couleur|humanc|3}}
| |
| |-
| |
| | [[Parasite]]
| |
| | par
| |
| | style="background-color:{{couleur|par|1}}; text-align:center; color:#ffffff;" |{{couleur|par|1}}
| |
| | style="background-color:{{couleur|par|2}}; text-align:center;" |{{couleur|par|2}}
| |
| | style="background-color:{{couleur|par|3}}; text-align:center;" |{{couleur|par|3}}
| |
| |-
| |
| | [[Entités]]
| |
| | ent
| |
| | style="background-color:{{couleur|ent|1}}; text-align:center; color:#ffffff;" |{{couleur|ent|1}}
| |
| | style="background-color:{{couleur|ent|2}}; text-align:center;" |{{couleur|ent|2}}
| |
| | style="background-color:{{couleur|ent|3}}; text-align:center;" |{{couleur|ent|3}}
| |
| |-
| |
| | [[Lames de Sanghelios]]
| |
| | sos
| |
| | style="background-color:{{couleur|sos|1}}; text-align:center; color:#ffffff;" |{{couleur|sos|1}}
| |
| | style="background-color:{{couleur|sos|2}}; text-align:center;" |{{couleur|sos|2}}
| |
| | style="background-color:{{couleur|sos|3}}; text-align:center;" |{{couleur|sos|3}}
| |
| |-
| |
| | [[Parias]]
| |
| | paria
| |
| | style="background-color:{{couleur|paria|1}}; text-align:center; color:#ffffff;" |{{couleur|paria|1}}
| |
| | style="background-color:{{couleur|paria|2}}; text-align:center;" |{{couleur|paria|2}}
| |
| | style="background-color:{{couleur|paria|3}}; text-align:center;" |{{couleur|paria|3}}
| |
| |-
| |
| | Couleur par défaut (inclus personnages non affiliés, civils, criminels...)
| |
| |
| |
| | style="background-color:{{couleur||1}}; text-align:center; color:#ffffff;" |{{couleur||1}}
| |
| | style="background-color:{{couleur||2}}; text-align:center;" |{{couleur||2}}
| |
| | style="background-color:{{couleur||3}}; text-align:center;" |{{couleur||3}}
| |
| |}
| |
|
| |
|
| ==Code==
| | |
| {| class="wikitable center"
| | <toggledisplay showtext="Afficher les informations techniques" hidetext="Masquer les informations techniques"> |
| ! width=50% | Code
| | Renvoie le code hexadécimal de la couleur voulue, en fonction de la faction et du numéro de nuance choisi. |
| ! width=50% | Résultat
| | |
| |-
| | <nowiki>{{couleur|faction|nuance}}</nowiki> |
| |<nowiki>{{couleur|unsc|1}}</nowiki>
| | |
| |{{couleur|unsc|1}}
| | *unsc |
| |}
| | **1 : <span style="background-color:#338833;"> </span> |
| [[Catégorie:WikiHalo]]
| | **2 : <span style="background-color:#66cc66;"> </span> |
| | **3 : <span style="background-color:#eeffee;"> </span> |
| | *cov |
| | **1 : <span style="background-color:#5500cc;"> </span> |
| | **2 : <span style="background-color:#9966dd;"> </span> |
| | **3 : <span style="background-color:#eeddff;"> </span> |
| | *brutes |
| | **1 : <span style="background-color:#552200;"> </span> |
| | **2 : <span style="background-color:#994433;"> </span> |
| | **3 : <span style="background-color:#eeccbb;"> </span> |
| | *for |
| | **1 : <span style="background-color:#999999;"> </span> |
| | **2 : <span style="background-color:#DDDDDD;"> </span> |
| | **3 : <span style="background-color:#f0f0f0;"> </span> |
| | *rebelles |
| | **1 : <span style="background-color:#cc2200;"> </span> |
| | **2 : <span style="background-color:#ff7766;"> </span> |
| | **3 : <span style="background-color:#ffdddd;"> </span> |
| | *Par défaut (premier paramètre absent) |
| | **1 : <span style="background-color:#000099;"> </span> |
| | **2 : <span style="background-color:#4477FF;"> </span> |
| | **3 : <span style="background-color:#f0f0f0;"> </span> |
| | </toggledisplay> |
| </noinclude> | | </noinclude> |