FANDOM


local export = {}
 
local data = {
	['kaito'] = {
		'KAITO',
		{ '~', '~', },
		{ '~ (VOCALOID1)', 'VOCALOID1', },
		{ '~ V3', 'V3', },
	},
 
	['leon'] = {
		'LEON',
		{ '~', '~', },
		{ '~ (VOCALOID1)', 'VOCALOID1', },
	},
 
	['lola'] = {
		'LOLA',
		{ '~', '~', },
		{ '~ (VOCALOID1)', 'VOCALOID1', },
	},
 
	['meiko'] = {
		'MEIKO',
		{ '~', '~', },
		{ '~ (VOCALOID1)', 'VOCALOID1', },
		{ '~ V3', 'V3', },
	},
 
	['miriam'] = {
		'MIRIAM',
		{ '~', '~', },
		{ '~ (VOCALOID1)', 'VOCALOID1', },
	},
}
 
function export.show(frame)
	local voc_abbrev = frame.args[1]
 
	local voc_data = data[voc_abbrev]
	local voc_name = voc_data[1]
	table.remove(voc_data, 1)
 
	local navbar = mw.html.create('span')
	navbar:attr('class', 'navbar-container')
 
	for i, item in ipairs(data) do
		item[2] = '<span style="background:#95d2d3; color:#6e6e6e">' .. item[2] .. '</span>'
 
		local link = '[[' .. item[1] .. '|' .. item[2] .. ']]'
 
		navbar
			:wikitext(link)
			:tag('i')
				:wikitext('&#32;')
	end
 
	navbar = tostring(navbar)
 
	navbar = mw.ustring.gsub(navbar, '~', voc_name)
 
	return navbar
end
 
return export

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.