Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
caps for first character
Adding tracking category to retracted works
Line 518:
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (expand_args, ' |') .. '}}'), '</code>'})
end
local opt_cat = ''
 
if getValue( {"P5824", ps = 1, qid = qid} ) then
return frame:expandTemplate{title = 'citation', args = citeq_args} -- render the template
opt_cat = '[[:Category:Cite Q - cites retracted work]]'
end
return frame:expandTemplate{title = 'citation', args = citeq_args} .. opt_cat -- render the template
end