Toggle menu
14
229
69
27.1K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Numcr2namecr/doc: Difference between revisions

From Kenshi Wiki
Created page with "{{Module rating |release}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> This is a data module. It cannot be invoked directly, but it can be accessed from other modules. == Usage == From Lua, use <code>mw.loadData</code>. Be aware that will return a special type of table so some features are unavailable. From templates, use..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Module rating |release}}
{{doc sub}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This is a data module. It cannot be invoked directly, but it can be accessed from other modules.
This is a data module. It cannot be invoked directly, but it can be accessed from other modules.
Line 21: Line 21:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Modules]]
[[Category:Conversion templates]]
[[Category:Conversion templates]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
[[pt:Módulo:Numcr2namecr/doc]]
[[Category:Module documents]]
</noinclude>
</noinclude>

Latest revision as of 01:34, 10 March 2025

This is a data module. It cannot be invoked directly, but it can be accessed from other modules.

Usage

From Lua, use mw.loadData. Be aware that will return a special type of table so some features are unavailable.

From templates, use {{#invoke:LoadData|Numcr2namecr|index|if_nil=default}}

{{#invoke:LoadData|Numcr2namecr|0x160}} → &Scaron;.
  • |index| must be a plain decimal 160 or explicit hexadecimal 0xA9. Not "&#160;" nor hexadecimal "00A9".

Editing

Please do not add any functions, metatables etc. to this data table. mw.loadData is very limited in what it will accept as valid input.

See also

List of XML and HTML character entity references  Character entity references in HTML