Template:7seg: Difference between revisions
en>Centrist16 (Created page with "Image:7-segment_{{#if:{{{3|}}} |{{{3}}} |{{#switch:{{{1}}} |0=abcdef|0*=cdeg |1=bc|1*=abc|1#=ef |2=abdeg|2*=abdg |3=abcdg|3*=acdg |4=bcfg|4*=abcg|4#=abcfg |5=acdfg|5*=acdg |...") |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(No difference)
|
Latest revision as of 19:07, 10 May 2022
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]
- Note that the hexadecimal renderings are non-standard and require an explicit switch of parameter to use uppercase
A
,C
,E
,F
but lowercaseb
&d
.