Template:Babel-X: Difference between revisions

From OLPC
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="10" | {{{header|[[OLPCWiki:Babel]]}}}
! 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="10" | {{{footer|[[:Category:User languages|Search user languages]]}}}
| 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.

; Format: <tt><nowiki>{{Babel-X|<box1>|<box2>|<box3>...}}</nowiki></tt>
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 ==
Example: <nowiki>{{Babel-X|align=left|color=yellow|en|fr|!|de|es|!|ru|leet}}</nowiki> produces:
<nowiki>{{</nowiki> Babel-X | ''<box1>'' | ''<box2>'' | ''<box3>'' | ''<box-n<=20>''
| ''header'' = &lt;!-- OPTIONAL &mdash; default: [[OLPCWiki:Babel|<nowiki>[[OLPCWiki:Babel]]</nowiki>]] --&gt;
| ''footer'' = &lt;!-- OPTIONAL &mdash; default: [[:Category:User languages|<nowiki>[[:Category:User languages|Search user languages]]</nowiki>]] --&gt;
| ''color'' = &lt;!-- OPTIONAL &mdash; background color; default: white --&gt;
| ''columns'' = &lt;!-- OPTIONAL &mdash; number of columns to span the header & footer; default: 1 --&gt;
| ''align'' = &lt;!-- OPTIONAL &mdash; to align the Babel box {left | right}; default: right --&gt;
<nowiki>}}</nowiki>


== Sample ==
{{Babel-X|align=left|color=yellow|en|fr|de|!|es|ru|leet}}
<nowiki>{{Babel-X|align=left|color=yellow|columns=2|en|fr|!|de|es|!|ru|leet}}</nowiki>
{{Babel-X|align=left|color=yellow|columns=2|en|fr|de|!|es|ru|leet}}
[[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
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.
Search user languages