Template:7seg/doc

From Omniversalis

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for 7seg

<templatedata>{ "description": "Embed SVG images of seven-segment characters", "params": {

 "1": {
   "label": "character",
   "description": "letter or digit to display with 7 segments, currently Latin and Arabic respectively only",
   "type": "string/line",
   "required": true
 },
 "2": {
   "label": "width",
   "description": "CSS pixel width of the image",
   "type": "string/line",
   "default": "60px",
   "required": false
 },
 "3": {
   "label": "code",
   "description": "override alphabetic code to use (abcdef from top clockwise, g in the middle)",
   "type": "string/line",
   "required": false
 }

}}</templatedata>

Example[edit]

0 1 2 3 4 5 6 7 8 9
A b C d E F

Note that the hexadecimal renderings are non-standard and require an explicit switch of parameter to use uppercase A, C, E, F but lowercase b & d.