Template:LanguageLink View history

(Created page with "{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|-1}}|{{#language:{{#titleparts:{{FULLPAGENAME}}|1|-1}}}} |{{ {{{1}}} }} |{{#ifexist:Template:{{{1}}}/{{#titleparts:{{FULLPAGENAME}...")
 
mNo edit summary
Line 1: Line 1:
{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|-1}}|{{#language:{{#titleparts:{{FULLPAGENAME}}|1|-1}}}}
{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|-1}}|{{#language:{{#titleparts {{FULLPAGENAME}}|1|-1}}}}
   |{{ {{{1}}} }}
   |
   |{{#ifexist:Template:{{{1}}}/{{#titleparts:{{FULLPAGENAME}}|1|-1}}
   |{{#ifexist:Template:{{{1}}}/{{#titleparts:{{FULLPAGENAME}}|1|-1}}
     |{{ {{{1}}}/{{#titleparts:{{FULLPAGENAME}}|1|-1}} }}
     |{{ {{{1}}}/{{#titleparts:{{FULLPAGENAME}}|1|-1}} }}

Revision as of 09:49, 14 April 2014

{{ {{{1}}} }}

Documentation icon Template documentation[view] [edit] [history] [purge]

This template will:

  • add the language code of the active page to the provided text
  • returns the active language code (/en /nl /fr) is no argument is passed
  • If no language code is found, /en is returned

Usage:

{{LanguageLink}}               ->             /en
{{LanguageLink|Pagename}}      ->             Pagename/en
The above documentation is transcluded from Template:LanguageLink/doc.
Please add categories to the /doc subpage.
Subpages of this template.