Module:Recipe: Difference between revisions

test
No edit summary
 
(One intermediate revision by the same user not shown)
Line 48: Line 48:
end
end


if quality then  
if quality and tostring(quality) ~= '' then
category:wikitext('[[Category:Uses ', quality,'-Quality ', name)
if sort and tostring(sort) ~= '' then
category:wikitext('[[Category:Uses ', quality, '-Quality ', name, '|', sort, ']]')
else
category:wikitext('[[Category:Uses ', quality, '-Quality ', name, ']]')
end
 
return
end
end
if sort then
 
if sort and tostring(sort) ~= '' then
category:wikitext('[[Category:Uses ', name, '|', sort, ']]')
category:wikitext('[[Category:Uses ', name, '|', sort, ']]')
else
else