266
edits
(Added edge case mostly for tempos but could be anything really) |
(Fixing the preprocess case...?) |
||
| Line 41: | Line 41: | ||
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 | elseif resultExt == "preprocess" then | ||
table.insert(result, | 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">'.. frame:preprocess(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>') | ||