Template:CountryLanguage: Difference between revisions
(Removed Niuean from Niue) |
(Removed Palauan from Palau) |
||
Line 175: | Line 175: | ||
| Oman = {{#switch: {{{2|1}}} | 3 = {{#explode:Arabic|;|2}} | 2 = {{#explode:Arabic|;|1}} | all = Arabic| {{#explode:Arabic|;|0}} }} | | Oman = {{#switch: {{{2|1}}} | 3 = {{#explode:Arabic|;|2}} | 2 = {{#explode:Arabic|;|1}} | all = Arabic| {{#explode:Arabic|;|0}} }} | ||
| Pakistan = {{#switch: {{{2|1}}} | 3 = {{#explode:Urdu;English|;|2}} | 2 = {{#explode:Urdu;English|;|1}} | all = Urdu;English| {{#explode:Urdu;English|;|0}} }} | | Pakistan = {{#switch: {{{2|1}}} | 3 = {{#explode:Urdu;English|;|2}} | 2 = {{#explode:Urdu;English|;|1}} | all = Urdu;English| {{#explode:Urdu;English|;|0}} }} | ||
| Palau = {{#switch: {{{2|1}}} | 3 = {{#explode:English | | Palau = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | ||
| Panama = {{#switch: {{{2|1}}} | 3 = {{#explode:Spanish|;|2}} | 2 = {{#explode:Spanish|;|1}} | all = Spanish| {{#explode:Spanish|;|0}} }} | | Panama = {{#switch: {{{2|1}}} | 3 = {{#explode:Spanish|;|2}} | 2 = {{#explode:Spanish|;|1}} | all = Spanish| {{#explode:Spanish|;|0}} }} | ||
| Papua New Guinea = {{#switch: {{{2|1}}} | 3 = {{#explode:Tok Pisin;English|;|2}} | 2 = {{#explode:Tok Pisin;English|;|1}} | all = Tok Pisin;English| {{#explode:Tok Pisin;English|;|0}} }} | | Papua New Guinea = {{#switch: {{{2|1}}} | 3 = {{#explode:Tok Pisin;English|;|2}} | 2 = {{#explode:Tok Pisin;English|;|1}} | all = Tok Pisin;English| {{#explode:Tok Pisin;English|;|0}} }} |
Revision as of 16:51, 9 December 2024
Country language lookup template
This will return the major languages based on Country as either the 1st, 2nd, 3rd, or all.
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.