Toggle menu
3
389
1
853
Seul En Groupe
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Language code subpage: Difference between revisions

Template page
Move logic to lua: Translation.getLangSubpage()
 
m 1 revision imported
 
(No difference)

Latest revision as of 12:01, 22 March 2026

Template:Protection Template:Lua

File:Notebook.pngDocumentation

This template often abbreviated as Template:Tlx, returns the subpage of the current page if the subpage is one of the language codes wiki supports. Otherwise returns nothing.

Usage

To use this template, just paste Template:Tlx after the page name.

Parameters

1
Language code to check. Defaults to the current page’s subpage.
The legacy use of noslash is still supported for backwards compatibility, however slash=true should be used instead.
slash
Language code. Defaults to current page’s subpage if valid.

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.