Template:Str index/decode

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to 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.