Template:CountryLanguage: Difference between revisions
(Fixed spelling for Portuguese (Brazil)) |
(Corrected Cabo Verde, Cambodia, Cameroon, & Canada) |
||
Line 50: | Line 50: | ||
| Burkina Faso = {{#switch: {{{2|1}}} | 3 = {{#explode:French;Dyula|;|2}} | 2 = {{#explode:French;Dyula|;|1}} | all = French;Dyula| {{#explode:French;Dyula|;|0}} }} | | Burkina Faso = {{#switch: {{{2|1}}} | 3 = {{#explode:French;Dyula|;|2}} | 2 = {{#explode:French;Dyula|;|1}} | all = French;Dyula| {{#explode:French;Dyula|;|0}} }} | ||
| Burundi = {{#switch: {{{2|1}}} | 3 = {{#explode:Kirundi;French|;|2}} | 2 = {{#explode:Kirundi;French|;|1}} | all = Kirundi;French| {{#explode:Kirundi;French|;|0}} }} | | Burundi = {{#switch: {{{2|1}}} | 3 = {{#explode:Kirundi;French|;|2}} | 2 = {{#explode:Kirundi;French|;|1}} | all = Kirundi;French| {{#explode:Kirundi;French|;|0}} }} | ||
| Cabo Verde = {{#switch: {{{2|1}}} | 3 = {{#explode: | | Cabo Verde = {{#switch: {{{2|1}}} | 3 = {{#explode:Portuguese|;|2}} | 2 = {{#explode:Portuguese|;|1}} | all = Portuguese| {{#explode:Portuguese|;|0}} }} | ||
| Cambodia = {{#switch: {{{2|1}}} | 3 = {{#explode: | | Cambodia = {{#switch: {{{2|1}}} | 3 = {{#explode:Khmer|;|2}} | 2 = {{#explode:Khmer|;|1}} | all = Khmer| {{#explode:Khmer|;|0}} }} | ||
| Cameroon = {{#switch: {{{2|1}}} | 3 = {{#explode:English;French | | Cameroon = {{#switch: {{{2|1}}} | 3 = {{#explode:English;French|;|2}} | 2 = {{#explode:English;French|;|1}} | all = English;French| {{#explode:English;French|;|0}} }} | ||
| Canada = {{#switch: {{{2|1}}} | 3 = {{#explode: | | Canada = {{#switch: {{{2|1}}} | 3 = {{#explode:English;French (Canada)|;|2}} | 2 = {{#explode:English;French (Canada)|;|1}} | all = English;French (Canada)| {{#explode:English;French (Canada)|;|0}} }} | ||
| Cayman Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | | Cayman Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }} | ||
| Central African Republic = {{#switch: {{{2|1}}} | 3 = {{#explode:Sango;French|;|2}} | 2 = {{#explode:Sango;French|;|1}} | all = Sango;French| {{#explode:Sango;French|;|0}} }} | | Central African Republic = {{#switch: {{{2|1}}} | 3 = {{#explode:Sango;French|;|2}} | 2 = {{#explode:Sango;French|;|1}} | all = Sango;French| {{#explode:Sango;French|;|0}} }} |
Revision as of 18:30, 10 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.