Template:Babel: Difference between revisions
From Test Wiki
Content deleted Content added
m Protected Template:Babel: high-risk, approx. 13003 transclusions [edit=sysop:move=sysop] |
Add text-color and extra-css options |
||
Line 1: | Line 1: | ||
{| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: 1em; margin-bottom: 0.5em; width: 248px; border: {{{bordercolor|#99B3FF}}} solid 1px; clear: {{{align|right}}}" |
{| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: 1em; margin-bottom: 0.5em; width: 248px; border: {{{bordercolor|#99B3FF}}} solid 1px; clear: {{{align|right}}}; color: {{{textcolor|#000000}}}; {{{extra-css|}}}" |
||
|- |
|- |
||
! style="background-color: {{{color|inherit}}}; text-align: center" colspan="10" | {{{header|[[Wikipedia:Babel]]}}} |
! style="background-color: {{{color|inherit}}}; text-align: center" colspan="10" | {{{header|[[Wikipedia:Babel]]}}} |
||
Line 113: | Line 113: | ||
==Custom headers, footers etc.== |
==Custom headers, footers etc.== |
||
To |
To customize the appearance you can add the optional parameters header=''HEADER'' (default: [[Wikipedia:Babel]]), footer=''FOOTER'' (default: [[:Category:Wikipedians by language|Search user languages]]), bordercolor=''BORDERCOLOR'' (default: #99B3FF), color=''COLOR'' (default: white), textcolor=''TEXTCOLOR'' (default: black), and/or extra-css=<any other formatting>. Call the '!' userbox to start a new column after that point or the '-' userbox to insert a blank row. 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|align=left|color=yellow|en|fr|de|!|tl|ru|leet}}</nowiki> produces: |
Example: <nowiki>{{Babel|align=left|color=yellow|en|fr|de|!|tl|ru|leet}}</nowiki> produces: |