Difference between revisions of "Template:Alternate Language"
From GeoGebra Manual
(if parameter is undefined, produce false condition) |
m (adjust order and minor formatting) |
||
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: {{{US_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in US English. See [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} |
{{#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: {{{ | + | {{#if: {{{Aus_version|}}} | This {{lcfirst:{{{page_type|command}}}}} is different in Australian English. |
+ | See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|command}}}}}]]. }} | ||
+ | </div> | ||
+ | |||
+ | <!--Begin Experiment><End Experiment--> | ||
+ | <div class="box info"> | ||
+ | [[File:Accessories_dictionary.png|64px|left]] | ||
+ | {{#ifeq: {{{version}}} | US | | 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 /> }} | ||
− | {{# | + | {{#ifeq: {{{version}}} | UK | | This {{lcfirst:{{{page_type|command}}}}} is different in UK English. |
− | See [[:{{NAMESPACE}}:{{{ | + | See [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type|command}}}}}]].<br /> }} |
+ | {{#ifeq: {{{version}}} | Aus | | This {{lcfirst:{{{page_type|command}}}}} is different in Australian English. | ||
+ | See [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type|command}}}}}]]. }} | ||
</div> | </div> | ||
Line 13: | Line 22: | ||
Indicate text for alternate languages:<br /> | Indicate text for alternate languages:<br /> | ||
* <nowiki> | * <nowiki> | ||
− | {{Alternate Language|page_type= | + | {{Alternate Language|page_type=Command| US_version=Center|UK_version=Centre|Aus_version=Centre}} |
</nowiki><br /> | </nowiki><br /> | ||
* <nowiki> | * <nowiki> | ||
− | {{Alternate Language|page_type= | + | {{Alternate Language|page_type=Tool|US_version=Compass|UK_version=Compasses|Aus_version=Compasses}} |
</nowiki> | </nowiki> | ||
<br />Parameters: | <br />Parameters: |
Revision as of 03:23, 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]].
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).