Module:Sandbox/Andreyyshore/Vertical header: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
local p = {}
 
function p.stack(str, vertAlign, noBold)
local t = {}
local breakPattern = "<[bB][rR] */? *>"
Line 30:
)
end
if #t == 1 then return t[1] end
return t[1]
end
local dom1 = mw.html.create("tr")
if noBold ~= "" then dom1:css("font-weight", "normal") end
local dom2
for _, v in pairs(t) do
Line 100 ⟶ 99:
if stack == "" then
wikiText = wikiText .. frame:preprocess("{{writing-mode|v1}}{{Transform-rotate|180}}") ..
"-ms-transform: none \ ;padding-left:1px;text-align:"
if vertAlign == "top" then
normalAlign = "right"
Line 113 ⟶ 112:
else normalAlign = "center"
end
wikiText = wikiText .. "text-align:" .. normalAlign .. ";" -- text-align:" .. stupidIEAlign .. " \ ;"
wikiText = wikiText .. style .. "\">"
local textToAdd = text
if stack ~= "" then
textToAdd = p.stack(text, vertAlign, noBold)
end
if noBold == "" then