Jump to content

Template:Msg: Difference between revisions

From PokeHero Official Wiki
Created page with "<translate> {{TemplateUsage |usage=<pre>{{Msg|Category|Key|lang=Language}}</pre> |description=This template is a wrapper around {{TransLink|Module:Msg|Module:Msg}} for easier use. '''Category''' is the name of the category (ex: <code>types</code> for {{TransLink|Module:Msg/types|Module:Msg/types}}). '''Key''' is the last word of the message key (ex: <code>energy</code> for <code>pokehero-types-energy</code>). '''Language''' is optional. It overrides <code><nowiki>{{PA..."
 
Marked this version for translation
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<translate>
<translate>
<!--T:1-->
{{TemplateUsage
{{TemplateUsage
|usage=<pre>{{Msg|Category|Key|lang=Language}}</pre>
|usage=<pre>{{Msg|Category|Key|lang=Language}}</pre>
|description=This template is a wrapper around {{TransLink|Module:Msg|Module:Msg}} for easier use.
|description=This template is a wrapper around {{TransLink|Module:Msg|Module:Msg}} for easier use.
'''Category''' is the name of the category (ex: <code>types</code> for {{TransLink|Module:Msg/types|Module:Msg/types}}).
*'''Category''' is the name of the category (ex: <code>types</code> for {{TransLink|Module:Msg/types|Module:Msg/types}}).
'''Key''' is the last word of the message key (ex: <code>energy</code> for <code>pokehero-types-energy</code>).
*'''Key''' is the last word of the message key (ex: <code>energy</code> for <code>pokehero-types-energy</code>).
'''Language''' is optional. It overrides <code><nowiki>{{PAGELANGUAGE}}</nowiki></code> with another language code (ex: <code>fr</code>).
*'''Language''' is optional. It overrides <code><nowiki>{{PAGELANGUAGE}}</nowiki></code> with another language code (ex: <code>fr</code>).
}}</translate>
}}</translate>



Latest revision as of 16:06, 31 August 2025

Usage
{{Msg|Category|Key|lang=Language}}
Description This template is a wrapper around Module:Msg for easier use.
  • Category is the name of the category (ex: types for Module:Msg/types).
  • Key is the last word of the message key (ex: energy for pokehero-types-energy).
  • Language is optional. It overrides {{PAGELANGUAGE}} with another language code (ex: fr).