Template:Babel: Difference between revisions
From Test Wiki
Content deleted Content added
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]] |
||