پودمان:Icon/data: تفاوت میان نسخه‌ها

از امامت‌پدیا، دانشنامهٔ امامت و ولایت
(Match enwiki)
 
جز (۱ نسخه واردشده)
 
(۴ نسخهٔ میانی ویرایش شده توسط ۳ کاربر نشان داده نشد)
خط ۷: خط ۷:
local data = {
local data = {
fa = {
fa = {
aliases = {"برگزیده", "مب"},
image = "Featured article star.svg",
image = "Symbol_star_gold.svg",
tooltip = "Featured article",
tooltip = "مقالهٔ برگزیده",
link = true,
},
},
far = {
far = {
aliases = {"بمب"},
image = "Cscr-star piece.png",
image = "Symbol unsupport star gold.svg",
tooltip = "Featured article review",
tooltip = "بازبینی مقالهٔ برگزیده",
link = true,
},
},
farc = {
farc = {
aliases = {"حمب"},
image = "Cscr-star piece.png",
image = "Symbol unsupport star gold.svg",
tooltip = "Featured article removal candidate",
tooltip = "نامزد حذف از مقاله‌های برگزیده",
link = true,
},
},
ffa = {
ffa = {
aliases = {"dfa", "مبس"},
aliases = {"dfa"},
image = "FA candidate gold former.svg",
image = "Featured article star - cross.svg",
tooltip = "مقالهٔ برگزیدهٔ سابق",
tooltip = "Former featured article",
link = true,
},
},
fac = {
fac = {
aliases = {"fan", "گمب"},
aliases = {"fan"},
image = "FA_candidate_gold.svg",
image = "Cscr-candidate.svg",
tooltip = "نامزد مقالهٔ برگزیده",
tooltip = "Featured article candidate",
link = true,
},
},
ffac = {
ffac = {
aliases = {"nofa", "نمب"},
aliases = {"nofa"},
image = "FA candidate gold former.svg",
image = "Featured article star - cross.svg",
tooltip = "نامزد ناموفق مقالهٔ برگزیدهٔ",
tooltip = "Failed featured article candidate",
link = true,
},
},
fl = {
fl = {
aliases = {"فب", "فهرست برگزیده"},
image = "Featured article star.svg",
image = "Symbol_star_660080.svg",
tooltip = "Featured list",
tooltip = "فهرست برگزیده",
link = true,
},
},
flrc = {
flrc = {
aliases = {"flr", "بفب"},
aliases = {"flr"},
image = "Symbol star 660080 unsupport.svg",
image = "Cscr-star piece.png",
tooltip = "نامزد حذف از فهرست‌های برگزیده",
tooltip = "Featured list removal candidate",
link = true,
},
},
ffl = {
ffl = {
aliases = {"dfl", "فبس"},
aliases = {"dfl"},
image = "Symbol star 660080 unsupport.svg",
image = "Cscr-featured-strike.svg",
tooltip = "فهرست برگزیدهٔ سابق",
tooltip = "Former featured list",
link = true,
},
},
flc = {
flc = {
aliases = {"fln", "گفب"},
aliases = {"fln"},
image = "Symbol star 660080 candidate.svg",
image = "Cscr-candidate.svg",
tooltip = "نامزد فهرست برگزیده",
tooltip = "Featured list candidate",
link = true,
},
},
fflc = {
fflc = {
aliases = {"nofl", "نفب"},
aliases = {"nofl"},
image = "Symbol star 660080 unsupport.svg",
image = "Cscr-former.svg",
tooltip = "نامزدی ناموفق فهرست برگزیده",
tooltip = "Failed featured list candidate",
link = true,
},
},
a = {
a = {
aliases = {"عالی"},
image = "Symbol a class.svg",
image = "Symbol a class.svg",
tooltip = "مقالهٔ درجه عالی",
tooltip = "A-Class article",
link = true,
},
},
dac = {
dac = {
aliases = {"daa"},
aliases = {"daa"},
image = "Symbol unsupport A vote.svg",
image = "Symbol unsupport A vote.svg",
tooltip = "مقالهٔ درجه عالی تنزل‌یافته",
tooltip = "Demoted A-Class article",
link = true,
},
},
acc = {
acc = {
aliases = {"acn", "aac"},
aliases = {"acn", "aac"},
image = "A candidate.svg",
image = "A candidate.svg",
tooltip = "نامزد مقالهٔ درجه عالی",
tooltip = "A-Class article candidate",
link = true,
},
},
noac = {
noac = {
aliases = {"faac"},
aliases = {"faac"},
image = "Symbol unsupport A vote.svg",
image = "Symbol unsupport A vote.svg",
tooltip = "نامزدی ناموفق مقالهٔ درجه عالی",
tooltip = "Failed A-Class article candidate",
link = true,
},
},
ga = {
ga = {
aliases = {"خوب"},
image = "Symbol support vote.svg",
image = "Symbol_star2.svg",
tooltip = "Good article",
tooltip = "مقالهٔ خوب",
link = false,
},
},
gar = {
gar = {
aliases = {"بمخ"},
image = "GA Candidate Neutral vote(ChaosNil).svg",
image = "Symbol_unsupport_star_green.svg",
tooltip = "Good article reassessment",
tooltip = "بازبینی مقالهٔ خوب",
link = false,
},
},
dga = {
dga = {
aliases = {"حمخ"},
image = "Symbol unsupport vote.svg",
image = "Symbol unsupport plain-green.svg",
tooltip = "Delisted good article",
tooltip = "مقالهٔ خوب حذف‌شده از فهرست",
link = false,
},
},
gan = {
gan = {
aliases = {"gac", "گمخ"},
aliases = {"gac"},
image = "Symbol_star2_-_candidate.svg",
image = "GA candidate.svg",
tooltip = "نامزد مقالهٔ خوب",
tooltip = "Good article nominee",
link = false,
},
},
ga2 = {
ga2 = {
image = "Symbol support vote-stroked.svg",
image = "Symbol neutral vote.svg",
tooltip = "مقالهٔ خوب، نظر دوم",
tooltip = "Good article, 2nd opinion",
link = false,
},
},
gah = {
gah = {
aliases = {"مخم"},
image = "Symbol wait.svg",
image = "Symbol wait.svg",
tooltip = "مقالهٔ خوب معلق",
tooltip = "Good article on hold",
link = false,
},
},
fgan = {
fgan = {
aliases = {"noga", "gaf", "gf"},
aliases = {"noga", "gaf", "gf"},
image = "Symbol oppose vote.svg",
image = "Symbol oppose vote.svg",
tooltip = "نامزدی ناموفق مقالهٔ خوب",
tooltip = "Failed good article nominee",
link = false,
},
},
fp = {
fp = {
aliases = {"گنب"},
image = "Cscr-featured.svg",
image = "Symbol star blue.svg",
tooltip = "Featured picture",
tooltip = "نگارهٔ برگزیده",
link = true,
},
},
fpc = {
fpc = {
aliases = {"fpn"},
aliases = {"fpn"},
image = "Symbol star blue candidate.svg",
image = "Cscr-candidate.svg",
tooltip = "نامزد نگارهٔ بگزیده",
tooltip = "Featured picture candidate",
link = true,
},
},
ffp = {
ffp = {
image = "Symbol star blue unsupport.svg",
image = "Cscr-former.svg",
tooltip = "نگارهٔ برگزیدهٔ سابق",
tooltip = "Former featured picture",
link = true,
},
},
vp = {
vp = {
image = "ENWP VP Logo.svg",
image = "ENWP VP Logo.svg",
tooltip = "نگارهٔ ارزشمند",
tooltip = "Valued picture",
link = true,
},
},
vpc = {
vpc = {
image = "Valued pics 1.svg",
image = "Valued pics 1.svg",
tooltip = "نامزد نگارهٔ ارزشمند",
tooltip = "Valued picture candidate",
link = true,
},
},
fs = {
fs = {
image = "Cscr-featured.svg",
image = "Cscr-featured.svg",
tooltip = "آوای برگزیده",
tooltip = "Featured sound",
link = true,
},
},
ffs = {
ffs = {
image = "Cscr-former.svg",
image = "Cscr-former.svg",
tooltip = "آوای برگزیدهٔ سابق",
tooltip = "Former featured sound",
link = true,
},
},
fsc = {
fsc = {
image = "Cscr-candidate.svg",
image = "Cscr-candidate.svg",
tooltip = "نامزد آوای برگزیده",
tooltip = "Featured sound candidate",
link = true,
},
},
fpo = {
fpo = {
aliases = {"دب"},
image = "Linecons big-star.svg",
image = "Symbol_star3.svg",
tooltip = "Before the featured portal process ceased in 2017, this had been designated as a featured portal.",
tooltip = "درگاه برگزیده",
link = true,
},
},
fpor = {
fpor = {
aliases = {"بدب"},
image = "Cscr-star piece.png",
image = "Symbol unsupport star gray.svg",
tooltip = "Featured portal review",
tooltip = "بازبینی درگاه برگزیده",
link = true,
},
},
ffpo = {
ffpo = {
image = "Symbol unsupport star gray.svg",
image = "Featured article star - cross.svg",
tooltip = "درگاه برگزیدهٔ سابق",
tooltip = "Former featured portal",
link = true,
},
},
fpoc = {
fpoc = {
aliases = {"گدب"},
image = "Cscr-candidate.svg",
image = "Symbol_star3_-_candidate.svg",
tooltip = "Featured portal candidate",
tooltip = "نامزد درگاه برگزیده",
link = true,
},
},
ft = {
ft = {
aliases = {"موضوعب"},
image = "Cscr-featuredtopic.svg",
image = "Cscr-featuredtopic-fawiki.svg",
tooltip = "Featured topic",
tooltip = "موضوع برگزیده",
link = true,
},
},
ftrc = {
ftrc = {
aliases = {"بموضوعب"},
image = "Cscr-star piece.png",
image = "Gold-stars-topic.svg",
tooltip = "Featured topic removal candidate",
tooltip = "نامزد حذف از موضوع‌های برگزیده",
link = true,
},
},
fft = {
fft = {
aliases = {"dft"},
aliases = {"dft"},
image = "Gold-stars-topic.svg",
image = "DFT candidate_cluster.svg",
tooltip = "موضوع برگزیدهٔ سابق",
tooltip = "Former featured topic",
link = true,
},
},
ftc = {
ftc = {
aliases = {"ftn", "گموب"},
aliases = {"ftn"},
image = "Symbol star3-candidate-fa.svg",
image = "FT candidate cluster.svg",
tooltip = "نامزد موضوع برگزیده",
tooltip = "Featured topic candidate",
link = false,
},
},
gt = {
gt = {
aliases = {"موضوعخ"},
image = "Support cluster.svg",
image = "Symbol star2-fa.svg",
tooltip = "Good topic",
tooltip = "موضوع خوب",
link = false,
},
},
gtrc = {
gtrc = {
aliases = {"بموضوعخ"},
image = "Symbol unsupport vote.svg",
image = "Green-stars-topic.svg",
tooltip = "Good topic removal candidate",
tooltip = "نامزد حذف از موضوع‌های خوب",
link = false,
},
},
gtc = {
gtc = {
aliases = {"gtn", "گموخ"},
aliases = {"gtn"},
image = "Symbol star2-candidate-fa.svg",
image = "GA candidate cluster.svg",
tooltip = "نامزد موضوع خوب",
tooltip = "Good topic candidate",
link = false,
},
},
bplus = {
bplus = {
aliases = {"b+"},
aliases = {"b+"},
image = "Symbol bplus class.svg",
image = "Symbol bplus class.svg",
tooltip = "مقالهٔ درجه متوسط رو به بالا", -- ?!
tooltip = "Bplus-Class article",
link = true,
},
},
b = {
b = {
aliases = {"متوسط"},
image = "Symbol b class.svg",
image = "Symbol b class-farsi.svg",
tooltip = "B-Class article",
tooltip = "مقالهٔ متوسط",
link = true,
},
},
br = {
br = {
aliases = {"bcr"},
aliases = {"bcr"},
image = "Bclass-checklist.svg",
image = "Bclass-checklist.svg",
tooltip = "بازبینی درجه متوسط",
tooltip = "B-Class review",
link = true,
},
},
c = {
c = {
aliases = {"ضعیف"},
image = "Symbol c class.svg",
image = "Symbol c class-farsi.svg",
tooltip = "C-Class article",
tooltip = "مقالهٔ ضعیف",
link = true,
},
},
start = {
start = {
aliases = {"ابتدایی"},
image = "Symbol start class.svg",
image = "Symbol start class.svg",
tooltip = "مقالهٔ ابتدایی",
tooltip = "Start-Class article",
link = true,
},
},
stub = {
stub = {
aliases = {"خرد"},
image = "Symbol stub class.svg",
image = "Symbol stub class.svg",
tooltip = "مقالهٔ خرد",
tooltip = "Stub-Class article",
link = true,
},
},
list = {
list = {
aliases = {"comparison", "فهرست"},
aliases = {"comparison"},
image = "Symbol list class.svg",
image = "Symbol list class.svg",
tooltip = "مقالهٔ درجه فهرست",
tooltip = "List-Class article",
link = false,
},
},
no = {
no = {
aliases = {"نه"},
image = "Crystal button cancel.svg",
image = "Crystal button cancel.svg",
tooltip = "مقالهٔ با درجهٔ ناشناخته",
tooltip = "Unknown-Class article",
link = true,
},
},
book = {
book = {
aliases = {"کتاب"},
image = "Symbol book class2.svg",
image = "Emoji u1f4d6.svg",
tooltip = "Wikipedia book",
tooltip = "کتاب ویکی‌پدیا",
link = true,
},
},
category = {
category = {
aliases = {"cat", "categ", "رده"},
aliases = {"cat", "categ"},
image = "Symbol category class.svg",
image = "Symbol category class.svg",
tooltip = "رده",
tooltip = "Category",
link = false,
},
},
disambiguation = {
disambiguation = {
aliases = {"dab", "disamb", "disambig", "ابهام‌زدایی"},
aliases = {"dab", "disamb", "disambig"},
image = "Symbol dab class.svg",
image = "Symbol dab class.svg",
tooltip = "صفحهٔ ابهام‌زدایی",
tooltip = "Disambiguation page",
link = true,
},
},
image = {
image = {
aliases = {"file", "پرونده"},
aliases = {"file"},
image = "Video-x-generic.svg",
image = "Symbol file class.svg",
tooltip = "پرونده",
tooltip = "File",
link = true,
},
needed = {
image = "Symbol needed class.svg",
tooltip = "Needed article",
link = false,
},
},
    needed = {
        image = "Symbol needed class.svg",
        tooltip = "مقالهٔ مورد نیاز",
    },
outline = {
outline = {
image = "Global thinking.svg",
image = "Global thinking.svg",
tooltip = "نمای کلی",
tooltip = "Outline",
link = false,
},
},
    portal = {
portal = {
    aliases = {"درگاه"},
image = "Symbol portal class.svg",
image = "Portal-puzzle.svg",
tooltip = "Portal",
tooltip = "درگاه",
link = true,
},
},
project = {
project = {
aliases = {"پروژه"},
image = "Symbol project class.svg",
image = "Symbol information vote.svg",
tooltip = "Project page",
tooltip = "صفحهٔ پروژه",
link = false,
},
},
redirect = {
redirect = {
aliases = {"red", "redir", "تغییرمسیر"},
aliases = {"red", "redir"},
image = "Symbol redirect vote2.svg",
image = "Symbol redirect vote2.svg",
tooltip = "تغییرمسیر",
tooltip = "Redirect",
link = true,
},
},
template = {
template = {
aliases = {"temp", "templ", "الگو"},
aliases = {"temp", "templ"},
image = "Symbol template class.svg",
image = "Symbol template class.svg",
tooltip = "الگو",
tooltip = "Template",
link = false,
},
},
essay = {
essay = {
aliases = {"انشا"},
image = "Essay.svg",
image = "Essay.svg",
tooltip = "انشا",
tooltip = "Essay",
link = false,
},
},
na = {
na = {
aliases = {"ممتنع"},
image = "Symbol na class.svg",
image = "Symbol neutral vote.svg",
tooltip = "Non-article page",
tooltip = "صفحهٔ غیرمقاله",
link = true,
},
},
aa = {
aa = {
aliases = {"موافق"},
image = "Yes check.svg",
image = "Yes check.svg",
tooltip = "مقالهٔ ممیزی‌شده از موضوع محدود",
tooltip = "Audited article of limited subject matter",
link = false,
},
},
da = {
da = {
aliases = {"مخالف"},
image = "Symbol oppose vote.svg",
image = "Symbol oppose vote.svg",
tooltip = "مقالهٔ تنزل‌یافته",
tooltip = "Demoted article",
link = false,
},
},
dyk = {
dyk = {
aliases = {"آمیک"},
image = "Symbol question.svg",
image = "Symbol_question_fa.svg",
tooltip = "Did You Know?",
tooltip = "آیا می‌دانستید که؟",
link = false,
},
},
dyk2 = {
dyk2 = {
aliases = {"آمیک۲"},
image = "DYK questionmark icon.svg",
image = "DYK questionmark icon Arabic.svg",
tooltip = "Did You Know?",
tooltip = "آیا می‌دانستید که؟",
link = false,
},
},
pr = {
pr = {
image = "Nuvola apps kedit.png",
image = "Nuvola apps kedit.png",
tooltip = "بازبینی همتا",
tooltip = "Peer review",
link = true,
},
},
ppr = {
ppr = {
image = "Nuvola apps kedit.png",
image = "Nuvola apps kedit.png",
tooltip = "بازبینی همتای درگاه",
tooltip = "Portal peer review",
link = true,
},
},
q = {
q = {
aliases = {"question", "سوال", "پرسش"},
aliases = {"question"},
image = "Symbol_question_fa.svg",
image = "Symbol question.svg",
tooltip = "پرسش",
tooltip = "Question",
link = false,
},
cleanup = {
image = "Edit-clear.svg",
tooltip = "Cleanup work",
link = false,
},
},
qi = {
qi = {
image = "Quality images logo.svg",
image = "Quality images logo.svg",
tooltip = "نگارهٔ باکیفیت در ویکی‌انبار",
tooltip = "Quality image on Wikimedia Commons",
link = false,
},
},
vi = {
vi = {
image = "Valued image seal.svg",
image = "Valued image seal.svg",
tooltip = "نگارهٔ ارزشمند در ویکی‌انبار",
tooltip = "Valued image on Wikimedia Commons",
link = false,
},
},
tfa = {
tfa = {
image = "Wikipedia-logo.svg",
image = "Wikipedia-logo.svg",
tooltip = "مقالهٔ برگزیدهٔ امروز",
tooltip = "Today's Featured Article",
link = true,
},
},
tfl = {
tfl = {
image = "Wikipedia-logo.svg",
image = "Wikipedia-logo.svg",
tooltip = "فهرست برگزیدهٔ امروز",
tooltip = "Today's Featured List",
link = true,
},
},
itn = {
itn = {
aliases = {"خبر"},
image = "Globe current.svg",
image = "Globe current.svg",
tooltip = "از میان خبرها",
tooltip = "In The News",
link = true,
},
},
otd = {
otd = {
aliases = {"یادبود"},
image = "Nuvola apps date.svg",
image = "Nuvola apps date.svg",
tooltip = "یادبود",
tooltip = "On This Day",
link = true,
},
},
wikiproject = {
wikiproject = {
aliases = {"ویکی‌پروژه"},
image = "People icon.svg",
image = "People icon.svg",
tooltip = "ویکی‌پروژه",
tooltip = "WikiProject",
link = false,
},
goce = {
image = "Writing Magnifying.PNG",
tooltip = "Guild of Copy Editors",
link = true,
},
},
wikipedia = {
wikipedia = {
aliases = {"ویکی‌پدیا"},
image = "Wikipedia-logo.svg",
image = "Wikipedia-logo.svg",
tooltip = "صفحهٔ ویکی‌پدیا",
tooltip = "Wikipedia page",
link = true,
},
},
commons = {
commons = {
aliases = {"انبار", "ویکی‌انبار"},
image = "Commons-logo.svg",
image = "Commons-logo.svg",
tooltip = "صفحهٔ ویکی‌انبار",
tooltip = "Commons page",
link = false,
},
},
wikiquote = {
wikiquote = {
aliases = {"گفتاورد", "ویکی‌گفتاورد"},
image = "Wikiquote-logo.svg",
image = "Wikiquote-logo.svg",
tooltip = "صفحهٔ ویکی‌گفتاورد",
tooltip = "Wikiquote page",
link = false,
},
},
wikiversity = {
wikiversity = {
aliases = {"ویکی‌دانشگاه"},
image = "Wikiversity logo 2017.svg",
image = "Wikiversity logo 2017.svg",
tooltip = "صفحهٔ ویکی‌دانشگاه",
tooltip = "Wikiversity page",
link = true,
},
},
wikibooks = {
wikibooks = {
aliases = {"ویکی‌کتاب"},
image = "Wikibooks-logo.svg",
image = "Wikibooks-logo.svg",
tooltip = "صفحهٔ ویکی‌کتاب",
tooltip = "Wikibooks page",
link = true,
},
},
wikisource = {
wikisource = {
aliases = {"ویکی‌نبشته", "نبشته"},
image = "Wikisource-logo.svg",
image = "Wikisource-logo.svg",
tooltip = "صفحهٔ ویکی‌نبشته",
tooltip = "Wikisource page",
link = true,
},
},
wiktionary = {
wiktionary = {
aliases = {"ویکی‌واژه", "واژه"},
image = "Wiktionary-logo.svg",
image = "Wiktionary-logo.svg",
tooltip = "صفحهٔ ویکی‌واژه",
tooltip = "Wiktionary page",
link = true,
},
},
wikinews = {
wikinews = {
aliases = {"ویکی‌خبر"},
image = "Wikinews-logo.svg",
image = "Wikinews-logo.svg",
tooltip = "صفحهٔ ویکی‌خبر",
tooltip = "Wikinews page",
link = true,
},
},
wikispecies = {
wikispecies = {
aliases = {"گونه", "ویکی‌گونه"},
image = "Wikispecies-logo.svg",
image = "Wikispecies-logo.svg",
tooltip = "صفحهٔ ویکی‌گونه",
tooltip = "Wikispecies page",
link = true,
},
},
wikidata = {
wikidata = {
aliases = {"ویکی‌داده", "داده"},
image = "Wikidata-logo.svg",
image = "Wikidata-logo.svg",
tooltip = "صفحهٔ ویکی‌داده",
tooltip = "Wikidata page",
link = false,
},
},
wikivoyage = {
wikivoyage = {
aliases = {"سفر", "ویکی‌سفر"},
image = "Wikivoyage-logo.svg",
image = "Wikivoyage-logo.svg",
tooltip = "صفحهٔ ویکی‌سفر",
tooltip = "Wikivoyage page",
link = true,
},
},
meta = {
meta = {
aliases = {"متا", "متاویکی", "فراویکی"},
image = "Wikimedia Community Logo.svg",
image = "Wikimedia Community Logo.svg",
tooltip = "صفحهٔ فراویکی",
tooltip = "Meta-wiki page",
link = false,
},
},
four = {
four = {
aliases = {"چهار"},
aliases = {"4a"},
image = "Four Award fa.svg",
image = "Four Award.svg",
tooltip = "جایزهٔ چهار",
tooltip = "Four Award",
link = false,
},
},
million = {
million = {
aliases = {"میلیون"},
image = "Million award logo.svg",
image = "Million award logo.svg",
tooltip = "جایزهٔ میلیون",
tooltip = "Million Award",
link = true,
},
},
module = {
module = {
image = "Lua-logo-nolabel.svg",
image = "Lua-logo-nolabel.svg",
tooltip = "پودمان",
tooltip = "Module",
link = false,
},
},
vital = {
vital = {
image = "Círculos_Concéntricos.svg",
image = "Círculos_Concéntricos.svg",
tooltip = "مقالهٔ حیاتی",
tooltip = "Vital article",
link = false,
},
potd  = {
image = "Wikipedia-logo.svg",
tooltip = "Picture of the Day",
link = true,
},
},
_DEFAULT = {
    _DEFAULT = {
image = "Symbol_question_fa.svg",
image = "Symbol question.svg",
link = false,
}
}
}
}
خط ۴۵۲: خط ۵۱۲:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


