Jump to content

Module:Unicode data/templates/documentation

Wiktionary වෙතින්

This module provides ways for some of the functions in Module:Unicode data to be used in templates.

lookup, is
Call one the functions starting with lookup and is. Replace the first underscore in the function name with a pipe, and add the code point in hexadecimal base, or a bit of text, for is_valid_pagename, as the next parameter. For example, {{#invoke:Unicode data/templates|lookup|name|61}} → LATIN SMALL LETTER A; {{#invoke:Unicode data/templates|is|valid_pagename|#}} → false.
has_aliases
Returns true if a code point has data in Module:Unicode data/aliases, false otherwise. Used in Template:character info/save memory. For instance, for the space character (U+0020), {{#invoke:Unicode data/templates|has_aliases|20}} → true.


"https://si.wiktionary.org/w/index.php?title=Module:Unicode_data/templates/documentation&oldid=184523" වෙතින් සම්ප්‍රවේශනය කෙරිණි