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

De Wiki'speria
Aller à : navigation, rechercher
(Version 2 : Inversion des paramètres avec fiches perso)
m
 
(16 révisions intermédiaires par 4 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<includeonly><table id="fichebatiment" style="background: none repeat scroll 0 0 #F9F9F9; border: 1px solid #AAAAAA; clear: right; color: #000000; float: right; font-size: 90%; line-height: 1.1em; margin: 0 0 0.5em 1em; padding: 0.1em; width: 210px;">
+
<includeonly><table id="fichebatiment" class="ficheperso">
 +
<tr>
 +
<td align="center" colspan="2">
 +
{{#if:{{{Blason|}}}|[[Fichier:{{{Blason|}}}|200px|{{{Nom}}}]] | }}
 +
</td>
 +
</tr>
 
<tr>
 
<tr>
 
<td align="center" colspan="2">'''{{{Nom}}}'''</td>
 
<td align="center" colspan="2">'''{{{Nom}}}'''</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td align="center" colspan="2" style="text-align:center;background-color:#dfd;color:#000000">'''Informations RP'''</td>
+
<td align="center" colspan="2" class="ficheperso-sep">'''Informations RP'''</td>
 
</tr>
 
</tr>
 
 
<tr>
 
<tr>
 
<th align="left" scope="row">Nom</th>
 
<th align="left" scope="row">Nom</th>
Ligne 14 : Ligne 18 :
 
<tr>
 
<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}}}]]</td>
 
</tr>|}}
 
</tr>|}}
 
{{#if:{{{Activité|}}}|
 
{{#if:{{{Activité|}}}|
Ligne 33 : Ligne 37 :
 
</tr>|}}
 
</tr>|}}
  
 +
{{#if:{{{Architecte|}}}|
 +
<tr>
 +
<th align="left" scope="row">Architecte</th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Architecte}}}}}</td>
 +
</tr>|}}
  
 
<tr>
 
<tr>
 
<th align="left" scope="row">{{#if:{{{Propriétaire2|}}}|Propriétaires|Propriétaire}}</th>
 
<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>
+
<td align="left">{{#if:{{{Propriétaire1|}}}|{{#ifeq:{{{Propriétaire1_joueur|}}}|non|[[{{{Propriétaire1}}}]]|{{Nom Personnage|page=Utilisateur:{{{Propriétaire1}}}}}}}}}</td>
 
</tr>
 
</tr>
  
Ligne 42 : Ligne 51 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Propriétaire2}}}|{{{Propriétaire2}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire2}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Ligne 49 : Ligne 58 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Propriétaire3}}}|{{{Propriétaire3}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire3}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Ligne 56 : Ligne 65 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Propriétaire4}}}|{{{Propriétaire4}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire4}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Ligne 63 : Ligne 72 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Propriétaire5}}}|{{{Propriétaire5}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire5}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
+
{{#if:{{{Membre1|}}}|
 
<tr><th align="left" scope="row" style="height:5px"></th> </tr>
 
<tr><th align="left" scope="row" style="height:5px"></th> </tr>
  
Ligne 72 : Ligne 81 :
 
<th valign="top" align="left" scope="row">{{#ifeq:{{{Parcelle|}}}|Habitation|{{#if:{{{Membre2|}}}|Habitants|Habitant}}|{{#ifeq:{{{Parcelle|}}}|Navale|Équipage|{{#if:{{{Membre2|}}}|Employés|Employé}}}}}}</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>
  
{{#if:{{{Membre1|}}}|
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre1}}}}}</td>
<td align="left">[[Utilisateur:{{{Membre1}}}|{{{Membre1}}}]]</td>
 
 
|}}
 
|}}
  
Ligne 79 : Ligne 87 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Membre2}}}|{{{Membre2}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre2}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Ligne 86 : Ligne 94 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Membre3}}}|{{{Membre3}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre3}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Ligne 93 : Ligne 101 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Membre4}}}|{{{Membre4}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre4}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Ligne 100 : Ligne 108 :
 
<tr>
 
<tr>
 
<th align="left" scope="row"> </th>
 
<th align="left" scope="row"> </th>
<td align="left">[[Utilisateur:{{{Membre5}}}|{{{Membre5}}}]]</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre5}}}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
  
{{#dpl:
+
{{#if:{{{Membre6|}}}|
  |category = Personnages
+
<tr>
  |uses=Template:Fiche Personnage
+
<th align="left" scope="row"> </th>
  |{{#ifeq:{{{Personnage_Absent|}}}|Tous| |{{#if:{{{Personnage_Absent|}}}|category|notcategory}} = Personnages Absents}}
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre6}}}}}</td>
  |includepage={Fiche Personnage} Nom
+
</tr>
  |includematch=/[Bâtiment][1234]?\s*=\s*([^\x2c{{!}}]*\x2c\s*)*{{#replace:{{{1|{{#replace:{{PAGENAME}}|&#39;|'}}}}}|([()\\+*.?'])|\\\1}}\s*[\x7d\x2c{{!}}\n]/s
+
|}}
  |noresultsheader= &nbsp;
 
  |format=,\n* ,,}}
 
  
 +
{{#if:{{{Membre7|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre7}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Membre8|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre8}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Membre9|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre9}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Membre10|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre10}}}}}</td>
 +
</tr>
 +
|}}
 
