Difference between revisions of "Template:Alternate Language"
From GeoGebra Manual
m (adjust order and minor formatting) |
(identify regional language of current page--this might help with localization of print version) |
||
Line 1: | Line 1: | ||
+ | <div class="box info"> | ||
+ | [[File:Accessories_dictionary.png|64px|left]]{{#ifeq: {{{region}}} | US || This {{lcfirst:{{{page_type|Command}}}}} is different in US English. See [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type|Command}}}}}]].<br /> }}{{#ifeq: {{{region}}} | UK || This {{lcfirst:{{{page_type|Command}}}}} is different in UK English. See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|Command}}}}}]].<br /> }}{{#ifeq: {{{region}}} | Aus || This {{lcfirst:{{{page_type|Command}}}}} is different in Australian English. See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|Command}}}}}]]. }} | ||
+ | </div> | ||
+ | |||
+ | <noinclude> | ||
+ | == Usage == | ||
+ | ====Indicate current region and include alternate text for other regions.==== | ||
+ | '''Example''' (applied to US version of "Center Command"): | ||
+ | * <nowiki> | ||
+ | {{Alternate Language|region=US|page_type=Command| | ||
+ | US_version=Center|UK_version=Centre|Aus_version=Centre}} | ||
+ | </nowiki> | ||
+ | '''Parameters''' (region, page_type, *_version): | ||
+ | *region = {US, UK, Aus}: regional language of current page; template will exclude references to current region | ||
+ | * page_type = {"Command", "Tool"}: suffix of PAGENAME | ||
+ | * US_version, etc = regional NAME of command or tool (NAME + page_type = PAGENAME) | ||
+ | == Comments== | ||
+ | <nowiki>{{NAMESPACE}}</nowiki> is used to adjust link in template to match current page (public vs official). | ||
+ | </noinclude> | ||
+ | |||
+ | <!--DEPRECATED METHOD and COMMENTS | ||
<div class="box info"> | <div class="box info"> | ||
[[File:Accessories_dictionary.png|64px|left]] {{#if: {{{US_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in US English. See [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | [[File:Accessories_dictionary.png|64px|left]] {{#if: {{{US_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in US English. See [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | ||
Line 4: | Line 25: | ||
See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | ||
{{#if: {{{Aus_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in Australian English. | {{#if: {{{Aus_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in Australian English. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|command}}}}}]]. }} | See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|command}}}}}]]. }} | ||
</div> | </div> | ||
Line 33: | Line 43: | ||
<nowiki>{{NAMESPACE}}</nowiki> is used to adjust link in template to match current page (public vs official). | <nowiki>{{NAMESPACE}}</nowiki> is used to adjust link in template to match current page (public vs official). | ||
</noinclude> | </noinclude> | ||
− | + | --> | |
<noinclude>[[Category:Exclude in print]]</noinclude> | <noinclude>[[Category:Exclude in print]]</noinclude> |
Revision as of 04:04, 28 October 2009
This command is different in US English. See [[:Template:{{{US_version}}} Command]].
This command is different in UK English. See [[:Template:{{{UK_version}}} Command]].
This command is different in Australian English. See [[:Template:{{{Aus_version}}} Command]].
This command is different in UK English. See [[:Template:{{{UK_version}}} Command]].
This command is different in Australian English. See [[:Template:{{{Aus_version}}} Command]].
Usage
Indicate current region and include alternate text for other regions.
Example (applied to US version of "Center Command"):
- {{Alternate Language|region=US|page_type=Command| US_version=Center|UK_version=Centre|Aus_version=Centre}}
Parameters (region, page_type, *_version):
- region = {US, UK, Aus}: regional language of current page; template will exclude references to current region
- page_type = {"Command", "Tool"}: suffix of PAGENAME
- US_version, etc = regional NAME of command or tool (NAME + page_type = PAGENAME)
Comments
{{NAMESPACE}} is used to adjust link in template to match current page (public vs official).