Module:FBI QR code: Difference between revisions
From Hacks Guide Wiki
More actions
m Ihaveahax moved page Module:FBI QR codes to Module:FBI QR code without leaving a redirect: match template name |
try manual p tags |
||
| (7 intermediate revisions by the same user not shown) | |||
| 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:callParserFunction('#qrlite', {url, format = 'svg', margin = '3'}) | ||
table.insert(sections, {name, '<p | table.insert(sections, {name, '<p>'..qr..frame:preprocess('<br>['..url..' '..url..']')..'</p>'}) | ||
end | end | ||
end | end | ||