Difference between revisions of "Template:Td"

From Maths
Jump to: navigation, search
m (Newline problem solved, cleaning up formatting (because now I can))
m (I'm making a new parameter to td/template - "nl" if 1 then it adds in newlines)
Line 2: Line 2:
 
     -->|<!-- BITS (PLURAL) CASE; nb :- we assume we have a {{{2}}}
 
     -->|<!-- BITS (PLURAL) CASE; nb :- we assume we have a {{{2}}}
 
         -->
 
         -->
{{td/template|bit|{{{2|}}}}}{{#if:{{{3|}}}|
+
{{td/template|bit|{{{2|}}}|nl=1}}{{#if:{{{3|}}}|
{{td/template|bit|{{{3|}}}}}{{#if:{{{4|}}}|
+
{{td/template|bit|{{{3|}}}|nl=1}}{{#if:{{{4|}}}|
{{td/template|bit|{{{4|}}}}}{{#if:{{{5|}}}|
+
{{td/template|bit|{{{4|}}}|nl=1}}{{#if:{{{5|}}}|
{{td/template|bit|{{{5|}}}}}|}}<!--
+
{{td/template|bit|{{{5|}}}|nl=1}}|}}<!--
 
-->|}}<!--
 
-->|}}<!--
 
-->|}}<!--
 
-->|}}<!--

Revision as of 12:18, 14 August 2018

MEANING: TABLE DATA
  • Created Alec (talk) 11:13, 14 August 2018 (UTC)

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

(footer)