Template:Str index/decode

From EUSwiki
< Template:Str index
Revision as of 00:21, 9 February 2019 by Malcolmmcc (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

#

The Template:Str_index/decode decodes a character code to return a special character which is normally warpified into a newline by being the first character on a line. The handling of the character is done through Template:Ifeq which does not trim leading spaces but will process colon-indent, asterisk-bullets, or semicolon bold-headers. To avoid the column-1 markup codes, a null-nowiki-tag "<nowiki/>" is placed before each special character. For example:

  • {{str_index/decode |&#58;}} → <nowiki/>:

In the displayed output, all the null-nowiki tags will be skipped, and the formatted page will contain only the specific characters, in their exact positions, as intended. The characters can be decoded at the rate of over 300 per second.