Editing Module:Recipe
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 43: | Line 43: | ||
end | end | ||
local function addUseCategory(category, name | local function addUseCategory(category, name, sort) | ||
if not name or tostring(name) == '' then | |||
return | |||
end | |||
if sort then | |||
category:wikitext('[[Category:Uses ', name, '|', sort, ']]') | |||
else | |||
category:wikitext('[[Category:Uses ', name, ']]') | |||
end | |||
end | end | ||
| Line 97: | Line 87: | ||
category, | category, | ||
sName, | sName, | ||
padLeft(tostring(sAmt or ''):gsub('%D', ''), 10) | padLeft(tostring(sAmt or ''):gsub('%D', ''), 10) | ||
) | ) | ||
| Line 400: | Line 389: | ||
local function renderCookingSplitTypeCard(category, body, ingredient) | local function renderCookingSplitTypeCard(category, body, ingredient) | ||
local qualityClass = getQualityClass(ingredient.quality) | |||
local container = body:tag('span') | local container = body:tag('span') | ||