Modèle:Lawbox : Différence entre versions

De La Quadrature du Net
Aller à la navigationAller à la recherche
 
(11 révisions intermédiaires par un autre utilisateur non affichées)
Ligne 12 : Ligne 12 :
 
}}{{#if:{{{title-na|}}}|
 
}}{{#if:{{{title-na|}}}|
 
<h3 style="margin: 0 auto;"><span style="padding: 0.4em 2em; border: 1px solid #aaa;">{{{title-na}}}</span></h3>
 
<h3 style="margin: 0 auto;"><span style="padding: 0.4em 2em; border: 1px solid #aaa;">{{{title-na}}}</span></h3>
 +
}}{{#if:{{{title-na-|}}}|
 +
<span style="padding: 0.4em 2em; border: 1px solid #aaa;">{{{title-na-}}}</span>
 
}}{{#if:{{{title-lob|}}}|
 
}}{{#if:{{{title-lob|}}}|
<span style="margin: 0 auto; font-size: 1em; color: #666; float: right; padding: 0.8em 2em;">How to read an amendment: '''added to the initial text''' / <s>deleted from the initial text</s></span>
+
<span style="font-size: 0.9em; color: #666; float: right; padding: 0.8em 2em;">How to read an amendment: '''added to the initial text''' / <s>deleted from the initial text</s></span>
<span style="margin: 0 auto; padding: 0.4em 2em; border: 1px solid #aaa;">{{{title-lob}}}</span>
+
<div style="margin: 0 auto; font-size: 1em; overflow: hidden;padding-top: .5em;  padding-bottom: .17em;"><span style="margin: 0 auto; padding: 0.4em 2em; border: 1px solid #aaa;">{{{title-lob}}}</span></div>
 
}}<div style="border: 1px solid #aaa;">
 
}}<div style="border: 1px solid #aaa;">
 
{{#if:{{{|}}}|
 
{{#if:{{{|}}}|
Ligne 20 : Ligne 22 :
 
}}{{#if:{{{1|}}}|
 
}}{{#if:{{{1|}}}|
 
<table style="border-spacing: 0; border-top: 1px solid #aaa;">
 
<table style="border-spacing: 0; border-top: 1px solid #aaa;">
<td style="padding: 0.5em 1em; padding-bottom: 1.5em; margin: 0 auto; text-align: justify; width:50%;">{{{1}}}</td>
+
<td style="padding: 0.5em 1em; padding-bottom: 1.5em; margin: 0 auto; text-align: justify; width:50%; vertical-align:top;">{{{1}}}</td>
<td style="padding: 0.5em 1em; border-left: 1px solid #aaa; padding-bottom: 1.5em; margin: 0 auto; text-align: justify; width:50%;">{{{2}}}</td>
+
<td style="padding: 0.5em 1em; border-left: 1px solid #aaa; padding-bottom: 1.5em; margin: 0 auto; text-align: justify; width:50%; vertical-align:top;">{{{2}}}</td>
 
</table>
 
</table>
}}</div></div><noinclude>{{lawbox|title=Amendment 100|rate=-|1=Bla bla bla|2=Bouboubouboub}}</noinclude>
+
}}</div></div><noinclude>
 +
 
 +
'''Para 1:'''
 +
Contenu de la vignette
 +
 
 +
*title : titre en h3 avec "how to read"
 +
*title-na : titre en h3 sans "how to read"
 +
*title-lob : titre normal avec "how to read"
 +
*title-na- : titre normal sans "how to read"
 +
 
 +
'''Para 2:'''
 +
Couleur de la vignette (gris par défaut)
 +
 
 +
*rate : de --- (rouge vif) à +++ (vert vif)
 +
 
 +
'''Para 3:'''
 +
Contenu de la boite
 +
 
 +
*[rien] : une seule case
 +
*1 : deux cases, celle de gauche
 +
*2 : deux cases, celle de droite
 +
 
 +
 
 +
 
 +
'''Exemple:
 +
 
 +
<noinclude>
 +
[[Category:Templates]]
 +
</noinclude>
 +
 
 +
lawbox|title=Amendment 100|rate=-|1=Vive la liberté d'expression !|2=Vive la liberté <s>d'expression !</s> '''d'entreprise'''
 +
 
 +
{{lawbox|title=Amendment 100|rate=-|1=Vive la liberté d'expression !|2=Vive la liberté <s>d'expression !</s> '''d'entreprise'''}}</noinclude>

Version actuelle datée du 28 juillet 2015 à 17:32

Para 1: Contenu de la vignette

  • title : titre en h3 avec "how to read"
  • title-na : titre en h3 sans "how to read"
  • title-lob : titre normal avec "how to read"
  • title-na- : titre normal sans "how to read"

Para 2: Couleur de la vignette (gris par défaut)

  • rate : de --- (rouge vif) à +++ (vert vif)

Para 3: Contenu de la boite

  • [rien] : une seule case
  • 1 : deux cases, celle de gauche
  • 2 : deux cases, celle de droite


Exemple:


lawbox|title=Amendment 100|rate=-|1=Vive la liberté d'expression !|2=Vive la liberté d'expression ! d'entreprise

How to read an amendment: added to the initial text / deleted from the initial text

Amendment 100

Vive la liberté d'expression ! Vive la liberté d'expression ! d'entreprise

lawbox|title=Amendment 100|rate=-|1=Vive la liberté d'expression !|2=Vive la liberté d'expression ! d'entreprise

Modèle en boucle détecté : Modèle:Lawbox</noinclude>