Modèle:Lawbox : Différence entre versions
De La Quadrature du Net
Aller à la navigationAller à la recherche(18 révisions intermédiaires par un autre utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<div style="width: 95%; margin: 0 auto; margin-bottom: 1em;">{{#if:{{{title|}}}| | <div style="width: 95%; margin: 0 auto; margin-bottom: 1em;">{{#if:{{{title|}}}| | ||
− | <span style="font-size: 0.9em; color: #666; float: right; padding: 0 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> |
− | <h3 style="margin: 0 auto;"><span style="padding: 0.4em 2em; border: 1px solid #aaa; background-color: {{{ | + | <h3 style="margin: 0 auto;"><span style="padding: 0.4em 2em; border: 1px solid #aaa; background-color: {{#switch:{{{rate|}}} |
+ | | +++ = #46e011 | ||
+ | | ++ = #79e155 | ||
+ | | + = #b0e0a0 | ||
+ | | - = #f16969 | ||
+ | | -- = #f64242 | ||
+ | | --- = #ff0000 | ||
+ | | default = #ffffff | ||
+ | }};">{{{title}}}</span></h3> | ||
}}{{#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="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="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> |
− | }}{{#if:{{{|}}}| | + | }}<div style="border: 1px solid #aaa;"> |
− | <div style="padding: 0.5em 1em | + | {{#if:{{{|}}}| |
+ | <div style="padding: 0.5em 1em; padding-bottom: 1.5em; margin: 0 auto; text-align: justify;">{{{}}}</div> | ||
}}{{#if:{{{1|}}}| | }}{{#if:{{{1|}}}| | ||
− | <table style="border-spacing: 0;"> | + | <table style="border-spacing: 0; border-top: 1px solid #aaa;"> |
− | <td style="padding: 0.5em 1em | + | <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: 1px solid #aaa; padding-bottom: 1.5em; margin: 0 auto; text-align: justify; width:50%; | + | <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><noinclude>{{lawbox|title=Amendment 100| | + | }}</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é |
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>