Difference between revisions of "Template:Td/template"

From Maths
Jump to: navigation, search
m (Making width match height (1.5em according to css))
m (New width based on golden ratio (gratio * 1.5 (height) = width))
Line 5: Line 5:
 
         -->{{#ifeq:"1"|"{{{2|}}}"<!--
 
         -->{{#ifeq:"1"|"{{{2|}}}"<!--
 
           -->|<!-- IF "1" BIT
 
           -->|<!-- IF "1" BIT
               -->{{!}} style="background:#BDF9D4;text-align:center;width:1.5em;" {{!}} {{m|1}} <!--
+
               -->{{!}} style="background:#BDF9D4;text-align:center;width:0.92705098312em;" {{!}} {{m|1}} <!--
 
           -->|<!-- ELSE (presumably zero)
 
           -->|<!-- ELSE (presumably zero)
               -->{{!}} style="background:#E0A6A7;text-align:center;width:1.5em;" {{!}} {{m|0}} <!--
+
               -->{{!}} style="background:#E0A6A7;text-align:center;width:0.92705098312em;" {{!}} {{m|0}} <!--
 
         -->}}<!--
 
         -->}}<!--
 
     -->|<!-- ELSE ({{{1}}} != BIT)  
 
     -->|<!-- ELSE ({{{1}}} != BIT)  

Revision as of 11:33, 14 August 2018

WTF?

Notes

  • TODO: Expand to use the Template data namespace
  • TODO: Expand to use any other TD-like templates that exist
  • TODO: Can this be generalised to a format? This just being the format for tables?

Changelog

Changelog transclusion

Template:Td/Changelog