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

De Wikipédia 2197
Sauter à la navigation Sauter à la recherche
 
(39 versions intermédiaires par le même utilisateur non affichées)
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
  | personnage = ffff64
+
  | personnage | character = ffff64
  | arme = ffc832
+
  | arme | weapon = ffc832
  | consommable = ffc832
+
  | consommable | consumable = ffc832
  | collectionnable = ffc832
+
  | collectionnable | collectable = ffc832
  | outil = ffc832
+
  | outil | tool = ffc832
  | communaute = 96ff64
+
  | communaute | community = 96ff64
  | semihabite = 96ff64
+
  | semihabite | semiinhabited = 96ff64
  | fantome = 96ff64
+
  | fantome | ghost = 96ff64
 
  | secret = 96ff64
 
  | secret = 96ff64
  | groupe = ff6363
+
  | groupe | group = ff6363
 
  | profession = ff6363
 
  | profession = ff6363
  | coutume = ff6363
+
  | coutume | custom = ff6363
  | quete = ff6363
+
  | quete | quest = ff6363
  | #default = 96ff64
+
| sousquete | subquest = feadad
 +
| presenter  | present = ffff64
 +
  | #default = ffff64
 
}};color:#000">{{ #switch: {{{type|}}}
 
}};color:#000">{{ #switch: {{{type|}}}
 +
| presenter = Exemple d'''Infobox''
 
  | quete = Quête
 
  | quete = Quête
 +
| sousquete = Sous-quête
 
  | #default = {{BASEPAGENAME}}
 
  | #default = {{BASEPAGENAME}}
 
}}</div>
 
}}</div>
 
<!---------------------- Image ---------------------->
 
<!---------------------- Image ---------------------->
{{#if: {{{image|}}} | [[File:{{{image|}}}|center|275px]]<div style="text-align:center;">{{{légende|}}}</div> | }}
+
{{#if: {{{image|}}} | [[File:{{{image|}}}|center|275px]]<div style="position:relative;width:275px;margin:0 auto;text-align:center;">{{{légende|}}}</div> | }}
  
<!---------------------- QUÊTE ---------------------->
 
 
{{ #switch: {{{type|}}}
 
{{ #switch: {{{type|}}}
  | quete =
+
  | presenter | presenter =
 +
<!---------------------- EXEMPLE ---------------------->
 +
<table width="100%" border="0" style="border-spacing: 0 1em;">
 +
    <tr>
 +
      <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Type 1</b></font></td>
 +
      <td width="66%" style="vertical-align: top;">Information 1</td>
 +
    </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;">
 
<table width="100%" border="0" style="border-spacing: 0 1em;">
 
     <tr>
 
     <tr>
       <td width="33%"><font color="#fff"><b>Nom</b></font></td>
+
       <td width="33%"><font color="#fff"><b>Type 4</b></font></td>
       <td width="66%">{{{nom|}}}</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>
 
     </tr>
 +
</table>
 +
<!---------------------- QUÊTE ---------------------->
 +
| quete | quest =
 +
<table width="100%" border="0" style="border-spacing: 0 1em;">
 
     <tr>
 
     <tr>
       <td width="33%"><font color="#fff"><b>Donnée par</b></font></td>
+
       <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Nom</b></font></td>
       <td width="66%">{{{par|}}}</td>
+
       <td width="66%" style="vertical-align: top;">{{BASEPAGENAME}}</td>
 
     </tr>
 
     </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>
 
     <tr>
       <td width="33%"><font color="#fff"><b>Récompense</b></font></td>
+
       <td width="33%" style="vertical-align: top;"><font color="#fff"><b>Récompense</b></font></td>
       <td width="66%">{{{recompense|}}}</td>
+
       <td width="66%" style="vertical-align: top;">{{{récompense|}}}</td>
 
     </tr>
 
     </tr>
 
</table>
 
</table>
Ligne 63 : Ligne 88 :
 
<table width="100%" border="0" style="border-spacing: 0 1em;">
 
<table width="100%" border="0" style="border-spacing: 0 1em;">
 
     <tr>
 
     <tr>
       <td width="33%"><font color="#fff"><b>Donnée à</b></font></td>
+
       <td width="33%"><font color="#fff"><b>À</b></font></td>
 
       <td width="66%">{{{à|}}}</td>
 
       <td width="66%">{{{à|}}}</td>
 
     </tr>
 
     </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>
 
     <tr>
       <td width="33%"><font color="#fff"><b>Lieu(x) visité(s)</b></font></td>
+
       <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>
 
       <td width="66%">{{{lieux|}}}</td>
     </tr>
+
     </tr> | }}
 
</table>
 
</table>
 
  | #default =  
 
  | #default =  
}}</div>
+
}}
 +
</div>

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

Infobox