Jump to content

Module:Numcr2namecr/doc

විකිපීඩියා වෙතින්
12:48, 21 ජූනි 2023 වන විට en>GKNishimoto විසින් සිදු කර ඇති සංශෝධන
(වෙනස) ← පැරණි සංශෝධනය | වත්මන් සංශෝධනය (වෙනස) | නව සංශෝධනය → (වෙනස)

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}} → Š.
  • |index| must be a plain decimal 160 or explicit hexadecimal 0xA9. Not " " 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
"https://si.wikipedia.org/w/index.php?title=Module:Numcr2namecr/doc&oldid=657817" වෙතින් සම්ප්‍රවේශනය කෙරිණි