Template:7seg/doc

From Omniversalis
Revision as of 03:09, 18 July 2018 by en>Centrist16 (Created page with "{{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> File:7 segment display...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TemplateData

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

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.