Template:LanguageLink/doc View history

(Created page with "{{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> This template will: * add the language code of the active page to the provided text * returns the active language co...")
 
(Updated category name)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
* add the language code of the active page to the provided text
* 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
* returns the active language code (/en /nl /fr) is no argument is passed
* If no language code is found, /en is returned


Usage:
Usage:
Line 11: Line 12:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category: Language Templates]]
[[Category: Language templates]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->


</includeonly>
</includeonly>

Latest revision as of 06:33, 10 August 2022

This is a documentation subpage for Template:LanguageLink.
It contains usage information, categories and other content that is not part of the original template page.

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