Difference between revisions of "Template:Chset-legend"

From blackwiki
Jump to navigation Jump to search
imported>HarJIT
(Add graybox and greenbox parameters allowing article-specific keys for boxing to be included in the same template call.)
imported>HarJIT
(show-esc parameter for showing the Template:Chset-color-esc (lead byte) colour — it would just be confusing if it were showed next to a single-byte code chart.)
Line 1: Line 1:
{{legend inline||Letter}}&nbsp;{{legend inline|#F7E7FF|Number}}&nbsp;{{legend inline|#DFF7FF|Punctuation}}&nbsp;{{legend inline|#FFEFAF|Symbol}}&nbsp;{{legend inline|#ccff99|[[unicode character property#General Category|Other]]}}&nbsp;{{legend inline|#D0D0D0|undefined}}{{#if:{{{graybox|}}}|&nbsp;{{legend inline||border=medium solid gray|{{{graybox}}} }}|}}{{#if:{{{greenbox|}}}|&nbsp;{{legend inline||border=medium solid green|{{{greenbox}}} }}|}}<noinclude>{{Documentation|content=
+
{{legend inline||Letter}}&nbsp;{{legend inline|#F7E7FF|Number}}&nbsp;{{legend inline|#DFF7FF|Punctuation}}&nbsp;{{legend inline|#FFEFAF|Symbol}}&nbsp;{{legend inline|#ccff99|[[unicode character property#General Category|Other]]}}{{#ifeq:{{yesno-no|{{{show-esc|}}}}}|yes|&nbsp;{{legend inline|#D7E0FF|Lead byte}}|}}&nbsp;{{legend inline|#D0D0D0|undefined}}{{#if:{{{graybox|}}}|&nbsp;{{legend inline||border=medium solid gray|{{{graybox}}} }}|}}{{#if:{{{greenbox|}}}|&nbsp;{{legend inline||border=medium solid green|{{{greenbox}}} }}|}}<noinclude>{{Documentation|content=
 
This template renders a color legend for character set tables. To render actual colored cells, use templates from [[:Category:Character set table templates]].
 
This template renders a color legend for character set tables. To render actual colored cells, use templates from [[:Category:Character set table templates]].
  

Revision as of 07:07, 12 August 2019

  Letter   Number   Punctuation   Symbol   Other   undefined

Template documentation

This template renders a color legend for character set tables. To render actual colored cells, use templates from Category:Character set table templates.