Modèle:Fiche Batiment : Différence entre versions
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"> | + | <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">[[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 | + | <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}}|'|'}}}}}|([()\\+*.?'])|\\\1}}\s*[\x7d\x2c{{!}}\n]/s | |includematch=/[Bâtiment][1234]?\s*=\s*([^\x2c{{!}}]*\x2c\s*)*{{#replace:{{{1|{{#replace:{{PAGENAME}}|'|'}}}}}|([()\\+*.?'])|\\\1}}\s*[\x7d\x2c{{!}}\n]/s | ||
|noresultsheader= | |noresultsheader= | ||
− | |format=,\n* ,,}} | + | |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