Jump to content

Module:Numcr2namecr/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 09:16, 17 March 2024 by PotsdamLamb (talk | changes) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Numcr2namecr

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 {{Numcr2namecr}}, or {{#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