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..."
 
 
(2 intermediate revisions by the same user not shown)
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.


Line 13: Line 13:
</pre>
</pre>


* Keys should follow the pattern `pokehero-moves-<name>` for consistency.
* Keys should follow the pattern <code>pokehero-moves-<name></code> for consistency.
* `<name>` should '''NOT''' replace spaces by other characters.
* <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 `Module:Msg`:
Access the moves 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 `Module:Msg`.
* Missing keys or translations are handled gracefully by <code>Module:Msg</code>.