Template:Uses TNT
TNT | This template uses Module:TNT for localisation: |
![]() | Uses Lua: |
TNT | This template uses Module:TNT for localisation: |
No description yet available.
The template automatically sets the following categories:
- Category:Templates using Module:TNT for internationalisation, added if no custom category is specified in the template call.
Usage
{{Uses TNT |1= }}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
Used to show that templates have been converted to use [[Module:TNT]] for internationalization.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Translation Table 1 | 1 | Name of the main translation table used in the template. Use multiple parameters to specify multiple translation tables. | String | required |
Translation Table 2 | 2 | Name of the second translation table. | String | optional |
Translation Table 3 | 3 | Name of the third translation table. | String | optional |
Translation Table 4 | 4 | Name of the fourth translation table. | String | optional |
Translation Table 5 | 5 | Name of the fifth translation table. | String | optional |
Translation Table 6 | 6 | Name of the sixth translation table. | String | optional |
Translation Table 7 | 7 | Name of the seventh translation table. | String | optional |
Translation Table 8 | 8 | Name of the eighth translation table. | String | optional |
Translation Table 9 | 9 | Name of the ninth translation table. | String | optional |
Translation Table 10 | 10 | Name of the tenth translation table. | String | optional |
No Category? | nocat | Whether to disable categorization.
| Boolean | optional |
Wish? | wish | Whether this template is a candidate for conversion to using [[Module:TNT]].
| Boolean | optional |
Custom Category | category | Main category to put on pages using this template, without namespace prefix.
| String | optional |
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users
Placement:
In the |mbox=
parameter of {{TemplateBox}}.
Relies on:
Examples
{{Uses TNT|Module:TNT/testcases}}
renders as:
TNT | This template uses Module:TNT for localisation: |
{{Uses TNT|wish=true}}
renders as:
TNT | This template should use Module:TNT for localisation. |
{{Uses TNT}}
renders as:
TNT | Error: no translation tables specified |
See also
- {{Lua}}
- {{Uses TemplateStyles}}
Localization
This template is localized using Module:TNT. These translations are stored in Data:I18n/Uses TNT.tab.