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

De 21Wiki
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>{{#switch:{{{role}}}
<includeonly>{{#switch:{{{1}}}
| 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]]
| 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]]
| 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]]
| 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]]
Ligne 23 : Ligne 23 :
===<u>Statuts réservés aux infobox</u>===
===<u>Statuts réservés aux infobox</u>===
Le wikicode :
Le wikicode :
<pre>{{Rôle|role=MJ}}</pre>
<pre>{{Rôle|MJ}}</pre>
donnera :  
donnera :  
{{Rôle|role=MJ}}
{{Rôle|MJ}}
Le wikicode :
Le wikicode :
<pre>{{Rôle|role=PNJ}}</pre>
<pre>{{Rôle|PNJ}}</pre>
donnera :  
donnera :  
{{Rôle|role=PNJ}}
{{Rôle|PNJ}}


===<u>Statuts réservés aux légendes des chronologies et des tableaux</u>===
===<u>Statuts réservés aux légendes des chronologies et des tableaux</u>===
Le wikicode :
Le wikicode :
<pre>{{Rôle|role=MJ_légende}}</pre>
<pre>{{Rôle|MJ_légende}}</pre>
donnera :  
donnera :  
{{Rôle|role=MJ_légende}}
{{Rôle|MJ_légende}}
Le wikicode :
Le wikicode :
<pre>{{Rôle|role=PNJ_légende}}</pre>
<pre>{{Rôle|PNJ_légende}}</pre>
donnera :  
donnera :  
{{Rôle|role=PNJ_légende}}
{{Rôle|PNJ_légende}}
</noinclude>
</noinclude>

Version du 19 juillet 2025 à 23:44


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|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|MJ_légende}}

donnera : 👑MJ


Le wikicode :

{{Rôle|PNJ_légende}}

donnera : 🤖PNJ