Module:Ups and downs sharpness: Difference between revisions

Tristanbay (talk | contribs)
Shrunk ups and downs symbols
Tristanbay (talk | contribs)
Removed nowrap thing for now
Line 21: Line 21:
tab = tab .. "|-\n!Sharp symbol\n|rowspan=\"2\"|[[File:Heji18.svg|16px]]\n"
tab = tab .. "|-\n!Sharp symbol\n|rowspan=\"2\"|[[File:Heji18.svg|16px]]\n"
for i = 1, sharp * 2 + 1 do
for i = 1, sharp * 2 + 1 do
tab = tab .. "|{{nowrap|"
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 50: Line 50:
tab = tab .. "[[File:Heji32.svg|21px]]"
tab = tab .. "[[File:Heji32.svg|21px]]"
end
end
tab = tab .. "}}\n"
tab = tab .. "\n"
end
end
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 .. "|{{nowrap|"
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:
tab = tab .. "[[File:Heji4.svg|27px]]"
tab = tab .. "[[File:Heji4.svg|27px]]"
end
end
tab = tab .. "}}\n"
tab = tab .. "\n"
end
end
tab = tab .. "|}"
tab = tab .. "|}"