Module:Msg/types/doc: Difference between revisions

Created page with "== Module:Msg/types == This submodule contains translations for all Pokehero types used in the PokeHero wiki. === Structure === The table maps message keys to translations for each language. Example: <pre> return { ["pokehero-types-normal"] = { en = "Normal", fr = "Normal" }, ["pokehero-types-fighting"] = { en = "Fighting", fr = "Combat" }, ["pokehero-types-energy"] = { en = "Energy", fr = "Énergie" } } </pre> * Keys should follow the pattern `poke..."
 
No edit summary
 
Line 13: Line 13:
</pre>
</pre>


* Keys should follow the pattern `pokehero-types-<name>` for consistency.
* Keys should follow the pattern <code>pokehero-types-<name></code> for consistency.
* Languages use their ISO codes (en, fr, etc.).
* Languages use their ISO codes (en, fr, etc.).
* Add new types by adding new entries to this table.
* Add new types by adding new entries to this table.