Diferencia entre revisiones de «Módulo:Banner crafting»
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...» |
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 = { | ||
[' | ['Saco de tinta'] = 'Negro', | ||
[' | ['Tinte rojo'] = 'Rojo', | ||
[' | ['Tinte verde'] = 'Verde', | ||
[' | ['Semillas de coco'] = 'marrón', | ||
[' | ['Lapislázuli'] = 'Azul', | ||
[' | ['Tinte amarillo'] = 'Amarillo', | ||
[' | ['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 == ' | 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, | |||
0, 0, 0, | |||
0, 1, 0, | |||
}, | |||
['Pale Dexter'] = { | ['Pale Dexter'] = { | ||
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, | |||
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, | |||
}, | }, | ||
['Bend Sinister'] = { | ['Bend Sinister'] = { | ||
0, 0, 2, | 0, 0, 2, | ||
0, 2, 0, | 0, 2, 0, | ||
2, 1, 0, | |||
}, | }, | ||
['Paly'] = { | ['Paly'] = { | ||
2, 0, 2, | 2, 0, 2, | ||
2, 0, 2, | |||
0, 1, 0, | |||
}, | |||
['Saltire'] = { | ['Saltire'] = { | ||
2, 0, 2, | |||
0, 2, 0, | 0, 2, 0, | ||
2, 1, 2, | |||
}, | }, | ||
['Cross'] = { | ['Cross'] = { | ||
0, 2, 0, | |||
2, 2, 2, | 2, 2, 2, | ||
1, 2, 0, | 1, 2, 0, | ||
}, | }, | ||
['Per Bend Sinister'] = { | |||
2, 2, 0, | 2, 2, 0, | ||
2, 0, 0, | 2, 0, 0, | ||
0, 1, 0, | |||
}, | }, | ||
['Per Bend'] = { | ['Per Bend'] = { | ||
0, 2, 2, | |||
0, 0, 2, | |||
0, 1, 0, | |||
}, | |||
['Per Bend Inverted'] = { | ['Per Bend Inverted'] = { | ||
0, 1, 0, | |||
2, 0, 0, | 2, 0, 0, | ||
2, 2, 0, | |||
}, | }, | ||
['Per Bend Sinister Inverted'] = { | |||
0, 1, 0, | 0, 1, 0, | ||
0, 0, 2, | |||
0, 2, 2, | 0, 2, 2, | ||
}, | |||
['Per Pale'] = { | ['Per Pale'] = { | ||
2, 2, 0, | |||
2, 2, 1, | |||
2, 2, 0, | |||
}, | }, | ||
['Per Pale Inverted'] = { | |||
0, 2, 2, | 0, 2, 2, | ||
1, 2, 2, | |||
0, 2, 2, | 0, 2, 2, | ||
}, | }, | ||
['Per Fess'] = { | ['Per Fess'] = { | ||
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, | |||
}, | }, | ||
['Base Dexter Canton'] = { | ['Base Dexter Canton'] = { | ||
0, 0, 0, | |||
0, 0, 0, | |||
2, 1, 0, | |||
}, | |||
['Base Sinister Canton'] = { | ['Base Sinister Canton'] = { | ||
0, 0, 0, | |||
0, 0, 0, | 0, 0, 0, | ||
0, 1, 2, | |||
}, | }, | ||
['Chief Dexter Canton'] = { | ['Chief Dexter Canton'] = { | ||
2, 0, 0, | 2, 0, 0, | ||
0, 0, 0, | 0, 0, 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, | |||
2, 1, 2, | 2, 1, 2, | ||
}, | }, | ||
['Inverted Chevron'] = { | ['Inverted Chevron'] = { | ||
2, 0, 2, | 2, 0, 2, | ||
0, 2, 0, | |||
0, 1, 0, | 0, 1, 0, | ||
}, | |||
['Base Indented'] = { | |||
0, 0, 0, | 0, 0, 0, | ||
2, 1, 2, | 2, 1, 2, | ||
0, 2, 0, | |||
}, | }, | ||
['Chief Indented'] = { | ['Chief Indented'] = { | ||
| Línea 172: | Línea 172: | ||
}, | }, | ||
['Lozenge'] = { | ['Lozenge'] = { | ||
0, 2, 0, | |||
2, 1, 2, | |||
0, 2, 0, | |||
}, | |||
['Bordure'] = { | |||
2, 2, 2, | 2, 2, 2, | ||
2, 1, 2, | 2, 1, 2, | ||
2, 2, 2, | |||
}, | }, | ||
['Gradient'] = { | |||
2, 1, 2, | 2, 1, 2, | ||
0, 2, 0, | 0, 2, 0, | ||
0, 2, 0, | |||
}, | }, | ||
['Base Gradient'] = { | ['Base Gradient'] = { | ||
0, 2, 0, | 0, 2, 0, | ||
0, 2, 0, | |||
2, 1, 2, | 2, 1, 2, | ||
}, | }, | ||
} | } | ||
local items = { | local items = { | ||
['Bordure Indented'] = ' | ['Bordure Indented'] = 'Enredadera', | ||
['Field Masoned'] = ' | ['Field Masoned'] = 'Ladrillos', | ||
['Creeper Charge'] = 'Creeper | ['Creeper Charge'] = 'Cabeza de Creeper', | ||
['Skull Charge'] = 'Wither Skeleton Skull', | ['Skull Charge'] = 'Wither Skeleton Skull', | ||
['Flower Charge'] = ' | ['Flower Charge'] = 'Margarita', | ||
['Mojang Charge'] = ' | ['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', | |||
} | } | ||
local dyeArgs = {} | local dyeArgs = {} | ||