Module:Character Appearances

From fractalthorns wiki
Revision as of 00:01, 14 December 2023 by Sabre (talk | contribs)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Character Appearances/doc

local package = {}

local appearances = {
	VERCE = { 
		"[the dark]",
		"[open arms for the endless night]",
		"[music and meter and rhyme]",
		"[verses]",
		"[though strangers]",
		"[somehow i knew]"
	},
	VERDE = {
		"[painting will never be the same]",
		"[jealous pigments]",
		"[afterlife]",
		"[though strangers]",
		"[somehow i knew]"
	},
	VIBRA = {
		"[bit of a shame]",
		"[afterlife]",
		"[verses] (mentioned)",
		"[though strangers]",
		"[somehow i knew]",
		"† [interviews i]",
		"† [interviews ii]"
	},
	VERTI = {
		"[the sun sets]",
		"[marked stone]"
	},
	SILLH = {
		"[virtues ii]",
		"[discovery]",
		"[canopy ii] (mentioned)",
		"[canopy iii]",
		"[canopy iv]",
		"[commands]",
		"[dejil's daughter] (mentioned)",
		"[the fifth deity]",
		"[canopy v] (mentioned)",
		"[loose ends] (mentioned)",
		"[end of a journey]",
		"[virtues iii] (mentioned)",
		"[repentance]",
		"† [interviews ii] (mentioned)"
	},
	DZUNE = {
		"[discovery] (mentioned)",
		"[canopy ii] (mentioned)",
		"[canpoy iii] (mentioned)",
		"[commands] (mentioned)",
		"[the fifth diety]",
		"[canopy v] (mentioned)",
		"[end of a journey]",
		"[repentance]"
	},
	ZEHAL = {
		"[being forgotten] (mentioned)",
		"[i made a friend] (mentioned)",
		"[lucky] (mentioned)",
		"[obituary] (mentioned)",
		"[starseeking] (mentioned)",
		"[the historian] (mentioned)"
	},
	AEMIL = {
		"[virtues ii]",
		"[a piece of firebark]",
		"[canopy i]",
		"[canopy ii]",
		"[canopy iii]",
		"[canopy iv]",
		"[canopy v]",
		"[commands] (mentioned)",
		"[dejil's daughter] (mentioned)",
		"[through rockthorn]",
		"[end of a journey] (mentioned)",
		"† [interviews i]",
		"† [interviews ii]"
	},
	LOXXE = {
		"[virtues i]",
		"[virtues ii]",
		"[a piece of firebark]",
		"[canopy i]",
		"[canopy ii]",
		"[canopy iii]",
		"[canopy v]",
		"[dejil's daughter]",
		"[nothing without its price] (mentioned)",
		"[loose ends] (mentioned)",
		"[through rockthorn]",
		"[virtues iii]",
		"† [interviews i]",
		"† [interviews ii]"
	},
	VETTE = {
		"[dreams of sunlight]",
		"[the historian] (mentioned)",
		"[warning]",
		"[lost and found]",
		"[dark whispers]",
		"[goodbyes i] (mentioned)",
		"[goodbyes ii]",
		"[secret agents] (mentioned)",
		"[commands]",
		"[the fifth diety]",
		"[end of a journey]"
	},
	MELLI = {
		"[dreams of sunlight]",
		"[warning] (mentioned)",
		"[dark whispers]",
		"[goodbyes ii] (mentioned)"
	},
	KIRII = {
		"[warning] (mentioned)",
		"[lost and found]",
		"[goodbyes i]",
		"[secret agents]",
		"[just in time]"
	},
	METIS = {
		"[warning] (mentioned)",
		"[lost and found]",
		"[goodbyes i] (mentioned)",
		"[secret agents]",
		"[just in time]"
	},
	LOTUS = {
		"[compromises i]",
		"[compromises ii]",
		"[halls of sculpture]",
		"[exfiltration]",
		"[warning] (mentioned)",
		"[lost and found]",
		"[secret agents] (mentioned)",
		"[dark whispers]",
		"[goodbyes i] (mentioned)",
		"[goodbyes ii]",
		"[life will change]",
		"[only ashes to rule] (mentioned)"
	},
	DZANE = {
		"[minehead]"
	},
	ROMAL = {
		"[compromises i]",
		"[compromises ii]",
		"[the historian] (mentioned)",
		"[exfiltration]",
		"[goodbyes i]",
		"[goodbyes ii]",
		"[waiting to die]",
		"[demonstration of spirit]",
		"[just in time]",
		"[life will change]",
		"[loyalty] (mentioned)",
		"[what was meant to be found]",
		"[loose ends]",
		"[end of a journey]",
		"[decimation] (mentioned)",
		"[only ashes to rule]",
		"† [interviews i]",
		"† [interviews ii]"
	},
	JAKAL = {
		"[starseeking]",
		"[demonstration of spirit]"
	},
	ELLAI = {
		"[being forgotten]",
		"[starseeking]",
		"[the historian] (mentioned)",
		"[demonstration of spirit]"
	},
	MEAZS = {
		"[being forgotten]",
		"[starseeking]",
		"[the historian] (mentioned)",
		"[demonstration of spirit]",
		"[what they deserve]",
		"[decimation] (mentioned)",
		"[not weakness] (mentioned)",
		"[the true king]",
		"† [interviews i]",
	}
}

function package.get_table_for_character(frame)
	local character = frame.args[1]
	local result = {}
	
	result[#result + 1] = '<table class = "wikitable">'
	result[#result + 1] = '<tr><th>[[' .. character .. ']]</th></tr>'
	
	for _, record in pairs(appearances[character]) do
		local record_link = 'https://doughbyte.com/art/?show=' .. string.gsub(record, ' ', '_')
		result[#result + 1] = '<tr><td>[' .. record_link .. ' ' .. record .. ']</tr></td>'
	end
	
	result[#result + 1] = "</table>"
    return table.concat(result, '\n')
end

return package