Diferencia entre revisiones de «Módulo:Crafting»

MinedNugget (discusión | contribs.)
Sin resumen de edición
MinedNugget (discusión | contribs.)
Sin resumen de edición
Línea 77: Línea 77:
end
end
if parts.name:find( '^Any ' ) then
if parts.name:find( '^Cualquier ' ) then
table.insert( links, 'Any [[' .. link .. parts.name:sub( 4 ) .. ']]' )
table.insert( links, 'Cualquier [[' .. link .. parts.name:sub( 4 ) .. ']]' )
else
else
table.insert( links, '[[' .. link .. parts.name .. ']]' )
table.insert( links, '[[' .. link .. parts.name .. ']]' )
Línea 149: Línea 149:
end
end
if name:find( '^Any ' ) then
if name:find( '^Cualquier ' ) then
table.insert( ingredientsCell, 'Any [[' .. link .. name:sub( 5 ) .. ']]' .. separator )
table.insert( ingredientsCell, 'Cualquier [[' .. link .. name:sub( 5 ) .. ']]' .. separator )
else
else
table.insert( ingredientsCell, '[[' .. link .. name .. ']]' .. separator )
table.insert( ingredientsCell, '[[' .. link .. name .. ']]' .. separator )
Línea 267: Línea 267:
v = v:sub( 2 )
v = v:sub( 2 )
if not v:find( ':' ) then
if not v:find( ':' ) then
if v == 'Any Tinte' then
if v == 'Cualquier Tinte' then
for _, tinte in ipairs( {
for _, tinte in ipairs( {
'Tinte Naranja', 'Tinte Magenta', 'Tinte Azul Claro', 'Tinte Amarillo', 'Tinte Verde Lima',
'Tinte Naranja', 'Tinte Magenta', 'Tinte Azul Claro', 'Tinte Amarillo', 'Tinte Verde Lima',
Línea 276: Línea 276:
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( ' 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( ' Cristal Tintado$' ) then v = 'Cristal Tintado'
elseif v:find( ' Stained Glass Pane$' ) then v = 'Stained Glass Pane'
elseif v:find( ' Panel de Cristal Tintado$' ) then v = 'Panel de Cristal Tintado'
elseif v:find( ' Wool$' ) then v = 'Wool'
elseif v:find( ' Lana$' ) then v = 'Lana'
elseif v:find( ' Sandstone$' ) then v = 'Sandstone'
elseif v:find( ' Arenisca$' ) then v = 'Arenisca'
elseif v:find( ' Stairs$' ) then v = 'Stairs'
elseif v:find( ' Escaleras$' ) then v = 'Escaleras'
elseif v:find( ' Slab$' ) then v = 'Slab'
elseif v:find( ' Losa$' ) then v = 'Losa'
elseif v:find( ' Pressure Plate$' ) then v = 'Pressure Plate'
elseif v:find( ' Placa de Presión$' ) then v = 'Placa de Presión'
elseif v:find( ' Tulip$' ) then v = 'Tulip'
elseif v:find( ' Tulipán$' ) then v = 'Tulipán'
elseif v:find( ' Firework Star$' ) then v = 'Firework Star'
elseif v:find( ' Estrella de Fuegos Artificiales$' ) then v = 'Estrella de Fuegos Artificiales'
elseif v:find( ' Stone Bricks$' ) then v = 'Stone Bricks'
elseif v:find( ' Ladrillos de Piedra$' ) then v = 'Ladrillos de Piedra'
elseif v:find( ' Quartz Block$' ) then v = 'Block of Quartz'
elseif v:find( ' Bloques de Cuarzo$' ) then v = 'Bloque de Cuarzo'
elseif v:find( ' Andesite$' ) then v = 'Andesite'
elseif v:find( ' Andesita$' ) then v = 'Andesite'
elseif v:find( ' Diorite$' ) then v = 'Diorite'
elseif v:find( ' Diorita$' ) then v = 'Diorite'
elseif v:find( ' Granite$' ) then v = 'Granite'
elseif v:find( ' Granito$' ) then v = 'Granite'
end
end