Olpcboxes: Difference between revisions
(→Usage) |
(→Usage) |
||
Line 38: | Line 38: | ||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
<td><nowiki>{{User time zone|UTC-5|world}} |
<td><nowiki>{{User time zone|UTC-5|world}} |
||
<br />See the [Template:User_time_zone|template] for more information.</nowiki></td> |
|||
<td>{{User time zone|UTC-5|world}}</td> |
<td>{{User time zone|UTC-5|world}}</td> |
||
</tr> |
</tr> |
Revision as of 16:47, 20 September 2008
OLPC Boxes (often shortened to OBX) are sets of templates that put attractive consistent "badging" on wiki pages. For example Activities use them; some user pages use them.
- For a full guide you can see Wikipedia:Userboxes
- (with caveats given the idea has been adapted for the OLPC)
- {{olpcboxtop}} — used to 'start' a box.
- ... some boxes ... — in the shape of {{OBX boxname|params}} or {{User boxname|params}}
- {{olpcboxbreak}} — for creating 'sections' within the box
- {{olpcboxmacro}} — short for specifying a series of {{OBX boxname|params}}
- {{userboxmacro}} — short for specifying a series of {{User boxname|params}}
- {{olpcboxbottom}} — used to 'close' a box.
- See also
- OBX proposals
Usage
OLPCBoxes command | What it produces | ||
---|---|---|---|
{{user mail|email|address.com}} |
|
||
{{User support-gang}} |
|
||
{{User design-gang}} |
|
||
{{User time zone|UTC-5|world}} <br />See the [Template:User_time_zone|template] for more information. | |||
{{user en}}
|
|||
{{User Boston}} |
|
||
{{User student|graduate|Computer Science Engineering at [http://en.wikipedia.org/wiki/University_of_Michigan University of Michigan] }} |
|
||
{{User teacher}} |
|
||
{{User teacher primary|''school name/link''}} |
|
||
{{User teacher university|''uni-link-or-name''}} |
|
||
<div style="float:left;border:solid #99b3ff 1px;margin:1px;"> {| cellspacing="0" style="width:260px;background:#e0e8ff;" | style="width:45px;height:45px;background:#99b3ff;text-align:center;font-size:14pt;" | '''{{{1}}}''' | style="font-size:8pt;padding:4pt;line-height:1.25em;text-align:center;" | {{{3}}}<hr>These users speak '''[[{{{2}}} language|{{{2}}}]]'''. |}</div> |
|
||
{{User community repair}} |
|
||
{{User edtech}} |
|
||
{{olpcboxtop | align = <!-- { left | right } --> | left = <!-- Any left margin value. Defaults to 1. --> | backgroundcolor = <!-- Any web color (name or #XXXXXX hex format). Defaults to #FFFFFF. --> | bordercolor = <!-- Any web color (name or #XXXXXX hex format). Defaults to #99B3FF. --> | extra-css = <!-- Allows you to provide additional CSS style information. --> | textcolor = <!-- Any web color (name or #XXXXXX hex format). Defaults to #000000. --> | toptext = <!-- Overrides the standard [[Olpcboxes]] text and link. Can include wiki-markup. --> }} [olpcboxes] {{olpcboxbottom}}
All of the parameters are optional. You may also insert breaks by using {{olpcboxbreak}}. See that template for details.
Hiding olpcboxes
You can hide olpcboxes which utilize this (as well as a few other) forms of template-based userbox organization. Simply edit your userspace CSS override (for example, monobook.css for the Monobook skin) and add the following–
table.userboxes { display: none; }
table.olpcboxes { display: none; }