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

De Wikipédia 2197
Sauter à la navigation Sauter à la recherche
 
(80 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 +
<!---------------------- Infobox ---------------------->
 +
<!---------------------- 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
+
  | animal = ffff64
−
  | robot = robot
+
  | robot = ffff64
−
  | personnage = personnage
+
  | personnage | character = ffff64
−
  | arme = arme
+
  | arme | weapon = ffc832
−
  | consommable = consommable
+
  | consommable | consumable = ffc832
−
  | collectionnable = collectionnable
+
  | collectionnable | collectable = ffc832
−
  | outil = outil
+
  | outil | tool = ffc832
−
  | communaute = communaute
+
  | communaute | community = 96ff64
−
  | semihabite = semihabite
+
  | semihabite | semiinhabited = 96ff64
−
  | fantome = fantome
+
  | fantome | ghost = 96ff64
−
  | secret = secret
+
  | secret = 96ff64
−
  | groupe = groupe
+
  | groupe | group = ff6363
−
  | profession = profession
+
  | profession = ff6363
−
  | coutume = coutume
+
  | coutume | custom = ff6363
−
  | quete = quete
+
  | quete | quest = ff6363
−
  | #default = secret
+
| sousquete | subquest = feadad
−
}}" style="background-color:#{{ #switch: {{{type|}}}
+
| presenter  | present = ffff64
−
  | animal = 9b9b00
+
  | #default = ffff64
−
  | robot = 9b9b00
+
}};color:#000">{{ #switch: {{{type|}}}
−
  | personnage = 9b9b00
+
  | presenter = Exemple d'''Infobox''
−
  | arme = 9b6400
+
  | quete = Quête
−
  | consommable = 9b6400
+
  | sousquete = Sous-quête
−
  | collectionnable = 9b6400
+
  | #default = {{BASEPAGENAME}}
−
| outil = 9b6400
+
}}</div>
−
| communaute = 329b00
+
<!---------------------- Image ---------------------->
−
| semihabite = 329b00
+
{{#if: {{{image|}}} | [[File:{{{image|}}}|center|275px]]<div style="position:relative;width:275px;margin:0 auto;text-align:center;">{{{légende|}}}</div> | }}
−
| fantome = 329b00
+
 
−
| secret = 329b00
+
{{ #switch: {{{type|}}}
−
| groupe = 9b0000
+
  | presenter | presenter =
−
| profession = 9b0000
+
<!---------------------- EXEMPLE ---------------------->
−
| coutume = 9b0000
+
<table width="100%" border="0" style="border-spacing: 0 1em;">
−
  | quete = 9b0000
+
    <tr>
−
| #default = 329b00
+
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Type 1</b></font></td>
−
}};color:#fff">{{BASEPAGENAME}}</div>
+
      <td width="66%" style="vertical-align: top;">Information 1</td>
−
Texte de fou
+
    </tr>
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Type 2</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">Information 2</td>
 +
    </tr>
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Type 3</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">Information 3</td>
 +
    </tr>
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>...</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">&nbsp;</td>
 +
    </tr>
 +
</table>
 +
<div class="caption" style="background-color:#ffff64;">Exemple de séparateur</div><!-- Séparateur -->
 +
<table width="100%" border="0" style="border-spacing: 0 1em;">
 +
    <tr>
 +
      <td width="33%"><font color="#fff"><b>Type 4</b></font></td>
 +
      <td width="66%">Information 4</td>
 +
    </tr>
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>...</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">&nbsp;</td>
 +
    </tr>
 +
</table>
 +
<!---------------------- QUÊTE ---------------------->
 +
  | quete | quest =
 +
<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>
 +
    {{#if: {{{par|}}} | <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>Donnée par</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">(auto-attribuée)</td>
 +
    </tr>}}
 +
    {{#if: {{{condition|}}} | <tr>
 +
      <td width="33%"><font color="#fff"><b>Condition</b></font></td>
 +
      <td width="66%">{{{condition|}}}</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|}}} | }}
 +
{{#if: {{{plus|}}} | <div class="caption" style="background-color:#ff6363;">Quête(s) associée(s)</div><!-- Séparateur --><br>{{{plus|}}} | }}
 +
<!---------------------- SOUS-QUÊTE ---------------------->
 +
  | sousquete | subquest =
 +
<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>
 +
    {{#if: {{{condition|}}} | <tr>
 +
      <td width="33%"><font color="#fff"><b>Condition</b></font></td>
 +
      <td width="66%">{{{condition|}}}</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>
 +
| #default =
 +
}}
 
</div>
 
</div>

Version actuelle datée du 26 septembre 2022 à 00:39

Infobox