Template:OBX boilerplate params: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (Template:XO box2 moved to Template:OBX boilerplate params: settling for the OBX prefix (Olpc BoXes)))
(slimming the box - more info-like line)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:{{{float|left}}}; border:{{{border-width|1}}}px solid {{{border-color|{{{1|#6cbe42}}}}}}; margin:1px;">
<div style="float:{{{float|left}}}; border:{{{border-width|1}}}px solid {{{border-color|{{{1|#6cbe42}}}}}}; margin:1px;">
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|#8ad962}}}}}};"
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|#8ad962}}}}}};"
| style="width:45px; height:45px; background:{{{logo-background|{{{1|#6cbe42}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|14}}}}}}pt; color:{{{logo-color|black}}};" | '''{{{logo|{{{3|id}}}}}}'''
| style="width:45px; height:20px; background:{{{logo-background|{{{1|#6cbe42}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|14}}}}}}pt; color:{{{logo-color|black}}};" | '''{{{logo|{{{3|id}}}}}}'''
| style="font-size:{{{info-size|8}}}pt; padding:4pt; line-height:1.25em; color:{{{info-color|black}}};" | {{{info|{{{4|info}}}}}}
| style="font-size:{{{info-size|8}}}pt; padding:4pt; line-height:1.25em; color:{{{info-color|black}}};" | {{{info|{{{4|info}}}}}}
|}</div><noinclude>
|}</div><noinclude>
Line 8: Line 8:
==Usage==
==Usage==


This template (together with its twin [[Template:XO box]]) are ''helper'' templates to be '''used''' by other templates that are specific to a particular concern (see [[Template talk:XO box]]).
This template (together with its twin [[Template:OBX boilerplate html]]) are ''helper'' templates to be '''used''' by other templates that are specific to a particular concern (see [[Template talk:OBX boilerplate html]]).


<nowiki>{{Template:XO box2}}</nowiki>
<nowiki>{{Template:OBX boilerplate params}}</nowiki>


;The following parameters, shown with their current (default) values, can be changed.
;The following parameters, shown with their current (default) values, can be changed.
<pre>
<pre>
{{OBX boilerplate params
{{XO box2
| border-color = #6cbe42
| border-color = #6cbe42
| border-width = 1 &lt;!-- the border width in px --&gt;
| border-width = 1 &lt;!-- the border width in px --&gt;
Line 31: Line 31:


'''Original:'''
'''Original:'''
{{XO box2 &#124; border-color = #ffb466 &#124; border-width = 1 &#124; logo-background = #ffb466 &#124; logo-size = 14 &#124; logo-color = black &#124; info-background = #ffe496 &#124; info-size = 8 &#124; info-color = black &#124; logo = id &#124; info = info &#124; float = left }}
{{OBX boilerplate params &#124; border-color = #ffb466 &#124; border-width = 1 &#124; logo-background = #ffb466 &#124; logo-size = 14 &#124; logo-color = black &#124; info-background = #ffe496 &#124; info-size = 8 &#124; info-color = black &#124; logo = id &#124; info = info &#124; float = left }}
{{-}}
{{-}}
{{WikipediaTemplate|name=User:UBX/Boilerplate}}
{{WikipediaTemplate|name=User:UBX/Boilerplate}}
[[Category:XO templates]]
[[Category:OBX templates|{{PAGENAME}}]]
<!-- Originally (in wikipedia) based on Template:Userbox sample and Template:Userbox sample compact -->
<!-- Originally (in wikipedia) based on Template:Userbox sample and Template:Userbox sample compact -->
</noinclude>
</noinclude>

Latest revision as of 04:57, 12 September 2007

id info


Usage

This template (together with its twin Template:OBX boilerplate html) are helper templates to be used by other templates that are specific to a particular concern (see Template talk:OBX boilerplate html).

{{Template:OBX boilerplate params}}

The following parameters, shown with their current (default) values, can be changed.
{{OBX boilerplate params
 | border-color    = #6cbe42
 | border-width    = 1            <!-- the border width in px -->
 | logo-background = #6cbe42
 | logo-size       = 14           <!-- the font size in pt -->
 | logo-color      = black        <!-- the font color -->
 | info-background = #8ad962
 | info-size       = 8            <!-- the font size in pt -->
 | info-color      = black        <!-- the font color -->
 | logo            = id           <!-- whatever wiki text is appropriate (including images) -->
 | info            = info         <!-- whatever wiki text is appropriate (images not recommended) -->
 | float           = left         <!-- if the box should float on the { left | right } -->
 }}
or

Original: {{OBX boilerplate params | border-color = #ffb466 | border-width = 1 | logo-background = #ffb466 | logo-size = 14 | logo-color = black | info-background = #ffe496 | info-size = 8 | info-color = black | logo = id | info = info | float = left }}


This template was extracted, copied, adapted or otherwise inspired by an existing one in the Wikipedia, which is licensed under the GNU Free Documentation License.