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

De Eternia Dimension
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(14 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{| {{Infoboxbleue}} style="width: 25%; max-width: 25%"
<includeonly>{| align="right" class="wikitable FCK__ShowTableBorders" style="align: right;text-align: center; width: 25%;"
|-
|-
| {{#if: {{{miniature|}}} | style="background: #fff; text-align: center" width="50px" {{!}} [[Fichier:{{{miniature}}}]] {{!!}} class="header" colspan="3" | class="header" colspan="4" }} | '''{{{nom|{{BASEPAGENAME}}}}}'''<br /><span lang="ja">{{Infobulle|{{{nom-ja|{{?}}}}}|{{{nom-romaji}}}}}</span> {{{nom-tm|{{?}}}}}
{{#if: {{{miniature|}}} |
! style="background: #fff; text-align: center" width="50px" {{!}} [[Fichier:{{{miniature}}}]]
! class="entêtesection" colspan="3" style="background: #E0E0FF"
| ! class="entêtesection" colspan="4" }} | {{{nom|{{BASEPAGENAME}}}}}<br /><span lang="ja">{{{nom-ja|{{?}}}}}</span>
|-
|-
{{#ifeq: {{{évènementiel|non}}} | oui |  
{{#ifeq: {{{évènementiel|non}}} | oui |  
! style="text-align:center; font-weight:lighter" colspan="4" {{!}} <small>Objet évènementiel</small>
! class="précision" {{!}} Objet évènementiel
{{!-}} }}
{{!-}} }}
{{ #if:{{{image|}}} |
{{ #if:{{{image|}}} |
{{!}} colspan="4" style="background: #fff; text-align:center; padding:15px 0px;" {{!}} [[Fichier:{{{image}}}{{!}}200px]]
{{!}} colspan="4" style="text-align: center;" class="illustration" {{!}} [[Fichier:{{{image}}}{{!}}200px]]
{{!-}} }}
{{!-}} }}
{{#if: {{{légende|}}} |
! Nom anglais
! style="text-align:center; font-weight:lighter" colspan="4" {{!}} <small>{{{légende}}}</small>
| <span lang="en">{{{nom-en|{{?}}}}}</span>
{{!-}} }}
! style="text-align:center" | Nom anglais
| style="background: #fff;" | <span lang="en">{{{nom-en|{{?}}}}}</span>
|-
! colspan="4" style="background: #e2e2ff; text-align:center;" | Disponibilité
|-
! style="text-align:center" | [[Génération|Génération(s)]]{{Infobulle|*|Génération(s) où l'objet est disponible}}
| style="background: #fff;" | {{#ifeq: {{{gén-1|}}} | oui | [[Première génération|1]] }} {{#ifeq: {{{gén-2|}}} | oui | [[Deuxième génération|2]] }} {{#ifeq: {{{gén-3|}}} | oui | [[Troisième génération|3]] }} {{#ifeq: {{{gén-4|}}} | oui | [[Quatrième génération|4]] }} {{#ifeq: {{{gén-5|}}} | oui | [[Cinquième génération|5]] }}
|-
! style="text-align:center" | {{Infobulle|1ère apparition|Jeu vidéo où l'objet est présent pour la première fois}}
| style="background: #fff;" | ''[[{{{jeu}}}]]''
|-
|-
! style="text-align:center" | {{Infobulle|Série|Série de jeux où l'objet est trouvable}}
! colspan="2" style="background: #E0E0FF" class="entêtesection" | Utilisation
| style="background: #fff;" | {{#if: {{{série|}}} | [[{{{série}}}]] | [[Objet de la série::Jeux principaux]] }}
|-
|-
! colspan="4" style="background: #e2e2ff; text-align:center;" | Utilisation
! Rangement
| Inventaire
|-
|-
! style="text-align:center" | [[Sac|Rangement]]
! Fonctionnement
| style="background: #fff;" | {{{rangement|{{?}}}}}
| {{#switch: {{lc:{{{fonctionnement|}}}}}  
|-
| utiliser = À utiliser sur un Pokémon
! style="text-align:center" | Fonctionnement
| combat = S'active lors d'un combat
| style="background: #fff;" | {{#switch: {{lc:{{{fonctionnement|}}}}}  
| tenu = Objet tenu
| pokémon = Sur un Pokémon
| combat = Sur un Pokémon<br /><small>(donné en combat)</small>
| hors combat = Sur un Pokémon<br /><small>(donné hors combat)</small>
| adversaire = Sur un Pokémon<br /><small>(adversaire)</small>
| tenu = Sur un Pokémon <small>([[Objet tenu|tenu]])</small>
| environnement = Dans l'environnement
| sans = Sans effet
| sans = Sans effet
| Non renseigné }}
| Non renseigné }}
|-
|-
! colspan="4" style="background: #e2e2ff; text-align:center;" | Commerce
! Durée
| {{#switch: {{lc:{{{durée|}}}}}
| unique = Objet à usage unique
| x30 = Actif pendant 30 combats
| illimitée = Réutilisable
| Non renseigné }}
|-
|-
! style="text-align:center" | [[Boutique Pokémon|Achat]]
! colspan="2" style="background: #E0E0FF" class="entêtesection" | Commerce
| style="background: #fff;" | {{#if: {{{prix-achat|}}} | {{{prix-achat}}} P$| Non achetable }}
|-
|-
! style="text-align:center" | [[Boutique Pokémon|Revente]]
! [[Boutique|Achat]]
| style="background: #fff;" | {{#if: {{{prix-revente|}}} | {{{prix-revente}}} P$ | Non revendable }}
| {{#if: {{{prix-achat|}}} | {{{prix-achat}}} {{{monnaie-achat|{{P}}}}} | Non achetable }}
|-
! Revente
| {{#if: {{{prix-revente|}}} | {{{prix-revente}}} {{{monnaie-revente|{{P}}}}}| Non revendable }}
|}
|}
</includeonly><noinclude>
=== Syntaxe ===


<pre>{{Infobox Objet
</includeonly><noinclude>{{/Documentation}}</noinclude>
<!-- présentation -->
| nom=
| nom-ja=
| nom-en=
| miniature=
| image=
<!-- utilisation -->
| fonctionement=(utiliser, combat, tenu ou sans))
| durée= (unique, x30 ou illimité)
<!-- commerce -->
| prix-achat=
| prix-revente=
| monnaie-achat= (P$ ou DC)
| monnaie-revente= (P$ ou DC)
}}</pre></noinclude>

Version actuelle datée du 1 mai 2014 à 13:41

Syntaxe

{{Infobox Objet
<!-- présentation -->
| nom=
| nom-ja=
| nom-en=
| miniature=
| image=
<!-- utilisation -->
| fonctionement=(utiliser, combat, tenu ou sans))
| durée= (unique, x30 ou illimité)
<!-- commerce -->
| prix-achat=
| prix-revente=
| monnaie-achat= (P$ ou DC)
| monnaie-revente= (P$ ou DC)
}}