Différences entre versions de « Modèle:Infobox »

De Wikipédia 2197
Sauter à la navigation Sauter à la recherche
Ligne 2 : Ligne 2 :
 
<!---------------------- Entête ---------------------->
 
<!---------------------- Entête ---------------------->
 
<div class="infobox_v2">
 
<div class="infobox_v2">
   <div class="entete {{ #switch: {{{type|}}}
+
   <div class="entete {{{type|}}}" style="background-color:#{{ #switch: {{{type|}}}
| animal = animal
 
| robot = robot
 
| personnage = personnage
 
| arme = arme
 
| consommable = consommable
 
| collectionnable = collectionnable
 
| outil = outil
 
| communaute = communaute
 
| semihabite = semihabite
 
| fantome = fantome
 
| secret = secret
 
| groupe = groupe
 
| profession = profession
 
| coutume = coutume
 
| quete = quete
 
| #default = secret
 
}}" style="background-color:#{{ #switch: {{{type|}}}
 
 
  | animal = ffff64
 
  | animal = ffff64
 
  | robot = ffff64
 
  | robot = ffff64
Ligne 76 : Ligne 59 :
 
  | #default =  
 
  | #default =  
 
}}</div>
 
}}</div>
 +
 +
<!---------------------- EXEMPLE ---------------------->
 +
{{ #switch: {{{type|}}}
 +
| quete =
 +
<table width="100%" border="0" style="border-spacing: 0 1em;">
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Nom</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">{{BASEPAGENAME}}</td>
 +
    </tr>
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Donnée par</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">{{{par|}}}</td>
 +
    </tr>
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Récompense</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">{{{récompense|}}}</td>
 +
    </tr>
 +
</table>
 +
<div class="caption" style="background-color:#ff6363;">Emplacement</div><!-- Séparateur -->
 +
<table width="100%" border="0" style="border-spacing: 0 1em;">
 +
    <tr>
 +
      <td width="33%"><font color="#fff"><b>À</b></font></td>
 +
      <td width="66%">{{{à|}}}</td>
 +
    </tr>
 +
    {{#if: {{{lieux|}}} | <tr>
 +
      <td width="33%"><font color="#fff"><b>À visiter</b></font></td>
 +
      <td width="66%">{{{lieux|}}}</td>
 +
    </tr> | }}
 +
</table>
 +
 +
{{#if: {{{sous|}}} |
 +
<div class="caption" style="background-color:#ff6363;">Sous-quête(s)</div><!-- Séparateur --><br>{{{sous|}}} | }}
 +
| #default =
 +
}}</div>
 +
</div>

Version du 9 septembre 2021 à 14:03

Infobox