Jump to content

Module:Msg/move-descriptions/doc: Difference between revisions

From PokeHero Official Wiki
Created page with "== Module:Msg/types == This submodule contains translations for all move descriptions used in the PokeHero wiki. === Structure === The table maps message keys to translations for each language. Example: <pre> return { ["pokehero-move-descriptions-64 palms of the hakke"] = { en = "Secret technique of the Hyûga clan. High chance to paralyze.", fr = "Technique secrète du clan Hyûga. Grande chance de paralyser." }, ["pokehero-move-descriptions-absolute execution..."
 
 
Line 1: Line 1:
== Module:Msg/types ==
== Module:Msg/move-descriptions ==
This submodule contains translations for all move descriptions used in the PokeHero wiki.
This submodule contains translations for all move descriptions used in the PokeHero wiki.



Latest revision as of 22:41, 19 September 2025

Module:Msg/move-descriptions

This submodule contains translations for all move descriptions used in the PokeHero wiki.

Structure

The table maps message keys to translations for each language. Example:

return {
    ["pokehero-move-descriptions-64 palms of the hakke"] = { en = "Secret technique of the Hyûga clan. High chance to paralyze.", fr = "Technique secrète du clan Hyûga. Grande chance de paralyser." },
    ["pokehero-move-descriptions-absolute execution"] = { en = "The perfect move, plain and simple. Never misses, ignores defense boosts, and always lands a critical hit.", fr = "L'attaque parfaite, tout simplement. Ne peut pas rater, ignore les augmentations de défense et inflige toujours un coup critique." }
}
  • Keys should follow the pattern pokehero-move-descriptions-<name> for consistency.
  • <name> should NOT replace spaces by other characters.
  • Languages use their ISO codes (en, fr, etc.).
  • Add new move descriptions by adding new entries to this table.

Usage

Access the move descriptions table via Module:Msg:

{{#invoke:Msg|msg|move-descriptions|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.