Template:Babel-X: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
m (tweaking)
Line 1: Line 1:
<center>This is a test of the local parserfunction implementation for <tt><nowiki>#if</nowiki></tt>. </center>


{| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: 1em; margin-bottom: 0.5em; width: 242px; border: #99B3FF solid 1px; clear: right"
{| 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="10" | {{{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="10" | {{{footer|[[:Category:User languages|Search user languages]]}}}
| style="background-color: {{{color|}}}; text-align: center" colspan="10" | {{{footer|[[:Category:User languages|Search user languages]]}}}
|}<noinclude>
|}<noinclude>

*[[Template:Babel-X]] - Allows 1 to 17 boxes.<br />Format: <nowiki>{{Babel-X|<box1>|<box2>|<box3>...}}</nowiki>
<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.
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]


Example: <nowiki>{{Babel-X|align=left|color=yellow|en|fr|de|!|tl|ru|leet}}</nowiki> produces:
Example: <nowiki>{{Babel-X|align=left|color=yellow|en|fr|!|de|es|!|ru|leet}}</nowiki> produces:


{{Babel-X|align=left|color=yellow|en|fr|de|!|tl|ru|leet}}
{{Babel-X|align=left|color=yellow|en|fr|de|!|es|ru|leet}}
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 19:11, 3 July 2007

OLPCWiki:Babel
Search user languages
This is a test of the local parserfunction implementation for #if.
Format
{{Babel-X|<box1>|<box2>|<box3>...}}

To specify a custom header, footer, or color add the parameters header=HEADER (default: OLPCWiki:Babel), footer=FOOTER (default: 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: Wikipedia Template:Babel

Example: {{Babel-X|align=left|color=yellow|en|fr|!|de|es|!|ru|leet}} produces:

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