Template talk:CountryLanguage: Difference between revisions

From FamilySearch Wiki
(Created page with "Examples of CountryLanguage: {| class="wikitable" style="margin-left:25px;" ! Wikitext !! Result |- | <code><nowiki>{{CountryLanguage|Indonesia|1}}</nowiki></code> || {{CountryLanguage|Indonesia|1}} |- | <code><nowiki>{{CountryLanguage|Indonesia|2}}</nowiki></code> || {{CountryLanguage|Indonesia|2}} |- | <code><nowiki>{{CountryLanguage|Indonesia|3}}</nowiki></code> || {{CountryLanguage|Indonesia|3}} |- | <code><nowiki>{{CountryLanguage|Indone...")
 
No edit summary
Line 32: Line 32:
|}
|}


Examples of incorporating all of the above:
Working on incorporating all of the above:
* [[Image:Geographylogo.png|20px|Geographylogo.png|link=]] In other languages: [https://translate.google.com/translate?hl=en&sl=auto&tl={{LanguageISO|Malay}}&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} {{CountryLanguage|Indonesia|1}} melayu]
* Language count: {{#expr: 1 + {{#count:{{CountryLanguage|Indonesia|all}}|;}} }} ({{CountryLanguage|Indonesia|all}})
# [[Image:Geographylogo.png|20px|Geographylogo.png|link=]] In other languages: [https://translate.google.com/translate?hl=en&sl=auto&tl={{LanguageISO|{{CountryLanguage|Indonesia|1}}}}&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} {{CountryLanguage|Indonesia|1}} (melayu)] (manual for #1)
# [[Image:Geographylogo.png|20px|Geographylogo.png|link=]] In other languages: [https://translate.google.com/translate?hl=en&sl=auto&tl={{LanguageISO|{{CountryLanguage|Indonesia|2}}}}&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} {{CountryLanguage|Indonesia|2}} (basa jawa)] (manual for #2)
# [[Image:Geographylogo.png|20px|Geographylogo.png|link=]] In other languages: {{#arraymap:1;2 | ; | @@@@ | [https://translate.google.com/translate?hl=en&sl=auto&tl={{LanguageISO|{{CountryLanguage|Indonesia|@@@@}}}}&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} {{CountryLanguage|Indonesia|@@@@}}] | \s&#124;\s }} (automatic for #1 & #2, but need to generate the count and the localize language names)

Revision as of 19:04, 26 November 2024

Examples of CountryLanguage:

Wikitext Result
{{CountryLanguage|Indonesia|1}} Indonesian
{{CountryLanguage|Indonesia|2}} Malay
{{CountryLanguage|Indonesia|3}} Javanese
{{CountryLanguage|Indonesia|all}} Indonesian;Malay;Javanese

Examples incorporating CountryLanguage with arraymap:

Wikitext Result
{{#arraymap:{{CountryLanguage|Indonesia|1}} | ; | @@@@ | [[@@@@]] | \s|\s }} Indonesian
{{#arraymap:{{CountryLanguage|Indonesia|2}} | ; | @@@@ | [[@@@@]] | \s|\s }} Malay
{{#arraymap:{{CountryLanguage|Indonesia|all}} | ; | @@@@ | [[@@@@]] | \s|\s }} Indonesian | Malay | Javanese

Examples of LanguageISO:

Wikitext Result
{{LanguageISO|Malay}} ms
{{LanguageISO|Javanese}} jw

Working on incorporating all of the above:

  • Language count: 3 (Indonesian;Malay;Javanese)
  1. Geographylogo.png In other languages: Indonesian (melayu) (manual for #1)
  2. Geographylogo.png In other languages: Malay (basa jawa) (manual for #2)
  3. Geographylogo.png In other languages: Indonesian | Malay (automatic for #1 & #2, but need to generate the count and the localize language names)