Difference between revisions of "Template:Alternate Language"

From GeoGebra Manual
Jump to: navigation, search
m (corrected case-sensitive parameters in comment)
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="box info">
+
{{mbox|text=This command differs among variants of English: <!--
[[File:Accessories_dictionary.png|64px|left]]
+
-->{{#if:{{{US_version|}}}|* {{{US_version}}} (US)|&nbsp;}}<!--
{{#if: UK_version | This {{{page_type|command}}} is different in UK English. 
+
-->{{#if:{{{UK_version|}}}|* {{{UK_version}}} (UK)|&nbsp;}}<!--
See [[:{{NAMESPACE}}:{{{UK_version}}} {{{page_type|command}}}]].<br /> }}
+
-->{{#if:{{{Aus_version|}}}|* {{{Aus_version}}} (Aus)|&nbsp;}}<!--
{{#if: US_version | This {{{page_type|command}}} is different in US English. 
+
-->{{#if:{{{non-US_version|}}}|* {{{non-US_version}}} (UK + Aus)|&nbsp;}}<!--
See [[:{{NAMESPACE}}:{{{US_version}}} {{{page_type|command}}}]].<br /> }}
+
-->{{#if:{{{non-UK_version|}}}|* {{{non-UK_version}}} (US + Aus)|&nbsp;}}<!--
{{#if: Aus_version | This {{{page_type|command}}} is different in Australian English. 
+
-->{{#if:{{{non-Aus_version|}}}|* {{{non-Aus_version}}} (UK + US)|&nbsp;}}|
See [[:{{NAMESPACE}}:{{{Aus_version}}} {{{page_type|command}}}]].<br /> }}
+
image=[[Image:Globe.png|64px|link=]]}}
</div>
+
<noinclude>{{documentation}}</noinclude><noinclude>[[Category:Exclude in print]]</noinclude>
 
 
<noinclude>
 
== Usage ==
 
Indicate text for alternate languages:<br />
 
* <nowiki>
 
{{Alternate Language|page_type=command| US_version=Center|UK_version=Centre|Aus_version=Centre}}
 
</nowiki><br />
 
* <nowiki>
 
{{Alternate Language|page_type=tool|US_version=Compass|UK_version=Compasses|Aus_version=Compasses}}
 
</nowiki>
 
<br />Parameters:
 
* page_type = "command" or "tool" suffix
 
* US_version, etc = 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>
 
 
 
 
 
<noinclude>[[Category:Exclude in print]]</noinclude>
 

Latest revision as of 11:26, 4 August 2015

[edit] [purge] Template documentation

Indicate current region and include alternate text for other regions.

Usage

{{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}} produces


Example

(applied to US version of "Center Command"): 
  • {{Alternate Language|US_version=Center|non-US_version=Centre}}
  • {{Alternate Language|US_version=Center|UK_version=Centre|Aus_version=Centre}}

Parameters (page_type, *_version):

  • US_version, etc = regional name of command

Comments

{{NAMESPACE}} is used to adjust link in template to match current page (public vs official).

© 2024 International GeoGebra Institute