Difference between revisions of "Template:Alternate Language"

From GeoGebra Manual
Jump to: navigation, search
m (display alternate link without PAGESPACE label)
m (remove extra space)
Line 1: Line 1:
<div class="box info">[[File:Accessories_dictionary.png|64px|left]]{{#switch: {{{region}}} | US | non-UK | non-Aus = | This {{lcfirst:{{{page_type}}}}} is different in US English.  See [[:{{{US_version}}} {{ucfirst:{{{page_type}}}}}]].<!--[[Category:Manual (official):US]]--><br /> }}{{#switch: {{{region}}} | UK | non-US | non-Aus = | This {{lcfirst:{{{page_type}}}}} is different in UK English.  See [[:{{{UK_version}}} {{ucfirst:{{{page_type}}}}}]].<!--[[Category:Manual (official):UK]]--><br /> }}{{#switch: {{{region}}} | Aus | non-US | non-UK = | This {{lcfirst:{{{page_type}}}}} is different in Australian English.  See [[:{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}]].<!--[[Category:Manual (official):Aus]]--> }}</div>
+
<div class="box info">[[File:Accessories_dictionary.png|64px|left]]{{#switch: {{{region}}} | US | non-UK | non-Aus = | This {{lcfirst:{{{page_type}}}}} is different in US English.  See [[:{{{US_version}}} {{ucfirst:{{{page_type}}}}}]].<!--[[Category:Manual (official):US]]--><br /> }}{{#switch: {{{region}}} | UK | non-US | non-Aus = | This {{lcfirst:{{{page_type}}}}} is different in UK English.  See [[:{{{UK_version}}} {{ucfirst:{{{page_type}}}}}]].<!--[[Category:Manual (official):UK]]--><br /> }}{{#switch: {{{region}}} | Aus | non-US | non-UK = | This {{lcfirst:{{{page_type}}}}} is different in Australian English.  See [[:{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}]].<!--[[Category:Manual (official):Aus]]--> }}</div><noinclude>
<noinclude>
 
 
== Usage ==
 
== Usage ==
 
====Indicate current region and include alternate text for other regions.====
 
====Indicate current region and include alternate text for other regions.====
Line 15: Line 14:
 
== Comments==
 
== Comments==
 
<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:13, 31 October 2009

Accessories dictionary.png
This {{{page_type}}} is different in US English. See [[:{{{US_version}}} {{{page_type}}}]].
This {{{page_type}}} is different in UK English. See [[:{{{UK_version}}} {{{page_type}}}]].
This {{{page_type}}} is different in Australian English. See [[:{{{Aus_version}}} {{{page_type}}}]].

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
  • region = {non-US, non-UK, non-Aus}: regional language excluded from current page; template will only include references to excluded 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).

© 2024 International GeoGebra Institute