Diferencia entre revisiones de «Módulo:Crafting»

Xstela (discusión | contribs.)
Sin resumen de edición
Xstela (discusión | contribs.)
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 = 'Nombre !! '
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 .. 'Ingredientes !! ' .. recipeClass .. ' Receta de [[Fabricación]]' .. description,
'! ' .. name .. 'Ingredients !! ' .. recipeClass .. ' [[Crafting]] recipe' .. description,
'|-'
'|-'
}, '\n' )
}, '\n' )
Línea 86: Línea 86:
end
end
nameCell = table.concat( links, '&nbsp;o<br>' )
nameCell = table.concat( links, '&nbsp;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 = '&nbsp;o'
separator = '&nbsp;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:Proximamente]]' )
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