Module:Interval edo approximation: Difference between revisions
No edit summary |
defaulted tables to collapsed |
||
| Line 143: | Line 143: | ||
-- Build the wikitable | -- Build the wikitable | ||
-- mw-collapsible: adds [hide] toggle button | -- mw-collapsible: adds [hide] toggle button | ||
-- mw-collapsed: table defaults to collapsed | |||
-- sortable: makes columns sortable by clicking headers | -- sortable: makes columns sortable by clicking headers | ||
local output = {} | local output = {} | ||
table.insert(output, '{| class="wikitable center-all mw-collapsible sortable"') | table.insert(output, '{| class="wikitable center-all mw-collapsible mw-collapsed sortable"') | ||
-- Calculate the precise ratio in cents for the caption | -- Calculate the precise ratio in cents for the caption | ||
| Line 153: | Line 154: | ||
table.insert(output, '|+ style="font-size: 105%;" | ' | table.insert(output, '|+ style="font-size: 105%;" | ' | ||
.. string.format('Edo approximations for %s (%.2f{{c}})<br /><span style="font-size: 0.75em;">\'\'≤ %dedo, relative error ≤ %g%%\'\'</span>', | .. string.format('Edo approximations for %s (%.2f{{c}})<br /><span style="font-size: 0.75em;">\'\'≤ %dedo, relative error ≤ %g%%\'\'</span>', | ||
display_name, ratio_cents, max_edo, tolerance)) | display_name, ratio_cents, max_edo, tolerance)) | ||
table.insert(output, '|-') | table.insert(output, '|-') | ||