User:Willscrlt/meta/lang

This template combines features of Template:Description and Template:Internationalization icon along with some original ideas, to create a single template that identifies blocks of text by language. Its creator uses it to help readers quickly locate their native language on pages with multiple translations. This is one of several internationalized templates that Will has created or is currently developing.

Parameters

 *   or     — Wikicode for the language and name of the CSS formating class (optional, default is "en" for English)
 *   or     — Display style options (optional, default is "0")
 *  — CSS markup only (if text is not empty; if empty no output at all)
 *  — ISO 639 icon and CSS (if text is not empty)
 *  — ISO 639 icon, language name, and CSS (if text is not empty)
 *  — language name and CSS (if text is not empty)
 *   or     — The description text to be marked with CSS (optional, default is empty)
 *  — Anything but an empty string, forces inline display rather than block (optional, default is empty string)
 *  — Extension text shown after the language name before colon (optional, default is empty)
 *  — Standard code for lang tag in HTML (optional, default is same as )
 *  — The language code for the ISO 639 icon to use (optional, default is same as )
 *  — Title for tooltip (optional, default is empty)

Examples

 * Example 1 - Show style #2


 * Example 2 - Same as example 1, but using parameter names


 * Example 3 - Showing two languages in default mode


 * Example 5 - Show style #0


 * Example 6 - Show style #1


 * Example 7 - Show style #3


 * Example 8 - With a tooltip


 * Example 9 - Simple English requires "html=en" (and setting the language to "simple")


 * Example 10 - Traditional Chinese requires "html=zh-Hant" and "icon=zh"

Version information
v1.2.1 (12:55, 10 September 2008 (UTC)) — 

This template is used on multiple WikiMedia Foundation Projects. Unless it is horribly broken and causing major disruptions, please do not edit this template. The master template is located at m:User:Willscrlt/meta/lang and is manually distributed to other projects by its creator, Willscrlt (Talk).

If you find this template useful, please use it. Be aware that I may change its features or functionality in the future. If you want a stable version, make a copy for yourself (but you will not get any bug fixes I might make). If you think this template would be useful for the entire Project to use, please fork it into the main Template namespace and give me credit (attribution information).