Template:Babel: Difference between revisions
Jump to navigation
Jump to search
Add text-color and extra-css options |
Make other formatting configurable |
||
Line 1: | Line 1: | ||
{| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: | {| name="userboxes" id="userboxes" style="float: {{{align|right}}}; margin-left: {{{left|1}}}em; margin-bottom: {{{bottom|0.5}}}em; width: {{{width|248}}}px; border: {{{bordercolor|#99B3FF}}} solid {{{solid|1}}}px; 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 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. | 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), left=''Left margin'' (default: 1), bottom=''Bottom margin'' (default: 0.5), solid=''Solid border width'' (default: 1), width=''Box width'' (default: 248), 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: |