Jump to content

Module:Msg/moves/doc: Difference between revisions

From PokeHero Official Wiki
No edit summary
 
Line 1: Line 1:
== Module:Msg/types ==
== Module:Msg/moves ==
This submodule contains translations for all moves used in the PokeHero wiki.
This submodule contains translations for all moves used in the PokeHero wiki.



Latest revision as of 22:30, 19 September 2025

Module:Msg/moves

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 moves 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.