Template:Userboxmacro: Difference between revisions
Jump to navigation
Jump to search
m (testing) |
m (cosmetics) |
||
Line 20: | Line 20: | ||
}}{{#if:{{{19|}}}|{{User {{{19}}}}} |
}}{{#if:{{{19|}}}|{{User {{{19}}}}} |
||
}}{{#if:{{{20|}}}|{{User {{{20}}}}}}} |
}}{{#if:{{{20|}}}|{{User {{{20}}}}}}} |
||
<noinclude>{{olpcboxbottom}}</noinclude> |
<noinclude>{{olpcboxbottom}}</noinclude><noinclude> |
||
<noinclude> |
|||
; [[Template:Userboxmacro]] : Allows 1 to 20 boxes that can be used to describe or show some attributes associated to a specific user. |
; [[Template:Userboxmacro]] : Allows 1 to 20 boxes that can be used to describe or show some attributes associated to a specific user. |
||
Line 38: | Line 37: | ||
{{olpcboxtop}} |
{{olpcboxtop}} |
||
{{userboxmacro|en|fr |
{{userboxmacro|en|fr|es}} |
||
{{olpcboxbottom}} |
{{olpcboxbottom}} |
||
{{tl|olpcboxtop}} # Somewhere before... |
{{tl|olpcboxtop}} # Somewhere before... |
||
<nowiki>{{</nowiki> userboxmacro |en|fr |
<nowiki>{{</nowiki> userboxmacro |en|fr|es<nowiki>}}</nowiki> |
||
{{tl|olpcboxbottom}} # Somewhere later... |
{{tl|olpcboxbottom}} # Somewhere later... |
||
{{-}} |
{{-}} |
||
{{olpcboxtop}} |
{{olpcboxtop}} |
||
{{userboxmacro | toptext = [[:Category:User languages|Languages]] |
{{userboxmacro | toptext = [[:Category:User languages|Languages]] |
||
|en|fr |
|en|fr|es}} |
||
{{olpcboxbottom}} |
{{olpcboxbottom}} |
||
{{tl|olpcboxtop}} # Somewhere before... |
{{tl|olpcboxtop}} # Somewhere before... |
||
<nowiki>{{userboxmacro | toptext = [[:Category:User languages|Languages]] |
<nowiki>{{userboxmacro | toptext = [[:Category:User languages|Languages]] |
||
|en|fr |
|en|fr|es}}</nowiki> |
||
{{tl|olpcboxbottom}} # Somewhere later... |
{{tl|olpcboxbottom}} # Somewhere later... |
||
{{-}} |
{{-}} |
||
---- |
|||
== Standalone == |
|||
⚫ | |||
⚫ | |||
If used ''standalone'' '''and''' with a ''header'', it needs to be enclosed in a table. |
|||
---- |
|||
<nowiki>{| |
|||
|- |
|||
⚫ | |||
|}</nowiki> |
|||
{| |
|||
|- |
|||
⚫ | |||
|} |
|||
{{-}} |
{{-}} |
||
⚫ | |||
---- |
|||
{{userboxmacro |en|fr |
{{userboxmacro |en|fr|es|ru|zh}} |
||
⚫ | |||
---- |
---- |
||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] |
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] |
Revision as of 18:41, 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|es}} {{olpcboxbottom}} # Somewhere later...
|
{{olpcboxtop}} # Somewhere before... {{userboxmacro | toptext = [[:Category:User languages|Languages]] |en|fr|es}} {{olpcboxbottom}} # Somewhere later...
Standalone
If used standalone and with a header, it needs to be enclosed in a table.
{| |- {{userboxmacro | toptext = [[:Category:User languages|Languages]]|en|fr|es|ru|zh}} |}
|
{{userboxmacro |en|fr|es|ru|zh}}
fr | Cet utilisateur a pour langue maternelle le français. |
es | Castellano es la lengua materna de este usuario |
ru | Русский язык — родной для этого участника. |