Template:CountryLanguage(NoEnglish): Difference between revisions
(Changed "State of Palestine" to "Palestine".) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
The following are used together: | The following are used together: | ||
* [[Template:CountryLanguage | * [[Template:CountryLanguage]] | ||
* [[Template:CountryLanguage]] | * [[Template:CountryLanguage]] | ||
* [[Template:LanguageISO]] | * [[Template:LanguageISO]] | ||
* [[Template:LanguageLocalization]] | * [[Template:LanguageLocalization]] | ||
* [[Template:LanguageTranslation | * [[Template:LanguageTranslation]] | ||
Line 182: | Line 182: | ||
-->{{#vardefine:Spain|Spanish}}<!-- | -->{{#vardefine:Spain|Spanish}}<!-- | ||
-->{{#vardefine:Sri Lanka|Sinhala;Tamil}}<!-- | -->{{#vardefine:Sri Lanka|Sinhala;Tamil}}<!-- | ||
-->{{#vardefine:Palestine|Arabic}}<!-- | -->{{#vardefine:State of Palestine|Arabic}}<!-- | ||
-->{{#vardefine:Sudan|Arabic}}<!-- | -->{{#vardefine:Sudan|Arabic}}<!-- | ||
-->{{#vardefine:Suriname|Dutch}}<!-- | -->{{#vardefine:Suriname|Dutch}}<!-- | ||
Line 414: | Line 414: | ||
| Spain = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Spain}}|;|2}} | 2 = {{#explode:{{#var:Spain}}|;|1}} | all = {{#var:Spain}}| {{#explode:{{#var:Spain}}|;|0}} }} | | Spain = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Spain}}|;|2}} | 2 = {{#explode:{{#var:Spain}}|;|1}} | all = {{#var:Spain}}| {{#explode:{{#var:Spain}}|;|0}} }} | ||
| Sri Lanka = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Sri Lanka}}|;|2}} | 2 = {{#explode:{{#var:Sri Lanka}}|;|1}} | all = {{#var:Sri Lanka}}| {{#explode:{{#var:Sri Lanka}}|;|0}} }} | | Sri Lanka = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Sri Lanka}}|;|2}} | 2 = {{#explode:{{#var:Sri Lanka}}|;|1}} | all = {{#var:Sri Lanka}}| {{#explode:{{#var:Sri Lanka}}|;|0}} }} | ||
| Palestine = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Palestine}}|;|2}} | 2 = {{#explode:{{#var:Palestine}}|;|1}} | all = {{#var:Palestine}}| {{#explode:{{#var:Palestine}}|;|0}} }} | | State of Palestine = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:State of Palestine}}|;|2}} | 2 = {{#explode:{{#var:State of Palestine}}|;|1}} | all = {{#var:State of Palestine}}| {{#explode:{{#var:State of Palestine}}|;|0}} }} | ||
| Sudan = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Sudan}}|;|2}} | 2 = {{#explode:{{#var:Sudan}}|;|1}} | all = {{#var:Sudan}}| {{#explode:{{#var:Sudan}}|;|0}} }} | | Sudan = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Sudan}}|;|2}} | 2 = {{#explode:{{#var:Sudan}}|;|1}} | all = {{#var:Sudan}}| {{#explode:{{#var:Sudan}}|;|0}} }} | ||
| Suriname = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Suriname}}|;|2}} | 2 = {{#explode:{{#var:Suriname}}|;|1}} | all = {{#var:Suriname}}| {{#explode:{{#var:Suriname}}|;|0}} }} | | Suriname = {{#switch: {{{2|1}}} | 3 = {{#explode:{{#var:Suriname}}|;|2}} | 2 = {{#explode:{{#var:Suriname}}|;|1}} | all = {{#var:Suriname}}| {{#explode:{{#var:Suriname}}|;|0}} }} |
Revision as of 17:53, 3 January 2025
Country language lookup template (without English)
This will return the major languages based on Country as either the 1st, 2nd, 3rd, or all. Note, this list excludes English, see Template:CountryLanguage for the same list with English.
The following are used together:
- Template:CountryLanguage
- Template:CountryLanguage
- Template:LanguageISO
- Template:LanguageLocalization
- Template:LanguageTranslation
Usage:
{{CountryLanguage|<Country_Name>|<1,2,3,all>}}
The country is mandatory, if the primary (1st), secondary (2nd), tertiary (3rd), or all is blank, it assumes the primary language.