Modèle:Colorbox : Différence entre versions

De Europe Politique
(Page créée avec « <div style="margin:0;background-color:{{{color|#000}}};border:1px solid {{{border|#888}}};font-style:italic;text-align:left;padding:1em 1em 1em 1em; overflow:hidden;color:... »)
 
 
(45 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<div style="margin:0;background-color:{{{color|#000}}};border:1px solid {{{border|#888}}};font-style:italic;text-align:left;padding:1em 1em 1em 1em; overflow:hidden;color:{{{text|#fff}}}">{{{1}}}</div><noinclude>
+
<span style="background-color:{{{1|white}}}; border:1px solid grey; padding:0px 6px;">&nbsp;</span>
==Example==
+
The 'color' parameter is the background color.  The 'border' parameter is the border color.  The background color should be a darker shade of the border color.  If the background color is not dark, the white text may be difficult to read.  In that case, use a black text by setting the 'text' parameter.
+
The first unnamed parameter is the text to appear in the box.
+
 
+
<nowiki>{{Color box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}</nowiki>
+
{{Color box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}
+
 
+
<nowiki>{{Color box|color=#205|border=#60b|And this one is purple.}}</nowiki>
+
{{Color box|color=#205|border=#60b|And this one is purple.}}
+
 
+
<nowiki>{{Color box|color=#c0f|border=#a0f|text=#000|Too light}}</nowiki>
+
{{Color box|color=#c0f|border=#a0f|text=#000|Too light}}
+
 
+
[[Category:Template|{{PAGENAME}}]]</noinclude>
+

Version actuelle en date du 30 avril 2013 à 21:39