Difference between revisions of "Template:Alternate Language"
From GeoGebra Manual
m (corrected case-sensitive parameters in comment) |
(correct string parameter reference; add auto-correction for Case sensitive strings) |
||
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 {{{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}}} {{{page_type|command}}}]].<br /> }} | + | See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} |
− | {{#if: US_version | This {{{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}}} {{{page_type|command}}}]].<br /> }} | + | See [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} |
− | {{#if: Aus_version | This {{{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}}} {{{page_type|command}}}]].<br /> }} | + | See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} |
</div> | </div> | ||
Revision as of 02:05, 28 October 2009
This command is different in UK English.
See [[:Template:{{{UK_version}}} Command]].
This command is different in US English.
See [[:Template:{{{US_version}}} Command]].
This command is different in Australian English.
See [[:Template:{{{Aus_version}}} Command]].
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).