Content deleted Content added
No edit summary |
No edit summary |
||
Line 186:
colour = string.match(colour, '#') and colour or '#' .. colour
end
local linkedBox
for _, v in ipairs({'link', 'ldot', 'lsquare', 'route', 'croute', 'xroute'}) do
if style ==
end
if linkedBox then
root:wikitext(string.match(lineTitle, '%[%[.+|'))
Line 210 ⟶ 209:
:css('margin', '1px')
end
for _, v in ipairs({'dot', 'ldot', 'square', 'lsquare'}) do
if style == v then box:css('
end
for i, v in ipairs({'dot', 'ldot', 'square', 'lsquare', 'xroute'}) do
if style == v then box:css('
if i == 5 then box:css('background-color', colour) end▼
▲ box:css('background-color', colour)
end
for _, v in ipairs({nil, 'link', 'inline', 'yes', 'box'}) do
if style == v then box:css('border', '1px solid black') break end▼
box▼
:css('border', '.075em solid ' .. (▼
typeData and typeData['border color'] or▼
▲ box:css('border', '1px solid black')
lineData and lineData['border color'] or▼
colour▼
▲ box
)▼
▲ :css('border', '.075em solid ' .. (
▲ typeData and typeData['border color'] or
▲ lineData and lineData['border color'] or
▲ colour
)
▲ )
:css('padding', '0 .3em')
if style
box:css('border-radius', '.5em')
end
end
end
Line 270 ⟶ 256:
end
if linkedBox then root:wikitext(']]') end
for _, v in ipairs({nil, 'inline', 'yes', 'small', 'dot', 'square'}) do
if style == v then div:wikitext(' ', lineTitle) break end▼
▲ div:wikitext(' ', lineTitle)
end
return root
|