Template:Babel: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
(Converting to a 'single row' format so that it is possible to produce multiple columns)
(Adding left-align option)
Line 1: Line 1:
{| name="userboxes" id="userboxes" style="float: 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|[[Wikipedia:Babel]]}}}
! style="background-color: {{{color|}}}; text-align: center" colspan="10" | {{{header|[[Wikipedia:Babel]]}}}
Line 107: Line 107:
|}<noinclude>
|}<noinclude>
*[[Template:Babel-X]] - Allows 1 to 100 boxes.<br />Format: <nowiki>{{Babel-X|<box1>|<box2>|<box3>...}}</nowiki>
*[[Template:Babel-X]] - Allows 1 to 100 boxes.<br />Format: <nowiki>{{Babel-X|<box1>|<box2>|<box3>...}}</nowiki>
To specify a custom header, footer, or color add the parameters header=''HEADER'' (default: [[Wikipedia: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.
To specify a custom header, footer, or color add the parameters header=''HEADER'' (default: [[Wikipedia: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.


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


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

Revision as of 14:34, 9 May 2006

Wikipedia:Babel
Search user languages
  • Template:Babel-X - Allows 1 to 100 boxes.
    Format: {{Babel-X|<box1>|<box2>|<box3>...}}

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

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

Template:Babel-X zh:Template:Babel-n zh-yue:Template:Babel-n