Olpcboxes: Difference between revisions
(explain!) |
No edit summary |
||
Line 6: | Line 6: | ||
: ''For a full guide you can see '''[http://en.wikipedia.org/wiki/WP:UBX Wikipedia:Userboxes]''''' |
: ''For a full guide you can see '''[http://en.wikipedia.org/wiki/WP:UBX Wikipedia:Userboxes]''''' |
||
: ''(with caveats given the idea has been adapted for the OLPC)'' |
: ''(with caveats given the idea has been adapted for the OLPC)'' |
||
{{stub}} |
|||
{{Pending|need to pull together some documentation.}} |
|||
* {{tl|olpcboxtop}} — used to 'start' a box. |
* {{tl|olpcboxtop}} — used to 'start' a box. |
||
Line 17: | Line 16: | ||
; See also : [[OBX proposals]] |
; See also : [[OBX proposals]] |
||
==Usage== |
|||
<table border="1"> |
|||
<tr> |
|||
<th width="60%">OLPCBoxes command</th> |
|||
<th>What it produces</th> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{user mail|email|address.com}}</nowiki></td> |
|||
<td>{{user mail|email|address.com}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User support-gang}}</nowiki></td> |
|||
<td>{{User support-gang}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User design-gang}}</nowiki></td> |
|||
<td>{{User design-gang}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User time zone|UTC-5|world}}</nowiki></td> |
|||
<td>{{User time zone|UTC-5|world}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{user en}}</nowiki> |
|||
<br />Many of these language templates are capable of identifying user's language competence as well (for example; beginner, moderate, fluent, native speaker). This is done by adding a <tt>-1</tt> to the language abbreviation in the command. The numbers are: 1 = basic, 2 = intermdiate, 3 = advanced, 4 = near-native, 5 = professional, N = native. |
|||
<br />af = Afrikaans |
|||
<br />ar = arabic |
|||
<br />bg = Bulgarian |
|||
<br />da = Danish |
|||
<br />de = German |
|||
<br />el = Greek |
|||
<br />en = English |
|||
<br />es = Spanish |
|||
<br />fr = French |
|||
<br />ht = Haitian Creole |
|||
<br />hu = Hungarian |
|||
<br />it = Italian |
|||
<br />ja = Japanese |
|||
<br />ko = Korean |
|||
<br />leet = Leet |
|||
<br />ne = Nepali |
|||
<br />nl = Dutch |
|||
<br />no = Norwegian |
|||
<br />pl = Polish |
|||
<br />pt = Portuguese |
|||
<br />ro = Romanian |
|||
<br />ru = Russian |
|||
<br />tl = Tagalog |
|||
<br />zh = Chinese |
|||
</td> |
|||
<td>{{user en}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User Boston}}</nowiki></td> |
|||
<td>{{User Boston}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User student|graduate|Computer Science Engineering at [http://en.wikipedia.org/wiki/University_of_Michigan University of Michigan] |
|||
}}</nowiki></td> |
|||
<td>{{User student|graduate|Computer Science Engineering at [http://en.wikipedia.org/wiki/University_of_Michigan University of Michigan]}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User teacher}}</nowiki></td> |
|||
<td>{{User teacher}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User teacher primary|''school name/link''}}</nowiki></td> |
|||
<td>{{User teacher primary|''school name/link''}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User teacher university|''uni-link-or-name''}}</nowiki></td> |
|||
<td>{{User teacher university|''uni-link-or-name''}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki><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></nowiki></td> |
|||
<td><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></td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki>{{User community repair}}</nowiki></td> |
|||
<td>{{User community repair}}</td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki> </nowiki></td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td><nowiki> </nowiki></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
<nowiki>{{olpcboxtop</nowiki> |
|||
| align = <!-- { <u>'''left'''</u> | right } --> |
|||
| left = <!-- Any left margin value. Defaults to <u>'''1'''</u>. --> |
|||
| backgroundcolor = <!-- Any [http://en.wikipedia.org/wiki/Web_colors web color] (name or <tt>#XXXXXX</tt> hex format). Defaults to <u>'''<tt>#FFFFFF</tt>'''</u>. --> |
|||
| bordercolor = <!-- Any [http://en.wikipedia.org/wiki/Web_colors web color] (name or <tt>#XXXXXX</tt> hex format). Defaults to <u>'''<tt>#99B3FF</tt>'''</u>. --> |
|||
| extra-css = <!-- Allows you to provide additional [http://en.wikipedia.org/wiki/Cascading_Style_Sheets CSS] style information. --> |
|||
| textcolor = <!-- Any [http://en.wikipedia.org/wiki/Web_colors web color] (name or <tt>#XXXXXX</tt> hex format). Defaults to <u>'''<tt>#000000</tt>'''</u>. --> |
|||
| toptext = <!-- Overrides the standard <u>'''[[[[Olpcboxes]]]]'''</u> text and link. Can include wiki-markup. --> |
|||
}} |
|||
[olpcboxes] |
|||
{{tl|olpcboxbottom}} |
|||
All of the parameters are '''optional'''. You may also insert breaks by using {{tl|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, [[Special:Mypage/monobook.css|monobook.css]] for the Monobook skin) and add the following– |
|||
<code><nowiki>table.userboxes { display: none; }</nowiki></code> |
|||
<code><nowiki>table.olpcboxes { display: none; }</nowiki></code> |
|||
[[Category:OBX templates]] |
[[Category:OBX templates]] |
Revision as of 15:39, 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}} | |||
{{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}} |
|
||
{{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; }