Olpcboxes: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 38: Line 38:
</tr>
</tr>
<tr>
<tr>
<td><nowiki>{{User time zone|UTC-5|world}}</nowiki></td>
<td><nowiki>{{User time zone|UTC-5|world}}</nowiki>
<br />See the [[Template:User_time_zone|template]] for more information.</td>
<td>{{User time zone|UTC-5|world}}</td>
<td>{{User time zone|UTC-5|world}}</td>
</tr>
</tr>
Line 109: Line 110:
</tr>
</tr>
<tr>
<tr>
<td><nowiki> </nowiki></td>
<td><nowiki>{{User edtech}}</nowiki></td>
<td></td>
<td>{{User edtech}}</td>
</tr>
</tr>
<tr>
<tr>
Line 117: Line 118:
</tr>
</tr>
</table>
</table>


<nowiki>{{olpcboxtop</nowiki>
| align = &lt;!-- { <u>'''left'''</u> | right } --&gt;
| left = &lt;!-- Any left margin value. Defaults to <u>'''1'''</u>. --&gt;
| backgroundcolor = &lt;!-- Any [http://en.wikipedia.org/wiki/Web_colors web color] (name or <tt>#XXXXXX</tt> hex format). Defaults to <u>'''<tt>#FFFFFF</tt>'''</u>. --&gt;
| bordercolor = &lt;!-- Any [http://en.wikipedia.org/wiki/Web_colors web color] (name or <tt>#XXXXXX</tt> hex format). Defaults to <u>'''<tt>#99B3FF</tt>'''</u>. --&gt;
| extra-css = &lt;!-- Allows you to provide additional [http://en.wikipedia.org/wiki/Cascading_Style_Sheets CSS] style information. --&gt;
| textcolor = &lt;!-- Any [http://en.wikipedia.org/wiki/Web_colors web color] (name or <tt>#XXXXXX</tt> hex format). Defaults to <u>'''<tt>#000000</tt>'''</u>. --&gt;
| toptext = &lt;!-- Overrides the standard <u>'''[[[[Olpcboxes]]]]'''</u> text and link. Can include wiki-markup. --&gt;
}}
[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==
==Hiding olpcboxes==

Latest revision as of 16:50, 20 September 2008

Nuvola apps kworldclock.png This user's time zone is UTC.

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}}
@ email
address.com
{{User support-gang}}
help@ This user is a Support gang volunteer.
{{User design-gang}}
Wiki-DesignGang-palette.png This user is a Design Gang volunteer.
{{User time zone|UTC-5|world}}
See the template for more information.
Nuvola apps kworldclock.png This user's time zone is UTC-5.
{{user en}}


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 -1 to the language abbreviation in the command. The numbers are: 1 = basic, 2 = intermdiate, 3 = advanced, 4 = near-native, 5 = professional, N = native.
af = Afrikaans
ar = arabic
bg = Bulgarian
da = Danish
de = German
el = Greek
en = English
es = Spanish
fr = French
ht = Haitian Creole
hu = Hungarian
it = Italian
ja = Japanese
ko = Korean
leet = Leet
ne = Nepali
nl = Dutch
no = Norwegian
pl = Polish
pt = Portuguese
ro = Romanian
ru = Russian
tl = Tagalog
zh = Chinese

en This user is a native speaker of English.
{{User Boston}}
Olpc badge quad white.gif This user is a member of the OLPC Boston Users Group.
{{User student|graduate|Computer Science Engineering at [http://en.wikipedia.org/wiki/University_of_Michigan University of Michigan] }}
Nuvola apps edu miscellaneous.png This user is a graduate student– Computer Science Engineering at University of Michigan
{{User teacher}}
Nuvola apps edu miscellaneous.png This user is a teacher.
{{User teacher primary|''school name/link''}}
Nuvola apps edu miscellaneous.png This user is a primary teacher at school name/link
{{User teacher university|''uni-link-or-name''}}
Wikiversity-logo.png This user is a university teacher at 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>
{{{1}}} {{{3}}}
These users speak [[{{{2}}} language|{{{2}}}]].
{{User community repair}}
Nuvola apps edu miscellaneous.png This user is a spare parts hound.
{{User edtech}}
Nuvola apps edu miscellaneous.png This user is in educational technology.

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; }