Difference between revisions of "Template:Alternate Language"

From GeoGebra Manual
Jump to: navigation, search
m (null testing)
m (new usage description)
Line 22: Line 22:
 
'''Example''' (applied to US version of "Center Command"):  
 
'''Example''' (applied to US version of "Center Command"):  
 
* <nowiki>
 
* <nowiki>
{{Alternate Language|page_type=Command|US_version=Center
+
{{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}}
|UK_version=Centre|Aus_version=Centre}}
+
</nowiki>
 +
* <nowiki>
 +
{{Alternate Language|page_type=Command|US_version=Center|UK_version=Centre|Aus_version=Centre}}
 
</nowiki>
 
</nowiki>
 
'''Parameters''' (page_type, *_version):  
 
'''Parameters''' (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
 
* page_type = {"Command", "Tool"}: suffix of PAGENAME
 
* US_version, etc = regional NAME of command or tool (NAME + page_type = PAGENAME)
 
* US_version, etc = regional NAME of command or tool (NAME + page_type = PAGENAME)

Revision as of 23:06, 27 May 2010

This page differs among variants of English:


           

Usage

Indicate current region and include alternate text for other regions.

Example (applied to US version of "Center Command"):

  • {{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}}
  • {{Alternate Language|page_type=Command|US_version=Center|UK_version=Centre|Aus_version=Centre}}

Parameters (page_type, *_version):

  • 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