Template:Chr7a/doc
This is a documentation subpage for Template:Chr7a. It contains usage information, categories and other content that is not part of the original Template page. |
This template decodes a string of up to 7 characters coded in the form of 2 digits each. 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]
Too long:
"{{chr7a|870911091605040901}}"
→ "˚" [8]
Invalid number:
"{{chr7a|a23091109}}"
→ "˚" [9]
See also
edit- Manual:Newlines and spaces#Using a parameter tag to avoid an automatic newline
- Manual:Representing arrays