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

Darkomen (discussion | contributions)
Aucun résumé des modifications
Rafale63 (discussion | contributions)
mAucun résumé des modifications
 
(4 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" |{{{nom}}}
|+ style="font-weight: bold" |{{{nom}}}
|-
|-
Ligne 18 : Ligne 18 :
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{apprivoisable|non}}}|non||{{{valeur|?}}}}}
| 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" | {{#ifeq:{{{apprivoisable|non}}}|non||{{#ifeq:{{{dressable|non}}}|non|Non dressable|Dressable}}}}
! 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é}}}}
|-
|-
! 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>
! 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>
|-
|-
Ligne 35 : Ligne 31 :
'''Taille du corps adulte'''<br>{{{adulte|N/A}}} cm<sup>3</sup>
'''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="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)}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | [[Bone|Os]]
| colspan="2" style="padding: 0.25em" |'''Nourriture'''
| style="text-align: right; padding: 0.1em 0.25em" | {{{os|N/A}}}
|-
! 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:{{{abattage|oui}}}|non||Morceaux}}
! 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:{{{abattage|oui}}}|non||{{{morceau|N/A}}}}}
| 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:{{{abattage|oui}}}|non||[[Meat|Pièces de viande]]}}
! 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:{{{abattage|oui}}}|non||{{{viande|N/A}}}}}
| 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" |  
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{rate|N/A}}}|N/A||Rates (spleen)}}
{{#ifeq:{{{abattage|oui}}}|non||Graisses}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{rate|N/A}}}|N/A||{{{rate}}}}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{abattage|oui}}}|non||{{{graisse|N/A}}}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" |
| colspan="2" style="padding: 0.25em" |'''Matériaux'''
[[Skull|Squelettes]]
| style="text-align: right; padding: 0.1em 0.25em" | {{{squelette|N/A}}}
|-
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{abattage|oui}}}|non||Peaux}}
! 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:{{{abattage|oui}}}|non||{{{peau|N/A}}}}}
| 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" | {{#ifeq:{{{sabot|N/A}}}|N/A||Sabots (hoof)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{sabot|N/A}}}|N/A||{{{sabot|N/A}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{corne|N/A}}}|N/A||Cornes (horn)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{corne|N/A}}}|N/A||{{{corne|N/A}}}}}
|-
! 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:{{{coquille|N/A}}}|N/A||{{{coquille|N/A}}}}}
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | {{#ifeq:{{{peau|N/A}}}|N/A||Peaux (skin)}}
| style="text-align: right; padding: 0.1em 0.25em" | {{#ifeq:{{{peau|N/A}}}|N/A||{{{peau|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:{{{nom}}}}} Article Wikipedia]}}
| 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]}}
|}<noinclude>
|}</includeonly>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<noinclude>
Utilisation:
== 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|nom=&Eacute;l&eacute;phant|symbole=E|couleur=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>
os=16|morceau=16|viande=16|graisse=10|squelette=1|peau=Oui|
|coeur=
biome=
|oeil=
* Any tropical forest
|dent=
* Tropical shrubland
|sabot=
}}
|corne=
</nowiki></pre>
|coquille=</pre>


{{CreatureInfo|nom=&Eacute;l&eacute;phant|symbole=E|couleur=rgb(192, 192, 192)|
{{CreatureInfo
os=16|morceau=16|viande=16|graisse=10|squelette=1|peau=Oui
|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=
* Toute forêt tropicale(tropical forest)
* Toute forêt tropicale (tropical forest)
* Brousse tropicale(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>