Module:Vertical header: Difference between revisions
IE is dead
(Created page with "local p = {} function p._vertical_header(args) local text = args.text local maxWidth = args.maxWidth -- local stupidIEAlign = "" local rows = 1 local width = 0 if maxWidth ~= "" then width = maxWidth else for eachMatch in text:gmatch("<[bB][rR] */? *>") do rows = rows + 1 end width = rows * 0.875 width = width .. "em" end local wikiText = "class = \"nowrap" local sortPadding = args.sortPadding if sortPadding == "" then wikiText = wikiText ....") |
mp>Dinoguy1000 (IE is dead) |
||
Line 5: | Line 5: | ||
local text = args.text | local text = args.text | ||
local maxWidth = args.maxWidth | local maxWidth = args.maxWidth | ||
local rows = 1 | local rows = 1 | ||
local width = 0 | local width = 0 | ||
Line 40: | Line 39: | ||
if vertAlign == "top" then | if vertAlign == "top" then | ||
normalAlign = "right" | normalAlign = "right" | ||
elseif vertAlign == "middle" then | elseif vertAlign == "middle" then | ||
normalAlign = "center" | normalAlign = "center" | ||
else | else | ||
normalAlign = "left" | normalAlign = "left" | ||
end | end | ||
wikiText = wikiText .. normalAlign .. " | wikiText = wikiText .. normalAlign .. ";" | ||
local style = args.style:gsub("\"", """) | local style = args.style:gsub("\"", """) |