Template:I18n/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Template:I18n. It may contain usage information, categories and other content that is not part of the original template page. |
| File:Lua-Logo.svg | This template uses Lua: |
| File:Information icon4.svg | This template may have no transclusions. This is because this is a convenience template for entering Module:i18n without calling {{#invoke:i18n|main}}. |
.
This template serves as an entrypoint for Module:i18n, which fetches i18n data from either Wikimedia Commons or a Lua /i18n file.
Usage
[edit source]{{i18n|i18nFunction|...|uselang=lang code}}
Example
[edit source]{{i18n|getMsg|Documentation|view-link-display|4=uselang=fr}} yields: Lua error in Module:I18n at line 384: attempt to index field 'data' (a nil value).
For more information on parameters please see Module:i18n.