Template:CountryLanguage: Difference between revisions
(Removed Palauan from Palau) |
(Replaced Pitkern with English in Pitcairn Islands) |
||
Line 181: | Line 181: | ||
| Peru = {{#switch: {{{2|1}}} | 3 = {{#explode:Spanish|;|2}} | 2 = {{#explode:Spanish|;|1}} | all = Spanish| {{#explode:Spanish|;|0}} }} | | Peru = {{#switch: {{{2|1}}} | 3 = {{#explode:Spanish|;|2}} | 2 = {{#explode:Spanish|;|1}} | all = Spanish| {{#explode:Spanish|;|0}} }} | ||
| Philippines = {{#switch: {{{2|1}}} | 3 = {{#explode:Filipino;English|;|2}} | 2 = {{#explode:Filipino;English|;|1}} | all = Filipino;English| {{#explode:Filipino;English|;|0}} }} | | Philippines = {{#switch: {{{2|1}}} | 3 = {{#explode:Filipino;English|;|2}} | 2 = {{#explode:Filipino;English|;|1}} | all = Filipino;English| {{#explode:Filipino;English|;|0}} }} | ||
| Pitcairn Islands = {{#switch: {{{2|1}}} | 3 = {{#explode: | | Pitcairn Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | ||
| Poland = {{#switch: {{{2|1}}} | 3 = {{#explode:Polish|;|2}} | 2 = {{#explode:Polish|;|1}} | all = Polish| {{#explode:Polish|;|0}} }} | | Poland = {{#switch: {{{2|1}}} | 3 = {{#explode:Polish|;|2}} | 2 = {{#explode:Polish|;|1}} | all = Polish| {{#explode:Polish|;|0}} }} | ||
| Portugal = {{#switch: {{{2|1}}} | 3 = {{#explode:Portuguese (Portugal)|;|2}} | 2 = {{#explode:Portuguese (Portugal)|;|1}} | all = Portuguese (Portugal)| {{#explode:Portuguese (Portugal)|;|0}} }} | | Portugal = {{#switch: {{{2|1}}} | 3 = {{#explode:Portuguese (Portugal)|;|2}} | 2 = {{#explode:Portuguese (Portugal)|;|1}} | all = Portuguese (Portugal)| {{#explode:Portuguese (Portugal)|;|0}} }} |
Revision as of 16:53, 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.