Module:Ups and downs sharpness: Difference between revisions

Tristanbay (talk | contribs)
No edit summary
Tristanbay (talk | contribs)
No edit summary
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 .. "|<span>{{nowrap|"
tab = tab .. "|{{nowrap|"
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 47: Line 47:
tab = tab .. "&#x202F;[[File:Heji32.svg|21px]]"
tab = tab .. "&#x202F;[[File:Heji32.svg|21px]]"
end
end
tab = tab .. "</span>}}\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 .. "|<span>{{nowrap|"
tab = tab .. "|{{nowrap|"
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 80: Line 80:
tab = tab .. "&#x202F;[[File:Heji4.svg|27px]]"
tab = tab .. "&#x202F;[[File:Heji4.svg|27px]]"
end
end
tab = tab .. "</span>}}\n"
tab = tab .. "\n"
end
end
tab = tab .. "|}"
tab = tab .. "|}"