Template:LanguageLink/doc View history

mNo edit summary
(Updated category name)
 
Line 12: 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