Module:Ups and downs sharpness: Difference between revisions

Tristanbay (talk | contribs)
Changed sizes
Tristanbay (talk | contribs)
Increased symbol sizes
Line 19: Line 19:
end
end
end
end
tab = tab .. "|-\n!Sharp symbol\n|rowspan=\"2\"|[[File:Heji18.svg|12px]]\n"
tab = tab .. "|-\n!Sharp symbol\n|rowspan=\"2\"|[[File:Heji18.svg|112px]]\n"
for i = 1, sharp * 2 + 1 do
for i = 1, sharp * 2 + 1 do
tab = tab .. "|{{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
tab = tab .. "[[File:Down narrow.svg|8px]][[File:Quip narrow.svg|8px]]"
tab = tab .. "[[File:Down narrow.svg|12px]][[File:Quip narrow.svg|12px]]"
else
else
for j = 1, (i - (sharp * math.floor(i / sharp))) % 5 do
for j = 1, (i - (sharp * math.floor(i / sharp))) % 5 do
tab = tab .. "[[File:Up narrow.svg|8px]]"
tab = tab .. "[[File:Up narrow.svg|12px]]"
end
end
end
end
for j = 1, math.floor((i - (sharp * math.floor(i / sharp))) / 5) do
for j = 1, math.floor((i - (sharp * math.floor(i / sharp))) / 5) do
tab = tab .. "[[File:Quip narrow.svg|8px]]"
tab = tab .. "[[File:Quip narrow.svg|12px]]"
end
end
else
else
if ((sharp * math.ceil(i / sharp)) - i) % 5 == 4 then
if ((sharp * math.ceil(i / sharp)) - i) % 5 == 4 then
tab = tab .. "[[File:Up narrow.svg|8px]][[File:Quid narrow.svg|8px]]"
tab = tab .. "[[File:Up narrow.svg|12px]][[File:Quid narrow.svg|12px]]"
else
else
for j = 1, ((sharp * math.ceil(i / sharp)) - i) % 5 do
for j = 1, ((sharp * math.ceil(i / sharp)) - i) % 5 do
tab = tab .. "[[File:Down narrow.svg|8px]]"
tab = tab .. "[[File:Down narrow.svg|12px]]"
end
end
end
end
for j = 1, math.floor(((sharp * math.ceil(i / sharp)) - i) / 5) do
for j = 1, math.floor(((sharp * math.ceil(i / sharp)) - i) / 5) do
tab = tab .. "[[File:Quid narrow.svg|8px]]"
tab = tab .. "[[File:Quid narrow.svg|12px]]"
end
end
end
end
if math.ceil((i / sharp) - 0.5) == 1 then
if math.ceil((i / sharp) - 0.5) == 1 then
tab = tab .. "[[File:Heji25.svg|12px]]"
tab = tab .. "[[File:Heji25.svg|16px]]"
elseif math.ceil((i / sharp) - 0.5) == 2 then
elseif math.ceil((i / sharp) - 0.5) == 2 then
tab = tab .. "[[File:Heji32.svg|16px]]"
tab = tab .. "[[File:Heji32.svg|24px]]"
end
end
tab = tab .. "}}\n"
tab = tab .. "}}\n"
Line 57: Line 57:
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
tab = tab .. "[[File:Up narrow.svg|8px]][[File:Quid narrow.svg|8px]]"
tab = tab .. "[[File:Up narrow.svg|12px]][[File:Quid narrow.svg|12px]]"
else
else
for j = 1, (i - (sharp * math.floor(i / sharp))) % 5 do
for j = 1, (i - (sharp * math.floor(i / sharp))) % 5 do
tab = tab .. "[[File:Down narrow.svg|8px]]"
tab = tab .. "[[File:Down narrow.svg|12px]]"
end
end
end
end
for j = 1, math.floor((i - (sharp * math.floor(i / sharp))) / 5) do
for j = 1, math.floor((i - (sharp * math.floor(i / sharp))) / 5) do
tab = tab .. "[[File:Quid narrow.svg|8px]]"
tab = tab .. "[[File:Quid narrow.svg|12px]]"
end
end
else
else
if ((sharp * math.ceil(i / sharp)) - i) % 5 == 4 then
if ((sharp * math.ceil(i / sharp)) - i) % 5 == 4 then
tab = tab .. "[[File:Down narrow.svg|8px]][[File:Quip narrow.svg|8px]]"
tab = tab .. "[[File:Down narrow.svg|12px]][[File:Quip narrow.svg|12px]]"
else
else
for j = 1, ((sharp * math.ceil(i / sharp)) - i) % 5 do
for j = 1, ((sharp * math.ceil(i / sharp)) - i) % 5 do
tab = tab .. "[[File:Up narrow.svg|8px]]"
tab = tab .. "[[File:Up narrow.svg|12px]]"
end
end
end
end
for j = 1, math.floor(((sharp * math.ceil(i / sharp)) - i) / 5) do
for j = 1, math.floor(((sharp * math.ceil(i / sharp)) - i) / 5) do
tab = tab .. "[[File:Quip narrow.svg|8px]]"
tab = tab .. "[[File:Quip narrow.svg|12px]]"
end
end
end
end
if math.ceil((i / sharp) - 0.5) == 1 then
if math.ceil((i / sharp) - 0.5) == 1 then
tab = tab .. "[[File:Heji11.svg|12px]]"
tab = tab .. "[[File:Heji11.svg|16px]]"
elseif math.ceil((i / sharp) - 0.5) == 2 then
elseif math.ceil((i / sharp) - 0.5) == 2 then
tab = tab .. "[[File:Heji4.svg|20px]]"
tab = tab .. "[[File:Heji4.svg|30px]]"
end
end
tab = tab .. "}}\n"
tab = tab .. "}}\n"