« 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
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{{#switch:{{{role|}}}
<includeonly>{{#switch:{{{role|}}}
| MJ = <span style="color:gold;font-weight:700">👑 MJ</span>
| 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>
| PNJ= <span style="color:grey;font-weight:700">🤖 PNJ</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>
| #default = <span style="color:turquoise;font-weight:700">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>



Version du 8 avril 2024 à 12:08


Modèle permettant de changer le rôle d'un personnage ou d'une entité. Par défaut il est 'Joueur', il peut être 'MJ' ou 'PNJ'.

[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

Le wikicode :

{{Rôle}}

donnera : Joueur


Le wikicode :

{{Rôle|role=MJ}}

donnera : 👑MJ


Le wikicode :

{{Rôle|role=PNJ}}

donnera : 🤖PNJ