« Modèle:Duel » : différence entre les versions
Aller à la navigation
mAucun résumé des modifications |
mAucun résumé des modifications |
||
(6 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<includeonly><div style="position:relative; width:100px; text-align:center;">[[Fichier:Fond Duel.png|100px|link=]] | <includeonly><div style="position:relative; width:100px; text-align:center;">[[Fichier:Fond Duel.png|100px|link=]] | ||
<div style="position:absolute; right:11px; top:24px; text-align:center;">[[Fichier:Duel-vs.gif|30px|link=]]</div> | <div style="position:absolute; right:11px; top:24px; text-align:center;">[[Fichier:Duel-vs.gif|30px|link=]]</div> | ||
<div style="position:absolute; left: | <div style="position:absolute; left:7px; top:28px; color:black; font-size:9px; font-weight:bold; line-height:10px; text-align:center;">{{#ifeq: {{{KO}}} |OUI |<big>'''{{#ifeq: {{#switch: {{{1}}} | ||
| GAGNE | |||
| Gagne | |||
| gagne | |||
| gagné | |||
| Gagné = GAGNE | |||
| #default = PERDU}} |GAGNE| KO<br>infligé | KO<br>subi }}'''</big> | |||
|<big>'''{{#switch: {{{1}}} | |||
| GAGNE | |||
| Gagne | |||
| gagne | |||
| gagné | |||
| Gagné = GAGNE | |||
| #default = PERDS}}'''<br>vs</big> | |||
}}</div> | |||
<div style="position:absolute; right:14px; bottom:38px; text-align:center;">{{#ifeq: {{#switch: {{{1}}} | <div style="position:absolute; right:14px; bottom:38px; text-align:center;">{{#ifeq: {{#switch: {{{1}}} | ||
| GAGNE | | GAGNE | ||
Ligne 14 : | Ligne 22 : | ||
| gagné | | gagné | ||
| Gagné = GAGNE | | Gagné = GAGNE | ||
| #default = | | #default = PERDU}} |GAGNE |[[Fichier:Pouce_Levé.png|25px|link=]] |[[Fichier:Pouce_Baissé.png|25px|link=]]}}</div> | ||
<div style="position:absolute; left:8px; bottom:28px; text-align:center;">[[Fichier:{{{3|{{{2}}}}}}.png|40px|link=]]</div> | <div style="position:absolute; left:8px; bottom:28px; text-align:center;">[[Fichier:{{{3|{{{2}}} PNJ}}}.png|40px|link=]]</div> | ||
<div style="position:absolute; left:5px; bottom:4px; color:black; font-size:8px; font-weight:bold; line-height:10px; text-align:center;"><big>''{{{2}}}''</big></div></div><div style="clear:both"></div></includeonly><noinclude> | <div style="position:absolute; left:5px; bottom:4px; width:90px; color:black; font-size:8px; font-weight:bold; line-height:10px; text-align:center;"><big>''{{{2}}}''</big></div></div><div style="clear:both"></div></includeonly><noinclude> | ||
== Utilisation == | == Utilisation == | ||
<code><nowiki> | <code><nowiki> | ||
{{</nowiki>Duel | ''GAGNE ou PERDU''| ''[Nom PNJ]'' |' '[Image PNJ] (sans .png)''}}<br> | {{</nowiki>Duel | '''''GAGNE ou PERDU'''''| '''''[Nom PNJ]''''' |''[Image PNJ] (sans .png)'' |'''''KO=[OUI/NON]''' (NON par défaut)''}}<br> | ||
:où ''[Nom PNJ]'' sur 2 lignes max, chaque ligne avec 14 caractères max<br><br></code> | :où ''[Nom PNJ]'' sur 2 lignes max, chaque ligne avec 14 caractères max<br><br></code> | ||
<code>'''Exemple''':</code><br> | <code>'''Exemple''':</code><br> | ||
Ligne 25 : | Ligne 33 : | ||
{{Duel | Gagné |12345678901234 12345678901234|Bandit en fuite PNJ}}</code> | {{Duel | Gagné |12345678901234 12345678901234|Bandit en fuite PNJ}}</code> | ||
<br> | <br> | ||
*<code><nowiki>{{</nowiki>Duel | GAGNE |Les mercenaires|Bandit en fuite PNJ}}<br> | *<code><nowiki>{{</nowiki>Duel | GAGNE |Les mercenaires|Bandit en fuite PNJ|KO=OUI}}<br> | ||
{{Duel | GAGNE |Les mercenaires|Bandit en fuite PNJ}}</code> | {{Duel | GAGNE |Les mercenaires|Bandit en fuite PNJ|KO=OUI}}</code> | ||
<br> | |||
*<code><nowiki>{{</nowiki>Duel | PERDU |Bandit en fuite|KO=OUI}}<br> | |||
{{Duel | PERDU |Bandit en fuite|KO=OUI}}</code> | |||
<br> | <br> | ||
*<code><nowiki>{{</nowiki>Duel | PERDU | *<code><nowiki>{{</nowiki>Duel | PERDU |Bandit en fuite|KO=NON}}<br> | ||
{{Duel | PERDU | {{Duel | PERDU |Bandit en fuite|KO=NON}}</code> | ||
[[Catégorie:Modèles]]</noinclude> | [[Catégorie:Modèles]]</noinclude> |
Dernière version du 28 janvier 2015 à 09:28
Utilisation
{{Duel | GAGNE ou PERDU| [Nom PNJ] |[Image PNJ] (sans .png) |KO=[OUI/NON] (NON par défaut)}}
où [Nom PNJ] sur 2 lignes max, chaque ligne avec 14 caractères max
Exemple:
{{Duel | Gagné |12345678901234 12345678901234|Bandit en fuite PNJ}}
GAGNE
vs
12345678901234 12345678901234
{{Duel | GAGNE |Les mercenaires|Bandit en fuite PNJ|KO=OUI}}
KO
infligé
Les mercenaires
{{Duel | PERDU |Bandit en fuite|KO=OUI}}
KO
subi
Bandit en fuite
{{Duel | PERDU |Bandit en fuite|KO=NON}}
PERDS
vs
Bandit en fuite