« Modèle:Rôle » : différence entre les versions

De 21Wiki
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 1 : Ligne 1 :
<includeonly>{{#switch:{{{role|}}}
<includeonly>{{#switch:{{{role|}}}
| MJ = <span style="background-color:gold;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px><span style="background-color:white;border-radius:100px;padding:5px;border:3px solid gold">👑</span><span style="color:white;margin-left:3px;margin-right:5px">'''MJ'''</span></span>
| MJ = <span style="display:inline-block"><span style="background-color:gold;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px><span style="background-color:white;border-radius:100px;padding:5px;border:3px solid gold">👑</span><span style="color:white;margin-left:3px;margin-right:5px">'''MJ'''</span></span></span>
| PNJ = <span style="background-color:darkslategray;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px><span style="background-color:white;border-radius:100px;padding:5px;border:3px solid darkslategray">🤖</span><span style="color:white;margin-left:3px;margin-right:5px">'''PNJ'''</span></span>
| PNJ = <span style="display:inline-block"><span style="background-color:silver;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px><span style="background-color:white;border-radius:100px;padding:5px;border:3px solid silver">🤖</span><span style="color:white;margin-left:3px;margin-right:5px">'''PNJ'''</span></span></span>
| MJ_legende = <span style="display:inline-block"><span style="background-color:gold;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px><span style="background-color:white;border-radius:100px;padding:5px;border:3px solid gold">👑</span><span style="color:white;margin-left:3px;margin-right:5px">'''MJ'''</span></span></span>
| PNJ_legende = <span style="display:inline-block"><span style="background-color:silver;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px><span style="background-color:white;border-radius:100px;padding:5px;border:3px solid silver">🤖</span><span style="color:white;margin-left:3px;margin-right:5px">'''PNJ'''</span></span></span>
| #default = <span style="background-color:turquoise;border-radius:100px;padding-left:8px;padding-right:8px;padding-top:3px;padding-bottom:3px;color:white">'''Joueur'''</span>
| #default = <span style="background-color:turquoise;border-radius:100px;padding-left:8px;padding-right:8px;padding-top:3px;padding-bottom:3px;color:white">'''Joueur'''</span>
}}</includeonly>
}}</includeonly>
Ligne 19 : Ligne 21 :
</templatedata>
</templatedata>
== Tous les exemples d'utilisations ==
== Tous les exemples d'utilisations ==
===<u>Statuts réservés aux infobox</u>===
Le wikicode :
Le wikicode :
<pre>{{Rôle}}</pre>
<pre>{{Rôle}}</pre>
Ligne 31 : Ligne 34 :
donnera :  
donnera :  
{{Rôle|role=PNJ}}
{{Rôle|role=PNJ}}
===<u>Statuts réservés aux légendes</u>===
Le wikicode :
<pre>{{Rôle|role=MJ_legende}}</pre>
donnera :
{{Rôle|role=MJ_legende}}
Le wikicode :
<pre>{{Rôle|role=PNJ_legende}}</pre>
donnera :
{{Rôle|role=PNJ_legende}}
</noinclude>
</noinclude>

Version du 10 avril 2024 à 17:21


Modèle permettant de gérer le rôle d'un personnage ou d'une entité.

[Modifier les données du modèle]

Paramètres du modèle

La mise en forme sur une seule ligne est préférée pour ce modèle.

ParamètreDescriptionTypeÉtat
rolerole

Renseigner si le personnage ou l'entité a un rôle particulier

Inconnufacultatif

Tous les exemples d'utilisations

Statuts réservés aux infobox

Le wikicode :

{{Rôle}}

donnera : Joueur


Le wikicode :

{{Rôle|role=MJ}}

donnera : 👑MJ


Le wikicode :

{{Rôle|role=PNJ}}

donnera : 🤖PNJ


Statuts réservés aux légendes

Le wikicode :

{{Rôle|role=MJ_legende}}

donnera : 👑MJ


Le wikicode :

{{Rôle|role=PNJ_legende}}

donnera : 🤖PNJ