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

De 21Wiki
Page créée avec « <includeonly>{{#switch:{{{role|}}} | MJ = <span style="color:orange;font-weight:700">👑 MJ</span> | pause = <span style="color:grey;font-weight:700">🤖 PNJ</span> | #default = <span style="color:turquoise;font-weight:700">Joueur</span> }}</includeonly> <noinclude> <templatedata> { "params": { "role": { "required": false, "description": "Renseigner si le personnage ou l'entité a un rôle particulier" } }, "description": "Modèle perme... »
 
Aucun résumé des modifications
 
(40 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<includeonly>{{#switch:{{{role|}}}
<includeonly>{{#switch:{{{1}}}
| MJ = <span style="color:orange;font-weight:700">👑 MJ</span>
| Accompagnateur = <span style="display:inline-block"><span style="background-color:deepskyblue;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 deepskyblue">💬</span><span style="color:white;margin-left:3px;margin-right:5px">'''Accompagnateur'''</span></span></span>[[Catégorie:Accompagnateur]]
| pause = <span style="color:grey;font-weight:700">🤖 PNJ</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>[[Catégorie:MJ]]
| #default = <span style="color:turquoise;font-weight:700">Joueur</span>
| PNJ = <span style="display:inline-block"><span style="background-color:blueviolet;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 blueviolet">🤖</span><span style="color:white;margin-left:3px;margin-right:5px">'''PNJ'''</span></span></span>[[Catégorie:PNJ]]
 
| Accompagnateur_légende = <span style="display:inline-block"><span style="background-color:deepskyblue;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 deepskyblue">💬</span><span style="color:white;margin-left:3px;margin-right:5px">'''Accompagnateur'''</span></span></span>
| MJ_légende = <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_légende = <span style="display:inline-block"><span style="background-color:blueviolet;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 blueviolet">🤖</span><span style="color:white;margin-left:3px;margin-right:5px">'''PNJ'''</span></span></span>
 
| #default = <span style="color:red">'''Erreur de syntaxe'''</span>[[Catégorie:Pages avec des erreurs de syntaxe]]
}}</includeonly>
}}</includeonly>


Ligne 14 : Ligne 20 :
}
}
},
},
"description": "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'.",
"description": "Modèle permettant de gérer le rôle d'un personnage ou d'une entité.",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
== Tous les exemples d'utilisations ==
== Tous les exemples d'utilisations ==
===<u>Statuts réservés aux infobox</u>===
Le wikicode :
<pre>{{Rôle|Accompagnateur}}</pre>
donnera :
{{Rôle|Accompagnateur}}
Le wikicode :
<pre>{{Rôle|MJ}}</pre>
donnera :
{{Rôle|MJ}}
Le wikicode :
<pre>{{Rôle|PNJ}}</pre>
donnera :
{{Rôle|PNJ}}
===<u>Statuts réservés aux légendes des chronologies et des tableaux</u>===
Le wikicode :
Le wikicode :
<pre>{{Rôle}}</pre>
<pre>{{Rôle|Accompagnateur_légende}}</pre>
donnera :  
donnera :  
{{Rôle}}
{{Rôle|Accompagnateur_légende}}
Le wikicode :
Le wikicode :
<pre>{{Rôle|role=MJ}}</pre>
<pre>{{Rôle|MJ_légende}}</pre>
donnera :  
donnera :  
{{Rôle|role=MJ}}
{{Rôle|MJ_légende}}
Le wikicode :
Le wikicode :
<pre>{{Rôle|role=PNJ}}</pre>
<pre>{{Rôle|PNJ_légende}}</pre>
donnera :  
donnera :  
{{Rôle|role=PNJ}}
{{Rôle|PNJ_légende}}
</noinclude>
</noinclude>

Dernière version du 28 septembre 2025 à 15:51


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

Paramètres du modèle[Modifier les données 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|Accompagnateur}}

donnera : 💬Accompagnateur


Le wikicode :

{{Rôle|MJ}}

donnera : 👑MJ


Le wikicode :

{{Rôle|PNJ}}

donnera : 🤖PNJ


Statuts réservés aux légendes des chronologies et des tableaux

Le wikicode :

{{Rôle|Accompagnateur_légende}}

donnera : 💬Accompagnateur


Le wikicode :

{{Rôle|MJ_légende}}

donnera : 👑MJ


Le wikicode :

{{Rôle|PNJ_légende}}

donnera : 🤖PNJ