Template:Babel-X: Difference between revisions
Jump to navigation
Jump to search
This page has a more up-to-date location: Olpcboxes
mNo edit summary |
m (Reverted edits by 59.162.82.51 (Talk) to last version by Skierpage) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<center>This is a test of the local parserfunction implementation for <tt><nowiki>#if</nowiki></tt>. </center> |
|||
⚫ | |||
|- |
|- |
||
! style="background-color: {{{color|}}}; text-align: center" colspan=" |
! style="background-color: {{{color|}}}; text-align: center" colspan="{{{columns|1}}}" | {{{header|[[OLPCWiki:Babel]]}}} |
||
|- |
|- |
||
| {{#if:{{{1|}}}|{{User {{{1}}} |
| {{#if:{{{1|}}}|{{User {{{1}}}}} |
||
{{#if:{{{2|}}}|{{User {{{2}}} |
}}{{#if:{{{2|}}}|{{User {{{2}}}}} |
||
{{#if:{{{3|}}}|{{User {{{3 |
}}{{#if:{{{3|}}}|{{User {{{3}}}}} |
||
{{#if:{{{4|}}}|{{User {{{4 |
}}{{#if:{{{4|}}}|{{User {{{4}}}}} |
||
{{#if:{{{5|}}}|{{User {{{5}}}}} |
}}{{#if:{{{5|}}}|{{User {{{5}}}}} |
||
}}{{#if:{{{6|}}}|{{User {{{6}}}}} |
}}{{#if:{{{6|}}}|{{User {{{6}}}}} |
||
}}{{#if:{{{7|}}}|{{User {{{7}}}}} |
}}{{#if:{{{7|}}}|{{User {{{7}}}}} |
||
Line 23: | Line 20: | ||
}}{{#if:{{{16|}}}|{{User {{{16}}}}} |
}}{{#if:{{{16|}}}|{{User {{{16}}}}} |
||
}}{{#if:{{{17|}}}|{{User {{{17}}}}} |
}}{{#if:{{{17|}}}|{{User {{{17}}}}} |
||
}}{{#if:{{{18|}}}|{{User {{{18}}}}} |
|||
}} |
|||
}}{{#if:{{{19|}}}|{{User {{{19}}}}} |
|||
}}{{#if:{{{20|}}}|{{User {{{20}}}}}}} |
|||
|- |
|- |
||
| style="background-color: {{{color|}}}; text-align: center" colspan=" |
| style="background-color: {{{color|}}}; text-align: center" colspan="{{{columns|1}}}" | {{{footer|[[:Category:User languages|Search user languages]]}}} |
||
|}<noinclude> |
|}</includeonly><noinclude> |
||
*[[Template:Babel-X]] - Allows 1 to 17 boxes.<br />Format: <nowiki>{{Babel-X|<box1>|<box2>|<box3>...}}</nowiki> |
|||
{{obsolete|link=[[Olpcboxes]]}} |
|||
To specify a custom header, footer, or color add the parameters header=''HEADER'' (default: [[OLPCWiki:Babel]]), footer=''FOOTER'' (default: [[:Category:User languages|Search user languages]]), and/or color=''COLOR'' (default: white). Call the '!' userbox to start a new column after that point. You may also use '|align=left' to display the babel box on the left side of the screen rather than the default right. |
|||
; [[Template:Babel-X]] : Allows 1 to 20 boxes that can be used to describe or show some attributes associated to a specific user. |
|||
'''Source:''' [http://meta.wikimedia.org/wiki/Template:Babel Wikipedia Template:Babel] |
|||
== Usage == |
|||
⚫ | |||
<nowiki>{{</nowiki> Babel-X | ''<box1>'' | ''<box2>'' | ''<box3>'' | ''<box-n<=20>'' |
|||
| ''header'' = <!-- OPTIONAL — default: [[OLPCWiki:Babel|<nowiki>[[OLPCWiki:Babel]]</nowiki>]] --> |
|||
| ''footer'' = <!-- OPTIONAL — default: [[:Category:User languages|<nowiki>[[:Category:User languages|Search user languages]]</nowiki>]] --> |
|||
| ''color'' = <!-- OPTIONAL — background color; default: white --> |
|||
| ''columns'' = <!-- OPTIONAL — number of columns to span the header & footer; default: 1 --> |
|||
| ''align'' = <!-- OPTIONAL — to align the Babel box {left | right}; default: right --> |
|||
<nowiki>}}</nowiki> |
|||
== Sample == |
|||
⚫ | |||
⚫ | |||
⚫ | |||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] |
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] |
||
</noinclude> |
</noinclude> |
Latest revision as of 17:44, 15 September 2009
![542-stopicon.png](/mediawiki/images/thumb/a/a9/542-stopicon.png/35px-542-stopicon.png)
- Template:Babel-X
- 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
{{ Babel-X | <box1> | <box2> | <box3> | <box-n<=20> | header = <!-- OPTIONAL — default: [[OLPCWiki:Babel]] --> | footer = <!-- OPTIONAL — default: [[:Category:User languages|Search user languages]] --> | color = <!-- OPTIONAL — background color; default: white --> | columns = <!-- OPTIONAL — number of columns to span the header & footer; default: 1 --> | align = <!-- OPTIONAL — to align the Babel box {left | right}; default: right --> }}
Sample
{{Babel-X|align=left|color=yellow|columns=2|en|fr|de|!|es|ru|leet}}
OLPCWiki:Babel | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
| ||||||||
Search user languages |