Template talk:CountryLanguage: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 36: Line 36:




Working on incorporating all of the above:
Example of counting the languages in a country:
* Language count: {{#expr: 1 + {{#count:{{CountryLanguage|Indonesia|all}}|;}} }} ({{CountryLanguage|Indonesia|all}})
{| class="wikitable" style="margin-left:25px;"
# [[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)
! Wikitext !! Result
# [[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:{{#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 #1 & #2, but need the localized language names)
| <code><nowiki>{{#expr: 1 + {{#count:{{CountryLanguage|Indonesia|all}}|;}} }}</nowiki></code> || {{#expr: 1 + {{#count:{{CountryLanguage|Indonesia|all}}|;}} }}
|}
 
 
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|{{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:{{#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&#124;\s }}
#* Automatic for all, but need the localized language names as a template
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
321,763

edits