Modèle:Fiche Batiment : Différence entre versions

De Wiki'speria
Aller à : navigation, rechercher
m (remise en place)
(Version 2 : Inversion des paramètres avec fiches perso)
Ligne 6 : Ligne 6 :
 
<td align="center" colspan="2" style="text-align:center;background-color:#dfd;color:#000000">'''Informations RP'''</td>
 
<td align="center" colspan="2" style="text-align:center;background-color:#dfd;color:#000000">'''Informations RP'''</td>
 
</tr>
 
</tr>
 +
 
<tr>
 
<tr>
 
<th align="left" scope="row">Nom</th>
 
<th align="left" scope="row">Nom</th>
 
<td align="left">{{{Nom}}}</td>
 
<td align="left">{{{Nom}}}</td>
 
</tr>
 
</tr>
{{#if:{{{Quartier|}}}|<tr>
+
{{#if:{{{Quartier|}}}|
 +
<tr>
 
<th align="left" scope="row">Quartier</th>
 
<th align="left" scope="row">Quartier</th>
 
<td align="left">[[Quartier:{{{Quartier}}}|{{{Quartier}}}]]</td>
 
<td align="left">[[Quartier:{{{Quartier}}}|{{{Quartier}}}]]</td>
Ligne 30 : Ligne 32 :
 
<td align="left">{{{Parcelle|}}}</td>
 
<td align="left">{{{Parcelle|}}}</td>
 
</tr>|}}
 
</tr>|}}
 +
 +
 +
<tr>
 +
<th align="left" scope="row">{{#if:{{{Propriétaire2|}}}|Propriétaires|Propriétaire}}</th>
 +
<td align="left">{{#if:{{{Propriétaire1|}}}|{{#ifeq:{{{Propriétaire1_joueur|}}}|non|[[{{{Propriétaire1}}}]]|[[Utilisateur:{{{Propriétaire1}}}|{{{Propriétaire1}}}]]}}}}</td>
 +
</tr>
 +
 +
{{#if:{{{Propriétaire2|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Propriétaire2}}}|{{{Propriétaire2}}}]]</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Propriétaire3|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Propriétaire3}}}|{{{Propriétaire3}}}]]</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Propriétaire4|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Propriétaire4}}}|{{{Propriétaire4}}}]]</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Propriétaire5|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Propriétaire5}}}|{{{Propriétaire5}}}]]</td>
 +
</tr>
 +
|}}
 +
 +
<tr><th align="left" scope="row" style="height:5px"></th> </tr>
 +
 
<tr>
 
<tr>
<th align="left" scope="row">Propriétaire</th>
+
<th valign="top" align="left" scope="row">{{#ifeq:{{{Parcelle|}}}|Habitation|{{#if:{{{Membre2|}}}|Habitants|Habitant}}|{{#ifeq:{{{Parcelle|}}}|Navale|Équipage|{{#if:{{{Membre2|}}}|Employés|Employé}}}}}}</th>
<td align="left">{{#if:{{{Propriétaire|}}}|{{#ifeq:{{{Propriétaire_joueur|}}}|non|[[{{{Propriétaire}}}]]|[[Utilisateur:{{{Propriétaire}}}|{{{Propriétaire}}}]]}}}}</td>
+
 
 +
{{#if:{{{Membre1|}}}|
 +
<td align="left">[[Utilisateur:{{{Membre1}}}|{{{Membre1}}}]]</td>
 +
|}}
 +
 
 +
{{#if:{{{Membre2|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Membre2}}}|{{{Membre2}}}]]</td>
 
</tr>
 
</tr>
 +
|}}
 +
 +
{{#if:{{{Membre3|}}}|
 
<tr>
 
<tr>
<th valign="top" align="left" scope="row">{{#ifeq:{{{Parcelle|}}}|Habitation|Habitants|{{#ifeq:{{{Parcelle|}}}|Navale|Equipage|Employés}}}}</th>
+
<th align="left" scope="row"> </th>
<td align="left">{{#dpl:
+
<td align="left">[[Utilisateur:{{{Membre3}}}|{{{Membre3}}}]]</td>
 +
</tr>
 +
|}}
 +
 
 +
{{#if:{{{Membre4|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Membre4}}}|{{{Membre4}}}]]</td>
 +
</tr>
 +
|}}
 +
 
 +
{{#if:{{{Membre5|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">[[Utilisateur:{{{Membre5}}}|{{{Membre5}}}]]</td>
 +
</tr>
 +
|}}
 +
 
 +
{{#dpl:
 
   |category = Personnages
 
   |category = Personnages
 
   |uses=Template:Fiche Personnage
 
   |uses=Template:Fiche Personnage
Ligne 43 : Ligne 111 :
 
   |includematch=/[Bâtiment][1234]?\s*=\s*([^\x2c{{!}}]*\x2c\s*)*{{#replace:{{{1|{{#replace:{{PAGENAME}}|&#39;|'}}}}}|([()\\+*.?'])|\\\1}}\s*[\x7d\x2c{{!}}\n]/s
 
   |includematch=/[Bâtiment][1234]?\s*=\s*([^\x2c{{!}}]*\x2c\s*)*{{#replace:{{{1|{{#replace:{{PAGENAME}}|&#39;|'}}}}}|([()\\+*.?'])|\\\1}}\s*[\x7d\x2c{{!}}\n]/s
 
   |noresultsheader= &nbsp;
 
   |noresultsheader= &nbsp;
   |format=,\n* ,,}}</td></tr>
+
   |format=,\n* ,,}}
 +
 
 +
</tr>
 
</table>
 
</table>
  

Version du 29 janvier 2020 à 12:20


Pour creer la page de votre bâtiment, mettez ce code dans la page :

{{Fiche Batiment
 |Nom= <Nom du batiment>
 |Quartier= Esperia
 |Parcelle= <Type de la parcelle> (Commerciale, Habitation, Gouvernement)
 |Activité= 
 |Propriétaire= 
 |Propriétaire_joueur= (oui, non) (par défaut=oui)
 |Etat=(Ouvert, Fermé, En Travaux)
 }}

Pour apparaître dans la liste des employés/habitants d'un batiment, vous devez renseigner les champs correspondant dans votre fiche perso :

|Bâtiment= Nom du bâtiment 1
|Bâtiment2=Nom du bâtiment 2
|Bâtiment3=Nom du bâtiment 3
|Bâtiment4=Nom du bâtiment 4