tests of template User:Vanisaac/charmap edit

Well done. I had a look at your template code, and it's beyond me!

It's actually remarkably simple. You just replace any instance of a piece of data with either a variable, or the result of another template being fed the appropriate variables. So the first unnamed variable - {{{1}}} - is simply displayed in upper case {{uc: {{{1}}} }} for the third column, but is ran through a hex to decimal template {{hex2dec|{{{1}}} }} for the second column. For the second character, you do the same with {{{2}}}. The complexity is really just a function of what you want to do with your inputs. I manage to run the Unicode code point inputs through the template {{UTF-8}} for both decimal and hex output. Basically, that's everything, with a bit of arcana, like you can't directly use pipe characters "|" inside of #if: conditions, so you use {{!}}. VanIsaacWScontribs 01:02, 14 June 2012 (UTC)

You have a bug somewhere that's including extra spaces and throwing things out. You didn't use the same template call layout in your demonstration as in your documentation! Compare the following:

template call formatted as actually used in the documentation

User:Vanisaac/charmap

template call formatted as shown in the documentation

User:Vanisaac/charmap wrong: character display, decimal Unicode value, UTF-8 strings

After fixing the space bug, compare this with Yer#Computing_codes

User:Vanisaac/charmap

Some suggestions for improvement
  • I would prefer capital hex letters in the numeric character references
  • I would like to see the named character references centred in the spanned column

Thanks for the hard work.

You're welcome. If you sign off on it, I'll move it to the template namespace. VanIsaacWScontribs 01:02, 14 June 2012 (UTC)