Template:CountryLanguage(NoEnglish): Difference between revisions
(Created page with "<noinclude> <big>'''Country language lookup template (without English)'''</big><br> 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 Usage: <pre style="max-wid...") |
(Changed "State of Palestine" to "Palestine".) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
The following are used together: | The following are used together: | ||
* [[Template:CountryLanguage]] | * [[Template:CountryLanguage(NoEnglish)]] | ||
* [[Template:CountryLanguage]] | * [[Template:CountryLanguage]] | ||
* [[Template:LanguageISO]] | * [[Template:LanguageISO]] | ||
* [[Template:LanguageLocalization]] | * [[Template:LanguageLocalization]] | ||
* [[Template:LanguageTranslation]]] | |||
Line 181: | Line 182: | ||
-->{{#vardefine:Spain|Spanish}}<!-- | -->{{#vardefine:Spain|Spanish}}<!-- | ||
-->{{#vardefine:Sri Lanka|Sinhala;Tamil}}<!-- | -->{{#vardefine:Sri Lanka|Sinhala;Tamil}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:Palestine|Arabic}}<!-- | ||
-->{{#vardefine:Sudan|Arabic}}<!-- | -->{{#vardefine:Sudan|Arabic}}<!-- | ||
-->{{#vardefine:Suriname|Dutch}}<!-- | -->{{#vardefine:Suriname|Dutch}}<!-- | ||
Line 413: | 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}} }} | ||
| 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}} }} |
Latest revision as of 11:36, 21 March 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(NoEnglish)
- 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.