Template:Dynamite/doc
This is a documentation subpage for Template:Dynamite. It contains usage information, categories, and other content that is not part of the original template page. |
This template will return a translatable page in the user's interface language if such a page exists; else, it'll return the "/en" page. If "/en" page also doesn't exist, this will return the source page of the target template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | Title of the page to transclude, as in a template transclusion (prefixed with namespace except for the template namespace, ":" prefix for mainspace pages)
| Template | required |
template | t | Whether the title belongs to a template (needed for existence check)
| Line | optional |
It is the same as using {{TNT|Foo|uselang={{int:lang}}}}
and this template was created to avoid the template looping issue when {{TNT}} is used on TNT again.
It is the same as using {{ :{{TNTN|Foo |uselang={{int:lang}} }} }}
which does not loop too.
Usage
edit{{dynamite|title=template name|t=yes}}
{{dynamite|title=:page name}}
Examples
edit{{dynamite|title=Steward requests|t=yes}}
will include:- Template:Steward requests/Permissions/en if user interface is in English,
- Template:Steward requests/Permissions/fr if user interface is in French,
- Template:Steward requests/Permissions/de if user interface is in German;
{{dynamite|title=:VisualEditor/Newsletter/header}}
will include:- VisualEditor/Newsletter/header/en if user interface is in English,
- VisualEditor/Newsletter/header/fr if user interface is in French,
- VisualEditor/Newsletter/header/en if user interface is in German since VisualEditor/Newsletter/header/de does not exist.
See [1] for an example usage.