وحدة:Cite Q/config
المظهر
local config_t = {
linksproject = "",
wikilinkprefix = ""
}
local aliases_t = {
['accessdate'] = {'تاريخ-الوصول','تاريخ الوصول', 'تاريخ وصول', 'access-date', 'accessdate'},
['agency'] = {'وكالة', 'agency'},
['archivedate'] = {'تاريخ-الأرشيف', 'تاريخ أرشيف', 'تاريخ الأرشيف', 'archive-date', 'archivedate'},
['archive-format'] = {'صيغة-الأرشيف', 'صيغة الأرشيف', 'archive-format'},
['archive-url'] = {'مسار-الأرشيف', 'مسار أرشيف', 'مسار الأرشيف', 'archive-url', 'archiveurl'},
['article-number'] = {'رقم-المقالة', 'article-number'},
['asin-tld'] = 'asin-tld',
['at'] = {'في', 'at'},
--##TOREVISE
['authors'] = {'المؤلفون', 'المؤلفين', 'authors', 'people', 'host', 'credits', 'أشخاص'},
['author'] = {'author', 'author1', 'subject', 'subject1', 'host', 'host1', 'last', 'last1',
'surname', 'surname1', 'author-last', 'author-last1', 'author1-last', 'author-surname',
'author-surname1', 'author1-surname1'},
['book-title'] = {'عنوان الكتاب', 'book-title', 'booktitle', 'عنوان المؤتمر'},
['cartography'] = 'cartography',
['chapter'] = {'الفصل', 'chapter', 'contribution', 'entry', 'article', 'section'},
['chapter-format'] = {'صيغة-الفصل', 'صيغة الفصل', 'تنسيق الفصل', 'chapter-format', 'contribution-format', 'entry-format',
'article-format', 'section-format'},
['chapter-url'] = {'مسار-الفصل', 'مسار الفصل', 'chapter-url', 'contribution-url', 'entry-url', 'article-url', 'section-url'}, -- Used by InternetArchiveBot
['chapter-url-access'] = {'chapter-url-access', 'contribution-url-access',
'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot
['class'] = {'صنف', 'class'}, -- cite arxiv and arxiv identifier
['collaboration'] = 'collaboration',
['conference'] = {'اسم-المؤتمر', 'اسم المؤتمر', 'conference'},
['conference-format'] = 'conference-format',
['conference-url'] = {'مسار-المؤتمر', 'مسار المؤتمر', 'conference-url'}, -- Used by InternetArchiveBot
['date'] = {'تاريخ', 'التاريخ', 'date', 'air-date', 'airdate'},
['degree'] = {'الدرجة', 'degree'},
['df'] = 'df',
['display-authors'] = {'إظهار-المؤلفين', 'إظهار المؤلفين', 'display-authors', 'display-subjects'},
['display-contributors'] = 'display-contributors',
['display-editors'] = {'إظهار-المحررين', 'إظهار المحررين', 'display-editors'},
['display-interviewers'] = 'display-interviewers',
['display-translators'] = 'display-translators',
['docket'] = 'docket',
['doi-broken-date'] = 'doi-broken-date',
['edition'] = {'طبعة', 'الإصدار', 'الاصدار', 'إصدار', 'اصدار', 'الطبعة', 'رقم الطبعة', 'edition'},
['pmc-embargo-date'] = 'pmc-embargo-date',
['encyclopedia'] = {'موسوعة', 'encyclopedia', 'encyclopaedia', 'اسم المعجم', 'dictionary', 'اسم الموسوعة'}, -- cite encyclopedia only
['episode'] = {'الحلقة', 'episode'}, -- cite serial only TODO: make available to cite episode?
['format'] = {'صيغة', 'التنسيق', 'format', 'تنسيق', 'الصيغة'},
['hijri-date'] = {'التاريخ الهجري', 'تاريخ هجري', 'hijri-date'},
['id'] = {'id', 'ID', 'المعرف'},
['inset'] = {'inset', 'مجموعة'},
['issue'] = {'العدد', 'issue', 'number'},
['language'] = {'لغة', 'اللغة', 'language', 'lang'},
['mailing-list'] = {'القائمة البريدية', 'mailing-list'}, -- cite mailing list only
['map'] = {'الخريطة', 'map'}, -- cite map only
['map-format'] = {'صيغة الخريطة', 'map-format'}, -- cite map only
['map-url'] = {'مسار الخريطة', 'map-url'}, -- cite map only -- Used by InternetArchiveBot
['map-url-access'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
['minutes'] = {'دقيقة', 'minutes'},
['mode'] = 'mode',
['name-list-style'] = 'name-list-style',
['network'] = {'الشبكة', 'network'},
['newsgroup'] = {'اسم المجموعة', 'newsgroup'}, -- cite newsgroup only
['nopp'] = {'no-pp', 'nopp'},
['no-tracking'] = {'no-tracking', 'template-doc-demo'},
['number'] = 'number', -- this case only for cite techreport
['orig-date'] = {'orig-date', 'orig-year', 'origyear', 'سنة النشر الأصلية'},
['others'] = {'آخرون','others', 'المحاور', 'المحاورون', 'المحقق'},
['page'] = {'صفحة', 'p', 'الصفحة', 'page', 'الصفحة', 'رقم الصفحة', 'رقم صفحة','ص'}, -- Used by InternetArchiveBot
['pages'] = {'صفحات', 'الصفحات', 'pp', 'أرقام الصفحات', 'أرقم صفحات', 'pages'}, -- Used by InternetArchiveBot
['journal'] = {
'صحيفة',
'journal',
'دورية محكمة',
'مجلة',
'magazine',
'اسم المجلة',
'newspaper',
'جريدة',
'اسم الصحيفة',
'دورية',
'periodical',
'موقع',
'website',
'الموقع',
'عمل',
'work',
'العمل',
'من عمل',
},
['place'] = { 'مكان', 'place', 'المكان', 'مقر', 'المقر', 'location'},
['postscript'] = 'postscript',
['publication-date'] = {'تاريخ-النشر', 'تاريخ النشر', 'publication-date'},
['publication-place'] = {'مكان-النشر', 'مكان النشر', 'publication-place'},
['publisher'] = {'ناشر', 'publisher', 'الناشر', 'institution', 'مصدر', 'الموزع', 'المصدر', 'المؤسسة'},
['quote'] = {'اقتباس', 'quote', 'quotation'},
['quote-page'] = 'quote-page',
['quote-pages'] = 'quote-pages',
['ref'] = {'مرجع', 'ref'},
['scale'] = {'المقياس', 'scale'},
['script-chapter'] = {'script-chapter', 'script-contribution', 'script-entry',
'script-article', 'script-section'},
['script-encyclopedia'] = {'script-encyclopedia', 'script-encyclopaedia'}, -- cite encyclopedia only
['script-map'] = 'script-map',
['script-journal'] = {'script-journal', 'script-magazine', 'script-newspaper',
'script-periodical', 'script-website', 'script-work'},
['script-quote'] = 'script-quote',
['script-title'] = 'script-title', -- Used by InternetArchiveBot
['season'] = {'الموسم', 'season'},
['sections'] = {'الأقسام', 'sections'}, -- cite map only
['series'] = {'سلسلة', 'series', 'version'},
['series-link'] = {'وصلة-سلسلة', 'وصلة سلسلة', 'series-link', 'مسار المسلسل'},
['series-number'] = {'رقم-سلسلة', 'رقم سلسلة', 'series-number', 'series-no'},
['sheet'] = {'ورقة', 'sheet'}, -- cite map only
['sheets'] = {'أوراق', 'sheets'}, -- cite map only
['station'] = {'محطة', 'station'},
['time'] = {'الوقت', 'time'},
['time-caption'] = 'time-caption',
['title'] = {'عنوان', 'title', 'العنوان'},
['title-link'] = {'وصلة-العنوان', 'وصلة العنوان', 'title-link', 'episode-link', 'وصلة الحلقة'},
['title-note'] = {'title-note', 'department'},
['type'] = {'النوع', 'type', 'medium'},
['trans-chapter'] = {'trans-article', 'trans-chapter', 'trans-contribution',
'trans-entry', 'trans-section'},
['transcript'] = 'transcript',
['transcript-format'] = 'transcript-format',
['transcript-url'] = 'transcript-url', -- Used by InternetArchiveBot
['trans-encyclopedia'] = {'trans-encyclopedia', 'trans-encyclopaedia'}, -- cite encyclopedia only
['trans-map'] = 'trans-map', -- cite map only
['trans-journal'] = {'trans-journal', 'trans-magazine', 'trans-newspaper',
'trans-periodical', 'trans-website', 'trans-work'},
['trans-quote'] = 'trans-quote',
['trans-title'] = {'عنوان مترجم', 'العنوان بالعربي', 'العنوان الأجنبي', 'عنوان أجنبي', 'trans-title', 'العنوان المترجم'}, -- Used by InternetArchiveBot
['url'] = {'مسار', 'المسار','وصلة', 'url', 'URL'}, -- Used by InternetArchiveBot
['url-access'] = {'url-access', 'التسجيل'}, -- Used by InternetArchiveBot
['url-status'] = {'url-status','حالة المسار'}, -- Used by InternetArchiveBot
['vauthors'] = {'vauthors', 'عدة مؤلفين'},
['veditors'] = {'veditors', 'عدة محررين' },
['via'] = {'عبر', 'via'},
['volume'] = {'المجلد', 'volume', 'الجزء', 'ج'},
['wikidatacite'] = 'wikidatacite',
['year'] = {'سنة', 'year', 'السنة'},
}
local numbered_aliases_t = {
['author#'] = {'مؤلف#',
'الأخير#',
'مؤلف#-الأخير',
'مؤلف# الأخير',
'last#',
'author-last#',
'مؤلف-الأخير#',
'author#-last',
'surname#',
'الأخير#',
'author-surname#',
'author#-surname',
'author#',
'المؤلف#',
'أخير#',
'اخير#',
'مؤلف الأخير#',
'subject#',
'host#',
'الموضوع'},
['author-link#'] = {
'وصلة مؤلف#',
'مؤلف#-وصلة',
'author#-link',
'subject-link#',
'subject#-link',
'authorlink#',
'author#link',
'مؤلف# وصلة',
'وصلة-مؤلف#',
'وصلة المؤلف#',
'وصلة-المؤلف#'
},
['editor#'] = {
'محرر#',
'محرر#-الأخير',
'محرر# الأخير',
'محرر-الأخير#',
'محرر الأخير#',
'editor-last#',
'editor#-last',
'editor-surname#',
'editor#-surname',
'المحرر#'
},
['editor-link#'] = {
'وصلة محرر#',
'محرر#-وصلة',
'محرر# وصلة',
'وصلة-محرر#',
'editor#-link',
'محرر-وصلة#',
'وصلة-المحرر#',
'وصلة المحرر#'
},
['translator#'] = {
'مترجم#',
'مترجم#-الأخير',
'المترجم#',
'translator-last#',
'المترجم-الأخير#',
'المترجم#-الأخير',
'مترجم الأخير#',
'مترجم# الأخير',
'مترجم-الأخير#',
'translator#-last',
'translator-surname#',
'translator#-surname'
},
['translator-link#'] = {
'وصلة مترجم#',
'مترجم#-وصلة',
'مترجم# وصلة',
'وصلة-مترجم#',
'وصلة المترجم#',
'وصلة-المترجم#',
'translator#-link',
'المترجم#-وصلة'
},
['translator-first#'] = {
'مترجم#-الأول',
'translator#-first',
'مترجم-الأول#',
'مترجم# الأول',
'مترجم-الأول#',
'مترجم الأول#',
'المترجم-الأول#',
'المترجم#-الأول',
'translator-given#',
'translator#-given'
},
['editor-first#'] = {
'محرر#-الأول',
'محرر-الأول#',
'محرر الأول#',
'editor-first#',
'editor#-first',
'editor-given#',
'محرر# الأول',
'محرر# الأول',
'editor#-given'
},
['author-first#'] = {
'الأول#',
'مؤلف#-الأول',
'مؤلف# الأول',
'أول#',
'first#',
'اول#',
'الاول#',
'author-first#',
'مؤلف الأول#',
'author#-first',
'given#',
'author-given#',
'مؤلف-الأول#',
'author#-given'
},
}
local i18n_t = {
["ar"] = {
illustrator = "رسم",
composer = "تلحين",
animator = "رسم الرسوم المتحركة",
director = "إخراج",
screenwriter = "سيناريو",
signatory = "توقيع",
presenter = "تقديم",
performer = "أداء",
annotator = "تحقيق",
reviewer = "مراجعة",
unknown = "مجهول",
supervisor = "إشراف",
["unknown-publication-date"] = 'nd',
["unknown-publisher"] = '<abbr class="abbr" title="دون ناشر">د.ن.</abbr>',
wikidata = "ويكي بيانات"
},
["cite_q"] = "{{استشهاد بويكي بيانات|",
["erratum"] = "(erratum)",
["unknown-author"] = {
ar = "غير معروف",
en = "Anonymous",
fr = "Anonyme",
de = "Anonymus",
es = "Anónimo"
},
["wdq"] = "[[ويكي بيانات|QID]]", -- go through "WDQ (identifier)" redirect to reduce clutter in "What links here" and improve reverse lookup. Keep in sync with {{QID}}.
["wikisource"] = "arwikisource",
["errors"] = {
["local-article-not-found"] = "المقال المحلي غير موجود.",
["no-label-or-title"] = "لا عنون أو تسمية: ",
},
-- Next Line Edited
["unknown-author-trackingcat"] = "", -- [[تصنيف:Cite Q - author unknown]]
["months"] = {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
},
["ordinal"] = {
[1] = "st",
[2] = "nd",
[3] = "rd",
["default"] = "th"
},
["trackingcats"] = {
["erratum"] = "[[تصنيف:استشهاد بويكي بيانات:الاستشهاد يعمل مع خطأ]]",
["missing-wikidata"] = "[[تصنيف:مقالات مع بيانات ويكي بيانات نقاصة]]", -- TODO: point to a {{cite q}}-specific category; this one is specific to Module:WikidataIB
['no-label-or-title'] = '[[تصنيف:استشهاد بويكي بيانات:يفتقر إلى عنوان أو تسمية]]',
["retracted"] = "[[تصنيف:الاستشهاد بويكي بيانات: الاستشهاد بعمل مسحوب]]<!-- retracted -->",
["replaced"] = "[[تصنيف:الاستشهاد بويكي بيانات: الاستشهاد بعمل مستبدل]]<!-- replaced -->",
["unknown-author"] = "", -- [[Category:Cite Q - author unknown]] removed as misplaced; someone is welcome to restore it if it is placed outside of the template parameter value
["unknown-template"] = "[[تصنيف:الاستشهاد بويكي بيانات:قالب مجهول]]",
},
}
local citation_class_map_t = {
arxiv = 'استشهاد بأرخايف',
['audio-visual'] = 'استشهاد بوسائط مرئية ومسموعة',
['AV-media-notes'] = 'استشهاد بتسجيلات',
biorxiv = 'استشهاد ببيوركسيف',
book = 'استشهاد بكتاب',
citation = 'استشهاد',
citeseerx = 'Cite CiteSeerX',
conference = 'استشهاد بمنشورات مؤتمر',
document = 'استشهاد بوثيقة',
encyclopaedia = 'استشهاد بموسوعة',
episode = 'استشهاد بحلقة',
interview = 'استشهاد بمقابلة',
journal = 'استشهاد بدورية محكمة',
magazine = 'استشهاد بمجلة',
mailinglist = 'استشهاد بقائمة بريدية',
map = 'استشهاد بخريطة',
medrxiv = 'cite medRxiv',
news = 'استشهاد بخبر',
newsgroup = 'استشهاد بمجموعة أخبار',
podcast = 'استشهاد بتدوين صوتي',
pressrelease = 'استشهاد ببيان صحفي',
report = 'استشهاد بتقرير',
serial = 'استشهاد بمسلسل',
sign = 'استشهاد بإشارة توضيحية',
speech = 'استشهاد بخطاب',
ssrn = 'cite ssrn',
techreport = 'استشهاد بتقرير فني',
thesis = 'استشهاد بأطروحة',
web = 'استشهاد بويب',
}
local rejected_t = {
sources = {
Q465 = true,
Q15241312 = true,
Q52 = true
},
properties = { "P1800", "P1566", "P21"},
instances = {
Q5 = true, -- Human is not a direct reference
Q184188 = true,
Q1250464 = true,
-- inatance of refference DBs
Q8513 = true,
Q17152639 = true,
Q7094076 = true,
Q5535082 = true,
Q856638= true,
Q1982918 = true,
Q36524 = true,
Q36218176 = true,
Q526334 = true,
Q5227411 = true
}
}
-- Table of simple properties that can be fetched in roughly the same way:
-- id = PXXX
-- maxvals = maximum number of multiple values (0 for all)
-- linked = "no" suppresses linking
-- populate_from_journal = true/false determines whether to look in a journal where the source is published
-- rank = "best", "preferred", normal, etc. determines how Wikidata ranks are treated
-- others = true - the value for the property goes to "others" section
local simple_properties_t = {
-- Next Line Edited
publisher = {id = "P123", maxvals = 3},
oclc = {id = "P243", maxvals = 1},
['publication-place'] = {id = "P291", maxvals = 0, linked = false}, -- publication place (don't put into |place=; is treated specially in {{citation}} if both are given)
doi = {id = "P356", maxvals = 1}, -- take care of |doi-broken-date= (WD "reason for deprecation"/"stated as") and |doi-access= (WD "access status")?
issue = {id = "P433", maxvals = 0, populate_from_journal = true}, -- distinguish from |number= ("P1545"?) if both are given (still blocked by {{citation}}, but will be supported in the future)
pmid = {id = "P698", maxvals = 1},
-- gbooks = {id = "P675", maxvals = 1}, -- to be added to {{citation}}
-- ia = {id = "P724", maxvals = 1}, -- to be added to {{citation}}
arxiv = {id = "P818", maxvals = 1},
bibcode = {id = "P819", maxvals = 1}, -- take care of |bibcode-access=?
jstor = {id = "P888", maxvals = 1}, -- take care of |jstor-access=?
mr = {id = "P889", maxvals = 1},
rfc = {id = "P892", maxvals = 1},
zbl = {id = "P894", maxvals = 1},
ssrn = {id = "P893", maxvals = 1},
place = {id = "P1071", maxvals = 0, linked = false}, -- written-at place
-- ['total-pages'] = {id = "P1104", maxvals = 0, linked = 'no'}, -- to be added to {{citation}} / COinS &rft.tpages=
-- coden = {id = "P1159", maxvals = 1}, -- to be added to {{citation}} / COinS &rft.coden=
s2cid = {id = "P8299", maxvals = 1}, -- take care of |s2cid-access=?
pmc = {id = "P932", maxvals = 1}, -- take care of |pmc-embargo-date= (WD "reason for deprecation")?
lccn = {id = "P1144", maxvals = 1},
hdl = {id = "P1184", maxvals = 1}, -- take care of |hdl-access=?
ismn = {id = "P1208", maxvals = 1},
journal = {id = "P1433", maxvals = 1},
citeseerx = {id = "P3784", maxvals = 1},
osti = {id = "P3894", maxvals = 1}, -- take care of |osti-access=?
biorxiv = {id = "P3951", maxvals = 1},
asin = {id = "P5749", maxvals = 1}, -- What about |asin-tld=? (WD examples resolve to .com at present, but may change)
-- ['catalog-number'] = {id = "P528", maxvals = 0}, -- to be added to {{citation}} / COinS &rft.artnum=
isbn = {id = "P212", maxvals = 1, populate_from_journal = true}, -- ISBN 13
issn = {id = "P236", maxvals = 1, populate_from_journal = true}, -- distinguish from |eissn= for electronic issues?
-- jfm = {id = "P?", maxvals = 1}, -- Jahrbuch über die Fortschritte der Mathematik (not Zbl)
-- sbn = {id = "P?", maxvals = 1}, -- Standard Book Number (predecessor of ISBN, not ICCU)
-- message-id = {id = "P?", maxvals = 1}, -- Usenet message ID
chapter = {id = "P792", maxvals = 1, no_vol_qual=true},
['publication-date'] = {id = "P577", maxvals = 1, populate_from_journal = true}, -- publication date (don't use |date=; is treated specially in {{citation}} if both are given.)
series = {id = "P179", maxvals = 1, populate_from_journal = true, qual = "P1545"},
version = {id = "P348", maxvals = 0},
edition = {id = "P393", maxvals = 0},
volume = {id = "P478", maxvals = 0, populate_from_journal = true, no_vol_qual=true},
-- part = {id = "P1545"?, maxvals = 0}, -- to be added to {{citation}} / COinS &rft.part=
title = {id = "P1476", rank="p n"},
-- url = {id = "P953", maxvals = 1}, -- deal with this along with archive-url
pages = {id = "P304", maxvals = 0, populate_from_journal = true, no_vol_qual=true},
at = {id = "P958", maxvals = 0, populate_from_journal = true, no_vol_qual=true}, -- also incorporate lines (P7421) and columns (P3903) into this (cite map also supports |section=)
-- sheets = {id = "P7416", maxvals = 0, populate_from_journal = true},
-- interviewer = {id = "P?", maxvals = 0}, -- does **not** go to "others" section! Multiple interviewers should be n-enumerated
illustrator = {id = "P110", maxvals = 10, others = true}, -- goes to "others" section
-- foreword and afterword, when contributions to another author's work, are contributions so belong in |contribution=;
-- the writer's name goes in |contributor=; requires |title= and |author=
-- However, this might need to add support for multiple contributors and their roles to {{citation}}, see Help_talk:Citation_Style_1#Others
-- foreword = {id = "P2679", maxvals = 10, others = true}, -- goes to "others" section
-- afterword = {id = "P2680", maxvals = 10, others = true}, -- goes to "others" section
composer = {id = "P86", maxvals = 10, others = true}, -- goes to "others" section
animator = {id = "P6942", maxvals = 10, others = true}, -- goes to "others" section
director = {id = "P57", maxvals = 10, others = true}, -- goes to "others" section
screenwriter = {id = "P58", maxvals = 10, others = true}, -- goes to "others" section
signatory = {id = "P1891", maxvals = 10, others = true}, -- goes to "others" section
presenter = {id = "P371", maxvals = 10, others = true}, -- goes to "others" section
performer = {id = "P175", maxvals = 10, others = true}, -- goes to "others" section
-- next 2 lines added for Arabic Wikipedia
annotator = {id ="P11105", maxvals = 10, others = true}, -- goes to "others" section
reviewer = {id ="P4032", maxvals = 10, others = true}, -- goes to "others" section
supervisor = {id ="P7604", maxvals = 3, others = true}, -- goes to "others" section
}
local used_args_t = {accessdate=true, language=true, mode=true, ol=true, other=true,
['display-authors']=true, ['display-editors']=true, ['archive-url']=true,
['archive-date']=true, url=true, title=true, page=true, pages = true, volume=true,
}
for i = 1, 9 do
used_args_t['author' .. i] = true
used_args_t['author-link' .. i] = true
used_args_t['author-first' .. i] = true
used_args_t['editor' .. i] = true
used_args_t['editor-link' .. i] = true
used_args_t['editor-first' .. i] = true
used_args_t['translator' .. i] = true
used_args_t['translator-link' .. i] = true
used_args_t['translator-first' .. i] = true
end
-- all_used_properties
local used_properties_t = { P1680 = true, P1932 = true, P2699 = true, P407 = true, P2093 = true, -- author string
P50 = true, -- author
P5769 = true, --editor
P655 = true, P856 = true, P953 = true, P98 = true, P854 = true,
}
for k,v in pairs(simple_properties_t) do
used_properties_t[v.id] = {
arg = k,
maxvals = v.maxvals,
linked = v.linked,
others = v.others,
populate_from_journal = v.populate_from_journal
}
end
simple_properties_t['hijri-date'] = {id = "P577", maxvals = 1, hijri=true}
return {
aliases_t = aliases_t,
numbered_aliases_t = numbered_aliases_t,
i18n_t = i18n_t,
rejected_t = rejected_t,
simple_properties_t = simple_properties_t,
used_args_t = used_args_t,
used_properties_t = used_properties_t,
config_t = config_t,
citation_class_map_t=citation_class_map_t
}