Module:If preview/sandbox: Difference between revisions

Content deleted Content added
compute once per page
check for exist of args.1
Line 40:
if not pv.preview then return '' end
local warning = frame.args[1] and frame.args[1]:match('^%s*(.-)%s*$') or ''
if warning == '' then
warning = 'The template has no warning text. Please add a warning.'