- This page was created by volunteers like you!
- Help us make it even better. To learn more about contributing to MEpedia, click here.
- Join the movement
- Visit #MEAction to find support or take action. Donate today to help us improve and expand this project.
- Congratulations!
- MEpedia has got over 30 million views as of August 2022!
Module:TNT/doc
This is the documentation page for Module:TNT
Module:TNT is a complex template called directly by other modules or templates to provide language translations from .tab files in the Data: namespace, or if no such name space exists the (main) namespace will be used with a Data:Templatedata prefix.
Creating examples[edit source]
- Example Data:I18n/Template/Graph:Lines.tab translation file.
Bypassing TNT[edit source]
If no .tab file of translations for a particular template exist then TNT displays a visible error message on the page of the calling module or template.
To bypass TNT, comment out the invoke TNT line:
- Bypassing from a module: Module:Uses_TemplateStyles_templates change.
Updating templates or modules from Wikipedia[edit source]
Wikipedia and MediaWiki templates may call TNT and fail when no local translation file excuses. This includes Module:Citation/CS1, so if updating existing templates or modules make sure you including any MEpedia customisations from any existing version.
Alternatives[edit source]
Translations for many languages are also stored in the MediaWiki namespace, see Special:AllMessages. Translations can be imported from files extracted from https://translatewiki.net.