Module:Msg/types/doc
< Module:Msg | types
This is the documentation page for Module:Msg/types
Module:Msg/types
This submodule contains translations for all Pokehero types used in the PokeHero wiki.
Structure
The table maps message keys to translations for each language. Example:
return { ["pokehero-types-normal"] = { en = "Normal", fr = "Normal" }, ["pokehero-types-fighting"] = { en = "Fighting", fr = "Combat" }, ["pokehero-types-energy"] = { en = "Energy", fr = "Énergie" } }
- Keys should follow the pattern
pokehero-types-<name>
for consistency. - Languages use their ISO codes (en, fr, etc.).
- Add new types by adding new entries to this table.
Usage
Access the types table via `Module:Msg`:
{{#invoke:Msg|msg|types|energy}}
This automatically returns the correct translation for the page language or falls back to English if necessary.
Notes
- This table is only loaded when requested to minimize memory usage.
- Missing keys or translations are handled gracefully by `Module:Msg`.