</tr>
 
</tr>
 
</table>
 
</table>
  
[[Category:Bâtiments]]
+
[[Category:Bâtiment]]
[[Category:Parcelle:{{{Parcelle}}}]]
+
[[Category:{{{Parcelle}}}]]
{{#if:{{{Quartier|}}}|[[Category:Quartier:{{{Quartier}}}]]|}}
+
{{#if:{{{Quartier|}}}|[[Category:{{{Quartier}}}]]|}}
{{#if:{{{État|{{{Etat|}}}}}}|[[Category:Etat_Batiment:{{{État|{{{Etat|}}}}}}]]|}}
+
{{#if:{{{État|{{{Etat|}}}}}}|[[Category:{{{État|{{{Etat|}}}}}}]]|}}
  
 
</includeonly>
 
</includeonly>
Ligne 126 : Ligne 159 :
 
Pour creer la page de votre bâtiment, mettez ce code dans la page :  
 
Pour creer la page de votre bâtiment, mettez ce code dans la page :  
 
  <nowiki>{{Fiche Batiment
 
  <nowiki>{{Fiche Batiment
  |Nom= <Nom du batiment>
+
  |Nom= (Nom du bâtiment)
 +
|Blason= nomdublason.png ou .jpg
 
  |Quartier= Esperia
 
  |Quartier= Esperia
  |Parcelle= <Type de la parcelle> (Commerciale, Habitation, Gouvernement)
+
  |Parcelle= (Commerciale, Habitation, Gouvernement, Navale)
 
  |Activité=  
 
  |Activité=  
|Propriétaire=
 
|Propriétaire_joueur= (oui, non) (par défaut=oui)
 
 
  |Etat=(Ouvert, Fermé, En Travaux)
 
  |Etat=(Ouvert, Fermé, En Travaux)
 +
|Architecte=
 +
|Propriétaire1=
 +
|Propriétaire1_joueur= (oui, non) (par défaut=oui)
 +
|Propriétaire2=
 +
|Propriétaire3=
 +
|Propriétaire4=
 +
|Propriétaire5=
 +
|Membre1=
 +
|Membre2=
 +
|Membre3=
 +
|Membre4=
 +
|Membre5=
 
  }}</nowiki>
 
  }}</nowiki>
  
Pour apparaître dans la liste des employés/habitants d'un batiment, vous devez renseigner les champs correspondant dans votre [[Modèle:Fiche_Personnage|fiche perso]] :<br/><br/>
+
<blockquote>'''Nouvelle fonctionnalité 2020''' (s'appliquant à toutes les fiches bâtiments et personnages déjà créés) :<br>
<nowiki>|Bâtiment= Nom du bâtiment 1
+
Les joueurs n'ont pas besoin de lister les bâtiments dans leur fiche personnage. Les bâtiments s'y listeront automatiquement.</blockquote>
|Bâtiment2=Nom du bâtiment 2
+
 
|Bâtiment3=Nom du bâtiment 3
+
<blockquote>'''Nouvelle fonctionnalité 2020''' :<br>
|Bâtiment4=Nom du bâtiment 4</nowiki>
+
Vous pouvez dorénavant renseigner plusieurs propriétaires sur la fiche d'un bâtiment.</blockquote>
[[Category:HRP]]
+
 
 
[[Category:Modèle]]</noinclude>
 
[[Category:Modèle]]</noinclude>

Version actuelle datée du 22 mars 2024 à 13:58


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

{{Fiche Batiment
 |Nom= (Nom du bâtiment)
 |Blason= nomdublason.png ou .jpg
 |Quartier= Esperia
 |Parcelle= (Commerciale, Habitation, Gouvernement, Navale)
 |Activité= 
 |Etat=(Ouvert, Fermé, En Travaux)
 |Architecte=
 |Propriétaire1= 
 |Propriétaire1_joueur= (oui, non) (par défaut=oui)
 |Propriétaire2= 
 |Propriétaire3= 
 |Propriétaire4= 
 |Propriétaire5= 
 |Membre1=
 |Membre2=
 |Membre3=
 |Membre4=
 |Membre5=
 }}

Nouvelle fonctionnalité 2020 (s'appliquant à toutes les fiches bâtiments et personnages déjà créés) :
Les joueurs n'ont pas besoin de lister les bâtiments dans leur fiche personnage. Les bâtiments s'y listeront automatiquement.

Nouvelle fonctionnalité 2020 :
Vous pouvez dorénavant renseigner plusieurs propriétaires sur la fiche d'un bâtiment.