Module:Item Usage: Difference between revisions
No edit summary |
No edit summary |
||
| Line 127: | Line 127: | ||
end | end | ||
-- Multiple kitchenware | -- Multiple kitchenware: | ||
-- |kitchenware_1 = | -- |kitchenware_1 = | ||
-- |kitchenware_2 = | -- |kitchenware_2 = | ||
| Line 406: | Line 406: | ||
tr:tag('th'):wikitext('Item') | tr:tag('th'):wikitext('Item') | ||
tr:tag('th'):wikitext('Craft Type') | tr:tag('th'):wikitext('Craft Type') | ||
if showKitchenware then | if showKitchenware then | ||
tr:tag('th'):wikitext('Kitchenware') | tr:tag('th'):wikitext('Kitchenware') | ||
end | end | ||
tr:tag('th'):wikitext(craftType == 'Furnishing Set' and 'Components' or 'Recipe') | |||
for page, recipes in lib.spairs(valids) do | for page, recipes in lib.spairs(valids) do | ||
| Line 450: | Line 451: | ||
:css{['text-align'] = 'center'} | :css{['text-align'] = 'center'} | ||
:wikitext('[[', recipe[Rlib.sTypeArg], ']]') | :wikitext('[[', recipe[Rlib.sTypeArg], ']]') | ||
if showKitchenware then | if showKitchenware then | ||
| Line 463: | Line 460: | ||
end | end | ||
end | end | ||
local ingredients = renderRecipeIngredients(recipe) | |||
tr:tag('td'):wikitext(table.concat(ingredients, '<br>')) | |||
end | end | ||
end | end | ||