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 = 'Name !! '
name = 'Nombre !! '
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 .. 'Ingredients !! ' .. recipeClass .. ' [[Crafting]] recipe' .. description,
'! ' .. name .. 'Ingredientes !! ' .. recipeClass .. ' Receta de [[Fabricación]]' .. description,
'|-'
'|-'
}, '\n' )
}, '\n' )
Línea 86: Línea 86:
end
end
nameCell = table.concat( links, '&nbsp;or<br>' )
nameCell = table.concat( links, '&nbsp;o<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;or'
separator = '&nbsp;o'
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:Upcoming]]' )
table.insert( categories, '[[Category:Proximamente]]' )
end
end
        if args.type then
            table.insert( categories, '[[Category:' .. args.type .. ' recipe]]' )
        end
if args.ignoreusage ~= '1' then
if args.ignoreusage ~= '1' then
Línea 267: Línea 271:
v = v:sub( 2 )
v = v:sub( 2 )
if not v:find( ':' ) then
if not v:find( ':' ) then
if v == 'Any Dye' then
if v == 'Tintes' then
for _, dye in ipairs( {
for _, tinte in ipairs( {
'Orange Dye', 'Magenta Dye', 'Light Blue Dye', 'Dandelion Yellow', 'Lime Dye',
'Tinte Naranja', 'Tinte Magenta', 'Tinte Azul Claro', 'Tinte Amarillo', 'Tinte Verde Lima',
'Pink Dye', 'Gray Dye', 'Light Gray Dye', 'Cyan Dye', 'Purple Dye',
'Tinte Rosa', 'Tinte Gris', 'Tinte Gris Claro', 'Tinte Cian', 'Tinte Morado',
'Lapis Lazuli', 'Cocoa Beans', 'Cactus Green', 'Rose Red', 'Ink Sac'
'Lapislázuli', 'Semillas de Cacao', 'Tinte Verde', 'Tinte Rojo', 'Saco de Tinta'
} ) do
} ) do
table.insert( categories, '[[Category:Recipe using ' .. dye .. ']]' )
table.insert( categories, '[[Categoría:Recetas que usan ' .. tinte .. ']]' )
end
end
else
else
if v == 'Sticky Piston' then v = 'Piston'
if v == 'Pistón Adhesivo' then v = 'Pistón'
elseif v == 'Red Mushroom' or v == 'Brown Mushroom' then v = 'Mushroom'
elseif v == 'Champiñón Rojo' or v == 'Champiñón Marrón' then v = 'Champiñón'
elseif v == 'Red Sand' then v = 'Sand'
elseif v == 'Arena Rojiza' then v = 'Arena'
elseif v == 'Charcoal' then v = 'Coal'
elseif v == 'Carbón Vegetal' then v = 'Carbón'
elseif v:find( ' Wood$' ) then v = 'Wood'
elseif v:find( ' Tronco de Madera$' ) then v = 'Madera'
elseif v:find( ' Wood Planks$' ) then v = 'Wood Planks'
elseif v:find( ' Tablas de Madera$' ) then v = 'Tablas de Madera'
elseif v:find( ' Stained Glass$' ) then v = 'Stained Glass'
                        elseif v:find( ' Materiales$' ) then v = 'Materiales para Herramientas'
elseif v:find( ' Stained Glass Pane$' ) then v = 'Stained Glass Pane'
elseif v:find( ' Cristal Tintado$' ) then v = 'Cristal Tintado'
elseif v:find( ' Wool$' ) then v = 'Wool'
elseif v:find( ' Panel de Cristal Tintado$' ) then v = 'Panel de Cristal Tintado'
elseif v:find( ' Sandstone$' ) then v = 'Sandstone'
elseif v:find( ' Lana$' ) then v = 'Lana'
elseif v:find( ' Stairs$' ) then v = 'Stairs'
elseif v:find( ' Arenisca$' ) then v = 'Arenisca'
elseif v:find( ' Slab$' ) then v = 'Slab'
elseif v:find( ' Escaleras de Madera$' ) then v = 'Escaleras'
elseif v:find( ' Pressure Plate$' ) then v = 'Pressure Plate'
elseif v:find( ' Losa de Madera$' ) then v = 'Losas'
elseif v:find( ' Tulip$' ) then v = 'Tulip'
elseif v:find( ' Placa de Presión$' ) then v = 'Placa de Presión'
elseif v:find( ' Firework Star$' ) then v = 'Firework Star'
elseif v:find( ' Tulipán$' ) then v = 'Tulipán'
elseif v:find( ' Stone Bricks$' ) then v = 'Stone Bricks'
elseif v:find( ' Estrella de Fuegos Artificiales$' ) then v = 'Estrella de Fuegos Artificiales'
elseif v:find( ' Quartz Block$' ) then v = 'Block of Quartz'
elseif v:find( ' Ladrillos de Piedra$' ) then v = 'Ladrillos de Piedra'
elseif v:find( ' Andesite$' ) then v = 'Andesite'
elseif v:find( ' Bloques de Cuarzo$' ) then v = 'Bloque de Cuarzo'
elseif v:find( ' Diorite$' ) then v = 'Diorite'
elseif v:find( ' Andesita$' ) then v = 'Andesite'
elseif v:find( ' Granite$' ) then v = 'Granite'
elseif v:find( ' Diorita$' ) then v = 'Diorite'
elseif v:find( ' Granito$' ) then v = 'Granite'
end
end
table.insert( categories, '[[Category:Recipe using ' .. v .. ']]' )
table.insert( categories, '[[Categoría:Recetas que usan ' .. v .. ']]' )
end
end
end
end