Template:Babel/doc

&#x3c;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&#x3e;

Babel is for showing the languages that you know, as well as the operating system, keyboard layout, web browser, desktop environment, and text editor that you are most comfortable with. Details of how to use it for its original purpose—showing the languages that you know—are at Babel.

Usage
Parameters can be added using the &#x3c;code&#x3e;&#x3c;nowiki&#x3e;|&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; and tricks:

The Babel box prefixes its arguments with "User ", so it will work with the User: namespace:

Custom styling
To customize the appearance you can add the optional parameters


 * left: to display the babel box on the left side of the screen rather than the default right
 * &#x3c;var&#x3e;header&#x3c;/var&#x3e;: change header, default is Babel
 * &#x3c;var&#x3e;footer&#x3c;/var&#x3e;: change wiki markup for footer, default is &#x3c;code&#x3e;&#x3c;nowiki&#x3e;Search user languages&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; (which appears as Search user languages)
 * &#x3c;var&#x3e;color&#x3c;/var&#x3e;: color of the border, default is #99B3FF
 * &#x3c;var&#x3e;color&#x3c;/var&#x3e;: background color, default is white
 * &#x3c;var&#x3e;color&#x3c;/var&#x3e;: text color, default is black
 * &#x3c;var&#x3e;pixels&#x3c;/var&#x3e;: left margin in pixels, default is 1
 * &#x3c;var&#x3e;pixels&#x3c;/var&#x3e;: bottom margin in pixels, default is 0.5
 * &#x3c;var&#x3e;pixels&#x3c;/var&#x3e;: solid border width, default is 1
 * &#x3c;var&#x3e;pixels&#x3c;/var&#x3e;: width of the box, default is 248
 * &#x3c;var&#x3e;css-code&#x3c;/var&#x3e;: any other custom formatting

Columns and separators

 * Use &#x3c;code&#x3e;!&#x3c;/code&#x3e; to start a new column after that point
 * Use &#x3c;code&#x3e;-&#x3c;/code&#x3e; to insert a blank row
 * Use &#x3c;code&#x3e;head&#x3c;/code&#x3e; to insert a header; use &#x3c;code&#x3e;head-m&#x3c;/code&#x3e; to insert a header without text
 * Use &#x3c;code&#x3e;line&#x3c;/code&#x3e; to insert a horizontal ruler separator

Example: produces:

Copying template to other wikis
The page you are now reading is &#x3c;noinclude&#x3e;the /doc subpage for&#x3c;/noinclude&#x3e; the actual Babel template. If you click "edit this page", you will see invocation of Lua Module:Babel that makes the Babel boxes work. What you're now reading is just documentation for that code, transcluded inside "&#x26;lt;noinclude&#x26;gt;" tags so it doesn't interfere with the computer code.

In order to have Babel boxes on another Wikimedia project, you need both template and the module. Click "view source" and copy all the contents, including the computer code. Create a page called "Template:Babel" on the other Wikimedia project and put the content into it. Do the same for the module.

You also need to copy over a bunch of files with names like "Template:User en", "Template:User en-1", "Template:User fr", etc. etc. Once you've done that, users can put e.g. "&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;" on their user page and the Babel boxes will be displayed.