Difference between revisions of "Template:Alternate Language"

From GeoGebra Manual
Jump to: navigation, search
m (experimenting)
m (fixed noinclude)
Line 8: Line 8:
 
* [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type}}}}}|{{{UK_version}}} {{ucfirst:{{{page_type}}}}} (UK)]]
 
* [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type}}}}}|{{{UK_version}}} {{ucfirst:{{{page_type}}}}} (UK)]]
 
* [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}|{{{Aus_version}}} {{ucfirst:{{{page_type}}}}} (Aus)]]
 
* [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}|{{{Aus_version}}} {{ucfirst:{{{page_type}}}}} (Aus)]]
</div></div>
+
</div></div><noinclude>
 
== Usage ==
 
== Usage ==
 
====Indicate current region and include alternate text for other regions.====
 
====Indicate current region and include alternate text for other regions.====

Revision as of 21:40, 23 May 2010

This page differs among variants of English:


  • [[:Template:{{{US_version}}} {{{page_type}}}|{{{US_version}}} {{{page_type}}} (US)]]
  • [[:Template:{{{UK_version}}} {{{page_type}}}|{{{UK_version}}} {{{page_type}}} (UK)]]
  • [[:Template:{{{Aus_version}}} {{{page_type}}}|{{{Aus_version}}} {{{page_type}}} (Aus)]]

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 |UK_version=Centre|Aus_version=Centre}}

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
  • 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