Modèle:Citation : Différence entre versions

De Apocalypsis
Sauter à la navigation Sauter à la recherche
m (Esthétique)
(Transformation du modèle ; clé de catégorie ;)
Ligne 1 : Ligne 1 :
{|align="center" width="100%" border="0" cellspacing="0" cellpadding="0" valign="top" style="margin-top:20px; margin-bottom:20px;"
+
{| {{#ifeq:{{{Style|1}}}|1|align="left"|align="center" width="100%"}} border="0" cellspacing="0" cellpadding="0" valign="top" style="margin-top:20px; margin-bottom:20px;"
 
|-  
 
|-  
 
| align="left" valign="center" |
 
| align="left" valign="center" |
{| border="0" width="100%" cellspacing="1" cellpadding="2" style="border-collapse:collapse; {{#ifeq:{{{AfficherCadre|Oui}}}|Oui|border-width:1px; border-style:dashed; border-color:#A0A0A0; background-color:#FAFAFA;|}}"  
+
{| border="0" width="100%" cellspacing="1" cellpadding="2" style="border-collapse:collapse; {{#ifeq:{{{Style|1}}}|1||border-width:1px; border-style:dashed; border-color:#A0A0A0; background-color:#FAFAFA;}}"  
 
|-
 
|-
| {{#if:{{{Portrait|}}}| valign="center" align="left" width="192" {{!}} [[{{{Portrait}}}|center|192px|{{{Commandant|Auteur inconnu}}}]]  
+
| {{#ifeq:{{{Style|1}}}|3|valign="center" align="left" width="192" {{!}} [[Image:{{{Commandant}}}.jpg|center|192px|{{{Commandant|Auteur inconnu}}}]]  
 
{{!}}|}} valign="top" align="left" width="20" | [[Image:Guillemets ouverts.png|left|16px]]
 
{{!}}|}} valign="top" align="left" width="20" | [[Image:Guillemets ouverts.png|left|16px]]
 
| valign="top" align="left" | {{{1|Aucune citation}}} <br/>
 
| valign="top" align="left" | {{{1|Aucune citation}}} <br/>
Ligne 14 : Ligne 14 :
 
| [[Image:Message.png|center|16px|{{{Intervention|Intervention non-répertoriée}}}]]
 
| [[Image:Message.png|center|16px|{{{Intervention|Intervention non-répertoriée}}}]]
 
|-
 
|-
| [[Image:Commandant.png|center|16px|{{{Commandant|Auteur inconnu}}}]]
+
| [[Image:Commandant.png|center|16px|Commandant:{{{Commandant|}}}]]
 
|}
 
|}
 
|}
 
|}
Ligne 25 : Ligne 25 :
  
 
;Syntaxe :
 
;Syntaxe :
: <code><nowiki>{{</nowiki>Citation|1|Intervention|Commandant}}</code>
+
: <code><nowiki>{{</nowiki>Citation|1|Intervention|Commandant|Style}}</code>
  
 
;Paramètres :
 
;Paramètres :
 
:* '''<tt>1</tt>''' = citation de l'intervention.
 
:* '''<tt>1</tt>''' = citation de l'intervention.
:* '''<tt>Intervention</tt>''' = lien vers l'inttervention dans son ensemble.
+
:* '''<tt>Intervention</tt>''' = lien vers l'intervention dans son intégralité.
:* '''<tt>Commandant</tt>''' = lien vers le commandant ou la coalition qui a prononcé cette intervention.
+
:* '''<tt>Commandant</tt>''' = nom du commandant ou de la coalition qui a prononcé cette intervention.
:* '''<tt>AfficherCadre</tt>''' = si une autre valeur que "oui" est passée, le cadre sera masqué (facultatif, "oui" par défaut).
+
:* '''<tt>Style</tt>''' = (facultatif, 1 par défaut).
:* '''<tt>Portrait</tt>''' = portrait de ce commandant (facultatif, si aucune valeur fournie, le portrait sera masqué).
+
:** 1 pour un modèle simple adapté aux citations très courtes.
 +
:** 2 pour un modèle avec cadre adapté aux citations modérément courtes.
 +
:** 3 pour un modèle avec cadre et portrait, adapté aux citations plus longues.
  
 
;Exemples :
 
;Exemples :
 
: [[Apocalypsis:Bandeaux]]
 
: [[Apocalypsis:Bandeaux]]
 
  
 
{{EN|Template:Quotation}} [[Catégorie:Modèle francophone|Citation]]
 
{{EN|Template:Quotation}} [[Catégorie:Modèle francophone|Citation]]
 
</noinclude>
 
</noinclude>

Version du 5 novembre 2007 à 16:50

Guillemets ouverts.png
Aucune citation
Guillemets fermés.png
Intervention non-répertoriée
Commandant:




Utilisation 
Ce modèle sert à produire une courte citation d'une intervention.
Syntaxe 
{{Citation|1|Intervention|Commandant|Style}}
Paramètres 
  • 1 = citation de l'intervention.
  • Intervention = lien vers l'intervention dans son intégralité.
  • Commandant = nom du commandant ou de la coalition qui a prononcé cette intervention.
  • Style = (facultatif, 1 par défaut).
    • 1 pour un modèle simple adapté aux citations très courtes.
    • 2 pour un modèle avec cadre adapté aux citations modérément courtes.
    • 3 pour un modèle avec cadre et portrait, adapté aux citations plus longues.
Exemples 
Apocalypsis:Bandeaux
English