Content deleted Content added
Andreyyshore (talk | contribs) No edit summary |
Andreyyshore (talk | contribs) mNo edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 8:
return ""
end
return "[[" .. a .. "|" .. b:gsub(breakPattern, "]]<br>[[" .. a .. "|") .. "]]"
end)
splitLines(text:gsub("(.-)(" .. breakPattern .. ")", splitLines))
for k, v in pairs(t) do
t[k] = (
mw.ustring.gsub(
:gsub("([^'%[%]])", "%1<br>")▼
)
:gsub("(''+)<br>", "%1")
:gsub("(%[%[+)<br>", "%1")
Line 22 ⟶ 27:
inBrackets = inBrackets:gsub("<br>", "") .. "|" .. inBrackets
else
stripped =
inBrackets = stripped ..
end
return "[[" .. inBrackets .. "]]"
Line 41 ⟶ 46:
["border"] = "none",
["padding"] = 0,
["vertical-align"] = vertAlign,
["width"] = "1em",
["max-width"] = "1em"
})
:wikitext(v)
Line 85 ⟶ 92:
wikiText = wikiText .. " unsortable"
end
wikiText = wikiText .. "\" style=\"line-height
if stack == "" then
wikiText = wikiText .. "99"
else
wikiText = wikiText .. "120"
end
wikiText = wikiText .. "%;vertical-align:" .. vertAlign .. ";padding:"
if sortPadding == "" then
wikiText = wikiText .. ".4em"
Line 92 ⟶ 104:
wikiText = wikiText .. "21px"
end
if (stack ~= "" and text:find(breakPattern) ~= nil) then
wikiText = wikiText .. " .4em .2em;background-position:50% .4em !important;"▼
wikiText = wikiText .. " .2em"
else
wikiText = wikiText .. " .4em"
end
if stack == "" then
wikiText = wikiText .. "min-width:" .. width .. ";max-width:" .. width ..
|