Template:Chr7a

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template decodes a string of up to 7 characters coded in the form of 2 digits each, according to Template:Nfchr. Unlike Template:Chr7, it neither produces a blank line before ";" etc., nor <nowiki> tags around them.

The maximum string length is 119 (excess characters are ignored), resulting in a "page title" of 254 characters. These resulting characters are digits and slashes only, so the string is a valid page title in canonical form, so it is suitable for application of #titleparts without being affected by automatic conversions.

Examples[edit]

  • "{{chr7a|23091109}}" → "wiki" [1]
  • "{{chr7a|23095909}}" → "wi;i" [2]
  • "{{chr7a|013202}}" → "a b" [3]
  • "{{chr7a|013102}}" → "a

b" [4]

  • "{{chr7a|0}}" → "" [5]
  • "{{chr7a|}}" → "" [6]
  • "{{chr7a}}" → "" [7]

Too long:

  • "{{chr7a|870911091605040901}}" → "˚" [8]

Invalid number:

  • "{{chr7a|a23091109}}" → "˚" [9]

See also[edit]