Template:Alt-Lang2/doc

Usage
Shows an Alternate language for that particular article:

LC1


 * LC1 - 100: Language codes

ar will produce

Alt-Lang2 will automatically add the article to a language category.
 * This feature can be disabled if you add  as a parameter (preferably the last parameter).

LC#

Sub-Templates
This template uses 2 sub-templates Alt-Lang2/Flag and Alt-Lang2/Cat.
 * Alt-Lang2/Flag checks to make sure the language coded entered is a valid code (assigned to the template) and displays the link that appear before the flags as well as the flags.
 * Alt-Lang2/Cat
 * Adds the actual language codes to the pages, even if doc= is used.
 * Add the categories to the page, unless doc= is used.

Valid language codes on this wiki
This template uses a combination of the (  •   •  and/or  )  found on.

Example 1

 * If you were to use all of the valid language codes you would use this aa to get this:

Example 2

 * If you use a code that has not been put into the template (example: A new language wiki that has been started but not been entered and linked to), you will get get an error message! We will use kk for this example:

Example 3

 * If you use a code that is supposed to represent one of the English languages (examples: En, Eng, En-Us, En-Gb), you will get a different error message! We will use En-Gb and En-Us for this example):

Example 4

 * If you use more than 100 language codes, then you will get a error message letting you know that 100 is the maximum number of codes allowed in the template
 * For this example we will use 10 of each of the following language codes : aa, ar, bg, de, el, es, fi, fr, he, hu, and it