Template:HexRow: Difference between revisions

m
a few updates...
m (DONE!)
m (a few updates...)
Line 1: Line 1:
<includeonly>|-style="font-family:courier"
<includeonly>|-style="font-family:courier; font-size:2"
!{{{1|0x00}}}
|{{{1|0x00}}}:&nbsp;
|BGCOLOR="#{{{19|FF}}}{{{36|FF}}}{{{53|FF}}}"|{{{2|00}}}
|BGCOLOR="#{{{19|FF}}}{{{36|FF}}}{{{53|FF}}}"|{{{2|00}}}
|BGCOLOR="#{{{20|FF}}}{{{37|FF}}}{{{54|FF}}}"|{{{3|00}}}
|BGCOLOR="#{{{20|FF}}}{{{37|FF}}}{{{54|FF}}}"|{{{3|00}}}
Line 17: Line 17:
|BGCOLOR="#{{{33|FF}}}{{{50|FF}}}{{{67|FF}}}"|{{{16|00}}}
|BGCOLOR="#{{{33|FF}}}{{{50|FF}}}{{{67|FF}}}"|{{{16|00}}}
|BGCOLOR="#{{{34|FF}}}{{{51|FF}}}{{{68|FF}}}"|{{{17|00}}}
|BGCOLOR="#{{{34|FF}}}{{{51|FF}}}{{{68|FF}}}"|{{{17|00}}}
!{{{70|°°°°°°°°°°°°°°°°}}}</includeonly><noinclude>
|&nbsp;{{{70|°°°°°°°°°°°°°°°°}}}</includeonly><noinclude>
Here's an all-ASCII alternative to GIF/PNG snapshots of hex data.
Here's an all-ASCII alternative to GIF/PNG snapshots of hex data.


Line 45: Line 45:
{|border=1 cellspacing=0
{|border=1 cellspacing=0
|-style="font-family:courier"
|-style="font-family:courier"
!{{{0|0x00}}}
|{{{0|0x00:&nbsp;}}}
|BGCOLOR="#FF0000"|01
|BGCOLOR="#FF0000"|01
|BGCOLOR="#FF0000"|51
|BGCOLOR="#FF0000"|51
Line 62: Line 62:
|BGCOLOR="#00FF00"|AD
|BGCOLOR="#00FF00"|AD
|BGCOLOR="#00FF00"|DE
|BGCOLOR="#00FF00"|DE
!Who needs this?°
|&nbsp;Who needs this?°
|-style="font-family:courier"
|-style="font-family:courier"
!{{{0|0x10}}}
|{{{0|0x10:&nbsp;}}}
|BGCOLOR="#00FF00"|AD
|BGCOLOR="#00FF00"|AD
|BGCOLOR="#00FF00"|DE
|BGCOLOR="#00FF00"|DE
Line 81: Line 81:
|BGCOLOR="#00FF00"|AD
|BGCOLOR="#00FF00"|AD
|BGCOLOR="#00FF00"|DE
|BGCOLOR="#00FF00"|DE
!°°°°°°°°°°°°°°°°
|&nbsp;°°°°°°°°°°°°°°°°
|}
|}
There are 66 "actual" arguments; they are ''not'' named, but they line up intuitively.
There are 66 "actual" arguments; they are ''not'' named, but they line up intuitively.
Line 92: Line 92:
**16 "blue" bytes
**16 "blue" bytes
*Finally, you can add an ASCII translation if you so wish.
*Finally, you can add an ASCII translation if you so wish.
**Most of the time it's actually irrelevant; I'd systematically show all non-printable chars as '''°'''.
**Most of the time it's actually irrelevant
**If all 16 chars are non-printable, leave the last argument blank (the default value is '''°°°°°°°°°°°°°°°°''')
::I'd systematically show nonsensical ASCII as '''°''' : it's less distractive.
:::Same for confirmed garbage in the hex fields : you can fill it with '''°'''.
**If all 16 chars are nonsense, simply omit the last argument (the default value is '''°°°°°°°°°°°°°°°°''')
Only the fixed-size font is specified in this template, as well as bold for offset and ASCII.
Only the fixed-size font is specified in this template, as well as bold for offset and ASCII.


The rest (cell spacing/padding, border, alignment on page, background color, etc) is set at table level.
The rest (cell spacing/padding, border, alignment on page, background color, etc) is set at table level.
</noinclude>
</noinclude>