Template:Babel-X: Difference between revisions
Jump to navigation
Jump to search
m (tweaking) |
m (tweaking) |
||
Line 1: | Line 1: | ||
{| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: 1em; margin-bottom: 0.5em; width: 242px; border: #99B3FF solid 1px; clear: right" |
<includeonly>{| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: 1em; margin-bottom: 0.5em; width: 242px; border: #99B3FF solid 1px; clear: right" |
||
|- |
|- |
||
! 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}}}}} |
||
Line 24: | Line 24: | ||
}}{{#if:{{{20|}}}|{{User {{{20}}}}}}} |
}}{{#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 20 boxes that can be used to describe or show some attributes associated to a specific user. |
|||
<center>This is a test of the local parserfunction implementation for <tt><nowiki>#if</nowiki></tt>. </center> |
|||
*[[Template:Babel-X]] - Allows 1 to 20 boxes. |
|||
⚫ | |||
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. |
|||
'''Source:''' [http://meta.wikimedia.org/wiki/Template:Babel Wikipedia Template:Babel] |
'''Source:''' [http://meta.wikimedia.org/wiki/Template:Babel Wikipedia Template:Babel] |
||
== Usage == |
|||
⚫ | |||
⚫ | |||
| ''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> |
Revision as of 19:44, 3 July 2007
- 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 |