Abuse filter editor, Bureaucrats, Check users, Interface administrators, Staff, Suppressors, Administrators, Translation Reviewer
2,197
edits
(try adding url again) |
(replace callParserFunction for #qrlite with expandTemplate for Template:Qrlite) |
||
Line 41: | Line 41: | ||
local url = args['url' .. tostring(v)] | local url = args['url' .. tostring(v)] | ||
if name and url then | if name and url then | ||
local qr = frame: | local qr = frame:expandTemplate( { title = 'qrlite', args = { url, format = 'png', margin = '3' } } ) | ||
table.insert(sections, {name, '<p class="hb-qrcode-image">'..qr..'</p><p class="hb-qrcode-link">['..url..' '..url..']</p>'}) | table.insert(sections, {name, '<p class="hb-qrcode-image">'..qr..'</p><p class="hb-qrcode-link">['..url..' '..url..']</p>'}) | ||
end | end |