Template:Babel: Difference between revisions

Jump to navigation Jump to search
11 bytes added ,  12 March 2007
m
→‎Custom headers, footers etc.: fixed userbox per userbox migration
(interwiki - add th:แม่แบบ:บาเบล)
m (→‎Custom headers, footers etc.: fixed userbox per userbox migration)
Line 116: Line 116:
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. Boxes with parameters can be added at the end with the format, "|special-boxes=<nowiki>{{box page name|param1|param2}}{{second page name|param1|param2|param3}}</nowiki>". Any number of additional boxes can be added this way and will display below the others.
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. Boxes with parameters can be added at the end with the format, "|special-boxes=<nowiki>{{box page name|param1|param2}}{{second page name|param1|param2|param3}}</nowiki>". Any number of additional boxes can be added this way and will display below the others.


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|:UBX/1337}}</nowiki> produces:


{{Babel|align=left|color=yellow|en|fr|de|!|tl|ru|leet}}
{{Babel|align=left|color=yellow|en|fr|de|!|tl|ru|:UBX/1337}}


{{-}}
{{-}}
==How to get Babel boxes to work on other Wikipedias==
==How to get Babel boxes to work on other Wikipedias==
The page you are now reading is the actual Babel template.  If you click "edit this page", you will see a bunch of computer code that makes the Babel boxes work.  What you're now reading is just comments in that code, inside "<nowiki><noinclude></nowiki>" tags so it doesn't interfere with the computer code.
The page you are now reading is the actual Babel template.  If you click "edit this page", you will see a bunch of computer code that makes the Babel boxes work.  What you're now reading is just comments in that code, inside "<nowiki><noinclude></nowiki>" tags so it doesn't interfere with the computer code.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu