Template:CountryLanguage: Difference between revisions
No edit summary |
(Fixed "Afrikaans") |
||
| Line 215: | Line 215: | ||
| Solomon Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | | Solomon Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | ||
| Somalia = {{#switch: {{{2|1}}} | 3 = {{#explode:Somali|;|2}} | 2 = {{#explode:Somali|;|1}} | all = Somali| {{#explode:Somali|;|0}} }} | | Somalia = {{#switch: {{{2|1}}} | 3 = {{#explode:Somali|;|2}} | 2 = {{#explode:Somali|;|1}} | all = Somali| {{#explode:Somali|;|0}} }} | ||
| South Africa = {{#switch: {{{2|1}}} | 3 = {{#explode:English; | | South Africa = {{#switch: {{{2|1}}} | 3 = {{#explode:English;Afrikaans|;|2}} | 2 = {{#explode:English;Afrikaans|;|1}} | all = English;Afrikaans| {{#explode:English;Afrikaans|;|0}} }} | ||
| South Korea = {{#switch: {{{2|1}}} | 3 = {{#explode:Korean|;|2}} | 2 = {{#explode:Korean|;|1}} | all = Korean| {{#explode:Korean|;|0}} }} | | South Korea = {{#switch: {{{2|1}}} | 3 = {{#explode:Korean|;|2}} | 2 = {{#explode:Korean|;|1}} | all = Korean| {{#explode:Korean|;|0}} }} | ||
| South Sudan = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | | South Sudan = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | ||
Revision as of 16:56, 3 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.