Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Caller title/doc

From Neodyland Wiki
Revision as of 17:49, 30 September 2019 by commons>Tacsipacsi (Created page with 'This module simply returns the title of the page embedding the template that directly calls this module (i.e. the page that embeds the wrapper template). It’s...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Caller title

This module simply returns the title of the page embedding the template that directly calls this module (i.e. the page that embeds the wrapper template). It’s primarily intended for templates translated using the Translate extension, but it can be used in traditional layout templates as well (in that case, the module should be called directly in order to get the title of the translation subpage). It has two entry points, both can be called with {{#invoke:Caller title|name}}:

title
Get the full title of the template.
lang
Get the language code (subpage name). In fact, it doesn’t check if the subpage name is a valid language code, so if called from X/y/z, it’ll happily return z. The template using this functionality should ensure it’s only used on language subpages (or be okay with garbage output).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.