Module:Infobox: Difference between revisions

Added edge case mostly for tempos but could be anything really
mNo edit summary
(Added edge case mostly for tempos but could be anything really)
Line 40: Line 40:
             elseif resultExt == "expanded" or resultExt == "collapsed" then
             elseif resultExt == "expanded" or resultExt == "collapsed" then
                 table.insert(result, '<div class="infobox-head infobox-wide mw-collapsible mw-'.. resultExt ..'" style="background:'.. c1 ..'; color:'.. c2 ..'; padding: .25rem">'.. resultSection ..'<div class="infobox-cell infobox-collapsible mw-collapsible-content style="padding: .25rem">'.. resultForm ..'</div></div>')
                 table.insert(result, '<div class="infobox-head infobox-wide mw-collapsible mw-'.. resultExt ..'" style="background:'.. c1 ..'; color:'.. c2 ..'; padding: .25rem">'.. resultSection ..'<div class="infobox-cell infobox-collapsible mw-collapsible-content style="padding: .25rem">'.. resultForm ..'</div></div>')
            elseif resultExt == "preprocess" then
                table.insert(result, frame:preprocess('<div class="infobox-head infobox-wide mw-collapsible mw-'.. resultExt ..'" style="background:'.. c1 ..'; color:'.. c2 ..'; padding: .25rem">'.. resultSection ..'<div class="infobox-cell infobox-collapsible mw-collapsible-content style="padding: .25rem">'.. resultForm ..'</div></div>'))
             else
             else
                 table.insert(result, '<div class="infobox-head infobox-'.. resultExt ..'" style="background:'.. c1 ..'; color:'.. c2 ..'; padding: .25rem">'.. resultSection ..'</div><div class="infobox-cell infobox-'.. resultExt ..'" style="padding: .25rem">'.. resultForm ..'</div>')
                 table.insert(result, '<div class="infobox-head infobox-'.. resultExt ..'" style="background:'.. c1 ..'; color:'.. c2 ..'; padding: .25rem">'.. resultSection ..'</div><div class="infobox-cell infobox-'.. resultExt ..'" style="padding: .25rem">'.. resultForm ..'</div>')