Content deleted Content added
No edit summary |
No edit summary |
||
Line 181:
function p._box(args, frame)
local root = mw.html.create('div')
local colour, lineTitle = p._color(args, frame), p._line(args, frame)▼
local style = args.style or args.inline
▲ local colour, lineTitle = p._color(args, frame), p._line(args, frame)
if colour then
colour = string.match(colour, '#') and colour or '#' .. colour
end
if args.line then
args.line =
dig(data, 'lines', args.line) and args.line or
dig(data, 'aliases', args.line)
end
local box = mw.html.create('span')
Line 258 ⟶ 263:
['square'] = '■',
['lsquare'] = '■',
['route'] =
['croute'] =
['xroute'] =
}
box:wikitext(boxText[style] or string.rep(' ',1))
|