Module:Msg/moves/doc
< Module:Msg | moves
This is the documentation page for Module:Msg/moves
Module:Msg/types
This submodule contains translations for all moves used in the PokeHero wiki.
Structure
The table maps message keys to translations for each language. Example:
return { ["pokehero-moves-64 palms of the hakke"] = { en = "64 Palms of the Hakke", fr = "64 Poings du Hakke" }, ["pokehero-moves-absolute execution"] = { en = "Absolute Execution", fr = "Exécution absolue" }, ["pokehero-moves-absolute flame"] = { en = "Absolute Flame", fr = "Flamme Absolue" } }
- Keys should follow the pattern
pokehero-moves-<name>
for consistency. <name>
should NOT replace spaces by other characters.- Languages use their ISO codes (en, fr, etc.).
- Add new moves by adding new entries to this table.
Usage
Access the types table via Module:Msg
:
{{#invoke:Msg|msg|moves|absolute flame}}
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
.