Diferencia entre revisiones de «Módulo:Crafting»
Sin resumen de edición |
m Revertidos los cambios de Xstela (disc.) a la última edición de MinedNugget |
||
| 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 = 'Nombre !! ' | ||
f:callParserFunction( '#dplvar:set', 'craftingname', '1' ) | f:callParserFunction( '#dplvar:set', 'craftingname', '1' ) | ||
end | end | ||
if args.showdescription == '1' then | if args.showdescription == '1' then | ||
description = ' !! class="unsortable" | | description = ' !! class="unsortable" | Descripcion' | ||
f:callParserFunction( '#dplvar:set', 'craftingdescription', '1' ) | f:callParserFunction( '#dplvar:set', 'craftingdescription', '1' ) | ||
end | end | ||
| Línea 55: | Línea 55: | ||
header = table.concat( { | header = table.concat( { | ||
' {| class="wikitable ' .. class .. '"', | ' {| class="wikitable ' .. class .. '"', | ||
'! ' .. name .. ' | '! ' .. name .. 'Ingredientes !! ' .. recipeClass .. ' Entrada » Salida' .. description, | ||
'|-' | '|-' | ||
}, '\n' ) | }, '\n' ) | ||
| Línea 86: | Línea 86: | ||
end | end | ||
nameCell = table.concat( links, ' | nameCell = table.concat( links, ' 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 = ' | separator = ' o' | ||
end | end | ||
local mod = ( ingredients[v] or animatedIngredients[v] ).mod | local mod = ( ingredients[v] or animatedIngredients[v] ).mod | ||
| Línea 172: | Línea 172: | ||
if args[8] then | if args[8] then | ||
-- ◼◼◼ ◼◼◼ | -- ◼◼◼ ◼◼◼ | ||
-- ◼◼◼ | -- ◼◼◼ O ◼◼◼ | ||
-- ◼◼◼ ◼◼◻ | -- ◼◼◼ ◼◼◻ | ||
newArgs.A3 = args[7] | newArgs.A3 = args[7] | ||
| Línea 188: | Línea 188: | ||
if args[5] then | if args[5] then | ||
-- ◻◻◻ ◻◻◻ | -- ◻◻◻ ◻◻◻ | ||
-- ◼◼◼ | -- ◼◼◼ O ◼◼◼ | ||
-- ◼◼◼ ◼◼◻ | -- ◼◼◼ ◼◼◻ | ||
newArgs.C2 = args[3] | newArgs.C2 = args[3] | ||
| Línea 202: | Línea 202: | ||
else | else | ||
-- ◻◻◻ ◻◻◻ | -- ◻◻◻ ◻◻◻ | ||
-- ◼◼◻ | -- ◼◼◻ O ◼◼◻ | ||
-- ◻◼◻ ◻◻◻ | -- ◻◼◻ ◻◻◻ | ||
newArgs.B3 = args[3] | newArgs.B3 = args[3] | ||
| Línea 260: | Línea 260: | ||
if args.upcoming then | if args.upcoming then | ||
table.insert( categories, '[[Category: | table.insert( categories, '[[Category:Proximamente]]' ) | ||
end | end | ||
| 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 == 'Sticky Piston' then v = 'Piston' | |||
elseif v == 'Red Mushroom' or v == 'Brown Mushroom' then v = 'Mushroom' | |||
elseif v == 'Red Sand' then v = 'Sand' | |||
elseif v == 'Charcoal' then v = 'Coal' | |||
elseif v:find( ' Wood$' ) then v = 'Wood' | |||
elseif v:find( ' Wood Planks$' ) then v = 'Wood Planks' | |||
elseif v:find( ' Stained Glass$' ) then v = 'Stained Glass' | |||
elseif v:find( ' Stained Glass Pane$' ) then v = 'Stained Glass Pane' | |||
elseif v:find( ' Wool$' ) then v = 'Wool' | |||
elseif v:find( ' Sandstone$' ) then v = 'Sandstone' | |||
elseif v:find( ' Stairs$' ) then v = 'Stairs' | |||
elseif v:find( ' Slab$' ) then v = 'Slab' | |||
elseif v:find( ' Pressure Plate$' ) then v = 'Pressure Plate' | |||
elseif v:find( ' Tulip$' ) then v = 'Tulip' | |||
elseif v:find( ' Firework Star$' ) then v = 'Firework Star' | |||
elseif v:find( ' Stone Bricks$' ) then v = 'Stone Bricks' | |||
elseif v:find( ' Quartz Block$' ) then v = 'Block of Quartz' | |||
elseif v:find( ' Andesite$' ) then v = 'Andesite' | |||
elseif v:find( ' Diorite$' ) then v = 'Diorite' | |||
elseif v:find( ' Granite$' ) then v = 'Granite' | |||
end | end | ||
table.insert( categories, '[[Category:Recetas que usan ' .. v .. ']]' ) | |||
end | end | ||
end | end | ||