Module:Cite/Data

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

This data is used to determine which color that should be applied to a Template:Cite quote, if any. Edit Module:Color/Data to add colors and associate them to certain game characters or interfaces.

For information on editing module data in general, see Guidelines:Modules/Data.

Data
GameColorCharacter/Interface
Ocarina of TimeOoT Light BlueNavi
Ocarina of Time 3DOoT3D Light BlueNavi
Majora's MaskMM Light BlueTatl
Majora's Mask 3DMM3D Light BlueTatl
Twilight PrincessTP Animal GreenCat
Twilight PrincessTP Animal GreenCucco Leader
Twilight PrincessTP Animal GreenCucco
Twilight PrincessTP Animal GreenEpona
Twilight PrincessTP Animal GreenFrog
Twilight PrincessTP Animal GreenGengle
Twilight PrincessTP Animal GreenGolden Cucco
Twilight PrincessTP Animal GreenLouise
Twilight PrincessTP Animal GreenSquirrel
Twilight PrincessTP Dark BrownItem Screen
Twilight PrincessTP Dark BrownMap Screen
Twilight PrincessTP Light BrownCollection Screen
Twilight PrincessTP Midna BlueMidna
Twilight PrincessTP Whitedefault
Twilight Princess HDTPHD Animal GreenCat
Twilight Princess HDTPHD Animal GreenCucco Leader
Twilight Princess HDTPHD Animal GreenCucco
Twilight Princess HDTPHD Animal GreenEpona
Twilight Princess HDTPHD Animal GreenFrog
Twilight Princess HDTPHD Animal GreenGengle
Twilight Princess HDTPHD Animal GreenGolden Cucco
Twilight Princess HDTPHD Animal GreenLouise
Twilight Princess HDTPHD Animal GreenSquirrel
Twilight Princess HDTPHD BlackItem Screen
Twilight Princess HDTPHD BlackMap Screen
Twilight Princess HDTPHD Light BrownCollection Screen
Twilight Princess HDTPHD Midna BlueMidna
Twilight Princess HDTPHD Whitedefault
Skyward SwordSS DemiseDemise
Skyward SwordSS Dialoguedefault
Skyward SwordSS WhiteN/A
Skyward SwordSS WhiteFi
Skyward Sword HDSSHD DemiseDemise
Skyward Sword HDSSHD Dialoguedefault
Skyward Sword HDSSHD WhiteN/A
Skyward Sword HDSSHD WhiteFi
Breath of the WildBotW MapMap
Breath of the WildBotW Monk BlueAkh Va'quot
Breath of the WildBotW Monk BlueBareeda Naag
Breath of the WildBotW Monk BlueBosh Kala
Breath of the WildBotW Monk BlueChaas Qeta
Breath of the WildBotW Monk BlueDaag Chokah
Breath of the WildBotW Monk BlueDagah Keek
Breath of the WildBotW Monk BlueDah Hesho
Breath of the WildBotW Monk BlueDah Kaso
Breath of the WildBotW Monk BlueDaka Tuss
Breath of the WildBotW Monk BlueDako Tah
Breath of the WildBotW Monk BlueDaqa Koh
Breath of the WildBotW Monk BlueDaqo Chisay
Breath of the WildBotW Monk BlueDila Maag
Breath of the WildBotW Monk BlueDow Na'eh
Breath of the WildBotW Monk BlueDunba Taag
Breath of the WildBotW Monk BlueEtsu Korima
Breath of the WildBotW Monk BlueGee Ha'rah
Breath of the WildBotW Monk BlueGoma Asaagh
Breath of the WildBotW Monk BlueGorae Torr
Breath of the WildBotW Monk BlueHa Dahamar
Breath of the WildBotW Monk BlueHawa Koth
Breath of the WildBotW Monk BlueHia Miu
Breath of the WildBotW Monk BlueHila Rao
Breath of the WildBotW Monk BlueIshto Soh
Breath of the WildBotW Monk BlueJa Baij
Breath of the WildBotW Monk BlueJee Noh
Breath of the WildBotW Monk BlueJitan Sa'mi
Breath of the WildBotW Monk BlueJoloo Nah
Breath of the WildBotW Monk BlueKa'o Makagh
Breath of the WildBotW Monk BlueKaam Ya'tak
Breath of the WildBotW Monk BlueKah Mael
Breath of the WildBotW Monk BlueKah Okeo
Breath of the WildBotW Monk BlueKah Yah
Breath of the WildBotW Monk BlueKam Urog
Breath of the WildBotW Monk BlueKamia Omuna
Breath of the WildBotW Monk BlueKatah Chuki
Breath of the WildBotW Monk BlueKatosa Aug
Breath of the WildBotW Monk BlueKay Noh
Breath of the WildBotW Monk BlueKaya Wan
Breath of the WildBotW Monk BlueKayra Mah
Breath of the WildBotW Monk BlueKe'nai Shakah
Breath of the WildBotW Monk BlueKee Dafunia
Breath of the WildBotW Monk BlueKeeha Yoog
Breath of the WildBotW Monk BlueKeh Namut
Breath of the WildBotW Monk BlueKeive Tala
Breath of the WildBotW Monk BlueKema Kosassa
Breath of the WildBotW Monk BlueKema Zoos
Breath of the WildBotW Monk BlueKeo Ruug
Breath of the WildBotW Monk BlueKetoh Wawai
Breath of the WildBotW Monk BlueKiah Toza
Breath of the WildBotW Monk BlueKihiro Moh
Breath of the WildBotW Monk BlueKorgu Chideh
Breath of the WildBotW Monk BlueKorsh O'hu
Breath of the WildBotW Monk BlueKuh Takkar
Breath of the WildBotW Monk BlueKuhn Sidajj
Breath of the WildBotW Monk BlueLakna Rokee
Breath of the WildBotW Monk BlueLanno Kooh
Breath of the WildBotW Monk BlueMaag Halan
Breath of the WildBotW Monk BlueMaag No'rah
Breath of the WildBotW Monk BlueMah Eliya
Breath of the WildBotW Monk BlueMaka Rah
Breath of the WildBotW Monk BlueMonk Maz Koshia
Breath of the WildBotW Monk BlueMezza Lo
Breath of the WildBotW Monk BlueMijah Rokee
Breath of the WildBotW Monk BlueMirro Shaz
Breath of the WildBotW Monk BlueMisae Suma
Breath of the WildBotW Monk BlueMo'a Keet
Breath of the WildBotW Monk BlueMogg Latan
Breath of the WildBotW Monk BlueMonk
Breath of the WildBotW Monk BlueMonya Toma
Breath of the WildBotW Monk BlueMozo Shenno
Breath of the WildBotW Monk BlueMuwo Jeem
Breath of the WildBotW Monk BlueMyahm Agana
Breath of the WildBotW Monk BlueNamika Ozz
Breath of the WildBotW Monk BlueNe'ez Yohma
Breath of the WildBotW Monk BlueNoe Rajee
Breath of the WildBotW Monk BlueNoya Neha
Breath of the WildBotW Monk BlueOman Au
Breath of the WildBotW Monk BlueOwa Daim
Breath of the WildBotW Monk BluePumaag Nitae
Breath of the WildBotW Monk BlueQaza Tokki
Breath of the WildBotW Monk BlueQua Raym
Breath of the WildBotW Monk BlueQukah Nata
Breath of the WildBotW Monk BlueRaqa Zunzo
Breath of the WildBotW Monk BlueRee Dahee
Breath of the WildBotW Monk BlueRin Oyaa
Breath of the WildBotW Monk BlueRinu Honika
Breath of the WildBotW Monk BlueRitaag Zumo
Breath of the WildBotW Monk BlueRohta Chigah
Breath of the WildBotW Monk BlueRok Uwog
Breath of the WildBotW Monk BlueRona Kachta
Breath of the WildBotW Monk BlueRota Ooh
Breath of the WildBotW Monk BlueRucco Maag
Breath of the WildBotW Monk BlueRuvo Korbah
Breath of the WildBotW Monk BlueSaas Ko'sah
Breath of the WildBotW Monk BlueSah Dahaj
Breath of the WildBotW Monk BlueSasa Kai
Breath of the WildBotW Monk BlueSato Koda
Breath of the WildBotW Monk BlueSha Gehma
Breath of the WildBotW Monk BlueSha Warvo
Breath of the WildBotW Monk BlueShada Naw
Breath of the WildBotW Monk BlueShae Katha
Breath of the WildBotW Monk BlueShae Loya
Breath of the WildBotW Monk BlueShae Mo'sah
Breath of the WildBotW Monk BlueShai Utoh
Breath of the WildBotW Monk BlueShai Yota
Breath of the WildBotW Monk BlueSharo Lun
Breath of the WildBotW Monk BlueShee Vaneer
Breath of the WildBotW Monk BlueShee Venath
Breath of the WildBotW Monk BlueSheem Dagoze
Breath of the WildBotW Monk BlueSheh Rata
Breath of the WildBotW Monk BlueShira Gomar
Breath of the WildBotW Monk BlueSho Dantu
Breath of the WildBotW Monk BlueShoda Sah
Breath of the WildBotW Monk BlueShoqa Tatone
Breath of the WildBotW Monk BlueShora Hah
Breath of the WildBotW Monk BlueSoh Kofi
Breath of the WildBotW Monk BlueSuma Sahma
Breath of the WildBotW Monk BlueTa'loh Naeg
Breath of the WildBotW Monk BlueTah Muhl
Breath of the WildBotW Monk BlueTahno O'ah
Breath of the WildBotW Monk BlueTakama Shiri
Breath of the WildBotW Monk BlueTawa Jinn
Breath of the WildBotW Monk BlueTena Ko'sah
Breath of the WildBotW Monk BlueTho Kayu
Breath of the WildBotW Monk BlueTo Quomo
Breath of the WildBotW Monk BlueToh Yahsa
Breath of the WildBotW Monk BlueToto Sah
Breath of the WildBotW Monk BlueTu Ka'loh
Breath of the WildBotW Monk BlueTutsuwa Nima
Breath of the WildBotW Monk BlueVoo Lota
Breath of the WildBotW Monk BlueWahgo Katta
Breath of the WildBotW Monk BlueYa Naga
Breath of the WildBotW Monk BlueYah Rin
Breath of the WildBotW Monk BlueYowaka Ita
Breath of the WildBotW Monk BlueZalta Wa
Breath of the WildBotW Monk BlueZe Kasho
Breath of the WildBotW Monk BlueZuna Kai
Breath of the WildBotW Sheikah Slate BlueAlbum
Breath of the WildBotW Sheikah Slate BlueHyrule Compendium
Breath of the WildBotW Sheikah Slate BlueRune
Breath of the WildBotW Sheikah Slate BlueSheikah Slate
Tears of the KingdomTotK MapMap
Tears of the KingdomTotK Mysterious VoiceMysterious Voice
Tears of the KingdomTotK Purah PadAdventure Log
Tears of the KingdomTotK Purah PadAlbum
Tears of the KingdomTotK Purah PadCharacter Profiles
Tears of the KingdomTotK Purah PadHyrule Compendium
Tears of the KingdomTotK Purah PadPurah Pad
Tears of the KingdomTotK YellowAutobuild
Freshly-Picked Tingle's Rosy RupeelandFPTRR GreenPinkle

local ColorData = mw.loadData("Module:Color/Data")

local Franchise = require("Module:Franchise")
local utilsString = require("Module:UtilsString")
local utilsTable = require("Module:UtilsTable")

local dialogueColors = {}
local colorKeys = utilsTable.keys(ColorData.colors)
for i, game in ipairs(Franchise.enum()) do
	local gameColorKeys = utilsTable.filter(colorKeys, utilsString._startsWith(game.." "))
	for i, colorKey in ipairs(gameColorKeys) do
		local color = ColorData.colors[colorKey]
		if color.isDefault then
			dialogueColors[game] = dialogueColors[game] or {}
			dialogueColors[game].default = colorKey
		else
			for i, source in ipairs(color.defaultFor or {}) do
				dialogueColors[game] = dialogueColors[game] or {}
				dialogueColors[game][source] = colorKey
			end
		end
	end
end

return {
	dialogueColors = dialogueColors
}