Module:Customizations Groups

From Rise of Cultures Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Customizations Groups/doc

local CustomMod = require( 'Module:Customizations' )

Groups = {}
Groups_List = {}

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'EVENT SPECIALS' --Header
Groups[#Groups][2] = '#d0583d' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = '' --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Residence'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Baobab Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Yurt Caravan'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Persian Villa'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'SEASON PASS' --Header
Groups[#Groups][2] = '#9a21c8' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = '' --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bee Skep'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Goose Pond'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Rose Garden'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hill Home'
Groups[#Groups +1] = {}

Groups[#Groups][1] = 'TREASURE HUNT' --Header
Groups[#Groups][2] = '#84d143' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = '' --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pirate Den'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Belltower Cottage'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Sugarcane Distillery'
Groups_List[#Groups][#Groups_List[#Groups]+1] = "The Scallywag's Shanty"
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Coconut Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hammock Trees'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Robber Crab'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Skull Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tropical Fruit Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Crow's Inn"
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Voodoo Head'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Jolly Roger'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Long Nine'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Treasure Trove'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Sparkling Fortune'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'CELTIC EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#f37f44' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Celtic Broch Token}} 2 Celtic Broch Tokens]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tree Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Rune Hut'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Druid Circle'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Shrine Cottage'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Fairy Berries'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Turnip Hill'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Lowland Sheep Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Highland Cattle Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Menhir'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'The Celtic Prince'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Forest Guardian'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Goddess of Fertility'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dolmen Tomb'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Firefly Tree'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'CELTIC EVENT' --Header
Groups[#Groups][2] = '#f37f44' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Druid Grove Token}} 2 Druid Grove Tokens
:* {{Icon|Questgiver Brennus}} 3 Mercenary Bennus]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tree Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hill Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Druid Circle'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Shrine Cottage'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Fairy Berries'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bean Field'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Goose Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Highland Cattle Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Menhir'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Finger Labyrinth'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Moongate'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cairnbaan Cup'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Fairy Ring'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Firefly Tree'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'MALI EMPIRE EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#cf593d' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 13 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Madrasa Token}} 2 Madrasa Tokens
:* {{Icon|Mercenary Queen Idia}} 3 Mercenary Queen Idia]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Granary'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Hut'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Cookhouse'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Domicile'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Millet Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Baobab Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Caravan Oasis'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bazar'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Turtle Sculpture'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mask Sculpture'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Flower Garden'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Throne'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bird Tower'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'MALI EMPIRE EVENT' --Header
Groups[#Groups][2] = '#cf593d' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Madrasa Token}} 1 Madrasa Tower token
:* {{Icon|Dovecote Tower Token}} 1 Dovecote Tower token
:* {{Icon|Mercenary Chest}} Mercenary Chest]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Painted Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Hut'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Cookhouse'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Intercropping Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dogon Domicile'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ceremonial Mask'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dance Mask'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Baobab Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Divination Lines'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Caravan Oasis'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Giant Baobab'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bazar'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Flower Garden'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Throne'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'MONGOL EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#39a887' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Yurt of the Khan Token}} 2 Yurt of the Khan Tokens]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mongol Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mongol Cookhouse'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Gathering Yurt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Council Yurt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Garlic Field'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Yak Grassland'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Horse Meadow'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Camel Meadow'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Sulde'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tug Banner'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Deer Megalith'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Horse Megalith'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Silver Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ovoo'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'MONGOL EVENT' --Header
Groups[#Groups][2] = '#39a887' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Evolution Token Selection Kit2}} 2 Evolution Token Selection Kits
:* {{Icon|Mercenary Genghis Khan}} 3 Mercenary Genghis Khan]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Sleeping Yurt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mongol Cookhouse'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Gathering Yurt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Council Yurt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cheese Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Yak Grassland'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Horse Meadow'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Camel Meadow'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Banner of the Khan'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Festive Tug'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Eagle Stone'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Yak Stone'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Silver Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mongolian Throne'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'PERSIAN EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#e2bd77' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Persian Palace Token}} 2 Persian Palace Tokens]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mesopotamian Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Parthian Residence'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Placid Estate'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tea Tent'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Saffron and Date Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pistachio Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Persian Homestead'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Adorned Fish Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Achaemenid Soldier'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bull Idol'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Griffin Sculpture'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Lamassu Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mosaic Pavilion'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Windcatcher Tower'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'PERSIAN EVENT' --Header
Groups[#Groups][2] = '#e2bd77' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Persian Palace Token}} 2 Mosaic Bath Tokens
:* {{Icon|Mercenary Chest}} 1 Mercenary Chest]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mesopotamian Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cupola Residence'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ornamental Manor'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tea Tent'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Persian Dairy'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Saffron and Date Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Date Palm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cozy Parasol'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pistachio Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Saffron Bed'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Persian Homestead'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pistachio Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Lamassu Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Windcatcher Tower'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'THAI EVENT' --Header
Groups[#Groups][2] = '#b84c64' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 15 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Shrine of Reflection Token}} 2 Shrine of Reflection Tokens
:* {{Icon|Commander Queen Suriyothai}} 3 Mercenary Queen Suriyothai]]  --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Prang Wall'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Prang Corner'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Lotus Tower'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Prang Center'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ceremony Chamber'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Paddy Field'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Lotus Flower Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Floating Market'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Water Pavilion'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Flower Bush Arrangement'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Frangipani Bush'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'San Phra Phum'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Guardian Spirit'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cetiya'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Shrine of Remembrance'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'POLYNESIA EVENT' --Header
Groups[#Groups][2] = '#00cff3' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 12 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Drum Tower Token}} 2 Drum Tower Tokens
:* {{Icon|Mercenary Selection Kit}} 1 Mercenary Selection Kit]]  --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Tamanu Stilt House'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pua Stilt House'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Aito Stilt House'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Portia Stilt House'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Coconut Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Coconut Orchard'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Goat Shed'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Goat Cave'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Island Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Polynesian Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cozy Hangout'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Relax Spot'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'HERCULES EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#bd9589' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 7 customizations
:*  {{Icon|Trojan Horse Token}} 1 Trojan Horse Token]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Shrine of Hercules'
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Hercules' Domicile"
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Garden of the Hesperides'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Stable of Pegasus'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hercules Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Nemean Lion Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cerberus Statue'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'ANCIENT GREEK EVENT' --Header
Groups[#Groups][2] = '#bd9589' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 15 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Elysian Field Token}} 2 Elysian Field Tokens
:* {{Icon|Commander Hercules}} 3 Mercenary Hercules]]   --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Shrine of Hercules'
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Hercules' Domicile"
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Garden of the Hesperides'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Stable of Pegasus'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hercules Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Nemean Lion Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cerberus Statue'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Colonnade'
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Column Crossing"
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Ancient Sanctuary"
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Pagoda of Demeter"
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Erymathian Boar"
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Decorative Vase"
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Quaint Trees"
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Nestis' Pond"

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'WORLD FAIR EVENT' --Header
Groups[#Groups][2] = '#7ebfc5' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 16 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Exhibition Token}} 2 Exhibition Tokens
:* {{Icon|Icon chest alliance points all}} Alliance Points Chest]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mesopotamian Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Clock Tower'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Gothic Tomb'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ancient Sanctuary'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Shrine Cottage'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Council Yurt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Fairy Berries'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pagoda of Demeter'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Water Pavilion'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Bazar'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Festive Tug'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cozy Parasol'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Divination Lines'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Victorian Sleigh'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Mosaic Pavilion'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cetiya'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'HALLOWEEN EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#40bb46' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Evolution Token Selection Kit2}} 2 Evolution Token Selection Kits]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Arcane Witch Tower'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Potion Brewer'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Haunted Crypt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Abandoned Mansion'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cursed Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Witch Retreat'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Raven Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Haunted Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Candlestand'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Captured Specter'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Scarecrow'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Coffins'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pumpkin Stack'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Possessed Tree'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'HALLOWEEN EVENT' --Header
Groups[#Groups][2] = '#40bb46' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 15 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Crypt of the Count Token}} 2 Crypt of the Count Tokens
:* {{Icon|Mercenary Vlad Dracula}} 3 Mercenary Vlad Dracula]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Small Tomb'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Potion Brewer'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Gothic Tomb'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Haunted Crypt'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Burial Vault'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Witch Retreat'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Fortune Teller'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Raven Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = "Dracula's Carriage"
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Candlestand'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Overgrown Tombstone'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Scarecrow'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Coffins'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Pumpkin Stack'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Possessed Tree'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'WINTER EVENT - LEGACY COLLECTION' --Header
Groups[#Groups][2] = '#4595d2' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 14 customizations
:* {{Icon|Winter Market Token}} 2 Winter Market Tokens]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cozy Cabin'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Frosty Igloo'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Festive Cottage'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Sauna Lodge'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ice-Fishing Lake'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hay Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cookie Bakery'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Decorated Fir'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Snowman'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Victorian Sleigh'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Halmbock'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Winter Pyramid'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Adorned Arch'

