Diferencia entre revisiones de «Módulo:Crafting»
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 40: | Línea 40: | ||
local description = '' | local description = '' | ||
if args.showname == '1' or multirow and args.showname ~= '0' then | if args.showname == '1' or multirow and args.showname ~= '0' then | ||
name = ' | name = 'Name !! ' | ||
f:callParserFunction( '#dplvar:set', 'craftingname', '1' ) | f:callParserFunction( '#dplvar:set', 'craftingname', '1' ) | ||
end | end | ||
| Línea 55: | Línea 55: | ||
header = table.concat( { | header = table.concat( { | ||
' {| class="wikitable ' .. class .. '"', | ' {| class="wikitable ' .. class .. '"', | ||
'! ' .. name .. ' | '! ' .. name .. 'Ingredients !! ' .. recipeClass .. ' [[Crafting]] recipe' .. description, | ||
'|-' | '|-' | ||
}, '\n' ) | }, '\n' ) | ||
| Línea 86: | Línea 86: | ||
end | end | ||
nameCell = table.concat( links, ' | nameCell = table.concat( links, ' or<br>' ) | ||
end | end | ||
end | end | ||
| Línea 141: | Línea 141: | ||
separator = '' | separator = '' | ||
elseif animatedIngredients[v] and not animatedIngredients[v].final then | elseif animatedIngredients[v] and not animatedIngredients[v].final then | ||
separator = ' | separator = ' or' | ||
end | end | ||
local mod = ( ingredients[v] or animatedIngredients[v] ).mod | local mod = ( ingredients[v] or animatedIngredients[v] ).mod | ||
| Línea 260: | Línea 260: | ||
if args.upcoming then | if args.upcoming then | ||
table.insert( categories, '[[Category: | table.insert( categories, '[[Category:Upcoming]]' ) | ||
end | end | ||
if args.type then | |||
table.insert( categories, '[[Category:' .. args.type .. ' recipe]]' ) | |||
end | |||
if args.ignoreusage ~= '1' then | if args.ignoreusage ~= '1' then | ||
for k, v in ipairs( ingredientKeys ) do | for k, v in ipairs( ingredientKeys ) do | ||