Module:Ups and downs sharpness: Difference between revisions
Tristanbay (talk | contribs) trying to fix trailing curly brackets |
Tristanbay (talk | contribs) Fixed wrong symbol, messed with symbol sizes |
||
| Line 24: | Line 24: | ||
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| | tab = tab .. "[[File:Down narrow.svg|8px]][[File:Quip narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Up narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Quip narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Up narrow.svg|8px]][[File:Quid narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Down narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Quid narrow.svg|8px]]" | ||
end | end | ||
end | end | ||
| 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| | tab = tab .. "[[File:Up narrow.svg|8px]][[File:Quid narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Down narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Quid narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Down narrow.svg|8px]][[File:Quip narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Up narrow.svg|8px]]" | ||
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| | tab = tab .. "[[File:Quip narrow.svg|8px]]" | ||
end | end | ||
end | end | ||
| Line 81: | Line 81: | ||
tab = tab .. "[[File:Heji11.svg|12px]]" | tab = tab .. "[[File:Heji11.svg|12px]]" | ||
elseif math.ceil((i / sharp) - 0.5) == 2 then | elseif math.ceil((i / sharp) - 0.5) == 2 then | ||
tab = tab .. "[[File: | tab = tab .. "[[File:Heji4.svg|12px]]" | ||
end | end | ||
tab = tab .. " | tab = tab .. "}}\n" | ||
end | end | ||
tab = tab .. "|}" | tab = tab .. "|}" | ||