-- Make aliases work the same as normal keys, and remove the "aliases" subtables.  
-- Make aliases work the same as normal keys, and remove the "aliases" subtables.
local result = {}
local ret= {}
for k, t in pairs(data) do
for code, iconData in pairs(data) do
if t.aliases then
iconData.canonicalCode = code
for i, alias in ipairs(t.aliases) do
if iconData.aliases then
result[alias] = t
for _, alias in ipairs(iconData.aliases) do
ret[alias] = iconData
end
end
t.aliases = nil
iconData.aliases = nil
end
end
result[k] = t
ret[code] = iconData
end
end


return result
return ret

نسخهٔ کنونی تا ‏۱۸ نوامبر ۲۰۲۲، ساعت ۱۳:۳۸

توضیحات این پودمان می‌تواند در پودمان:Icon/data/توضیحات قرار گیرد.

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

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

local data = {
	fa = {
		image = "Featured article star.svg",
		tooltip = "Featured article",
		link = true,
	},
	far = {
		image = "Cscr-star piece.png",
		tooltip = "Featured article review",
		link = true,
	},
	farc = {
		image = "Cscr-star piece.png",
		tooltip = "Featured article removal candidate",
		link = true,
	},
	ffa = {
		aliases = {"dfa"},
		image = "Featured article star - cross.svg",
		tooltip = "Former featured article",
		link = true,
	},
	fac = {
		aliases = {"fan"},
		image = "Cscr-candidate.svg",
		tooltip = "Featured article candidate",
		link = true,
	},
	ffac = {
		aliases = {"nofa"},
		image = "Featured article star - cross.svg",
		tooltip = "Failed featured article candidate",
		link = true,
	},
	fl = {
		image = "Featured article star.svg",
		tooltip = "Featured list",
		link = true,
	},
	flrc = {
		aliases = {"flr"},
		image = "Cscr-star piece.png",
		tooltip = "Featured list removal candidate",
		link = true,
	},
	ffl = {
		aliases = {"dfl"},
		image = "Cscr-featured-strike.svg",
		tooltip = "Former featured list",
		link = true,
	},
	flc = {
		aliases = {"fln"},
		image = "Cscr-candidate.svg",
		tooltip = "Featured list candidate",
		link = true,
	},
	fflc = {
		aliases = {"nofl"},
		image = "Cscr-former.svg",
		tooltip = "Failed featured list candidate",
		link = true,
	},
	a = {
		image = "Symbol a class.svg",
		tooltip = "A-Class article",
		link = true,
	},
	dac = {
		aliases = {"daa"},
		image = "Symbol unsupport A vote.svg",
		tooltip = "Demoted A-Class article",
		link = true,
	},
	acc = {
		aliases = {"acn", "aac"},
		image = "A candidate.svg",
		tooltip = "A-Class article candidate",
		link = true,
	},
	noac = {
		aliases = {"faac"},
		image = "Symbol unsupport A vote.svg",
		tooltip = "Failed A-Class article candidate",
		link = true,
	},
	ga = {
		image = "Symbol support vote.svg",
		tooltip = "Good article",
		link = false,
	},
	gar = {
		image = "GA Candidate Neutral vote(ChaosNil).svg",
		tooltip = "Good article reassessment",
		link = false,
	},
	dga = {
		image = "Symbol unsupport vote.svg",
		tooltip = "Delisted good article",
		link = false,
	},
	gan = {
		aliases = {"gac"},
		image = "GA candidate.svg",
		tooltip = "Good article nominee",
		link = false,
	},
	ga2 = {
		image = "Symbol neutral vote.svg",
		tooltip = "Good article, 2nd opinion",
		link = false,
	},
	gah = {
		image = "Symbol wait.svg",
		tooltip = "Good article on hold",
		link = false,
	},
	fgan = {
		aliases = {"noga", "gaf", "gf"},
		image = "Symbol oppose vote.svg",
		tooltip = "Failed good article nominee",
		link = false,
	},
	fp = {
		image = "Cscr-featured.svg",
		tooltip = "Featured picture",
		link = true,
	},
	fpc = {
		aliases = {"fpn"},
		image = "Cscr-candidate.svg",
		tooltip = "Featured picture candidate",
		link = true,
	},
	ffp = {
		image = "Cscr-former.svg",
		tooltip = "Former featured picture",
		link = true,
	},
	vp = {
		image = "ENWP VP Logo.svg",
		tooltip = "Valued picture",
		link = true,
	},
	vpc = {
		image = "Valued pics 1.svg",
		tooltip = "Valued picture candidate",
		link = true,
	},
	fs = {
		image = "Cscr-featured.svg",
		tooltip = "Featured sound",
		link = true,
	},
	ffs = {
		image = "Cscr-former.svg",
		tooltip = "Former featured sound",
		link = true,
	},
	fsc = {
		image = "Cscr-candidate.svg",
		tooltip = "Featured sound candidate",
		link = true,
	},
	fpo = {
		image = "Linecons big-star.svg",
		tooltip = "Before the featured portal process ceased in 2017, this had been designated as a featured portal.",
		link = true,
	},
	fpor = {
		image = "Cscr-star piece.png",
		tooltip = "Featured portal review",
		link = true,
	},
	ffpo = {
		image = "Featured article star - cross.svg",
		tooltip = "Former featured portal",
		link = true,
	},
	fpoc = {
		image = "Cscr-candidate.svg",
		tooltip = "Featured portal candidate",
		link = true,
	},
	ft = {
		image = "Cscr-featuredtopic.svg",
		tooltip = "Featured topic",
		link = true,
	},
	ftrc = {
		image = "Cscr-star piece.png",
		tooltip = "Featured topic removal candidate",
		link = true,
	},
	fft = {
		aliases = {"dft"},
		image = "DFT candidate_cluster.svg",
		tooltip = "Former featured topic",
		link = true,
	},
	ftc = {
		aliases = {"ftn"},
		image = "FT candidate cluster.svg",
		tooltip = "Featured topic candidate",
		link = false,
	},
	gt = {
		image = "Support cluster.svg",
		tooltip = "Good topic",
		link = false,
	},
	gtrc = {
		image = "Symbol unsupport vote.svg",
		tooltip = "Good topic removal candidate",
		link = false,
	},
	gtc = {
		aliases = {"gtn"},
		image = "GA candidate cluster.svg",
		tooltip = "Good topic candidate",
		link = false,
	},
	bplus = {
		aliases = {"b+"},
		image = "Symbol bplus class.svg",
		tooltip = "Bplus-Class article",
		link = true,
	},
	b = {
		image = "Symbol b class.svg",
		tooltip = "B-Class article",
		link = true,
	},
	br = {
		aliases = {"bcr"},
		image = "Bclass-checklist.svg",
		tooltip = "B-Class review",
		link = true,
	},
	c = {
		image = "Symbol c class.svg",
		tooltip = "C-Class article",
		link = true,
	},
	start = {
		image = "Symbol start class.svg",
		tooltip = "Start-Class article",
		link = true,
	},
	stub = {
		image = "Symbol stub class.svg",
		tooltip = "Stub-Class article",
		link = true,
	},
	list = {
		aliases = {"comparison"},
		image = "Symbol list class.svg",
		tooltip = "List-Class article",
		link = false,
	},
	no = {
		image = "Crystal button cancel.svg",
		tooltip = "Unknown-Class article",
		link = true,
	},
	book = {
		image = "Symbol book class2.svg",
		tooltip = "Wikipedia book",
		link = true,
	},
	category = {
		aliases = {"cat", "categ"},
		image = "Symbol category class.svg",
		tooltip = "Category",
		link = false,
	},
	disambiguation = {
		aliases = {"dab", "disamb", "disambig"},
		image = "Symbol dab class.svg",
		tooltip = "Disambiguation page",
		link = true,
	},
	image = {
		aliases = {"file"},
		image = "Symbol file class.svg",
		tooltip = "File",
		link = true,
	},
	needed = {
		image = "Symbol needed class.svg",
		tooltip = "Needed article",
		link = false,
	},
	outline = {
		image = "Global thinking.svg",
		tooltip = "Outline",
		link = false,
	},
	portal = {
		image = "Symbol portal class.svg",
		tooltip = "Portal",
		link = true,
	},
	project = {
		image = "Symbol project class.svg",
		tooltip = "Project page",
		link = false,
	},
	redirect = {
		aliases = {"red", "redir"},
		image = "Symbol redirect vote2.svg",
		tooltip = "Redirect",
		link = true,
	},
	template = {
		aliases = {"temp", "templ"},
		image = "Symbol template class.svg",
		tooltip = "Template",
		link = false,
	},
	essay = {
		image = "Essay.svg",
		tooltip = "Essay",
		link = false,
	},
	na = {
		image = "Symbol na class.svg",
		tooltip = "Non-article page",
		link = true,
	},
	aa = {
		image = "Yes check.svg",
		tooltip = "Audited article of limited subject matter",
		link = false,
	},
	da = {
		image = "Symbol oppose vote.svg",
		tooltip = "Demoted article",
		link = false,
	},
	dyk = {
		image = "Symbol question.svg",
		tooltip = "Did You Know?",
		link = false,
	},
	dyk2 = {
		image = "DYK questionmark icon.svg",
		tooltip = "Did You Know?",
		link = false,
	},
	pr = {
		image = "Nuvola apps kedit.png",
		tooltip = "Peer review",
		link = true,
	},
	ppr = {
		image = "Nuvola apps kedit.png",
		tooltip = "Portal peer review",
		link = true,
	},
	q = {
		aliases = {"question"},
		image = "Symbol question.svg",
		tooltip = "Question",
		link = false,
	},
	cleanup = {
		image = "Edit-clear.svg",
		tooltip = "Cleanup work",
		link = false,
	},
	qi = {
		image = "Quality images logo.svg",
		tooltip = "Quality image on Wikimedia Commons",
		link = false,
	},
	vi = {
		image = "Valued image seal.svg",
		tooltip = "Valued image on Wikimedia Commons",
		link = false,
	},
	tfa = {
		image = "Wikipedia-logo.svg",
		tooltip = "Today's Featured Article",
		link = true,
	},
	tfl = {
		image = "Wikipedia-logo.svg",
		tooltip = "Today's Featured List",
		link = true,
	},
	itn = {
		image = "Globe current.svg",
		tooltip = "In The News",
		link = true,
	},
	otd = {
		image = "Nuvola apps date.svg",
		tooltip = "On This Day",
		link = true,
	},
	wikiproject = {
		image = "People icon.svg",
		tooltip = "WikiProject",
		link = false,
	},
	goce = {
		image = "Writing Magnifying.PNG",
		tooltip = "Guild of Copy Editors",
		link = true,
	},
	wikipedia = {
		image = "Wikipedia-logo.svg",
		tooltip = "Wikipedia page",
		link = true,
	},
	commons = {
		image = "Commons-logo.svg",
		tooltip = "Commons page",
		link = false,
	},
	wikiquote = {
		image = "Wikiquote-logo.svg",
		tooltip = "Wikiquote page",
		link = false,
	},
	wikiversity = {
		image = "Wikiversity logo 2017.svg",
		tooltip = "Wikiversity page",
		link = true,
	},
	wikibooks = {
		image = "Wikibooks-logo.svg",
		tooltip = "Wikibooks page",
		link = true,
	},
	wikisource = {
		image = "Wikisource-logo.svg",
		tooltip = "Wikisource page",
		link = true,
	},
	wiktionary = {
		image = "Wiktionary-logo.svg",
		tooltip = "Wiktionary page",
		link = true,
	},
	wikinews = {
		image = "Wikinews-logo.svg",
		tooltip = "Wikinews page",
		link = true,
	},
	wikispecies = {
		image = "Wikispecies-logo.svg",
		tooltip = "Wikispecies page",
		link = true,
	},
	wikidata = {
		image = "Wikidata-logo.svg",
		tooltip = "Wikidata page",
		link = false,
	},
	wikivoyage = {
		image = "Wikivoyage-logo.svg",
		tooltip = "Wikivoyage page",
		link = true,
	},
	meta = {
		image = "Wikimedia Community Logo.svg",
		tooltip = "Meta-wiki page",
		link = false,
	},
	four = {
		aliases = {"4a"},
		image = "Four Award.svg",
		tooltip = "Four Award",
		link = false,
	},
	million = {
		image = "Million award logo.svg",
		tooltip = "Million Award",
		link = true,
	},
	module = {
		image = "Lua-logo-nolabel.svg",
		tooltip = "Module",
		link = false,
	},
	vital = {
		image = "Círculos_Concéntricos.svg",
		tooltip = "Vital article",
		link = false,
	},
	potd  = {
		image = "Wikipedia-logo.svg",
		tooltip = "Picture of the Day",
		link = true,
	},
    _DEFAULT = {
		image = "Symbol question.svg",
		link = false,
	}
}

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

-- Make aliases work the same as normal keys, and remove the "aliases" subtables.
local ret= {}
for code, iconData in pairs(data) do
	iconData.canonicalCode = code
	if iconData.aliases then
		for _, alias in ipairs(iconData.aliases) do
			ret[alias] = iconData
		end
		iconData.aliases = nil
	end
	ret[code] = iconData
end

return ret