モジュール:Infobox/data
このモジュールについての説明文ページを モジュール:Infobox/data/doc に作成できます
--- Additional data for inferring infobox categories.
-- @file {table} infobox_data
--- Used for determining which categories to associated with certain locations
-- mentioned in location parameters, whether they should be auto-linked and
-- what should they be linked to.
-- @property {table} infobox_data.locations
--- Map of item types to their respective categories.
-- @property {table} infobox_data.itemtypes
--- Map of weapon types to their respective categories.
-- Not used on Undertale Wiki.
-- @property {table} infobox_data.weapontypes
--- Map of mechanic types to their respective categories.
-- @property {table} infobox_data.mechanics
--- Set of locations with their own categories.
-- @property {table} infobox_data.locationcats
local data = {
locations = {
-- General
['Ruins'] = {
categories = {'Ruins'}
},
['Toriel\'s Home'] = {
categories = {'Ruins'}
},
['Snowdin'] = {
categories = {'Snowdin'}
},
['Papyrus and Sans\'s House'] = {
categories = {'Snowdin'}
},
['Snowdin Forest'] = {
categories = {'Snowdin'}
},
['Waterfall'] = {
categories = {'Waterfall'}
},
['Artifact Room'] = {
categories = {'Waterfall'}
},
['Garbage Dump'] = {
categories = {'Waterfall'}
},
['Temmie Village'] = {
categories = {'Waterfall'}
},
['Hotland'] = {
categories = {'Hotland'}
},
['MTT Resort'] = {
categories = {'Hotland'}
},
['Ruins, Hard Mode'] = {
categories = {
'Ruins',
'Hard Mode Enemies'
},
nolink = true,
link = '[[Ruins]] ([[Hard Mode]])'
},
['CORE'] = {
categories = {
'CORE',
'Hotland'
}
},
['True Lab'] = {
categories = {'Hotland'}
},
['Lab'] = {
categories = {'Hotland'}
},
['New Home'] = {
categories = {'New Home'}
},
['Asgore\'s Home'] = {
categories = {'New Home'}
},
['Dog Hole'] = {
categories = {'10th Anniversary Stream'}
},
-- Vendors
['Spider Bake Sale'] = {
categories = {
'Ruins',
'Hotland'
}
},
['Nice Cream Guy'] = {
categories = {
'Snowdin',
'Waterfall',
'Hotland'
}
},
['Snowdin Shopkeeper'] = {
categories = {'Snowdin'}
},
['Gerson'] = {
categories = {'Waterfall'}
},
['Tem Shop'] = {
categories = {'Waterfall'}
},
['Sans'] = {
categories = {'Hotland'}
},
['Bratty and Catty'] = {
categories = {'Hotland'}
},
['Burgerpants'] = {
categories = {'Hotland'}
},
['Vending Machine'] = {
link = 'True Lab'
}
},
itemtypes = {
['Armor'] = 'Armor',
['Consumable'] = 'Consumables',
['Miscellaneous'] = 'Miscellaneous items',
['Weapon'] = 'Weapons'
},
weapontypes = {}, -- Used on Deltarune Wiki, error prevention here
mechanics = {
gameplay = 'Gameplay Mechanic',
plot = 'Plot Element',
puzzle = 'Puzzle',
ending = 'Ending'
},
-- Automatically populated below.
locationcats = {}
}
for _, locationdata in pairs(data.locations) do
if locationdata.categories ~= nil then
for _, category in pairs(locationdata.categories) do
data.locationcats[category] = true
end
end
end
return data