İçeriğe atla

Modül:Location/locations

Deltarune Wiki sitesinden

Error from Modül:Location/locations: Missing Lua documentation! Check other modules to see examples how to write Lua module documentation. Please check the linked documentation for expected input and examples.

local query = mw.ext.bucket('location')
	.join('located', 'location.page_name', 'located.page_name')
	.select('page_name', 'name', 'category', 'located.location')

local locations = {}
for _, row in ipairs(query.run()) do
	locations[row.page_name] = {
		name = row.name,
		category = row.category,
		locations = row['located.location'],
	}
end

return locations
Konu ekle