Template:Userboxmacro

From OLPC
Revision as of 18:55, 5 July 2007 by Xavi (talk | contribs) (+cat)
Jump to navigation Jump to search
Nuvola apps kworldclock.png This user's time zone is UTC.
Template:Userboxmacro
Allows 1 to 20 boxes that can be used to describe or show some attributes associated to a specific user.

Source: Wikipedia Template:Babel

Usage

Intended to be used enclosed between {{olpcboxtop}} and {{olpcboxbottom}}.

{{olpcboxtop}}                # Somewhere before...
{{ userboxmacro | <box1> | <box2> | <box3> | <box-n <= 20>
 | toptext  = <!-- OPTIONAL — default: none -->
 }}
{{olpcboxbottom}}             # Somewhere later...

Sample

en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
es Castellano es la lengua materna de este usuario
{{olpcboxtop}}                # Somewhere before...
{{ userboxmacro |en|fr|es}}
{{olpcboxbottom}}             # Somewhere later...


en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
es Castellano es la lengua materna de este usuario
{{olpcboxtop}}                # Somewhere before...
{{userboxmacro | toptext = [[:Category:User languages|Languages]]
  |en|fr|es}}
{{olpcboxbottom}}             # Somewhere later...


Standalone

If used standalone and with a toptext, it needs to be enclosed in a table. If no toptext is used, resorting to a table is also recommended to avoid messy layouts.

 {|
 |-
 {{userboxmacro | toptext = [[:Category:User languages|Languages]]|en|fr|es|ru|zh}}
 |}
en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
es Castellano es la lengua materna de este usuario
ru Русский языкродной для этого участника.
zh 該使用者的母語中文
该用户的母語中文


{{userboxmacro |en|fr|es|ru|zh}}
en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
es Castellano es la lengua materna de este usuario
ru Русский языкродной для этого участника.
zh 該使用者的母語中文
该用户的母語中文