Difference between revisions of "Template:Alternate Language"
From GeoGebra Manual
(correct string parameter reference; add auto-correction for Case sensitive strings) |
(if parameter is undefined, produce false condition) |
||
Line 1: | Line 1: | ||
<div class="box info"> | <div class="box info"> | ||
[[File:Accessories_dictionary.png|64px|left]] | [[File:Accessories_dictionary.png|64px|left]] | ||
− | {{#if: {{{UK_version}}} | This {{lcfirst:{{{page_type|command}}}}} is different in UK English. | + | {{#if: {{{UK_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in UK English. |
See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | ||
− | {{#if: {{{US_version}}} | This {{lcfirst:{{{page_type|command}}}}} is different in US English. | + | {{#if: {{{US_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in US English. |
See [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | See [[:{{NAMESPACE}}:{{{US_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}}}}}]].<br /> }} | See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} | ||
</div> | </div> |
Revision as of 02:16, 28 October 2009
Usage
Indicate text for alternate languages:
-
{{Alternate Language|page_type=command| US_version=Center|UK_version=Centre|Aus_version=Centre}}
- {{Alternate Language|page_type=tool|US_version=Compass|UK_version=Compasses|Aus_version=Compasses}}
Parameters:
- page_type = "command" or "tool" suffix
- US_version, etc = 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).