Groups[#Groups +1] = {}
Groups[#Groups][1] = 'WINTER EVENT' --Header
Groups[#Groups][2] = '#4595d2' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = [[Obtain one of each customization to complete the collection and receive a reward.
: {{Icon|icon_mystery_chest_gold}} '''Collection:''' 15 customizations
:* {{Icon|Age Up Kit}} 1 Age Up Kit
:* {{Icon|Winter Bakery Token}} 2 Winter Bakery Tokens
:* {{Icon|Commander Margaret}} 3 Commander Margaret]] --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Snugly Home'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Cozy Cabin'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Clock Tower'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Festive Cottage'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Confectionary'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Ice-Fishing Lake'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Hay Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Frozen Lake'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Winterberry Farm'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Decorated Fir'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Snow Tree'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Dala Horse'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Halmbock'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Winter Pyramid'
Groups_List[#Groups][#Groups_List[#Groups]+1] = 'Decorated Well'


local p = {}

function p.main(data)
	
	local String = ''
	
	--Pass the string 'open' to the main function will expand all collapsable elements
	toggle_state = 'mw-collapsed'
	if data.args[1] ~= nil then
		data.args[1] = data.args[1]:gsub('^%s+', '') --Strip leading spaces
		data.args[1] = data.args[1]:gsub('%s+$', '') --Strip trailing spaces
		if data.args[1] =='open' then toggle_state = 'mw-expanded' end
	end
	
	for i = 1, #Groups, 1 do
		for j = 0, #Groups_List[i], 1 do
			
			ToggleID = Groups[i][1]:gsub('%s','_') .. '_' .. j
			if Groups[i][3] == '' then Collection = '' else Collection = '<tr><td colspan="6" style="text-align: left;">' .. Icons(Groups[i][3]) ..'</td></tr>' end
			Toggle = '<div class="mw-customtoggle-' .. ToggleID .. ' mw-customtoggle-' .. ToggleID .. 'expand mw-customtoggle-' .. ToggleID .. 'collapse"><span class="mw-collapsible" id="mw-customcollapsible-' .. ToggleID .. 'expand" style="text-align:center; min-width:22px;">[+]</span><span class="mw-collapsible ' .. toggle_state .. '" id="mw-customcollapsible-' .. ToggleID .. 'collapse" style="text-align:center; min-width:22px;">[-]</span></div>'
			
			if j == 0 then
				if Groups[i][2] == nil or Groups[i][2] == '' then
					Groups[i][2] = '#329CB3'
				end
				String = String .. '<div style="display: flex; align-items: center; justify-content: center; width: 100%; padding: 8px;"><div style="position: relative; display: flex; align-items: center; justify-content: center; width: 600px; background: linear-gradient(150deg, #f3e4ad 50px,' .. Groups[i][2] ..' 1px); border-radius: 8px; padding: 4px; border: 1px solid black;"><div style="position: absolute; top: 4px; left: 4px; width: 99%; color: black;">' ..Toggle ..'</div><div style="color: black; text-align: center; font-weight: bold;"> ' .. Groups[i][1] ..'</div></div></div><div id="mw-customcollapsible-' .. ToggleID .. '" class="mw-collapsible ' .. toggle_state .. '"><div style="overflow: auto;"><table class="article-table" style="white-space: nowrap; margin: auto;">' .. Collection .. '<tr class="bg-th"><td colspan="2" style="min-width: 80px;"><b>Customization</b></td><td style="min-width: 80px;"><b>Applies to</b></td><td style="min-width: 80px;">[[File:Time.png|25px|link=]]</td><td class="bg-bonus" style="min-width: 80px;">[[File:Auto.png|50px|link=]]</td><td class="bg-bonus" style="min-width: 80px;"><b>Boost</b></td></tr>'
			else
				local Name = ''
				local Building = ''
				local Duration = ''
				local Auto = ''
				local Boost = ''
				local Note = ''
				if Customization[ Groups_List[i][j] ] ~= nil then
					Name = Groups_List[i][j]
					if Customization[ Name ][1] ~= nil then Building = Customization[ Name ][1] end
					if Customization[ Name ][2] ~= nil then Duration = Customization[ Name ][2] end
					if Customization[ Name ][3] ~= nil then Auto = Icons(Customization[ Name ][3]) end
					if Customization[ Name ][4] ~= nil then Boost = Icons(Customization[ Name ][4]) end
					if Customization[ Name ][5] ~= nil and Customization[ Name ][5] ~= '' then Note = Notes(Customization[ Name ][5]) end
				end

				String = String .. '<tr><td>' .. Toggle .. '</td><td style="text-align: left;">' .. Name .. '</td><td>' .. Building .. '</td><td style="text-align: center;">' .. Duration .. '</td><td>' .. Auto .. '</td><td>' .. Boost .. '</td></tr><tr id="mw-customcollapsible-' .. ToggleID .. '" class="mw-collapsible ' .. toggle_state .. '"><td colspan="6" style="text-align: left;"><div style="text-align: center;">[[File:'  .. Name .. '.png|link=]]</div>' .. Note .. '</td></tr>'
			end
			
		end
		
		String = String .. '</table></div><br></div>'
	end
	
	return String
end


function p.Sorted_Table()
	local keys = {}
	
	for k in pairs(Customization) do
	  table.insert(keys, k)
	end
	table.sort(keys, compareKeys)
	
	String = '<div style="overflow: auto;"><table class="article-table" style="white-space: nowrap; margin: auto; text-align: center;"><tr class="bg-th"><td style="min-width: 80px;"><b>Customization</b></td><td class="bg-th" style="min-width: 80px;"><b>Category</b></td><td style="min-width: 80px;"><b>Applies to</b></td><td style="min-width: 80px;">[[File:Time.png|25px|link=]]</td><td class="bg-bonus" style="min-width: 80px;">[[File:Auto.png|50px|link=]]</td><td class="bg-bonus" style="min-width: 80px;"><b>Boost</b></td></tr>'
	
	-- Print the sorted keys
	for i, k in ipairs(keys) do
	  String = String .. '<tr><td style="text-align: left;">' .. k .. '</td><td>' .. Icons(Customization[k][6]) .. '</td><td>' .. Customization[k][1] .. '</td><td>' .. Customization[k][2] .. '</td><td>' .. Icons(Customization[k][3]) .. '</td><td>' .. Icons(Customization[k][4]) .. '</td></tr>'
	end
	
	String = String .. '</table></div>'
	
	return String
	
end


local function compareKeys(a, b)
  return tostring(a) < tostring(b)
end


return p

--[[
TEMPLATE:

Groups[#Groups +1] = {}
Groups[#Groups][1] = '' --Header
Groups[#Groups][2] = '' --Header hex colour (default: #329CB3)
Groups[#Groups][3] = '' --Collection Information
Groups_List[#Groups] = {}
Groups_List[#Groups][#Groups_List[#Groups]+1] = ''
]]