Jump to content

Module:Numcr2namecr/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Gonnym (talk | contribs) at 17:16, 3 November 2024. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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

Usage

[edit]

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}} → Š.
  • |index| must be a plain decimal 160 or explicit hexadecimal 0xA9. Not " " nor hexadecimal "00A9".

Editing

[edit]

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

[edit]
List of XML and HTML character entity references § Character entity references in HTML