Template:Userboxmacro: Difference between revisions
Jump to navigation
Jump to search
m (cosmetics) |
(+cat) |
||
Line 1: | Line 1: | ||
<noinclude>{{olpcboxtop}}</noinclude>{{#if:{{{toptext|}}}|{{olpcboxbreak|toptext={{{toptext}}} }} }}<!-- |
<noinclude>{{olpcboxtop}}{{User time zone|UTC|world}}</noinclude>{{#if:{{{toptext|}}}|{{olpcboxbreak|toptext={{{toptext}}} }} }}<!-- |
||
-->{{#if:{{{1|}}}|{{User {{{1}}}}} |
-->{{#if:{{{1|}}}|{{User {{{1}}}}} |
||
}}{{#if:{{{2|}}}|{{User {{{2}}}}} |
}}{{#if:{{{2|}}}|{{User {{{2}}}}} |
||
Line 55: | Line 55: | ||
== Standalone == |
== Standalone == |
||
If used ''standalone'' '''and''' with a '' |
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. |
||
<nowiki>{| |
<nowiki>{| |
||
|- |
|- |
||
Line 68: | Line 68: | ||
<nowiki>{{userboxmacro |en|fr|es|ru|zh}}</nowiki> |
<nowiki>{{userboxmacro |en|fr|es|ru|zh}}</nowiki> |
||
{{userboxmacro |en|fr|es|ru|zh}} |
{{userboxmacro |en|fr|es|ru|zh}} |
||
---- |
|||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] |
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] |
||
[[Category:Userbox templates|{{PAGENAME}}]] |
|||
[[Category:Template|{{PAGENAME}}]] |
|||
</noinclude> |
</noinclude> |
Revision as of 18:55, 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 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}} |}
|
{{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 | Русский язык — родной для этого участника. |