Module:Ups and downs sharpness: Difference between revisions
Tristanbay (talk | contribs) No edit summary |
Tristanbay (talk | contribs) checking to see what it returns as plain text |
||
| Line 18: | Line 18: | ||
tab = tab .. "|-\n!Sharp symbol\n|rowspan=\"2\"|[[File:Heji18.svg|15px]]\n" | tab = tab .. "|-\n!Sharp symbol\n|rowspan=\"2\"|[[File:Heji18.svg|15px]]\n" | ||
for i = 1, sharp * 2 + 1 do | for i = 1, sharp * 2 + 1 do | ||
tab = tab .. " | tab = tab .. "|" | ||
if ((i - (sharp * math.floor(i / sharp))) / sharp) > math.ceil(((i - (sharp * math.floor(i / sharp))) / sharp) - 0.5) then | if ((i - (sharp * math.floor(i / sharp))) / sharp) > math.ceil(((i - (sharp * math.floor(i / sharp))) / sharp) - 0.5) then | ||
if (i - (sharp * math.floor(i / sharp))) % 5 == 4 then | if (i - (sharp * math.floor(i / sharp))) % 5 == 4 then | ||
| Line 51: | Line 51: | ||
tab = tab .. "|-\n!Flat symbol\n" | tab = tab .. "|-\n!Flat symbol\n" | ||
for i = 1, sharp * 2 + 1 do | for i = 1, sharp * 2 + 1 do | ||
tab = tab .. " | tab = tab .. "|" | ||
if ((i - (sharp * math.floor(i / sharp))) / sharp) > math.ceil(((i - (sharp * math.floor(i / sharp))) / sharp) - 0.5) then | if ((i - (sharp * math.floor(i / sharp))) / sharp) > math.ceil(((i - (sharp * math.floor(i / sharp))) / sharp) - 0.5) then | ||
if (i - (sharp * math.floor(i / sharp))) % 5 == 4 then | if (i - (sharp * math.floor(i / sharp))) % 5 == 4 then | ||
| Line 83: | Line 83: | ||
end | end | ||
tab = tab .. "|}" | tab = tab .. "|}" | ||
return tab | return "<pre>" .. tab .. "</pre>" | ||
end | end | ||
return p | return p | ||