モジュール:Icon/data

From 日本TW架空国家WIKI
Jump to navigation Jump to search

このモジュールはModule:Iconで使われるアイコンのデータを指定します。

アイコンの追加

新しいアイコンは下記のように追加してください。

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

エイリアスのみ追加する場合は下記のように追加してください。

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

aliases、image、tooltipで追加される文字列に「"」が含まれる場合、次の例のように「\」を追加してください:"My \"quoted\" image.svg"

新しいアイコンやエイリアスを追加するとき、すでに存在するものと違う名前を指定してください。ツールチップは省略できますが、指定が推奨されています。

アイコンの除去

アイコンを除去するときは上記で追加した部分をそのまま除去してください。ただし、_DEFAULTModule:Iconで使われるので除去できません。


-- This module stores icon data for [[Module:Icon]].

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

local data = {
	fa = {
		image = "Featured article star.svg",
		tooltip = "秀逸な記事",
	},
	far = {
		image = "Cscr-star piece.png",
		tooltip = "Featured article review",
	},
	farc = {
		image = "Cscr-star piece.png",
		tooltip = "Featured article removal candidate",
	},
	ffa = {
		aliases = {"dfa"},
		image = "Featured article star - cross.svg",
		tooltip = "元秀逸な記事",
	},
	fac = {
		aliases = {"fan"},
		image = "Cscr-candidate.svg",
		tooltip = "秀逸な記事候補",
	},
	ffac = {
		aliases = {"nofa"},
		image = "Featured article star - cross.svg",
		tooltip = "秀逸な記事落選",
	},
	fl = {
		image = "Featured article star.svg",
		tooltip = "秀逸な一覧",
	},
	flrc = {
		aliases = {"flr"},
		image = "Cscr-star piece.png",
		tooltip = "Featured list removal candidate",
	},
	ffl = {
		aliases = {"dfl"},
		image = "Cscr-featured-strike.svg",
		tooltip = "元秀逸な一覧",
	},
	flc = {
		aliases = {"fln"},
		image = "Cscr-candidate.svg",
		tooltip = "秀逸な一覧候補",
	},
	fflc = {
		aliases = {"nofl"},
		image = "Featured article star - cross.svg",
		tooltip = "秀逸な一覧落選",
	},
	a = {
		image = "Symbol a class.svg",
		tooltip = "Aクラス記事",
	},
	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 star2.svg",
		tooltip = "良質な記事",
	},
	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 unsupport 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 = "Featured portalが2017年に廃止される以前、featured portalに指定されていた。",
	},
	fpor = {
		image = "Cscr-star piece.png",
		tooltip = "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クラス記事",
	},
	br = {
		aliases = {"bcr"},
		image = "Bclass-checklist.svg",
		tooltip = "B-Class review",
	},
	c = {
		image = "Symbol c class.svg",
		tooltip = "Cクラス記事",
	},
	start = {
		image = "Symbol start class.svg",
		tooltip = "スタートクラス記事",
	},
	stub = {
		image = "Symbol stub class.svg",
		tooltip = "スタブ記事",
	},
	list = {
		aliases = {"comparison"},
		image = "Symbol list class.svg",
		tooltip = "一覧記事",
	},
	no = {
		image = "Crystal button cancel.svg",
		tooltip = "Unknown-Class article",
	},
	book = {
		image = "Symbol book class2.svg",
		tooltip = "ウィキペディア・ブック",
	},
	category = {
		aliases = {"cat", "categ"},
		image = "Folder Hexagonal Icon.svg",
		tooltip = "カテゴリ",
	},
	disambiguation = {
		aliases = {"dab", "disamb", "disambig"},
		image = "Symbol dab class.svg",
		tooltip = "曖昧さ回避ページ",
	},
	image = {
		aliases = {"file"},
		image = "Video-x-generic.svg",
		tooltip = "メディアファイル",
	},
    needed = {
        image = "Symbol needed class.svg",
        tooltip = "Needed article",
    },
	portal = {
		image = "Portal.svg",
		tooltip = "ポータル",
	},
	project = {
		image = "Symbol information vote.svg",
		tooltip = "プロジェクトページ",
	},
	redirect = {
		aliases = {"red", "redir"},
		image = "Symbol redirect vote.svg",
		tooltip = "リダイレクト",
	},
	template = {
		aliases = {"temp", "templ"},
		image = "Symbol template class.svg",
		tooltip = "テンプレート",
	},
	essay = {
		image = "Essay.svg",
		tooltip = "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 = "Demoted article",
	},
	dyk = {
		image = "Symbol question.svg",
		tooltip = "Did You Know?",
	},
	dyk2 = {
		image = "DYK questionmark icon.svg",
		tooltip = "Did You Know?",
	},
	pr = {
		image = "Nuvola apps kedit.png",
		tooltip = "Peer review",
	},
	ppr = {
		image = "Nuvola apps kedit.png",
		tooltip = "Portal peer review",
	},
	q = {
		aliases = {"question"},
		image = "Symbol question.svg",
		tooltip = "Question",
	},
	qi = {
		image = "Quality images logo.svg",
		tooltip = "Quality image on Wikimedia Commons",
	},
	vi = {
		image = "Valued image seal.svg",
		tooltip = "Valued image on Wikimedia Commons",
	},
	tfa = {
		image = "Wikipedia-logo.svg",
		tooltip = "Today's Featured Article",
	},
	tfl = {
		image = "Wikipedia-logo.svg",
		tooltip = "Today's Featured List",
	},
	itn = {
		image = "Globe current.svg",
		tooltip = "In The News",
	},
	otd = {
		image = "Nuvola apps date.svg",
		tooltip = "On This Day",
	},
	wikiproject = {
		image = "People icon.svg",
		tooltip = "ウィキプロジェクト",
	},
	wikipedia = {
		image = "Wikipedia-logo.svg",
		tooltip = "ウィキペディア",
	},
	commons = {
		image = "Commons-logo.svg",
		tooltip = "コモンズ",
	},
	wikiquote = {
		image = "Wikiquote-logo.svg",
		tooltip = "ウィキクォート",
	},
	wikiversity = {
		image = "Wikiversity-logo.svg",
		tooltip = "ウィキバーシティ",
	},
	wikibooks = {
		image = "Wikibooks-logo.svg",
		tooltip = "ウィキブックス",
	},
	wikisource = {
		image = "Wikisource-logo.svg",
		tooltip = "ウィキソース",
	},
	wiktionary = {
		image = "Wiktionary-logo.svg",
		tooltip = "ウィクショナリー",
	},
	wikinews = {
		image = "Wikinews-logo.svg",
		tooltip = "ウィキニュース",
	},
	wikispecies = {
		image = "Wikispecies-logo.svg",
		tooltip = "ウィキスピーシーズ",
	},
	wikidata = {
		image = "Wikidata-logo.svg",
		tooltip = "ウィキデータ",
	},
	wikivoyage = {
		image = "Wikivoyage-logo.svg",
		tooltip = "ウィキボヤージュ",
	},
	meta = {
		image = "Wikimedia Community Logo.svg",
		tooltip = "メタウィキ",
	},
	four = {
		image = "Four Award.svg",
		tooltip = "Four Award",
	},
	million = {
		image = "Million award logo.svg",
		tooltip = "Million Award",
	},
	_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