Template:Localized mw message/doc: Difference between revisions
Template page
More actions
Set the `useTemplateData` parameter of {{TemplateBox}} to `TNT` (use c:Data:Templatedata/int.tab) |
→top: Add {{Lua|Module:Int}}; →Usage: Include `|1=` in usage example |
||
| Line 1: | Line 1: | ||
{{TemplateBox/sandbox | {{TemplateBox/sandbox | ||
|name=localized mw message | | name = localized mw message | ||
| mbox = | |||
{{Lua|Module:Int}} | |||
|desc=Shows a MediaWiki message in the same language of the page (identified by the subpage name) within a translated page. Not to confuse with <code><nowiki>{{int:XXX}}</nowiki></code> which always shows the message in the language chosen by the user in their [[Special:Preferences#mw-prefsection-personal|preferences]]. | |desc=Shows a MediaWiki message in the same language of the page (identified by the subpage name) within a translated page. Not to confuse with <code><nowiki>{{int:XXX}}</nowiki></code> which always shows the message in the language chosen by the user in their [[Special:Preferences#mw-prefsection-personal|preferences]]. | ||
|namespace=all | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
| relieson = | |||
* [[Module:Int]] | |||
|i18n-method=- | |i18n-method=- | ||
| Line 11: | Line 17: | ||
| print = line | | print = line | ||
| useTemplateData=TNT:int | | useTemplateData=TNT:int | ||
| 1 = 1 | |||
}}<includeonly> | }}<includeonly> | ||
[[Category:Navigational templates for the translate extension|* {{PAGENAME}}]]</includeonly> | [[Category:Navigational templates for the translate extension|* {{PAGENAME}}]] | ||
</includeonly> | |||