Predefinição:Str index/decode

Revisão em 19h37min de 15 de maio de 2024 por Jaewoo (discussão | contribs) (Criou a página com "<noinclude><!-- -====================================================================== - Str_index/decode - Get character for code in parameter 1, else same -====================================================================== -- (see NOTES at bottom) --></noinclude>{{{{{|safesubst:}}}#ifeq: &#|{{{{{|safesubst:}}}padleft:|2|{{{1|&#xx}}} }}|<noinclude><!-- --then decode --></noinclude>{{{{{|safesubst:}}}#ifeq: &#35|{{{{{|sa...")
(dif) ← Revisão anterior | Revisão atual (dif) | Revisão seguinte → (dif)

#

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.