Diferencia entre revisiones de «Módulo:Banner crafting»

Leynaf (discusión | contribs.)
Página creada con «local p = {} p.crafting = function( f ) local args = f:getParent().args local crafting = require( Module:Crafting ).table local dye = args[1] or mw.title.getCurren...»
 
Leynaf (discusión | contribs.)
Sin resumen de edición
 
Línea 6: Línea 6:
local dye = args[1] or mw.title.getCurrentTitle().text
local dye = args[1] or mw.title.getCurrentTitle().text
local dyeColours = {
local dyeColours = {
['Ink Sac'] = 'Black',
['Saco de tinta'] = 'Negro',
['Rose Red'] = 'Red',
['Tinte rojo'] = 'Rojo',
['Cactus Green'] = 'Green',
['Tinte verde'] = 'Verde',
['Cocoa Beans'] = 'Brown',
['Semillas de coco'] = 'marrón',
['Lapis Lazuli'] = 'Blue',
['Lapislázuli'] = 'Azul',
['Dandelion Yellow'] = 'Yellow',
['Tinte amarillo'] = 'Amarillo',
['Bone Meal'] = 'White'
['Polvo de hueso'] = 'Blanco'
}
}
local colour = dyeColours[dye] or dye:match( '^(.+) Dye$' )
local colour = dyeColours[dye] or dye:match( '^(.+) Dye$' )
local banner = 'Banner'
local banner = 'Banner'
if dye == 'Bone Meal' then
if dye == 'Polvo de hueso' then
banner = '[Banner]Light Gray Banner'
banner = '[Banner]Light Gray Banner'
end
end
Línea 37: Línea 37:
},
},
['Chief Fess'] = {
['Chief Fess'] = {
2, 2, 2,
2, 2, 2,
0, 0, 0,
    0, 0, 0,
0, 1, 0,
  0, 1, 0,
},
},
['Pale Dexter'] = {
['Pale Dexter'] = {
2, 0, 0,
2, 0, 0,
2, 0, 0,
2, 0, 0,
2, 1, 0,
2, 1, 0,
Línea 57: Línea 57:
},
},
['Fess'] = {
['Fess'] = {
0, 0, 0,
0, 0, 0,
2, 2, 2,
2, 2, 2,
0, 1, 0,
0, 1, 0,
},
},
['Bend'] = {
['Bend'] = {
2, 0, 0,
2, 0, 0,
0, 2, 0,
0, 2, 0,
0, 1, 2,
0, 1, 2,
},
},
['Bend Sinister'] = {
['Bend Sinister'] = {
0, 0, 2,
0, 0, 2,
0, 2, 0,
0, 2, 0,
2, 1, 0,
2, 1, 0,
},
},
['Paly'] = {
['Paly'] = {
2, 0, 2,
2, 0, 2,
2, 0, 2,
2, 0, 2,
0, 1, 0,
0, 1, 0,
},
},
['Saltire'] = {
['Saltire'] = {
2, 0, 2,
2, 0, 2,
0, 2, 0,
0, 2, 0,
2, 1, 2,
2, 1, 2,
},
},
['Cross'] = {
['Cross'] = {
0, 2, 0,
0, 2, 0,
2, 2, 2,
2, 2, 2,
1, 2, 0,
1, 2, 0,
},
},
['Per Bend Sinister'] = {
['Per Bend Sinister'] = {
2, 2, 0,
2, 2, 0,
2, 0, 0,
2, 0, 0,
0, 1, 0,
0, 1, 0,
},
},
['Per Bend'] = {
['Per Bend'] = {
0, 2, 2,
0, 2, 2,
0, 0, 2,
0, 0, 2,
0, 1, 0,
0, 1, 0,
},
},
['Per Bend Inverted'] = {
['Per Bend Inverted'] = {
0, 1, 0,
0, 1, 0,
2, 0, 0,
2, 0, 0,
2, 2, 0,
2, 2, 0,
},
},
['Per Bend Sinister Inverted'] = {
['Per Bend Sinister Inverted'] = {
0, 1, 0,
0, 1, 0,
0, 0, 2,
0, 0, 2,
0, 2, 2,
0, 2, 2,
},
},
['Per Pale'] = {
['Per Pale'] = {
2, 2, 0,
2, 2, 0,
2, 2, 1,
2, 2, 1,
2, 2, 0,
2, 2, 0,
},
},
['Per Pale Inverted'] = {
['Per Pale Inverted'] = {
0, 2, 2,
0, 2, 2,
1, 2, 2,
1, 2, 2,
0, 2, 2,
0, 2, 2,
},
},
['Per Fess'] = {
['Per Fess'] = {
2, 2, 2,
2, 2, 2,
2, 2, 2,
2, 2, 2,
0, 1, 0,
0, 1, 0,
},
},
['Per Fess Inverted'] = {
['Per Fess Inverted'] = {
0, 1, 0,
0, 1, 0,
2, 2, 2,
2, 2, 2,
2, 2, 2,
2, 2, 2,
},
},
['Base Dexter Canton'] = {
['Base Dexter Canton'] = {
0, 0, 0,
0, 0, 0,
0, 0, 0,
0, 0, 0,
2, 1, 0,
2, 1, 0,
},
},
['Base Sinister Canton'] = {
['Base Sinister Canton'] = {
0, 0, 0,
0, 0, 0,
0, 0, 0,
0, 0, 0,
0, 1, 2,
0, 1, 2,
},
},
['Chief Dexter Canton'] = {
['Chief Dexter Canton'] = {
2, 0, 0,
2, 0, 0,
0, 0, 0,
0, 0, 0,
0, 1, 0,
0, 1, 0,
},
},
['Chief Sinister Canton'] = {
['Chief Sinister Canton'] = {
Línea 148: Línea 148:
['Chevron'] = {
['Chevron'] = {
0, 0, 0,
0, 0, 0,
0, 2, 0,
0, 2, 0,
2, 1, 2,
2, 1, 2,
},
},
['Inverted Chevron'] = {
['Inverted Chevron'] = {
2, 0, 2,
2, 0, 2,
0, 2, 0,
0, 2, 0,
0, 1, 0,
0, 1, 0,
},
},
['Base Indented'] = {
['Base Indented'] = {
0, 0, 0,
0, 0, 0,
2, 1, 2,
2, 1, 2,
0, 2, 0,
0, 2, 0,
},
},
['Chief Indented'] = {
['Chief Indented'] = {
Línea 172: Línea 172:
},
},
['Lozenge'] = {
['Lozenge'] = {
0, 2, 0,
0, 2, 0,
2, 1, 2,
2, 1, 2,
0, 2, 0,
0, 2, 0,
},
},
['Bordure'] = {
['Bordure'] = {
2, 2, 2,
2, 2, 2,
2, 1, 2,
2, 1, 2,
2, 2, 2,
2, 2, 2,
},
},
['Gradient'] = {
['Gradient'] = {
2, 1, 2,
2, 1, 2,
0, 2, 0,
0, 2, 0,
0, 2, 0,
0, 2, 0,
},
},
['Base Gradient'] = {
['Base Gradient'] = {
0, 2, 0,
0, 2, 0,
0, 2, 0,
0, 2, 0,
2, 1, 2,
2, 1, 2,
},
},
}
}
local items = {
local items = {
['Bordure Indented'] = 'Vines',
['Bordure Indented'] = 'Enredadera',
['Field Masoned'] = 'Bricks',
['Field Masoned'] = 'Ladrillos',
['Creeper Charge'] = 'Creeper Head',
['Creeper Charge'] = 'Cabeza de Creeper',
['Skull Charge'] = 'Wither Skeleton Skull',
['Skull Charge'] = 'Wither Skeleton Skull',
['Flower Charge'] = 'Oxeye Daisy',
['Flower Charge'] = 'Margarita',
['Mojang Charge'] = 'Enchanted Golden Apple',
['Mojang Charge'] = 'Manzana dorada encantada',
}
}
Línea 204: Línea 204:
'A1', 'B1', 'C1',
'A1', 'B1', 'C1',
'A2', 'B2', 'C2',
'A2', 'B2', 'C2',
'A3', 'B3', 'C3',
'A3', 'B3', 'C3',
}
}
local dyeArgs = {}
local dyeArgs = {}