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

De Wiki'speria
Aller à : navigation, rechercher
m (Ajout de la catégorie "Etat_Batiment")
m
 
(45 révisions intermédiaires par 9 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">'''{{{Nom}}}'''</td>
+
<tr>
 +
<td align="center" colspan="2">
 +
{{#if:{{{Blason|}}}|[[Fichier:{{{Blason|}}}|200px|{{{Nom}}}]] | }}
 +
</td>
 +
</tr>
 +
<tr>
 +
<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>
Ligne 9 : Ligne 15 :
 
<td align="left">{{{Nom}}}</td>
 
<td align="left">{{{Nom}}}</td>
 
</tr>
 
</tr>
 +
{{#if:{{{Quartier|}}}|
 
<tr>
 
<tr>
 
<th align="left" scope="row">Quartier</th>
 
<th align="left" scope="row">Quartier</th>
<td align="left">{{#if:{{{Quartier|}}}|[[Quartier:{{{Quartier}}}|{{{Quartier}}}]]|}}</td>
+
<td align="left">[[{{{Quartier}}}|{{{Quartier}}}]]</td>
</tr>
+
</tr>|}}
<tr>
+
{{#if:{{{Activité|}}}|
<th align="left" scope="row">Activité</th>
 
<td align="left">{{#if:{{{Activité|}}}|{{{Activité}}}}}</td>
 
</tr>
 
 
<tr>
 
<tr>
 +
<th align="left" scope="row">{{#ifeq:{{{Parcelle|}}}|Navale|Navire de|Activité}}</th>
 +
<td align="left">{{{Activité}}}</td>
 +
</tr>|}}
 +
{{#if:{{{État|{{{Etat|}}}}}}|
 
<tr>
 
<tr>
 
<th align="left" scope="row">État</th>
 
<th align="left" scope="row">État</th>
<td align="left">{{#if:{{{État|{{{Etat|}}}}}}|{{{État|{{{Etat|}}}}}}}}</td>
+
<td align="left">{{{État|{{{Etat|}}}}}}</td>
</tr>{{#if:{{{Parcelle|}}}|
+
</tr>|}}
 +
 
 +
{{#if:{{{Parcelle|}}}|
 
<tr>
 
<tr>
 
<th align="left" scope="row">Parcelle</th>
 
<th align="left" scope="row">Parcelle</th>
 
<td align="left">{{{Parcelle|}}}</td>
 
<td align="left">{{{Parcelle|}}}</td>
 
</tr>|}}
 
</tr>|}}
 +
 +
{{#if:{{{Architecte|}}}|
 +
<tr>
 +
<th align="left" scope="row">Architecte</th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Architecte}}}}}</td>
 +
</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}}}]]|{{Nom Personnage|page=Utilisateur:{{{Propriétaire1}}}}}}}}}</td>
 +
</tr>
 +
 +
{{#if:{{{Propriétaire2|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire2}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Propriétaire3|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire3}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Propriétaire4|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire4}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Propriétaire5|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Propriétaire5}}}}}</td>
 +
</tr>
 +
|}}
 +
{{#if:{{{Membre1|}}}|
 +
<tr><th align="left" scope="row" style="height:5px"></th> </tr>
 +
 +
<tr>
 +
<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">{{Nom Personnage|page=Utilisateur:{{{Membre1}}}}}</td>
 +
|}}
 +
 +
{{#if:{{{Membre2|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre2}}}}}</td>
 +
</tr>
 +
|}}
 +
 +
{{#if:{{{Membre3|}}}|
 
<tr>
 
<tr>
<th align="left" scope="row">Propriétaire</th>
+
<th align="left" scope="row"> </th>
<td align="left">{{#if:{{{Propriétaire|}}}|{{Nom Personnage|page=Utilisateur:{{{Propriétaire}}}}}}}</td>
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre3}}}}}</td>
 
</tr>
 
</tr>
 +
|}}
 +
 +
{{#if:{{{Membre4|}}}|
 
<tr>
 
<tr>
<th valign="top" align="left" scope="row">Employés</th>
+
<th align="left" scope="row"> </th>
<td align="left">{{#dpl:
+
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre4}}}}}</td>
  |category = Personnages
+
</tr>
  |uses=Template:Fiche Personnage
+
|}}
  |includepage={Fiche Personnage} Nom
+
 
  |includematch=/[Bâtiment][1234]?\s*=\s*([^\x2c{{!}}]*\x2c\s*)*{{#replace:{{{1|{{#replace:{{PAGENAME}}|&#39;|'}}}}}|([()\\+*.?'])|\\\1}}\s*[\x7d\x2c{{!}}\n]/s
+
{{#if:{{{Membre5|}}}|
  |noresultsheader= &nbsp;
+
<tr>
  |format=,,<br />,}}</tr>
+
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre5}}}}}</td>
 +
</tr>
 +
|}}
 +
 
 +
{{#if:{{{Membre6|}}}|
 +
<tr>
 +
<th align="left" scope="row"> </th>
 +
<td align="left">{{Nom Personnage|page=Utilisateur:{{{Membre6}}}}}</td>
 +
</tr>
 +
|}}
 +
 
 +
{{#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>
 
</table>
 
</table>
  
[[Category:Bâtiments]]
+
[[Category:Bâtiment]]
[[Category:Parcelle:{{{Parcelle}}}]]
+
[[Category:{{{Parcelle}}}]]
{{#if:{{{Quartier|}}}|[[Category:Quartier:{{{Quartier}}}]]|}}
+
{{#if:{{{Quartier|}}}|[[Category:{{{Quartier}}}]]|}}
[[Category:Etat_Batiment:{{{État}}}]]
+
{{#if:{{{État|{{{Etat|}}}}}}|[[Category:{{{État|{{{Etat|}}}}}}]]|}}
  
</includeonly><noinclude>Infos à remplir :
+
</includeonly>
 +
<noinclude>
 +
 
 +
Pour creer la page de votre bâtiment, mettez ce code dans la page :  
 
  <nowiki>{{Fiche Batiment
 
  <nowiki>{{Fiche Batiment
  |Nom=   
+
  |Nom= (Nom du bâtiment)
  |Quartier=  
+
  |Blason= nomdublason.png ou .jpg
  |Parcelle=(Commerciale, Habitation, Gouvernement)
+
  |Quartier= Esperia
 +
  |Parcelle= (Commerciale, Habitation, Gouvernement, Navale)
 
  |Activité=  
 
  |Activité=  
  |Propriétaire=
+
  |Etat=(Ouvert, Fermé, En Travaux)
|État=(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>
  
 +
<blockquote>'''Nouvelle fonctionnalité 2020''' (s'appliquant à toutes les fiches bâtiments et personnages déjà créés) :<br>
 +
Les joueurs n'ont pas besoin de lister les bâtiments dans leur fiche personnage. Les bâtiments s'y listeront automatiquement.</blockquote>
 +
 +
<blockquote>'''Nouvelle fonctionnalité 2020''' :<br>
 +
Vous pouvez dorénavant renseigner plusieurs propriétaires sur la fiche d'un bâtiment.</blockquote>
  
Ajoutez cela à votre fiche perso pour apparaître dans la liste des employés :<br>
+
[[Category:Modèle]]</noinclude>
<br>
 
|Bâtiment=Nom du bâtiment 1<br>
 
|Bâtiment2=Nom du bâtiment 2<br>
 
etc</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.