Template:T-/doc

Documentation
Use this template in the Translations section to format a translation of an English entry.

This template takes 3 positional parameters:
 * language code
 * 1) translated word
 * 2)  gender/number, one of m, f, c, n, s or p (See templates, , , )
 * 3)  additional genders/number, should be in listed order

If the translated word does not exist on the foreign language wikt, use, if you know it does, use , and if the foreign wiki doesn't exist, use. If you don't know whether it exists, use. In any case, these are changed by automation to correct them, so don't worry about it.

This is all you need to know to use the template; there are also some optional parameters and other details.

There are also three named parameters, sc=, tr=, and alt=

Language codes for Min Nan (nan) and Cantonese (yue) are fixed by the template, please don't use "zh-min-nan" or "zh-yue"! Code cmn also translates to "zh".

sc= specifies a script code template, e.g. . (Using a script template either inside or outside of will not produce correct results.) For example:


 *  * Arabic: حاسوب, كمبيوتر 
 * Arabic: حاسوب, كمبيوتر

tr= specifies the transliteration into roman (Latin) script, as also shown in the example above.

alt= specifies an alternate form of the word, not the pagename, to be displayed. (The 2nd parameter MUST be the pagename on the en.wikt and the FL wikt!). "alt=" and "sc=</tt>" work correctly if both are used. Don't use alt=</tt> to include the script template, just use both; that makes it easier for the bot to make sure all the "ar</tt>" Arabic entries have sc=Arab</tt>

Some examples for butterfly::


 * Arabic: فراشة; (fertito) (Morocco); (fartattu)
 * Datiwuy: buurnba
 * Javanese:
 * Latin:
 * Yoruba:


 * Arabic: فراشة; (fertito) (Morocco); (fartattu)
 * Datiwuy: buurnba
 * Javanese:
 * Latin:
 * Yoruba:

The bot code that manages the templates sometimes adds or removes another parameter, "xs=</tt>". It serves to optimize the generation of the section references. This reduces the number of template calls and transcluded text that must be processed. You don't need to try to add these, it is better if the bot does it.

You don't need to worry about it in almost all cases. The only case where you might want to is if you are changing a language name, or perhaps cutting and pasting from a similar language; if the xs</tt> parameter doesn't match the language name, it will generated the wrong section reference (until the bot gets to it). The simplest thing in this case is to simply remove it.

Customization of links
All of the following should work on all browsers at their current or fairly recent revision (IE at least version 8).

Each example is code that you add to   (or another skin name if you are not using the default Monobook skin; the skin is set in Preferences).

Not showing links
The simplest case is hiding the links. To not show red links, to FL entries that don't exist:

.tneg { display: none }

to hide unchecked links add:

.tunk { display: none }

to hide them all, use:

.tpos { display: none } .tneg { display: none } .tunk { display: none }

Link colours
(tbd)

Removing parenthesis
To not show the parenthesis:

.tlcp { display: none } .tlc { display: inline }

Changing superscript and font size
To cancel out the superscripting and leave the font size normal:

.tpos { vertical-align: baseline; font-size: 100% } .tneg { vertical-align: baseline; font-size: 100% } .tunk { vertical-align: baseline; font-size: 100% }

similar code can be used to specify a different vertical alignment and font size. Likewise, other font attributes may be used.

The following do not work on Internet Explorer until version 8

Replacing parenthesis with brackets
Switch to the code without the parenthesis, and add the desired brackets:

.tlcp { display: none } .tlc { display: inline } .tlc:before { content: "[" } .tlc:after { content: "]" }

Adding different symbols after the link
For example, to display lc+, lc-, and lc? instead of the parenthesis:

.tlc { display: inline } .tpos .tlc:after { content: "+" } .tneg .tlc:after { content: "-" } .tunk .tlc:after { content: "?" } .tlcp { display: none }

Replacing the code with symbols
.tlcp { display:none } .tpos a.extiw:before { content: "+"; } .tneg a.extiw:before { content: "-"; } .tunk a.extiw:before { content: "?"; }

note that since both .tlc and .tlcp are not displayed, the :before tag is attached to the extiw class.

Example: using a triangle on the baseline
.tpos { vertical-align: baseline; font-size: 100%; } .tneg { vertical-align: baseline; font-size: 100%; } .tunk { vertical-align: baseline; font-size: 100%; } .tlcp { display:none } .tpos a.extiw:before { content: "►"; } .tneg a.extiw:before { content: "►"; } .tunk a.extiw:before { content: "►"; }

and it should be clear how you can use 3 different symbols if desired.