Template:CountryLanguage: Difference between revisions

From FamilySearch Wiki
(Replaced Pitkern with English in Pitcairn Islands)
(Fixed spelling for Portuguese (Brazil))
Line 43: Line 43:
  | Bosnia and Herzegovina = {{#switch: {{{2|1}}} | 3 = {{#explode:Bosnian;Croatian;Serbian|;|2}} | 2 = {{#explode:Bosnian;Croatian;Serbian|;|1}} | all = Bosnian;Croatian;Serbian| {{#explode:Bosnian;Croatian;Serbian|;|0}} }}
  | Bosnia and Herzegovina = {{#switch: {{{2|1}}} | 3 = {{#explode:Bosnian;Croatian;Serbian|;|2}} | 2 = {{#explode:Bosnian;Croatian;Serbian|;|1}} | all = Bosnian;Croatian;Serbian| {{#explode:Bosnian;Croatian;Serbian|;|0}} }}
  | Botswana = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }}
  | Botswana = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }}
  | Brazil = {{#switch: {{{2|1}}} | 3 = {{#explode:Protuguese (Brazil)|;|2}} | 2 = {{#explode:Protuguese (Brazil)|;|1}} | all = Protuguese (Brazil)| {{#explode:Protuguese (Brazil)|;|0}} }}
  | Brazil = {{#switch: {{{2|1}}} | 3 = {{#explode:Portuguese (Brazil)|;|2}} | 2 = {{#explode:Portuguese (Brazil)|;|1}} | all = Portuguese (Brazil)| {{#explode:Portuguese (Brazil)|;|0}} }}
  | British Indian Ocean Territory = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }}
  | British Indian Ocean Territory = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }}
  | British Virgin Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }}
  | British Virgin Islands = {{#switch: {{{2|1}}} | 3 = {{#explode:English|;|2}} | 2 = {{#explode:English|;|1}} | all = English| {{#explode:English|;|0}} }}

Revision as of 17:39, 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>}}