Module:Msg/moves/doc: Difference between revisions
Created page with "== 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: <pre> 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..." |
No edit summary |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
* Keys should follow the pattern | * Keys should follow the pattern <code>pokehero-moves-<name></code> for consistency. | ||
* | * <code><name></code> should '''NOT''' replace spaces by other characters. | ||
* Languages use their ISO codes (en, fr, etc.). | * Languages use their ISO codes (en, fr, etc.). | ||
* Add new moves by adding new entries to this table. | * Add new moves by adding new entries to this table. | ||
=== Usage === | === Usage === | ||
Access the types table via | Access the types table via <code>Module:Msg</code>: | ||
<pre> | <pre> | ||
Line 29: | Line 29: | ||
=== Notes === | === Notes === | ||
* This table is only loaded when requested to minimize memory usage. | * This table is only loaded when requested to minimize memory usage. | ||
* Missing keys or translations are handled gracefully by | * Missing keys or translations are handled gracefully by <code>Module:Msg</code>. |