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

Darkomen (discussion | contributions)
Aucun résumé des modifications
Rafale63 (discussion | contributions)
mAucun résumé des modifications
 
(6 versions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0 0 0.5em 0.5em; border-spacing: 0; width: 17em"
<includeonly>{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0 0 0.5em 0.5em; border-spacing: 0; width: 17em"
|+ style="font-weight: bold" |{{{name}}}
|+ style="font-weight: bold" |{{{nom}}}
|-
|-
| colspan="2" |  
| colspan="2" |  
{| style="border-spacing: 0; background: black; padding: 0.2em; border: 1px solid white; margin: 0.5em auto"
{| style="border-spacing: 0; background: black; padding: 0.2em; border: 1px solid white; margin: 0.5em auto"
|-
|-
! colspan="2" style="font-size: 200%; background: #000; padding: 0.1em 0.25em;color:{{{color}}};" |  {{{symbol}}}
! colspan="2" style="font-size: 200%; background: #000; padding: 0.1em 0.25em;color:{{{couleur}}};" |  {{{symbole}}}
|}
|}
|-
|-
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | [[Biome]]
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Biome
|-
|-
| colspan="2" style="padding: 0.25em" |
| colspan="2" style="padding: 0.25em" |
{{{biome|?}}}
{{{biome|?}}}
|-
|-
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | {{#ifeq:{{{butcher|yes}}}|no|Rotting leaves|Butchering returns}}
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | {{#ifeq:{{{apprivoisable|non}}}|non|Ne peut être apprivoisé|Caractéristiques apprivoisé}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{apprivoisable|non}}}|non||Prix de vente}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{apprivoisable|non}}}|non||{{{valeur|?}}}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | [[Bone]]s
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{apprivoisable|non}}}|non||{{#ifeq:{{{dressable|non}}}|non|Ne peut être dressé|Peut être dressé}}}}
| style="text-align: right; padding: 0.1em 0.25em" | {{{bones|?}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" |  
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Taille en cm<sup>3</sup>
[[Chunk]]s
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{butcher|yes}}}|no|N/A|{{{chunks|?}}}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | [[Meat]]
| colspan="2" style="padding: 0.25em" |
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{butcher|yes}}}|no|N/A|{{{meat|?}}}}}
'''Taille du corps enfant'''<br>{{{enfant|N/A}}} cm<sup>3</sup>
|-
| colspan="2" style="padding: 0.25em" |
'''Taille du corps adolescent'''<br>{{{adolescent|N/A}}} cm<sup>3</sup>
|-
| colspan="2" style="padding: 0.25em" |
'''Taille du corps adulte'''<br>{{{adulte|N/A}}} cm<sup>3</sup>
|-
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | {{#ifeq:{{{abattage|oui}}}|non|Items sur cadavre|Gain à l'abattage (en nbr)}}
|-
| colspan="2" style="padding: 0.25em" |'''Nourriture'''
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{viande|N/A}}}|N/A||[[Meat|Pièces de viande]] (meat)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{viande|N/A}}}|N/A||{{{viande}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{graisse|N/A}}}|N/A||Graisses (fat)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{graisse|N/A}}}|N/A||{{{graisse}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{cerveau|N/A}}}|N/A||Cerveaux (brain)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{cerveau|N/A}}}|N/A||{{{cerveau}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{coeur|N/A}}}|N/A||Coeurs (heart)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{coeur|N/A}}}|N/A||{{{coeur}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{poumon|N/A}}}|N/A||Poumons (lung)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{poumon|N/A}}}|N/A||{{{poumon}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{intestin|N/A}}}|N/A||Intestins (intestine)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{intestin|N/A}}}|N/A||{{{intestin}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{foie|N/A}}}|N/A||Foies (liver)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{foie|N/A}}}|N/A||{{{foie}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{rein|N/A}}}|N/A||Reins (kidney)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{rein|N/A}}}|N/A||{{{rein}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{tripe|N/A}}}|N/A||Tripes}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{tripe|N/A}}}|N/A||{{{tripe}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{ris|N/A}}}|N/A||Ris de veau (sweetbread)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{ris|N/A}}}|N/A||{{{ris}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{oeil|N/A}}}|N/A||Yeux (eye)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{oeil|N/A}}}|N/A||{{{oeil}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{rate|N/A}}}|N/A||Rates (spleen)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{rate|N/A}}}|N/A||{{{rate}}}}}
|-
| colspan="2" style="padding: 0.25em" |'''Matériaux'''
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{os|N/A}}}|N/A||[[Bone|Os]] (bone)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{os|N/A}}}|N/A||{{{os|N/A}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{crane|N/A}}}|N/A||[[Skull|Crânes]] (skull)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{crane|N/A}}}|N/A||{{{crane|N/A}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{ivoire|N/A}}}|N/A||Ivoires (ivory)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{ivoire|N/A}}}|N/A||{{{ivoire|N/A}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{dent|N/A}}}|N/A||Dents (tooth)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{dent|N/A}}}|N/A||{{{dent|N/A}}}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" |  
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{sabot|N/A}}}|N/A||Sabots (hoof)}}
[[Fat]]
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{sabot|N/A}}}|N/A||{{{sabot|N/A}}}}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{butcher|yes}}}|no|N/A|{{{fat|?}}}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" |  
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{corne|N/A}}}|N/A||Cornes (horn)}}
[[Skull]]s
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{corne|N/A}}}|N/A||{{{corne|N/A}}}}}
| style="text-align: right; padding: 0.1em 0.25em" | {{{skulls|?}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | [[Skin]]
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{coquille|N/A}}}|N/A||Coquilles (shell)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{butcher|yes}}}|no|N/A|{{{skin|?}}}}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{coquille|N/A}}}|N/A||{{{coquille|N/A}}}}}
|-
|-
| colspan="2" style="border-top: 1px solid #aaa; border-bottom: 0px solid #aaa; background: #eee; font-size:90%; text-align:center;" | {{#ifeq: {{{wiki}}}|no||[http://fr.wikipedia.org/wiki/{{anchorencode:{{{name}}}}} Article Wikipedia]}}
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{peau|N/A}}}|N/A||Peaux (skin)}}
|}<noinclude>
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{peau|N/A}}}|N/A||{{{peau|N/A}}}}}
<br><br><br><br><br><br><br><br><br><br><br><br>
|-
Utilisation:
| colspan="2" style="border-top: 1px solid #aaa; border-bottom: 0px solid #aaa; background: #eee; font-size:90%; text-align:center;" | {{#ifeq: {{{wiki}}}|no||[http://fr.wikipedia.org/wiki/{{anchorencode:{{{nom}}}}} Article Wikipedia]}}
|}</includeonly>
<noinclude>
== Exemple ==
<pre><nowiki>
{{CreatureInfo
|nom=&Eacute;l&eacute;phant
<!--Le symbole est un symbole ascii.Pour la couleur, il faut soit son rgb sous la forme rgb(255,255,255) sachant que les chiffres vont de 0 à 255, soit son code hexa à 6 chiffres. Le code RGB peut être obtenu via Paint, avec l'outil pipette-->
|symbole=E
|couleur=rgb(192, 192, 192)
|biome=
* Toute forêt tropicale (tropical forest)
* Brousse tropicale (Tropical shrubland)
|apprivoisable=oui <!--Par défaut, valeur fixée sur 'non' (pas besoin d'ajouter ce paramètre si l'animal n'est pas apprivoisable)-->
|valeur=500
|dressable=oui <!--Par défaut, valeur fixée sur 'non' (pas besoin d'ajouter ce paramètre si l'animal ne peut être dressé)-->
|enfant=500,000
|adolescent=2,500,000
|adulte=5,000,000
|viande=36-190
|graisse=13-58
|cerveau=4-6
|poumon=8-12
|intestin=14-19
|foie=4-6
|rein=4-6
|tripe=4-6
|ris=2-3
|rate=2-3
|os=49-67
|crane=1
|ivoire=3
|peau=cuir brut <!--Indiquer le type de peau-->
}}</nowiki></pre>
Note: Ne pas inclure les paramêtres n'existant pas ! ex: si un animal ne donne pas de sabots lors de sa mort ou de son abattage, ne pas mettre le paramètre <pre> |sabot=0 </pre>
 
'''Autres paramètres non inclus dans l'exemple:'''
<pre><nowiki>
<pre><nowiki>
{{CreatureInfo|name=&Eacute;l&eacute;phant|symbol=E|color=rgb(192, 192, 192)|
|abattage=non <!--Par défaut, valeur fixée sur 'oui' (pas besoin d'ajouter ce paramètre si l'animal peut être abattu)--></nowiki>
Bones=16|chunks=16|meat=16|fat=10|skulls=1|skin=Yes|
|coeur=
biome=
|oeil=
* Any tropical forest
|dent=
* Tropical shrubland
|sabot=
}}
|corne=
</nowiki></pre>
|coquille=</pre>


{{CreatureInfo|name=&Eacute;l&eacute;phant|symbol=E|color=rgb(192, 192, 192)|
{{CreatureInfo
bones=16|chunks=16|meat=16|fat=10|skulls=1|skin=Yes
|nom=&Eacute;l&eacute;phant
<!--Le symbole est un symbole ascii.Pour la couleur, il faut soit son rgb sous la forme rgb(255,255,255) sachant que les chiffres vont de 0 à 255, soit son code hexa à 6 chiffres. Le code RGB peut être obtenu via Paint, avec l'outil pipette-->
|symbole=E
|couleur=rgb(192, 192, 192)
|biome=
|biome=
* Any tropical forest
* Toute forêt tropicale (tropical forest)
* Tropical shrubland
* Brousse tropicale (Tropical shrubland)
|apprivoisable=oui <!--Par défaut, valeur fixée sur 'non' (pas besoin d'ajouter ce paramètre si l'animal n'est pas apprivoisable)-->
|valeur=500
|dressable=oui <!--Par défaut, valeur fixée sur 'non' (pas besoin d'ajouter ce paramètre si l'animal ne peut être dressé)-->
|enfant=500,000
|adolescent=2,500,000
|adulte=5,000,000
|viande=36-190
|graisse=13-58
|cerveau=4-6
|poumon=8-12
|intestin=14-19
|foie=4-6
|rein=4-6
|tripe=4-6
|ris=2-3
|rate=2-3
|os=49-67
|crane=1
|ivoire=3
|peau=cuir brut
}}
}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>