Difference between revisions of "Template:Td"
From Maths
m (Template subpage has lower-case t) |
m (Trying plural version for 4 bits) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{td/template|1={{{1|}}}|2={{{2|}}}}}</includeonly><noinclude>: MEANING: '''TABLE DATA''' | + | <includeonly>{{#ifeq:"{{{1|}}}"|bits<!-- |
| + | -->|<!-- BITS (PLURAL) CASE | ||
| + | --> | ||
| + | {{#if:{{{5|}}}|{{td/template|bit|{{{5|}}}}}| | ||
| + | {{#if:{{{4|}}}|{{td/template|bit|{{{4|}}}}}| | ||
| + | {{#if:{{{3|}}}|{{td/template|bit|{{{3|}}}}}| | ||
| + | {{#if:{{{2|}}}|{{td/template|bit|{{{2|}}}}}| | ||
| + | <!-- closing of ifs: (2 groups of 2, hence 4 braces) -->}}}}<!-- -->}}}}<!-- | ||
| + | -->|<!-- (Not special case)<!-- | ||
| + | -->{{td/template|1={{{1|}}}|2={{{2|}}}}}<!-- | ||
| + | -->}}</includeonly><noinclude>: MEANING: '''TABLE DATA''' | ||
:::* Created [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 11:13, 14 August 2018 (UTC) | :::* Created [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 11:13, 14 August 2018 (UTC) | ||
__TOC__ | __TOC__ | ||
Revision as of 12:01, 14 August 2018
Purpose
Meaning table data this is used for filling in "standard" cell types. The motivation is on the hexadecimal page where we want to represent binary, using a cell for each bit, some colours would be nice, so {{td|bit|0}} and {{td|bit|1}} shall be the first the "td" template supports.
Sample
| X | {{td|bit|X}} (w/ comment) | |
|---|---|---|
| 1 | 1 | Long comment to offset the width of the heading so we can see the real form of the template |
| 0 | 0 | |
| Z | 0 | Test of: {{/template|bit|Z}} |
| Normal | ||
| Explicit normal | ||
(footer)