« 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
 
(3 versions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
| 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>
| 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: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>
| PNJ_legende = <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>
| test = <span style="display:inline-block"><span style="background-color:#0090FF;border-radius:100px;padding-left:-5px;padding-right:3px;padding-top:3px;padding-bottom:3px>[[Fichier:Icone Business Drogue.png|sans_cadre|45x45px]]</span><span style="color:white;margin-left:3px;margin-right:5px">'''Drogue'''</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 35 : Ligne 35 :
donnera :  
donnera :  
{{Rôle|role=PNJ}}
{{Rôle|role=PNJ}}
Le wikicode :
<pre>{{Rôle|role=test}}</pre>
donnera :
{{Rôle|role=test}}


===<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>===

Dernière version du 8 juin 2024 à 17:42


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 des chronologies et des tableaux

Le wikicode :

{{Rôle|role=MJ_legende}}

donnera : 👑MJ


Le wikicode :

{{Rôle|role=PNJ_legende}}

donnera : 🤖PNJ