« Module:Inventory slot/Aliases » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| (7 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 8 : | Ligne 8 : | ||
-- Common fuel types for furnace -- | -- Common fuel types for furnace -- | ||
['Tout combustible'] = { 'Charbon', 'Charbon de bois', { title = 'Bûche', name = 'Bûche' }, { title = 'Planches', name = 'Planches de chêne' }, 'Bloc de charbon' }, | ['Tout combustible'] = { 'Charbon', 'Charbon de bois', { title = 'Bûche', name = 'Bûche' }, { title = 'Planches', name = 'Planches de chêne' }, 'Bloc de charbon' }, | ||
['Toute armure en cuir'] = { 'Chapeau en cuir', 'Tunique en cuir', 'Pantalon en cuir', 'Bottes en cuir' }, | ['Toute armure en cuir'] = { 'Chapeau en cuir', 'Tunique en cuir', 'Pantalon en cuir', 'Bottes en cuir' }, | ||
['Toute armure en or'] = { 'Casque en or', 'Plastron en or', 'Jambières en or', 'Bottes en or' }, | ['Toute armure en or'] = { 'Casque en or', 'Plastron en or', 'Jambières en or', 'Bottes en or' }, | ||
| Ligne 18 : | Ligne 13 : | ||
['Toute armure en fer'] = { 'Casque en diamant', 'Plastron en diamant', 'Jambières en diamant', 'Bottes en diamant' }, | ['Toute armure en fer'] = { 'Casque en diamant', 'Plastron en diamant', 'Jambières en diamant', 'Bottes en diamant' }, | ||
['Toute armure en diamant'] = { 'Casque en diamant', 'Plastron en diamant', 'Jambières en diamant', 'Bottes en diamant' }, | ['Toute armure en diamant'] = { 'Casque en diamant', 'Plastron en diamant', 'Jambières en diamant', 'Bottes en diamant' }, | ||
-- Display names -- | -- Display names -- | ||
[' | ['Élytres cassées'] = { title = '&eÉlytres', name = 'Élytres cassées' }, | ||
['Bloc d\'argile'] = { title = 'Bloc d\'argile', name = 'Bloc d\'argile' }, | ['Bloc d\'argile'] = { title = 'Bloc d\'argile', name = 'Bloc d\'argile' }, | ||
[' | ['Clay (ball)'] = { title = 'Clay', name = 'Clay (ball)' }, | ||
[' | ['Pomme dorée enchantée'] = { title = '&dPomme dorée enchantée', name = 'Pomme dorée enchantée' }, | ||
[' | ['Banner Pattern Flower'] = { title = 'Banner Pattern', name = 'Banner Pattern', text = '&7Flower Charge'}, | ||
[' | ['Banner Pattern Flower Charge'] = { title = 'Banner Pattern', name = 'Banner Pattern', text = '&7Flower Charge'}, | ||
[' | ['Banner Pattern Creeper Charge'] = { title = '&eBanner Pattern', name = 'Banner Pattern', text = '&7Creeper Charge'}, | ||
[' | ['Banner Pattern Creeper'] = { title = '&eBanner Pattern', name = 'Banner Pattern', text = '&7Creeper Charge'}, | ||
['Banner Pattern Bordure Indented'] = { title = 'Banner Pattern', name = 'Banner Pattern', text = '&7Bordure Indented'}, | |||
['Banner Pattern Field Masoned'] = { title = 'Banner Pattern', name = 'Banner Pattern', text = '&7Field Masoned'}, | |||
['Banner Pattern Skull Charge'] = { title = '&eBanner Pattern', name = 'Banner Pattern', text = '&7Skull Charge'}, | |||
['Banner Pattern Skull'] = { title = '&eBanner Pattern', name = 'Banner Pattern', text = '&7Skull Charge'}, | |||
['Banner Pattern Thing'] = { title = '&dBanner Pattern', name = 'Banner Pattern', text = '&7Thing'}, | |||
['Banner Pattern Globe'] = { title = 'Banner Pattern', name = 'Banner Pattern', text = '&7Globe'}, | |||
['Bouton en pierre'] = { title = 'Bouton en pierre', name = 'Bouton en pierre' }, | ['Bouton en pierre'] = { title = 'Bouton en pierre', name = 'Bouton en pierre' }, | ||
['Wooden Button'] = { title = 'Button', name = 'Oak Button'}, | |||
['Arrow Loaded Crossbow'] = { title = 'Crossbow', name = 'Arrow Loaded Crossbow' }, | |||
['Firework Loaded Crossbow'] = { title = 'Crossbow', name = 'Firework Loaded Crossbow' }, | |||
['Illager Banner'] = { title = '&6&oIllager Banner', name = 'Illager Banner', text = | |||
'&7Cyan Lozenge/&7Light Gray Base/&7Gray Pale/&7Light Gray Bordure/&7Black Fess/&7Light Gray Per Fess'}, | |||
['Jigsaw Block'] = { title = '&dJigsaw Block', name = 'Jigsaw Block' }, | |||
-- Weapons -- | |||
['Trident'] = { name = 'Trident', text = '/&7 Dans la main principale :/ &2 1.1 de vitesse d\'attaque/ &2 9 de points d\'attaque'}, | |||
-- Bedrock and Education Edition display names -- | |||
['Elytra Wings'] = { title = 'Elytra Wings', name = 'Elytra' }, | |||
[' | ['Cooked Beef'] = { title = 'Cooked Beef', name = 'Steak' }, | ||
['Map (no markers)'] = { title = 'Map', name = 'Map', text = 'Display Markers: &cNo' }, | |||
[' | ['Locator Map'] = { title = 'Map', name = 'Map', text = 'Display Markers: &aYes' }, | ||
[' | |||
[' | |||
-- Chemistry -- | |||
['Lead (element)'] = { title = 'Lead', name = 'Lead (element)' }, | |||
['Water (compound)'] = { title = 'Water', name = 'Water (compound)' }, | |||
['Chloride'] = { 'Calcium Chloride', 'Cerium Chloride', 'Mercuric Chloride', 'Potassium Chloride', 'Tungsten Chloride' }, | |||
['Sparkler'] = { 'Orange Sparkler', 'Blue Sparkler', 'Red Sparkler', 'Purple Sparkler', 'Green Sparkler' }, | |||
['Matching Chloride'] = { 'Cerium Chloride', 'Mercuric Chloride', 'Potassium Chloride', 'Tungsten Chloride' }, | |||
['Matching Colored Torch'] = { 'Blue Torch', 'Red Torch', 'Purple Torch', 'Green Torch' }, | |||
['Matching Glow Stick'] = { 'White Glow Stick', 'Orange Glow Stick', 'Magenta Glow Stick', 'Light Blue Glow Stick', | |||
'Yellow Glow Stick', 'Lime Glow Stick', 'Pink Glow Stick', 'Gray Glow Stick', 'Cyan Glow Stick', | |||
'Purple Glow Stick', 'Blue Glow Stick', 'Brown Glow Stick', 'Green Glow Stick', 'Red Glow Stick' }, | |||
} | } | ||
| Ligne 123 : | Ligne 91 : | ||
local lightPurpleTooltips = { | local lightPurpleTooltips = { | ||
' | 'Dragon Egg', | ||
' | 'Structure Block', | ||
} | } | ||
for _, name in ipairs( lightPurpleTooltips ) do | for _, name in ipairs( lightPurpleTooltips ) do | ||
| Ligne 222 : | Ligne 186 : | ||
local itemVariants = { | local itemVariants = { | ||
['colorant'] = mw.clone( coloredDyes ), | ['colorant'] = mw.clone( coloredDyes ), | ||
['Colored Dye'] = coloredDyes, | |||
['Dyed Wool'] = { | |||
'Orange Wool', 'Magenta Wool', 'Light Blue Wool', 'Yellow Wool', 'Lime Wool', | |||
'Pink Wool', 'Gray Wool', 'Light Gray Wool', 'Cyan Wool', 'Purple Wool', | |||
'Blue Wool', 'Brown Wool', 'Green Wool', 'Red Wool', 'Black Wool', | |||
}, | |||
['Dyed Bed'] = { | |||
'Orange Bed', 'Magenta Bed', 'Light Blue Bed', 'Yellow Bed', 'Lime Bed', | |||
'Pink Bed', 'Gray Bed', 'Light Gray Bed', 'Cyan Bed', 'Purple Bed', | |||
'Blue Bed', 'Brown Bed', 'Green Bed', | |||
'Red Bed', 'Black Bed', | |||
}, | |||
['Dyed Carpet'] = { | |||
'Orange Carpet', 'Magenta Carpet', 'Light Blue Carpet', 'Yellow Carpet', 'Lime Carpet', | |||
'Pink Carpet', 'Gray Carpet', 'Light Gray Carpet', 'Cyan Carpet', 'Purple Carpet', | |||
'Blue Carpet', 'Brown Carpet', 'Green Carpet', | |||
'Red Carpet', 'Black Carpet', | |||
}, | |||
['Dyed Terracotta'] = { | |||
'White Terracotta', 'White Terracotta', 'Orange Terracotta', 'Magenta Terracotta', 'Light Blue Terracotta', | |||
'Yellow Terracotta', 'Lime Terracotta', 'Pink Terracotta', 'Gray Terracotta', 'Light Gray Terracotta', | |||
'Cyan Terracotta', 'Purple Terracotta', 'Blue Terracotta', 'Brown Terracotta', | |||
'Brown Terracotta', 'Green Terracotta', 'Red Terracotta', 'Black Terracotta', | |||
}, | |||
['fleur'] = { 'Pissenlit', 'Coquelicot', 'Orchidée bleue', 'Allium', 'Houstonie bleue', 'Tulipe rouge', 'Tulipe orange', 'Tulipe blanche', 'Tulipe rose', 'Marguerite', 'Bleuet', 'Muguet', 'Rose de Wither' }, | ['fleur'] = { 'Pissenlit', 'Coquelicot', 'Orchidée bleue', 'Allium', 'Houstonie bleue', 'Tulipe rouge', 'Tulipe orange', 'Tulipe blanche', 'Tulipe rose', 'Marguerite', 'Bleuet', 'Muguet', 'Rose de Wither' }, | ||
['champignons'] = { { title = 'Champignons', name = 'Champignon rouge' }, { title = 'Champignons', name = 'Champignon brun' } }, | ['champignons'] = { { title = 'Champignons', name = 'Champignon rouge' }, { title = 'Champignons', name = 'Champignon brun' } }, | ||
[' | ['Quartz Block'] = { 'Block of Quartz', 'Chiseled Quartz Block', 'Quartz Pillar' }, | ||
[' | ['Red Sandstone'] = { 'Red Sandstone', 'Chiseled Red Sandstone', 'Smooth Red Sandstone' }, | ||
[' | ['Sandstone'] = { 'Sandstone', 'Chiseled Sandstone', 'Smooth Sandstone' }, | ||
[' | ['Stone Bricks'] = { 'Stone Bricks', 'Mossy Stone Bricks', 'Cracked Stone Bricks', 'Chiseled Stone Bricks' }, | ||
['Stone Slab'] = { 'Smooth Stone Slab', 'Sandstone Slab', 'Cobblestone Slab', 'Brick Slab', 'Stone Brick Slab', 'Nether Brick Slab', 'Quartz Slab' }, | |||
['Purpur Block'] = { 'Purpur Block', 'Purpur Pillar' }, | |||
['Stone'] = { 'Stone', 'Andesite', 'Granite', 'Diorite', 'Polished Andesite', 'Polished Granite', 'Polished Diorite' }, | |||
['Tulip'] = { 'Red Tulip', 'Orange Tulip', 'White Tulip', 'Pink Tulip' }, | |||
} | } | ||
table.insert( itemVariants['colorant'], 1, 'White Dye' ) | |||
table.insert( itemVariants['colorant'], 1, ' | |||
for aliasName, aliasItems in pairs( itemVariants ) do | for aliasName, aliasItems in pairs( itemVariants ) do | ||
aliases[ | aliases['Any ' .. aliasName] = aliasItems | ||
aliases[ | aliases['Matching ' .. aliasName] = aliasItems | ||
end | end | ||
| Ligne 372 : | Ligne 340 : | ||
} | } | ||
local colors = { | local colors = { | ||
' | 'blanc', | ||
' | 'blanc', | ||
' | 'orange', | ||
' | 'magenta', | ||
' | 'bleu clair', | ||
' | 'jaune', | ||
' | 'vert clair', | ||
' | 'rose', | ||
' | 'gris', | ||
' | 'gris clair', | ||
' | 'cyan', | ||
' | 'violet', | ||
' | 'bleu', | ||
' | 'bleu', | ||
' | 'marron', | ||
' | 'marron', | ||
'vert', | |||
'rouge', | |||
'noir', | |||
'noir' | |||
} | } | ||
| Ligne 564 : | Ligne 536 : | ||
-- build the any lists | -- build the any lists | ||
for item, potionAliases in pairs( potionItems ) do | for item, potionAliases in pairs( potionItems ) do | ||
aliases[' | aliases['Tout ' .. item] = potionAliases | ||
aliases[' | aliases['Même ' .. item] = potionAliases | ||
end | end | ||
-- Wood -- | -- Wood -- | ||
local woods = { | local woods = { | ||
' | 'de chêne', | ||
' | 'de sapin', | ||
' | 'de bouleau', | ||
' | 'd\'acajou', | ||
' | 'd\'acacia', | ||
' | 'de chêne noir' | ||
} | } | ||
local woodItems = { | local woodItems = { | ||
' | 'barrière en bois', | ||
' | 'bateau', | ||
' | 'bateau en bois', | ||
' | 'bois', | ||
' | 'bois $1 écorcé', | ||
' | 'bouton en bois', | ||
' | 'bûche', | ||
' | 'bûche $1 écorcée', | ||
' | 'dalle en bois', | ||
' | 'escalier en bois', | ||
' | 'escaliers en bois', | ||
' | 'porte en bois', | ||
' | 'pancarte en bois', | ||
' | 'planches', | ||
' | 'plaque de pression en bois', | ||
' | 'portillon en bois', | ||
' | 'trappe en bois', | ||
} | |||
-- "Tout" accordé différemment dans certains cas | |||
local tout = { | |||
['barrière en bois'] = 'Toute', | |||
['bûche'] = 'Toute', | |||
['bûche écorcée'] = 'Toute', | |||
['dalle en bois'] = 'Toute', | |||
['escaliers en bois'] = 'Tous', | |||
['pancarte en bois'] = 'Toute', | |||
['planches'] = 'Toutes', | |||
['plaque de pression en bois'] = 'Toute', | |||
['porte en bois'] = 'Toute', | |||
['trappe en bois'] = 'Toute', | |||
} | |||
-- "Même" accordé différemment dans certains cas | |||
local meme = { | |||
['escaliers en bois'] = 'Mêmes', | |||
['planches'] = 'Mêmes', | |||
} | } | ||
for _, item in ipairs( woodItems ) do | for _, item in ipairs( woodItems ) do | ||
local itemName = | local itemName = item | ||
local woodAliases = {} | local woodAliases = {} | ||
for _, wood in ipairs( woods ) do | for _, wood in ipairs( woods ) do | ||
table.insert( woodAliases, mw.ustring.gsub( itemName, '^%a', mw.ustring.upper ) .. ' ' .. wood ) | |||
end | end | ||
aliases[(tout[item] or 'Tout') .. ' ' .. item] = woodAliases | |||
aliases[(meme[item] or 'Même') .. ' ' .. item] = woodAliases | |||
aliases[' | |||
end | end | ||