Difference between revisions of "Template:Alternate Language"
From GeoGebra Manual
Line 1: | Line 1: | ||
− | + | {{#ifeq:{{NAMESPACE}}|Manual| | |
− | {{#ifeq:{{PAGENAME}}|{{{non-US_version}}} {{ucfirst:{{{page_type}}}}}|[[Category:UK]] | + | {{#ifeq:{{PAGENAME}}|{{{non-US_version}}} {{ucfirst:{{{page_type}}}}}|[[Category:UK]] [[Category:Aus]]}}<!-- |
− | + | -->{{#ifeq:{{PAGENAME}}|{{{non-UK_version}}} {{ucfirst:{{{page_type}}}}}|[[Category:US]] [[Category:Aus]]}}<!-- | |
− | {{#if:{{{US_version|}}}|* [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type}}}}}|{{{US_version}}}{{ucfirst:{{{page_type}}}}} (US)]]| }}{{#if:{{{UK_version|}}}|* [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type}}}}}|{{{UK_version}}} {{ucfirst:{{{page_type}}}}} (UK)]]| }}{{#if:{{{Aus_version|}}}|* [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}|{{{Aus_version}}} {{ucfirst:{{{page_type}}}}} (Aus)]]| }}{{#if:{{{non-US_version|}}}|* [[:{{NAMESPACE}}:{{{non-US_version}}} {{ucfirst:{{{page_type}}}}}|{{{non-US_version}}} {{ucfirst:{{{page_type}}}}} (UK + Aus)]]| }}{{#if:{{{non-UK_version|}}}|* [[:{{NAMESPACE}}:{{{non-UK_version}}} {{ucfirst:{{{page_type}}}}}|{{{non-UK_version}}}{{ucfirst:{{{page_type}}}}} (US + Aus)]]| }}{{#if:{{{non-Aus_version|}}}|* [[:{{NAMESPACE}}:{{{non-Aus_version}}} {{ucfirst:{{{page_type}}}}}|{{{non-Aus_version}}} {{ucfirst:{{{page_type}}}}} (UK + US)]]| }} | + | -->{{#ifeq:{{PAGENAME}}|{{{non-Aus_version}}}{{ucfirst:{{{page_type}}}}}|[[Category:UK]] [[Category:US]]}} |
+ | -->{{#ifeq:{{PAGENAME}}|{{{US_version}}} {{ucfirst:{{{page_type}}}}}|[[Category:US]]}}<!-- | ||
+ | -->{{#ifeq:{{PAGENAME}}|{{{UK_version}}} {{ucfirst:{{{page_type}}}}}|[[Category:UK]]}}<!-- | ||
+ | -->{{#ifeq:{{PAGENAME}}|{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}|[[Category:Aus]]}}}}<!-- | ||
+ | -->{{#if:{{{US_version|}}}|* [[:{{NAMESPACE}}:{{{US_version}}} {{ucfirst:{{{page_type}}}}}|{{{US_version}}}{{ucfirst:{{{page_type}}}}} (US)]]| }} | ||
+ | {{mbox|text=This page differs among variants of English: <!-- | ||
+ | -->{{#if:{{{UK_version|}}}|* [[:{{NAMESPACE}}:{{{UK_version}}} {{ucfirst:{{{page_type}}}}}|{{{UK_version}}} {{ucfirst:{{{page_type}}}}} (UK)]]| }}<!-- | ||
+ | -->{{#if:{{{Aus_version|}}}|* [[:{{NAMESPACE}}:{{{Aus_version}}} {{ucfirst:{{{page_type}}}}}|{{{Aus_version}}} {{ucfirst:{{{page_type}}}}} (Aus)]]| }}<!-- | ||
+ | -->{{#if:{{{non-US_version|}}}|* [[:{{NAMESPACE}}:{{{non-US_version}}} {{ucfirst:{{{page_type}}}}}|{{{non-US_version}}} {{ucfirst:{{{page_type}}}}} (UK + Aus)]]| }}<!-- | ||
+ | -->{{#if:{{{non-UK_version|}}}|* [[:{{NAMESPACE}}:{{{non-UK_version}}} {{ucfirst:{{{page_type}}}}}|{{{non-UK_version}}}{{ucfirst:{{{page_type}}}}} (US + Aus)]]| }}<!-- | ||
+ | -->{{#if:{{{non-Aus_version|}}}|* [[:{{NAMESPACE}}:{{{non-Aus_version}}} {{ucfirst:{{{page_type}}}}}|{{{non-Aus_version}}} {{ucfirst:{{{page_type}}}}} (UK + US)]]| }}| | ||
+ | image=[[Image:Menu Language.png]]}} | ||
<noinclude>{{documentation}}</noinclude><noinclude>[[Category:Exclude in print]]</noinclude> | <noinclude>{{documentation}}</noinclude><noinclude>[[Category:Exclude in print]]</noinclude> |
Revision as of 14:45, 28 January 2011
This page differs among variants of English: |
[edit] [ ] 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
- [[:Template:Center {{{page_type}}}|Center{{{page_type}}} (US)]]
This page differs among variants of English:
|
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).
The above documentation is transcluded from Template:Alternate Language/doc. (edit | history) Editors can experiment in Sandbox.Please add categories and interwikis to the /doc subpage. Subpages of this template. |