Template:Userboxmacro: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (macro of sorts to avoid verbosity in OBXs)
 
m (tweaking)
Line 1: Line 1:
<noinclude>{{olpcboxtop}}</noinclude>
<noinclude>{{olpcboxtop}}</noinclude>
{{#if:{{{header}}}|{{olpcboxbreak|title={{{header}}}}}}}
{{#if:{{{toptext|}}}|{{olpcboxbreak|toptext={{{toptext}}}}}}}
{{#if:{{{1|}}}|{{User {{{1}}}}}
{{#if:{{{1|}}}|{{User {{{1}}}}}
}}
}}{{#if:{{{2|}}}|{{User {{{2}}}}}
}}{{#if:{{{3|}}}|{{User {{{3}}}}}
{{#if:{{{2|}}}|{{User {{{2}}}}}
}}
}}{{#if:{{{4|}}}|{{User {{{4}}}}}
{{#if:{{{3|}}}|{{User {{{3}}}}}
}}
{{#if:{{{4|}}}|{{User {{{4}}}}}
}}{{#if:{{{5|}}}|{{User {{{5}}}}}
}}{{#if:{{{5|}}}|{{User {{{5}}}}}
}}{{#if:{{{6|}}}|{{User {{{6}}}}}
}}{{#if:{{{6|}}}|{{User {{{6}}}}}
Line 32: Line 35:
{{tl|olpcboxtop}} # Somewhere before...
{{tl|olpcboxtop}} # Somewhere before...
<nowiki>{{</nowiki> userboxmacro | ''<box1>'' | ''<box2>'' | ''<box3>'' | ''<box-n <= 20>''
<nowiki>{{</nowiki> userboxmacro | ''<box1>'' | ''<box2>'' | ''<box3>'' | ''<box-n <= 20>''
| ''header'' = &lt;!-- OPTIONAL &mdash; default: ''none'' --&gt;
| ''toptext'' = &lt;!-- OPTIONAL &mdash; default: ''none'' --&gt;
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>
{{tl|olpcboxtop}} # Somewhere later...
{{tl|olpcboxbottom}} # Somewhere later...


== Sample ==
== Sample ==
Line 40: Line 43:
{{tl|olpcboxtop}} # Somewhere before...
{{tl|olpcboxtop}} # Somewhere before...
<nowiki>{{</nowiki> userboxmacro |en|fr|de|es|ru|leet<nowiki>}}</nowiki>
<nowiki>{{</nowiki> userboxmacro |en|fr|de|es|ru|leet<nowiki>}}</nowiki>
{{tl|olpcboxtop}} # Somewhere later...
{{tl|olpcboxbottom}} # Somewhere later...
{{olpcboxtop}}
{{olpcboxtop}}
{{userboxmacro |en|fr|de|es|ru|leet}}
{{userboxmacro|en|fr|de|es|ru|leet}}
{{olpcboxtop}}
{{olpcboxbottom}}
{{-}}

{{tl|olpcboxtop}} # Somewhere before...
{{tl|olpcboxtop}} # Somewhere before...
<nowiki>{{</nowiki> userboxmacro |en|fr|de|es|ru|leet
<nowiki>{{</nowiki> userboxmacro | toptext = <nowiki>[[:Category:User languages|Languages]]</nowiki>
| header = <nowiki>[[:Category:User languages|Languages]]</nowiki>
|en|fr|de|es|ru|leet<nowiki>}}</nowiki>
{{tl|olpcboxbottom}} # Somewhere later...
<nowiki>}}</nowiki>
{{tl|olpcboxtop}} # Somewhere later...
{{olpcboxtop}}
{{olpcboxtop}}
{{userboxmacro |en|fr|de|es|ru|leet
{{userboxmacro | toptext = [[:Category:User languages|Languages]]
|en|fr|de|es|ru|leet}}
| header = [[:Category:User languages|Languages]]
{{olpcboxbottom}}
<nowiki>}}</nowiki>
{{olpcboxtop}}
{{-}}
{{userboxmacro | toptext = [[:Category:User languages|Languages]]

|en|fr|de|es|ru|leet}}
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 18:15, 5 July 2007




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

{{olpcboxtop}}                # Somewhere before...
{{ userboxmacro |en|fr|de|es|ru|leet}}
{{olpcboxbottom}}             # Somewhere later...


en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
de Dieser Benutzer spricht Deutsch als Muttersprache.
es Castellano es la lengua materna de este usuario
ru Русский языкродной для этого участника.
1337 7|-|15 |_|z0r 5|>34|<5 1337.



{{olpcboxtop}}                # Somewhere before...
{{ userboxmacro | toptext = [[:Category:User languages|Languages]]
 |en|fr|de|es|ru|leet}}
{{olpcboxbottom}}             # Somewhere later...
en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
de Dieser Benutzer spricht Deutsch als Muttersprache.
es Castellano es la lengua materna de este usuario
ru Русский языкродной для этого участника.
1337 7|-|15 |_|z0r 5|>34|<5 1337.



|-

|

Languages

|- |

en This user is a native speaker of English.
fr Cet utilisateur a pour langue maternelle le français.
de Dieser Benutzer spricht Deutsch als Muttersprache.
es Castellano es la lengua materna de este usuario
ru Русский языкродной для этого участника.
1337 7|-|15 |_|z0r 5|>34|<5 1337.