Template talk:CountryLanguage: Difference between revisions
No edit summary |
No edit summary |
||
Line 51: | Line 51: | ||
# [[Image:Geographylogo.png|20px|Geographylogo.png|link=]] In other languages: {{#arraymap:{{#switch:{{#expr:1+{{#count:{{CountryLanguage|Indonesia|all}}|;}}}}|3=1;2;3|2=1;2|1}} | ; | @@@@ | [https://translate.google.com/translate?hl=en&sl=auto&tl={{LanguageISO|{{CountryLanguage|Indonesia|@@@@}}}}&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} {{CountryLanguage|Indonesia|@@@@}}] | \s|\s }} | # [[Image:Geographylogo.png|20px|Geographylogo.png|link=]] In other languages: {{#arraymap:{{#switch:{{#expr:1+{{#count:{{CountryLanguage|Indonesia|all}}|;}}}}|3=1;2;3|2=1;2|1}} | ; | @@@@ | [https://translate.google.com/translate?hl=en&sl=auto&tl={{LanguageISO|{{CountryLanguage|Indonesia|@@@@}}}}&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} {{CountryLanguage|Indonesia|@@@@}}] | \s|\s }} | ||
#* Automatic for all, but need the localized language names as a template | #* Automatic for all, but need the localized language names as a template | ||
#: {{Note|Here are the localized language names: https://en.wikipedia.org/wiki/List_of_language_names}} |
Revision as of 12:25, 3 December 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 |
Example of counting the languages in a country:
Wikitext | Result |
---|---|
{{#expr: 1 + {{#count:{{CountryLanguage|Indonesia|all}}|;}} }} |
3 |
Incorporating all of the above:
In other languages: Indonesian (melayu)
- Manual for #1
In other languages: Malay (basa jawa)
- Manual for #2
In other languages: Indonesian | Malay | Javanese
- Automatic for all, but need the localized language names as a template
Here are the localized language names: https://en.wikipedia.org/wiki/List_of_language_names