Module:Recipe: Difference between revisions

No edit summary
No edit summary
 
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 quality and sort then
 
category:wikitext('[[Category:Uses ', quality,'-Quality ', name, '|', sort, ']]')
if sort and tostring(sort) ~= '' then
end
if sort then
category:wikitext('[[Category:Uses ', name, '|', sort, ']]')
category:wikitext('[[Category:Uses ', name, '|', sort, ']]')
else
else