Module:Caller title/doc
Appearance
This is a documentation subpage for Module:Caller title. It contains usage information, categories and other content that is not part of the original Module page. |
This module simply returns the title of the page calling this module. Itâs intended for templates translated using the Translate extension. It has two entry points, both can be called with {{#invoke:Caller title|entry point 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). An additional
|base=
parameter can be given with the full title of the translation base page, so that page language is used on that page (as there is no language code subpage there).