Template:Conj: Difference between revisions
More actions
m Protected Template:Conj: Widely used template ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)) |
replacing ', ' with '{{,|lang={{{lang|}}}}}' |
||
| Line 3: | Line 3: | ||
|{{#if:{{{4|}}} | |{{#if:{{{4|}}} | ||
|{{#if:{{{5|}}} | |{{#if:{{{5|}}} | ||
|, {{{2}}}, {{{3}}}, {{{4}}} | |{{,|lang={{{lang|}}}}}{{{2}}}{{,|lang={{{lang|}}}}}{{{3}}}{{,|lang={{{lang|}}}}}{{{4}}} | ||
|, {{{2}}}, {{{3}}} | |{{,|lang={{{lang|}}}}}{{{2}}}{{,|lang={{{lang|}}}}}{{{3}}} | ||
}} | }} | ||
|, {{{2}}} | |{{,|lang={{{lang|}}}}}{{{2}}} | ||
}} | }} | ||
}}{{Conj2|{{{type|and}}}|lang={{{lang|}}} }}{{#if:{{{3|}}} | }}{{Conj2|{{{type|and}}}|lang={{{lang|}}} }}{{#if:{{{3|}}} | ||
| Line 21: | Line 21: | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 05:48, 28 April 2012
Translates phrases line "A", "A and B", "A, B and C" or "A, B, C and D" etc. Technically it calls a function from Module:Linguistic, and relies solely on Lua code.
Usage
{{Conj |1= |2, 3, 4, 5= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | first word ("A") | empty | required | |
2, 3, 4, 5 | other words ("B", "C", "D", "E") | empty | optional | |
lang | language | {{int:lang}} | optional | |
type | "and", "or" or "comma" | {{int:and}} | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
Module:Linguistic
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)
For "or" type {{LangSwitch}} is used. For "and" type translatewiki.net translation is used.
Examples
| code | output |
|---|---|
| {{Conj|A|B|C|D|E}} | A, B, C, DTemplate:Conj2E |
| {{Conj|A|B|C|D}} | A, B, CTemplate:Conj2D |
| {{Conj|A|B|C}} | A, BTemplate:Conj2C |
| {{Conj|A|B}} | ATemplate:Conj2B |
| {{Conj|A}} | A |
| {{Conj|A|B|C|D|E|type=or}} | A, B, C, DTemplate:Conj2E |
| {{Conj|A|B|C|D|lang=pl}} | A, B, CTemplate:Conj2D |
| {{Conj|A|B|C|D|lang=zh}} | A、B、CTemplate:Conj2D |
| {{Conj|אלף|בית|גימל|דלת|lang=he}} | אלף, בית, גימלTemplate:Conj2דלת |
| {{Conj|A|B|C||E}} | A, BTemplate:Conj2C |
| {{Conj|1=A|2=B|3=}} | ATemplate:Conj2B |
| {{Conj |A |B |C |D |E }} | A
, B , C , DTemplate:Conj2E |