Jump to content

Mòideal:Icon/data

O Wiktionary

(deasbaireachd⧼tpt-languages-separator⧽deasaich⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)

This module stores icon data for Mòideal:Icon.

A' cuir ris ìomhaigheagan - Adding icons

To add a new icon, add a table in the following format:

	code = {
		image = "My image name.xyz",
		tooltip = "My tooltip text",
	},

If you want to add aliases for the code, use the following format instead:

	code = {
		aliases = {"alias1", "alias2"},
		image = "My image name.xyz",
		tooltip = "My tooltip text",
	},

If any of the text you add has double quotes in, you will need to escape it with backslashes like this: "My \"quoted\" image.svg".

Please make sure that any codes and aliases that you add don't match any existing codes or aliases. If they do, one of them will be overwritten with the other (and it's not possible to say for certain which will be overwritten with which).

You can omit the tooltip text if you want, but it is recommended that you add it.

A' sguab às ìomhaigheagan - Removing icons

Removing icons is fairly easy. Just remove the relevant entry from the data table. You can't remove the _DEFAULT entry, as Mòideal:Icon relies on it being there.


-- This module stores icon data for [[Mòideal:Icon]].

--------------------------------------------------------------------------------
-- Icon data
--------------------------------------------------------------------------------

local data = {
	fa = {
		image = "Featured article star.svg",
		tooltip = "Artaigil brosnaichte - Featured article",
	},
	far = {
		image = "Cscr-star piece.png",
		tooltip = "Ath-sgrùdadh artaigil brosnaichte - Featured article review",
	},
	farc = {
		image = "Cscr-star piece.png",
		tooltip = "Tagraiche atharrachadh artaigil brosnaichte - Featured article removal candidate",
	},
	ffa = {
		aliases = {"dfa"},
		image = "Featured article star - cross.svg",
		tooltip = "Sean artaigil brosnaichte - Former featured article",
	},
	fac = {
		aliases = {"fan"},
		image = "Cscr-candidate.svg",
		tooltip = "Tagraiche artaigil brosnaichte - Featured article candidate",
	},
	ffac = {
		aliases = {"nofa"},
		image = "Featured article star - cross.svg",
		tooltip = "Tagraiche air fàiligeadh artaigil brosnaichte - Failed featured article candidate",
	},
	fl = {
		image = "Featured article star.svg",
		tooltip = "Liosta brosnaichte - Featured list",
	},
	flrc = {
		aliases = {"flr"},
		image = "Cscr-star piece.png",
		tooltip = "Featured list removal candidate",
	},
	ffl = {
		aliases = {"dfl"},
		image = "Cscr-featured-strike.svg",
		tooltip = "Former featured list",
	},
	flc = {
		aliases = {"fln"},
		image = "Cscr-candidate.svg",
		tooltip = "Featured list candidate",
	},
	fflc = {
		aliases = {"nofl"},
		image = "Cscr-former.svg",
		tooltip = "Failed featured list candidate",
	},
	a = {
		image = "Symbol a class.svg",
		tooltip = "A-Class article",
	},
	dac = {
		aliases = {"daa"},
		image = "Symbol unsupport A vote.svg",
		tooltip = "Demoted A-Class article",
	},
	acc = {
		aliases = {"acn", "aac"},
		image = "A candidate.svg",
		tooltip = "A-Class article candidate",
	},
	noac = {
		aliases = {"faac"},
		image = "Symbol unsupport A vote.svg",
		tooltip = "Failed A-Class article candidate",
	},
	ga = {
		image = "Symbol support vote.svg",
		tooltip = "Good article",
	},
	gar = {
		image = "GA Candidate Neutral vote(ChaosNil).svg",
		tooltip = "Good article reassessment",
	},
	dga = {
		image = "Symbol unsupport vote.svg",
		tooltip = "Delisted good article",
	},
	gan = {
		aliases = {"gac"},
		image = "GA candidate.svg",
		tooltip = "Good article nominee",
	},
	ga2 = {
		image = "Symbol neutral vote.svg",
		tooltip = "Good article, 2nd opinion",
	},
	gah = {
		image = "Symbol wait.svg",
		tooltip = "Good article on hold",
	},
	fgan = {
		aliases = {"noga", "gaf", "gf"},
		image = "Symbol oppose vote.svg",
		tooltip = "Failed good article nominee",
	},
	fp = {
		image = "Cscr-featured.svg",
		tooltip = "Featured picture",
	},
	fpc = {
		aliases = {"fpn"},
		image = "Cscr-candidate.svg",
		tooltip = "Featured picture candidate",
	},
	ffp = {
		image = "Cscr-former.svg",
		tooltip = "Former featured picture",
	},
	vp = {
		image = "ENWP VP Logo.svg",
		tooltip = "Valued picture",
	},
	vpc = {
		image = "Valued pics 1.svg",
		tooltip = "Valued picture candidate",
	},
	fs = {
		image = "Cscr-featured.svg",
		tooltip = "Featured sound",
	},
	ffs = {
		image = "Cscr-former.svg",
		tooltip = "Former featured sound",
	},
	fsc = {
		image = "Cscr-candidate.svg",
		tooltip = "Featured sound candidate",
	},
	fpo = {
		image = "Linecons big-star.svg",
		tooltip = "Before the featured portal process ceased in 2017, this had been designated as a featured portal.",
	},
	fpor = {
		image = "Cscr-star piece.png",
		tooltip = "Ath-sgrùdadh portail brosnaichte - Featured portal review",
	},
	ffpo = {
		image = "Featured article star - cross.svg",
		tooltip = "Former featured portal",
	},
	fpoc = {
		image = "Cscr-candidate.svg",
		tooltip = "Featured portal candidate",
	},
	ft = {
		image = "Cscr-featuredtopic.svg",
		tooltip = "Featured topic",
	},
	ftrc = {
		image = "Cscr-star piece.png",
		tooltip = "Featured topic removal candidate",
	},
	fft = {
		aliases = {"dft"},
		image = "DFT candidate_cluster.svg",
		tooltip = "Former featured topic",
	},
	ftc = {
		aliases = {"ftn"},
		image = "FT candidate cluster.svg",
		tooltip = "Featured topic candidate",
	},
	gt = {
		image = "Support cluster.svg",
		tooltip = "Good topic",
	},
	gtrc = {
		image = "Symbol unsupport vote.svg",
		tooltip = "Good topic removal candidate",
	},
	gtc = {
		aliases = {"gtn"},
		image = "GA candidate cluster.svg",
		tooltip = "Good topic candidate",
	},
	bplus = {
		aliases = {"b+"},
		image = "Symbol bplus class.svg",
		tooltip = "Bplus-Class article",
	},
	b = {
		image = "Symbol b class.svg",
		tooltip = "B-Class article",
	},
	br = {
		aliases = {"bcr"},
		image = "Bclass-checklist.svg",
		tooltip = "Ath-sgrùdadh clas B - B-Class review",
	},
	c = {
		image = "Symbol c class.svg",
		tooltip = "Artaigil clas C - C-Class article",
	},
	start = {
		image = "Symbol start class.svg",
		tooltip = "Artaigil clas tòiseachadh - Start-Class article",
	},
	stub = {
		image = "Symbol stub class.svg",
		tooltip = "Artaigil clas bunag - Stub-Class article",
	},
	list = {
		aliases = {"comparison"},
		image = "Symbol list class.svg",
		tooltip = "Artaigil clas-liosta - List-Class article",
	},
	no = {
		image = "Crystal button cancel.svg",
		tooltip = "Artaigil neo-aithnichte - Unknown-Class article",
	},
	book = {
		image = "Symbol book class2.svg",
		tooltip = "Leabhar Uicipeaid - Wikipedia book",
	},
	category = {
		aliases = {"cat", "categ"},
		image = "Folder Hexagonal Icon.svg",
		tooltip = "Roinn-seòrsa - Category",
	},
	disambiguation = {
		aliases = {"dab", "disamb", "disambig"},
		image = "Symbol dab class.svg",
		tooltip = "Disambiguation page",
	},
	image = {
		aliases = {"file"},
		image = "Video-x-generic.svg",
		tooltip = "Faidhle - File",
	},
    needed = {
        image = "Symbol needed class.svg",
        tooltip = "Artaigil a dhìth - Needed article",
    },
	outline = {
		image = "Global thinking.svg",
		tooltip = "Garbh-innse - Outline",
	},
        portal = {
		image = "Portal-puzzle.svg",
		tooltip = "Portal - Portal",
	},
	project = {
		image = "Symbol information vote.svg",
		tooltip = "Duilleag pròiseict - Project page",
	},
	redirect = {
		aliases = {"red", "redir"},
		image = "Symbol redirect vote2.svg",
		tooltip = "Ath-stiùireadh - Redirect",
	},
	template = {
		aliases = {"temp", "templ"},
		image = "Symbol template class.svg",
		tooltip = "Teamplaid - Template",
	},
	essay = {
		image = "Essay.svg",
		tooltip = "Aiste - Essay",
	},
	na = {
		image = "Symbol neutral vote.svg",
		tooltip = "Non-article page",
	},
	aa = {
		image = "Yes check.svg",
		tooltip = "Audited article of limited subject matter",
	},
	da = {
		image = "Symbol oppose vote.svg",
		tooltip = "Artaigil dh'ìoslaich - Demoted article",
	},
	dyk = {
		image = "Symbol question.svg",
		tooltip = "An robh fios agad? - Did You Know?",
	},
	dyk2 = {
		image = "DYK questionmark icon.svg",
		tooltip = "An robh fios agad? - Did You Know?",
	},
	pr = {
		image = "Nuvola apps kedit.png",
		tooltip = "Ath-sgrùdadh co-aoisean - Peer review",
	},
	ppr = {
		image = "Nuvola apps kedit.png",
		tooltip = "Ath-sgrùdadh co-aoisean portail - Portal peer review",
	},
	q = {
		aliases = {"question"},
		image = "Symbol question.svg",
		tooltip = "Ceist - Question",
	},
	qi = {
		image = "Quality images logo.svg",
		tooltip = "Ìomhaigh grìdeil air UiCumanta - Quality image on Wikimedia Commons",
	},
	vi = {
		image = "Valued image seal.svg",
		tooltip = "Ìomhaigh muileach air UiCumanta - Valued image on Wikimedia Commons",
	},
	tfa = {
		image = "Wikipedia-logo.svg",
		tooltip = "Artaigil brosnaichte an-diugh - Today's Featured Article",
	},
	tfl = {
		image = "Wikipedia-logo.svg",
		tooltip = "Liosta brosnaichte an-diugh - Today's Featured List",
	},
	itn = {
		image = "Globe current.svg",
		tooltip = "Anns na naidheachdan - In The News",
	},
	otd = {
		image = "Nuvola apps date.svg",
		tooltip = "Air an latha seo - On This Day",
	},
	wikiproject = {
		image = "People icon.svg",
		tooltip = "Duilleag Uici-pròiseact - WikiProject",
	},
	wikipedia = {
		image = "Wikipedia-logo.svg",
		tooltip = "Duilleag Uicipeid - Wikipedia page",
	},
	commons = {
		image = "Commons-logo.svg",
		tooltip = "Duilleag UiCumanta - Commons page",
	},
	wikiquote = {
		image = "Wikiquote-logo.svg",
		tooltip = "Duilleag Uici-Aithris - Wikiquote page",
	},
	wikiversity = {
		image = "Wikiversity-logo.svg",
		tooltip = "Duilleag UicOilthigh - Wikiversity page",
	},
	wikibooks = {
		image = "Wikibooks-logo.svg",
		tooltip = "Duilleag UicLeabhraichean - Wikibooks page",
	},
	wikisource = {
		image = "Wikisource-logo.svg",
		tooltip = "Duilleag UiciTobar - Wikisource page",
	},
	wiktionary = {
		image = "Wiktionary-logo.svg",
		tooltip = "Duilleag Uicleir - Wiktionary page",
	},
	wikinews = {
		image = "Wikinews-logo.svg",
		tooltip = "Duilleag Uici-Naidheachd - Wikinews page",
	},
	wikispecies = {
		image = "Wikispecies-logo.svg",
		tooltip = "Duilleag UiciGné - Wikispecies page",
	},
	wikidata = {
		image = "Wikidata-logo.svg",
		tooltip = "Duilleag Uici-dàta - Wikidata page",
	},
	wikivoyage = {
		image = "Wikivoyage-logo.svg",
		tooltip = "Duilleag Uici-bòidse - Wikivoyage page",
	},
	meta = {
		image = "Wikimedia Community Logo.svg",
		tooltip = "Duilleag UiciCeann {{agusan}}  MeadhanUici - Meta-wiki page",
	},
	four = {
		image = "Four Award.svg",
		tooltip = "Duais ceithir - Four Award",
	},
	million = {
		image = "Million award logo.svg",
		tooltip = "Duais Millean - Million Award",
	},
	module = {
		image = "Lua-logo-nolabel.svg",
		tooltip = "Mòideal - Module",
	},
	vital = {
		image = "Círculos_Concéntricos.svg",
		tooltip = "Artaigil riatanach - Vital article",
	},
	_DEFAULT = {
		image = "Symbol question.svg",
	}
}

--------------------------------------------------------------------------------
-- End icon data
--------------------------------------------------------------------------------

-- Make aliases work the same as normal keys, and remove the "aliases" subtables. 
for k, t in pairs(data) do
	if t.aliases then
		for i, alias in ipairs(t.aliases) do
			data[alias] = t
		end
		t.aliases = nil
	end
	data[k] = t
end

return data