Module:Interval edo approximation: Difference between revisions

Pailiaq (talk | contribs)
No edit summary
Overthink (talk | contribs)
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;">\'\'&le;&nbsp;%dedo, relative error &le;&nbsp;%g%%\'\'</span>',
     .. string.format('Edo&nbsp;approximations&nbsp;for&nbsp;%s (%.2f{{c}})<br /><span style="font-size: 0.75em;">\'\'&le;&nbsp;%dedo,&nbsp;relative&nbsp;error&nbsp;&le;&nbsp;%g%%\'\'</span>',
         display_name, ratio_cents, max_edo, tolerance))
         display_name, ratio_cents, max_edo, tolerance))
     table.insert(output, '|-')
     table.insert(output, '|-')