ويكي الاقتباس
arwikiquote
https://ar.wikiquote.org/wiki/%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9
MediaWiki 1.47.0-wmf.19
first-letter
ميديا
خاص
نقاش
مستخدم
نقاش المستخدم
ويكي الاقتباس
نقاش ويكي الاقتباس
ملف
نقاش الملف
ميدياويكي
نقاش ميدياويكي
قالب
نقاش القالب
مساعدة
نقاش المساعدة
تصنيف
نقاش التصنيف
نص زمني
نقاش النص الزمني
وحدة
نقاش الوحدة
فعالية
نقاش فعالية
ويكي الاقتباس:الميدان
4
2501
275383
274214
2026-09-14T19:03:38Z
MediaWiki message delivery
9223
/* Migration to Parsoid */ قسم جديد
275383
wikitext
text/x-wiki
{{ويكي الاقتباس:الميدان/مقدمة}}
__NEWSECTIONLINK____TOC__
== نقاش حول الشعار العربي ==
مرحبا بالزملاء، طلباً لتوحيد التسميات العربية في جميع المشاريع الشقيقة حسب ما ورد في [[:w:ويكيبيديا:الميدان/منوعات#تحديث_شعارات_المشروع_باللغات_المحلية|ميدان المنوعات]] على ويكيبيديا العربية، اقترحت توحدها وتكون بلا '''ال التعريف'''، أرجو من المهتمين المشاركة بآرائهم وأفكارهم مع التحية. [[مستخدم:Mohammed Qays|Mohammed Qays]] ([[نقاش المستخدم:Mohammed Qays|نقاش]]) 11:44، 22 يوليو 2025 (ت ع م)
* مؤيد، {{ر|Mohammed Qays}} هل هناك أمثلة للشعار الجديد وأيضًا اعتماد التسمية الجديدة؟--<span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><font color="FF000000">[[مستخدم:فيصل|'''فيصل ''']]</font><sup>[[نقاش المستخدم:فيصل|'''(راسلني)''']]</sup></span> 23:20، 31 يوليو 2025 (ت ع م)
*: @[[مستخدم:Mohammed Qays|Mohammed Qays]] هل من جديد محمد؟ أو أي شعار مقترح للاسم الجديد؟-- <span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><font color="FF000000">[[مستخدم:فيصل|'''فيصل ''']]</font><sup>[[نقاش المستخدم:فيصل|'''(راسلني)''']]</sup></span> 20:15، 9 أغسطس 2025 (ت ع م)
* هذا النقاش أيَضًا مُرتبط بتغيير نطاق ويكي اقتباس. الزميل {{ر|Mohammed Qays}} هل مُمكن وضع شعار مقترح كما فعلت في ويكي كتب؟--<span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><font color="FF000000">[[مستخدم:فيصل|'''فيصل ''']]</font><sup>[[نقاش المستخدم:فيصل|'''(راسلني)''']]</sup></span> 15:12، 16 أكتوبر 2025 (ت ع م)
*: @[[مستخدم:Mohammed Qays|Mohammed Qays]] الزميل محمد، هل ممكن تصميم شعار مقترح للمشروع؟ كما عملت في ويكي الكتب.-- <span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><font color="FF000000">[[مستخدم:فيصل|'''فيصل ''']]</font><sup>[[نقاش المستخدم:فيصل|'''(راسلني)''']]</sup></span> 11:41، 31 يناير 2026 (ت ع م)
*:: @[[مستخدم:فيصل|فيصل]] {{ينفذ}} [[مستخدم:Mohammed Qays|Mohammed Qays]] ([[نقاش المستخدم:Mohammed Qays|نقاش]]) 15:23، 31 يناير 2026 (ت ع م)
*::مرحبًا أخي @[[مستخدم:فيصل|فيصل]]،
*::هل يمكنك وضع خلاصة؟ --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 18:52، 24 أغسطس 2026 (ت ع م)
*:::@[[مستخدم:وسيم|وسيم]] خلاصة على ماذا تحديدًا؟ لا يمكن وضع خلاصة دون وجود شعار نبني عليه الخلاصة.-- <span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><font color="FF000000">[[مستخدم:فيصل|'''فيصل ''']]</font><sup>[[نقاش المستخدم:فيصل|'''(راسلني)''']]</sup></span> 20:42، 24 أغسطس 2026 (ت ع م)
*::::@[[مستخدم:فيصل|فيصل]]،
*::::عذرا، اعتقدت أن هذا هو [https://ibb.co/pS5Wrft الشعار]. --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 20:44، 24 أغسطس 2026 (ت ع م)
== الأرقام المشرقية ==
@[[مستخدم:فيصل|فيصل]] لا بد من وجود الأرقام المشرقية (١٢٣)، كما أنها غير موجودة وفي الويكيات الأخرى. [[مستخدم:علي حسن الكركوكي|علي حسن الكركوكي]] ([[نقاش المستخدم:علي حسن الكركوكي|نقاش]]) 02:08، 25 يناير 2026 (ت ع م)
== إزالة البياض المحيط بالشعار ==
{{متتبع|T435505|Resolved}}
مرحبًا @[[مستخدمة:Ajwaan|أجوان]]، @[[مستخدم:باسم|باسم]]، @[[مستخدم:فيصل|فيصل]]، و@[[مستخدم:Mdktb|Mdktb]]،
ما رأيكم بإزالة البياض المحيط بالشعار كما هو موضح في [https://ibb.co/F4qPTq3q هذه الصورة]، [https://ibb.co/3511c0zY وهذه]؟ الأمر متبع في عدة مشاريع شقيقة مثل ويكاموس وويكيبيديا العربية. --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 10:48، 19 أغسطس 2026 (ت ع م)
:أهلاً @[[مستخدم:وسيم|وسيم]]، الإشكالية بسيطة، يوجد path مخفي بخلفية بيضاء، ربما تجاهل عارض الصور اخفاءه. حاليًا رفعت نسخة جديدة نظيفة من الملف، ربما سيأخذ وقتًا ليظهر الأثر، وقد يتطلب مراجعة فبريكاتور، تحياتي --[[مستخدم:Mdktb|Mdktb]] ([[نقاش المستخدم:Mdktb|نقاش]]) 00:14، 20 أغسطس 2026 (ت ع م)
::@[[مستخدم:Mdktb|Mdktb]]،
::شكرا لك! إن لم يحدث تغيير ربما في غضون أسبوعين من الآن، فسأبلغك وربما نفتح تذكرة في فبريكاتور. --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 00:26، 20 أغسطس 2026 (ت ع م)
::{{نفذ|اُصلحت}}، لرؤية التغييرات قد يتطلب الأمر إفراغ كاش المتصفّح --[[مستخدم:Mdktb|Mdktb]] ([[نقاش المستخدم:Mdktb|نقاش]]) 13:53، 24 أغسطس 2026 (ت ع م)
:::@[[مستخدم:Mdktb|Mdktb]]،
:::لا يزال البياض موجود، أعتقد أنه من الأفضل فتح تذكرة في فبريكاتور. --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 16:20، 24 أغسطس 2026 (ت ع م)
::::@[[مستخدم:وسيم|وسيم]] قم بإفراغ كاش المتصفح نفسه «من إعدادات التطبيق إن كنت على الهاتف» أو جرّب متصفح آخر --[[مستخدم:Mdktb|Mdktb]] ([[نقاش المستخدم:Mdktb|نقاش]]) 16:24، 24 أغسطس 2026 (ت ع م)
:::::@[[مستخدم:Mdktb|Mdktb]]،
:::::أنشأت حساب جديد وهو [[مستخدم:حساب للتجربة 0|حساب للتجربة 0]] (من متصفح آخر طبعا) ولا نتيجة تذكر. لكن عندما حاولت إنشاء الحساب الذي أشرت إليه أعلاه لم يظهر البياض كما هو موضح في [https://ibb.co/vxb832s8 هذه الصورة]. --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 17:02، 24 أغسطس 2026 (ت ع م)
:::::@[[مستخدم:وسيم|وسيم]] فضلا ابحث عن كيفية افراغ كاش المتصفح، لا علاقة لحسابك بالمشكلة وانشاء حساب جديد لا يحلها، والمقصود بمتصفح آخر، اي لم يسبق وأن استعمل في المدى القريب لاستعراض الموقع، يعني لم يختزن محتوىً من الموقع قد يؤثر على استعراض التحديث الجديد --[[مستخدم:Mdktb|Mdktb]] ([[نقاش المستخدم:Mdktb|نقاش]]) 17:21، 24 أغسطس 2026 (ت ع م)
::::::@[[مستخدم:Mdktb|Mdktb]]،
::::::فعلت ما طلبته مني وهو مسح كاش المتصفح، لكن لا نتيجة تذكر والبياض لا يزال موجود. أعتقد أنه بعد بضعة أيام سيختفي. --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 18:50، 24 أغسطس 2026 (ت ع م)
::::::أخي @[[مستخدم:Mdktb|Mdktb]]،
::::::{{نفذ|اختفى البياض}} شكرا لك! --[[مستخدم:وسيم|وسيم]] ([[نقاش المستخدم:وسيم|نقاش]]) 20:28، 25 أغسطس 2026 (ت ع م)
== <span lang="en" dir="ltr">Migration to Parsoid</span> ==
<div lang="en" dir="ltr">
<section begin="announcement-content" />
<em>[[m:Special:MyLanguage/Wikimedia Foundation/Product and Technology/Parsoid Read Views/Read View Announcement|Read this in another language]]</em>
Hello everyone! I am glad to inform you that as the next step in the [[mw:Special:MyLanguage/Parsoid/Parser Unification|Parser Unification]] project, Parsoid will soon be turned on as the default article renderer on your wiki. We are gradually increasing the number of wikis using Parsoid, with the intention of making it the default wikitext parser for MediaWiki's next long-term support release. This will make our wikis more reliable and consistent for editors, readers, and tools to use, as well as making the development of future wikitext features easier.
If this disrupts your workflow, don’t worry! You can still opt out through a user preference or turn Parsoid off on the current page using the Tools submenu, as described in the [[mw:Special:MyLanguage/Help:Extension:ParserMigration|Extension:ParserMigration]] documentation.
There is [[mw:Special:MyLanguage/Parsoid/Parser Unification/Confidence Framework|more information about our roll-out strategy]] available, including the testing done before we turn on Parsoid for a new wiki.
To report bugs and issues, please look at our [[mw:Special:MyLanguage/Parsoid/Parser Unification/Known Issues|known issues]] documentation and if you found a new bug please create a phab ticket and tag the [[phab:project/view/5846|Content Transform Team in Phabricator]].
<section end="announcement-content" />
</div>
[[mw:User:MSantos (WMF)|Content Transform Team]] 19:03، 14 سبتمبر 2026 (ت ع م)
<!-- الرسالة التي أرسلها User:MSantos (WMF)@metawiki باستخدام القائمة في https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/Wikiquote&oldid=23943229 -->
2r5y470ampamwzmp75oyz71237630zi
ميدياويكي:Gadgets-definition
8
5430
275384
252098
2026-09-14T19:47:33Z
Neriah
26884
[[phab:T298199]]
275384
wikitext
text/x-wiki
== التصفح ==
* teahouse[dependencies=mediawiki.api,jquery.ui|default]|teahouse.js|teahouse.css
== التحرير ==
* HotCat|HotCat.js
*CatMaker[dependencies=mediawiki.util]|CatMaker.js
3bun0lbjcumgdxocz9ul9caq3chcz10
وحدة:Message box
828
27658
275497
241754
2026-09-15T10:44:31Z
حبيشان
29714
استيراد من ar.wiktionary.org
275497
Scribunto
text/plain
require('strict')
local getArgs
local yesno = require('Module:yesno')
local lang = mw.language.getContentLanguage()
local CONFIG_MODULE = 'Module:Message box/configuration'
local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'}
--------------------------------------------------------------------------------
-- وظائف المساعدة
--------------------------------------------------------------------------------
local function getTitleObject(...)
-- Get the title object, passing the function through pcall
-- in case we are over the expensive function count limit.
local success, title = pcall(mw.title.new, ...)
if success then
return title
end
end
local function union(t1, t2)
-- Returns the union of two arrays.
local vals = {}
for i, v in ipairs(t1) do
vals[v] = true
end
for i, v in ipairs(t2) do
vals[v] = true
end
local ret = {}
for k in pairs(vals) do
table.insert(ret, k)
end
table.sort(ret)
return ret
end
local function getArgNums(args, prefix)
local nums = {}
for k, v in pairs(args) do
local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$')
if num then
table.insert(nums, tonumber(num))
end
end
table.sort(nums)
return nums
end
--------------------------------------------------------------------------------
-- تعريف فئة الصندوق
--------------------------------------------------------------------------------
local MessageBox = {}
MessageBox.__index = MessageBox
function MessageBox.new(boxType, args, cfg)
args = args or {}
local obj = {}
-- Set the title object and the namespace.
obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle()
-- Set the config for our box type.
obj.cfg = cfg[boxType]
if not obj.cfg then
local ns = obj.title.namespace
-- boxType is "mbox" or invalid input
if args.demospace and args.demospace ~= '' then
-- implement demospace parameter of mbox
local demospace = string.lower(args.demospace)
if DEMOSPACES[demospace] then
-- use template from DEMOSPACES
obj.cfg = cfg[DEMOSPACES[demospace]]
elseif string.find( demospace, 'نقاش' ) then
-- demo as a talk page
obj.cfg = cfg.tmbox
else
-- default to ombox
obj.cfg = cfg.ombox
end
elseif ns == 0 then
obj.cfg = cfg.ambox -- main namespace
elseif ns == 6 then
obj.cfg = cfg.imbox -- file namespace
elseif ns == 14 then
obj.cfg = cfg.cmbox -- category namespace
else
local nsTable = mw.site.namespaces[ns]
if nsTable and nsTable.isTalk then
obj.cfg = cfg.tmbox -- any talk namespace
else
obj.cfg = cfg.ombox -- other namespaces or invalid input
end
end
end
-- Set the arguments, and remove all blank arguments except for the ones
-- listed in cfg.allowBlankParams.
do
local newArgs = {}
for k, v in pairs(args) do
if v ~= '' then
newArgs[k] = v
end
end
for i, param in ipairs(obj.cfg.allowBlankParams or {}) do
newArgs[param] = args[param]
end
obj.args = newArgs
end
-- Define internal data structure.
obj.categories = {}
obj.classes = {}
-- For lazy loading of [[Module:Category handler]].
obj.hasCategories = false
return setmetatable(obj, MessageBox)
end
function MessageBox:addCat(ns, cat, sort)
if not cat then
return nil
end
if sort then
cat = string.format('[[تصنيف:%s|%s]]', cat, sort)
else
cat = string.format('[[تصنيف:%s]]', cat)
end
self.hasCategories = true
self.categories[ns] = self.categories[ns] or {}
table.insert(self.categories[ns], cat)
end
function MessageBox:addClass(class)
if not class then
return nil
end
table.insert(self.classes, class)
end
function MessageBox:setParameters()
local args = self.args
local cfg = self.cfg
-- Get type data.
self.type = args.type
local typeData = cfg.types[self.type]
self.invalidTypeError = cfg.showInvalidTypeError
and self.type
and not typeData
typeData = typeData or cfg.types[cfg.default]
self.typeClass = typeData.class
self.typeImage = typeData.image
-- Find if the box has been wrongly substituted.
self.isSubstituted = cfg.substCheck and args.subst == 'SUBST'
-- Find whether we are using a small message box.
self.isSmall = cfg.allowSmall and (
cfg.smallParam and args.small == cfg.smallParam
or not cfg.smallParam and yesno(args.small)
)
-- Add attributes, classes and styles.
self.id = args.id
self.name = args.name
if self.name then
self:addClass('box-' .. string.gsub(self.name,' ','_'))
end
if yesno(args.plainlinks) ~= false then
self:addClass('plainlinks')
end
for _, class in ipairs(cfg.classes or {}) do
self:addClass(class)
end
if self.isSmall then
self:addClass(cfg.smallClass or 'mbox-small')
end
self:addClass(self.typeClass)
self:addClass(args.class)
self.style = args.style
self.attrs = args.attrs
-- Set text style.
self.textstyle = args.textstyle
-- Find if we are on the template page or not. This functionality is only
-- used if useCollapsibleTextFields is set, or if both cfg.templateCategory
-- and cfg.templateCategoryRequireName are set.
self.useCollapsibleTextFields = cfg.useCollapsibleTextFields
if self.useCollapsibleTextFields
or cfg.templateCategory
and cfg.templateCategoryRequireName
then
if self.name then
local templateName = mw.ustring.match(
self.name,
'^([tT][eE][mM][pP][lL][aA][tT][eE]|قالب)[%s_]*:[%s_]*(.*)$'
) or self.name
templateName = 'قالب:' .. templateName
self.templateTitle = getTitleObject(templateName)
end
self.isTemplatePage = self.templateTitle
and mw.title.equals(self.title, self.templateTitle)
end
-- Process data for collapsible text fields. At the moment these are only
-- used in {{ambox}}.
if self.useCollapsibleTextFields then
-- Get the self.issue value.
if self.isSmall and args.smalltext then
self.issue = args.smalltext
else
local sect
if args.sect == '' then
sect = 'هذه ' .. (cfg.sectionDefault or 'page')
elseif type(args.sect) == 'string' then
sect = 'هذه ' .. args.sect
end
local issue = args.issue
issue = type(issue) == 'string' and issue ~= '' and issue or nil
local text = args.text
text = type(text) == 'string' and text or nil
local issues = {}
table.insert(issues, sect)
table.insert(issues, issue)
table.insert(issues, text)
self.issue = table.concat(issues, ' ')
end
-- Get the self.talk value.
local talk = args.talk
-- Show talk links on the template page or template subpages if the talk
-- parameter is blank.
if talk == ''
and self.templateTitle
and (
mw.title.equals(self.templateTitle, self.title)
or self.title:isSubpageOf(self.templateTitle)
)
then
talk = '#'
elseif talk == '' then
talk = nil
end
if talk then
-- If the talk value is a talk page, make a link to that page. Else
-- assume that it's a section heading, and make a link to the talk
-- page of the current page with that section heading.
local talkTitle = getTitleObject(talk)
local talkArgIsTalkPage = true
if not talkTitle or not talkTitle.isTalkPage then
talkArgIsTalkPage = false
talkTitle = getTitleObject(
self.title.text,
mw.site.namespaces[self.title.namespace].talk.id
)
end
if talkTitle and talkTitle.exists then
local talkText
if self.isSmall then
local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk)
talkText = string.format('([[%s|نقاش]])', talkLink)
else
talkText = 'قد يكون هنالك نقاشٌ ذو علاقةٍ في'
if talkArgIsTalkPage then
talkText = string.format(
'%s [[%s|%s]] %s.',
talkText,
talk,
talkTitle.prefixedText,
'المتعلّقة'
)
else
talkText = string.format(
'%s [[%s#%s|صفحة النقاش]] %s.',
talkText,
talkTitle.prefixedText,
talk,
'المتعلّقة'
)
end
end
self.talk = talkText
end
end
-- Get other values.
self.fix = args.fix ~= '' and args.fix or nil
local date
if args.date and args.date ~= '' then
date = args.date
elseif args.date == '' and self.isTemplatePage then
date = lang:formatDate('F Y')
end
if date then
self.date = string.format(" <span class='date-container'><i>(<span class='date'>%s</span>)</i></span>", date)
end
self.info = args.info
if yesno(args.removalnotice) then
self.removalNotice = cfg.removalNotice
end
end
-- Set the non-collapsible text field. At the moment this is used by all box
-- types other than ambox, and also by ambox when small=yes.
if self.isSmall then
self.text = args.smalltext or args.text
else
self.text = args.text
end
-- Set the below row.
self.below = cfg.below and args.below
-- General image settings.
self.imageCellDiv = not self.isSmall and cfg.imageCellDiv
self.imageEmptyCell = cfg.imageEmptyCell
-- Right image settings.
local imageRight = self.isSmall and args.smallimage or args.image
if cfg.imageCheckBlank and imageRight ~= 'blank' and imageRight ~= 'none' and imageRight ~= 'بدون'
or not cfg.imageCheckBlank and imageRight ~= 'none' and imageRight ~= 'بدون'
then
self.imageRight = imageRight
if not imageRight then
local imageSize = self.isSmall
and (cfg.imageSmallSize or '30x30px')
or '40x40px'
self.imageRight = string.format('[[ملف:%s|%s|link=|alt=]]', self.typeImage
or 'Imbox notice.png', imageSize)
end
end
-- Left image settings.
local imageLeft = self.isSmall and args.smallimageleft or args.imageleft
if not (cfg.imageLeftNone and imageLeft == 'none' and imageLeft == 'بدون') then
self.imageLeft = imageLeft
end
-- set templatestyles
self.base_templatestyles = cfg.templatestyles
self.templatestyles = args.templatestyles
end
function MessageBox:setMainspaceCategories()
local args = self.args
local cfg = self.cfg
if not cfg.allowMainspaceCategories then
return nil
end
local nums = {}
for _, prefix in ipairs{'cat', 'category', 'all'} do
args[prefix .. '1'] = args[prefix]
nums = union(nums, getArgNums(args, prefix))
end
-- The following is roughly equivalent to the old {{Ambox/category}}.
local date = args.date
date = type(date) == 'string' and date
local preposition = 'منذ'
for _, num in ipairs(nums) do
local mainCat = args['cat' .. tostring(num)]
or args['category' .. tostring(num)]
local allCat = args['all' .. tostring(num)]
mainCat = type(mainCat) == 'string' and mainCat
allCat = type(allCat) == 'string' and allCat
if mainCat and date and date ~= '' then
local catTitle = string.format('%s %s %s', mainCat, preposition, date)
self:addCat(0, catTitle)
catTitle = getTitleObject('Category:' .. catTitle)
if not catTitle or not catTitle.exists then
self:addCat(0, 'مقالات تستعمل قوالب صيانة غير مؤرخة')
end
elseif mainCat and (not date or date == '') then
self:addCat(0, mainCat)
end
if allCat then
self:addCat(0, allCat)
end
end
end
function MessageBox:setTemplateCategories()
local args = self.args
local cfg = self.cfg
-- Add template categories.
if cfg.templateCategory then
if cfg.templateCategoryRequireName then
if self.isTemplatePage then
self:addCat(10, cfg.templateCategory)
end
elseif not self.title.isSubpage then
self:addCat(10, cfg.templateCategory)
end
end
-- Add template error categories.
if cfg.templateErrorCategory then
local templateErrorCategory = cfg.templateErrorCategory
local templateCat, templateSort
if not self.name and not self.title.isSubpage then
templateCat = templateErrorCategory
elseif self.isTemplatePage then
local paramsToCheck = cfg.templateErrorParamsToCheck or {}
local count = 0
for i, param in ipairs(paramsToCheck) do
if not args[param] then
count = count + 1
end
end
if count > 0 then
templateCat = templateErrorCategory
templateSort = tostring(count)
end
if self.categoryNums and #self.categoryNums > 0 then
templateCat = templateErrorCategory
templateSort = 'C'
end
end
self:addCat(10, templateCat, templateSort)
end
end
function MessageBox:setAllNamespaceCategories()
-- Set categories for all namespaces.
if self.invalidTypeError then
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText
self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort)
end
if self.isSubstituted then
self:addCat('all', 'Pages with incorrectly substituted templates')
end
end
function MessageBox:setCategories()
if self.title.namespace == 0 then
self:setMainspaceCategories()
elseif self.title.namespace == 10 then
self:setTemplateCategories()
end
self:setAllNamespaceCategories()
end
function MessageBox:renderCategories()
if not self.hasCategories then
-- No categories added, no need to pass them to Category handler so,
-- if it was invoked, it would return the empty string.
-- So we shortcut and return the empty string.
return ""
end
-- Convert category tables to strings and pass them through
-- [[Module:Category handler]].
return require('Module:Category handler')._main{
main = table.concat(self.categories[0] or {}),
template = table.concat(self.categories[10] or {}),
all = table.concat(self.categories.all or {}),
nocat = self.args.nocat,
page = self.args.page
}
end
function MessageBox:export()
local root = mw.html.create()
-- Add the subst check error.
if self.isSubstituted and self.name then
root:tag('b')
:addClass('error')
:wikitext(string.format(
'قالب <code>%s[[قالب:%s|%s]]%s</code> تم نسخه بشكلٍ خاطئٍ.',
mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}')
))
end
local frame = mw.getCurrentFrame()
root:wikitext(frame:extensionTag{
name = 'templatestyles',
args = { src = self.base_templatestyles },
})
-- Add support for a single custom templatestyles sheet. Undocumented as
-- need should be limited and many templates using mbox are substed; we
-- don't want to spread templatestyles sheets around to arbitrary places
if self.templatestyles then
root:wikitext(frame:extensionTag{
name = 'templatestyles',
args = { src = self.templatestyles },
})
end
-- Create the box table.
local boxTable = root:tag('table')
boxTable:attr('id', self.id or nil)
for i, class in ipairs(self.classes or {}) do
boxTable:addClass(class or nil)
end
boxTable
:cssText(self.style or nil)
:attr('role', 'presentation')
if self.attrs then
boxTable:attr(self.attrs)
end
-- Add the right-hand image.
local row = boxTable:tag('tr')
if self.imageRight then
local imageRightCell = row:tag('td'):addClass('mbox-image')
if self.imageCellDiv then
-- If we are using a div, redefine imageRightCell so that the image
-- is inside it. Divs use style="width: 42px;", which limits the
-- image width to 52px. If any images in a div are wider than that,
-- they may overlap with the text or cause other display problems.
imageRightCell = imageRightCell:tag('div'):addClass('mbox-image-div')
end
imageRightCell:wikitext(self.imageRight or nil)
elseif self.imageEmptyCell then
-- Some message boxes define an empty cell if no image is specified, and
-- some don't. The old template code in templates where empty cells are
-- specified gives the following hint: "No image. Cell with some width
-- or padding necessary for text cell to have 100% width."
row:tag('td')
:addClass('mbox-empty-cell')
end
-- Add the text.
local textCell = row:tag('td'):addClass('mbox-text')
if self.useCollapsibleTextFields then
-- The message box uses advanced text parameters that allow things to be
-- collapsible. At the moment, only ambox uses this.
textCell:cssText(self.textstyle or nil)
local textCellDiv = textCell:tag('div')
textCellDiv
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix) then
textCellDiv:tag('span')
:addClass('hide-when-compact')
:wikitext(self.talk and (' ' .. self.talk) or nil)
:wikitext(self.fix and (' ' .. self.fix) or nil)
end
textCellDiv:wikitext(self.date and (' ' .. self.date) or nil)
if self.info and not self.isSmall then
textCellDiv
:tag('span')
:addClass('hide-when-compact')
:wikitext(self.info and (' ' .. self.info) or nil)
end
if self.removalNotice then
textCellDiv:tag('span')
:addClass('hide-when-compact')
:tag('i')
:wikitext(string.format("%s", self.removalNotice))
end
else
-- Default text formatting - anything goes.
textCell
:cssText(self.textstyle or nil)
:wikitext(self.text or nil)
end
-- Add the left-hand image.
if self.imageLeft then
local imageLeftCell = row:tag('td'):addClass('mbox-imageleft')
if self.imageCellDiv then
-- If we are using a div, redefine imageLeftCell so that the image
-- is inside it.
imageLeftCell = imageLeftCell:tag('div'):addClass('mbox-image-div')
end
imageLeftCell
:wikitext(self.imageLeft or nil)
end
-- Add the below row.
if self.below then
boxTable:tag('tr')
:tag('td')
:attr('colspan', self.imageLeft and '3' or '2')
:addClass('mbox-text')
:cssText(self.textstyle or nil)
:wikitext(self.below or nil)
end
-- Add error message for invalid type parameters.
if self.invalidTypeError then
root:tag('div')
:addClass('mbox-invalid-type')
:wikitext(string.format(
'صندوق الرسالة هذا يستخدم وسيط "type=%s" غير صالح، وينبغي إصلاحه.',
self.type or ''
))
end
-- Add categories.
root:wikitext(self:renderCategories() or nil)
return tostring(root)
end
--------------------------------------------------------------------------------
-- Exports
--------------------------------------------------------------------------------
local p, mt = {}, {}
function p._exportClasses()
-- For testing.
return {
MessageBox = MessageBox
}
end
function p.main(boxType, args, cfgTables)
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE))
box:setParameters()
box:setCategories()
return box:export()
end
function mt.__index(t, k)
return function (frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
return t.main(k, getArgs(frame, {trim = false, removeBlanks = false}))
end
end
return setmetatable(p, mt)
dj4i6ccqxdn7s65g8d4xqqy2rl72saw
وحدة:Message box/configuration
828
27660
275500
241748
2026-09-15T10:44:38Z
حبيشان
29714
استيراد من ar.wiktionary.org
275500
Scribunto
text/plain
--------------------------------------------------------------------------------
-- Message box configuration --
-- --
-- This module contains configuration data for [[Module:Message box]]. --
--------------------------------------------------------------------------------
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'Commons-emblem-speedy.svg'
},
delete = {
class = 'ambox-delete',
image = 'Gnome-emblem-important.svg'
},
content = {
class = 'ambox-content',
image = 'Commons-emblem-issue.svg'
},
style = {
class = 'ambox-style',
image = 'Commons-emblem-copyedit.svg'
},
move = {
class = 'ambox-move',
image = 'Commons-emblem-merge.svg'
},
protection = {
class = 'ambox-protection',
image = 'Commons-emblem-padlock.svg'
},
current = {
class = 'ambox-current',
image = 'Appointment red.svg'
},
notice = {
class = 'ambox-notice',
image = 'Commons-emblem-notice.svg'
},
featured = {
class = 'ambox-featured',
image = 'AE candidate.svg'
}
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall = true,
smallParam = 'يمين',
smallClass = 'mbox-small-right',
substCheck = true,
classes = {'metadata', 'ambox'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageLeftNone = true,
sectionDefault = 'مقالة',
allowMainspaceCategories = true,
templateCategory = 'قوالب رسائل مقالات',
templateCategoryRequireName = true,
templateErrorCategory = 'قوالب رسائل مقالات بوسائط مفقودة',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'},
removalNotice = '<span style="float:left;">[[ملف:Breezeicons-actions-22-help-about.svg|20px|وصلة=مساعدة:إزالة قوالب الصيانة|تعرَّف على طريقة التعامل مع هذه المسألة من أجل إزالة هذا القالب.]]</span>',
templatestyles = 'Module:Message box/ambox.css'
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Commons-emblem-speedy.svg'
},
delete = {
class = 'cmbox-delete',
image = 'Gnome-emblem-important.svg'
},
content = {
class = 'cmbox-content',
image = 'Commons-emblem-issue.svg'
},
style = {
class = 'cmbox-style',
image = 'Commons-emblem-copyedit.svg'
},
move = {
class = 'cmbox-move',
image = 'Commons-emblem-merge.svg'
},
protection = {
class = 'cmbox-protection',
image = 'Commons-emblem-padlock.svg'
},
notice = {
class = 'cmbox-notice',
image = 'Commons-emblem-notice.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'cmbox'},
imageEmptyCell = true,
templatestyles = 'Module:Message box/cmbox.css'
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'Gnome-emblem-important.svg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Commons-emblem-notice.svg'
},
system = {
class = 'fmbox-system',
image = 'Commons-emblem-notice.svg'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'fmbox'},
imageEmptyCell = false,
imageLeftNone = false,
templatestyles = 'Module:Message box/fmbox.css'
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'Commons-emblem-speedy.svg'
},
delete = {
class = 'imbox-delete',
image = 'Gnome-emblem-important.svg'
},
content = {
class = 'imbox-content',
image = 'Commons-emblem-issue.svg'
},
style = {
class = 'imbox-style',
image = 'Commons-emblem-copyedit.svg'
},
move = {
class = 'imbox-move',
image = 'Commons-emblem-merge.svg'
},
protection = {
class = 'imbox-protection',
image = 'Commons-emblem-padlock.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox-license.svg'
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'Commons-emblem-notice.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'imbox'},
imageEmptyCell = true,
below = true,
templateCategory = 'صناديق رسائل ملفات',
templatestyles = 'Module:Message box/imbox.css'
},
ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'Commons-emblem-speedy.svg'
},
delete = {
class = 'ombox-delete',
image = 'Gnome-emblem-important.svg'
},
content = {
class = 'ombox-content',
image = 'Commons-emblem-issue.svg'
},
style = {
class = 'ombox-style',
image = 'Commons-emblem-copyedit.svg'
},
move = {
class = 'ombox-move',
image = 'Commons-emblem-merge.svg'
},
protection = {
class = 'ombox-protection',
image = 'Commons-emblem-padlock.svg'
},
notice = {
class = 'ombox-notice',
image = 'Commons-emblem-notice.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'ombox'},
allowSmall = true,
imageEmptyCell = true,
imageLeftNone = true,
templatestyles = 'Module:Message box/ombox.css'
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'Commons-emblem-speedy.svg'
},
delete = {
class = 'tmbox-delete',
image = 'Gnome-emblem-important.svg'
},
content = {
class = 'tmbox-content',
image = 'Commons-emblem-issue.svg'
},
style = {
class = 'tmbox-style',
image = 'Commons-emblem-copyedit.svg'
},
move = {
class = 'tmbox-move',
image = 'Commons-emblem-merge.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Commons-emblem-padlock.svg'
},
notice = {
class = 'tmbox-notice',
image = 'Commons-emblem-notice.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'tmbox'},
allowSmall = true,
imageLeftNone = true,
imageEmptyCell = true,
templateCategory = 'صناديق رسائل نقاش',
templatestyles = 'Module:Message box/tmbox.css'
}
}
b6rv8yerpfp4mzcye5tb2uh2eslus2o
وحدة:List
828
27702
275496
248640
2026-09-15T10:43:49Z
حبيشان
29714
استيراد من ar.wiktionary.org
275496
Scribunto
text/plain
local libUtil = require('libraryUtil')
local checkType = libUtil.checkType
local mTableTools = require('Module:TableTools')
local p = {}
local listTypes = {
['bulleted'] = true,
['unbulleted'] = true,
['horizontal'] = true,
['ordered'] = true,
['horizontal_ordered'] = true
}
function p.makeListData(listType, args)
-- Constructs a data table to be passed to p.renderList.
local data = {}
-- Classes and TemplateStyles
data.classes = {}
data.templatestyles = ''
if listType == 'horizontal' or listType == 'horizontal_ordered' then
table.insert(data.classes, 'hlist')
data.templatestyles = mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Hlist/styles.css' }
}
elseif listType == 'unbulleted' then
table.insert(data.classes, 'plainlist')
data.templatestyles = mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Plainlist/styles.css' }
}
end
table.insert(data.classes, args.class)
-- Main div style
data.style = args.style
-- Indent for horizontal lists
if listType == 'horizontal' or listType == 'horizontal_ordered' then
local indent = tonumber(args.indent)
indent = indent and indent * 1.6 or 0
if indent > 0 then
data.marginLeft = indent .. 'em'
end
end
-- List style types for ordered lists
-- This could be "1, 2, 3", "a, b, c", or a number of others. The list style
-- type is either set by the "type" attribute or the "list-style-type" CSS
-- property.
if listType == 'ordered' or listType == 'horizontal_ordered' then
data.listStyleType = args.list_style_type or args['list-style-type']
data.type = args['type']
-- Detect invalid type attributes and attempt to convert them to
-- list-style-type CSS properties.
if data.type
and not data.listStyleType
and not tostring(data.type):find('^%s*[1AaIi]%s*$')
then
data.listStyleType = data.type
data.type = nil
end
end
-- List tag type
if listType == 'ordered' or listType == 'horizontal_ordered' then
data.listTag = 'ol'
else
data.listTag = 'ul'
end
-- Start number for ordered lists
data.start = args.start
if listType == 'horizontal_ordered' then
-- Apply fix to get start numbers working with horizontal ordered lists.
local startNum = tonumber(data.start)
if startNum then
data.counterReset = 'listitem ' .. tostring(startNum - 1)
end
end
-- List style
-- ul_style and ol_style are included for backwards compatibility. No
-- distinction is made for ordered or unordered lists.
data.listStyle = args.list_style
-- List items
-- li_style is included for backwards compatibility. item_style was included
-- to be easier to understand for non-coders.
data.itemStyle = args.item_style or args.li_style
data.items = {}
for _, num in ipairs(mTableTools.numKeys(args)) do
local item = {}
item.content = args[num]
item.style = args['item' .. tostring(num) .. '_style']
or args['item_style' .. tostring(num)]
item.value = args['item' .. tostring(num) .. '_value']
or args['item_value' .. tostring(num)]
table.insert(data.items, item)
end
return data
end
function p.renderList(data)
-- Renders the list HTML.
-- Return the blank string if there are no list items.
if type(data.items) ~= 'table' or #data.items < 1 then
return ''
end
-- Render the main div tag.
local root = mw.html.create('div')
for _, class in ipairs(data.classes or {}) do
root:addClass(class)
end
root:css{['margin-left'] = data.marginLeft}
if data.style then
root:cssText(data.style)
end
-- Render the list tag.
local list = root:tag(data.listTag or 'ul')
list
:attr{start = data.start, type = data.type}
:css{
['counter-reset'] = data.counterReset,
['list-style-type'] = data.listStyleType
}
if data.listStyle then
list:cssText(data.listStyle)
end
-- Render the list items
for _, t in ipairs(data.items or {}) do
local item = list:tag('li')
if data.itemStyle then
item:cssText(data.itemStyle)
end
if t.style then
item:cssText(t.style)
end
item
:attr{value = t.value}
:wikitext(t.content)
end
return data.templatestyles .. tostring(root)
end
function p.renderTrackingCategories(args)
local isDeprecated = false -- Tracks deprecated parameters.
for k, v in pairs(args) do
k = tostring(k)
if k:find('^item_style%d+$') or k:find('^item_value%d+$') then
isDeprecated = true
break
end
end
local ret = ''
if isDeprecated then
ret = ret .. '[[تصنيف:List templates with deprecated parameters]]'
end
return ret
end
function p.makeList(listType, args)
if not listType or not listTypes[listType] then
error(string.format(
"bad argument #1 to 'makeList' ('%s' is not a valid list type)",
tostring(listType)
), 2)
end
checkType('makeList', 2, args, 'table')
local data = p.makeListData(listType, args)
local list = p.renderList(data)
local trackingCategories = p.renderTrackingCategories(args)
return list .. trackingCategories
end
for listType in pairs(listTypes) do
p[listType] = function (frame)
local mArguments = require('Module:Arguments')
local origArgs = mArguments.getArgs(frame, {
valueFunc = function (key, value)
if not value or not mw.ustring.find(value, '%S') then return nil end
if mw.ustring.find(value, '^%s*[%*#;:]') then
return value
else
return value:match('^%s*(.-)%s*$')
end
return nil
end
})
-- Copy all the arguments to a new table, for faster indexing.
local args = {}
for k, v in pairs(origArgs) do
args[k] = v
end
return p.makeList(listType, args)
end
end
return p
jyqr62j2ran196jo4mrmccatdhsxqk6
نقاش المستخدم:Ajwaan
3
38410
275436
263501
2026-09-15T09:54:30Z
حبيشان
29714
/* تعديلات في نطاق ميدياويكي */ قسم جديد
275436
wikitext
text/x-wiki
== مرحبا ==
مرحبا شيماء لقد قمتِ لتوك بحذف صفحة منتظر صالح شريف بسبب عدم الملحوظية وأنتِ تعلمين أنه لديع ويكي بينات و كذلك هو كاتب على موقع جود ريدز و أنه مصمم لأحد بوسترات الافلام السينمائية و أن قمنا بكتابة أسمه في محركات البحث سنجد أن له صدى واسع في كوكل و أن أعماله على موقع ويكي الفن و هنالك من هم أقل منه ملحوظية و ما زالت صفحاتهم موجودة أرجوا أعادة النظر في الامر مع كل أحترامي لك--[[خاص:مساهمات/37.237.66.79|37.237.66.79]] 19:23، 14 سبتمبر 2020 (ت ع م)
: الشخصية لا تحقق أي من الملحوظية! ولذلك لا تحاول إعادة إنشاء الصفحة سواء هُنا أو في أي مشاريع ويكيبيديا لأنه سيتم حذفها. تحياتي لك. [[مستخدم:شيماء|شيماء]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 19:26، 14 سبتمبر 2020 (ت ع م)
:كننت أعتقد أن أسمه نقاش لنتناقش وليس لتفرضي رأيكِ و ليس أن تحذفي كلامي لأنه صحيح لا أعلم كيف يصبح الشخص مشرفا وهو غير ملتزم بالقواعد ; ارجو أعادة النظر مرة اخرى وليس حذف رايي من صفحة نقاشك سيدتي دمتي بخير --[[خاص:مساهمات/37.238.203.52|37.238.203.52]] 08:59، 15 سبتمبر 2020 (ت ع م)
== دعوة ==
مرحبًا، كونك من النشيطين، تمت دعوتك للمشاركة في '''[[ويكي الاقتباس:الميدان#صلاحية مٌراجع تلقائي في ويكي الاقتباس|هذا النقاش]]''' في الميدان. تحيَّاتي. '''--'''[[مستخدم:حسن|<span style="font-family: Andalus; font-size: 18px; color:#0080C0; text-shadow: silver 0.2em 0.2em 0.1em;">'''حسن '''</span>]]<span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><sup>[[نقاش المستخدم:حسن|'''راسلني (☎)''']]</sup></span> 11:55، 16 مايو 2021 (ت ع م)
== مُباركة ==
مرحبًا شيماء، أُباركلك حصولك على الصلاحية الإدارية الدائمة في ويكي الاقتباس، مُستحقة دون شك، رغم مُحاولات البعض التشويش على الترشيح وخلق جدل. لكن في النهاية لا يصح إلا الصحيح. ألف مبروك.--<span style="font-family: Andalus; font-size: 18px; text-shadow: silver 0.2em 0.2em 0.1em;"><font color="FF000000">[[مستخدم:فيصل|'''فيصل ''']]</font><sup>[[نقاش المستخدم:فيصل|'''(راسلني)''']]</sup></span> 15:14، 25 أغسطس 2021 (ت ع م)
:: مرحبتين {{ر|فيصل}} الله يبارك فيك{{ب|وردة}}. شُكرًا جزيلا على هذه التهنئة اللطيفة{{ب}}. أطيب التَّحيَّات.--[[مستخدم:شيماء|شيماء]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 15:28، 25 أغسطس 2021 (ت ع م)
::: " رغم مُحاولات البعض التشويش على الترشيح" هو الجدل. فهناك حرية كاملة في إبداء رأي وهناك ثلاث حالات "مع" و"ضد" و"محايد" في كل ترشيح. ولكل مستخدم رأيه وعلينا أن نحترمه، والإختلاف هي سنة الله. والغريب أن مستخدم فيصل بعد سنوات لا يعرف هذا. {{ر|شيماء}} مبارك لك الإخت شيماء. وإنشاء الله أنا مع مساهماتي التحريرية الكثيفة وأنت مع صلاحيتك الإدارية الدائمة، سنبدأ حقبة جديدة هنا. --[[مستخدم:Ruwaym|Ruwaym]] ([[نقاش المستخدم:Ruwaym|نقاش]]) 00:39، 26 أغسطس 2021 (ت ع م)
::::السلام عليكم، مبارك لك صلاحية إداري دائم أنت والزميل فيصل. --[[مستخدم:حسن|حسن]] ([[نقاش المستخدم:حسن|نقاش]]) 23:30، 1 سبتمبر 2021 (ت ع م)
== الصفحة الأولى ==
مرحبا سيدة شيماء. منذ زمان أنا اقترحت تغيير اقتباس اليوم في الصحفة الأولى، [[نقاش القالب:شخصية مختارة|هنا]]، لكن محد من الإداريين اهتم بالموضوع. آمل أنك تهتم به. فهي واجهة المشروع.--[[مستخدم:Ruwaym|Ruwaym]] ([[نقاش المستخدم:Ruwaym|نقاش]]) 16:01، 2 أكتوبر 2021 (ت ع م)
: مرحبتين {{ر|Ruwaym}} يُمكنك عمل جدول اقتباسات بنفس الطريقة [https://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%AC%D8%AF%D9%88%D9%84_%D9%83%D9%84%D9%85%D8%A9_%D8%A7%D9%84%D9%8A%D9%88%D9%85/%D8%B9%D8%B1%D8%B6_%D8%A7%D9%84%D9%83%D9%84%D9%85%D8%A7%D8%AA_%D9%83%D9%84%D9%87%D8%A7 هُنا] وإذا كان هُنالك صفحات مقتصره على الإداريين يمكنك الإشارة لي لكي أُزيل الحماية بشكل مؤقت حتى يتسنى لكم الفرصة لتنفيذ هذا المقترح. تحياتي. [[مستخدم:شيماء|شيماء]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 21:31، 2 أكتوبر 2021 (ت ع م)
:: طيب، راح اجمع اقتباسات أكثر خلال مساهماتي، ولقد وضعت عددًا منهم في جدولًا بصفحتي الشخصية. اظن 365 عددًا من اقتباسات يكفينا لسنة كاملة. --[[مستخدم:Ruwaym|Ruwaym]] ([[نقاش المستخدم:Ruwaym|نقاش]]) 22:36، 2 أكتوبر 2021 (ت ع م)
== استفسار ==
مرحبا أستاذة شيماء، أود أن أعرف لماذا قصيدة الموصل العنقاء حذفت في ويكي اقتباس "الموصل". [[مستخدم:Abdullahalaaraji|Abdullahalaaraji]] ([[نقاش المستخدم:Abdullahalaaraji|نقاش]]) 15:54، 27 ديسمبر 2021 (ت ع م)
:مراحب {{ر| Abdullahalaaraji }} أضفت بتعديلاتك وصلة خارجية لموقع جامعة وهذه الإضافة تُصنف سبام! أرجو عدم تكرار ذلك . تحياتي [[مستخدم:شيماء|شيماء]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 21:25، 28 ديسمبر 2021 (ت ع م)
طيب وماذا أفعل هل أتركها بلا مصدر؟ [[مستخدم:Abdullahalaaraji|Abdullahalaaraji]] ([[نقاش المستخدم:Abdullahalaaraji|نقاش]]) 22:10، 28 ديسمبر 2021 (ت ع م)
:{{ر|Abdullahalaaraji}} أضف المصادر بشكل صحيح طالع [https://ar.wikipedia.org/wiki/%D9%85%D8%B3%D8%A7%D8%B9%D8%AF%D8%A9:%D9%87%D9%88%D8%A7%D9%85%D8%B4_%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A7%D8%AA هذه المساعدة]. تحياتي [[مستخدم:شيماء|شيماء]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 15:45، 29 ديسمبر 2021 (ت ع م)
== How we will see unregistered users ==
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin=content/>
Hi!
You get this message because you are an admin on a Wikimedia wiki.
When someone edits a Wikimedia wiki without being logged in today, we show their IP address. As you may already know, we will not be able to do this in the future. This is a decision by the Wikimedia Foundation Legal department, because norms and regulations for privacy online have changed.
Instead of the IP we will show a masked identity. You as an admin '''will still be able to access the IP'''. There will also be a new user right for those who need to see the full IPs of unregistered users to fight vandalism, harassment and spam without being admins. Patrollers will also see part of the IP even without this user right. We are also working on [[m:IP Editing: Privacy Enhancement and Abuse Mitigation/Improving tools|better tools]] to help.
If you have not seen it before, you can [[m:IP Editing: Privacy Enhancement and Abuse Mitigation|read more on Meta]]. If you want to make sure you don’t miss technical changes on the Wikimedia wikis, you can [[m:Global message delivery/Targets/Tech ambassadors|subscribe]] to [[m:Tech/News|the weekly technical newsletter]].
We have [[m:IP Editing: Privacy Enhancement and Abuse Mitigation#IP Masking Implementation Approaches (FAQ)|two suggested ways]] this identity could work. '''We would appreciate your feedback''' on which way you think would work best for you and your wiki, now and in the future. You can [[m:Talk:IP Editing: Privacy Enhancement and Abuse Mitigation|let us know on the talk page]]. You can write in your language. The suggestions were posted in October and we will decide after 17 January.
Thank you.
/[[m:User:Johan (WMF)|Johan (WMF)]]<section end=content/>
</div>
18:10، 4 يناير 2022 (ت ع م)
<!-- الرسالة التي أرسلها User:Johan (WMF)@metawiki باستخدام القائمة في https://meta.wikimedia.org/w/index.php?title=User:Johan_(WMF)/Target_lists/Admins2022(1)&oldid=22532492 -->
== طلب إعادة صفحة ==
مساء الخير شيماء
كنت قد أنشأت اقتباسا، ولكن وجدت أنك حذفتيه، ممكن إرشاد أفضل لكتابة أخرى قبل الحذف؟
دمت بالخير --[[مستخدم:كمال سلمان|كمال سلمان]] ([[نقاش المستخدم:Solman9|نقاش]]) 19:01، 16 يناير 2022 (ت ع م)
== طلب الحذف ==
مرحبا "الإخت" شيماء. أطلب حذف كل مقالات أنشأتها هنا، لأنني بحسب كل إداريين في ويكيبيديا "ما زال لا يتعلم ويتجاوز ويخالف السياسات،" وعبث ومبث ولعب وفعب. فأنا لست عربي، ولا أجيّد العربية. ممكن أنا دمی جوارب أو بطة أصلا كما يقال بالويكي الفارسية. فلا فرق بين رويم هنا وهناك. تحياتي. [[مستخدم:Ruwaym|Ruwaym]] ([[نقاش المستخدم:Ruwaym|نقاش]]) 14:44، 5 مارس 2022 (ت ع م)
:مراحب {{ر| Ruwaym }} عذرًا رسالتك غير واضحة لكونها بلغة غير اللغة العربية ولكن ما فهمته أنك تطلب حذف جميع مقالاتك. عزيزي أنت مُحرر مُخضرم وتعلم جيدًا أنَّ المقالات في ويكيبيديا ليست ملكًا لأحد بما فيها مُنشئ المقالة وعليه؛ لا يُمكن حذف المقالات. من باب النصيحة أرجو منك أن تستجيب لجميع مُلاحظات الزملاء، عليك إعطاء نفسك بعض الوقت لفهم هذه الملاحظات بشكل أكبر ومن ثم الإلتزام بها. أطيب التَّحيَّات [[مستخدم:شيماء|شيماء]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 15:17، 5 مارس 2022 (ت ع م)
== طلب إجراء السياسة ==
مرحبا شيماء، أنا أطلب إجراء السياسات التي لا توجد هنا ولكنها موجودة في مواقع ويكي أخرى ، أشير إلى الإنجليزية: [[en:Wikiquote:Image use policy]] و[[en:Wikiquote:Quotability]] و[[en:Wikiquote:Neutral point of view]] و[[en:Wikiquote:Quotes by living persons]] و[[en:Wikiquote:Assume good faith]] و[[en:Wikiquote:Blocking policy]] حتى تقدم المشروع ، ويمكن توجيه قدرة المستخدمين وتجنبًا عن منعهم بدون سبب. تحياتي. [[مستخدم:Ruwaym|Ruwaym]] ([[نقاش المستخدم:Ruwaym|نقاش]]) 12:17، 16 يوليو 2022 (ت ع م)
== مرحبا ==
لماذا حذفت مقالة محمد عبد الباري هو شاعر له انا انشأت المقالة وكنت اعمل علي تكملتها وجدتها اتحذفت ؟
هل من الافضل حذفها ام تطويرها ؟؟ [[مستخدم:Hassan Hassoon|Hassan Hassoon]] ([[نقاش المستخدم:Hassan Hassoon|نقاش]]) 06:28، 22 نوفمبر 2022 (ت ع م)
== استفسار ==
مرحبًا، هل يصح وجود أمثال بها ألفاظ غير لائقة بحجة أنها أقتباس لأمثال؟ مقالة مثل أمثال سورية، وغيرها تحتوي على ألفاظ غير لائقة. [[مستخدم:Karim185.3|Karim185.3]] ([[نقاش المستخدم:Karim185.3|نقاش]]) 11:49، 7 ديسمبر 2022 (ت ع م)
:أهلاً {{ر| Karim185.3}} مثل تلك الألفاظ على الأغلب تم إضافتها من مخربين ونظرا بأنه لا يوجد نشاط بهذا المشروع لم ينتبه أحد لهذا التخريب. عموما يُمكنك إزالتها . شكرا لك.-- [[مستخدم:Ajwaan|Ajwaan]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 11:52، 7 ديسمبر 2022 (ت ع م)
== اخفاء نسخ مراجعة ==
مرحبًا {{BASEPAGENAME}}، أتمنى أن تكونِ بخير حال<br />
طلب إخفاء «إن أمكنك» لهذه النسخ: [[خاص:وصلة دائمة/263482|هنا]] و[[خاص:وصلة دائمة/263483|هنا]]، تحياتي لكِ --[[مستخدم:Mdktb|Mdktb]] ([[نقاش المستخدم:Mdktb|نقاش]]) 15:49، 11 أغسطس 2026 (ت ع م)
:مرحبتين {{تم}}. شكر لك{{ب}} [[مستخدم:Ajwaan|Ajwaan]] ([[نقاش المستخدم:Ajwaan|نقاش]]) 15:57، 11 أغسطس 2026 (ت ع م)
== تعديلات في نطاق ميدياويكي ==
أرجو تنفيذ هذه التعديلات في نطاق ميدياويكي:
[[ميدياويكي:Scribunto-doc-page-does-not-exist]]
<syntaxhighlight lang="wikitext" copy>{{#invoke:توثيق|nonexistent|_content={{ {{#invoke:توثيق|contentTitle}}}}}}</syntaxhighlight>
[[ميدياويكي:Scribunto-doc-page-header]]
<syntaxhighlight lang="wikitext" copy>{{صفحة توثيق فرعية}}</syntaxhighlight>
[[ميدياويكي:Scribunto-doc-page-show]]
<syntaxhighlight lang="wikitext" copy>{{#invoke:توثيق|main|_content={{ {{#invoke:توثيق|contentTitle}}}}|{{#ifexist:{{FULLPAGENAME}}/شرح|{{FULLPAGENAME}}/شرح|{{NAMESPACE}}:{{BASEPAGENAME}}/شرح}}}}
<span id="code"></span>
</syntaxhighlight>
الغرض منها تنسيق توثيق الوحدات عبر [[وحدة:توثيق]] [[مستخدم:حبيشان|حبيشان]] ([[نقاش المستخدم:حبيشان|نقاش]]) 09:54، 15 سبتمبر 2026 (ت ع م)
mza6243clpe94lwlxl29alqwzn6bfwh
وحدة:Citation/CS1
828
40416
275388
241740
2026-09-15T08:56:39Z
حبيشان
29714
استيراد من ar.wiktionary.org
275388
Scribunto
text/plain
require ('strict');
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
each of these counts against the Lua upvalue limit
]]
local validation; -- functions in Module:Citation/CS1/Date_validation
local utilities; -- functions in Module:Citation/CS1/Utilities
local z = {}; -- table of tables in Module:Citation/CS1/Utilities
local identifiers; -- functions and tables in Module:Citation/CS1/Identifiers
local metadata; -- functions in Module:Citation/CS1/COinS
local cfg = {}; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
local whitelist = {}; -- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist
--[[------------------< P A G E S C O P E V A R I A B L E S >---------------
declare variables here that have page-wide scope that are not brought in from
other modules; that are created here and used here
]]
local added_deprecated_cat; -- boolean flag so that the category is added only once
local added_vanc_errs; -- boolean flag so we only emit one Vancouver error / category
local added_generic_name_errs; -- boolean flag so we only emit one generic name error / category and stop testing names once an error is encountered
local added_numeric_name_errs; -- boolean flag so we only emit one numeric name error / category and stop testing names once an error is encountered
local added_numeric_name_maint; -- boolean flag so we only emit one numeric name maint category and stop testing names once a category has been emitted
--#to be deleted as source
local Frame; -- holds the module's frame table
local is_preview_mode; -- true when article is in preview mode; false when using 'Preview page with this template' (previewing the module)
local is_sandbox; -- true when using sandbox modules to render citation
local url_was_archive_today; -- boolean flag set to true when has_archive_today_url() has unset |url= because it held a deprecated archive.today url
--#Added
local wikidatacite = false;
--[[--------------------------< F I R S T _ S E T >------------------------------------------------------------
Locates and returns the first set value in a table of values where the order established in the table,
left-to-right (or top-to-bottom), is the order in which the values are evaluated. Returns nil if none are set.
This version replaces the original 'for _, val in pairs do' and a similar version that used ipairs. With the pairs
version the order of evaluation could not be guaranteed. With the ipairs version, a nil value would terminate
the for-loop before it reached the actual end of the list.
]]
local function first_set (list, count)
local i = 1;
while i <= count do -- loop through all items in list
if utilities.is_set( list[i] ) then
return list[i]; -- return the first set list member
end
i = i + 1; -- point to next
end
end
--[[--------------------------< A D D _ V A N C _ E R R O R >----------------------------------------------------
Adds a single Vancouver system error message to the template's output regardless of how many error actually exist.
To prevent duplication, added_vanc_errs is nil until an error message is emitted.
added_vanc_errs is a Boolean declared in page scope variables above
]]
local function add_vanc_error (source, position)
if added_vanc_errs then return end
added_vanc_errs = true; -- note that we've added this category
utilities.set_message ('err_vancouver', {source, position});
end
--[[--------------------------< I S _ S C H E M E >------------------------------------------------------------
does this thing that purports to be a URI scheme seem to be a valid scheme? The scheme is checked to see if it
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:
Scheme names consist of a sequence of characters beginning with a
letter and followed by any combination of letters, digits, plus
("+"), period ("."), or hyphen ("-").
returns true if it does, else false
]]
local function is_scheme (scheme)
return scheme and scheme:match ('^%a[%a%d%+%.%-]*:'); -- true if scheme is set and matches the pattern
end
--[=[-------------------------< I S _ D O M A I N _ N A M E >--------------------------------------------------
Does this thing that purports to be a domain name seem to be a valid domain name?
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5
BNF defined here: https://tools.ietf.org/html/rfc4234
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;
see also [[Single-letter second-level domain]]
list of TLDs: https://www.iana.org/domains/root/db
RFC 952 (modified by RFC 1123) requires the first and last character of a hostname to be a letter or a digit. Between
the first and last characters the name may use letters, digits, and the hyphen.
Also allowed are IPv4 addresses. IPv6 not supported
domain is expected to be stripped of any path so that the last character in the last character of the TLD. tld
is two or more alpha characters. Any preceding '//' (from splitting a URL with a scheme) will be stripped
here. Perhaps not necessary but retained in case it is necessary for IPv4 dot decimal.
There are several tests:
the first character of the whole domain name including subdomains must be a letter or a digit
internationalized domain name (ASCII characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the TLD) see https://tools.ietf.org/html/rfc3490
single-letter/digit second-level domains in the .org, .cash, and .today TLDs
q, x, and z SL domains in the .com TLD
i and q SL domains in the .net TLD
single-letter SL domains in the ccTLDs (where the ccTLD is two letters)
two-character SL domains in gTLDs (where the gTLD is two or more letters)
three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)
IPv4 dot-decimal address format; TLD not allowed
returns true if domain appears to be a proper name and TLD or IPv4 address, else false
]=]
local function is_domain_name (domain)
if not domain then
return false; -- if not set, abandon
end
domain = domain:gsub ('^//', ''); -- strip '//' from domain name if present; done here so we only have to do it once
if not domain:match ('^[%w]') then -- first character must be letter or digit
return false;
end
if domain:match ('^%a+:') then -- hack to detect things that look like s:Page:Title where Page: is namespace at Wikisource
return false;
end
local patterns = { -- patterns that look like URLs
'%f[%w][%w][%w%-]+[%w]%.%a%a+$', -- three or more character hostname.hostname or hostname.tld
'%f[%w][%w][%w%-]+[%w]%.xn%-%-[%w]+$', -- internationalized domain name with ACE prefix
'%f[%a][qxz]%.com$', -- assigned one character .com hostname (x.com times out 2015-12-10)
'%f[%a][iq]%.net$', -- assigned one character .net hostname (q.net registered but not active 2015-12-10)
'%f[%w][%w]%.%a%a$', -- one character hostname and ccTLD (2 chars)
'%f[%w][%w][%w]%.%a%a+$', -- two character hostname and TLD
'^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?', -- IPv4 address
'[%a%d]+%:?' -- IPv6 address
}
for _, pattern in ipairs (patterns) do -- loop through the patterns list
if domain:match (pattern) then
return true; -- if a match then we think that this thing that purports to be a URL is a URL
end
end
for _, d in ipairs (cfg.single_letter_2nd_lvl_domains_t) do -- look for single letter second level domain names for these top level domains
if domain:match ('%f[%w][%w]%.' .. d) then
return true
end
end
return false; -- no matches, we don't know what this thing is
end
--[[--------------------------< I S _ U R L >------------------------------------------------------------------
returns true if the scheme and domain parts of a URL appear to be a valid URL; else false.
This function is the last step in the validation process. This function is separate because there are cases that
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external
wikilinks.
]]
local function is_url (scheme, domain)
if utilities.is_set (scheme) then -- if scheme is set check it and domain
return is_scheme (scheme) and is_domain_name (domain);
else
return is_domain_name (domain); -- scheme not set when URL is protocol-relative
end
end
--[[--------------------------< S P L I T _ U R L >------------------------------------------------------------
Split a URL into a scheme, authority indicator, and domain.
First remove Fully Qualified Domain Name terminator (a dot following TLD) (if any) and any path(/), query(?) or fragment(#).
If protocol-relative URL, return nil scheme and domain else return nil for both scheme and domain.
When not protocol-relative, get scheme, authority indicator, and domain. If there is an authority indicator (one
or more '/' characters immediately following the scheme's colon), make sure that there are only 2.
Any URL that does not have news: scheme must have authority indicator (//). TODO: are there other common schemes
like news: that don't use authority indicator?
Strip off any port and path;
]]
local function split_url (url_str)
local scheme, authority, domain;
url_str = url_str:gsub ('([%a%d])%.?[/%?#].*$', '%1'); -- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of '//')
if url_str:match ('^//%S*') then -- if there is what appears to be a protocol-relative URL
domain = url_str:match ('^//(%S*)')
elseif url_str:match ('%S-:/*%S+') then -- if there is what appears to be a scheme, optional authority indicator, and domain name
scheme, authority, domain = url_str:match ('(%S-:)(/*)(%S+)'); -- extract the scheme, authority indicator, and domain portions
if utilities.is_set (authority) then
authority = authority:gsub ('//', '', 1); -- replace place 1 pair of '/' with nothing;
if utilities.is_set(authority) then -- if anything left (1 or 3+ '/' where authority should be) then
return scheme; -- return scheme only making domain nil which will cause an error message
end
else
if not scheme:match ('^news:') then -- except for news:..., MediaWiki won't link URLs that do not have authority indicator; TODO: a better way to do this test?
return scheme; -- return scheme only making domain nil which will cause an error message
end
end
domain = domain:gsub ('(%a):%d+', '%1'); -- strip port number if present
end
return scheme, domain;
end
--[[--------------------------< L I N K _ P A R A M _ O K >---------------------------------------------------
checks the content of |title-link=, |series-link=, |author-link=, etc. for properly formatted content: no wikilinks, no URLs
Link parameters are to hold the title of a Wikipedia article, so none of the WP:TITLESPECIALCHARACTERS are allowed:
# < > [ ] | { } _
except the underscore which is used as a space in wiki URLs and # which is used for section links
returns false when the value contains any of these characters.
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid URL (the
|<param>-link= parameter is ok); else false when value appears to be a valid URL (the |<param>-link= parameter is NOT ok).
]]
local function link_param_ok (value)
local scheme, domain;
if value:find ('[<>%[%]|{}]') then -- if any prohibited characters
return false;
end
scheme, domain = split_url (value); -- get scheme or nil and domain or nil from URL;
return not is_url (scheme, domain); -- return true if value DOES NOT appear to be a valid URL
end
--[[--------------------------< L I N K _ T I T L E _ O K >---------------------------------------------------
Use link_param_ok() to validate |<param>-link= value and its matching |<title>= value.
|<title>= may be wiki-linked but not when |<param>-link= has a value. This function emits an error message when
that condition exists
check <link> for inter-language interwiki-link prefix. prefix must be a MediaWiki-recognized language
code and must begin with a colon.
]]
local function link_title_ok (link, lorig, title, torig)
local orig;
if utilities.is_set (link) then -- don't bother if <param>-link doesn't have a value
if not link_param_ok (link) then -- check |<param>-link= markup
orig = lorig; -- identify the failing link parameter
elseif title:find ('%[%[') then -- check |title= for wikilink markup
orig = torig; -- identify the failing |title= parameter
elseif link:match ('^%a+:') then -- if the link is what looks like an interwiki
local prefix = link:match ('^(%a+):'):lower(); -- get the interwiki prefix
if cfg.inter_wiki_map[prefix] then -- if prefix is in the map, must have preceding colon
orig = lorig; -- flag as error
end
end
end
if utilities.is_set (orig) then
link = ''; -- unset
utilities.set_message ('err_bad_paramlink', orig); -- URL or wikilink in |title= with |title-link=;
end
return link; -- link if ok, empty string else
end
--[[--------------------------< C H E C K _ U R L >------------------------------------------------------------
Determines whether a URL string appears to be valid.
First we test for space characters. If any are found, return false. Then split the URL into scheme and domain
portions, or for protocol-relative (//example.com) URLs, just the domain. Use is_url() to validate the two
portions of the URL. If both are valid, or for protocol-relative if domain is valid, return true, else false.
Because it is different from a standard URL, and because this module used external_link() to make external links
that work for standard and news: links, we validate newsgroup names here. The specification for a newsgroup name
is at https://tools.ietf.org/html/rfc5536#section-3.1.4
]]
local function check_url( url_str )
if nil == url_str:match ("^%S+$") then -- if there are any spaces in |url=value it can't be a proper URL
return false;
end
local scheme, domain;
scheme, domain = split_url (url_str); -- get scheme or nil and domain or nil from URL;
if 'news:' == scheme then -- special case for newsgroups
return domain:match('^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$');
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[=[-------------------------< I S _ P A R A M E T E R _ E X T _ W I K I L I N K >----------------------------
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first
non-space characters following the opening bracket appear to be a URL. The test will also find external wikilinks
that use protocol-relative URLs. Also finds bare URLs.
The frontier pattern prevents a match on interwiki-links which are similar to scheme:path URLs. The tests that
find bracketed URLs are required because the parameters that call this test (currently |title=, |chapter=, |work=,
and |publisher=) may have wikilinks and there are articles or redirects like '//Hus' so, while uncommon, |title=[[//Hus]]
is possible as might be [[en://Hus]].
]=]
local function is_parameter_ext_wikilink (value)
local scheme, domain;
if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext. wikilink with scheme and domain: [xxxx://yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(%a%S*:%S+).*%]'));
elseif value:match ('%f[%[]%[//%S+.*%]') then -- if protocol-relative ext. wikilink: [//yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(//%S+).*%]'));
elseif value:match ('%a%S*:%S+') then -- if bare URL with scheme; may have leading or trailing plain text
scheme, domain = split_url (value:match ('(%a%S*:%S+)'));
elseif value:match ('^//%S+') or value:match ('%s//%S+') then -- if protocol-relative bare URL: //yyyyy.zzz; authority indicator (//) must be be preceded nothing or by whitespace
scheme, domain = split_url (value:match ('(//%S+)')); -- what is left should be the domain
else
return false; -- didn't find anything that is obviously a URL
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[[--------------------------< I S _ A R C H I V E _ T O D A Y _ U R L >--------------------------------------
archive.today (and .ph, .is, .md, .li, .fo, .vn) are deprecated. See Wikipedia:Requests_for_comment/Archive.is_RFC_5
(Special:Permalink/1339352976)
<val> is a string that may or may not be a url
]]
local function is_archive_today_url (val)
if is_parameter_ext_wikilink (val) then -- is <val> a url?
local tld = val:match ('archive%.(%l+)'); -- get the tld
return tld and cfg.archive_today_tlds_t[tld]; -- return true if <tld> is one of the archive.today tlds; nil else
end
end
--[[--------------------------< H A S _ A R C H I V E _ T O D A Y _ U R L >------------------------------------
blank any parameter that holds one of the archive.today tlds (.today, .ph, .is, .md, .li, .fo, .vn) and also
blank parameters that are dependent on the offending parameter.
input <cite_args_t> is a table of all of this template's parameters This function modifies <cite_args_t>
when |url= or its alias |URL= hold an archive.today url, this function sets the flag <url_was_archive_today>
which is used later to suppress the missing url error message from {{citation}} when it has |website=<summat>
or from the templates {{cite web}}, {{cite podcast}}, {{cite mailing list}} which all require a url.
returns nothing
]]
local function has_archive_today_url (cite_args_t)
local unset_params_t = {}; -- to hold a sequence of parameters to unset from cite_args_t
for p, v in pairs (cite_args_t) do -- look at each parameter in the template
if is_archive_today_url (v:lower()) then -- if it has a parameter with an archive.today url
table.insert (unset_params_t, p); -- add the url-holding parameter name to our list of parameters to unset (may or may not be a legitimate url parameter)
if 'url' == p:lower() then -- if this parameter is |url= or |URL=
url_was_archive_today = true; -- set a flag so that cite web / podcast / mailinglist don't emit a missing url error message
end
if cfg.dependencies_t[p] then -- if this url-holding parameter (<p>) has dependencies
for _, dependent in ipairs (cfg.dependencies_t[p]) do -- loop through the url-holding parameter's dependency sequence
table.insert (unset_params_t, dependent); -- add dependent parameter to the list to be unset
end
end
end
end
if 0 < #unset_params_t then -- when there are parameters to unset
if not is_preview_mode then -- when in preview mode do not suppress any parameters
for _, unset_param in ipairs (unset_params_t) do -- loop through the sequence
cite_args_t[unset_param] = nil; -- and unset the url-holding parameter and its dependent parameters to avoid parameter-requires-other-parameter errors
end
end
utilities.set_message ('maint_deprecated_archive'); -- add a maintenance message
end
end
--[[-------------------------< C H E C K _ F O R _ U R L >-----------------------------------------------------
loop through a list of parameters and their values. Look at the value and if it has an external link, emit an error message.
]]
local function check_for_url (parameter_list, error_list)
for k, v in pairs (parameter_list) do -- for each parameter in the list
if is_parameter_ext_wikilink (v) then -- look at the value; if there is a URL add an error message
table.insert (error_list, utilities.wrap_style ('parameter', k));
end
end
end
--[[--------------------------< S A F E _ F O R _ U R L >------------------------------------------------------
Escape sequences for content that will be used for URL descriptions
]]
local function safe_for_url( str )
if str:match( "%[%[.-%]%]" ) ~= nil then
utilities.set_message ('err_wikilink_in_url', {});
end
return str:gsub( '[%[%]\n]', {
['['] = '[',
[']'] = ']',
['\n'] = ' ' } );
end
--[[--------------------------< E X T E R N A L _ L I N K >----------------------------------------------------
Format an external link with error checking
]]
local function external_link (URL, label, source, access)
local err_msg = '';
local domain;
local path;
local base_url;
if not utilities.is_set (label) then
label = URL;
if utilities.is_set (source) then
--#Modified
utilities.set_message (wikidatacite and 'err_wikidata_bare_url_missing_title' or 'err_bare_url_missing_title', {utilities.wrap_style ('parameter', source)});
else
error (cfg.messages["bare_url_no_origin"]); -- programmer error; valid parameter name does not have matching meta-parameter
end
end
if not check_url (URL) then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)});
end
domain, path = URL:match ('^([/%.%-%+:%a%d]+)([/%?#].*)$'); -- split the URL into scheme plus domain and path
if path then -- if there is a path portion
path = path:gsub ('[%[%]]', {['['] = '%5b', [']'] = '%5d'}); -- replace '[' and ']' with their percent-encoded values
URL = table.concat ({domain, path}); -- and reassemble
end
base_url = table.concat ({ "[", URL, " ", safe_for_url (label), "]" }); -- assemble a wiki-markup URL
if utilities.is_set (access) then -- access level (subscription, registration, limited)
base_url = utilities.substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[access].class, cfg.presentation[access].title, base_url}); -- add the appropriate icon
end
return base_url;
end
--[[--------------------------< D E P R E C A T E D _ P A R A M E T E R >--------------------------------------
Categorize and emit an error message when the citation contains one or more deprecated parameters. The function includes the
offending parameter name to the error message. Only one error message is emitted regardless of the number of deprecated
parameters in the citation.
added_deprecated_cat is a Boolean declared in page scope variables above
]]
local function deprecated_parameter(name)
if not added_deprecated_cat then
added_deprecated_cat = true; -- note that we've added this category
utilities.set_message ('err_deprecated_params', {name}); -- add error message
end
end
--[=[-------------------------< K E R N _ Q U O T E S >--------------------------------------------------------
Apply kerning to open the space between the quote mark provided by the module and a leading or trailing quote
mark contained in a |title= or |chapter= parameter's value.
This function will positive kern either single or double quotes:
"'Unkerned title with leading and trailing single quote marks'"
" 'Kerned title with leading and trailing single quote marks' " (in real life the kerning isn't as wide as this example)
Double single quotes (italic or bold wiki-markup) are not kerned.
Replaces Unicode quote marks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter
quote marks regardless of the need for kerning. Unicode quote marks are not replaced in simple [[D]] wikilinks.
Call this function for chapter titles, for website titles, etc.; not for book titles.
]=]
local function kern_quotes (str)
local cap = '';
local wl_type, label, link;
wl_type, label, link = utilities.is_wikilink (str); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
if 1 == wl_type then -- [[D]] simple wikilink with or without quote marks
if mw.ustring.match (str, '%[%[[\"“”\'‘’].+[\"“”\'‘’]%]%]') then -- leading and trailing quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
str = utilities.substitute (cfg.presentation['kern-right'], str);
elseif mw.ustring.match (str, '%[%[[\"“”\'‘’].+%]%]') then -- leading quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
elseif mw.ustring.match (str, '%[%[.+[\"“”\'‘’]%]%]') then -- trailing quote marks
str = utilities.substitute (cfg.presentation['kern-right'], str);
end
else -- plain text or [[L|D]]; text in label variable
label = mw.ustring.gsub (label, '[“”]', '\"'); -- replace “” (U+201C & U+201D) with " (typewriter double quote mark)
label = mw.ustring.gsub (label, '[‘’]', '\''); -- replace ‘’ (U+2018 & U+2019) with ' (typewriter single quote mark)
cap = mw.ustring.match (label, "^([\"\'][^\'].+)"); -- match leading double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-left'], cap);
end
cap = mw.ustring.match (label, "^(.+[^\'][\"\'])$") -- match trailing double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-right'], cap);
end
if 2 == wl_type then
str = utilities.make_wikilink (link, label); -- reassemble the wikilink
else
str = label;
end
end
return str;
end
--[[--------------------------< F O R M A T _ S C R I P T _ V A L U E >----------------------------------------
|script-title= holds title parameters that are not written in Latin-based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should
not be italicized and may be written right-to-left. The value supplied by |script-title= is concatenated onto Title after Title has been wrapped
in italic markup.
Regardless of language, all values provided by |script-title= are wrapped in <bdi>...</bdi> tags to isolate RTL languages from the English left to right.
|script-title= provides a unique feature. The value in |script-title= may be prefixed with a two-character ISO 639-1 language code and a colon:
|script-title=ja:*** *** (where * represents a Japanese character)
Spaces between the two-character code and the colon and the colon and the first script character are allowed:
|script-title=ja : *** ***
|script-title=ja: *** ***
|script-title=ja :*** ***
Spaces preceding the prefix are allowed: |script-title = ja:*** ***
The prefix is checked for validity. If it is a valid ISO 639-1 language code, the lang attribute (lang="ja") is added to the <bdi> tag so that browsers can
know the language the tag contains. This may help the browser render the script more correctly. If the prefix is invalid, the lang attribute
is not added. At this time there is no error message for this condition.
Supports |script-title=, |script-chapter=, |script-<periodical>=
]]
local function format_script_value (script_value, script_param)
local lang=''; -- initialize to empty string
local name;
if script_value:match('^%l%l%l?%s*:') then -- if first 3 or 4 non-space characters are script language prefix
lang = script_value:match('^(%l%l%l?)%s*:%s*%S.*'); -- get the language prefix or nil if there is no script
if not utilities.is_set (lang) then
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing title part']}); -- prefix without 'title'; add error message
return ''; -- script_value was just the prefix so return empty string
end
-- if we get this far we have prefix and script
--#modified for faster
name = cfg.lang_tag_remap[lang] or cfg.mw_languages_by_tag_t[lang]; -- get language name so that we can use it to categorize
if utilities.is_set (name) then -- is prefix a proper ISO 639-1 language code?
script_value = script_value:gsub ('^%l+%s*:%s*', ''); -- strip prefix from script
-- is prefix one of these language codes?
if utilities.in_array (lang, cfg.script_lang_codes) then
utilities.add_prop_cat ('script', {name, lang})
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['unknown language code']}); -- unknown script-language; add error message
end
lang = ' lang="' .. lang .. '" '; -- convert prefix into a lang attribute
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['invalid language code']}); -- invalid language code; add error message
lang = ''; -- invalid so set lang to empty string
end
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing prefix']}); -- no language code prefix; add error message
end
script_value = utilities.substitute (cfg.presentation['bdi'], {lang, script_value}); -- isolate in case script is RTL
return script_value;
end
--[[--------------------------< S C R I P T _ C O N C A T E N A T E >------------------------------------------
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script
value has been wrapped in <bdi> tags.
]]
local function script_concatenate (title, script, script_param)
if utilities.is_set (script) then
script = format_script_value (script, script_param); -- <bdi> tags, lang attribute, categorization, etc.; returns empty string on error
if utilities.is_set (script) then
title = title .. ' ' .. script; -- concatenate title and script title
end
end
return title;
end
--[[--------------------------< W R A P _ M S G >--------------------------------------------------------------
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list
configuration taking one argument. Supports lower case text for {{citation}} templates. Additional text taken
from citation_config.messages - the reason this function is similar to but separate from wrap_style().
]]
local function wrap_msg (key, str, lower)
if not utilities.is_set ( str ) then
return "";
end
if true == lower then
local msg;
msg = cfg.messages[key]:lower(); -- set the message to lower case before
return utilities.substitute ( msg, str ); -- including template text
else
return utilities.substitute ( cfg.messages[key], str );
end
end
--[[----------------< W I K I S O U R C E _ U R L _ M A K E >-------------------
Makes a Wikisource URL from Wikisource interwiki-link. Returns the URL and appropriate
label; nil else.
str is the value assigned to |chapter= (or aliases) or |title= or |title-link=
]]
local function wikisource_url_make (str)
local wl_type, D, L;
local ws_url, ws_label;
local wikisource_prefix = table.concat ({'https://', cfg.this_wiki_code, '.wikisource.org/wiki/'});
wl_type, D, L = utilities.is_wikilink (str); -- wl_type is 0 (not a wikilink), 1 (simple wikilink), 2 (complex wikilink)
if 0 == wl_type then -- not a wikilink; might be from |title-link=
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 1 == wl_type then -- simple wikilink: [[Wikisource:ws article]]
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 2 == wl_type then -- non-so-simple wikilink: [[Wikisource:ws article|displayed text]] ([[L|D]])
str = L:match ('^[Ww]ikisource:(.+)') or L:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_label = D; -- get ws article name from display portion of interwiki link
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title without namespace from link portion of wikilink
});
end
end
if ws_url then
ws_url = mw.uri.encode (ws_url, 'WIKI'); -- make a usable URL
ws_url = ws_url:gsub ('%%23', '#'); -- undo percent-encoding of fragment marker
end
return ws_url, ws_label, L or D; -- return proper URL or nil and a label or nil
end
--[[----------------< F O R M A T _ P E R I O D I C A L >-----------------------
Format the three periodical parameters: |script-<periodical>=, |<periodical>=,
and |trans-<periodical>= into a single Periodical meta-parameter.
]]
local function format_periodical (script_periodical, script_periodical_source, periodical, trans_periodical)
if not utilities.is_set (periodical) then
periodical = ''; -- to be safe for concatenation
else
periodical = utilities.wrap_style ('italic-title', periodical); -- style
end
periodical = script_concatenate (periodical, script_periodical, script_periodical_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (trans_periodical) then
trans_periodical = utilities.wrap_style ('trans-italic-title', trans_periodical);
if utilities.is_set (periodical) then
periodical = periodical .. ' ' .. trans_periodical;
else -- here when trans-periodical without periodical or script-periodical
periodical = trans_periodical;
utilities.set_message ('err_trans_missing_title', {'periodical'});
end
end
return periodical;
end
--[[------------------< F O R M A T _ C H A P T E R _ T I T L E >---------------
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=,
and |chapter-url= into a single chapter meta- parameter (chapter_url_source used
for error messages).
]]
local function format_chapter_title (script_chapter, script_chapter_source, chapter, chapter_source, trans_chapter, trans_chapter_source, chapter_url, chapter_url_source, no_quotes, access)
local ws_url, ws_label, L = wikisource_url_make (chapter); -- make a wikisource URL and label from a wikisource interwiki link
if ws_url then
ws_label = ws_label:gsub ('_', ' '); -- replace underscore separators with space characters
chapter = ws_label;
end
if not utilities.is_set (chapter) then
chapter = ''; -- to be safe for concatenation
else
if false == no_quotes then
chapter = kern_quotes (chapter); -- if necessary, separate chapter title's leading and trailing quote marks from module provided quote marks
chapter = utilities.wrap_style ('quoted-title', chapter);
end
end
chapter = script_concatenate (chapter, script_chapter, script_chapter_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (chapter_url) then
chapter = external_link (chapter_url, chapter, chapter_url_source, access); -- adds bare_url_missing_title error if appropriate
elseif ws_url then
chapter = external_link (ws_url, chapter .. ' ', 'ws link in chapter'); -- adds bare_url_missing_title error if appropriate; space char to move icon away from chap text; TODO: better way to do this?
chapter = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, chapter});
end
if utilities.is_set (trans_chapter) then
trans_chapter = utilities.wrap_style ('trans-quoted-title', trans_chapter);
if utilities.is_set (chapter) then
chapter = chapter .. ' ' .. trans_chapter;
else -- here when trans_chapter without chapter or script-chapter
chapter = trans_chapter;
chapter_source = trans_chapter_source:match ('trans%-?(.+)'); -- when no chapter, get matching name from trans-<param>
utilities.set_message ('err_trans_missing_title', {chapter_source});
end
end
return chapter;
end
--[[----------------< H A S _ I N V I S I B L E _ C H A R S >-------------------
This function searches a parameter's value for non-printable or invisible characters.
The search stops at the first match.
This function will detect the visible replacement character when it is part of the Wikisource.
Detects but ignores nowiki and math stripmarkers. Also detects other named stripmarkers
(gallery, math, pre, ref) and identifies them with a slightly different error message.
See also coins_cleanup().
Output of this function is an error message that identifies the character or the
Unicode group, or the stripmarker that was detected along with its position (or,
for multi-byte characters, the position of its first byte) in the parameter value.
]]
local function has_invisible_chars (param, v)
local position = ''; -- position of invisible char or starting position of stripmarker
local capture; -- used by stripmarker detection to hold name of the stripmarker
local stripmarker; -- boolean set true when a stripmarker is found
capture = string.match (v, '[%w%p ]*'); -- test for values that are simple ASCII text and bypass other tests if true
if capture == v then -- if same there are no Unicode characters
return;
end
for _, invisible_char in ipairs (cfg.invisible_chars) do
local char_name = invisible_char[1]; -- the character or group name
local pattern = invisible_char[2]; -- the pattern used to find it
position, _, capture = mw.ustring.find (v, pattern); -- see if the parameter value contains characters that match the pattern
if position and (cfg.invisible_defs.zwj == capture) then -- if we found a zero-width joiner character
if mw.ustring.find (v, cfg.indic_script) then -- it's ok if one of the Indic scripts
position = nil; -- unset position
elseif cfg.emoji_t[mw.ustring.codepoint (v, position+1)] then -- is zwj followed by a character listed in emoji{}?
position = nil; -- unset position
end
end
if position then
if 'nowiki' == capture or 'math' == capture or -- nowiki and math stripmarkers (not an error condition)
('templatestyles' == capture and utilities.in_array (param, {'id', 'quote','المعرف', 'اقتباس'})) then -- templatestyles stripmarker allowed in these parameters
stripmarker = true; -- set a flag
elseif true == stripmarker and cfg.invisible_defs.del == capture then -- because stripmakers begin and end with the delete char, assume that we've found one end of a stripmarker
position = nil; -- unset
else
local err_msg;
if capture and not (cfg.invisible_defs.del == capture or cfg.invisible_defs.zwj == capture) then
err_msg = utilities.substitute (cfg.messages.invisible_1, {capture, char_name}); -- <capture> here is stripmarker name
else
err_msg = utilities.substitute (cfg.messages.invisible_2, char_name);
end
utilities.set_message ('err_invisible_char', {err_msg, utilities.wrap_style ('parameter', param), position}); -- add error message
return; -- and done with this parameter
end
end
end
end
--[[-------------------< A R G U M E N T _ W R A P P E R >----------------------
Argument wrapper. This function provides support for argument mapping defined
in the configuration file so that multiple names can be transparently aliased to
single internal variable.
]]
local function argument_wrapper ( args )
local origin = {};
return setmetatable({
ORIGIN = function ( self, k )
local dummy = self[k]; -- force the variable to be loaded.
return origin[k];
end
},
{
__index = function ( tbl, k )
if origin[k] ~= nil then
return nil;
end
local args, list, v = args, cfg.aliases[k];
if type( list ) == 'table' then
v, origin[k] = utilities.select_one ( args, list, 'err_redundant_parameters' );
if origin[k] == nil then
origin[k] = ''; -- Empty string, not nil
end
elseif list ~= nil then
v, origin[k] = args[list], list;
else
-- maybe let through instead of raising an error?
-- v, origin[k] = args[k], k;
error( cfg.messages['unknown_argument_map'] .. ': ' .. k);
end
-- Empty strings, not nil;
if v == nil then
v = '';
origin[k] = '';
end
tbl = rawset( tbl, k, v );
return v;
end,
});
end
--[[--------------------------< N O W R A P _ D A T E >-------------------------
When date is YYYY-MM-DD format wrap in nowrap span: <span ...>YYYY-MM-DD</span>.
When date is DD MMMM YYYY or is MMMM DD, YYYY then wrap in nowrap span:
<span ...>DD MMMM</span> YYYY or <span ...>MMMM DD,</span> YYYY
DOES NOT yet support MMMM YYYY or any of the date ranges.
]]
local function nowrap_date (date)
local cap = '';
local cap2 = '';
if date:match("^%d%d%d%d%-%d%d%-%d%d$") then
date = utilities.substitute (cfg.presentation['nowrap1'], date);
elseif date:match("^%a+%s*%d%d?,%s+%d%d%d%d$") or date:match ("^%d%d?%s*%a+%s+%d%d%d%d$") then
cap, cap2 = string.match (date, "^(.*)%s+(%d%d%d%d)$");
date = utilities.substitute (cfg.presentation['nowrap2'], {cap, cap2});
end
return date;
end
--[[--------------------------< S E T _ T I T L E T Y P E >---------------------
This function sets default title types (equivalent to the citation including
|type=<default value>) for those templates that have defaults. Also handles the
special case where it is desirable to omit the title type from the rendered citation
(|type=none).
]]
local function set_titletype (cite_class, title_type)
if utilities.is_set (title_type) then
if 'none' == cfg.keywords_xlate[title_type] then
title_type = ''; -- if |type=none then type parameter not displayed
end
return title_type; -- if |type= has been set to any other value use that value
end
return cfg.title_types [cite_class] or ''; -- set template's default title type; else empty string for concatenation
end
--[[--------------------------< S A F E _ J O I N >-----------------------------
Joins a sequence of strings together while checking for duplicate separation characters.
]]
local function safe_join( tbl, duplicate_char )
local f = {}; -- create a function table appropriate to type of 'duplicate character'
if 1 == #duplicate_char then -- for single byte ASCII characters use the string library functions
f.gsub = string.gsub
f.match = string.match
f.sub = string.sub
else -- for multi-byte characters use the ustring library functions
f.gsub = mw.ustring.gsub
f.match = mw.ustring.match
f.sub = mw.ustring.sub
end
local str = ''; -- the output string
local comp = ''; -- what does 'comp' mean?
local end_chr = '';
local trim;
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
if str == '' then -- if output string is empty
str = value; -- assign value to it (first time through the loop)
elseif value ~= '' then
if value:sub(1, 1) == '<' then -- special case of values enclosed in spans and other markup.
comp = value:gsub( "%b<>", "" ); -- remove HTML markup (<span>string</span> -> string)
else
comp = value;
end
-- typically duplicate_char is sepc
if f.sub(comp, 1, 1) == duplicate_char then -- is first character same as duplicate_char? why test first character?
-- Because individual string segments often (always?) begin with terminal punct for the
-- preceding segment: 'First element' .. 'sepc next element' .. etc.?
trim = false;
end_chr = f.sub(str, -1, -1); -- get the last character of the output string
-- str = str .. "<HERE(enchr=" .. end_chr .. ")" -- debug stuff?
if end_chr == duplicate_char then -- if same as separator
str = f.sub(str, 1, -2); -- remove it
elseif end_chr == "'" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "''" then -- if last three chars of str are sepc''
str = f.sub(str, 1, -4) .. "''"; -- remove them and add back ''
elseif f.sub(str, -5, -1) == duplicate_char .. "]]''" then -- if last five chars of str are sepc]]''
trim = true; -- why? why do this and next differently from previous?
elseif f.sub(str, -4, -1) == duplicate_char .. "]''" then -- if last four chars of str are sepc]''
trim = true; -- same question
end
elseif end_chr == "]" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "]]" then -- if last three chars of str are sepc]] wikilink
trim = true;
elseif f.sub(str, -3, -1) == duplicate_char .. '"]' then -- if last three chars of str are sepc"] quoted external link
trim = true;
elseif f.sub(str, -2, -1) == duplicate_char .. "]" then -- if last two chars of str are sepc] external link
trim = true;
elseif f.sub(str, -4, -1) == duplicate_char .. "'']" then -- normal case when |url=something & |title=Title.
trim = true;
end
elseif end_chr == " " then -- if last char of output string is a space
if f.sub(str, -2, -1) == duplicate_char .. " " then -- if last two chars of str are <sepc><space>
str = f.sub(str, 1, -3); -- remove them both
end
end
if trim then
if value ~= comp then -- value does not equal comp when value contains HTML markup
local dup2 = duplicate_char;
if f.match(dup2, "%A" ) then dup2 = "%" .. dup2; end -- if duplicate_char not a letter then escape it
value = f.gsub(value, "(%b<>)" .. dup2, "%1", 1 ) -- remove duplicate_char if it follows HTML markup
else
value = f.sub(value, 2, -1 ); -- remove duplicate_char when it is first character
end
end
end
str = str .. value; -- add it to the output string
end
end
return str;
end
--[[--------------------------< I S _ S U F F I X >-----------------------------
returns true if suffix is properly formed Jr, Sr, or ordinal in the range 1–9.
Puncutation not allowed.
]]
local function is_suffix (suffix)
if utilities.in_array (suffix, {'Jr', 'Sr', 'Jnr', 'Snr', '1st', '2nd', '3rd'}) or suffix:match ('^%dth$') then
return true;
end
return false;
end
--[[--------------------< I S _ G O O D _ V A N C _ N A M E >-------------------
For Vancouver style, author/editor names are supposed to be rendered in Latin
(read ASCII) characters. When a name uses characters that contain diacritical
marks, those characters are to be converted to the corresponding Latin
character. When a name is written using a non-Latin alphabet or logogram, that
name is to be transliterated into Latin characters. The module doesn't do this
so editors may/must.
This test allows |first= and |last= names to contain any of the letters defined
in the four Unicode Latin character sets
[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A
[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF
[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F
[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F
|lastn= also allowed to contain hyphens, spaces, and apostrophes.
(http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods
This original test:
if nil == mw.ustring.find (last, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%']*$")
or nil == mw.ustring.find (first, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%'%.]+[2-6%a]*$") then
was written outside of the code editor and pasted here because the code editor
gets confused between character insertion point and cursor position. The test has
been rewritten to use decimal character escape sequence for the individual bytes
of the Unicode characters so that it is not necessary to use an external editor
to maintain this code.
\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)
\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)
\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A & B)
\199\132-\201\143 – DŽ-ɏ (U+01C4-U+024F – Latin extended B)
]]
local function is_good_vanc_name (last, first, suffix, position)
if not suffix then
if first:find ('[,%s]') then -- when there is a space or comma, might be first name/initials + generational suffix
first = first:match ('(.-)[,%s]+'); -- get name/initials
suffix = first:match ('[,%s]+(.+)$'); -- get generational suffix
end
end
if utilities.is_set (suffix) then
if not is_suffix (suffix) then
add_vanc_error (cfg.err_msg_supl.suffix, position);
return false; -- not a name with an appropriate suffix
end
end
if nil == mw.ustring.find (last, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%']*$") or
nil == mw.ustring.find (first, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%'%.]*$") then
add_vanc_error (cfg.err_msg_supl['non-Latin char'], position);
return false; -- not a string of Latin characters; Vancouver requires Romanization
end;
return true;
end
--[[--------------------------< R E D U C E _ T O _ I N I T I A L S >------------------------------------------
Attempts to convert names to initials in support of |name-list-style=vanc.
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period.
See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.
Vancouver style requires family rank designations (Jr, II, III, etc.) to be rendered
as Jr, 2nd, 3rd, etc. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.
This code only accepts and understands generational suffix in the Vancouver format
because Roman numerals look like, and can be mistaken for, initials.
This function uses ustring functions because firstname initials may be any of the
Unicode Latin characters accepted by is_good_vanc_name ().
]]
local function reduce_to_initials (first, position)
if first:find (',', 1, true) then
return first; -- commas not allowed; abandon
end
local name, suffix = mw.ustring.match (first, "^(%u+) ([%dJS][%drndth]+)$");
if not name then -- if not initials and a suffix
name = mw.ustring.match (first, "^(%u+)$"); -- is it just initials?
end
if name then -- if first is initials with or without suffix
if 3 > mw.ustring.len (name) then -- if one or two initials
if suffix then -- if there is a suffix
if is_suffix (suffix) then -- is it legitimate?
return first; -- one or two initials and a valid suffix so nothing to do
else
add_vanc_error (cfg.err_msg_supl.suffix, position); -- one or two initials with invalid suffix so error message
return first; -- and return first unmolested
end
else
return first; -- one or two initials without suffix; nothing to do
end
end
end -- if here then name has 3 or more uppercase letters so treat them as a word
local initials_t, names_t = {}, {}; -- tables to hold name parts and initials
local i = 1; -- counter for number of initials
names_t = mw.text.split (first, '[%s%-]+'); -- split into a sequence of names and possible suffix
while names_t[i] do -- loop through the sequence
if 1 < i and names_t[i]:match ('[%dJS][%drndth]+%.?$') then -- if not the first name, and looks like a suffix (may have trailing dot)
names_t[i] = names_t[i]:gsub ('%.', ''); -- remove terminal dot if present
if is_suffix (names_t[i]) then -- if a legitimate suffix
table.insert (initials_t, ' ' .. names_t[i]); -- add a separator space, insert at end of initials sequence
break; -- and done because suffix must fall at the end of a name
end -- no error message if not a suffix; possibly because of Romanization
end
if 3 > i then
table.insert (initials_t, mw.ustring.sub (names_t[i], 1, 1)); -- insert the initial at end of initials sequence
end
i = i + 1; -- bump the counter
end
return table.concat (initials_t); -- Vancouver format does not include spaces.
end
--[[--------------------------< I N T E R W I K I _ P R E F I X E N _ G E T >----------------------------------
extract interwiki prefixen from <value>. Returns two one or two values:
false – no prefixen
nil – prefix exists but not recognized
project prefix, language prefix – when value has either of:
:<project>:<language>:<article>
:<language>:<project>:<article>
project prefix, nil – when <value> has only a known single-letter prefix
nil, language prefix – when <value> has only a known language prefix
accepts single-letter project prefixen: 'd' (wikidata), 's' (wikisource), and 'w' (wikipedia) prefixes; at this
writing, the other single-letter prefixen (b (wikibook), c (commons), m (meta), n (wikinews), q (wikiquote), and
v (wikiversity)) are not supported.
]]
local function interwiki_prefixen_get (value, is_link)
if not value:find (':%l+:') then -- if no prefix
return false; -- abandon; boolean here to distinguish from nil fail returns later
end
local prefix_patterns_linked_t = { -- sequence of valid interwiki and inter project prefixen
'^%[%[:([dsw]):(%l%l+):', -- wikilinked; project and language prefixes
'^%[%[:(%l%l+):([dsw]):', -- wikilinked; language and project prefixes
'^%[%[:([dsw]):', -- wikilinked; project prefix
'^%[%[:(%l%l+):', -- wikilinked; language prefix
}
local prefix_patterns_unlinked_t = { -- sequence of valid interwiki and inter project prefixen
'^:([dsw]):(%l%l+):', -- project and language prefixes
'^:(%l%l+):([dsw]):', -- language and project prefixes
'^:([dsw]):', -- project prefix
'^:(%l%l+):', -- language prefix
}
local cap1, cap2;
for _, pattern in ipairs ((is_link and prefix_patterns_linked_t) or prefix_patterns_unlinked_t) do
cap1, cap2 = value:match (pattern);
if cap1 then
break; -- found a match so stop looking
end
end
if cap1 and cap2 then -- when both then :project:language: or :language:project: (both forms allowed)
if 1 == #cap1 then -- length == 1 then :project:language:
if cfg.inter_wiki_map[cap2] then -- is language prefix in the interwiki map?
return cap1, cap2; -- return interwiki project and interwiki language
end
else -- here when :language:project:
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return cap2, cap1; -- return interwiki project and interwiki language
end
end
return nil; -- unknown interwiki language
elseif not (cap1 or cap2) then -- both are nil?
return nil; -- we got something that looks like a project prefix but isn't; return fail
elseif 1 == #cap1 then -- here when one capture
return cap1, nil; -- length is 1 so return project, nil language
else -- here when one capture and its length it more than 1
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return nil, cap1; -- return nil project, language
end
end
end
--[[--------------------------< L I S T _ P E O P L E >--------------------------
Formats a list of people (authors, contributors, editors, interviewers, translators)
names in the list will be linked when
|<name>-link= has a value
|<name>-mask- does NOT have a value; masked names are presumed to have been
rendered previously so should have been linked there
when |<name>-mask=0, the associated name is not rendered
]]
local function list_people (control, people, etal)
local sep;
local namesep;
local format = control.format;
local maximum = control.maximum;
local name_list = {};
if 'vanc' == format then -- Vancouver-like name styling?
sep = cfg.presentation['sep_nl_vanc']; -- name-list separator between names is a comma
namesep = cfg.presentation['sep_name_vanc']; -- last/first separator is a space
else
sep = cfg.presentation['sep_nl']; -- name-list separator between names is a semicolon
namesep = cfg.presentation['sep_name']; -- last/first separator is <comma><space>
end
if sep:sub (-1, -1) ~= " " then sep = sep .. " " end
if utilities.is_set (maximum) and maximum < 1 then return "", 0; end -- returned 0 is for EditorCount; not used for other names
for i, person in ipairs (people) do
if utilities.is_set (person.last) then
local mask = person.mask;
local one;
local sep_one = sep;
if utilities.is_set (maximum) and i > maximum then
etal = true;
break;
end
if mask then
local n = tonumber (mask); -- convert to a number if it can be converted; nil else
if n then
one = 0 ~= n and string.rep("—", n) or nil; -- make a string of (n > 0) mdashes, nil else, to replace name
person.link = nil; -- don't create link to name if name is replaces with mdash string or has been set nil
else
one = mask; -- replace name with mask text (must include name-list separator)
sep_one = " "; -- modify name-list separator
end
else
one = person.last; -- get surname
local first = person.first -- get given name
if utilities.is_set (first) then
if ("vanc" == format) then -- if Vancouver format
one = one:gsub ('%.', ''); -- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
if not person.corporate and is_good_vanc_name (one, first, nil, i) then -- and name is all Latin characters; corporate authors not tested
first = reduce_to_initials (first, i); -- attempt to convert first name(s) to initials
end
end
one = one .. namesep .. first;
end
end
if utilities.is_set (person.link) then
one = utilities.make_wikilink (person.link, one); -- link author/editor
end
if one then -- if <one> has a value (name, mdash replacement, or mask text replacement)
local proj, tag = interwiki_prefixen_get (one, true); -- get the interwiki prefixen if present
if 'w' == proj and ('Wikipedia' == mw.site.namespaces.Project['name']) then
proj = nil; -- for stuff like :w:de:<article>, :w is unnecessary TODO: maint cat?
end
if proj then
local proj_name = ({['d'] = cfg.messages.wikidata, ['s'] = cfg.messages.wikisource, ['w'] = cfg.messages.wikipedia})[proj]; -- :w (wikipedia) for linking from a non-wikipedia project
if proj_name then
one = one .. utilities.wrap_style ('interproj', proj_name); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interproj-linked-name', proj); -- categorize it; <proj> is sort key
tag = nil; -- unset; don't do both project and language
end
end
if tag == cfg.this_wiki_code then
tag = nil; -- stuff like :en:<article> at en.wiki is pointless TODO: maint cat?
end
if tag then
local lang = cfg.lang_tag_remap[tag] or cfg.mw_languages_by_tag_t[tag];
if lang then -- error messaging done in extract_names() where we know parameter names
one = one .. utilities.wrap_style ('interwiki', lang); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interwiki-linked-name', tag); -- categorize it; <tag> is sort key
end
end
table.insert (name_list, one); -- add it to the list of names
table.insert (name_list, sep_one); -- add the proper name-list separator
end
end
end
local count = #name_list / 2; -- (number of names + number of separators) divided by 2
if 0 < count then
if 1 < count and not etal then
if 'amp' == format then
name_list[#name_list-2] = " & "; -- replace last separator with ampersand text
elseif 'and' == format then
if 2 == count then
name_list[#name_list-2] = cfg.presentation.sep_nl_and; -- replace last separator with 'and' text
else
name_list[#name_list-2] = cfg.presentation.sep_nl_end; -- replace last separator with '(sep) and' text
end
end
end
name_list[#name_list] = nil; -- erase the last separator
end
local result = table.concat (name_list); -- construct list
if etal and utilities.is_set (result) then -- etal may be set by |display-authors=etal but we might not have a last-first list
result = result .. sep .. cfg.messages['et al']; -- we've got a last-first list and etal so add et al.
end
return result, count; -- return name-list string and count of number of names (count used for editor names only)
end
--[[--------------------< M A K E _ C I T E R E F _ I D >-----------------------
Generates a CITEREF anchor ID if we have at least one name or a date. Otherwise
returns an empty string.
namelist is one of the contributor-, author-, or editor-name lists chosen in that
order. year is Year or anchor_year.
]]
local function make_citeref_id (namelist, year)
local names={}; -- a table for the one to four names and year
for i,v in ipairs (namelist) do -- loop through the list and take up to the first four last names
names[i] = v.last
if i == 4 then break end -- if four then done
end
table.insert (names, year); -- add the year at the end
local id = table.concat(names); -- concatenate names and year for CITEREF id
if utilities.is_set (id) then -- if concatenation is not an empty string
return "CITEREF" .. id; -- add the CITEREF portion
else
return ''; -- return an empty string; no reason to include CITEREF id in this citation
end
end
--[[--------------------------< C I T E _ C L A S S _A T T R I B U T E _M A K E >------------------------------
construct <cite> tag class attribute for this citation.
<cite_class> – config.CitationClass from calling template
<mode> – value from |mode= parameter
]]
local function cite_class_attribute_make (cite_class, mode)
local class_t = {};
table.insert (class_t, 'citation'); -- required for blue highlight
if 'citation' ~= cite_class then
table.insert (class_t, cite_class); -- identify this template for user css
table.insert (class_t, utilities.is_set (mode) and mode or 'cs1'); -- identify the citation style for user css or javascript
else
table.insert (class_t, utilities.is_set (mode) and mode or 'cs2'); -- identify the citation style for user css or javascript
end
for _, prop_key in ipairs (z.prop_keys_t) do
table.insert (class_t, prop_key); -- identify various properties for user css or javascript
end
return table.concat (class_t, ' '); -- make a big string and done
end
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
Evaluates the content of name parameters (author, editor, etc.) for variations on
the theme of et al. If found, the et al. is removed, a flag is set to true and
the function returns the modified name and the flag.
This function never sets the flag to false but returns its previous state because
it may have been set by previous passes through this function or by the associated
|display-<names>=etal parameter
]]
local function name_has_etal (name, etal, nocat, param)
if utilities.is_set (name) then -- name can be nil in which case just return
local patterns = cfg.et_al_patterns; -- get patterns from configuration
for _, pattern in ipairs (patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, ''); -- remove the offending text
etal = true; -- set flag (may have been set previously here or by |display-<names>=etal)
if not nocat then -- no categorization for |vauthors=
utilities.set_message ('err_etal', {param}); -- and set an error if not added
end
end
end
end
return name, etal;
end
--[[---------------------< N A M E _ I S _ N U M E R I C >----------------------
Add an error message and category when <name> parameter value does not contain letters.
Add a maintenance category when <name> parameter value has numeric characters mixed with characters that are
not numeric characters; could be letters and/or punctuation characters.
This function will only emit one error and one maint message for the current template. Does not emit both error
and maint messages/categories for the same parameter value.
returns nothing
]]
local function name_is_numeric (name, name_alias, list_name)
local patterns = {
'^%D+%d', -- <name> must have digits preceded by other characters
'^%D*%d+%D+', -- <name> must have digits followed by other characters
}
if not added_numeric_name_errs and mw.ustring.match (name, '^[%A]+$') then -- if we have not already set an error message and <name> does not have any alpha characters
utilities.set_message ('err_numeric_names', name_alias); -- add an error message
added_numeric_name_errs = true; -- set the flag so we emit only one error message
return; -- when here no point in further testing; abandon
end
if not added_numeric_name_maint then -- if we have already set a maint message
for _, pattern in ipairs (patterns) do -- spin through list of patterns
if mw.ustring.match (name, pattern) then -- digits preceded or followed by anything but digits; %D+ includes punctuation
utilities.set_message ('maint_numeric_names', cfg.special_case_translation [list_name]); -- add a maint cat for this template
added_numeric_name_maint = true; -- set the flag so we emit only one maint message
return; -- when here no point in further testing; abandon
end
end
end
end
--[[-----------------< N A M E _ H A S _ M U L T _ N A M E S >------------------
Evaluates the content of last/surname (authors etc.) parameters for multiple names.
Multiple names are indicated if there is more than one comma or any "unescaped"
semicolons. Escaped semicolons are ones used as part of selected HTML entities.
If the condition is met, the function adds the multiple name maintenance category.
Same test for first except that commas should not appear in given names (MOS:JR says
that the generational suffix does not take a separator character). Titles, degrees,
postnominals, affiliations, all normally comma separated don't belong in a citation.
<name> – name parameter value
<list_name> – AuthorList, EditorList, etc
<limit> – number of allowed commas; 1 (default) for surnames; 0 for given names
returns nothing
]]
local function name_has_mult_names (name, list_name, limit)
local _, commas, semicolons, nbsps;
limit = limit and limit or 1;
if utilities.is_set (name) then
_, commas = name:gsub (',', ''); -- count the number of commas
_, semicolons = name:gsub (';', ''); -- count the number of semicolons
-- nbsps probably should be its own separate count rather than merged in
-- some way with semicolons because Lua patterns do not support the
-- grouping operator that regex does, which means there is no way to add
-- more entities to escape except by adding more counts with the new
-- entities
_, nbsps = name:gsub (' ',''); -- count nbsps
-- There is exactly 1 semicolon per entity, so subtract nbsps
-- from semicolons to 'escape' them. If additional entities are added,
-- they also can be subtracted.
if limit < commas or 0 < (semicolons - nbsps) then
utilities.set_message ('maint_mult_names', cfg.special_case_translation [list_name]); -- add a maint message
end
end
end
--[=[-------------------------< I S _ G E N E R I C >----------------------------------------------------------
Compares values assigned to various parameters according to the string provided as <item> in the function call.
<item> can have on of two values:
'generic_names' – for name-holding parameters: |last=, |first=, |editor-last=, etc
'generic_titles' – for |title=
There are two types of generic tests. The 'accept' tests look for a pattern that should not be rejected by the
'reject' test. For example,
|author=[[John Smith (author)|Smith, John]]
would be rejected by the 'author' reject test. But piped wikilinks with 'author' disambiguation should not be
rejected so the 'accept' test prevents that from happening. Accept tests are always performed before reject
tests.
Each of the 'accept' and 'reject' sequence tables hold tables for en.wiki (['en']) and local.wiki (['local'])
that each can hold a test sequence table The sequence table holds, at index [1], a test pattern, and, at index
[2], a boolean control value. The control value tells string.find() or mw.ustring.find() to do plain-text search (true)
or a pattern search (false). The intent of all this complexity is to make these searches as fast as possible so
that we don't run out of processing time on very large articles.
Returns
true when a reject test finds the pattern or string
false when an accept test finds the pattern or string
nil else
]=]
local function is_generic (item, value, wiki)
local test_val;
local str_lower = { -- use string.lower() for en.wiki (['en']) and use mw.ustring.lower() or local.wiki (['local'])
['en'] = string.lower,
['local'] = mw.ustring.lower,
}
local str_find = { -- use string.find() for en.wiki (['en']) and use mw.ustring.find() or local.wiki (['local'])
['en'] = string.find,
['local'] = mw.ustring.find,
}
local function test (val, test_t, wiki) -- local function to do the testing; <wiki> selects lower() and find() functions
val = test_t[2] and str_lower[wiki](value) or val; -- when <test_t[2]> set to 'true', plaintext search using lowercase value
return str_find[wiki] (val, test_t[1], 1, test_t[2]); -- return nil when not found or matched
end
local test_types_t = {'accept', 'reject'}; -- test accept patterns first, then reject patterns
local wikis_t = {'en', 'local'}; -- do tests for each of these keys; en.wiki first, local.wiki second
for _, test_type in ipairs (test_types_t) do -- for each test type
for _, generic_value in pairs (cfg.special_case_translation[item][test_type]) do -- spin through the list of generic value fragments to accept or reject
for _, wiki in ipairs (wikis_t) do
if generic_value[wiki] then
if test (value, generic_value[wiki], wiki) then -- go do the test
return ('reject' == test_type); -- param value rejected, return true; false else
end
end
end
end
end
end
--[[--------------------------< N A M E _ I S _ G E N E R I C >------------------------------------------------
calls is_generic() to determine if <name> is a 'generic name' listed in cfg.generic_names; <name_alias> is the
parameter name used in error messaging
]]
local function name_is_generic (name, name_alias)
if not added_generic_name_errs and is_generic ('generic_names', name) then
utilities.set_message ('err_generic_name', name_alias); -- set an error message
added_generic_name_errs = true;
end
end
--[[--------------------------< N A M E _ C H E C K S >--------------------------------------------------------
This function calls various name checking functions used to validate the content of the various name-holding parameters.
]]
local function name_checks (last, first, list_name, last_alias, first_alias)
local accept_name;
if utilities.is_set (last) then
last, accept_name = utilities.has_accept_as_written (last); -- remove accept-this-as-written markup when it wraps all of <last>
if not accept_name then -- <last> not wrapped in accept-as-written markup
name_has_mult_names (last, list_name); -- check for multiple names in the parameter
name_is_numeric (last, last_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (last, last_alias); -- check for names found in the generic names list
end
end
if utilities.is_set (first) then
first, accept_name = utilities.has_accept_as_written (first); -- remove accept-this-as-written markup when it wraps all of <first>
if not accept_name then -- <first> not wrapped in accept-as-written markup
name_has_mult_names (first, list_name, 0); -- check for multiple names in the parameter; 0 is number of allowed commas in a given name
name_is_numeric (first, first_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (first, first_alias); -- check for names found in the generic names list
end
local wl_type, D = utilities.is_wikilink (first);
if 0 ~= wl_type then
first = D;
utilities.set_message ('err_bad_paramlink', first_alias);
end
end
return last, first; -- done
end
--[[----------------------< E X T R A C T _ N A M E S >-------------------------
Gets name list from the input arguments
Searches through args in sequential order to find |lastn= and |firstn= parameters
(or their aliases), and their matching link and mask parameters. Stops searching
when both |lastn= and |firstn= are not found in args after two sequential attempts:
found |last1=, |last2=, and |last3= but doesn't find |last4= and |last5= then the
search is done.
This function emits an error message when there is a |firstn= without a matching
|lastn=. When there are 'holes' in the list of last names, |last1= and |last3=
are present but |last2= is missing, an error message is emitted. |lastn= is not
required to have a matching |firstn=.
When an author or editor parameter contains some form of 'et al.', the 'et al.'
is stripped from the parameter and a flag (etal) returned that will cause list_people()
to add the static 'et al.' text from Module:Citation/CS1/Configuration. This keeps
'et al.' out of the template's metadata. When this occurs, an error is emitted.
]]
local function extract_names(args, list_name)
local names = {}; -- table of names
local last; -- individual name components
local first;
local link;
local mask;
local i = 1; -- loop counter/indexer
local n = 1; -- output table indexer
local count = 0; -- used to count the number of times we haven't found a |last= (or alias for authors, |editor-last or alias for editors)
local etal = false; -- return value set to true when we find some form of et al. in an author parameter
local last_alias, first_alias, link_alias; -- selected parameter aliases used in error messaging
while true do
last, last_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'err_redundant_parameters', i ); -- search through args for name components beginning at 1
first, first_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'err_redundant_parameters', i );
link, link_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i );
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
if last then -- error check |lastn= alias for unknown interwiki link prefix; done here because this is where we have the parameter name
local project, language = interwiki_prefixen_get (last, true); -- true because we expect interwiki links in |lastn= to be wikilinked
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', last_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
last = utilities.remove_wiki_link (last); -- remove wikilink markup; show display value only
end
end
if link then -- error check |linkn= alias for unknown interwiki link prefix
local project, language = interwiki_prefixen_get (link, false); -- false because wiki links in |author-linkn= is an error
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', link_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
link = nil; -- unset so we don't link
link_alias = nil;
end
end
last, etal = name_has_etal (last, etal, false, last_alias); -- find and remove variations on et al.
first, etal = name_has_etal (first, etal, false, first_alias); -- find and remove variations on et al.
last, first = name_checks (last, first, list_name, last_alias, first_alias); -- multiple names, extraneous annotation, etc. checks
--#Modified Localized
if first and not last then -- if there is a firstn without a matching lastn
local alias = first_alias:find ('اول', 1, true) and 'اول' or 'أول'; -- get first or given form of the alias
utilities.set_message ('err_first_missing_last', {
first_alias, -- param name of alias missing its mate
first_alias:gsub (alias, {['أول'] ='أخير', ['اول'] = 'اخير'}), -- make param name appropriate to the alias form
}); -- add this error message
elseif not first and not last then -- if both firstn and lastn aren't found, are we done?
count = count + 1; -- number of times we haven't found last and first
if 2 <= count then -- two missing names and we give up
break; -- normal exit or there is a two-name hole in the list; can't tell which
end
else -- we have last with or without a first
local result;
link = link_title_ok (link, link_alias, last, last_alias); -- check for improper wiki-markup
if first then
link = link_title_ok (link, link_alias, first, first_alias); -- check for improper wiki-markup
end
names[n] = {last = last, first = first, link = link, mask = mask, corporate = false}; -- add this name to our names list (corporate for |vauthors= only)
n = n + 1; -- point to next location in the names table
if 1 == count then -- if the previous name was missing
utilities.set_message ('err_missing_name', {list_name:match ("(%w+)List"):lower(), i - 1}); -- add this error message
end
count = 0; -- reset the counter, we're looking for two consecutive missing names
end
i = i + 1; -- point to next args location
end
return names, etal; -- all done, return our list of names and the etal flag
end
--[[--------------------------< N A M E _ T A G _ G E T >------------------------------------------------------
attempt to decode |language=<lang_param> and return language name and matching tag; nil else.
This function looks for:
<lang_param> as a tag in cfg.lang_tag_remap{}
<lang_param> as a name in cfg.lang_name_remap{}
<lang_param> as a name in cfg.mw_languages_by_name_t
<lang_param> as a tag in cfg.mw_languages_by_tag_t
when those fail, presume that <lang_param> is an IETF-like tag that MediaWiki does not recognize. Strip all
script, region, variant, whatever subtags from <lang_param> to leave just a two or three character language tag
and look for the new <lang_param> in cfg.mw_languages_by_tag_t{}
on success, returns name (in properly capitalized form) and matching tag (in lowercase); on failure returns nil
]]
local function name_tag_get (lang_param)
local lang_param_lc = mw.ustring.lower (lang_param); -- use lowercase as an index into the various tables
local name;
local tag;
name = cfg.lang_tag_remap[lang_param_lc]; -- assume <lang_param_lc> is a tag; attempt to get remapped language name
if name then -- when <name>, <lang_param> is a tag for a remapped language name
if cfg.lang_name_remap[name:lower()][2] ~= lang_param_lc then
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
return name, cfg.lang_name_remap[name:lower()][2]; -- so return name and tag from lang_name_remap[name]; special case to xlate sr-ec and sr-el to sr-cyrl and sr-latn
end
return name, lang_param_lc; -- so return <name> from remap and <lang_param_lc>
end
--#Modifed pattern
tag = lang_param_lc:match ('^(%a%a%a?)[%-_].*'); -- still assuming that <lang_param_lc> is a tag; strip script, region, variant subtags
name = cfg.lang_tag_remap[tag]; -- attempt to get remapped language name with language subtag only
if name then -- when <name>, <tag> is a tag for a remapped language name
return name, tag; -- so return <name> from remap and <tag>
end
if cfg.lang_name_remap[lang_param_lc] then -- not a remapped tag, assume <lang_param_lc> is a name; attempt to get remapped language tag
return cfg.lang_name_remap[lang_param_lc][1], cfg.lang_name_remap[lang_param_lc][2]; -- for this <lang_param_lc>, return a (possibly) new name and appropriate tag
end
name = cfg.mw_languages_by_tag_t[lang_param_lc]; -- assume that <lang_param_lc> is a tag; attempt to get its matching language name
if name then
return name, lang_param_lc; -- <lang_param_lc> is a tag so return it and <name>
end
tag = cfg.mw_languages_by_name_t[lang_param_lc]; -- assume that <lang_param_lc> is a language name; attempt to get its matching tag
if tag then
return cfg.mw_languages_by_tag_t[tag], tag; -- <lang_param_lc> is a name so return the name from the table and <tag>
end
--#Modifed pattern
tag = lang_param_lc:match ('^(%a%a%a?)[%-_].*'); -- is <lang_param_lc> an IETF-like tag that MediaWiki doesn't recognize? <tag> gets the language subtag; nil else
if tag then
name = cfg.mw_languages_by_tag_t[tag]; -- attempt to get a language name using the shortened <tag>
if name then
return name, tag; -- <lang_param_lc> is an unrecognized IETF-like tag so return <name> and language subtag
end
end
end
--[[-------------------< L A N G U A G E _ P A R A M E T E R >------------------
Gets language name from a provided two- or three-character ISO 639 code. If a code
is recognized by MediaWiki, use the returned name; if not, then use the value that
was provided with the language parameter.
When |language= contains a recognized language (either code or name), the page is
assigned to the category for that code: Category:Norwegian-language sources (no).
For valid three-character code languages, the page is assigned to the single category
for '639-2' codes: Category:CS1 ISO 639-2 language sources.
Languages that are the same as the local wiki are not categorized. MediaWiki does
not recognize three-character equivalents of two-character codes: code 'ar' is
recognized but code 'ara' is not.
This function supports multiple languages in the form |language=nb, French, th
where the language names or codes are separated from each other by commas with
optional space characters.
]]
local function language_parameter (lang)
local tag; -- some form of IETF-like language tag; language subtag with optional region, sript, vatiant, etc subtags
local lang_subtag; -- ve populates |language= with mostly unecessary region subtags the MediaWiki does not recognize; this is the base language subtag
local name; -- the language name
local language_list = {}; -- table of language names to be rendered
local names_t = {}; -- table made from the value assigned to |language=
local this_wiki_name = mw.language.fetchLanguageName (cfg.this_wiki_code, cfg.this_wiki_code); -- get this wiki's language name
names_t = mw.text.split (lang, '%s*,%s*'); -- names should be a comma separated list
for _, lang in ipairs (names_t) do -- reuse lang here because we don't yet know if lang is a language name or a language tag
name, tag = name_tag_get (lang); -- attempt to get name/tag pair for <lang>; <name> has proper capitalization; <tag> is lowercase
if utilities.is_set (tag) then
--#Modifed pattern
lang_subtag = tag:gsub ('^(%a%a%a?)[%-_].*', '%1'); -- for categorization, strip any IETF-like tags from language tag
if cfg.this_wiki_code ~= lang_subtag then -- when the language is not the same as this wiki's language
if 2 == lang_subtag:len() then -- and is a two-character tag
utilities.add_prop_cat ('foreign-lang-source', {name, tag}, lang_subtag); -- categorize it; tag appended to allow for multiple language categorization
else -- or is a recognized language (but has a three-character tag)
utilities.add_prop_cat ('foreign-lang-source-2', {lang_subtag}, lang_subtag); -- categorize it differently TODO: support multiple three-character tag categories per cs1|2 template?
end
elseif cfg.local_lang_cat_enable then -- when the language and this wiki's language are the same and categorization is enabled
utilities.add_prop_cat ('local-lang-source', {name, lang_subtag}); -- categorize it
end
else
name = lang; -- return whatever <lang> has so that we show something
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
end
table.insert (language_list, name);
name = ''; -- so we can reuse it
end
--#Modified اللغات تظهر بالعربية دائمًا
name = utilities.make_sep_list (#language_list, language_list, " و", " و", " و");
if (1 == #language_list) and (lang_subtag == cfg.this_wiki_code) then -- when only one language, find lang name in this wiki lang name; for |language=en-us, 'English' in 'American English'
return ''; -- if one language and that language is this wiki's return an empty string (no annotation)
end
return (" " .. wrap_msg ('language', name)); -- otherwise wrap with '(in ...)'
--[[ TODO: should only return blank or name rather than full list
so we can clean up the bunched parenthetical elements Language, Type, Format
]]
end
--[[-----------------------< S E T _ C S _ S T Y L E >--------------------------
Gets the default CS style configuration for the given mode.
Returns default separator and either postscript as passed in or the default.
In CS1, the default postscript and separator are '.'.
In CS2, the default postscript is the empty string and the default separator is ','.
]]
local function set_cs_style (postscript, mode)
if utilities.is_set(postscript) then
-- emit a maintenance message if user postscript is the default cs1 postscript
-- we catch the opposite case for cs2 in set_style
if mode == 'cs1' and postscript == cfg.presentation['ps_' .. mode] then
utilities.set_message ('maint_postscript');
end
else
postscript = cfg.presentation['ps_' .. mode];
end
return cfg.presentation['sep_' .. mode], postscript;
end
--[[--------------------------< S E T _ S T Y L E >-----------------------------
Sets the separator and postscript styles. Checks the |mode= first and the
#invoke CitationClass second. Removes the postscript if postscript == none.
]]
local function set_style (mode, postscript, cite_class)
local sep;
if 'cs2' == mode then
sep, postscript = set_cs_style (postscript, 'cs2');
elseif 'cs1' == mode then
sep, postscript = set_cs_style (postscript, 'cs1');
elseif 'citation' == cite_class then
sep, postscript = set_cs_style (postscript, 'cs2');
else
sep, postscript = set_cs_style (postscript, 'cs1');
end
if cfg.keywords_xlate[postscript:lower()] == 'none' then
-- emit a maintenance message if user postscript is the default cs2 postscript
-- we catch the opposite case for cs1 in set_cs_style
if 'cs2' == mode or ('cs1' ~= mode and 'citation' == cite_class) then -- {{citation |title=Title |mode=cs1 |postscript=none}} should not emit maint message
utilities.set_message ('maint_postscript');
end
postscript = '';
end
return sep, postscript
end
--[=[-------------------------< I S _ P D F >-----------------------------------
Determines if a URL has the file extension that is one of the PDF file extensions
used by [[MediaWiki:Common.css]] when applying the PDF icon to external links.
returns true if file extension is one of the recognized extensions, else false
]=]
local function is_pdf (url)
return url:match ('%.pdf$') or url:match ('%.PDF$') or
url:match ('%.pdf[%?#]') or url:match ('%.PDF[%?#]') or
url:match ('%.PDF#') or url:match ('%.pdf#');
end
--[[--------------------------< S T Y L E _ F O R M A T >-----------------------
Applies CSS style to |format=, |chapter-format=, etc. Also emits an error message
if the format parameter does not have a matching URL parameter. If the format parameter
is not set and the URL contains a file extension that is recognized as a PDF document
by MediaWiki's commons.css, this code will set the format parameter to (PDF) with
the appropriate styling.
]]
local function style_format (format, url, fmt_param, url_param)
if utilities.is_set (format) then
format = utilities.wrap_style ('format', format); -- add leading space, parentheses, resize
if not utilities.is_set (url) then
utilities.set_message ('err_format_missing_url', {fmt_param, url_param}); -- add an error message
end
elseif is_pdf (url) then -- format is not set so if URL is a PDF file then
format = utilities.wrap_style ('format', 'PDF'); -- set format to PDF
else
format = ''; -- empty string for concatenation
end
return format;
end
--[[---------------------< G E T _ D I S P L A Y _ N A M E S >------------------
Returns a number that defines the number of names displayed for author and editor
name lists and a Boolean flag to indicate when et al. should be appended to the name list.
When the value assigned to |display-xxxxors= is a number greater than or equal to zero,
return the number and the previous state of the 'etal' flag (false by default
but may have been set to true if the name list contains some variant of the text 'et al.').
When the value assigned to |display-xxxxors= is the keyword 'etal', return a number
that is one greater than the number of authors in the list and set the 'etal' flag true.
This will cause the list_people() to display all of the names in the name list followed by 'et al.'
In all other cases, returns nil and the previous state of the 'etal' flag.
inputs:
max: A['DisplayAuthors'] or A['DisplayEditors'], etc; a number or some flavor of etal
count: #a or #e
list_name: 'authors' or 'editors'
etal: author_etal or editor_etal
This function sets an error message when |display-xxxxors= value greater than or equal to number of names but
not when <max> comes from {{cs1 config}} global settings. When using global settings, <param> is set to the
keyword 'cs1 config' which is used to supress the normal error. Error is suppressed because it is to be expected
that some citations in an article will have the same or fewer names that the limit specified in {{cs1 config}}.
]]
local function get_display_names (max, count, list_name, etal, param)
if utilities.is_set (max) then
if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
max = count + 1; -- number of authors + 1 so display all author name plus et al.
etal = true; -- overrides value set by extract_names()
elseif max:match ('^%d+$') then -- if is a string of numbers
max = tonumber (max); -- make it a number
if (max >= count) and ('cs1 config' ~= param) then -- error when local |display-xxxxors= value greater than or equal to number of names; not an error when using global setting
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil;
end
else -- not a valid keyword or number
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil; -- unset; as if |display-xxxxors= had not been set
end
end
return max, etal;
end
--[[----------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >---------------
Adds error if |page=, |pages=, |quote-page=, |quote-pages= has what appears to be
some form of p. or pp. abbreviation in the first characters of the parameter content.
check page for extraneous p, p., pp, pp., pg, pg. at start of parameter value:
good pattern: '^P[^%.P%l]' matches when page begins PX or P# but not Px
where x and X are letters and # is a digit
bad pattern: '^[Pp][PpGg]' matches when page begins pp, pP, Pp, PP, pg, pG, Pg, PG
]]
local function extra_text_in_page_check (val, name)
if not val:match (cfg.vol_iss_pg_patterns.good_ppattern) then
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.bad_ppatterns) do -- spin through the selected sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message ('err_extra_text_pages', name); -- add error message
return; -- and done
end
end
end
end
--[[--------------------------< E X T R A _ T E X T _ I N _ V O L _ I S S _ C H E C K >------------------------
Adds error if |volume= or |issue= has what appears to be some form of redundant 'type' indicator. Applies to
both; this function looks for issue text in both |issue= and |volume= and looks for volume-like text in |voluem=
and |issue=.
For |volume=:
'V.', or 'Vol.' (with or without the dot) abbreviations or 'Volume' in the first characters of the parameter
content (all case insensitive). 'V' and 'v' (without the dot) are presumed to be roman numerals so
are allowed.
For |issue=:
'No.', 'I.', 'Iss.' (with or without the dot) abbreviations, or 'Issue' in the first characters of the
parameter content (all case insensitive); numero styling: 'n°' with degree sign U+00B0, and № precomposed
numero sign U+2116.
Single character values ('v', 'i', 'n') allowed when not followed by separator character ('.', ':', '=', or
whitespace character) – param values are trimmed of whitespace by MediaWiki before delivered to the module.
<val> is |volume= or |issue= parameter value
<name> is |volume= or |issue= parameter name for error message
<selector> is 'v' for |volume=, 'i' for |issue=
sets error message on failure; returns nothing
]]
local function extra_text_in_vol_iss_check (val, name, selector)
if not utilities.is_set (val) then
return;
end
local handler = 'v' == selector and 'err_extra_text_volume' or 'err_extra_text_issue';
local accept_val;
val, accept_val = utilities.has_accept_as_written (val);
--if accept_val then -- if uncomment this, |volume=((vol. 1)) suppresses error
-- return;
--end
--val = mw.text.unstripNoWiki (val); -- if uncomment this, |volume=<nowiki>vol. 1</nowiki> shows error
val = val:lower(); -- force parameter value to lower case
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.vi_patterns_t) do -- spin through the sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message (handler, name); -- add error message
return; -- and done
end
end
end
--[=[-------------------------< G E T _ V _ N A M E _ T A B L E >----------------------------------------------
split apart a |vauthors= or |veditors= parameter. This function allows for corporate names, wrapped in doubled
parentheses to also have commas; in the old version of the code, the doubled parentheses were included in the
rendered citation and in the metadata. Individual author names may be wikilinked
|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))
]=]
local function get_v_name_table (vparam, output_table, output_link_table)
local _, accept = utilities.has_accept_as_written (vparam);
if accept then
utilities.add_prop_cat ('vanc-accept'); -- add properties category
end
--#Modified: next line
local name_table = mw.text.split(vparam or "", "%s*,%s*")
local wl_type, label, link; -- wl_type not used here; just a placeholder
local i = 1;
while name_table[i] do
if name_table[i]:match ('^%(%(.*[^%)][^%)]$') then -- first segment of corporate with one or more commas; this segment has the opening doubled parentheses
local name = name_table[i];
i = i + 1; -- bump indexer to next segment
while name_table[i] do
name = name .. ', ' .. name_table[i]; -- concatenate with previous segments
if name_table[i]:match ('^.*%)%)$') then -- if this table member has the closing doubled parentheses
break; -- and done reassembling so
end
i = i + 1; -- bump indexer
end
table.insert (output_table, name); -- and add corporate name to the output table
table.insert (output_link_table, ''); -- no wikilink
else
wl_type, label, link = utilities.is_wikilink (name_table[i]); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
table.insert (output_table, label); -- add this name
if 1 == wl_type then
table.insert (output_link_table, label); -- simple wikilink [[D]]
else
table.insert (output_link_table, link); -- no wikilink or [[L|D]]; add this link if there is one, else empty string
end
end
i = i + 1;
end
return output_table;
end
--[[--------------------------< P A R S E _ V A U T H O R S _ V E D I T O R S >--------------------------------
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and
|xxxxor-linkn= in args. It then returns a table of assembled names just as extract_names() does.
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance
tests, are wrapped in doubled parentheses ((corporate name)) to suppress the format tests.
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.
This function sets the Vancouver error when a required comma is missing and when there is a space between an author's initials.
]]
local function parse_vauthors_veditors (args, vparam, list_name)
local names = {}; -- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=
local v_name_table = {};
local v_link_table = {}; -- when name is wikilinked, targets go in this table
local etal = false; -- return value set to true when we find some form of et al. vauthors parameter
local last, first, link, mask, suffix;
local corporate = false;
vparam, etal = name_has_etal (vparam, etal, true); -- find and remove variations on et al. do not categorize (do it here because et al. might have a period)
v_name_table = get_v_name_table (vparam, v_name_table, v_link_table); -- names are separated by commas
for i, v_name in ipairs(v_name_table) do
first = ''; -- set to empty string for concatenation and because it may have been set for previous author/editor
local accept_name;
v_name, accept_name = utilities.has_accept_as_written (v_name); -- remove accept-this-as-written markup when it wraps all of <v_name>
if accept_name then
last = v_name;
corporate = true; -- flag used in list_people()
elseif string.find(v_name, "%s") then
if v_name:find('[;%.]') then -- look for commonly occurring punctuation characters;
add_vanc_error (cfg.err_msg_supl.punctuation, i);
end
local lastfirstTable = {}
lastfirstTable = mw.text.split(v_name, "%s+")
first = table.remove(lastfirstTable); -- removes and returns value of last element in table which should be initials or generational suffix
if not mw.ustring.match (first, '^%u+$') then -- mw.ustring here so that later we will catch non-Latin characters
suffix = first; -- not initials so assume that whatever we got is a generational suffix
first = table.remove(lastfirstTable); -- get what should be the initials from the table
end
last = table.concat(lastfirstTable, ' ') -- returns a string that is the concatenation of all other names that are not initials and generational suffix
if not utilities.is_set (last) then
first = ''; -- unset
last = v_name; -- last empty because something wrong with first
add_vanc_error (cfg.err_msg_supl.name, i);
end
if mw.ustring.match (last, '%a+%s+%u+%s+%a+') then
add_vanc_error (cfg.err_msg_supl['missing comma'], i); -- matches last II last; the case when a comma is missing
end
if mw.ustring.match (v_name, ' %u %u$') then -- this test is in the wrong place TODO: move or replace with a more appropriate test
add_vanc_error (cfg.err_msg_supl.initials, i); -- matches a space between two initials
end
else
last = v_name; -- last name or single corporate name? Doesn't support multiword corporate names? do we need this?
end
if utilities.is_set (first) then
if not mw.ustring.match (first, "^%u?%u$") then -- first shall contain one or two upper-case letters, nothing else
add_vanc_error (cfg.err_msg_supl.initials, i); -- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials
end
is_good_vanc_name (last, first, suffix, i); -- check first and last before restoring the suffix which may have a non-Latin digit
if utilities.is_set (suffix) then
first = first .. ' ' .. suffix; -- if there was a suffix concatenate with the initials
suffix = ''; -- unset so we don't add this suffix to all subsequent names
end
else
if not corporate then
is_good_vanc_name (last, '', nil, i);
end
end
link = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i ) or v_link_table[i];
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
names[i] = {last = last, first = first, link = link, mask = mask, corporate = corporate}; -- add this assembled name to our names list
end
return names, etal; -- all done, return our list of names
end
--[[--------------------------< S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E >------------------------
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or
select one of |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.
Only one of these appropriate three will be used. The hierarchy is: |authorn= (and aliases) highest and |authors= lowest;
|editorn= (and aliases) highest and |veditors= lowest (support for |editors= withdrawn)
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second
test which mimicks the test used in extract_names() when looking for a hole in the author name list. There may be a better
way to do this, I just haven't discovered what that way is.
Emits an error message when more than one xxxxor name source is provided.
In this function, vxxxxors = vauthors or veditors; xxxxors = authors as appropriate.
]]
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)
local lastfirst = false;
if utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 1 ) or -- do this twice in case we have a |first1= without a |last1=; this ...
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 1 ) or -- ... also catches the case where |first= is used with |vauthors=
utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 2 ) or
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 2 ) then
lastfirst = true;
end
if (utilities.is_set (vxxxxors) and true == lastfirst) or -- these are the three error conditions
(utilities.is_set (vxxxxors) and utilities.is_set (xxxxors)) or
(true == lastfirst and utilities.is_set (xxxxors)) then
utilities.set_message ('err_redundant_parameters',
utilities.substitute (cfg.special_case_translation.name_list_params,
('AuthorList' == list_name) and cfg.special_case_translation.author or cfg.special_case_translation.editor)); -- add error message
end
if true == lastfirst then return 1 end; -- return a number indicating which author name source to use
if utilities.is_set (vxxxxors) then return 2 end;
if utilities.is_set (xxxxors) then return 3 end;
return 1; -- no authors so return 1; this allows missing author name test to run in case there is a first without last
end
--[[--------------------------< I S _ V A L I D _ P A R A M E T E R _ V A L U E >------------------------------
This function is used to validate a parameter's assigned value for those parameters that have only a limited number
of allowable values (yes, y, true, live, dead, etc.). When the parameter value has not been assigned a value (missing
or empty in the source template) the function returns the value specified by ret_val. If the parameter value is one
of the list of allowed values returns the translated value; else, emits an error message and returns the value
specified by ret_val.
TODO: explain <invert>
]]
local function is_valid_parameter_value (value, name, possible, ret_val, invert)
if not utilities.is_set (value) then
return ret_val; -- an empty parameter is ok
end
if (not invert and utilities.in_array (value, possible)) then -- normal; <value> is in <possible> table
return cfg.keywords_xlate[value]; -- return translation of parameter keyword
elseif invert and not utilities.in_array (value, possible) then -- invert; <value> is not in <possible> table
return value; -- return <value> as it is
else
utilities.set_message ('err_invalid_param_val', {name, value}); -- not an allowed value so add error message
return ret_val;
end
end
--[[--------------------------< T E R M I N A T E _ N A M E _ L I S T >----------------------------------------
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space
when the last character is not a sepc character or when the last three characters are not sepc followed by two
closing square brackets (close of a wikilink). When either of these is true, the name_list is terminated with a
single space character.
]]
local function terminate_name_list (name_list, sepc)
if (string.sub (name_list, -3, -1) == sepc .. '. ') then -- if already properly terminated
return name_list; -- just return the name list
elseif (string.sub (name_list, -1, -1) == sepc) or (string.sub (name_list, -3, -1) == sepc .. ']]') then -- if last name in list ends with sepc char
return name_list .. " "; -- don't add another
else
return name_list .. sepc .. ' '; -- otherwise terminate the name list
end
end
--[[-------------------------< F O R M A T _ V O L U M E _ I S S U E >-----------------------------------------
returns the concatenation of the formatted volume and issue (or journal article number) parameters as a single
string; or formatted volume or formatted issue, or an empty string if neither are set.
]]
local function format_volume_issue (volume, issue, article, cite_class, origin, sepc, lower)
if not utilities.is_set (volume) and not utilities.is_set (issue) and not utilities.is_set (article) then
return '';
end
-- same condition as in format_pages_sheets()
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
local is_numeric_vol = volume and (volume:match ('^[MDCLXVI]+$') or volume:match ('^%d+$')); -- is only uppercase roman numerals or only digits?
local is_long_vol = volume and (4 < mw.ustring.len(volume)); -- is |volume= value longer than 4 characters?
if volume and (not is_numeric_vol and is_long_vol) then -- when not all digits or Roman numerals, is |volume= longer than 4 characters?
utilities.add_prop_cat ('long-vol'); -- yes, add properties cat
end
if is_journal then -- journal-style formatting
local vol = '';
if utilities.is_set (volume) then
if is_numeric_vol then -- |volume= value all digits or all uppercase Roman numerals?
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, volume}); -- render in bold face
elseif is_long_vol then -- not all digits or Roman numerals; longer than 4 characters?
vol = utilities.substitute (cfg.messages['j-vol'], {sepc, utilities.hyphen_to_dash (volume)}); -- not bold
else -- four or fewer characters
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, utilities.hyphen_to_dash (volume)}); -- bold
end
end
vol = vol .. (utilities.is_set (issue) and utilities.substitute (cfg.messages['j-issue'], issue) or '')
vol = vol .. (utilities.is_set (article) and utilities.substitute (cfg.messages['j-article-num'], article) or '')
return vol;
end
if 'podcast' == cite_class and utilities.is_set (issue) then
return wrap_msg ('issue', {sepc, issue}, lower);
end
if 'conference' == cite_class and utilities.is_set (article) then -- |article-number= supported only in journal and conference cites
if utilities.is_set (volume) and utilities.is_set (article) then -- both volume and article number
return wrap_msg ('vol-art', {sepc, utilities.hyphen_to_dash (volume), article}, lower);
elseif utilities.is_set (article) then -- article number alone; when volume alone, handled below
return wrap_msg ('art', {sepc, article}, lower);
end
end
-- all other types of citation
if utilities.is_set (volume) and utilities.is_set (issue) then
return wrap_msg ('vol-no', {sepc, utilities.hyphen_to_dash (volume), issue}, lower);
elseif utilities.is_set (volume) then
return wrap_msg ('vol', {sepc, utilities.hyphen_to_dash (volume)}, lower);
else
return wrap_msg ('issue', {sepc, issue}, lower);
end
end
--[[-------------------------< F O R M A T _ P A G E S _ S H E E T S >-----------------------------------------
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.
The return order is:
page, pages, sheet, sheets
Singular has priority over plural when both are provided.
]]
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)
if 'map' == cite_class then -- only cite map supports sheet(s) as in-source locators
if utilities.is_set (sheet) then
if 'journal' == origin then
return '', '', wrap_msg ('j-sheet', sheet, lower), '';
else
return '', '', wrap_msg ('sheet', {sepc, sheet}, lower), '';
end
elseif utilities.is_set (sheets) then
if 'journal' == origin then
return '', '', '', wrap_msg ('j-sheets', sheets, lower);
else
return '', '', '', wrap_msg ('sheets', {sepc, sheets}, lower);
end
end
end
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
if utilities.is_set (page) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], page), '', '', '';
elseif not nopp then
return utilities.substitute (cfg.messages['p-prefix'], {sepc, page}), '', '', '';
else
return utilities.substitute (cfg.messages['nopp'], {sepc, page}), '', '', '';
end
elseif utilities.is_set (pages) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], pages), '', '', '';
elseif tonumber(pages) ~= nil and not nopp then -- if pages is only digits, assume a single page number
return '', utilities.substitute (cfg.messages['p-prefix'], {sepc, pages}), '', '';
elseif not nopp then
return '', utilities.substitute (cfg.messages['pp-prefix'], {sepc, pages}), '', '';
else
return '', utilities.substitute (cfg.messages['nopp'], {sepc, pages}), '', '';
end
end
return '', '', '', ''; -- return empty strings
end
--[[--------------------------< I N S O U R C E _ L O C _ G E T >----------------------------------------------
returns one of the in-source locators: page, pages, or at.
If any of these are interwiki links to Wikisource, returns the label portion of the interwiki-link as plain text
for use in COinS. This COinS thing is done because here we convert an interwiki-link to an external link and
add an icon span around that; get_coins_pages() doesn't know about the span. TODO: should it?
TODO: add support for sheet and sheets?; streamline;
TODO: make it so that this function returns only one of the three as the single in-source (the return value assigned
to a new name)?
]]
local function insource_loc_get (page, page_orig, pages, pages_orig, at)
local ws_url, ws_label, coins_pages, L; -- for Wikisource interwiki-links; TODO: this corrupts page metadata (span remains in place after cleanup; fix there?)
if utilities.is_set (page) then
if utilities.is_set (pages) or utilities.is_set (at) then
pages = ''; -- unset the others
at = '';
end
extra_text_in_page_check (page, page_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (page); -- make ws URL from |page= interwiki link; link portion L becomes tooltip label
if ws_url then
page = external_link (ws_url, ws_label .. ' ', 'ws link in page'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
page = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, page});
coins_pages = ws_label;
end
elseif utilities.is_set (pages) then
if utilities.is_set (at) then
at = ''; -- unset
end
extra_text_in_page_check (pages, pages_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (pages); -- make ws URL from |pages= interwiki link; link portion L becomes tooltip label
if ws_url then
pages = external_link (ws_url, ws_label .. ' ', 'ws link in pages'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
pages = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, pages});
coins_pages = ws_label;
end
elseif utilities.is_set (at) then
ws_url, ws_label, L = wikisource_url_make (at); -- make ws URL from |at= interwiki link; link portion L becomes tooltip label
if ws_url then
at = external_link (ws_url, ws_label .. ' ', 'ws link in at'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
at = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, at});
coins_pages = ws_label;
end
end
return page, pages, at, coins_pages;
end
--[[--------------------------< I S _ U N I Q U E _ A R C H I V E _ U R L >------------------------------------
add error message when |archive-url= value is same as |url= or chapter-url= (or alias...) value
]]
local function is_unique_archive_url (archive, url, c_url, source, date)
if utilities.is_set (archive) then
if archive == url or archive == c_url then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)}); -- add error message
return '', ''; -- unset |archive-url= and |archive-date= because same as |url= or |chapter-url=
end
end
return archive, date;
end
--[=[-------------------------< A R C H I V E _ U R L _ C H E C K >--------------------------------------------
Check archive.org URLs to make sure they at least look like they are pointing at valid archives and not to the
save snapshot URL or to calendar pages. When the archive URL is 'https://web.archive.org/save/' (or http://...)
archive.org saves a snapshot of the target page in the URL. That is something that Wikipedia should not allow
unwitting readers to do.
When the archive.org URL does not have a complete timestamp, archive.org chooses a snapshot according to its own
algorithm or provides a calendar 'search' result. [[WP:ELNO]] discourages links to search results.
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and
|archive-date= and an error message when:
|archive-url= holds an archive.org save command URL
|archive-url= is an archive.org URL that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the
correct place
otherwise returns |archive-url= and |archive-date=
There are two mostly compatible archive.org URLs:
//web.archive.org/<timestamp>... -- the old form
//web.archive.org/web/<timestamp>... -- the new form
The old form does not support or map to the new form when it contains a display flag. There are four identified flags
('id_', 'js_', 'cs_', 'im_') but since archive.org ignores others following the same form (two letters and an underscore)
we don't check for these specific flags but we do check the form.
This function supports a preview mode. When the article is rendered in preview mode, this function may return a modified
archive URL:
for save command errors, return undated wildcard (/*/)
for timestamp errors when the timestamp has a wildcard, return the URL unmodified
for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)
A secondary function is to return an archive-url timestamp from those archive urls that have them. The timestamp
is used by validation.archive_date_check() to see if the value in |archive-date= matches the timestamp in the
archive url.
]=]
local function archive_url_check (url, date)
local err_msg = ''; -- start with the error message empty
local path, timestamp, flag; -- portions of the archive.org URL
local function is_ts_date_valid (timestamp, origin_date) -- local function to validate archive url taimestamp date; time ignored
local y, m, d = timestamp:match ('(%d%d%d%d)(%d%d)(%d%d)'); -- split into parts
if y and validation.is_valid_date (y, m, d) and (tonumber (y) >= 1996) then
return true, tonumber (y) >= origin_date; -- <origin_date> is 1996 for archive.org
end
end
if (not url:match('//web%.archive%.org/')) and (not url:match('//liveweb%.archive%.org/')) then -- also deprecated liveweb Wayback machine URL
return url, date; -- not an archive.org archive, return ArchiveURL and ArchiveDate
end
if url:match('//web%.archive%.org/save/') then -- if a save command URL, we don't want to allow saving of the target page
err_msg = cfg.err_msg_supl.save;
url = url:gsub ('(//web%.archive%.org)/save/', '%1/*/', 1); -- for preview mode: modify ArchiveURL
elseif url:match('//liveweb%.archive%.org/') then
err_msg = cfg.err_msg_supl.liveweb;
else
path, timestamp, flag = url:match('//web%.archive%.org/([^%d]*)(%d+)([^/]*)/'); -- split out some of the URL parts for evaluation
if not path then -- malformed in some way; pattern did not match
err_msg = cfg.err_msg_supl.timestamp;
elseif 14 ~= timestamp:len() then -- path and flag optional, must have 14-digit timestamp here
err_msg = cfg.err_msg_supl.timestamp;
if '*' ~= flag then
local replacement = timestamp:match ('^%d%d%d%d%d%d') or timestamp:match ('^%d%d%d%d'); -- get the first 6 (YYYYMM) or first 4 digits (YYYY)
if replacement then -- nil if there aren't at least 4 digits (year)
replacement = replacement .. string.rep ('0', 14 - replacement:len()); -- year or yearmo (4 or 6 digits) zero-fill to make 14-digit timestamp
url=url:gsub ('(//web%.archive%.org/[^%d]*)%d[^/]*', '%1' .. replacement .. '*', 1) -- for preview, modify ts to 14 digits plus splat for calendar display
end
end
elseif not is_ts_date_valid (timestamp, 1996) then -- is ymd portion of timestamp a valid date?
err_msg = cfg.err_msg_supl.timestamp;
timestamp = nil; -- unset because invalid
elseif utilities.is_set (path) and 'web/' ~= path then -- older archive URLs do not have the extra 'web/' path element
err_msg = cfg.err_msg_supl.path;
elseif utilities.is_set (flag) and not utilities.is_set (path) then -- flag not allowed with the old form URL (without the 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
elseif utilities.is_set (flag) and not flag:match ('%a%a_') then -- flag if present must be two alpha characters and underscore (requires 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
else
return url, date, timestamp; -- return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
end
end
-- if here, something not right so
utilities.set_message ('err_archive_url', {err_msg}); -- add error message and
if is_preview_mode then
return url, date, timestamp; -- preview mode so return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
else
return '', ''; -- return empty strings for ArchiveURL and ArchiveDate
end
end
--[[--------------------------< P L A C E _ C H E C K >--------------------------------------------------------
check |place=, |publication-place=, |location= to see if these params include digits. This function added because
many editors misuse location to specify the in-source location (|page(s)= and |at= are supposed to do that)
returns the original parameter value without modification; added maint cat when parameter value contains digits
]]
local function place_check (param_val)
if not utilities.is_set (param_val) then -- parameter empty or omitted
return param_val; -- return that empty state
end
if mw.ustring.find (param_val, '%d') then -- not empty, are there digits in the parameter value
utilities.set_message ('maint_location'); -- yep, add maint cat
end
return param_val; -- and done
end
--[[--------------------------< I S _ A R C H I V E D _ C O P Y >----------------------------------------------
compares |title= to 'Archived copy' (placeholder added by bots that can't find proper title); if matches, return true; nil else
]]
local function is_archived_copy (title)
title = mw.ustring.lower(title); -- switch title to lower case
if title:find (cfg.special_case_translation.archived_copy.en) then -- if title is 'Archived copy'
return true;
elseif cfg.special_case_translation.archived_copy['local'] then
if mw.ustring.find (title, cfg.special_case_translation.archived_copy['local']) then -- mw.ustring() because might not be Latin script
return true;
end
end
end
--[[--------------------------< D I S P L A Y _ N A M E S _ S E L E C T >--------------------------------------
for any of the |display-authors=, |display-editors=, etc parameters, select either the local or global setting.
When both are present, look at <local_display_names> value. When the value is some sort of 'et al.'string,
special handling is required.
When {{cs1 config}} has |display-<namelist>= AND this template has |display-<namelist>=etal AND:
the number of names specified by <number_of_names> is:
greater than the number specified in the global |display-<namelist>= parameter (<global_display_names>)
use global |display-<namelist>= parameter value
set overridden maint category
less than or equal to the number specified in the global |display-<namelist>= parameter
use local |display-<namelist>= parameter value
The purpose of this function is to prevent categorizing a template that has fewer names than the global setting
to keep the etal annotation specified by <local_display_names>.
]]
local function display_names_select (global_display_names, local_display_names, param_name, number_of_names, test)
if global_display_names and utilities.is_set (local_display_names) then -- when both
if 'etal' == local_display_names:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
number_of_names = tonumber (number_of_names); -- convert these to numbers for comparison
local global_display_names_num = tonumber (global_display_names); -- <global_display_names> not set when parameter value is not digits
if number_of_names > global_display_names_num then -- template has more names than global config allows to be displayed?
utilities.set_message ('maint_overridden_setting'); -- set a maint message because global is overriding local |display-<namelist>=etal
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local because fewer names so let <local_display_names> control
end
end
-- here when <global_display_names> and <local_display_names> both numbers; <global_display_names> controls
utilities.set_message ('maint_overridden_setting'); -- set a maint message
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
end
-- here when only one of <global_display_names> or <local_display_names> set
if global_display_names then
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local
end
end
--[[--------------------------< M O D E _ S E T >--------------------------------------------------------------
fetch global mode setting from {{cs1 config}} (if present) or from |mode= (if present); global setting overrides
local |mode= parameter value. When both are present, emit maintenance message
]]
local function mode_set (Mode, Mode_origin)
local mode;
if cfg.global_cs1_config_t['Mode'] then -- global setting in {{cs1 config}}; nil when empty or assigned value invalid
mode = is_valid_parameter_value (cfg.global_cs1_config_t['Mode'], 'cs1 config: mode', cfg.keywords_lists['mode'], ''); -- error messaging 'param' here is a hoax
else
mode = is_valid_parameter_value (Mode, Mode_origin, cfg.keywords_lists['mode'], '');
end
if cfg.global_cs1_config_t['Mode'] and utilities.is_set (Mode) then -- when template has |mode=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
return mode;
end
--[[--------------------------< Q U O T E _ M A K E >----------------------------------------------------------
create quotation from |quote=, |trans-quote=, and/or script-quote= with or without |quote-page= or |quote-pages=
when any of those three quote parameters are set, this function unsets <PostScript>. When none of those parameters
are set, |quote-page= and |quote-pages= are unset to nil so that they are not included in the template's metadata
]]
local function quote_make (quote, trans_quote, script_quote, quote_page, quote_pages, nopp, sepc, postscript)
if utilities.is_set (quote) or utilities.is_set (trans_quote) or utilities.is_set (script_quote) then
if utilities.is_set (quote) then
if quote:sub(1, 1) == '"' and quote:sub(-1, -1) == '"' then -- if first and last characters of quote are quote marks
quote = quote:sub(2, -2); -- strip them off
end
end
quote = kern_quotes (quote); -- kern if needed
quote = utilities.wrap_style ('quoted-text', quote ); -- wrap in <q>...</q> tags
if utilities.is_set (script_quote) then
quote = script_concatenate (quote, script_quote, 'script-quote'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after quote is wrapped
end
if utilities.is_set (trans_quote) then
if trans_quote:sub(1, 1) == '"' and trans_quote:sub(-1, -1) == '"' then -- if first and last characters of |trans-quote are quote marks
trans_quote = trans_quote:sub(2, -2); -- strip them off
end
quote = quote .. " " .. utilities.wrap_style ('trans-quoted-title', trans_quote );
end
if utilities.is_set (quote_page) or utilities.is_set (quote_pages) then -- add page prefix
local quote_prefix = '';
if utilities.is_set (quote_page) then
extra_text_in_page_check (quote_page, 'quote-page'); -- add to maint cat if |quote-page= value begins with what looks like p., pp., etc.
if not nopp then
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_page}), '', '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_page}), '', '', '';
end
elseif utilities.is_set (quote_pages) then
extra_text_in_page_check (quote_pages, 'quote-pages'); -- add to maint cat if |quote-pages= value begins with what looks like p., pp., etc.
if tonumber(quote_pages) ~= nil and not nopp then -- if only digits, assume single page
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_pages}), '', '';
elseif not nopp then
quote_prefix = utilities.substitute (cfg.messages['pp-prefix'], {sepc, quote_pages}), '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_pages}), '', '';
end
end
quote = quote_prefix .. ": " .. quote;
else
quote = sepc .. " " .. quote;
end
postscript = ""; -- cs1|2 does not supply terminal punctuation when |quote= is set
elseif utilities.is_set (quote_page) or utilities.is_set (quote_pages) then
quote_page = nil; -- unset; these require |quote=; TODO: error message?
quote_pages = nil;
end
return quote, quote_page, quote_pages, postscript;
end
--[[--------------------------< C H E C K _ P U B L I S H E R _ N A M E >--------------------------------------
look for variations of '<text>: <text>' that might be '<location>: <publisher>' in |publisher= parameter value.
when found, emit a maintenance message; return nil else
<publisher> is the value assigned to |publisher= or |institution=
]]
local function check_publisher_name (publisher)
local patterns_t = {
'^[%w%s]+%s*:%s*[%w%s]+$', -- plain text <location>: <publisher>
'^%[+[%w%s:|]+%]+%s*:%s*[%w%s]+$', -- partially wikilinked [[<location>]]: <publisher>
'^[%w%s]+%s*:%s*%[+[%w%s:|]+%]+$', -- partially wikilinked <location>: [[<publisher>]]
'^%[+[%w%s:|]+%]+%s*:%s*%[+[%w%s:|]+%]+$', -- wikilinked [[<location>]]: [[<publisher>]]
}
for _, pattern in ipairs (patterns_t) do -- spin through the patterns_t sequence
if mw.ustring.match (publisher, pattern) then -- does this pattern match?
utilities.set_message ('maint_publisher_location'); -- set a maint message
return; -- and done
end
end
end
--[[--------------------------< I S _ P A G E _ A R T _ N U M >------------------------------------------------
compare the trailing (rightmost) characters of the |doi= value against the whole value assigned to |page(s)=.
return boolean true when:
|page(s)= has exactly 8 digits and a dot between the fourth and fifth digits matches the trailing 9 characters
of the |doi= value: |page=12345678 → |page=1234.5678 matches |doi=10.xxxx/yyyy1234.5678
|page(s)= is 5 or more characters and matches |doi= values's trailing characters
|page(s)= begins with a lowercase 'e' and |page(s)= without the 'e' matches |doi= values's trailing
characters: |page=e12345 → |page=12345 matches |doi=10.xxxx/yyyy12345
|page(s)= begins with a uppercase 'CD' followed by (typically) six digits matches |doi= values that ends with
'CDxxxxxx.pubx' (where 'x' is any single digit)
return nil when |page(s)= values:
are ranges separated by underscore, hyphen, emdash, endash, figure dash, or minus character
are comma- or semicolon-separated lists of pages
have external urls (has text 'http')
are digit-only values less than 10000
do not match |doi= values's trailing characters
]]
local function is_page_art_num (page, doi)
if not (utilities.is_set (page) and utilities.is_set (doi)) then -- both required
return; -- abandon; nothing to do
end
if page:match ('[,;_−–—‒%-]') then -- when |page(s)= might be a page range or a separated list of pages
return; -- abandon
end
page = page:lower(); -- because doi names are case insensitive
doi = doi:lower(); -- force these to lowercase for testing
if page:match ('http') then -- when |page(s)= appears to hold a url
return; -- abandon
end
if tonumber (page) then -- is |page(s)= digits only
if 10000 > tonumber (page) then -- when |page(s)= less than 10000
return; -- abandon
end
if doi:match (page .. '$') then -- digits only page number match the last digits in |doi=?
return true;
end
if 8 == page:len() then -- special case when |page(s)= is exactly 8 digits
local dot_page = page:gsub ('(%d%d%d%d)(%d%d%d%d)', '%1.%2'); -- make a |page=xxxx.yyyy version commonly used in |doi=
if doi:match (dot_page .. '$') then -- 8-digit dotted page number match the last characters in |doi=?
return true;
end
end
else -- here when |page(s)= is alpha-numeric
if 4 < page:len() then -- when |page(s)= is five or more characters
if doi:match (page .. '$') then -- alpha-numeric page match the last characters in |doi=?
return true;
end
local epage = page:match ('^e([%w]+)$'); -- if first character of |page= is 'e', remove it
if epage and doi:match (epage .. '$') then -- page number match the last characters in |doi=?
return true;
end
local cdpage = page:match ('^cd%d+$'); -- if first characters of |page= are 'CD' and last characters are digits (typically 6 digits)
if cdpage and doi:match (cdpage .. '%.pub%d$') then -- page number matches doi 'CDxxxxxx.pubx' where 'x' is a digit
return true;
end
end
end
end
--[[--------------------------< C I T A T I O N 0 >------------------------------------------------------------
This is the main function doing the majority of the citation formatting.
]]
local function citation0( config, args )
--[[
Load Input Parameters
The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.
]]
local A = argument_wrapper ( args );
local i
-- Pick out the relevant fields from the arguments. Different citation templates
-- define different field names for the same underlying things.
local author_etal;
local a = {}; -- authors list from |lastn= / |firstn= pairs or |vauthors=
local Authors;
local NameListStyle;
if cfg.global_cs1_config_t['NameListStyle'] then -- global setting in {{cs1 config}} overrides local |name-list-style= parameter value; nil when empty or assigned value invalid
NameListStyle = is_valid_parameter_value (cfg.global_cs1_config_t['NameListStyle'], 'cs1 config: name-list-style', cfg.keywords_lists['name-list-style'], ''); -- error messaging 'param' here is a hoax
else
NameListStyle = is_valid_parameter_value (A['NameListStyle'], A:ORIGIN('NameListStyle'), cfg.keywords_lists['name-list-style'], '');
end
if cfg.global_cs1_config_t['NameListStyle'] and utilities.is_set (A['NameListStyle']) then -- when template has |name-list-style=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
local Collaboration = A['Collaboration'];
do -- to limit scope of selected
local selected = select_author_editor_source (A['Vauthors'], A['Authors'], args, 'AuthorList');
if 1 == selected then
a, author_etal = extract_names (args, 'AuthorList'); -- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
a, author_etal = parse_vauthors_veditors (args, A['Vauthors'], 'AuthorList'); -- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=
elseif 3 == selected then
Authors = A['Authors']; -- use content of |people= or |credits=; |authors= is deprecated; TODO: constrain |people= and |credits= to cite av media, episode, serial?
end
if utilities.is_set (Collaboration) then
author_etal = true; -- so that |display-authors=etal not required
end
end
local editor_etal;
local e = {}; -- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=
do -- to limit scope of selected
local selected = select_author_editor_source (A['Veditors'], nil, args, 'EditorList'); -- support for |editors= withdrawn
if 1 == selected then
e, editor_etal = extract_names (args, 'EditorList'); -- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
e, editor_etal = parse_vauthors_veditors (args, args.veditors, 'EditorList'); -- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=
end
end
local Chapter = A['Chapter']; -- done here so that we have access to |contribution= from |chapter= and |script-chapter= aliases
local Chapter_origin = A:ORIGIN ('Chapter');
local ScriptChapter = A['ScriptChapter'];
local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Contribution; -- because contribution is required for contributor(s)
if 'contribution' == Chapter_origin then -- is there a |contribution= parameter?
Contribution = Chapter; -- get the name of the contribution
elseif 'script-contribution' == ScriptChapter_origin then -- no, so is there a |script-contribution= parameter?
Contribution = ScriptChapter; -- get the name of the contribution
end
local c = {}; -- contributors list from |contributor-lastn= / contributor-firstn= pairs
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (A['Periodical']) then -- |contributor= and |contribution= only supported in book cites
c = extract_names (args, 'ContributorList'); -- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=
if 0 < #c then
if not utilities.is_set (Contribution) then -- |contributor= requires |contribution=
utilities.set_message ('err_contributor_missing_required_param', 'contribution'); -- add missing contribution error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
if 0 == #a then -- |contributor= requires |author=
utilities.set_message ('err_contributor_missing_required_param', 'author'); -- add missing author error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
end
else -- if not a book cite
if utilities.select_one (args, cfg.aliases['ContributorList-Last'], 'err_redundant_parameters', 1 ) then -- are there contributor name list parameters?
utilities.set_message ('err_contributor_ignored'); -- add contributor ignored error message
end
Contribution = nil; -- unset
end
local Title = A['Title'];
local TitleLink = A['TitleLink'];
local auto_select = ''; -- default is auto
local accept_link;
TitleLink, accept_link = utilities.has_accept_as_written (TitleLink, true); -- test for accept-this-as-written markup
if (not accept_link) and utilities.in_array (TitleLink, {'none', 'pmc', 'doi'}) then -- check for special keywords
auto_select = TitleLink; -- remember selection for later
TitleLink = ''; -- treat as if |title-link= would have been empty
end
TitleLink = link_title_ok (TitleLink, A:ORIGIN ('TitleLink'), Title, 'title'); -- check for wiki-markup in |title-link= or wiki-markup in |title= when |title-link= is set
local Section = ''; -- {{cite map}} only; preset to empty string for concatenation if not used
if 'map' == config.CitationClass and 'section' == Chapter_origin then
Section = A['Chapter']; -- get |section= from |chapter= alias list; |chapter= and the other aliases not supported in {{cite map}}
Chapter = ''; -- unset for now; will be reset later from |map= if present
end
local Periodical = A['Periodical'];
local Periodical_origin = A:ORIGIN('Periodical');
local ScriptPeriodical = A['ScriptPeriodical'];
local ScriptPeriodical_origin = A:ORIGIN('ScriptPeriodical');
local TransPeriodical = A['TransPeriodical'];
local TransPeriodical_origin = A:ORIGIN ('TransPeriodical');
if (utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical))) then
local param;
if utilities.is_set (Periodical) then -- get a parameter name from one of these periodical related meta-parameters
Periodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = Periodical_origin -- get parameter name for error messaging
elseif utilities.is_set (TransPeriodical) then
TransPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = TransPeriodical_origin; -- get parameter name for error messaging
elseif utilities.is_set (ScriptPeriodical) then
ScriptPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = ScriptPeriodical_origin; -- get parameter name for error messaging
end
if utilities.is_set (param) then -- if we found one
utilities.set_message ('err_periodical_ignored', {param}); -- emit an error message
end
end
if utilities.is_set (Periodical) then
local i;
Periodical, i = utilities.strip_apostrophe_markup (Periodical); -- strip apostrophe markup so that metadata isn't contaminated
if i then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {Periodical_origin});
end
end
if 'mailinglist' == config.CitationClass then -- special case for {{cite mailing list}}
if utilities.is_set (Periodical) and utilities.is_set (A ['MailingList']) then -- both set emit an error TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', Periodical_origin) .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'mailinglist')});
end
Periodical = A ['MailingList']; -- error or no, set Periodical to |mailinglist= value because this template is {{cite mailing list}}
Periodical_origin = A:ORIGIN('MailingList');
end
-- web and news not tested for now because of
-- Wikipedia:Administrators%27_noticeboard#Is_there_a_semi-automated_tool_that_could_fix_these_annoying_"Cite_Web"_errors?
if not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) then -- 'periodical' templates require periodical parameter
-- local p = {['journal'] = 'journal', ['magazine'] = 'magazine', ['news'] = 'newspaper', ['web'] = 'website'}; -- for error message
local p = {['journal'] = 'journal', ['magazine'] = 'magazine'}; -- for error message
if p[config.CitationClass] then
--#Modifed
utilities.set_message ('err_missing_periodical', {cfg.err_msg_supl[config.CitationClass], cfg.err_msg_supl[p[config.CitationClass]]});
end
end
local Volume;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) then
if not utilities.in_array (Periodical_origin, cfg.citation_no_volume_t) then -- {{citation}} does not render |volume= when these parameters are used
Volume = A['Volume']; -- but does for all other 'periodicals'
end
elseif utilities.is_set (ScriptPeriodical) then
if 'script-website' ~= ScriptPeriodical_origin then -- {{citation}} does not render volume for |script-website=
Volume = A['Volume']; -- but does for all other 'periodicals'
end
else
Volume = A['Volume']; -- and does for non-'periodical' cites
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_volume) then -- render |volume= for cs1 according to the configuration settings
Volume = A['Volume'];
end
extra_text_in_vol_iss_check (Volume, A:ORIGIN ('Volume'), 'v');
local Issue;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) and utilities.in_array (Periodical_origin, cfg.citation_issue_t) then -- {{citation}} may render |issue= when these parameters are used
Issue = A['Issue'];
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_issue) then -- conference & map books do not support issue; {{citation}} listed here because included in settings table
if not (utilities.in_array (config.CitationClass, {'conference', 'map', 'citation'}) and not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical))) then
Issue = A['Issue'];
end
end
local ArticleNumber;
if utilities.in_array (config.CitationClass, {'journal', 'conference'}) or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
ArticleNumber = A['ArticleNumber'];
end
extra_text_in_vol_iss_check (Issue, A:ORIGIN ('Issue'), 'i');
Issue = utilities.hyphen_to_dash (Issue);
local Page;
local Pages;
local At;
local QuotePage;
local QuotePages;
if not utilities.in_array (config.CitationClass, cfg.templates_not_using_page) then -- TODO: rewrite to emit ignored parameter error message?
Page = A['Page'];
Pages = utilities.hyphen_to_dash (A['Pages']);
At = A['At'];
QuotePage = A['QuotePage'];
QuotePages = utilities.hyphen_to_dash (A['QuotePages']);
end
local NoPP = is_valid_parameter_value (A['NoPP'], A:ORIGIN('NoPP'), cfg.keywords_lists['yes_true_y'], nil);
local Mode = mode_set (A['Mode'], A:ORIGIN('Mode'));
-- separator character and postscript
local sepc, PostScript = set_style (Mode:lower(), A['PostScript'], config.CitationClass);
local Quote;
Quote, QuotePage, QuotePages, PostScript = quote_make (A['Quote'], A['TransQuote'], A['ScriptQuote'], QuotePage, QuotePages, NoPP, sepc, PostScript);
local Edition = A['Edition'];
local PublicationPlace = place_check (A['PublicationPlace'], A:ORIGIN('PublicationPlace'));
local Place = place_check (A['Place'], A:ORIGIN('Place'));
local PublisherName = A['PublisherName'];
local PublisherName_origin = A:ORIGIN('PublisherName');
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then
local i = 0;
PublisherName, i = utilities.strip_apostrophe_markup (PublisherName); -- strip apostrophe markup so that metadata isn't contaminated; publisher is never italicized
if i and (0 < i) then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {PublisherName_origin});
end
end
if ('document' == config.CitationClass) and not utilities.is_set (PublisherName) then
utilities.set_message ('err_missing_publisher', {config.CitationClass, 'publisher'});
end
local Newsgroup = A['Newsgroup']; -- TODO: strip apostrophe markup?
local Newsgroup_origin = A:ORIGIN('Newsgroup');
if 'newsgroup' == config.CitationClass then
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then -- general use parameter |publisher= not allowed in cite newsgroup
utilities.set_message ('err_parameter_ignored', {PublisherName_origin});
end
PublisherName = nil; -- ensure that this parameter is unset for the time being; will be used again after COinS
end
if 'book' == config.CitationClass or 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and not utilities.is_set (Periodical)) then
local accept;
PublisherName, accept = utilities.has_accept_as_written (PublisherName); -- check for and remove accept-as-written markup from |publisher= wrapped
if not accept then -- when no accept-as-written markup
check_publisher_name (PublisherName); -- emit maint message when |publisher= might be prefixed with publisher's location
end
end
local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL?
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (URL) and utilities.is_set (UrlAccess) then
UrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', 'url');
end
local ChapterURL = A['ChapterURL'];
local ChapterUrlAccess = is_valid_parameter_value (A['ChapterUrlAccess'], A:ORIGIN('ChapterUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (ChapterURL) and utilities.is_set (ChapterUrlAccess) then
ChapterUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {A:ORIGIN('ChapterUrlAccess'):gsub ('%-access', '')});
end
local MapUrlAccess = is_valid_parameter_value (A['MapUrlAccess'], A:ORIGIN('MapUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (A['MapURL']) and utilities.is_set (MapUrlAccess) then
MapUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {'map-url'});
end
local this_page = mw.title.getCurrentTitle(); -- also used for COinS and for language
local no_tracking_cats = is_valid_parameter_value (A['NoTracking'], A:ORIGIN('NoTracking'), cfg.keywords_lists['yes_true_y'], nil);
-- check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories
if not utilities.is_set (no_tracking_cats) then -- ignore if we are already not going to categorize this page
if cfg.uncategorized_namespaces[this_page.namespace] then -- is this page's namespace id one of the uncategorized namespace ids?
no_tracking_cats = "true"; -- set no_tracking_cats
end
for _, v in ipairs (cfg.uncategorized_subpages) do -- cycle through page name patterns
if this_page.text:match (v) then -- test page name against each pattern
no_tracking_cats = "true"; -- set no_tracking_cats
break; -- bail out if one is found
end
end
end
-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we're at it)
utilities.select_one (args, {'page', 'p', 'pp', 'pages', 'at', 'sheet', 'sheets'}, 'err_redundant_parameters'); -- this is a dummy call simply to get the error message and category
local coins_pages;
Page, Pages, At, coins_pages = insource_loc_get (Page, A:ORIGIN('Page'), Pages, A:ORIGIN('Pages'), At);
if utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- both |publication-place= and |place= (|location=) allowed if different
utilities.add_prop_cat ('location-test'); -- add property cat to evaluate how often PublicationPlace and Place are used together
if PublicationPlace == Place then
Place = ''; -- unset; don't need both if they are the same
end
elseif not utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- when only |place= (|location=) is set ...
PublicationPlace = Place; -- promote |place= (|location=) to |publication-place
end
if PublicationPlace == Place then Place = ''; end -- don't need both if they are the same
local URL_origin = A:ORIGIN('URL'); -- get name of parameter that holds URL
local ChapterURL_origin = A:ORIGIN('ChapterURL'); -- get name of parameter that holds ChapterURL
-- local ScriptChapter = A['ScriptChapter'];
-- local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Format = A['Format'];
local ChapterFormat = A['ChapterFormat'];
local TransChapter = A['TransChapter'];
local TransChapter_origin = A:ORIGIN ('TransChapter');
local TransTitle = A['TransTitle'];
local ScriptTitle = A['ScriptTitle'];
--[[
Parameter remapping for cite encyclopedia:
When the citation has these parameters:
|encyclopedia= and |title= then map |title= to |article= and |encyclopedia= to |title= for rendering
|encyclopedia= and |article= then map |encyclopedia= to |title= for rendering
|trans-title= maps to |trans-chapter= when |title= is re-mapped
|url= maps to |chapter-url= when |title= is remapped
All other combinations of |encyclopedia=, |title=, and |article= are not modified
]]
local Encyclopedia = A['Encyclopedia']; -- used as a flag by this module and by ~/COinS
local ScriptEncyclopedia = A['ScriptEncyclopedia'];
local TransEncyclopedia = A['TransEncyclopedia'];
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then -- emit error message when Encyclopedia set but template is other than {{cite encyclopedia}} or {{citation}}
if 'encyclopaedia' ~= config.CitationClass and 'citation' ~= config.CitationClass then
if utilities.is_set (Encyclopedia) then
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('Encyclopedia')});
else
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('ScriptEncyclopedia')});
end
Encyclopedia = nil; -- unset these because not supported by this template
ScriptEncyclopedia = nil;
TransEncyclopedia = nil;
end
elseif utilities.is_set (TransEncyclopedia) then
utilities.set_message ('err_trans_missing_title', {'encyclopedia'});
end
if ('encyclopaedia' == config.CitationClass) or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Periodical) and utilities.is_set (Encyclopedia) then -- when both parameters set emit an error message; {{citation}} only; Periodical not allowed in {{cite encyclopedia}}
utilities.set_message ('err_periodical_ignored', {Periodical_origin});
end
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then
Periodical = Encyclopedia; -- error or no, set Periodical to Encyclopedia for rendering; {{citation}} could (not legitimately) have both; use Encyclopedia
Periodical_origin = A:ORIGIN ('Encyclopedia');
ScriptPeriodical = ScriptEncyclopedia;
ScriptPeriodical_origin = A:ORIGIN ('ScriptEncyclopedia');
if utilities.is_set (Title) or utilities.is_set (ScriptTitle) then
if not utilities.is_set (Chapter) then
Chapter = Title; -- |encyclopedia= and |title= are set so map |title= params to |article= params for rendering
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle')
TransChapter = TransTitle;
ChapterURL = URL;
ChapterURL_origin = URL_origin;
ChapterUrlAccess = UrlAccess;
ChapterFormat = Format;
if not utilities.is_set (ChapterURL) and utilities.is_set (TitleLink) then
Chapter = utilities.make_wikilink (TitleLink, Chapter);
end
Title = Periodical; -- now map |encyclopedia= params to |title= params for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
URL = '';
Format = '';
TitleLink = '';
end
elseif utilities.is_set (Chapter) or utilities.is_set (ScriptChapter) then -- |title= not set
Title = Periodical; -- |encyclopedia= set and |article= set so map |encyclopedia= to |title= for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
end
end
end
-- special case for cite techreport.
local ID = A['ID'];
if (config.CitationClass == "techreport") then -- special case for cite techreport
if utilities.is_set (A['Number']) then -- cite techreport uses 'number', which other citations alias to 'issue'
if not utilities.is_set (ID) then -- can we use ID for the "number"?
ID = A['Number']; -- yes, use it
else -- ID has a value so emit error message
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'id') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'number')});
end
end
end
-- Account for the oddity that is {{cite conference}}, before generation of COinS data.
local ChapterLink -- = A['ChapterLink']; -- deprecated as a parameter but still used internally by cite episode
local Conference = A['Conference'];
local BookTitle = A['BookTitle'];
local TransTitle_origin = A:ORIGIN ('TransTitle');
if 'conference' == config.CitationClass then
if utilities.is_set (BookTitle) then
Chapter = Title;
Chapter_origin = 'title';
-- ChapterLink = TitleLink; -- |chapter-link= is deprecated
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
URL_origin = '';
ChapterFormat = Format;
TransChapter = TransTitle;
TransChapter_origin = TransTitle_origin;
Title = BookTitle;
Format = '';
-- TitleLink = '';
TransTitle = '';
URL = '';
end
elseif 'speech' ~= config.CitationClass then
Conference = ''; -- not cite conference or cite speech so make sure this is empty string
end
local cs2_lower = function (text) -- if mode is cs2, use lower case
if (sepc ~= '.') then
return text:lower();
end
return text;
end
local use_lowercase = ( sepc == ',' ); -- controls capitalization of certain static text
-- cite map oddities
local Cartography = "";
local Scale = "";
local Sheet = A['Sheet'] or '';
local Sheets = A['Sheets'] or '';
if config.CitationClass == "map" then
if utilities.is_set (Chapter) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'map') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', Chapter_origin)}); -- add error message
end
Chapter = A['Map'];
Chapter_origin = A:ORIGIN('Map');
ChapterURL = A['MapURL'];
ChapterURL_origin = A:ORIGIN('MapURL');
TransChapter = A['TransMap'];
ScriptChapter = A['ScriptMap']
ScriptChapter_origin = A:ORIGIN('ScriptMap')
ChapterUrlAccess = MapUrlAccess;
ChapterFormat = A['MapFormat'];
Cartography = A['Cartography'];
if utilities.is_set ( Cartography ) then
Cartography = sepc .. " " .. wrap_msg ('cartography', Cartography, use_lowercase);
end
Scale = A['Scale'];
if utilities.is_set ( Scale ) then
Scale = sepc .. " " .. Scale;
end
end
-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.
local Series = A['Series'];
if 'episode' == config.CitationClass or 'serial' == config.CitationClass then
local SeriesLink = A['SeriesLink'];
SeriesLink = link_title_ok (SeriesLink, A:ORIGIN ('SeriesLink'), Series, 'series'); -- check for wiki-markup in |series-link= or wiki-markup in |series= when |series-link= is set
local Network = A['Network'];
local Station = A['Station'];
local s, n = {}, {};
-- do common parameters first
if utilities.is_set (Network) then table.insert(n, Network); end
if utilities.is_set (Station) then table.insert(n, Station); end
ID = table.concat(n, sepc .. ' ');
if 'episode' == config.CitationClass then -- handle the oddities that are strictly {{cite episode}}
local Season = A['Season'];
local SeriesNumber = A['SeriesNumber'];
if utilities.is_set (Season) and utilities.is_set (SeriesNumber) then -- these are mutually exclusive so if both are set TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'season') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'seriesno')}); -- add error message
SeriesNumber = ''; -- unset; prefer |season= over |seriesno=
end
-- assemble a table of parts concatenated later into Series
if utilities.is_set (Season) then table.insert(s, wrap_msg ('season', Season, use_lowercase)); end
if utilities.is_set (SeriesNumber) then table.insert(s, wrap_msg ('seriesnum', SeriesNumber, use_lowercase)); end
if utilities.is_set (Issue) then table.insert(s, wrap_msg ('episode', Issue, use_lowercase)); end
Issue = ''; -- unset because this is not a unique parameter
Chapter = Title; -- promote title parameters to chapter
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle');
ChapterLink = TitleLink; -- alias |episode-link=
TransChapter = TransTitle;
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
ChapterFormat = Format;
Title = Series; -- promote series to title
TitleLink = SeriesLink;
Series = table.concat(s, sepc .. ' '); -- this is concatenation of season, seriesno, episode number
if utilities.is_set (ChapterLink) and not utilities.is_set (ChapterURL) then -- link but not URL
Chapter = utilities.make_wikilink (ChapterLink, Chapter);
elseif utilities.is_set (ChapterLink) and utilities.is_set (ChapterURL) then -- if both are set, URL links episode;
Series = utilities.make_wikilink (ChapterLink, Series);
end
URL = ''; -- unset
TransTitle = '';
ScriptTitle = '';
Format = '';
else -- now oddities that are cite serial
Issue = ''; -- unset because this parameter no longer supported by the citation/core version of cite serial
Chapter = A['Episode']; -- TODO: make |episode= available to cite episode someday?
if utilities.is_set (Series) and utilities.is_set (SeriesLink) then
Series = utilities.make_wikilink (SeriesLink, Series);
end
Series = utilities.wrap_style ('italic-title', Series); -- series is italicized
end
end
-- end of {{cite episode}} stuff
-- handle type parameter for those CS1 citations that have default values
local TitleType = A['TitleType'];
local Degree = A['Degree'];
if utilities.in_array (config.CitationClass, {'AV-media-notes', 'document', 'interview', 'mailinglist', 'map', 'podcast', 'pressrelease', 'report', 'speech', 'techreport', 'thesis'}) then
TitleType = set_titletype (config.CitationClass, TitleType);
if utilities.is_set (Degree) and ("Thesis" == TitleType or cfg.title_types ['thesis'] == TitleType) then -- special case for cite thesis
TitleType = utilities.substitute (cfg.presentation['thesis-degree'], {Degree, cfg.title_types ['thesis']:lower()});
end
end
if utilities.is_set (TitleType) then -- if type parameter is specified
TitleType = utilities.substitute ( cfg.messages['type'], TitleType); -- display it in parentheses
-- TODO: Hack on TitleType to fix bunched parentheses problem
end
-- legacy: promote PublicationDate to Date if neither Date nor Year are set.
local Date = A['Date'];
local Date_origin; -- to hold the name of parameter promoted to Date; required for date error messaging
local PublicationDate = A['PublicationDate'];
local Year = A['Year'];
-- #Added
local HijriDate = A['HijriDate'];
if utilities.is_set (Year) then
validation.year_check (Year); -- returns nothing; emits maint message when |year= doesn't hold a 'year' value
end
if not utilities.is_set (Date) then
Date = Year; -- promote Year to Date
Year = nil; -- make nil so Year as empty string isn't used for CITEREF
if not utilities.is_set (Date) and utilities.is_set (PublicationDate) then -- use PublicationDate when |date= and |year= are not set
Date = PublicationDate; -- promote PublicationDate to Date
PublicationDate = ''; -- unset, no longer needed
Date_origin = A:ORIGIN('PublicationDate'); -- save the name of the promoted parameter
else
Date_origin = A:ORIGIN('Year'); -- save the name of the promoted parameter
end
else
Date_origin = A:ORIGIN('Date'); -- not a promotion; name required for error messaging
end
if PublicationDate == Date then PublicationDate = ''; end -- if PublicationDate is same as Date, don't display in rendered citation
--[[
Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where
we get the date used in the metadata.
Date validation supporting code is in Module:Citation/CS1/Date_validation
]]
local DF = is_valid_parameter_value (A['DF'], A:ORIGIN('DF'), cfg.keywords_lists['df'], '');
if not utilities.is_set (DF) then
DF = cfg.global_df; -- local |df= if present overrides global df set by {{use xxx date}} template
end
local ArchiveURL;
local ArchiveDate;
local ArchiveFormat = A['ArchiveFormat'];
local archive_url_timestamp; -- timestamp from wayback machine url
--#Added Block to add category for unarchived URLs
if utilities.is_set(URL) and not utilities.is_set(A['ArchiveURL']) and not wikidatacite
and not URL:match('//archive%.org/') -- no need for ArchiveURL if the URL is from archive cite! by User:Mr. Ibrahem
then
utilities.add_prop_cat ('no_archive');
end
ArchiveURL, ArchiveDate, archive_url_timestamp = archive_url_check (A['ArchiveURL'], A['ArchiveDate'])
ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, 'archive-format', 'archive-url');
ArchiveURL, ArchiveDate = is_unique_archive_url (ArchiveURL, URL, ChapterURL, A:ORIGIN('ArchiveURL'), ArchiveDate); -- add error message when URL or ChapterURL == ArchiveURL
local AccessDate = A['AccessDate'];
local COinS_date = {}; -- holds date info extracted from |date= for the COinS metadata by Module:Date verification
local DoiBroken = A['DoiBroken'];
local Embargo = A['Embargo'];
local anchor_year; -- used in the CITEREF identifier
do -- create defined block to contain local variables error_message, date_parameters_list, mismatch
local error_message = '';
-- AirDate has been promoted to Date so not necessary to check it
local date_parameters_list = {
['access-date'] = {val = AccessDate, name = A:ORIGIN ('AccessDate')},
['archive-date'] = {val = ArchiveDate, name = A:ORIGIN ('ArchiveDate')},
['hijri-date'] = {val = HijriDate, name = A:ORIGIN ('HijriDate')},
['date'] = {val = Date, name = Date_origin},
['doi-broken-date'] = {val = DoiBroken, name = A:ORIGIN ('DoiBroken')},
['pmc-embargo-date'] = {val = Embargo, name = A:ORIGIN ('Embargo')},
['publication-date'] = {val = PublicationDate, name = A:ORIGIN ('PublicationDate')},
['year'] = {val = Year, name = A:ORIGIN ('Year')},
};
local error_list = {};
anchor_year, Embargo = validation.dates(date_parameters_list, COinS_date, error_list);
if utilities.is_set (Year) and utilities.is_set (Date) then -- both |date= and |year= not normally needed;
validation.year_date_check (Year, A:ORIGIN ('Year'), Date, A:ORIGIN ('Date'), error_list);
end
--#Added Block
if date_parameters_list['hijri-date'].tt and date_parameters_list['date'].tt then
validation.hijri_and_gregorian_corresponded (date_parameters_list['hijri-date'].tt, date_parameters_list['date'].tt);
end
if 0 == #error_list then -- error free dates only; 0 when error_list is empty
local modified = false; -- flag
if utilities.is_set (DF) then -- if we need to reformat dates
modified = validation.reformat_dates (date_parameters_list, DF); -- reformat to DF format, use long month names if appropriate
end
if true == validation.date_hyphen_to_dash (date_parameters_list) then -- convert hyphens to dashes where appropriate
modified = true;
utilities.set_message ('maint_date_format'); -- hyphens were converted so add maint category
end
-- for those wikis that can and want to have English date names translated to the local language; not supported at en.wiki
if cfg.date_name_auto_xlate_enable and validation.date_name_xlate (date_parameters_list, cfg.date_digit_auto_xlate_enable ) then
utilities.set_message ('maint_date_auto_xlated'); -- add maint cat
modified = true;
end
if modified then -- if the date_parameters_list values were modified
AccessDate = date_parameters_list['access-date'].val; -- overwrite date holding parameters with modified values
ArchiveDate = date_parameters_list['archive-date'].val;
Date = date_parameters_list['date'].val;
DoiBroken = date_parameters_list['doi-broken-date'].val;
PublicationDate = date_parameters_list['publication-date'].val;
HijriDate = date_parameters_list['hijri-date'].val;
end
if archive_url_timestamp and utilities.is_set (ArchiveDate) then
validation.archive_date_check (ArchiveDate, archive_url_timestamp, DF); -- does YYYYMMDD in archive_url_timestamp match date in ArchiveDate
end
else
utilities.set_message ('err_bad_date', {utilities.make_sep_list (#error_list, error_list)}); -- add this error message
end
--#Added block
if date_parameters_list['date'].val == "nd" then
Date = cfg.messages["unknown_date"];
end
end -- end of do
if utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) or -- {{cite book}}, {{cite encyclopedia}}; TODO: {{cite conference}} and others?
('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) or -- {{citation}} as an encylopedia citation
('citation' == config.CitationClass and not utilities.is_set (Periodical)) then -- {{citation}} as a book citation
if utilities.is_set (PublicationPlace) then
if not utilities.is_set (PublisherName) then
local date = COinS_date.rftdate and tonumber (COinS_date.rftdate:match ('%d%d%d%d')); -- get year portion of COinS date (because in Arabic numerals); convert string to number
if date and (1850 <= date) then -- location has no publisher; if date is 1850 or later
utilities.set_message ('maint_location_no_publisher'); -- add maint cat
end
else -- PublisherName has a value
if cfg.keywords_xlate['none'] == PublisherName then -- if that value is 'none' (only for book and encyclopedia citations)
PublisherName = ''; -- unset
end
end
end
end
local ID_list = {}; -- sequence table of rendered identifiers
local ID_list_coins = {}; -- table of identifiers and their values from args; key is same as cfg.id_handlers's key
local Class = A['Class']; -- arxiv class identifier
local ID_support = {
{A['ASINTLD'], 'ASIN', 'err_asintld_missing_asin', A:ORIGIN ('ASINTLD')},
{DoiBroken, 'DOI', 'err_doibroken_missing_doi', A:ORIGIN ('DoiBroken')},
{Embargo, 'PMC', 'err_embargo_missing_pmc', A:ORIGIN ('Embargo')},
}
ID_list, ID_list_coins = identifiers.identifier_lists_get (args, {
DoiBroken = DoiBroken, -- for |doi=
ASINTLD = A['ASINTLD'], -- for |asin=
Embargo = Embargo, -- for |pmc=
Class = Class, -- for |arxiv=
CitationClass = config.CitationClass, -- for |arxiv=
Year=anchor_year, -- for |isbn=
}, ID_support);
if 'citation' == config.CitationClass then -- catch ve/citoid malformed book cites in {{citation}} templates
for _, id in ipairs (ID_list) do -- search through the ID_list sequence looking for an ISBN identifier string
if id:find ('ISBN', 3, true) then -- plain find, start at index 3 ([[ISBN)
if utilities.is_set (Periodical) then -- when a |work= alias is set
utilities.set_message ('maint_work_isbn'); -- add maint cat
end
end
end
end
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, {{cite ssrn}}, before generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- |arxiv= or |eprint= required for cite arxiv; |biorxiv=, |citeseerx=, |medrxiv=, |ssrn= required for their templates
if not (args[cfg.id_handlers[config.CitationClass:upper()].parameters[1]] or -- can't use ID_list_coins k/v table here because invalid parameters omitted
args[cfg.id_handlers[config.CitationClass:upper()].parameters[2]]) then -- which causes unexpected parameter missing error message
utilities.set_message ('err_' .. config.CitationClass .. '_missing'); -- add error message
end
Periodical = ({['arxiv'] = 'arXiv', ['biorxiv'] = 'bioRxiv', ['citeseerx'] = 'CiteSeerX', ['medrxiv'] = 'medRxiv', ['ssrn'] = 'Social Science Research Network'})[config.CitationClass];
end
-- Link the title of the work if no |url= was provided, but we have a |pmc= or a |doi= with |doi-access=free
if config.CitationClass == "journal" and not utilities.is_set (URL) and not utilities.is_set (TitleLink) and not utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) then -- TODO: remove 'none' once existing citations have been switched to 'off', so 'none' can be used as token for "no title" instead
if 'none' ~= cfg.keywords_xlate[auto_select] then -- if auto-linking not disabled
if identifiers.auto_link_urls[auto_select] then -- manual selection
URL = identifiers.auto_link_urls[auto_select]; -- set URL to be the same as identifier's external link
URL_origin = cfg.id_handlers[auto_select:upper()].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['pmc'] then -- auto-select PMC
URL = identifiers.auto_link_urls['pmc']; -- set URL to be the same as the PMC external link if not embargoed
URL_origin = cfg.id_handlers['PMC'].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['doi'] then -- auto-select DOI
URL = identifiers.auto_link_urls['doi'];
URL_origin = cfg.id_handlers['DOI'].parameters[1];
end
end
if utilities.is_set (URL) then -- set when using an identifier-created URL
if utilities.is_set (AccessDate) then -- |access-date= requires |url=; identifier-created URL is not |url=
--#Modified
utilities.set_message ('err_accessdate_missing_url', A:ORIGIN('AccessDate')); -- add an error message
AccessDate = ''; -- unset
end
if utilities.is_set (ArchiveURL) then -- |archive-url= requires |url=; identifier-created URL is not |url=
--#Modified
utilities.set_message ('err_archive_missing_url', {A:ORIGIN('ArchiveURL')}); -- add an error message
ArchiveURL = ''; -- unset
end
end
end
-- At this point fields may be nil if they weren't specified in the template use. We can use that fact.
-- Test if citation has no title
if not utilities.is_set (Title) and not utilities.is_set (TransTitle) and not utilities.is_set (ScriptTitle) then -- has special case for cite episode
--#Modified Block
utilities.set_message (wikidatacite and 'err_wikidata_citation_missing_title' or 'err_citation_missing_title', {'episode' == config.CitationClass and 'series' or 'title'});
end
if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and
utilities.in_array (config.CitationClass, {'journal', 'citation'}) and
(utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and
('journal' == Periodical_origin or 'script-journal' == ScriptPeriodical_origin) then -- special case for journal cites
Title = ''; -- set title to empty string
utilities.set_message ('maint_untitled'); -- add maint cat
end
if 'journal' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
if is_page_art_num (((utilities.is_set (Page) and Page) or (utilities.is_set (Pages) and Pages)) or nil, ID_list_coins['DOI']) then -- does |page(s)= look like it holds an article number
utilities.set_message ('maint_page_art_num'); -- add maint cat
end
end
-- COinS metadata (see <http://ocoins.info/>) for automated parsing of citation information.
-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that
-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title
-- is the article title, and Chapter is a section within the article. So, we remap
local coins_chapter = Chapter; -- default assuming that remapping not required
local coins_title = Title; -- et tu
if 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Chapter) and utilities.is_set (Title) and utilities.is_set (Periodical) then -- if all are used then
coins_chapter = Title; -- remap
coins_title = Periodical;
end
end
local coins_author = a; -- default for coins rft.au
if 0 < #c then -- but if contributor list
coins_author = c; -- use that instead
end
-- this is the function call to COinS()
local OCinSoutput = metadata.COinS({
['Periodical'] = utilities.strip_apostrophe_markup (Periodical), -- no markup in the metadata
['Encyclopedia'] = Encyclopedia, -- just a flag; content ignored by ~/COinS
['Chapter'] = metadata.make_coins_title (coins_chapter, ScriptChapter), -- Chapter and ScriptChapter stripped of bold / italic / accept-as-written markup
['Degree'] = Degree; -- cite thesis only
['Title'] = metadata.make_coins_title (coins_title, ScriptTitle), -- Title and ScriptTitle stripped of bold / italic / accept-as-written markup
['PublicationPlace'] = PublicationPlace,
['Date'] = COinS_date.rftdate, -- COinS_date.* has correctly formatted date values if Date is valid;
['Season'] = COinS_date.rftssn,
['Quarter'] = COinS_date.rftquarter,
['Chron'] = COinS_date.rftchron,
['Series'] = Series,
['Volume'] = Volume,
['Issue'] = Issue,
['ArticleNumber'] = ArticleNumber,
['Pages'] = coins_pages or metadata.get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At, QuotePage, QuotePages}, 7)), -- pages stripped of external links
['Edition'] = Edition,
['PublisherName'] = PublisherName or Newsgroup, -- any apostrophe markup already removed from PublisherName
['URL'] = first_set ({ChapterURL, URL}, 2),
['Authors'] = coins_author,
['ID_list'] = ID_list_coins,
['RawPage'] = this_page.prefixedText,
}, config.CitationClass);
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, and {{cite ssrn}} AFTER generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- we have set rft.jtitle in COinS to arXiv, bioRxiv, CiteSeerX, medRxiv, or ssrn now unset so it isn't displayed
Periodical = ''; -- periodical not allowed in these templates; if article has been published, use cite journal
end
-- special case for cite newsgroup. Do this after COinS because we are modifying Publishername to include some static text
if 'newsgroup' == config.CitationClass and utilities.is_set (Newsgroup) then
PublisherName = utilities.substitute (cfg.messages['newsgroup'], external_link( 'news:' .. Newsgroup, Newsgroup, Newsgroup_origin, nil ));
end
local Editors;
local EditorCount; -- used only for choosing {ed.) or (eds.) annotation at end of editor name-list
local Contributors; -- assembled contributors name list
local contributor_etal;
local Translators; -- assembled translators name list
local translator_etal;
local t = {}; -- translators list from |translator-lastn= / translator-firstn= pairs
t = extract_names (args, 'TranslatorList'); -- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=
local Interviewers;
local interviewers_list = {};
interviewers_list = extract_names (args, 'InterviewerList'); -- process preferred interviewers parameters
local interviewer_etal;
-- Now perform various field substitutions.
-- We also add leading spaces and surrounding markup and punctuation to the
-- various parts of the citation, but only when they are non-nil.
do
local last_first_list;
local control = {
format = NameListStyle, -- empty string, '&', 'amp', 'and', or 'vanc'
maximum = nil, -- as if display-authors or display-editors not set
mode = Mode
};
do -- do editor name list first because the now unsupported coauthors used to modify control table
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayEditors'], A['DisplayEditors'], A:ORIGIN ('DisplayEditors'), #e);
control.maximum, editor_etal = get_display_names (display_names, #e, 'editors', editor_etal, param);
Editors, EditorCount = list_people (control, e, editor_etal);
if 1 == EditorCount and (true == editor_etal or 1 < #e) then -- only one editor displayed but includes etal then
EditorCount = 2; -- spoof to display (eds.) annotation
end
end
do -- now do interviewers
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayInterviewers'], A['DisplayInterviewers'], A:ORIGIN ('DisplayInterviewers'), #interviewers_list);
control.maximum, interviewer_etal = get_display_names (display_names, #interviewers_list, 'interviewers', interviewer_etal, param);
Interviewers = list_people (control, interviewers_list, interviewer_etal);
end
do -- now do translators
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayTranslators'], A['DisplayTranslators'], A:ORIGIN ('DisplayTranslators'), #t);
control.maximum, translator_etal = get_display_names (display_names, #t, 'translators', translator_etal, param);
Translators = list_people (control, t, translator_etal);
end
do -- now do contributors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayContributors'], A['DisplayContributors'], A:ORIGIN ('DisplayContributors'), #c);
control.maximum, contributor_etal = get_display_names (display_names, #c, 'contributors', contributor_etal, param);
Contributors = list_people (control, c, contributor_etal);
end
do -- now do authors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayAuthors'], A['DisplayAuthors'], A:ORIGIN ('DisplayAuthors'), #a, author_etal);
control.maximum, author_etal = get_display_names (display_names, #a, 'authors', author_etal, param);
last_first_list = list_people (control, a, author_etal);
if utilities.is_set (Authors) then
Authors, author_etal = name_has_etal (Authors, author_etal, false, 'authors'); -- find and remove variations on et al.
if author_etal then
Authors = Authors .. ' ' .. cfg.messages['et al']; -- add et al. to authors parameter
end
else
Authors = last_first_list; -- either an author name list or an empty string
end
end -- end of do
if utilities.is_set (Authors) and utilities.is_set (Collaboration) then
Authors = Authors .. ' (' .. Collaboration .. ')'; -- add collaboration after et al.
end
end
local ConferenceFormat = A['ConferenceFormat'];
local ConferenceURL = A['ConferenceURL'];
ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, 'conference-format', 'conference-url');
Format = style_format (Format, URL, 'format', 'url');
-- special case for chapter format so no error message or cat when chapter not supported
if not (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia))) then
ChapterFormat = style_format (ChapterFormat, ChapterURL, 'chapter-format', 'chapter-url');
end
if not utilities.is_set (URL) then
if utilities.in_array (config.CitationClass, {"web", "podcast", "mailinglist"}) or -- |url= required for {{cite web}}, {{cite podcast}}, and {{cite mailing list}}
('citation' == config.CitationClass and ('website' == Periodical_origin or 'script-website' == ScriptPeriodical_origin)) then -- and required for {{citation}} with |website= or |script-website=
if not url_was_archive_today then -- is <URL> empty/missing because it was a deprecated archive.today url
utilities.set_message ('err_cite_web_url'); -- no; emit an error message for an empty/ missing |url=
end
end
-- do we have |accessdate= without either |url= or |chapter-url=?
if utilities.is_set (AccessDate) and not utilities.is_set (ChapterURL) then -- ChapterURL may be set when URL is not set;
--#Modified
utilities.set_message ('err_accessdate_missing_url', A:ORIGIN('AccessDate'));
AccessDate = '';
end
end
local UrlStatus = is_valid_parameter_value (A['UrlStatus'], A:ORIGIN('UrlStatus'), cfg.keywords_lists['url-status'], '');
local OriginalURL
local OriginalURL_origin
local OriginalFormat
local OriginalAccess;
UrlStatus = UrlStatus:lower(); -- used later when assembling archived text
if utilities.is_set ( ArchiveURL ) then
if utilities.is_set (ChapterURL) then -- if chapter-url= is set apply archive url to it
OriginalURL = ChapterURL; -- save copy of source chapter's url for archive text
OriginalURL_origin = ChapterURL_origin; -- name of |chapter-url= parameter for error messages
OriginalFormat = ChapterFormat; -- and original |chapter-format=
if 'live' ~= UrlStatus then
ChapterURL = ArchiveURL -- swap-in the archive's URL
ChapterURL_origin = A:ORIGIN('ArchiveURL') -- name of |archive-url= parameter for error messages
ChapterFormat = ArchiveFormat or ''; -- swap in archive's format
ChapterUrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
elseif utilities.is_set (URL) then
OriginalURL = URL; -- save copy of original source URL
OriginalURL_origin = URL_origin; -- name of URL parameter for error messages
OriginalFormat = Format; -- and original |format=
OriginalAccess = UrlAccess;
if 'live' ~= UrlStatus then -- if URL set then |archive-url= applies to it
URL = ArchiveURL -- swap-in the archive's URL
URL_origin = A:ORIGIN('ArchiveURL') -- name of archive URL parameter for error messages
Format = ArchiveFormat or ''; -- swap in archive's format
UrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
end
elseif utilities.is_set (UrlStatus) then -- if |url-status= is set when |archive-url= is not set
utilities.set_message ('maint_url_status'); -- add maint cat
end
--*******
if utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or -- if any of the 'periodical' cites except encyclopedia
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) then
local chap_param;
if utilities.is_set (Chapter) then -- get a parameter name from one of these chapter related meta-parameters
chap_param = A:ORIGIN ('Chapter')
elseif utilities.is_set (TransChapter) then
chap_param = A:ORIGIN ('TransChapter')
elseif utilities.is_set (ChapterURL) then
chap_param = A:ORIGIN ('ChapterURL')
elseif utilities.is_set (ScriptChapter) then
chap_param = ScriptChapter_origin;
else utilities.is_set (ChapterFormat)
chap_param = A:ORIGIN ('ChapterFormat')
end
if utilities.is_set (chap_param) then -- if we found one
utilities.set_message ('err_chapter_ignored', {chap_param}); -- add error message
Chapter = ''; -- and set them to empty string to be safe with concatenation
TransChapter = '';
ChapterURL = '';
ScriptChapter = '';
ChapterFormat = '';
end
else -- otherwise, format chapter / article title
local no_quotes = false; -- default assume that we will be quoting the chapter parameter value
if utilities.is_set (Contribution) and 0 < #c then -- if this is a contribution with contributor(s)
if utilities.in_array (Contribution:lower(), cfg.keywords_lists.contribution) then -- and a generic contribution title
no_quotes = true; -- then render it unquoted
end
end
Chapter = format_chapter_title (ScriptChapter, ScriptChapter_origin, Chapter, Chapter_origin, TransChapter, TransChapter_origin, ChapterURL, ChapterURL_origin, no_quotes, ChapterUrlAccess); -- Contribution is also in Chapter
if utilities.is_set (Chapter) then
Chapter = Chapter .. ChapterFormat ;
if 'map' == config.CitationClass and utilities.is_set (TitleType) then
Chapter = Chapter .. ' ' .. TitleType; -- map annotation here; not after title
end
Chapter = Chapter .. sepc .. ' ';
elseif utilities.is_set (ChapterFormat) then -- |chapter= not set but |chapter-format= is so ...
Chapter = ChapterFormat .. sepc .. ' '; -- ... ChapterFormat has error message, we want to see it
end
end
-- Format main title
local plain_title = false;
local accept_title;
Title, accept_title = utilities.has_accept_as_written (Title, true); -- remove accept-this-as-written markup when it wraps all of <Title>
if accept_title and ('' == Title) then -- only support forced empty for now "(())"
Title = cfg.messages['notitle']; -- replace by predefined "No title" message
-- TODO: utilities.set_message ( 'err_redundant_parameters', ...); -- issue proper error message instead of muting
ScriptTitle = ''; -- just mute for now
TransTitle = ''; -- just mute for now
plain_title = true; -- suppress text decoration for descriptive title
utilities.set_message ('maint_untitled'); -- add maint cat
end
if not accept_title then -- <Title> not wrapped in accept-as-written markup
if '...' == Title:sub (-3) then -- if ellipsis is the last three characters of |title=
Title = Title:gsub ('(%.%.%.)%.+$', '%1'); -- limit the number of dots to three
elseif not mw.ustring.find (Title, '%.%s*%a%.$') and -- end of title is not a 'dot-(optional space-)letter-dot' initialism ...
not mw.ustring.find (Title, '%s+%a%.$') then -- ...and not a 'space-letter-dot' initial (''Allium canadense'' L.)
Title = mw.ustring.gsub(Title, '%' .. sepc .. '$', ''); -- remove any trailing separator character; sepc and ms.ustring() here for languages that use multibyte separator characters
end
if utilities.is_set (ArchiveURL) and is_archived_copy (Title) then
utilities.set_message ('maint_archived_copy'); -- add maintenance category before we modify the content of Title
end
if is_generic ('generic_titles', Title) then
utilities.set_message ('err_generic_title'); -- set an error message
end
end
if (not plain_title) and (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'document', 'pressrelease', 'podcast', 'newsgroup', 'mailinglist', 'interview', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) or
('map' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)))) then -- special case for cite map when the map is in a periodical treat as an article
Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from module provided quote marks
Title = utilities.wrap_style ('quoted-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle );
elseif plain_title or ('report' == config.CitationClass) then -- no styling for cite report and descriptive titles (otherwise same as above)
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle ); -- for cite report, use this form for trans-title
else
Title = utilities.wrap_style ('italic-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-italic-title', TransTitle);
end
if utilities.is_set (TransTitle) then
if utilities.is_set (Title) then
TransTitle = " " .. TransTitle;
else
utilities.set_message ('err_trans_missing_title', {'title'});
end
end
if utilities.is_set (Title) then -- TODO: is this the right place to be making Wikisource URLs?
if utilities.is_set (TitleLink) and utilities.is_set (URL) then
utilities.set_message ('err_wikilink_in_url'); -- set an error message because we can't have both
TitleLink = ''; -- unset
end
if not utilities.is_set (TitleLink) and utilities.is_set (URL) then
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = ''; -- unset these because no longer needed
Format = "";
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then
local ws_url;
ws_url = wikisource_url_make (TitleLink); -- ignore ws_label return; not used here
if ws_url then
Title = external_link (ws_url, Title .. ' ', 'ws link in title-link'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], TitleLink, Title});
Title = Title .. TransTitle;
else
Title = utilities.make_wikilink (TitleLink, Title) .. TransTitle;
end
else
local ws_url, ws_label, L; -- Title has italic or quote markup by the time we get here which causes is_wikilink() to return 0 (not a wikilink)
ws_url, ws_label, L = wikisource_url_make (Title:gsub('^[\'"]*(.-)[\'"]*$', '%1')); -- make ws URL from |title= interwiki link (strip italic or quote markup); link portion L becomes tooltip label
if ws_url then
Title = Title:gsub ('%b[]', ws_label); -- replace interwiki link with ws_label to retain markup
Title = external_link (ws_url, Title .. ' ', 'ws link in title'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, Title});
Title = Title .. TransTitle;
else
Title = Title .. TransTitle;
end
end
else
Title = TransTitle;
end
if utilities.is_set (Place) then
Place = " " .. wrap_msg ('written', Place, use_lowercase) .. sepc .. " ";
end
local ConferenceURL_origin = A:ORIGIN('ConferenceURL'); -- get name of parameter that holds ConferenceURL
if utilities.is_set (Conference) then
if utilities.is_set (ConferenceURL) then
Conference = external_link( ConferenceURL, Conference, ConferenceURL_origin, nil );
end
Conference = sepc .. " " .. Conference .. ConferenceFormat;
elseif utilities.is_set (ConferenceURL) then
Conference = sepc .. " " .. external_link( ConferenceURL, nil, ConferenceURL_origin, nil );
end
local Position = '';
if not utilities.is_set (Position) then
local Minutes = A['Minutes'];
local Time = A['Time'];
if utilities.is_set (Minutes) then
if utilities.is_set (Time) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'minutes') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'time')});
end
Position = utilities.substitute (cfg.messages.minutes, Minutes);
else
if utilities.is_set (Time) then
local TimeCaption = A['TimeCaption']
if not utilities.is_set (TimeCaption) then
TimeCaption = cs2_lower(cfg.messages['event']);
end
Position = " " .. TimeCaption .. " " .. Time;
end
end
else
Position = " " .. Position;
At = '';
end
Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);
At = utilities.is_set (At) and (sepc .. " " .. At) or "";
Position = utilities.is_set (Position) and (sepc .. " " .. Position) or "";
if config.CitationClass == 'map' then
local Sections = A['Sections']; -- Section (singular) is an alias of Chapter so set earlier
local Inset = A['Inset'];
if utilities.is_set ( Inset ) then
Inset = sepc .. " " .. wrap_msg ('inset', Inset, use_lowercase);
end
if utilities.is_set ( Sections ) then
Section = sepc .. " " .. wrap_msg ('sections', Sections, use_lowercase);
elseif utilities.is_set ( Section ) then
Section = sepc .. " " .. wrap_msg ('section', Section, use_lowercase);
end
At = At .. Inset .. Section;
end
local Others = A['Others'];
if utilities.is_set (Others) and 0 == #a and 0 == #e then -- add maint cat when |others= has value and used without |author=, |editor=
if config.CitationClass == "AV-media-notes"
or config.CitationClass == "audio-visual" then -- special maint for AV/M which has a lot of 'false' positives right now
utilities.set_message ('maint_others_avm')
else
utilities.set_message ('maint_others');
end
end
Others = utilities.is_set (Others) and (sepc .. " " .. Others) or "";
if utilities.is_set (Translators) then
Others = safe_join ({sepc .. ' ', wrap_msg ('translated', Translators, use_lowercase), Others}, sepc);
end
if utilities.is_set (Interviewers) then
Others = safe_join ({sepc .. ' ', wrap_msg ('interview', Interviewers, use_lowercase), Others}, sepc);
end
local TitleNote = A['TitleNote'];
TitleNote = utilities.is_set (TitleNote) and (sepc .. " " .. TitleNote) or "";
if utilities.is_set (Edition) then
if Edition:match ('%f[%a][Ee]d%n?%.?$') or Edition:match ('%f[%a][Ee]dition$') then -- Ed, ed, Ed., ed., Edn, edn, Edn., edn.
utilities.set_message ('err_extra_text_edition'); -- add error message
end
Edition = " " .. wrap_msg ('edition', Edition);
else
Edition = '';
end
Series = utilities.is_set (Series) and wrap_msg ('series', {sepc, Series}) or ""; -- not the same as SeriesNum
local Agency = A['Agency'] or ''; -- |agency= is supported by {{cite magazine}}, {{cite news}}, {{cite press release}}, {{cite web}}, and certain {{citation}} templates
if utilities.is_set (Agency) then -- this testing done here because {{citation}} supports 'news' citations
if utilities.in_array (config.CitationClass, {'magazine', 'news', 'pressrelease', 'web'}) or ('citation' == config.CitationClass and utilities.in_array (Periodical_origin, {"magazine", "newspaper", "work"})) then
Agency = wrap_msg ('agency', {sepc, Agency}); -- format for rendering
else
Agency = ''; -- unset; not supported
utilities.set_message ('err_parameter_ignored', {'agency'}); -- add error message
end
end
Volume = format_volume_issue (Volume, Issue, ArticleNumber, config.CitationClass, Periodical_origin, sepc, use_lowercase);
if utilities.is_set (AccessDate) then
local retrv_text = " " .. cfg.messages['retrieved'];
AccessDate = nowrap_date (AccessDate); -- wrap in nowrap span if date in appropriate format
retrv_text = cs2_lower(retrv_text); -- if mode is cs2, lower case
AccessDate = utilities.substitute (retrv_text, AccessDate); -- add retrieved text
AccessDate = utilities.substitute (cfg.presentation['accessdate'], {sepc, AccessDate}); -- allow editors to hide accessdates
end
if utilities.is_set (ID) then ID = sepc .. " " .. ID; end
local Docket = A['Docket'];
if "thesis" == config.CitationClass and utilities.is_set (Docket) then
ID = sepc .. " Docket " .. Docket .. ID;
end
if "report" == config.CitationClass and utilities.is_set (Docket) then -- for cite report when |docket= is set
ID = sepc .. ' ' .. Docket; -- overwrite ID even if |id= is set
end
if utilities.is_set (URL) then
URL = " " .. external_link( URL, nil, URL_origin, UrlAccess );
end
-- We check length of PostScript here because it will have been nuked by
-- the quote parameters. We'd otherwise emit a message even if there wasn't
-- a displayed postscript.
-- TODO: Should the max size (1) be configurable?
-- TODO: Should we check a specific pattern?
if utilities.is_set(PostScript) and mw.ustring.len(PostScript) > 1 then
utilities.set_message ('maint_postscript')
end
local Archived;
if utilities.is_set (ArchiveURL) then
if not utilities.is_set (ArchiveDate) then -- ArchiveURL set but ArchiveDate not set
--#Modified
utilities.set_message ('err_archive_missing_date', {A:ORIGIN('ArchiveURL')});
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
else
if utilities.is_set (ArchiveDate) then -- ArchiveURL not set but ArchiveDate is set
--#Modified
utilities.set_message ('err_archive_date_missing_url', {A:ORIGIN('ArchiveDate')}); -- emit an error message
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
end
if utilities.is_set (ArchiveURL) then
local arch_text;
if "live" == UrlStatus then
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cfg.messages['archived-live'],
{ external_link( ArchiveURL, cs2_lower(cfg.messages['archived']), A:ORIGIN('ArchiveURL'), nil) .. ArchiveFormat, ArchiveDate } );
else
Archived = '';
end
if not utilities.is_set (OriginalURL) then
--#Modified
utilities.set_message ('err_archive_missing_url', {A:ORIGIN('ArchiveURL')});
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (OriginalURL) then -- UrlStatus is empty, 'dead', 'unfit', 'usurped', 'bot: unknown'
if utilities.in_array (UrlStatus, {'unfit', 'usurped', 'bot: unknown'}) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-unfit']), ArchiveDate);
if 'bot: unknown' == UrlStatus then
utilities.set_message ('maint_bot_unknown'); -- and add a category if not already added
else
utilities.add_prop_cat ('unfit'); -- and add a category if not already added
end
else -- UrlStatus is empty, 'dead'
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-dead']),
{ external_link( OriginalURL, cfg.messages['original'], OriginalURL_origin, OriginalAccess ) .. OriginalFormat, ArchiveDate } );
else
Archived = ''; -- unset for concatenation
end
end
else -- OriginalUrl not set
--#Modified
utilities.set_message ('err_archive_missing_url', {A:ORIGIN('ArchiveURL')});
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (ArchiveFormat) then
Archived = ArchiveFormat; -- if set and ArchiveURL not set ArchiveFormat has error message
else
Archived = '';
end
local TranscriptURL = A['TranscriptURL']
local TranscriptFormat = A['TranscriptFormat'];
TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, 'transcript-format', 'transcripturl');
local Transcript = A['Transcript'];
local TranscriptURL_origin = A:ORIGIN('TranscriptURL'); -- get name of parameter that holds TranscriptURL
if utilities.is_set (Transcript) then
if utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, Transcript, TranscriptURL_origin, nil );
end
Transcript = sepc .. ' ' .. Transcript .. TranscriptFormat;
elseif utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, nil, TranscriptURL_origin, nil );
end
local Publisher;
if utilities.is_set (PublicationDate) then
PublicationDate = wrap_msg ('published', PublicationDate);
end
if utilities.is_set (PublisherName) then
if utilities.is_set (PublicationPlace) then
Publisher = sepc .. " " .. PublicationPlace .. ": " .. PublisherName .. PublicationDate;
else
Publisher = sepc .. " " .. PublisherName .. PublicationDate;
end
elseif utilities.is_set (PublicationPlace) then
Publisher= sepc .. " " .. PublicationPlace .. PublicationDate;
else
Publisher = PublicationDate;
end
-- Several of the above rely upon detecting this as nil, so do it last.
if (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical)) then
if utilities.is_set (Title) or utilities.is_set (TitleNote) then
Periodical = sepc .. " " .. format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
else
Periodical = format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
end
end
local Language = A['Language'];
if utilities.is_set (Language) then
Language = language_parameter (Language); -- format, categories, name from ISO639-1, etc.
else
Language=''; -- language not specified so make sure this is an empty string;
--[[ TODO: need to extract the wrap_msg from language_parameter
so that we can solve parentheses bunching problem with Format/Language/TitleType
]]
end
--[[
Handle the oddity that is cite speech. This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be " (Speech)" so that
the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).
]]
if "speech" == config.CitationClass then -- cite speech only
TitleNote = TitleType; -- move TitleType to TitleNote so that it renders ahead of |event=
TitleType = ''; -- and unset
if utilities.is_set (Periodical) then -- if Periodical, perhaps because of an included |website= or |journal= parameter
if utilities.is_set (Conference) then -- and if |event= is set
Conference = Conference .. sepc .. " "; -- then add appropriate punctuation to the end of the Conference variable before rendering
end
end
end
-- Piece all bits together at last. Here, all should be non-nil.
-- We build things this way because it is more efficient in LUA
-- not to keep reassigning to the same string variable over and over.
local tcommon;
local tcommon2; -- used for book cite when |contributor= is set
local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
-- Volume = safe_join ({Volume, pgtext}, sepc);
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (Periodical) then -- special cases for book cites
if utilities.is_set (Contributors) then -- when we are citing foreword, preface, introduction, etc.
tcommon = safe_join ({Title, TitleNote}, sepc); -- author and other stuff will come after this and before tcommon2
--#Mdified Arabic style make vol last
tcommon2 = safe_join({TitleType, Series, Language, Others, Edition, Publisher, Volume}, sepc);
else
--#Mdified Arabic style make vol last
tcommon = safe_join( {Title, TitleNote, TitleType, Series, Language, Others, Edition, Publisher, Volume}, sepc);
end
elseif 'map' == config.CitationClass then -- special cases for cite map
if utilities.is_set (Chapter) then -- map in a book; TitleType is part of Chapter
tcommon = safe_join ({Title, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
elseif utilities.is_set (Periodical) then -- map in a periodical
tcommon = safe_join ({Title, TitleType, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
else -- a sheet or stand-alone map
tcommon = safe_join ({Title, TitleType, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc);
end
elseif 'episode' == config.CitationClass then -- special case for cite episode
tcommon = safe_join ({Title, TitleNote, TitleType, Series, Language, Edition, Publisher}, sepc);
else -- all other CS1 templates
--#Mdified Arabic style make vol last
tcommon = safe_join ({Title, TitleNote, Conference, Periodical, TitleType, Series, Language, Others, Edition, Publisher, Agency, Volume}, sepc);
end
if #ID_list > 0 then
ID_list = safe_join( { sepc .. " ", table.concat( ID_list, sepc .. " " ), ID }, sepc );
else
ID_list = ID;
end
local Via = A['Via'];
Via = utilities.is_set (Via) and wrap_msg ('via', Via) or '';
local idcommon;
if 'audio-visual' == config.CitationClass or 'episode' == config.CitationClass then -- special case for cite AV media & cite episode position transcript
idcommon = safe_join( { ID_list, URL, Archived, Transcript, AccessDate, Via, Quote }, sepc );
else
idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, Quote }, sepc );
end
local text;
-- local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
--#Added block
if utilities.is_set (HijriDate) then
if not mw.ustring.match(HijriDate,'%d *هـ?$') then
HijriDate = HijriDate .. 'هـ'
end
if utilities.is_set (Date) then
Date = HijriDate .. ' – ' .. Date .. 'م'
else
Date = HijriDate
end
end
local OrigDate = A['OrigDate'];
OrigDate = utilities.is_set (OrigDate) and wrap_msg ('origdate', OrigDate) or '';
if utilities.is_set (Date) then
if utilities.is_set (Authors) or utilities.is_set (Editors) then -- date follows authors or editors when authors not set
Date = " (" .. Date .. ")" .. OrigDate .. sepc .. " "; -- in parentheses
else -- neither of authors and editors set
if (string.sub(tcommon, -1, -1) == sepc) then -- if the last character of tcommon is sepc
Date = " " .. Date .. OrigDate; -- Date does not begin with sepc
else
Date = sepc .. " " .. Date .. OrigDate; -- Date begins with sepc
end
end
end
if utilities.is_set (Authors) then
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Authors termination
Authors = terminate_name_list (Authors, sepc); -- when no date, terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Editors) then
local in_text = '';
local post_text = '';
if utilities.is_set (Chapter) and 0 == #c then
in_text = cfg.messages['in'] .. ' ';
in_text = cs2_lower(in_text); -- lowercase for cs2
end
if EditorCount <= 1 then
post_text = ' (' .. cfg.messages['editor'] .. ')'; -- be consistent with no-author, no-date case
else
post_text = ' (' .. cfg.messages['editors'] .. ')';
end
Editors = terminate_name_list (in_text .. Editors .. post_text, sepc); -- terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Contributors) then -- book cite and we're citing the intro, preface, etc.
local by_text = sepc .. ' ' .. cfg.messages['by'] .. ' ';
by_text = cs2_lower(by_text); -- lowercase for cs2
Authors = by_text .. Authors; -- author follows title so tweak it here
if utilities.is_set (Editors) and utilities.is_set (Date) then -- when Editors make sure that Authors gets terminated
Authors = terminate_name_list (Authors, sepc); -- terminate with 0 or 1 sepc and a space
end
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Contributors termination
Contributors = terminate_name_list (Contributors, sepc); -- terminate with 0 or 1 sepc and a space
end
text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );
-- text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, idcommon }, sepc );
else
text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );
-- text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, idcommon }, sepc );
end
elseif utilities.is_set (Editors) then
if utilities.is_set (Date) then
if EditorCount <= 1 then
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editor'];
else
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editors'];
end
else
if EditorCount <= 1 then
Editors = Editors .. " (" .. cfg.messages['editor'] .. ")" .. sepc .. " "
else
Editors = Editors .. " (" .. cfg.messages['editors'] .. ")" .. sepc .. " "
end
end
text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );
-- text = safe_join( {Editors, Date, Chapter, Place, tcommon, idcommon}, sepc );
else
if utilities.in_array (config.CitationClass, {"journal", "citation"}) and utilities.is_set (Periodical) then
text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
else
text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
end
end
if utilities.is_set (PostScript) and PostScript ~= sepc then
text = safe_join( {text, sepc}, sepc ); -- Deals with italics, spaces, etc.
if '.' == sepc then -- remove final seperator if present
text = text:gsub ('%' .. sepc .. '$', ''); -- dot must be escaped here
else
text = mw.ustring.gsub (text, sepc .. '$', ''); -- using ustring for non-dot sepc (likely a non-Latin character)
end
end
text = safe_join( {text, PostScript}, sepc );
-- Now enclose the whole thing in a <cite> element
local options_t = {};
options_t.class = cite_class_attribute_make (config.CitationClass, Mode);
local Ref = is_valid_parameter_value (A['Ref'], A:ORIGIN('Ref'), cfg.keywords_lists['ref'], nil, true); -- nil when |ref=harv; A['Ref'] else
--#Added Block auto add CITEREF
if Ref and mw.ustring.sub(Ref,1,7) ~= 'CITEREF' then
Ref = 'CITEREF' .. Ref
end
if 'none' ~= cfg.keywords_xlate[(Ref and Ref:lower()) or ''] then
local namelist_t = {}; -- holds selected contributor, author, editor name list
local year = first_set ({Year, anchor_year}, 2); -- Year first for legacy citations and for YMD dates that require disambiguation
if #c > 0 then -- if there is a contributor list
namelist_t = c; -- select it
elseif #a > 0 then -- or an author list
namelist_t = a;
elseif #e > 0 then -- or an editor list
namelist_t = e;
end
local citeref_id;
if #namelist_t > 0 then -- if there are names in namelist_t
citeref_id = make_citeref_id (namelist_t, year); -- go make the CITEREF anchor
if mw.uri.anchorEncode (citeref_id) == ((Ref and mw.uri.anchorEncode (Ref)) or '') then -- Ref may already be encoded (by {{sfnref}}) so citeref_id must be encoded before comparison
utilities.set_message ('maint_ref_duplicates_default');
end
else
citeref_id = ''; -- unset
end
options_t.id = Ref or citeref_id;
end
if string.len (text:gsub('%b<>', '')) <= 2 then -- remove html and html-like tags; then get length of what remains;
z.error_cats_t = {}; -- blank the categories list
z.error_msgs_t = {}; -- blank the error messages list
OCinSoutput = nil; -- blank the metadata string
text = ''; -- blank the the citation
utilities.set_message ('err_empty_citation'); -- set empty citation message and category
end
local render_t = {}; -- here we collect the final bits for concatenation into the rendered citation
if is_preview_mode and (0 ~= #z.error_msgs_t or 0 ~= #z.maint_cats_t) then -- when in preview mode
if not utilities.is_set (options_t.id) then -- and when this template has not created an anchor ID
math.randomseed (tonumber (mw.getLanguage ('en'):formatDate ('U')) * 10000 + os.clock() * 10000);
options_t.id = 'CITEREF_temp_preview_id_' .. math.random (100000, 999999); -- create temporary anchor ID for preview mode
end
end
if utilities.is_set (options_t.id) then -- here we wrap the rendered citation in <cite ...>...</cite> tags
options_t.id = mw.uri.anchorEncode(options_t.id); -- do this here; also used when adding preview warning messages
table.insert (render_t, utilities.substitute (cfg.presentation['cite-id'], {options_t.id, mw.text.nowiki(options_t.class), text})); -- when |ref= is set or when there is a namelist
else
table.insert (render_t, utilities.substitute (cfg.presentation['cite'], {mw.text.nowiki(options_t.class), text})); -- when |ref=none or when namelist_t empty and |ref= is missing or is empty
end
if OCinSoutput then -- blanked when citation is 'empty' so don't bother to add boilerplate metadata span
table.insert (render_t, utilities.substitute (cfg.presentation['ocins'], OCinSoutput)); -- format and append metadata to the citation
end
local template_name = cfg.citation_class_map_t[config.CitationClass];
local template_link = '[[قالب:' .. template_name .. '|' .. template_name .. ']]';
local msg_prefix = '<code class="cs1-code">{{' .. template_link .. '}}</code>: ';
if 0 ~= #z.error_msgs_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_e, {template_link, options_t.id}));
table.insert (render_t, ' '); -- insert a space between citation and its error messages
table.sort (z.error_msgs_t); -- sort the error messages list; sorting includes wrapping <span> and <code> tags; hidden-error sorts ahead of visible-error
local hidden = true; -- presume that the only error messages emited by this template are hidden
for _, v in ipairs (z.error_msgs_t) do -- spin through the list of error messages
if v:find ('cs1-visible-error', 1, true) then -- look for the visible error class name
hidden = false; -- found one; so don't hide the error message prefix
break; -- and done because no need to look further
end
end
z.error_msgs_t[1] = table.concat ({utilities.error_comment (msg_prefix, hidden), z.error_msgs_t[1]}); -- add error message prefix to first error message to prevent extraneous punctuation
--#Modified
table.insert (render_t, utilities.make_sep_error_list(#z.error_msgs_t, z.error_msgs_t)); -- make a big string of error messages and add it to the rendering
end
if 0 ~= #z.maint_cats_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_m, {template_link, options_t.id}));
table.sort (z.maint_cats_t); -- sort the maintenance messages list
local maint_msgs_t = {}; -- here we collect all of the maint messages
if 0 == #z.error_msgs_t then -- if no error messages
table.insert (maint_msgs_t, msg_prefix); -- insert message prefix in maint message livery
end
for _, v in ipairs( z.maint_cats_t ) do -- append maintenance categories
table.insert (maint_msgs_t, -- assemble new maint message and add it to the maint_msgs_t table
table.concat ({v, ' (', utilities.substitute (cfg.messages[':cat wikilink'], v), ')'})
);
end
table.insert (render_t, utilities.substitute (cfg.presentation['hidden-maint'], table.concat (maint_msgs_t, ' '))); -- wrap the group of maint messages with proper presentation and save
end
if not no_tracking_cats then
local sort_key;
local cat_wikilink = 'cat wikilink';
if cfg.enable_sort_keys then -- when namespace sort keys enabled
local namespace_number = mw.title.getCurrentTitle().namespace; -- get namespace number for this wikitext
sort_key = (0 ~= namespace_number and (cfg.name_space_sort_keys[namespace_number] or cfg.name_space_sort_keys.other)) or nil; -- get sort key character; nil for mainspace
cat_wikilink = (not sort_key and 'cat wikilink') or 'cat wikilink sk'; -- make <cfg.messages> key
end
for _, v in ipairs (z.error_cats_t) do -- append error categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
if cfg.id_limits_data_load_fail then -- boolean true when load failed
utilities.set_message ('maint_id_limit_load_fail'); -- done here because this maint cat emits no message
end
for _, v in ipairs (z.maint_cats_t) do -- append maintenance categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
for _, v in ipairs (z.prop_cats_t) do -- append properties categories
table.insert (render_t, utilities.substitute (cfg.messages['cat wikilink'], v)); -- no sort keys
end
end
return table.concat (render_t); -- make a big string and done
end
--[[--------------------------< V A L I D A T E >--------------------------------------------------------------
Looks for a parameter's name in one of several whitelists.
Parameters in the whitelist can have three values:
true - active, supported parameters
false - deprecated, supported parameters
nil - unsupported parameters
]]
local function validate (name, cite_class, empty)
local name = tostring (name);
local enum_name; -- parameter name with enumerator (if any) replaced with '#'
local state;
local function state_test (state, name) -- local function to do testing of state values
if true == state then return true; end -- valid actively supported parameter
if false == state then
if empty then return nil; end -- empty deprecated parameters are treated as unknowns
deprecated_parameter (name); -- parameter is deprecated but still supported
return true;
end
if 'tracked' == state then
local base_name = name:gsub ('%d', ''); -- strip enumerators from parameter names that have them to get the base name
utilities.add_prop_cat ('tracked-param', {base_name}, base_name); -- add a properties category; <base_name> modifies <key>
return true;
end
return nil;
end
if name:find ('#') then -- # is a cs1|2 reserved character so parameters with # not permitted
return nil;
end
-- replace enumerator digit(s) with # (|last25= becomes |last#=) (mw.ustring because non-Western 'local' digits)
enum_name = mw.ustring.gsub (name, '%d+$', '#'); -- where enumerator is last charaters in parameter name (these to protect |s2cid=)
enum_name = mw.ustring.gsub (enum_name, '%d+([%-l])', '#%1'); -- where enumerator is in the middle of the parameter name; |author#link= is the oddity
if 'document' == cite_class then -- special case for {{cite document}}
state = whitelist.document_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false;
end
if utilities.in_array (cite_class, whitelist.preprint_template_list_t) then -- limited parameter sets allowed for these templates
state = whitelist.limited_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
state = whitelist.preprint_arguments_t[cite_class][name]; -- look in the parameter-list for the template identified by cite_class
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end -- end limited parameter-set templates
if utilities.in_array (cite_class, whitelist.unique_param_template_list_t) then -- template-specific parameters for templates that accept parameters from the basic argument list
state = whitelist.unique_arguments_t[cite_class][name]; -- look in the template-specific parameter-lists for the template identified by cite_class
if true == state_test (state, name) then return true; end
end -- if here, fall into general validation
state = whitelist.common_parameters_t[enum_name]; -- all other templates; all normal parameters allowed; this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end
--[=[-------------------------< I N T E R _ W I K I _ C H E C K >----------------------------------------------
check <value> for inter-language interwiki-link markup. <prefix> must be a MediaWiki-recognized language
code. when these values have the form (without leading colon):
[[<prefix>:link|label]] return label as plain-text
[[<prefix>:link]] return <prefix>:link as plain-text
return value as is else
]=]
local function inter_wiki_check (parameter, value)
local prefix = value:match ('%[%[(%a+):'); -- get an interwiki prefix if one exists
local _;
if prefix and cfg.inter_wiki_map[prefix:lower()] then -- if prefix is in the map, needs preceding colon so
utilities.set_message ('err_bad_paramlink', parameter); -- emit an error message
_, value, _ = utilities.is_wikilink (value); -- extract label portion from wikilink
end
return value;
end
--[[--------------------------< M I S S I N G _ P I P E _ C H E C K >------------------------------------------
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal
sign, compare the alphanumeric string to the list of cs1|2 parameters. If found, then the string is possibly a
parameter that is missing its pipe. There are two tests made:
{{cite ... |title=Title access-date=2016-03-17}} -- the first parameter has a value and whitespace separates that value from the missing pipe parameter name
{{cite ... |title=access-date=2016-03-17}} -- the first parameter has no value (whitespace after the first = is trimmed by MediaWiki)
cs1|2 shares some parameter names with XML/HTML attributes: class=, title=, etc. To prevent false positives XML/HTML
tags are removed before the search.
If a missing pipe is detected, this function adds the missing pipe maintenance category.
]]
local function missing_pipe_check (parameter, value)
local capture;
value = value:gsub ('%b<>', ''); -- remove XML/HTML tags because attributes: class=, title=, etc.
capture = value:match ('%s+(%a[%w%-]+)%s*=') or value:match ('^(%a[%w%-]+)%s*='); -- find and categorize parameters with possible missing pipes
if capture and validate (capture) then -- if the capture is a valid parameter name
utilities.set_message ('err_missing_pipe', parameter);
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ P U N C T >--------------------------------------
look for extraneous terminal punctuation in most parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_punc (param, value)
if 'number' == type (param) then
return;
end
param = param:gsub ('%d+', '#'); -- enumerated name-list mask params allow terminal punct; normalize
if cfg.punct_skip[param] then
return; -- parameter name found in the skip table so done
end
if value:match ('[,;:]$') then
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
if value:match ('^=') then -- sometimes an extraneous '=' character appears ...
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
end
--[[--------------------------< H A S _ T W L _ U R L >--------------------------------------------------------
look for The Wikipedia Library urls in url-holding parameters. TWL urls are accessible only for readers who are
active extended confirmed Wikipedia editors. This function sets an error message when such urls are discovered
and when appropriate, sets the |<param>-url-access=subscription. returns nothing.
looks for: '.wikipedialibrary.idm.oclc.org'
]]
local function has_twl_url (url_params_t, cite_args_t)
local url_error_t = {}; -- sequence of url-holding parameters that have a TWL url
for param, value in pairs (url_params_t) do
if value:find ('%.wikipedialibrary%.idm%.oclc%.org') then -- has the TWL base url?
table.insert (url_error_t, param); -- add parameter name to the error list
end
end
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t); -- sor for error messaging
for i, param in ipairs (url_error_t) do
if cfg.url_access_map_t[param] then -- if <param> has a matching -access parameter
cite_args_t[cfg.url_access_map_t[param]] = cfg.keywords_xlate.subscription; -- set |<param>-url-access=subscription
end
url_error_t[i] = utilities.wrap_style ('parameter', param); -- make the parameter pretty for error message
end
utilities.set_message ('err_param_has_twl_url', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ U R L >------------------------------------------
look for extraneous url parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_url (non_url_param_t)
local url_error_t = {};
check_for_url (non_url_param_t, url_error_t); -- extraneous url check
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t);
utilities.set_message ('err_param_has_ext_link', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< _ C I T A T I O N >------------------------------------------------------------
Module entry point
frame – from template call (citation()); may be nil when called from another module
args_t – table of all cs1|2 parameters in the template (the parent frame)
config_t – table of template-supplied parameter (the #invoke frame)
]]
local function _citation (frame, args_t, config_t) -- save a copy in case we need to display an error message in preview mode
if not frame then
frame = mw.getCurrentFrame(); -- if called from another module, get a frame for frame-provided functions
end
-- i18n: set the name that your wiki uses to identify sandbox subpages from sandbox template invoke (or can be set here)
--#Modified line
local sandbox = ((config_t.SandboxPath and '' ~= config_t.SandboxPath) and config_t.SandboxPath) or '/ملعب'; -- sandbox path from {{#invoke:Citation/CS1/sandbox|citation|SandboxPath=/...}}
is_sandbox = nil ~= string.find (frame:getTitle(), sandbox, 1, true); -- is this invoke the sandbox module?
sandbox = is_sandbox and sandbox or ''; -- use i18n sandbox to load sandbox modules when this module is the sandox; live modules else
--#Added for ltr
local tmp_cfg;
tmp_cfg = mw.loadData ('Module:Citation/CS1/Configuration' .. sandbox); -- load sandbox versions of support modules when {{#invoke:Citation/CS1/sandbox|...}}; live modules else
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist' .. sandbox);
utilities = require ('Module:Citation/CS1/Utilities' .. sandbox);
validation = require ('Module:Citation/CS1/Date_validation' .. sandbox);
identifiers = require ('Module:Citation/CS1/Identifiers' .. sandbox);
metadata = require ('Module:Citation/CS1/COinS' .. sandbox);
--#Added block for ltr
for k,v in pairs(tmp_cfg) do
cfg[k] = v
end
utilities.set_selected_modules (cfg); -- so that functions in Utilities can see the selected cfg tables
identifiers.set_selected_modules (cfg, utilities); -- so that functions in Identifiers can see the selected cfg tables and selected Utilities module
validation.set_selected_modules (cfg, utilities); -- so that functions in Date validataion can see selected cfg tables and the selected Utilities module
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module
z = utilities.z; -- table of error and category tables in Module:Citation/CS1/Utilities
local cite_args_t = {}; -- because args_t is the parent (template) frame args (which cannot be modified); params and their values will be placed here
is_preview_mode = not utilities.is_set (frame:preprocess ('{{REVISIONID}}'));
local suggestions = {}; -- table where we store suggestions if we need to loadData them
local error_text; -- used as a flag
--#Added block for filtering some parameters
if args_t['wikidatacite'] == '1' then
wikidatacite = true
args_t['wikidatacite'] = nil
end
---------------------
--#Added block for ltr
local ch_lang = args_t['اللغة'] or args_t['لغة'] or args_t['language'] or args_t['lang']
--# Added by Mr. Ibrahem to stop ltr formatting
local no_ltr = args_t['noltr']
if ch_lang and ch_lang ~= '' and no_ltr == nil then
local isltr = true
local rtl_lang = {
'ar', 'العربية', 'arabic',
'fa', 'الفارسية', 'persian',
'ur', 'urdu', 'الأردية',
'ku', 'kurdish', 'الكردية',
'he', 'hebrew',
'arc', 'aramaic',
'dv', 'divehi',
'ha', 'hausa',
'khw', 'khowar',
'ks', 'kashmiri',
'ps', 'pashto',
'yi', 'yiddish',
'ota', -- تركية عثمانية
}
local ch_langs = mw.text.split(ch_lang, '[,، ]')
for k, v in pairs(ch_langs) do
for k2, v2 in pairs(rtl_lang) do
if (mw.ustring.lower(v) == v2) then
isltr = false
break
end
end
if (not isltr) then break end
end
if isltr then
local cfg2
cfg2 = mw.loadData('Module:Citation/CS1/Configuration ltr' .. sandbox);
for k, v in pairs(cfg2) do
cfg[k] = v
end
end
end
----------------------
local capture; -- the single supported capture when matching unknown parameters using patterns
local empty_unknowns = {}; -- sequence table to hold empty unknown params for error message listing
for k, v in pairs (args_t) do -- get parameters from the parent (template) frame
v = mw.ustring.gsub (v, '^%s*(.-)%s*$', '%1'); -- trim leading/trailing whitespace; when v is only whitespace, becomes empty string
if v ~= '' then
if cfg.enum_needs_xlation and 'string' == type (k) then -- for wikis that set date_names['local_digits'] to non-western digits
k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- translate 'local' digits enumerators to Western 0-9
end
if not validate( k, config_t.CitationClass ) then
if type (k) ~= 'string' then -- exclude empty numbered parameters
if v:match("%S+") ~= nil then
error_text = utilities.set_message ('err_text_ignored', {v});
end
elseif validate (k:lower(), config_t.CitationClass) then
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, k:lower()}); -- suggest the lowercase version of the parameter
else
if nil == suggestions.suggestions then -- if this table is nil then we need to load it
suggestions = mw.loadData ('Module:Citation/CS1/Suggestions' .. sandbox); --load sandbox version of suggestion module when {{#invoke:Citation/CS1/sandbox|...}}; live module else
end
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter
capture = k:match (pattern); -- the whole match if no capture in pattern else the capture if a match
if capture then -- if the pattern matches
param = utilities.substitute (param, capture); -- add the capture to the suggested parameter (typically the enumerator)
if validate (param, config_t.CitationClass) then -- validate the suggestion to make sure that the suggestion is supported by this template (necessary for limited parameter lists)
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, param}); -- set the suggestion error message
else
error_text = utilities.set_message ('err_parameter_ignored', {k}); -- suggested param not supported by this template
v = ''; -- unset
end
end
end
if not utilities.is_set (error_text) then -- couldn't match with a pattern, is there an explicit suggestion?
if (suggestions.suggestions[ k:lower() ] ~= nil) and validate (suggestions.suggestions[ k:lower() ], config_t.CitationClass) then
utilities.set_message ('err_parameter_ignored_suggest', {k, suggestions.suggestions[ k:lower() ]});
else
utilities.set_message ('err_parameter_ignored', {k});
v = ''; -- unset value assigned to unrecognized parameters (this for the limited parameter lists)
end
end
end
end
cite_args_t[k] = v; -- save this parameter and its value
elseif not utilities.is_set (v) then -- for empty parameters
if not validate (k, config_t.CitationClass, true) then -- is this empty parameter a valid parameter
k = ('' == k) and cfg.err_msg_supl.empty_str or k; -- when k is empty string (or was space(s) trimmed to empty string), replace with descriptive text
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
end
end
end
if 0 ~= #empty_unknowns then -- create empty unknown error message
utilities.set_message ('err_param_unknown_empty', {
1 == #empty_unknowns and '' or 's',
utilities.make_sep_list (#empty_unknowns, empty_unknowns)
});
end
local non_url_param_t = {}; -- table of parameters and values that are not url-holding parameters
local url_param_t = {}; -- table of url-holding paramters and their values
for k, v in pairs (cite_args_t) do
if 'string' == type (k) then -- don't evaluate positional parameters
has_invisible_chars (k, v); -- look for invisible characters
end
has_extraneous_punc (k, v); -- look for extraneous terminal punctuation in parameter values
missing_pipe_check (k, v); -- do we think that there is a parameter that is missing a pipe?
cite_args_t[k] = inter_wiki_check (k, v); -- when language interwiki-linked parameter missing leading colon replace with wiki-link label
if 'string' == type (k) then -- when parameter k is not positional
if not cfg.url_skip[k] then -- and not in url skip table
non_url_param_t[k] = v; -- make a parameter/value list for extraneous url check
else -- and is in url skip table (a url-holding parameter)
url_param_t[k] = v; -- make a parameter/value list to check for values that are The Wikipedia Library url
end
end
end
if cfg.suppress_archive_today_urls then
has_archive_today_url (cite_args_t); -- look for and suppress archive.today urls and dependent parameters for all templates
end
has_extraneous_url (non_url_param_t); -- look for url in parameter values where a url does not belong
has_twl_url (url_param_t, cite_args_t); -- look for url-holding parameters that hold a The Wikipedia Library url
return table.concat ({
frame:extensionTag ('templatestyles', '', {src='Module:Citation/CS1' .. sandbox .. '/styles.css'}),
citation0 (config_t, cite_args_t)
});
end
--[[--------------------------< C I T A T I O N >--------------------------------------------------------------
Template entry point
]]
local function citation (frame)
local config_t = {}; -- table to store parameters from the module {{#invoke:}}
local args_t = frame:getParent().args; -- get template's preset parameters
for k, v in pairs (frame.args) do -- get parameters from the {{#invoke}} frame
config_t[k] = v;
-- args_t[k] = v; -- crude debug support that allows us to render a citation from module {{#invoke:}}; skips parameter validation; TODO: keep?
end
return _citation (frame, args_t, config_t)
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
citation = citation, -- template entry point
_citation = _citation, -- module entry point
}
9p0251m5n4ty49ymeozozlcx9pzy0bm
وحدة:Citation/CS1/dates
828
40417
275414
87613
2026-09-15T08:58:07Z
حبيشان
29714
استيراد من ar.wiktionary.org
275414
Scribunto
text/plain
local p = {}
match_tab_n = {
["^%a+ %d%d%, %d%d%d%d$"] ="(%a+) (%d%d)%, (%d%d%d%d)",
}
match_tab = {
--["^[1-9]%d? +%a+ +[1-9]%d%d%d%a?$"] ="(%d%d*)%s*(%a+)%s*((%d%d%d%d)%a?)",
["^%d %a+ %d%d%d%d$"] ="(%d) (%a+) (%d%d%d%d)",
["^%d%d %a+ %d%d%d%d$"] ="(%d%d) (%a+) (%d%d%d%d)",
['^%d %d %d%d%d%d$']= '(%d) (%d) (%d%d%d%d)',
['^%d %d%d %d%d%d%d$']= '(%d) (%d%d) (%d%d%d%d)',
['^%d%d %d %d%d%d%d$']= '(%d%d) (%d) (%d%d%d%d)',
['^%d%d %d%d %d%d%d%d$']= '(%d%d) (%d%d) (%d%d%d%d)',
['^%d%-%d%-%d%d%d%d$']= '(%d)%-(%d)%-(%d%d%d%d)',
['^%d%-%d%d%-%d%d%d%d$']= '(%d)%-(%d%d)%-(%d%d%d%d)',
['^%d%d%-%d%-%d%d%d%d$']= '(%d%d)%-(%d)%-(%d%d%d%d)',
['^%d%d%-%d%d%-%d%d%d%d$']= '(%d%d)%-(%d%d)%-(%d%d%d%d)',
}
match_tab_en = {
['^%d%d%d%d %d %d$']= '(%d%d%d%d) (%d) (%d)$',
['^%d%d%d%d %d %d%d$']= '(%d%d%d%d) (%d) (%d%d)$',
['^%d%d%d%d %d%d %d$']= '(%d%d%d%d) (%d%d) (%d)$',
['^%d%d%d%d %d%d %d%d$']= '(%d%d%d%d) (%d%d) (%d%d)$',
['^%d%d%d%d%-%d%-%d$']= '(%d%d%d%d)%-(%d)%-(%d)$',
['^%d%d%d%d%-%d%-%d%d$']= '(%d%d%d%d)%-(%d)%-(%d%d)$',
['^%d%d%d%d%-%d%d%-%d$']= '(%d%d%d%d)%-(%d%d)%-(%d)$',
['^%d%d%d%d%-%d%d%-%d%d$']= '(%d%d%d%d)%-(%d%d)%-(%d%d)$',
}
--[[
tato = {"%d" , "%d%d"}
spaces = {" " , "%-"}
for _p, space in pairs(spaces) do
for o, k1 in ipairs(tato) do
for _, k2 in ipairs(tato) do
s_k = "^" .. k1 .. space .. k2 .. space .. "%d%d%d%d$"
s_v = "(" .. k1 .. ")".. space .. "(" .. k2 .. ")".. space .. "(" .. "%d%d%d%d)"
match_tab[s_k] = s_v
--mw.log("['" .. s_k .. "']= '" .. s_v .. "'")
s_k1 = "^%d%d%d%d" .. space .. k1 .. space .. k2 .. "$"
s_v1 = "(%d%d%d%d)" .. space .. "(" .. k1 .. ")".. space .. "(" .. k2 .. ")$"
match_tab_en[s_k1] = s_v1
--mw.log("['" .. s_k1 .. "']= '" .. s_v1 .. "'")
end
end
end
]]
local function get_month_number(month)
month2 = month:lower()
local long_months = {['january']=1, ['february']=2, ['march']=3, ['april']=4, ['may']=5, ['june']=6, ['july']=7, ['august']=8, ['september']=9, ['october']=10, ['november']=11, ['december']=12,
['يناير']=1, ['فبراير']=2, ['مارس']=3, ['أبريل']=4, ['مايو']=5, ['يونيو']=6, ['يوليو']=7, ['أغسطس']=8, ['سبتمبر']=9, ['أكتوبر']=10, ['نوفمبر']=11, ['ديسمبر']=12 };
local short_months = {['jan']=1, ['feb']=2, ['mar']=3, ['apr']=4, ['may']=5, ['jun']=6, ['jul']=7, ['aug']=8, ['sep']=9, ['oct']=10, ['nov']=11, ['dec']=12};
return long_months[month2] or -- if month is the long-form name
short_months[month2] or -- if month is the short-form name
0; -- misspelled, improper case, or not a month name
end
function p.check_date (date_string)
local year;
local month=0;
local day=0;
local faild = true;
local date_string2 = date_string
local day , month , year
--match_tab_en
date_string = date_string:gsub('Mars' , 'march')
if string.find(date_string,"[ا|أ|ب|ت|ث|ج|ح|خ|د|ذ|ر|ز|س|ش|ص|ض|ط|ظ|ع|غ|ف|ق|ك|ل|م|ن|ه|و|ي]")
--then date_string2 = date_string
then return date_string
else
for key, v in pairs(match_tab_n) do
if date_string:match( key ) and faild then
faild = false
month, day, year = string.match(date_string, v );
end
end
for key, v in pairs(match_tab) do
if date_string:match( key ) and faild then
faild = false
day, month, year = string.match(date_string, v );
end
end
for key, v in pairs(match_tab_en) do
if date_string:match( key ) and faild then
faild = false
year, month, day = string.match(date_string, v );
end
end
end
fa = date_string2
--if faild then
--mw.log(date_string .. " faild")
if not faild then
if month:match("%a+") then
month = get_month_number(month)
end
date_string2 = day .. "-" .. month .. "-" .. year
--mw.log("day" .. day .. ", month" .. month .. ", year" .. year)
if 12 < tonumber(month) or 31 < tonumber(month) or 1 > tonumber(month) or 1582 > tonumber(year) or 0 == tonumber(day)
then
--mw.log(date_string .. " false")
return date_string
end
--fa = '{{#time:d F Y|' .. date_string .. '}}'
fa = mw.getCurrentFrame():callParserFunction( '#time:d F Y', '' .. date_string2 .. '' )
end
--cp = "* " .. date_string .. " : \n**" .. fa
return fa
end
function p.check (frame)
return p.check_date(frame.args[1])
end
return p
lp31iefp3r7hh2p8jmfnttdip3znx4m
وحدة:Citation/CS1/Configuration
828
40418
275393
241760
2026-09-15T08:56:55Z
حبيشان
29714
استيراد من ar.wiktionary.org
275393
Scribunto
text/plain
local lang_obj = mw.language.getContentLanguage(); -- make a language object for the local language; used here for languages and dates
--[[--------------------------< S E T T I N G S >--------------------------------------------------------------
boolean settings used to control various things. these setting located here to make them easy to find
]]
-- these settings local to this module only
local local_digits_from_mediawiki = false; -- for i18n; when true, module fills date_names['local_digits'] from MediaWiki; manual fill required else; always false at en.wiki
local local_date_names_from_mediawiki = false; -- for i18n; when true, module fills date_names['local']['long'] and date_names['local']['short'] from MediaWiki;
-- manual translation required else; ; always false at en.wiki
-- these settings exported to other modules
local use_identifier_redirects = false; -- when true use redirect name for identifier label links; always true at en.wiki
local local_lang_cat_enable = false; -- when true categorizes pages where |language=<local wiki's language>; always false at en.wiki
local date_name_auto_xlate_enable = false; -- when true translates English month-names to the local-wiki's language month names; always false at en.wiki
local date_digit_auto_xlate_enable = false; -- when true translates Western date digit to the local-wiki's language digits (date_names['local_digits']); always false at en.wiki
local enable_sort_keys = true; -- when true module adds namespace sort keys to error and maintenance category links
local suppress_archive_today_urls = true; -- when true module suppresses all parameters with an archive.today url and any deprendent parameters
--[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------
قائمة النطاقات التي لا ينبغي أن تدرج فيها تصانيف تتبع أخطاء الاستشهادات
هي بالضبط كما تضع notracking = true
ملاحظة: يجب استخدام (_) بدلا من المسافات في أسماء النطاقات.
]]
local uncategorized_namespaces_t = {[2]=true}; -- init with user namespace id
for k, _ in pairs (mw.site.talkNamespaces) do -- add all talk namespace ids
uncategorized_namespaces_t[k] = true;
end
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', '/[Aa]rchive', '/ملعب', '/مختبر'} -- list of Lua patterns found in page names of pages we should not categorize
--[[
at en.wiki Greek characters are used as sort keys for certain items in a category so that those items are
placed at the end of a category page. See Wikipedia:Categorization#Sort_keys. That works well for en.wiki
because English is written using the Latn script. This may not work well for other languages. At en.wiki it
is desireable to place content from certain namespaces at the end of a category listing so the module adds sort
keys to error and maintenance category links when rendering a cs1|2 template on a page in that namespace.
i18n: if this does not work well for your language, set <enable_sort_keys> to false.
]]
local name_space_sort_keys = { -- sort keys to be used with these namespaces:
[4] = 'ω', -- wikipedia; omega
[10] = 'τ', -- template; tau
[118] = 'Δ', -- draft; delta
['other'] = 'ο', -- all other non-talk namespaces except main (article); omicron
}
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
local messages = {
['agency'] = '$1 $2', -- $1 is sepc, $2 is agency
['archived-dead'] = 'مؤرشف من $1 في $2',
['archived-live'] = '$1 من الأصل في $2',
['archived-unfit'] = 'مؤرشف من الأصل في ',
['archived'] = 'مؤرشف',
['by'] = 'بواسطة', -- contributions to authored works: introduction, foreword, afterword
['cartography'] = 'رسم الخرائط من $1',
['editor'] = 'المحرر',
['editors'] = 'المحررون',
['edition'] = '(ط. $1)',
['episode'] = 'حلقة $1',
['et al'] = 'وآخرون',
['in'] = 'في', -- edited works
['inactive'] = ' ($1 غير نشط)', -- $1 is date which the doi was found to be broken in
['inset'] = '$1 inset',
['interview'] = 'مقابلة مع $1',
invisible_1 = '$1 $2', -- $1 stripmarker name; $2 is text from <invisible_chars[1]>
invisible_2 = 'الحرف $1', -- $1 character name from <invisible_chars[1]>
['mismatch'] = '<code class="cs1-code">|$1=</code> لا يطابق <code class="cs1-code">|$2=</code>', -- $1 is year param name; $2 is date param name
['newsgroup'] = 'نيوز جروب: $1',
['notitle'] = 'No title', -- for |title=(()) and (in the future) |title=none
['original'] = 'الأصل',
['origdate'] = ' [$1]',
['published'] = ' (نُشِر في $1)',
['retrieved'] = 'اطلع عليه بتاريخ $1',
['season'] = 'موسم $1',
['section'] = 'قسم $1',
['sections'] = 'الأقسام $1',
['series'] = '$1 $2', -- $1 is sepc, $2 is series
['seriesnum'] = 'سلسلة $1',
['translated'] = 'ترجمة: $1',
['type'] = ' ($1)', -- for titletype
wikidata = 'ويكي بيانات', -- these used for interwikilinked author/editor/... names
wikipedia = 'ويكيبيديا',
wikisource = 'ويكي مصدر',
['written'] = 'كتب في $1',
['vol'] = '$1 ج. $2', -- $1 is sepc; bold journal style volume is in presentation{}
['vol-no'] = '$1 ج. $2 رقم $3', -- sepc, volume, issue (alternatively insert $1 after $2, but then we'd also have to change capitalization)
['issue'] = '$1 ع. $2', -- $1 is sepc
['art'] = '$1 المقال $2', -- $1 is sepc; for {{cite conference}} only
['vol-art'] = '$1 ع. $2, المقال $3', -- sepc, volume, article-number; for {{cite conference}} only
['j-vol'] = '$1 $2', -- sepc, volume; bold journal volume is in presentation{}
['j-issue'] = ' ع. $1',
['j-article-num'] = ' $1', -- TODO: any punctuation here? static text?
['nopp'] = '$1 $2', -- page(s) without prefix; $1 is sepc
['p-prefix'] = '$1 ص. $2', -- $1 is sepc
['pp-prefix'] = '$1 ص. $2', -- $1 is sepc
['j-page(s)'] = ': $1', -- same for page and pages
['sheet'] = '$1 ورقة $2', -- $1 is sepc
['sheets'] = '$1 أوراق $2', -- $1 is sepc
['j-sheet'] = ': ورقة $1',
['j-sheets'] = ': أوراق $1',
['language'] = '(ب$1)',
['via'] = ' – عبر $1',
['event'] = 'وقع ذلك في',
['minutes'] = '$1 دقيقة في', -- $1 is the number of minutes
-- Determines the location of the help page
['help page link'] = 'مساعدة:أخطاء الاستشهاد',
['help page label'] = 'مساعدة',
-- categories
['cat wikilink'] = '[[تصنيف:$1]]', -- $1 is the category name
['cat wikilink sk'] = '[[تصنيف:$1|$2]]', -- $1 is the category name; $2 is namespace sort key
[':cat wikilink'] = '[[:تصنيف:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'اتصال مع حالة خطأ غير معروف',
["unknown_date"] = '<abbr class="abbr" title="دون تاريخ">د.ت.</abbr>',
['unknown_ID_key'] = 'Unrecognized ID key: ', -- an ID key in id_handlers not found in ~/Identifiers func_map{}
['unknown_ID_access'] = 'Unrecognized ID access keyword: ', -- an ID access keyword in id_handlers not found in keywords_lists['id-access']{}
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] به أخطاء</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).', -- $1 is template link; $2 is anchor ID
['warning_msg_m'] = '<span style="color:#085"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] بحاجة لصيانة</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).' -- $1 is template link; $2 is anchor ID
}
--[[--------------------------< C I T A T I O N _ C L A S S _ M A P >------------------------------------------
this table maps the value assigned to |CitationClass= in the cs1|2 templates to the canonical template name when
the value assigned to |CitationClass= is different from the canonical template name. |CitationClass= values are
used as class attributes in the <cite> tag that encloses the citation so these names may not contain spaces while
the canonical template name may. These names are used in warning_msg_e and warning_msg_m to create links to the
template's documentation when an article is displayed in preview mode.
]]
local citation_class_map_t = { -- TODO: in Module:Cite/config write a function to use this table
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 = 'استشهاد بويب',
}
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This table provides Lua patterns for the phrase "et al" and variants in name text
(author, editor, etc.). The main module uses these to identify and emit the 'etal' message.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
"%[%[ *[Ee][Tt]%.? *[Aa][Ll]%.? *%]%]", -- a wikilinked form
"%(%( *[Ee][Tt]%.? *[Aa][Ll]%.? *%)%)", -- a double-bracketed form (to counter partial removal of ((...)) syntax)
"[%(%[] *[Ee][Tt]%.? *[Aa][Ll]%.? *[%)%]]", -- a bracketed form
}
--[[--------------------------< P R E S E N T A T I O N >------------------------
Fixed presentation markup. Originally part of citation_config.messages it has
been moved into its own, more semantically correct place.
]]
local presentation =
{
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
['hidden-error'] = '<span class="cs1-hidden-error citation-comment">$1</span>',
['visible-error'] = '<span class="cs1-visible-error citation-comment">$1</span>',
['hidden-maint'] = '<span class="cs1-maint citation-comment">$1</span>',
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal CSS
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['cite'] = '<cite class="$1">$2</cite>', -- for use when citation does not have a namelist and |ref= not set so no id="..." attribute
['cite-id'] = '<cite id="$1" class="$2">$3</cite>', -- for use when when |ref= is set or when citation has a namelist
['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['interwiki'] = ' <span class="cs1-format">[ب$1]</span>', -- for interwiki-language-linked author, editor, etc
['interproj'] = ' <span class="cs1-format">[في $1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- narrow no-break space   may work better than nowrap CSS. Or not? Browser support?
['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon
['free'] = {class='id-lock-free', title='يمكن الوصول إليها بحرية'}, -- classes defined in Module:Citation/CS1/styles.css
['registration'] = {class='id-lock-registration', title='يمكن التسجيل مجانًا'},
['limited'] = {class='id-lock-limited', title='الوصول المجاني محدود، وعادة ما يتطلب الاشتراك'},
['subscription'] = {class='id-lock-subscription', title='يتطلب اشتراك مدفوع'},
['interwiki-icon'] = '<span class="$1" title="$2">$3</span>',
['class-wikisource'] = 'cs1-ws-icon',
['italic-title'] = "''$1''",
['kern-left'] = '<span class="cs1-kern-left"></span>$1', -- spacing to use when title contains leading single or double quote mark
['kern-right'] = '$1<span class="cs1-kern-right"></span>', -- spacing to use when title contains trailing single or double quote mark
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)
['ocins'] = '<span title="$1" class="Z3988"></span>',
['parameter'] = '<code class="cs1-code">|$1=</code>',
['ps_cs1'] = '.', -- CS1 style postscript (terminal) character
['ps_cs2'] = '', -- CS2 style postscript (terminal) character (empty string)
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content
['quoted-title'] = '"$1"',
['sep_cs1'] = '.', -- CS1 element separator
['sep_cs2'] = '،', -- CS2 separator
['sep_nl'] = '؛', -- CS1|2 style name-list separator between names is a semicolon
['sep_nl_and'] = ' و ', -- used as last nl sep when |name-list-style=and and list has 2 items
['sep_nl_end'] = '؛ و ', -- used as last nl sep when |name-list-style=and and list has 3+ names
['sep_name'] = '، ', -- CS1|2 style last/first separator is <comma><space>
['sep_nl_vanc'] = '،', -- Vancouver style name-list separator between authors is a comma
['sep_name_vanc'] = ' ', -- Vancouver style last/first separator is a space
['sep_list'] = '، ', -- used for |language= when list has 3+ items except for last sep which uses sep_list_end
['sep_list_pair'] = ' و', -- used for |language= when list has 2 items
['sep_list_end'] = '، و', -- used as last list sep for |language= when list has 3+ items
['trans-italic-title'] = "[''$1'']",
['trans-quoted-title'] = '[$1]', -- for |trans-title= and |trans-quote=
['vol-bold'] = '$1 ج. $2', -- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}
}
--[[--------------------------< A L I A S E S >---------------------------------
جدول الوسائط البديلة أو المكررة لنفس الوسيط الأساسي.
Parameter names on the right side in the assignments in this table must have been
defined in the Whitelist before they will be recognized as valid parameter names
]]
local aliases = {
['AccessDate'] = {'تاريخ-الوصول','تاريخ الوصول', 'تاريخ وصول', 'access-date', 'accessdate'}, -- Used by InternetArchiveBot
['Agency'] = {'وكالة', 'agency'},
['ArchiveDate'] = {'تاريخ-الأرشيف', 'تاريخ أرشيف', 'تاريخ الأرشيف', 'archive-date', 'archivedate'}, -- Used by InternetArchiveBot
['ArchiveFormat'] = {'صيغة-الأرشيف', 'صيغة الأرشيف', 'archive-format'},
['ArchiveURL'] = {'مسار-الأرشيف', 'مسار أرشيف', 'مسار الأرشيف', 'archive-url', 'archiveurl'}, -- Used by InternetArchiveBot
['ArticleNumber'] = {'رقم-المقالة', 'article-number'},
['ASINTLD'] = 'asin-tld',
['At'] = {'في', 'at'}, -- Used by InternetArchiveBot
--##TOREVISE
['Authors'] = {'المؤلفون', 'المؤلفين', 'authors', 'people', 'host', 'credits', 'أشخاص'},
['BookTitle'] = {'عنوان الكتاب', 'book-title', 'booktitle', 'عنوان المؤتمر'},
['Cartography'] = 'cartography',
['Chapter'] = {'الفصل', 'chapter', 'contribution', 'entry', 'article', 'section'},
['ChapterFormat'] = {'صيغة-الفصل', 'صيغة الفصل', 'تنسيق الفصل', 'chapter-format', 'contribution-format', 'entry-format',
'article-format', 'section-format'},
['ChapterURL'] = {'مسار-الفصل', 'مسار الفصل', 'chapter-url', 'contribution-url', 'entry-url', 'article-url', 'section-url'}, -- Used by InternetArchiveBot
['ChapterUrlAccess'] = {'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'},
['ConferenceFormat'] = 'conference-format',
['ConferenceURL'] = {'مسار-المؤتمر', 'مسار المؤتمر', 'conference-url'}, -- Used by InternetArchiveBot
['Date'] = {'تاريخ', 'التاريخ', 'date', 'air-date', 'airdate'},
['HijriDate'] = {'التاريخ الهجري', 'تاريخ هجري', 'hijri-date'},
['Degree'] = {'الدرجة', 'degree'},
['DF'] = 'df',
['DisplayAuthors'] = {'إظهار-المؤلفين', 'إظهار المؤلفين', 'display-authors', 'display-subjects'},
['DisplayContributors'] = 'display-contributors',
['DisplayEditors'] = {'إظهار-المحررين', 'إظهار المحررين', 'display-editors'},
['DisplayInterviewers'] = 'display-interviewers',
['DisplayTranslators'] = 'display-translators',
['Docket'] = 'docket',
['DoiBroken'] = 'doi-broken-date',
['Edition'] = {'طبعة', 'الإصدار', 'الاصدار', 'إصدار', 'اصدار', 'الطبعة', 'رقم الطبعة', 'edition'},
['Embargo'] = 'pmc-embargo-date',
['Encyclopedia'] = {'موسوعة', 'encyclopedia', 'encyclopaedia', 'اسم المعجم', 'dictionary', 'اسم الموسوعة'}, -- cite encyclopedia only
['Episode'] = {'الحلقة', 'episode'}, -- cite serial only TODO: make available to cite episode?
['Format'] = {'صيغة', 'التنسيق', 'format', 'تنسيق', 'الصيغة'},
['ID'] = {'id', 'ID', 'المعرف'},
['Inset'] = {'inset', 'مجموعة'},
['Issue'] = {'العدد', 'issue', 'number'},
['Language'] = {'لغة', 'اللغة', 'language', 'lang'},
['MailingList'] = {'القائمة البريدية', 'mailing-list'}, -- cite mailing list only
['Map'] = {'الخريطة', 'map'}, -- cite map only
['MapFormat'] = {'صيغة الخريطة', 'map-format'}, -- cite map only
['MapURL'] = {'مسار الخريطة', 'map-url'}, -- cite map only -- Used by InternetArchiveBot
['MapUrlAccess'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
['Minutes'] = {'دقيقة', 'minutes'},
['Mode'] = 'mode',
['NameListStyle'] = 'name-list-style',
['Network'] = {'الشبكة', 'network'},
['Newsgroup'] = {'اسم المجموعة', 'newsgroup'}, -- cite newsgroup only
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'no-tracking', 'template-doc-demo'},
['Number'] = 'number', -- this case only for cite techreport
['OrigDate'] = {'orig-date', 'orig-year', 'origyear', 'سنة النشر الأصلية'},
['Others'] = {'آخرون','others', 'المحاور', 'المحاورون', 'المحقق'},
['Page'] = {'صفحة', 'p', 'الصفحة', 'page', 'الصفحة', 'رقم الصفحة', 'رقم صفحة','ص'}, -- Used by InternetArchiveBot
['Pages'] = {'صفحات', 'الصفحات', 'pp', 'أرقام الصفحات', 'أرقم صفحات', 'pages'}, -- Used by InternetArchiveBot
['Periodical'] = {
'صحيفة',
'journal',
'دورية محكمة',
'مجلة',
'magazine',
'اسم المجلة',
'newspaper',
'جريدة',
'اسم الصحيفة',
'دورية',
'periodical',
'موقع',
'website',
'الموقع',
'عمل',
'work',
'العمل',
'من عمل',
},
['Place'] = { 'مكان', 'place', 'المكان', 'مقر', 'المقر', 'location'},
['PostScript'] = 'postscript',
['PublicationDate'] = {'تاريخ-النشر', 'تاريخ النشر', 'publication-date'},
['PublicationPlace'] = {'مكان-النشر', 'مكان النشر', 'publication-place'},
['PublisherName'] = {'ناشر', 'publisher', 'الناشر', 'institution', 'مصدر', 'الموزع', 'المصدر', 'المؤسسة'},
['Quote'] = {'اقتباس', 'quote', 'quotation'},
['QuotePage'] = 'quote-page',
['QuotePages'] = 'quote-pages',
['Ref'] = {'مرجع', 'ref'},
['Scale'] = {'المقياس', 'scale'},
['ScriptChapter'] = {'script-chapter', 'script-contribution', 'script-entry',
'script-article', 'script-section'},
['ScriptEncyclopedia'] = {'script-encyclopedia', 'script-encyclopaedia'}, -- cite encyclopedia only
['ScriptMap'] = 'script-map',
['ScriptPeriodical'] = {'script-journal', 'script-magazine', 'script-newspaper',
'script-periodical', 'script-website', 'script-work'},
['ScriptQuote'] = 'script-quote',
['ScriptTitle'] = 'script-title', -- Used by InternetArchiveBot
['Season'] = {'الموسم', 'season'},
['Sections'] = {'الأقسام', 'sections'}, -- cite map only
['Series'] = {'سلسلة', 'series', 'version'},
['SeriesLink'] = {'وصلة-سلسلة', 'وصلة سلسلة', 'series-link', 'مسار المسلسل'},
['SeriesNumber'] = {'رقم-سلسلة', 'رقم سلسلة', 'series-number', 'series-no'},
['Sheet'] = {'ورقة', 'sheet'}, -- cite map only
['Sheets'] = {'أوراق', 'sheets'}, -- cite map only
['Station'] = {'محطة', 'station'},
['Time'] = {'الوقت', 'time'},
['TimeCaption'] = 'time-caption',
['Title'] = {'عنوان', 'title', 'العنوان'},
['TitleLink'] = {'وصلة-العنوان', 'وصلة العنوان', 'title-link', 'episode-link', 'وصلة الحلقة'},
['TitleNote'] = {'title-note', 'department'},
['TitleType'] = {'النوع', 'type', 'medium'},
['TransChapter'] = {'trans-article', 'trans-chapter', 'trans-contribution',
'trans-entry', 'trans-section'},
['Transcript'] = 'transcript',
['TranscriptFormat'] = 'transcript-format',
['TranscriptURL'] = 'transcript-url', -- Used by InternetArchiveBot
['TransEncyclopedia'] = {'trans-encyclopedia', 'trans-encyclopaedia'}, -- cite encyclopedia only
['TransMap'] = 'trans-map', -- cite map only
['TransPeriodical'] = {'trans-journal', 'trans-magazine', 'trans-newspaper',
'trans-periodical', 'trans-website', 'trans-work'},
['TransQuote'] = 'trans-quote',
['TransTitle'] = {'عنوان مترجم', 'العنوان بالعربي', 'العنوان الأجنبي', 'عنوان أجنبي', 'trans-title', 'العنوان المترجم'}, -- Used by InternetArchiveBot
['URL'] = {'مسار', 'المسار','وصلة', 'url', 'URL'}, -- Used by InternetArchiveBot
['UrlAccess'] = {'url-access', 'التسجيل'}, -- Used by InternetArchiveBot
['UrlStatus'] = {'url-status','حالة المسار'}, -- Used by InternetArchiveBot
['Vauthors'] = {'vauthors', 'عدة مؤلفين'},
['Veditors'] = {'veditors', 'عدة محررين' },
['Via'] = {'عبر', 'via'},
['Volume'] = {'المجلد', 'volume', 'الجزء', 'ج'},
['wikidatacite'] = 'wikidatacite',
['Year'] = {'سنة', 'year', 'السنة'},
['AuthorList-First'] = {
'الأول#',
'مؤلف#-الأول',
'مؤلف# الأول',
'أول#',
'first#',
'اول#',
'الاول#',
'author-first#',
'مؤلف الأول#',
'author#-first',
'given#',
'author-given#',
'مؤلف-الأول#',
'author#-given'
},
['AuthorList-Last'] = {
'مؤلف#',
'الأخير#',
'مؤلف#-الأخير',
'مؤلف# الأخير',
'last#',
'author-last#',
'مؤلف-الأخير#',
'author#-last',
'surname#',
'الأخير#',
'author-surname#',
'author#-surname',
'author#',
'المؤلف#',
'أخير#',
'اخير#',
'مؤلف الأخير#',
'subject#',
'host#',
'الموضوع'
},
['AuthorList-Link'] = {
'وصلة مؤلف#',
'مؤلف#-وصلة',
'author-link#',
'author#-link',
'subject-link#',
'subject#-link',
'authorlink#',
'author#link',
'مؤلف# وصلة',
'وصلة-مؤلف#',
'وصلة المؤلف#',
'وصلة-المؤلف#'
},
['AuthorList-Mask'] = {
'مؤلف#-قناع',
'author-mask#',
'author#-mask',
'subject-mask#',
'subject#-mask'
},
['ContributorList-First'] = {
'مشارك#-الأول',
'contributor-first#',
'مشارك-الأول#',
'contributor#-first',
'contributor-given#',
'contributor#-given'
},
['ContributorList-Last'] = {
'مشارك#',
'مشارك#-الأخير',
'contributor#',
'contributor-last#',
'مشارك-الأخير#',
'contributor#-last',
'contributor-surname#',
'contributor#-surname'
},
['ContributorList-Link'] = {
'مشارك#-وصلة',
'contributor-link#',
'contributor#-link'
},
['ContributorList-Mask'] = {
'مشارك#-قناع',
'contributor-mask#',
'contributor#-mask'
},
['EditorList-First'] = {
'محرر#-الأول',
'محرر-الأول#',
'محرر الأول#',
'editor-first#',
'editor#-first',
'editor-given#',
'محرر# الأول',
'محرر# الأول',
'editor#-given'
},
['EditorList-Last'] = {
'محرر#',
'محرر#-الأخير',
'محرر# الأخير',
'محرر-الأخير#',
'محرر الأخير#',
'editor-last#',
'editor#-last',
'editor-surname#',
'editor#-surname',
'editor#',
'المحرر#'
},
['EditorList-Link'] = {
'وصلة محرر#',
'محرر#-وصلة',
'محرر# وصلة',
'وصلة-محرر#',
'editor-link#',
'editor#-link',
'محرر-وصلة#',
'وصلة-المحرر#',
'وصلة المحرر#'
},
['EditorList-Mask'] = {
'محرر#-قناع',
'editor-mask#',
'editor#-mask'
},
['InterviewerList-First'] = {
'interviewer-first#',
'interviewer#-first',
'interviewer-given#',
'interviewer#-given'
},
['InterviewerList-Last'] = {
'interviewer-last#',
'interviewer#-last',
'interviewer-surname#',
'interviewer#-surname',
'interviewer#'
},
['InterviewerList-Link'] = {'interviewer-link#', 'interviewer#-link'},
['InterviewerList-Mask'] = {'interviewer-mask#', 'interviewer#-mask'},
['TranslatorList-First'] = {
'مترجم#-الأول',
'translator#-first',
'مترجم-الأول#',
'مترجم# الأول',
'مترجم-الأول#',
'مترجم الأول#',
'المترجم-الأول#',
'المترجم#-الأول',
'translator-first#',
'translator-given#',
'translator#-given'
},
['TranslatorList-Last'] = {
'مترجم#',
'مترجم#-الأخير',
'المترجم#',
'translator#',
'translator-last#',
'المترجم-الأخير#',
'المترجم#-الأخير',
'مترجم الأخير#',
'مترجم# الأخير',
'مترجم-الأخير#',
'translator#-last',
'translator-surname#',
'translator#-surname'
},
['TranslatorList-Link'] = {
'وصلة مترجم#',
'مترجم#-وصلة',
'مترجم# وصلة',
'وصلة-مترجم#',
'وصلة المترجم#',
'وصلة-المترجم#',
'translator-link#',
'translator#-link',
'المترجم#-وصلة'
},
['TranslatorList-Mask'] = {
'مترجم#-قناع',
'translator-mask#',
'translator#-mask'
}
}
--[[--------------------------< D E P E N D E N C I E S _ T >--------------------------------------------------
a table of url-holding parameters upon which other parameters are dependent.
this table is used by has_archive_today_url() to suppress parameters that are dependant upon a url-holding parameter
that has as a value an archive.today (or alternate tld) url.
archive.today is deprecated at en.wiki; see Wikipedia:Requests_for_comment/Archive.is_RFC_5
]]
local url_dependency_map_t = { -- table of url-holding parameters and the meta-parameters that are dependent on them
['url'] = {'AccessDate', 'ArchiveURL', 'Format', 'UrlAccess'},
['archive-url'] = {'ArchiveDate', 'ArchiveFormat', 'UrlStatus'},
['archiveurl'] = {'ArchiveDate', 'ArchiveFormat', 'UrlStatus'},
['article-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['chapter-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['conference-url'] = {'ConferenceFormat'},
['contribution-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['entry-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['map-url'] = {'MapFormat', 'MapUrlAccess'},
['section-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['transcript-url'] = {'TranscriptFormat'},
};
local dependencies_t = {}; -- the table of url-holding parameters and their dependent parameters
for url_param, meta_parameters_t in pairs (url_dependency_map_t) do -- sequence of meta-parameters (indexes) into <aliases> table
local dependant_params_t = {}; -- collection of parameters that are dependent on this <url_param>
for _, meta_parameter in ipairs (meta_parameters_t) do -- for each <aliases> meta-parameter (index)
if 'string' == type (aliases[meta_parameter]) then -- for single parameter names (no aliases), <aliases[meta_parameter]> will be a string
table.insert (dependant_params_t, aliases[meta_parameter]); -- add to this <url_param>'s dependency sequence
else
for _, alias in ipairs (aliases[meta_parameter]) do -- for each alias in aliases[meta_parameter] (aliases['AccessDate'] for example)
table.insert (dependant_params_t, alias); -- add to this <url_param>'s dependency sequence
end
end
end
dependencies_t[url_param] = dependant_params_t; -- add the <url_param> and its dependent parameters
end
--[[--------------------------< P U N C T _ S K I P >---------------------------
builds a table of parameter names that the extraneous terminal punctuation check should not check.
]]
local punct_meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'BookTitle', 'Chapter', 'ScriptChapter', 'ScriptTitle', 'Title', 'TransChapter', 'Transcript', 'TransMap', 'TransTitle', -- title-holding parameters
'AuthorList-Mask', 'ContributorList-Mask', 'EditorList-Mask', 'InterviewerList-Mask', 'TranslatorList-Mask', -- name-list mask may have name separators
'PostScript', 'Quote', 'ScriptQuote', 'TransQuote', 'Ref', -- miscellaneous
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'MapURL', 'TranscriptURL', 'URL', -- URL-holding parameters
}
local url_meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'ID', 'MapURL', 'TranscriptURL', 'URL', -- parameters allowed to hold urls
'Page', 'Pages', 'At', 'QuotePage', 'QuotePages', -- insource locators allowed to hold urls
}
local function build_skip_table (skip_t, meta_params)
for _, meta_param in ipairs (meta_params) do -- for each meta parameter key
local params = aliases[meta_param]; -- get the parameter or the table of parameters associated with the meta parameter name
if 'string' == type (params) then
skip_t[params] = 1; -- just a single parameter
else
for _, param in ipairs (params) do -- get the parameter name
skip_t[param] = 1; -- add the parameter name to the skip table
local count;
param, count = param:gsub ('#', ''); -- remove enumerator marker from enumerated parameters
if 0 ~= count then -- if removed
skip_t[param] = 1; -- add param name without enumerator marker
end
end
end
end
return skip_t;
end
local punct_skip = {};
local url_skip = {};
--[[--------------------------< U R L _ A C C E S S _ M A P >--------------------------------------------------
this table used by the wikipedia library url test, has_twl_url(), which automatically sets a url-access parameter
to 'subscription' when it discovers a wikipedia library url in any of the url-holding paramters used as keys in
this table.
translators: if your wiki uses parameter names for these url-holding parameters and their matching -access parameters,
add your wiki's parameters to this list. Leave the English parameters in place.
TODO: is there a better way to do this?
]]
local url_access_map_t = {
['chapter-url'] = 'chapter-url-access',
['contribution-url'] = 'contribution-url-access',
['entry-url'] = 'entry-url-access',
['article-url'] = 'article-url-access',
['section-url'] = 'section-url-access',
['map-url'] = 'map-url-access',
['mapurl'] = 'map-url-access',
['url'] = 'url-access',
['URL'] = 'url-access'
}
--[[--------------------------< S I N G L E - L E T T E R S E C O N D - L E V E L D O M A I N S >----------
this is a list of tlds that are known to have single-letter second-level domain names. This list does not include
ccTLDs which are accepted in is_domain_name().
]]
local single_letter_2nd_lvl_domains_t = {'cash', 'company', 'foundation', 'media', 'org', 'today'};
--[[-----------< S P E C I A L C A S E T R A N S L A T I O N S >------------
This table is primarily here to support internationalization. Translations in
this table are used, for example, when an error message, category name, etc.,
is extracted from the English alias key. There may be other cases where
this translation table may be useful.
]]
local is_Latn = 'A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191';
local special_case_translation = {
author = 'author',
editor = 'editor',
name_list_params = '$1-name-list parameters', -- $1 is 'author' or 'editor'; used with err_redundant_parameters
['AuthorList'] = 'قائمة المؤلفين', -- used to assemble maintenance category names
['ContributorList'] = 'قائمة المساهمين', -- translation of these names plus translation of the base maintenance category names in maint_cats{} table below
['EditorList'] = 'قائمة المحررين', -- must match the names of the actual categories
['InterviewerList'] = 'قائمة المراجعين', -- this group or translations used by name_has_ed_markup() and name_has_mult_names()
['TranslatorList'] = 'قائمة المترجمين',
-- Lua patterns to match pseudo-titles used by InternetArchiveBot and others as placeholder for unknown |title= value
['archived_copy'] = { -- used with CS1 maint: Archive[d] copy as title
['en'] = '^archived?%s+copy$', -- for English; translators: keep this because templates imported from en.wiki
['local'] = nil, -- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language
},
-- Lua patterns to match generic titles; usually created by bots or reference filling tools
-- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language
-- generic titles and patterns in this table should be lowercase only
-- leave ['local'] nil except when there is a matching generic title in your language
-- boolean 'true' for plain-text searches; 'false' for pattern searches
['generic_titles'] = {
['accept'] = {
},
['reject'] = {
{['en'] = {'^wayback%s+machine$', false}, ['local'] = nil},
{['en'] = {'are you a robot', true}, ['local'] = nil},
{['en'] = {'hugedomains', true}, ['local'] = nil},
{['en'] = {'^[%(%[{<]?no +title[>}%]%)]?$', false}, ['local'] = nil},
{['en'] = {'page not found', true}, ['local'] = nil},
{['en'] = {'subscribe to read', true}, ['local'] = nil},
{['en'] = {'^[%(%[{<]?unknown[>}%]%)]?$', false}, ['local'] = nil},
{['en'] = {'website is for sale', true}, ['local'] = nil},
{['en'] = {'^404', false}, ['local'] = nil},
{['en'] = {'error[ %-]404', false}, ['local'] = nil},
{['en'] = {'internet archive wayback machine', true}, ['local'] = nil},
{['en'] = {'log into facebook', true}, ['local'] = nil},
{['en'] = {'login • instagram', true}, ['local'] = nil},
{['en'] = {'redirecting...', true}, ['local'] = nil},
{['en'] = {'usurped title', true}, ['local'] = nil}, -- added by a GreenC bot
{['en'] = {'wayback machine', true}, ['local'] = nil},
{['en'] = {'webcite query result', true}, ['local'] = nil},
{['en'] = {'wikiwix\'s cache', true}, ['local'] = nil},
{['en'] = {'bot verification', true}, ['local'] = nil},
}
},
-- boolean 'true' for plain-text searches, search string must be lowercase only
-- boolean 'false' for pattern searches
-- leave ['local'] nil except when there is a matching generic name in your language
['generic_names'] = {
['accept'] = {
{['en'] = {'%[%[[^|]*%(author%) *|[^%]]*%]%]', false}, ['local'] = nil},
},
['reject'] = {
{['en'] = {'about us', true}, ['local'] = nil},
{['en'] = {'%f[%a][Aa]dvisor%f[%A]', false}, ['local'] = nil},
{['en'] = {'allmusic', true}, ['local'] = nil},
{['en'] = {'%f[%a][Aa]uthor%f[%A]', false}, ['local'] = nil},
{['en'] = {'^[Bb]ureau$', false}, ['local'] = nil},
{['en'] = {'business', true}, ['local'] = nil},
{['en'] = {'cnn', true}, ['local'] = nil},
{['en'] = {'collaborator', true}, ['local'] = nil},
{['en'] = {'^[Cc]ompany$', false}, ['local'] = nil},
{['en'] = {'contributor', true}, ['local'] = nil},
{['en'] = {'contact us', true}, ['local'] = nil},
{['en'] = {'correspondent', true}, ['local'] = nil},
{['en'] = {'^[Dd]esk$', false}, ['local'] = nil},
{['en'] = {'directory', true}, ['local'] = nil},
{['en'] = {'%f[%(%[][%(%[]%s*eds?%.?%s*[%)%]]?$', false}, ['local'] = nil},
{['en'] = {'[,%.%s]%f[e]eds?%.?$', false}, ['local'] = nil},
{['en'] = {'^eds?[%.,;]', false}, ['local'] = nil},
{['en'] = {'^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]dited%f[%A]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]ditors?%f[%A]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]mail%f[%A]', false}, ['local'] = nil},
{['en'] = {'facebook', true}, ['local'] = nil},
{['en'] = {'google', true}, ['local'] = nil},
{['en'] = {'^[Gg]roup$', false}, ['local'] = nil},
{['en'] = {'home page', true}, ['local'] = nil},
{['en'] = {'^[Ii]nc%.?$', false}, ['local'] = nil},
{['en'] = {'instagram', true}, ['local'] = nil},
{['en'] = {'interviewer', true}, ['local'] = nil},
{['en'] = {'^[Ll]imited$', false}, ['local'] = nil},
{['en'] = {'linkedIn', true}, ['local'] = nil},
{['en'] = {'^[Nn]ews$', false}, ['local'] = nil},
{['en'] = {'[Nn]ews[ %-]?[Rr]oom', false}, ['local'] = nil},
{['en'] = {'pinterest', true}, ['local'] = nil},
{['en'] = {'policy', true}, ['local'] = nil},
{['en'] = {'privacy', true}, ['local'] = nil},
{['en'] = {'reuters', true}, ['local'] = nil},
{['en'] = {'translator', true}, ['local'] = nil},
{['en'] = {'tumblr', true}, ['local'] = nil},
{['en'] = {'twitter', true}, ['local'] = nil},
{['en'] = {'site name', true}, ['local'] = nil},
{['en'] = {'statement', true}, ['local'] = nil},
{['en'] = {'submitted', true}, ['local'] = nil},
{['en'] = {'super.?user', false}, ['local'] = nil},
{['en'] = {'%f['..is_Latn..'][Uu]ser%f[^'..is_Latn..']', false}, ['local'] = nil},
{['en'] = {'updated', true}, ['local'] = nil},
{['en'] = {'verfasser', true}, ['local'] = nil},
}
}
}
--[[--------------------------< D A T E _ N A M E S >----------------------------------------------------------
This table of tables lists local language date names and fallback English date names.
The code in Date_validation will look first in the local table for valid date names.
If date names are not found in the local table, the code will look in the English table.
Because citations can be copied to the local wiki from en.wiki, the English is
required when the date-name translation function date_name_xlate() is used.
In these tables, season numbering is defined by
Extended Date/Time Format (EDTF) Specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard
defines various divisions using numbers 21-41. CS1|2 only supports generic seasons.
EDTF does support the distinction between north and south hemisphere seasons
but CS1|2 has no way to make that distinction.
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
The standard does not address 'named' dates so, for the purposes of CS1|2,
Easter and Christmas are defined here as 98 and 99, which should be out of the
ISO 8601 (EDTF) range of uses for a while.
local_date_names_from_mediawiki is a boolean. When set to:
true – module will fetch local month names from MediaWiki for both date_names['local']['long'] and date_names['local']['short']; this will unconditionally overwrite manual translations
false – module will *not* fetch local month names from MediaWiki
Caveat lector: There is no guarantee that MediaWiki will provide short month names. At your wiki you can test
the results of the MediaWiki fetch in the debug console with this command (the result is alpha sorted):
=mw.dumpObject (p.date_names['local'])
While the module can fetch month names from MediaWiki, it cannot fetch the quarter, season, and named date names
from MediaWiki. Those must be translated manually.
]]
local local_date_names_from_mediawiki = false; -- when false, manual translation required for date_names['local']['long'] and date_names['local']['short']; overwrites manual translations
-- when true, module fetches long and short month names from MediaWiki
local date_names = {
['en'] = { -- English
['long'] = {['January'] = 1, ['February'] = 2, ['March'] = 3, ['April'] = 4, ['May'] = 5, ['June'] = 6, ['July'] = 7, ['August'] = 8, ['September'] = 9, ['October'] = 10, ['octobre'] = 10, ['November'] = 11, ['December'] = 12},
['short'] = {['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12},
['quarter'] = {['First Quarter'] = 33, ['Second Quarter'] = 34, ['Third Quarter'] = 35, ['Fourth Quarter'] = 36},
['season'] = {['Winter'] = 24, ['Spring'] = 21, ['Summer'] = 22, ['Fall'] = 23, ['Autumn'] = 23},
['named'] = {['Easter'] = 98, ['Christmas'] = 99},
},
-- when local_date_names_from_mediawiki = false
['local'] = { -- replace these English date names with the local language equivalents
['long'] = {['يناير'] = 1, ['فبراير'] = 2, ['مارس'] = 3, ['أبريل'] = 4, ['مايو'] = 5, ['يونيو'] = 6, ['يوليو'] = 7, ['أغسطس'] = 8, ['اغسطس'] = 8, ['سبتمبر'] = 9, ['أكتوبر'] = 10, ['نوفمبر'] = 11, ['ديسمبر'] = 12},
['short'] = {['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12},
['quarter'] = {['الربع الأول'] = 33, ['الربع الثاني'] = 34, ['الربع الثالث'] = 35, ['الربع الرابع'] = 36},
['season'] = {['شتاء'] = 24, ['ربيع'] = 21, ['صيف'] = 22, ['خريف'] = 23},
['named'] = {['Easter'] = 98, ['Christmas'] = 99},
--#Added
['hijri'] = {['المحرم'] = 1, ['محرم'] = 1, ['صفر'] = 2, ['ربيع الأول'] = 3, ['ربيع الثاني'] = 4, ['ربيع الآخر'] = 4, ['جمادى الأولى'] = 5, ['جمادى الثانية'] = 6, ['جمادى الآخرة'] = 6, ['رجب'] = 7, ['شعبان'] = 8, ['رمضان'] = 9, ['شوال'] = 10, ['ذو القعدة'] = 11, ['ذو الحجة'] = 12},
['alt-long'] = {['كانون ثاني'] = 1, ['شباط'] = 2, ['آذار'] = 3, ['نيسان'] = 4, ['أيار'] = 5, ['حزيران'] = 6, ['تموز'] = 7, ['آب'] = 8, ['أيلول'] = 9, ['تشرين أول'] = 10, ['تشرين ثاني'] = 11, ['كانون أول'] = 12, ['جانفي'] = 1, ['فيفري'] = 2, ['مارس'] = 3, ['أفريل'] = 4, ['ماي'] = 5, ['جوان'] = 6, ['جويلية'] = 7, ['أوت'] = 8, ['ماي'] = 5, ['يوليوز'] = 7, ['غشت'] = 8, ['شتنبر'] = 9, ['نوفنبر'] = 11, ['دجنبر'] = 12},
},
['inv_local_long'] = {}, -- used in date reformatting & translation; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc.
['inv_local_short'] = {}, -- used in date reformatting & translation; copy of date_names['local'].short where k/v are inverted: [1]='<local name>' etc.
['inv_local_quarter'] = {}, -- used in date translation; copy of date_names['local'].quarter where k/v are inverted: [1]='<local name>' etc.
['inv_local_season'] = {}, -- used in date translation; copy of date_names['local'].season where k/v are inverted: [1]='<local name>' etc.
['inv_local_named'] = {}, -- used in date translation; copy of date_names['local'].named where k/v are inverted: [1]='<local name>' etc.
['inv_local_hijri'] = {}, -- used in date reformatting & translation; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc.
['local_digits'] = {['٠'] = '0', ['١'] = '1', ['٢'] = '2', ['٣'] = '3', ['٤'] = '4', ['٥'] = '5', ['٦'] = '6', ['٧'] = '7', ['٨'] = '8', ['٩'] = '9' }, -- used to convert local language digits to Western 0-9
['xlate_digits'] = {},
--#Added
['nd_patterns'] ={{"^د%.ت%.%a?$","((د%.ت%.)%a?)"},
{"^n%.d%.%a?$", "((n%.d%.)%a?)"},
{"^nd%a?$", "((nd)%a?)"},
{"^دت%a?$", "((دت)%a?)"}},
}
if local_date_names_from_mediawiki then -- if fetching local month names from MediaWiki is enabled
local long_t = {};
local short_t = {};
for i=1, 12 do -- loop 12x and
local name = lang_obj:formatDate('F', '2022-' .. i .. '-1'); -- get long month name for each i
long_t[name] = i; -- save it
name = lang_obj:formatDate('M', '2022-' .. i .. '-1'); -- get short month name for each i
short_t[name] = i; -- save it
end
date_names['local']['long'] = long_t; -- write the long table – overwrites manual translation
date_names['local']['short'] = short_t; -- write the short table – overwrites manual translation
end
-- create inverted date-name tables for reformatting and/or translation
for _, invert_t in pairs {{'long', 'inv_local_long'}, {'short', 'inv_local_short'}, {'quarter', 'inv_local_quarter'}, {'season', 'inv_local_season'}, {'named', 'inv_local_named'}, {'hijri', 'inv_local_hijri'},} do
for name, i in pairs (date_names['local'][invert_t[1]]) do -- this table is ['name'] = i
date_names[invert_t[2]][i] = name; -- invert to get [i] = 'name' for conversions from ymd
end
end
if local_digits_from_mediawiki then -- if fetching local digits from MediaWiki is enabled
local digits_t = {};
for i=0, 9 do -- loop 10x and
digits_t [lang_obj:formatNum (i)] = tostring (i); -- format the loop indexer as local lang table index and assign loop indexer (a string) as the value
end
date_names['local_digits'] = digits_t;
end
for ld, ed in pairs (date_names.local_digits) do -- make a digit translation table for simple date translation from en to local language using local_digits table
date_names.xlate_digits [ed] = ld; -- en digit becomes index with local digit as the value
end
local df_template_patterns = { -- table of redirects to {{Use dmy dates}} and {{Use mdy dates}}
'{{ *[Uu]se +(dmy) +dates *[|}]', -- 1159k -- sorted by approximate transclusion count
'{{ *[Uu]se +(mdy) +dates *[|}]', -- 212k
'{{ *[Uu]se +(MDY) +dates *[|}]', -- 788
'{{ *[Uu]se +(DMY) +dates *[|}]', -- 343
'{{ *([Mm]dy) *[|}]', -- 176
'{{ *[Uu]se *(dmy) *[|}]', -- 156 + 18
'{{ *[Uu]se *(mdy) *[|}]', -- 149 + 11
'{{ *([Dd]my) *[|}]', -- 56
'{{ *[Uu]se +(MDY) *[|}]', -- 5
'{{ *([Dd]MY) *[|}]', -- 3
'{{ *[Uu]se(mdy)dates *[|}]', -- 1
'{{ *[Uu]se +(DMY) *[|}]', -- 0
'{{ *([Mm]DY) *[|}]', -- 0
}
local title_object = mw.title.getCurrentTitle();
local content; -- done this way so that unused templates appear in unused-template-reports; self-transcluded makes them look like they are used
if 10 ~= title_object.namespace then -- all namespaces except Template
content = title_object:getContent() or ''; -- get the content of the article or ''; new pages edited w/ve do not have 'content' until saved; ve does not preview; phab:T221625
end
local function get_date_format ()
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
end
for _, pattern in ipairs (df_template_patterns) do -- loop through the patterns looking for {{Use dmy dates}} or {{Use mdy dates}} or any of their redirects
local start, _, match = content:find(pattern); -- match is the three letters indicating desired date format
if match then
local use_dates_template = content:match ('%b{}', start); -- get the whole template
if use_dates_template:match ('| *cs1%-dates *= *[lsy][sy]?') then -- look for |cs1-dates=publication date length access-/archive-date length
return match:lower() .. '-' .. use_dates_template:match ('| *cs1%-dates *= *([lsy][sy]?)');
else
return match:lower() .. '-all'; -- no |cs1-dates= k/v pair; return value appropriate for use in |df=
end
end
end
end
local global_df; -- TODO: add this to <global_cs1_config_t>?
--[[-----------------< V O L U M E , I S S U E , P A G E S >------------------
These tables hold cite class values (from the template invocation) and identify those templates that support
|volume=, |issue=, and |page(s)= parameters. Cite conference and cite map require further qualification which
is handled in the main module.
]]
local templates_using_volume = {'citation', 'audio-visual', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport', 'thesis'}
local templates_using_issue = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news', 'podcast'}
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}
--[[
These tables control when it is appropriate for {{citation}} to render |volume= and/or |issue=. The parameter
names in the tables constrain {{citation}} so that its renderings match the renderings of the equivalent cs1
templates. For example, {{cite web}} does not support |volume= so the equivalent {{citation |website=...}} must
not support |volume=.
]]
local citation_no_volume_t = { -- {{citation}} does not render |volume= when these parameters are used
'website', 'mailinglist', 'script-website',
}
local citation_issue_t = { -- {{citation}} may render |issue= when these parameters are used
'journal', 'magazine', 'newspaper', 'periodical', 'work',
'script-journal', 'script-magazine', 'script-newspaper', 'script-periodical', 'script-work',
}
--[[
أنماط البحث عن نص إضافي بتنسيق |volume=, |issue=, |page=, |pages=
]]
local vol_iss_pg_patterns = {
good_ppattern = '^P[^%.PpGg]', -- OK to begin with uppercase P: P7 (page 7 of section P), but not p123 (page 123); TODO: this allows 'Pages' which it should not
bad_ppatterns = { -- patterns for |page= and |pages=
'^[Pp][PpGg]?%.?[ %d]',
'^[Pp][Pp]?%. ', -- from {{p.}} and {{pp.}} templates
'^[Pp]ages?',
'^[Pp]gs.?',
},
vi_patterns_t = { -- combined to catch volume-like text in |issue= and issue-like text in |volume=
'^volumes?', -- volume-like text
'^vols?[%.:=]?',
'^issues?', --issue-like text
'^iss[%.:=]?',
'^numbers?',
'^nos?%A', -- don't match 'november' or 'nostradamus'
'^nr[%.:=]?',
'^n[%.:= ]', -- might be a valid issue without separator (space char is sep char here)
'^n°', -- 'n' with degree sign (U+00B0)
'^№', -- precomposed unicode numero character (U+2116)
},
}
--[[--------------------------< K E Y W O R D S >-------------------------------
These tables hold keywords for those parameters that have defined sets of acceptable keywords.
]]
--[[-------------------< K E Y W O R D S T A B L E >--------------------------
this is a list of keywords; each key in the list is associated with a table of
synonymous keywords possibly from different languages.
for I18N: add local-language keywords to value table; do not change the key.
For example, adding the German keyword 'ja':
['affirmative'] = {'yes', 'true', 'y', 'ja'},
Because CS1|2 templates from en.wiki articles are often copied to other local wikis,
it is recommended that the English keywords remain in these tables.
]]
local keywords = {
['amp'] = {'&', 'amp', 'ampersand'}, -- |name-list-style=
['and'] = {'and', 'serial'}, -- |name-list-style=
['affirmative'] = {'yes', 'true', 'y'}, -- |no-tracking=, |no-pp= -- Used by InternetArchiveBot
['afterword'] = {'afterword'}, -- |contribution=
['bot: unknown'] = {'bot: unknown'}, -- |url-status= -- Used by InternetArchiveBot
['cs1'] = {'cs1'}, -- |mode=
['cs2'] = {'cs2'}, -- |mode=
['dead'] = {'dead', 'deviated'}, -- |url-status= -- Used by InternetArchiveBot
['dmy'] = {'dmy'}, -- |df=
['dmy-all'] = {'dmy-all'}, -- |df=
['foreword'] = {'foreword'}, -- |contribution=
['free'] = {'free'}, -- |<id>-access= -- Used by InternetArchiveBot
['harv'] = {'harv'}, -- |ref=; this no longer supported; is_valid_parameter_value() called with <invert> = true
['introduction'] = {'introduction'}, -- |contribution=
['limited'] = {'limited'}, -- |url-access= -- Used by InternetArchiveBot
['live'] = {'live'}, -- |url-status= -- Used by InternetArchiveBot
['mdy'] = {'mdy'}, -- |df=
['mdy-all'] = {'mdy-all'}, -- |df=
['none'] = {'none'}, -- |postscript=, |ref=, |title=, |type= -- Used by InternetArchiveBot
['off'] = {'off'}, -- |title= (potentially also: |title-link=, |postscript=, |ref=, |type=)
['preface'] = {'preface'}, -- |contribution=
['registration'] = {'registration'}, -- |url-access= -- Used by InternetArchiveBot
['subscription'] = {'subscription'}, -- |url-access= -- Used by InternetArchiveBot
['unfit'] = {'unfit'}, -- |url-status= -- Used by InternetArchiveBot
['usurped'] = {'usurped'}, -- |url-status= -- Used by InternetArchiveBot
['vanc'] = {'vanc'}, -- |name-list-style=
['ymd'] = {'ymd'}, -- |df=
['ymd-all'] = {'ymd-all'}, -- |df=
-- ['yMd'] = {'yMd'}, -- |df=; not supported at en.wiki
-- ['yMd-all'] = {'yMd-all'}, -- |df=; not supported at en.wiki
}
--[[------------------------< X L A T E _ K E Y W O R D S >---------------------
this function builds a list, keywords_xlate{}, of the keywords found in keywords{} where the values from keywords{}
become the keys in keywords_xlate{} and the keys from keywords{} become the values in keywords_xlate{}:
['affirmative'] = {'yes', 'true', 'y'}, -- in keywords{}
becomes
['yes'] = 'affirmative', -- in keywords_xlate{}
['true'] = 'affirmative',
['y'] = 'affirmative',
the purpose of this function is to act as a translator between a non-English keyword and its English equivalent
that may be used in other modules of this suite
]]
local function xlate_keywords ()
local out_table = {}; -- output goes here
for k, keywords_t in pairs (keywords) do -- spin through the keywords table
for _, keyword in ipairs (keywords_t) do -- for each keyword
out_table[keyword] = k; -- create an entry in the output table where keyword is the key
end
end
return out_table;
end
local keywords_xlate = xlate_keywords (); -- the list of translated keywords
--[[----------------< M A K E _ K E Y W O R D S _ L I S T >---------------------
this function assembles, for parameter-value validation, the list of keywords appropriate to that parameter.
keywords_lists{}, is a table of tables from keywords{}
]]
local function make_keywords_list (keywords_lists)
local out_table = {}; -- output goes here
for _, keyword_list in ipairs (keywords_lists) do -- spin through keywords_lists{} and get a table of keywords
for _, keyword in ipairs (keyword_list) do -- spin through keyword_list{} and add each keyword, ...
table.insert (out_table, keyword); -- ... as plain text, to the output list
end
end
return out_table;
end
--[[----------------< K E Y W O R D S _ L I S T S >-----------------------------
this is a list of lists of valid keywords for the various parameters in [key].
Generally the keys in this table are the canonical en.wiki parameter names though
some are contrived because of use in multiple differently named parameters:
['yes_true_y'], ['id-access'].
The function make_keywords_list() extracts the individual keywords from the
appropriate list in keywords{}.
The lists in this table are used to validate the keyword assignment for the
parameters named in this table's keys.
]]
local keywords_lists = {
['yes_true_y'] = make_keywords_list ({keywords.affirmative}),
['contribution'] = make_keywords_list ({keywords.afterword, keywords.foreword, keywords.introduction, keywords.preface}),
['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all']}),
-- ['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all'], keywords.yMd, keywords['yMd-all']}), -- not supported at en.wiki
['mode'] = make_keywords_list ({keywords.cs1, keywords.cs2}),
['name-list-style'] = make_keywords_list ({keywords.amp, keywords['and'], keywords.vanc}),
['ref'] = make_keywords_list ({keywords.harv}), -- inverted check; |ref=harv no longer supported
['url-access'] = make_keywords_list ({keywords.subscription, keywords.limited, keywords.registration}),
['url-status'] = make_keywords_list ({keywords.dead, keywords.live, keywords.unfit, keywords.usurped, keywords['bot: unknown']}),
['id-access'] = make_keywords_list ({keywords.free,keywords.subscription, keywords.limited, keywords.registration}),
}
--[[--------------------------< C S 1 _ C O N F I G _ G E T >--------------------------------------------------
fetch and validate values from {{cs1 config}} template to fill <global_cs1_config_t>
no error messages; when errors are detected, the parameter value from {{cs1 config}} is blanked.
Supports all parameters and aliases associated with the metaparameters: DisplayAuthors, DisplayContributors,
DisplayEditors, DisplayInterviewers, DisplayTranslators, NameListStyle, and Mode. The DisplayWhatever metaparameters
accept numeric values only (|display-authors=etal and the like is not supported).
]]
local global_cs1_config_t = {}; -- TODO: add value returned from get_date_format() to this table?
local function get_cs1_config ()
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
end
local start = content:find('{{ *[Cc][Ss]1 config *[|}]'); -- <start> is offset into <content> when {{cs1 config}} found; nil else
if start then
local cs1_config_template = content:match ('%b{}', start); -- get the whole template
if not cs1_config_template then
return nil;
end
local params_t = mw.text.split (cs1_config_template:gsub ('^{{%s*', ''):gsub ('%s*}}$', ''), '%s*|%s*'); -- remove '{{' and '}}'; make a sequence of parameter/value pairs (split on the pipe)
table.remove (params_t, 1); -- remove the template name because it isn't a parameter/value pair
local config_meta_params_t = {'DisplayAuthors', 'DisplayContributors', 'DisplayEditors', 'DisplayInterviewers', 'DisplayTranslators', 'NameListStyle', 'Mode'};
local meta_param_map_t = {}; -- list of accepted parameter names usable in {{cs1 config}} goes here
for _, meta_param in ipairs (config_meta_params_t) do -- for i18n using <config_meta_params_t>, map template parameter names to their metaparameter equivalents
if 'table' == type (aliases[meta_param]) then -- if <meta_param> is a sequence,
for _, param in ipairs (aliases[meta_param]) do -- extract its contents
meta_param_map_t[param] = meta_param; -- and add to <meta_param_map_t>
end
else
meta_param_map_t[aliases[meta_param]] = meta_param; -- not a sequence so just add the parameter to <meta_param_map_t>
end
end
local keywords_t = {}; -- map valid keywords to their associate metaparameter; reverse form of <keyword_lists[key] for these metaparameters
for _, metaparam_t in ipairs ({{'NameListStyle', 'name-list-style'}, {'Mode', 'mode'}}) do -- only these metaparameter / keywords_lists key pairs
for _, keyword in ipairs (keywords_lists[metaparam_t[2]]) do -- spin through the list of keywords
keywords_t[keyword] = metaparam_t[1]; -- add [keyword] = metaparameter to the map
end
end
for _, param in ipairs (params_t) do -- spin through the {{cs1 config}} parameters and fill <global_cs1_config_t>
local k, v = param:match ('([^=]-)%s*=%s*(.+)'); -- <k> is the parameter name; <v> is parameter's assigned value
if k then
if k:find ('^display') then -- if <k> is one of the |display-<namelist>= parameters
if v:match ('%d+') then -- the assigned value must be digits; doesn't accept 'etal'
global_cs1_config_t[meta_param_map_t[k]]=v; -- add the display param and its value to globals table
end
else
if keywords_t[v] == meta_param_map_t[k] then -- keywords_t[v] returns nil or the metaparam name; these must be the same
global_cs1_config_t[meta_param_map_t[k]]=v; -- add the parameter and its value to globals table
end
end
end
end
end
end
get_cs1_config (); -- fill <global_cs1_config_t>
--[[---------------------< S T R I P M A R K E R S >----------------------------
Common pattern definition location for stripmarkers so that we don't have to go
hunting for them if (when) MediaWiki changes their form.
]]
local stripmarkers = {
['any'] = '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127', -- capture returns name of stripmarker
['math'] = '\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127' -- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker()
}
--[[------------< I N V I S I B L E _ C H A R A C T E R S >---------------------
This table holds non-printing or invisible characters indexed either by name or
by Unicode group. Values are decimal representations of UTF-8 codes. The table
is organized as a table of tables because the Lua pairs keyword returns table
data in an arbitrary order. Here, we want to process the table from top to bottom
because the entries at the top of the table are also found in the ranges specified
by the entries at the bottom of the table.
Also here is a pattern that recognizes stripmarkers that begin and end with the
delete characters. The nowiki stripmarker is not an error but some others are
because the parameter values that include them become part of the template's
metadata before stripmarker replacement.
]]
local invisible_defs = {
del = '\127', -- used to distinguish between stripmarker and del char
zwj = '\226\128\141', -- used with capture because zwj may be allowed
}
local invisible_chars = {
{'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD
{'zero width joiner', '('.. invisible_defs.zwj .. ')'}, -- U+200D, E2 80 8D; capture because zwj may be allowed
{'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B
{'hair space', '\226\128\138'}, -- U+200A, E2 80 8A
{'soft hyphen', '\194\173'}, -- U+00AD, C2 AD
{'horizontal tab', '\009'}, -- U+0009 (HT), 09
{'line feed', '\010'}, -- U+000A (LF), 0A
{'no-break space', '\194\160'}, -- U+00A0 (NBSP), C2 A0
{'carriage return', '\013'}, -- U+000D (CR), 0D
{'stripmarker', stripmarkers.any}, -- stripmarker; may or may not be an error; capture returns the stripmaker type
{'delete', '('.. invisible_defs.del .. ')'}, -- U+007F (DEL), 7F; must be done after stripmarker test; capture to distinguish isolated del chars not part of stripmarker
{'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))
{'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
-- {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF
-- {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF
-- {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD
-- {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD
}
--[[
Indic script makes use of zero width joiner as a character modifier so zwj
characters must be left in. This pattern covers all of the unicode characters
for these languages:
Devanagari 0900–097F – https://unicode.org/charts/PDF/U0900.pdf
Devanagari extended A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf
Bengali 0980–09FF – https://unicode.org/charts/PDF/U0980.pdf
Gurmukhi 0A00–0A7F – https://unicode.org/charts/PDF/U0A00.pdf
Gujarati 0A80–0AFF – https://unicode.org/charts/PDF/U0A80.pdf
Oriya 0B00–0B7F – https://unicode.org/charts/PDF/U0B00.pdf
Tamil 0B80–0BFF – https://unicode.org/charts/PDF/U0B80.pdf
Telugu 0C00–0C7F – https://unicode.org/charts/PDF/U0C00.pdf
Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf
Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf
plus the not-necessarily Indic scripts for Sinhala and Burmese:
Sinhala 0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf
Myanmar 1000-109F - https://unicode.org/charts/PDF/U1000.pdf
Myanmar extended A AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf
Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf
the pattern is used by has_invisible_chars() and coins_cleanup()
]]
local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]';
-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- from: https://unicode.org/Public/emoji/17.0/emoji-zwj-sequences.txt; version: 17.0; 2025-01-08
-- table created by: [[:en:Module:Make emoji zwj table]]
local emoji_t = { -- indexes are decimal forms of the hex values in U+xxxx
[8596] = true, -- U+2194 ↔ left right arrow
[8597] = true, -- U+2195 ↕ up down arrow
[9760] = true, -- U+2620 ☠ skull and crossbones
[9792] = true, -- U+2640 ♀ female sign
[9794] = true, -- U+2642 ♂ male sign
[9877] = true, -- U+2695 ⚕ staff of aesculapius
[9878] = true, -- U+2696 ⚖ scales
[9895] = true, -- U+26A7 ⚧ male with stroke and male and female sign
[9992] = true, -- U+2708 ✈ airplane
[10052] = true, -- U+2744 ❄ snowflake
[10084] = true, -- U+2764 ❤ heavy black heart
[10145] = true, -- U+27A1 ➡ black rightwards arrow
[11035] = true, -- U+2B1B ⬛ black large square
[127752] = true, -- U+1F308 🌈 rainbow
[127787] = true, -- U+1F32B 🌫 fog
[127806] = true, -- U+1F33E 🌾 ear of rice
[127859] = true, -- U+1F373 🍳 cooking
[127868] = true, -- U+1F37C 🍼 baby bottle
[127876] = true, -- U+1F384 🎄 christmas tree
[127891] = true, -- U+1F393 🎓 graduation cap
[127908] = true, -- U+1F3A4 🎤 microphone
[127912] = true, -- U+1F3A8 🎨 artist palette
[127979] = true, -- U+1F3EB 🏫 school
[127981] = true, -- U+1F3ED 🏭 factory
[128048] = true, -- U+1F430 🐰 rabbit face
[128102] = true, -- U+1F466 👦 boy
[128103] = true, -- U+1F467 👧 girl
[128104] = true, -- U+1F468 👨 man
[128105] = true, -- U+1F469 👩 woman
[128139] = true, -- U+1F48B 💋 kiss mark
[128165] = true, -- U+1F4A5 💥 collision symbol
[128168] = true, -- U+1F4A8 💨 dash symbol
[128171] = true, -- U+1F4AB 💫 dizzy symbol
[128187] = true, -- U+1F4BB 💻 personal computer
[128188] = true, -- U+1F4BC 💼 brief case
[128293] = true, -- U+1F525 🔥 fire
[128295] = true, -- U+1F527 🔧 wrench
[128300] = true, -- U+1F52C 🔬 microscope
[128488] = true, -- U+1F5E8 🗨 left speech bubble
[128640] = true, -- U+1F680 🚀 rocket
[128658] = true, -- U+1F692 🚒 fire engine
[129001] = true, -- U+1F7E9 🟩 large green square
[129003] = true, -- U+1F7EB 🟫 large brown square
[129309] = true, -- U+1F91D 🤝 handshake
[129455] = true, -- U+1F9AF 🦯 probing cane
[129456] = true, -- U+1F9B0 🦰 emoji component red hair
[129457] = true, -- U+1F9B1 🦱 emoji component curly hair
[129458] = true, -- U+1F9B2 🦲 emoji component bald
[129459] = true, -- U+1F9B3 🦳 emoji component white hair
[129466] = true, -- U+1F9BA 🦺 safety vest
[129468] = true, -- U+1F9BC 🦼 motorized wheelchair
[129469] = true, -- U+1F9BD 🦽 manual wheelchair
[129489] = true, -- U+1F9D1 🧑 adult
[129490] = true, -- U+1F9D2 🧒 child
[129648] = true, -- U+1FA70 🩰 ballet shoes
[129657] = true, -- U+1FA79 🩹 adhesive bandage
[129775] = true, -- U+1FAEF fight cloud
[129778] = true, -- U+1FAF2 🫲 leftwards hand
}
--[[----------------------< L A N G U A G E S U P P O R T >-------------------
These tables and constants support various language-specific functionality.
]]
--local this_wiki_code = mw.getContentLanguage():getCode(); -- get this wiki's language code
local this_wiki_code = lang_obj:getCode(); -- get this wiki's language code
if string.match (mw.site.server, 'wikidata') then
this_wiki_code = mw.getCurrentFrame():callParserFunction('int', {'lang'}); -- on Wikidata so use interface language setting instead
end
local mw_languages_by_tag_t = mw.language.fetchLanguageNames (this_wiki_code, 'all'); -- get a table of language tag/name pairs known to Wikimedia; used for interwiki tests
local mw_languages_by_name_t = {};
for k, v in pairs (mw_languages_by_tag_t) do -- build a 'reversed' table name/tag language pairs know to MediaWiki; used for |language=
v = mw.ustring.lower (v); -- lowercase for tag fetch; get name's proper case from mw_languages_by_tag_t[<tag>]
if mw_languages_by_name_t[v] then -- when name already in the table
if 2 == #k or 3 == #k then -- if tag does not have subtags
mw_languages_by_name_t[v] = k; -- prefer the shortest tag for this name
end
else -- here when name not in the table
mw_languages_by_name_t[v] = k; -- so add name and matching tag
end
end
local inter_wiki_map = {}; -- map of interwiki prefixes that are language-code prefixes
for k, v in pairs (mw.site.interwikiMap ('local')) do -- spin through the base interwiki map (limited to local)
if mw_languages_by_tag_t[v["prefix"]] then -- if the prefix matches a known language tag
inter_wiki_map[v["prefix"]] = true; -- add it to our local map
end
end
--[[--------------------< S C R I P T _ L A N G _ C O D E S >-------------------
This table is used to hold ISO 639-1 two-character and ISO 639-3 three-character
language codes that apply only to |script-title= and |script-chapter=
]]
local script_lang_codes = {
'ab', 'am', 'ar', 'as', 'az', 'be', 'bg', 'bn', 'bo', 'bs', 'ce', 'chr',
'cu', 'dv', 'dz', 'el', 'fa', 'grc', 'gu', 'he', 'hi', 'hy', 'ja', 'ka',
'kaa', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'lo', 'mk', 'ml', 'mn', 'mni',
'mr', 'my', 'ne', 'or', 'ota', 'pa', 'ps', 'ru', 'sd', 'si', 'sr', 'syc',
'ta', 'te', 'tg', 'th', 'ti', 'tkr', 'tt', 'ug', 'uk', 'ur', 'uz', 'yi',
'yue', 'zh', 'zgh'
};
--[[---------------< L A N G U A G E R E M A P P I N G >----------------------
These tables hold language information that is different (correct) from MediaWiki's definitions
For each ['<tag>'] = 'language name' in lang_code_remap{} there must be a matching ['language name'] = {'language name', '<tag>'} in lang_name_remap{}
lang_tag_remap{}:
key is always lowercase ISO 639-1, -2, -3 language tag or a valid lowercase IETF language tag
value is properly spelled and capitalized language name associated with <tag>
only one language name per <tag>;
key/value pair must have matching entry in lang_name_remap{}
lang_name_remap{}:
key is always lowercase language name
value is a table the holds correctly spelled and capitalized language name [1] and associated tag [2] (tag must match a tag key in lang_tag_remap{})
may have multiple keys referring to a common preferred name and tag; For example:
['kolsch'] and ['kölsch'] both refer to 'Kölsch' and 'ksh'
]]
local lang_tag_remap = {
["aa"] = "العفارية",
["aao"] = "العربية",
["aar"] = "العفارية",
["aars"] = "العفارية",
["abh"] = "العربية",
["abk"] = "الأبخازية",
["abks"] = "الأبخازية",
["abv"] = "العربية",
["acm"] = "العربية",
["acq"] = "العربية",
["acw"] = "العربية",
["acx"] = "العربية",
["acy"] = "العربية",
["adf"] = "العربية",
["ady"] = "الأديغية",
["aeb"] = "العربية",
["aec"] = "العربية",
["afb"] = "العربية",
["afr"] = "الأفريقانية",
["afrs"] = "الأفريقانية",
["ags"] = "الإسمبية",
["ajp"] = "العربية",
["aka"] = "الأكانية",
["alb"] = "الألبانية",
["als"] = "توسكية ألبانيا",
["amh"] = "الأمهرية",
["apc"] = "العربية",
["apd"] = "العربية",
["ara"] = "العربية",
["arb"] = "العربية",
["arg"] = "الأراغونية",
["arm"] = "الأرمنية",
["arn"] = "المابوتشية",
["arq"] = "العربية",
["ars"] = "العربية",
["ary"] = "العربية",
["arz"] = "العربية",
["as"] = "الآسامية",
["asm"] = "الآسامية",
["ast"] = "الأستورية",
["auz"] = "العربية",
["ava"] = "الأوارية",
["ave"] = "الأفستية",
["avl"] = "العربية",
["ayh"] = "العربية",
["ayl"] = "العربية",
["aym"] = "الأيمارا",
["ayn"] = "العربية",
["ayp"] = "العربية",
["az"] = "الأذرية",
["azb"] = "أذرية الجنوب",
["aze"] = "الأذرية",
["ba"] = "الباشقيرية",
["bak"] = "الباشقيرية",
["bam"] = "البمبرية",
["ban"] = "البالية",
["baq"] = "البشكنشية",
["bar"] = "البافارية",
["bbc"] = "الباتاكية",
["bbz"] = "العربية",
["bcc"] = "بلوشية الجنوب",
["bcl"] = "البيكولية الوسطى",
["bel"] = "البيلاروسية",
["ben"] = "البنغالية",
["bh"] = "البهارية",
["bho"] = "البوجبورية",
["bih"] = "البهارية",
["bis"] = "البيسلامية",
["bm"] = "البمبرية",
["bod"] = "التبتية",
["bos"] = "البوسنية",
["boss"] = "البوسنية",
["bre"] = "البريتونية",
["bul"] = "البلغارية",
["buls"] = "البلغارية",
["bur"] = "البورمية",
["ca-valencia"] = "البلنسية",
["ca"] = "القطلونية",
["cat"] = "القطلونية",
["ces"] = "التشيكية",
["ch"] = "التسمورية",
["cha"] = "التسمورية",
["che"] = "الشيشانية",
["chi"] = "الصينية",
["cho"] = "التشكتاوية",
["chu"] = "سلافية الكنسية",
["chv"] = "التشوفاشية",
["co"] = "الكورسية",
["cor"] = "الكورنية",
["cos"] = "الكورسية",
["cr"] = "الكرية",
["cre"] = "الكرية",
["crh"] = "تتارية القرم",
["crs"] = "كريولية سيشيل",
["cu"] = "سلافية الكنسية",
["cv"] = "التشوفاشية",
["cym"] = "الويلزية",
["cze"] = "التشيكية",
["da"] = "الدنماركية",
["dan"] = "الدنماركية",
["de_at"] = "الألمانية",
["de-at"] = "الألمانية",
["de-ch"] = "الألمانية السويسرية الموحدة",
["deu"] = "الألمانية",
["deus"] = "الألمانية",
["div"] = "المالديفية",
["dsb"] = "الصوربية السفلى",
["dut"] = "الهولندية",
["dz"] = "الدزونكية",
["dzo"] = "الدزونكية",
["ee"] = "الإوية",
["ell"] = "اليونانية",
["ells"] = "اليونانية",
["eng"] = "الإنجليزية",
["engs"] = "الإنجليزية",
["en-au"] = "الإنجليزية الأسترالية",
["en-ca"] = "الإنجليزية الكندية",
["en-gb"] = "الإنجليزية البريطانية",
["en-uk"] = "الإنجليزية البريطانية",
["en-in"] = "الإنجليزية الهندية",
["en-nz"] = "الإنجليزية النيوزيلندية",
["en-us"] = "الإنجليزية الأمريكية",
["epo"] = "الإسبرانتو",
["es_419"] = "إسبانية أمريكا اللاتينية",
["es_es"] = "الإسبانية",
["es_mx"] = "إسبانية المكسيك",
["est"] = "الإستونية",
["eu"] = "البشكنشية",
["eus"] = "البشكنشية",
["ewe"] = "الإوية",
["fao"] = "الفاروية",
["fas"] = "الفارسية",
["fij"] = "الفيجية",
["fin"] = "الفنلندية",
["fkv"] = "Kven",
["fr_ca"] = "فرنسية كندا",
["fr_ch"] = "فرنسية سويسرا",
["fra"] = "الفرنسية",
["fras"] = "الفرنسية",
["fre"] = "الفرنسية",
["fry"] = "الفريزية",
["ful"] = "الفولانية",
["fy"] = "الفريزية",
["gd"] = "غيلية إسكتنلدا",
["geo"] = "الجورجية",
["ger"] = "الألمانية",
["gl"] = "الجليقية",
["gla"] = "غيلية إسكتنلدا",
["gle"] = "الأيرلندية",
["glg"] = "الغاليسية",
["glv"] = "المنكية",
["gom"] = "الكونكانية",
["grc"] = "الإغريقية",
["gre"] = "اليونانية",
["grn"] = "الغوارانية",
["gu"] = "الكجراتية",
["guj"] = "الكجراتية",
["ha"] = "الهوسية",
["hat"] = "الكريولية الهايتية",
["hau"] = "الهوسية",
["hbs"] = "كرواتية صربيا",
["heb"] = "العبرية",
["her"] = "الهيريرو",
["hif"] = "هندية فيجي",
["hin"] = "الهندية",
["hins"] = "الهندية",
["hmo"] = "الهيرية",
["ho"] = "الهيرية",
["hrv"] = "الكرواتية",
["hu"] = "المجرية",
["hun"] = "المجرية",
["hye"] = "الأرمنية",
["ia"] = "لغة وسيطة",
["ibo"] = "الإيجبو",
["ice"] = "الآيسلندية",
["ido"] = "الإيدو",
["idos"] = "الإيدو",
["ii"] = "النؤوسوية",
["iii"] = "النؤوسوية",
["ike"] = "الآيكية",
["iku"] = "الإنكتيتوتية",
["ile"] = "الإنترلينج",
["ilo"] = "الإيلوكانوية",
["ina"] = "لغة وسيطة",
["ind"] = "الإندونيسية",
["ipk"] = "الإينبياك",
["is"] = "الآيسلندية",
["isl"] = "الآيسلندية",
["ita"] = "الإيطالية",
["itas"] = "الإيطالية",
["iu"] = "الإنكتيتوتية",
["ja-hani"] = "اليابانية",
["jav"] = "الجاوية",
["jpn"] = "اليابانية",
["kal"] = "الغرينية",
["kan"] = "الكنادية",
["kas"] = "الكشميرية",
["kat"] = "الجورجية",
["kau"] = "الكانورية",
["kaz"] = "القازاقية",
["khm"] = "الخميرية",
["khw"] = "الكهوارية",
["kik"] = "الكيكيو",
["kin"] = "الروندية",
["ky"] = "القرغيزية",
["kir"] = "القرغيزية",
["kj"] = "الكيونياما",
["kk"] = "القازاقية",
["kl"] = "الغرينية",
["kn"] = "الكنادية",
["kom"] = "الكومية",
["kon"] = "الكونغو",
["kor"] = "الكورية",
["kp-hanj"] = "الكورية",
["kr"] = "الكانورية",
["ks-deva"] = "ديفنغارية كشمير",
["ksh-x-colog"] = "الكولونيانية",
["ksh"] = "الكولشية",
["kua"] = "الكيونياما",
["kur"] = "الكردية",
["kv"] = "الكومية",
["lao"] = "اللاوية",
["lat"] = "اللاتينية",
["lats"] = "اللاتينية",
["lav"] = "اللاتفية",
["lb"] = "اللوكسمبورغية",
["lg"] = "الجاندية",
["lim"] = "الليمبورغية",
["lin"] = "اللينغالية",
["lit"] = "الليتوانية",
["lmo"] = "اللومباردية",
["ln"] = "اللينغالية",
["ltz"] = "اللوكسمبورغية",
["lu"] = "التشيلوبا",
["lub"] = "التشيلوبا",
["lug"] = "الجاندية",
["mac"] = "المقدونية",
["mah"] = "المارشالية",
["mal"] = "الماليالامية",
["mao"] = "الماورية",
["mar"] = "المراثية",
["may"] = "الملايوية",
["mfe"] = "كريولية موريشوس",
["mg"] = "الملغاشية",
["mis-x-ripuar"] = "الريبوارية",
["mkd"] = "المقدونية",
["ml"] = "الماليالامية",
["mlg"] = "الملغاشية",
["mlt"] = "المالطية",
["mo"] = "المولدوفية",
["mol"] = "المولدوفية",
["mon"] = "المنغولية",
["mr"] = "المراثية",
["mri"] = "الماورية",
["ms"] = "الملايوية",
["msa"] = "الملايوية",
["mul"] = "اللغات المتعددة",
["mya"] = "البورمية",
["mzn"] = "الطبرية",
["na"] = "الناوروية",
["nan-tw"] = "هوكينية تايوان",
["nan"] = "مينانية الجنوب",
["nau"] = "الناوروية",
["nav"] = "النافاجو",
["nb-no"] = "النرويجية البوكمول",
["nb"] = "النرويجية البوكمول",
["nbl"] = "نديبلي الجنوبية",
["nde"] = "النديبيل الشمالية",
["ndo"] = "الندونجا",
["nep"] = "النيبالية",
["nl_be"] = "الفلمنكية",
["nld"] = "الهولندية",
["nn"] = "النرويجية النينوشك",
["nno"] = "النرويجية النينوشك",
["nob"] = "النرويجية البوكمول",
["non"] = "النوردية القديمة",
["nor"] = "النرويجية",
["nr"] = "نديبلي الجنوبية",
["nrf"] = "الغيرنزية",
["nya"] = "النيانجا",
["oc"] = "القسطانية",
["oci"] = "القسطانية",
["oji"] = "الأوجيبوا",
["ori"] = "الأورية",
["orm"] = "الأورومية",
["os"] = "الأوسيتية",
["oss"] = "الأوسيتية",
["pan"] = "البنجابية",
["per"] = "الفارسية",
["pga"] = "اللهجة الكريولية",
["pli"] = "البالية",
["pnt"] = "البنطسية",
["pol"] = "البولندية",
["pols"] = "البولندية",
["por"] = "البرتغالية",
["ps"] = "البشتوية",
["pt_br"] = "البرتغالية البرازيلية",
["pus"] = "البشتوية",
["qu"] = "الكتشوية",
["que"] = "الكتشوية",
["rn"] = "الكيروندية",
["ro_md"] = "المولدوفية",
["roa"] = "الغيرنزية",
["roh"] = "الرومانشية",
["ron"] = "الرومانية",
["rum"] = "الرومانية",
["run"] = "الكيروندية",
["rus"] = "الروسية",
["rw"] = "الروندية",
["sag"] = "السانغوية",
["sah"] = "الساخية",
["san"] = "السنسكريتية",
["scc"] = "الصربية",
["sco"] = "الإسكتلندية",
["scr"] = "الكرواتية",
["se"] = "سامية الشمال",
["sg"] = "السانغوية",
["sh"] = "كرواتية صربيا",
["sin"] = "السنهالية",
["sl"] = "السلوفينية",
["slk"] = "السلوفاكية",
["slo"] = "السلوفاكية",
["slv"] = "السلوفينية",
["sm"] = "الساموية",
["sma"] = "سامية الجنوب",
["sme"] = "سامية الشمال",
["smo"] = "الساموية",
["sna"] = "الشونا",
["snd"] = "السندية",
["som"] = "الصومالية",
["sot"] = "السوتية",
["spa"] = "الإسبانية",
["sqi"] = "الألبانية",
["sr-ec"] = "الصربية (بالحرف السيريلي)",
["sr-el"] = "الصربية (بالحرف اللاتيني)",
["srd"] = "السردينية",
["srp"] = "الصربية",
["ss"] = "السوازية",
["ssh"] = "اللهجة الشحية",
["ssw"] = "السوازية",
["st"] = "السوتية",
["su"] = "الصندية",
["sun"] = "الصندية",
["swa"] = "السواحلية",
["swe"] = "السويدية",
["syc"] = "السريانية",
["syr"] = "السريانية",
["tah"] = "التاهيتية",
["tam"] = "التاميلية",
["tat"] = "التترية",
["tcy"] = "التولو",
["tel"] = "التيلوغوية",
["tgk"] = "الطاجيكية",
["tgl"] = "التاغالوغية",
["th"] = "التايلندية",
["tha"] = "التايلندية",
["tib"] = "التبتية",
["tir"] = "التغرينية",
["ton"] = "التونغية",
["ts"] = "التسونجية",
["tsn"] = "التسوانية",
["tso"] = "التسونجية",
["tuk"] = "التركمانية",
["tulu"] = "التولو",
["tur"] = "التركية",
["twi"] = "التوي",
["uig"] = "الأويغورية",
["ukr"] = "الأوكرانية",
["ur"] = "الأردية",
["urd"] = "الأردية",
["uzb"] = "الأوزبكية",
["ve"] = "الفيندية",
["ven"] = "الفيندية",
["vie"] = "الفيتنامية",
["vo"] = "الفولابوكية",
["vol"] = "الفولابوكية",
["wa"] = "الوالونية",
["wel"] = "الويلزية",
["wlm"] = "الويلزية الوسطى",
["wln"] = "الوالونية",
["wol"] = "الولوفية",
["xh"] = "الخوسية",
["xho"] = "الخوسية",
["xmf"] = "المنغريلية",
["xpu"] = "البونيقية",
["yid"] = "اليديشية",
["yo"] = "يوروبية",
["yor"] = "يوروبية",
["yue"] = "الكنتونية",
["zh_hans"] = "الصينية المبسطة",
["zh_hant"] = "الصينية التقليدية",
["zh-classical"] = "الصينية التقليدية",
["zh-cn"] = "الصينية",
["zh-hani"] = "الصينية",
["zh-s"] = "الصينية المبسطة",
["zh-t"] = "الصينية التقليدية",
["zh-tw"] = "الصينية المبسطة",
["zh-yue-hani"] = "الكنتونية",
["zh-yue"] = "الكانتونية",
["zha"] = "الزهيونج",
["zho"] = "الصينية",
["zu"] = "الزولوية",
["zul"] = "الزولوية",
}
local lang_name_remap = {
["abkhaze"] = { "الأبخازية", "ab"},
["abkhazian"] = { "الأبخازية", "ab"},
["afar"] = { "العفارية", "aa"},
["afrikaans"] = { "الأفريقانية", "af"},
["akan"] = { "الأكانية", "ak"},
["albanais"] = { "الألبانية", "sq"},
["albanian"] = { "الألبانية", "sq"},
["alemannisch"] = { "الألمانية السويسرية", "gsw"},
["allemand"] = { "الألمانية", "de"},
["amharic"] = { "الأمهرية", "am"},
["amharique"] = { "الأمهرية", "am"},
["anglais"] = { "الإنجليزية", "en"},
["arabe"] = { "العربية", "ar"},
["arabic"] = { "العربية", "ar"},
["aragonais"] = { "الأراغونية", "an"},
["aragonese"] = { "الأراغونية", "an"},
["armenian"] = { "الأرمنية", "hy"},
["arménien"] = { "الأرمنية", "hy"},
["assamais"] = { "الآسامية", "as"},
["assamese"] = { "الآسامية", "as"},
["avar"] = { "الأوارية", "av"},
["avaric"] = { "الأوارية", "av"},
["avestan"] = { "الأفستية", "ae"},
["avestique"] = { "الأفستية", "ae"},
["aymara"] = { "الأيمارا", "ay"},
["azerbaijani"] = { "الأذرية", "az"},
["azéri"] = { "الأذرية", "az"},
["bachkir"] = { "الباشقيرية", "ba"},
["bambara"] = { "البمبرية", "bm"},
["bangla"] = { "البنغالية", "bn"},
["bashkir"] = { "الباشقيرية", "ba"},
["basque"] = { "البشكنشية", "eu"},
["belarusian"] = { "البيلاروسية", "be"},
["bengali"] = { "البنغالية", "bn"},
["bhojpuri"] = { "البوجبورية", "bho"},
["bichelamar"] = { "البيسلامية", "bi"},
["biélorusse"] = { "البيلاروسية", "be"},
["bihari"] = { "البهارية", "bh"},
["birman"] = { "البورمية", "my"},
["bislama"] = { "البيسلامية", "bi"},
["blackfoot"] = { "النيتسيتابية", "bla"},
["bosnian"] = { "البوسنية", "bs"},
["bosniaque"] = { "البوسنية", "bs"},
["breton"] = { "البريتونية", "br"},
["bulgare"] = { "البلغارية", "bg"},
["bulgarian"] = { "البلغارية", "bg"},
["burmese"] = { "البورمية", "my"},
["cachemiri"] = { "الكشميرية", "ks"},
["catalan"] = { "القطلونية", "ca"},
["chamorro"] = { "التسمورية", "ch"},
["chechen"] = { "الشيشانية", "ce"},
["chewa"] = { "النيانجا", "ny"},
["chinese"] = { "الصينية", "zh"},
["chinois"] = { "الصينية", "zh"},
["church slavic"] = { "سلافية الكنسية", "cu"},
["chuvash"] = { "التشوفاشية", "cv"},
["cingalais"] = { "السنهالية", "si"},
["colognian"] = { "الكولونيانية", "ksh-x-colog"},
["coréen"] = { "الكورية", "ko"},
["cornique"] = { "الكورنية", "kw"},
["cornish"] = { "الكورنية", "kw"},
["corse"] = { "الكورسية", "co"},
["corsican"] = { "الكورسية", "co"},
["cree"] = { "الكرية", "cr"},
["créole haïtien"] = { "الكريولية الهايتية", "ht"},
["créole seychellois"] = { "كريولية سيشيل", "crs"},
["crimean tatar"] = { "تتارية القرم", "crh"},
["croate"] = { "الكرواتية", "hr"},
["croatian"] = { "الكرواتية", "hr"},
["czech"] = { "التشيكية", "cs"},
["danish"] = { "الدنماركية", "da"},
["danois"] = { "الدنماركية", "da"},
["divehi"] = { "المالديفية", "dv"},
["dutch"] = { "الهولندية", "nl"},
["dzongkha"] = { "الدزونكية", "dz"},
["english"] = { "الإنجليزية", "en"},
["espagnol"] = { "الإسبانية", "es"},
["esperanto"] = { "الإسبرانتو", "eo"},
["espéranto"] = { "الإسبرانتو", "eo"},
["estonian"] = { "الإستونية", "et"},
["estonien"] = { "الإستونية", "et"},
["ewe"] = { "الإوية", "ee"},
["éwé"] = { "الإوية", "ee"},
["faroese"] = { "الفاروية", "fo"},
["féroïen"] = { "الفاروية", "fo"},
["fidjien"] = { "الفيجية", "fj"},
["fijian"] = { "الفيجية", "fj"},
["finnish"] = { "الفنلندية", "fi"},
["finnois"] = { "الفنلندية", "fi"},
["français"] = { "الفرنسية", "fr"},
["french"] = { "الفرنسية", "fr"},
["frison occidental"] = { "الفريزية", "fy"},
["fulah"] = { "الفولانية", "ff"},
["gaélique écossais"] = { "غيلية إسكتنلدا", "gd"},
["galician"] = { "الجليقية", "gl"},
["galicien"] = { "الجليقية", "gl"},
["gallois"] = { "الويلزية", "cy"},
["ganda"] = { "الجاندية", "lg"},
["georgian"] = { "الجورجية", "ka"},
["géorgien"] = { "الجورجية", "ka"},
["german"] = { "الألمانية", "de"},
["goudjerati"] = { "الكجراتية", "gu"},
["grec"] = { "اليونانية", "el"},
["greek"] = { "اليونانية", "el"},
["groenlandais"] = { "الغرينية", "kl"},
["guarani"] = { "الغوارانية", "gn"},
["gujarati"] = { "الكجراتية", "gu"},
["haitian creole"] = { "الكريولية الهايتية", "ht"},
["haoussa"] = { "الهوسية", "ha"},
["hausa"] = { "الهوسية", "ha"},
["hébre"] = { "العبرية", "he"},
["hebrew"] = { "العبرية", "he"},
["herero"] = { "الهيريرو", "hz"},
["héréro"] = { "الهيريرو", "hz"},
["hindi"] = { "الهندية", "hi"},
["hiri mot"] = { "الهيرية", "ho"},
["hongrois"] = { "المجرية", "hu"},
["hungarian"] = { "المجرية", "hu"},
["icelandic"] = { "الآيسلندية", "is"},
["ido"] = { "الإيدو", "io"},
["igbo"] = { "الإيجبو", "ig"},
["ilocano"] = { "الإيلوكانوية", "ilo"},
["indonesian"] = { "الإندونيسية", "id"},
["indonésien"] = { "الإندونيسية", "id"},
["interlingua"] = { "لغة وسيطة", "ia"},
["interlingue"] = { "الإنترلينج", "ie"},
["inuktitut"] = { "الإنكتيتوتية", "iu"},
["inupiaq"] = { "الإينبياك", "ik"},
["irish"] = { "الأيرلندية", "ga"},
["irlandais"] = { "الأيرلندية", "ga"},
["islandais"] = { "الآيسلندية", "is"},
["italian"] = { "الإيطالية", "it"},
["italien"] = { "الإيطالية", "it"},
["japanese"] = { "اليابانية", "ja"},
["japonais"] = { "اليابانية", "ja"},
["javanais"] = { "الجاوية", "jv"},
["javanese"] = { "الجاوية", "jv"},
["kalaallisut"] = { "الغرينية", "kl"},
["kannada"] = { "الكنادية", "kn"},
["kanouri"] = { "الكانورية", "kr"},
["kanuri"] = { "الكانورية", "kr"},
["kashmiri"] = { "الكشميرية", "ks"},
["kazakh"] = { "القازاقية", "kk"},
["khmer"] = { "الخميرية", "km"},
["kikongo"] = { "الكونغو", "kg"},
["kikuy"] = { "الكيكيو", "ki"},
["kinyarwanda"] = { "الروندية", "rw"},
["kirghize"] = { "القرغيزية", "ky"},
["kolsch"] = { "الكولشية", "ksh"},
["kölsch"] = { "الكولشية", "ksh"},
["komi"] = { "الكومية", "kv"},
["kongo"] = { "الكونغو", "kg"},
["korean"] = { "الكورية", "ko"},
["kuanyama"] = { "الكيونياما", "kj"},
["kurde"] = { "الكردية", "ku"},
["kurdish"] = { "الكردية", "ku"},
["Kven"] = { "Kven", "fkv"},
["kvensk"] = { "Kven", "fkv"},
["kyrgyz"] = { "القرغيزية", "ky"},
["lao"] = { "اللاوية", "lo"},
["latin"] = { "اللاتينية", "la"},
["latvian"] = { "اللاتفية", "lv"},
["letton"] = { "اللاتفية", "lv"},
["limbourgeois"] = { "الليمبورغية", "li"},
["limburgish"] = { "الليمبورغية", "li"},
["lingala"] = { "اللينغالية", "ln"},
["lithuanian"] = { "الليتوانية", "lt"},
["lituanien"] = { "الليتوانية", "lt"},
["luba-katanga (kiluba)"] = { "التشيلوبا", "lu"},
["luba-katanga"] = { "التشيلوبا", "lu"},
["luxembourgeois"] = { "اللوكسمبورغية", "lb"},
["luxembourgish"] = { "اللوكسمبورغية", "lb"},
["macedonian"] = { "المقدونية", "mk"},
["macédonien"] = { "المقدونية", "mk"},
["malagasy"] = { "الملغاشية", "mg"},
["malais"] = { "الملايوية", "ms"},
["malay"] = { "الملايوية", "ms"},
["malayalam"] = { "الماليالامية", "ml"},
["maldivien"] = { "المالديفية", "dv"},
["malgache"] = { "الملغاشية", "mg"},
["maltais"] = { "المالطية", "mt"},
["maltese"] = { "المالطية", "mt"},
["mannois"] = { "المنكية", "gv"},
["manx"] = { "المنكية", "gv"},
["maori"] = { "الماورية", "mi"},
["marathi"] = { "المراثية", "mr"},
["marshallais"] = { "المارشالية", "mh"},
["marshallese"] = { "المارشالية", "mh"},
["moldovan"] = { "المولدوفية", "mo"},
["mongol"] = { "المنغولية", "mn"},
["mongolian"] = { "المنغولية", "mn"},
["naur"] = { "الناوروية", "na"},
["nauruan"] = { "الناوروية", "na"},
["navajo"] = { "النافاجو", "nv"},
["ndébélé du nord"] = { "النديبيل الشمالية", "nd"},
["ndébélé du sud"] = { "نديبلي الجنوبية", "nr"},
["ndonga"] = { "الندونجا", "ng"},
["néerlandais"] = { "الهولندية", "nl"},
["népalais"] = { "النيبالية", "ne"},
["nepali"] = { "النيبالية", "ne"},
["north ndebele"] = { "النديبيل الشمالية", "nd"},
["northern sami"] = { "سامية الشمال", "se"},
["norvégien bokmål"] = { "النرويجية البوكمول", "nb"},
["norvégien nynorsk"] = { "النرويجية النينوشك", "nn"},
["norvégien"] = { "النرويجية", "no"},
["norwegian bokmål"] = { "النرويجية البوكمول", "nb"},
["norwegian nynorsk"] = { "النرويجية النينوشك", "nn"},
["norwegian"] = { "النرويجية", "no"},
["nyanja"] = { "النيانجا", "ny"},
["occitan"] = { "القسطانية", "oc"},
["odia"] = { "الأورية", "or"},
["ojibwa"] = { "الأوجيبوا", "oj"},
["oromo"] = { "الأورومية", "om"},
["ossète"] = { "الأوسيتية", "os"},
["ossetic"] = { "الأوسيتية", "os"},
["ouïghour"] = { "الأويغورية", "ug"},
["ourdo"] = { "الأردية", "ur"},
["ouzbek"] = { "الأوزبكية", "uz"},
["pachto"] = { "البشتوية", "ps"},
["pali"] = { "البالية", "pi"},
["pashto"] = { "البشتوية", "ps"},
["pendjabi"] = { "البنجابية", "pa"},
["persan"] = { "الفارسية", "fa"},
["persian"] = { "الفارسية", "fa"},
["peul"] = { "الفولانية", "ff"},
["polish"] = { "البولندية", "pl"},
["polonais"] = { "البولندية", "pl"},
["portugais"] = { "البرتغالية", "pt"},
["portuguese"] = { "البرتغالية", "pt"},
["punjabi"] = { "البنجابية", "pa"},
["quechua"] = { "الكتشوية", "qu"},
["ripuarian"] = { "الريبوارية", "mis-x-ripuar"},
["romanche"] = { "الرومانشية", "rm"},
["romanian"] = { "الرومانية", "ro"},
["romansh"] = { "الرومانشية", "rm"},
["roumain"] = { "الرومانية", "ro"},
["roundi"] = { "الكيروندية", "rn"},
["rundi"] = { "الكيروندية", "rn"},
["russe"] = { "الروسية", "ru"},
["russian"] = { "الروسية", "ru"},
["same du nord"] = { "سامية الشمال", "se"},
["samoan"] = { "الساموية", "sm"},
["sango"] = { "السانغوية", "sg"},
["sanskrit"] = { "السنسكريتية", "sa"},
["sarde"] = { "السردينية", "sc"},
["sardinian"] = { "السردينية", "sc"},
["scottish gaelic"] = { "غيلية إسكتنلدا", "gd"},
["serbe"] = { "الصربية", "sr"},
["serbian"] = { "الصربية", "sr"},
["serbo-croate"] = { "كرواتية صربيا", "sh"},
["serbo-croatian"] = { "كرواتية صربيا", "sh"},
["seselwa creole french"] = { "كريولية سيشيل", "crs"},
["shona"] = { "الشونا", "sn"},
["sichuan yi"] = { "النؤوسوية", "ii"},
["sindhi"] = { "السندية", "sd"},
["sinhala"] = { "السنهالية", "si"},
["slavon d’église"] = { "سلافية الكنسية", "cu"},
["slovak"] = { "السلوفاكية", "sk"},
["slovaque"] = { "السلوفاكية", "sk"},
["slovène"] = { "السلوفينية", "sl"},
["slovenian"] = { "السلوفينية", "sl"},
["somali"] = { "الصومالية", "so"},
["sotho du sud"] = { "السوتية", "st"},
["soundanais"] = { "الصندية", "su"},
["sundanese"] = { "الصندية", "su"},
["south ndebele"] = { "نديبلي الجنوبية", "nr"},
["southern sotho"] = { "السوتية", "st"},
["spanish"] = { "الإسبانية", "es"},
["suédois"] = { "السويدية", "sv"},
["swahili"] = { "السواحلية", "sw"},
["swati"] = { "السوازية", "ss"},
["swedish"] = { "السويدية", "sv"},
["swiss high german"] = { "الألمانية السويسرية الموحدة", "de-ch"},
["tadjik"] = { "الطاجيكية", "tg"},
["tagalog"] = { "التاغالوغية", "tl"},
["tahitian"] = { "التاهيتية", "ty"},
["tahitien"] = { "التاهيتية", "ty"},
["taiwanese hokkien"] = { "هوكينية تايوان", "nan-tw"},
["tajik"] = { "الطاجيكية", "tg"},
["tamil"] = { "التاميلية", "ta"},
["tamoul"] = { "التاميلية", "ta"},
["tatar"] = { "التترية", "tt"},
["tchèque"] = { "التشيكية", "cs"},
["tchétchène"] = { "الشيشانية", "ce"},
["tchouvache"] = { "التشوفاشية", "cv"},
["télougo"] = { "التيلوغوية", "te"},
["telug"] = { "التيلوغوية", "te"},
["thai"] = { "التايلندية", "th"},
["thaï"] = { "التايلندية", "th"},
["tibétain"] = { "التبتية", "bo"},
["tibetan"] = { "التبتية", "bo"},
["tigrigna"] = { "التغرينية", "ti"},
["tigrinya"] = { "التغرينية", "ti"},
["tongan"] = { "التونغية", "to"},
["tongien"] = { "التونغية", "to"},
["tosk albanian"] = { "توسكية ألبانيا", "als"},
["tsonga"] = { "التسونجية", "ts"},
["tswana"] = { "التسوانية", "tn"},
["turc"] = { "التركية", "tr"},
["turkish"] = { "التركية", "tr"},
["turkmen"] = { "التركمانية", "tk"},
["turkmène"] = { "التركمانية", "tk"},
["twi"] = { "التوي", "tw"},
["ukrainian"] = { "الأوكرانية", "uk"},
["ukrainien"] = { "الأوكرانية", "uk"},
["urd"] = { "الأردية", "ur"},
["uyghur"] = { "الأويغورية", "ug"},
["uzbek"] = { "الأوزبكية", "uz"},
["valencian"] = { "القطلونية", "ca"},
["venda"] = { "الفيندية", "ve"},
["vietnamese"] = { "الفيتنامية", "vi"},
["vietnamien"] = { "الفيتنامية", "vi"},
["volapük"] = { "الفولابوكية", "vo"},
["wallon"] = { "الوالونية", "wa"},
["walloon"] = { "الوالونية", "wa"},
["welsh"] = { "الويلزية", "cy"},
["western frisian"] = { "الفريزية", "fy"},
["wolof"] = { "الولوفية", "wo"},
["xhosa"] = { "الخوسية", "xh"},
["yi du sichuan"] = { "النؤوسوية", "ii"},
["yiddish"] = { "اليديشية", "yi"},
["yoruba"] = { "يوروبية", "yo"},
["zhuang"] = { "الزهيونج", "za"},
["zoulo"] = { "الزولوية", "zu"},
["zul"] = { "الزولوية", "zu"},
["أذرية الجنوب"] = { "أذرية الجنوب", "azb"},
["إسبانية أمريكا اللاتينية"] = { "إسبانية أمريكا اللاتينية", "es_419"},
["إسبانية المكسيك"] = { "إسبانية المكسيك", "es_mx"},
["الآسامية"] = { "الآسامية", "as"},
["الآيسلندية"] = { "الآيسلندية", "is"},
["الآيكية"] = { "الآيكية", "ike"},
["الأبخازية"] = { "الأبخازية", "ab"},
["الأديغية"] = { "الأديغية", "ady"},
["الأذرية الجنوبية"] = { "أذرية الجنوب", "azb"},
["الأذرية"] = { "الأذرية", "az"},
["الأراغونية"] = { "الأراغونية", "an"},
["الأردوية"] = { "الأردية", "ur"},
["الأردية"] = { "الأردية", "ur"},
["الأرمنية"] = { "الأرمنية", "hy"},
["الأستورية"] = { "الأستورية", "ast"},
["الأفريقانية"] = { "الأفريقانية", "af"},
["الأفستية"] = { "الأفستية", "ae"},
["الأكانية"] = { "الأكانية", "ak"},
["الألبانية"] = { "الألبانية", "sq"},
["الألمانية"] = { "الألمانية", "de"},
["الألمانية السويسرية الموحدة"] = { "الألمانية السويسرية الموحدة", "de-ch"},
["الأمهرية"] = { "الأمهرية", "am"},
["الأوارية"] = { "الأوارية", "av"},
["الأوجيبوا"] = { "الأوجيبوا", "oj"},
["الأوردية"] = { "الأردية", "ur"},
["الأورومية"] = { "الأورومية", "om"},
["الأوريا"] = { "الأورية", "or"},
["الأورية"] = { "الأورية", "or"},
["الأوزبكية"] = { "الأوزبكية", "uz"},
["الأوسيتية"] = { "الأوسيتية", "os"},
["الأوكرانية"] = { "الأوكرانية", "uk"},
["الأويغورية"] = { "الأويغورية", "ug"},
["الأيرلندية"] = { "الأيرلندية", "ga"},
["الأيمارا"] = { "الأيمارا", "ay"},
["الإسبانية الأمريكية اللاتينية"] = { "إسبانية أمريكا اللاتينية", "es_419"},
["الإسبانية المكسيكية"] = { "إسبانية المكسيك", "es_mx"},
["الإسبانية"] = { "الإسبانية", "es"},
["الإسبرانتو"] = { "الإسبرانتو", "eo"},
["الإستونية"] = { "الإستونية", "et"},
["الإسكتلندية"] = { "الإسكتلندية", "sco"},
["الإسكندنافية القديمة"] = { "النوردية القديمة", "non"},
["الإسمبية"] = { "الإسمبية", "ags"},
["الإغريقية"] = { "الإغريقية", "grc"},
["الإنترلنغوا"] = { "لغة وسيطة", "ia"},
["الإنترلينج"] = { "الإنترلينج", "ie"},
["الإنجليزية"] = { "الإنجليزية", "en"},
["الإنجليزية الأسترالية"] = { "الإنجليزية الأسترالية", "en-au"},
["الإنجليزية الكندية"] = { "الإنجليزية الكندية", "en-ca"},
["الإنجليزية البريطانية"] = {"الإنجليزية البريطانية", "en-gb"},
["الإنجليزية البريطانية"] = {"الإنجليزية البريطانية", "en-uk"},
["الإنجليزية الهندية"] = {"الإنجليزية الهندية", "en-in"},
["الإنجليزية النيوزيلندية"] = {"الإنجليزية النيوزيلندية", "en-nz"},
["الإنجليزية الأمريكية"] = { "الإنجليزية الأمريكية", "en-us"},
["الإندونيسية"] = { "الإندونيسية", "id"},
["الإنكتيتوتية"] = { "الإنكتيتوتية", "iu"},
["الإوية"] = { "الإوية", "ee"},
["الإيجبو"] = { "الإيجبو", "ig"},
["الإيدو"] = { "الإيدو", "io"},
["الإيطالية"] = { "الإيطالية", "it"},
["الإيلوكانوية"] = { "الإيلوكانوية", "ilo"},
["الإينبياك"] = { "الإينبياك", "ik"},
["الاسكتلندية"] = { "الإسكتلندية", "sco"},
["الباتاك التوبا"] = { "الباتاكية", "bbc"},
["الباتاكية"] = { "الباتاكية", "bbc"},
["الباشقيرية"] = { "الباشقيرية", "ba"},
["البافارية"] = { "البافارية", "bar"},
["البالية"] = { "البالية", "pi"},
["البرتغالية البرازيلية"] = { "البرتغالية البرازيلية", "pt-br"},
["البرتغالية"] = { "البرتغالية", "pt"},
["البريتانية"] = { "البريتونية", "br"},
["البريتونية"] = { "البريتونية", "br"},
["البسلاما"] = { "البيسلامية", "bi"},
["البشتوية"] = { "البشتوية", "ps"},
["البشكنشية"] = { "البشكنشية", "eu"},
["البلغارية"] = { "البلغارية", "bg"},
["البلنسية"] = { "البلنسية", "ca-valencia"},
["البمبرية"] = { "البمبرية", "bm"},
["البنجابية"] = { "البنجابية", "pa"},
["البنطسية"] = { "البنطسية", "pnt"},
["البنغالية"] = { "البنغالية", "bn"},
["البهارية"] = { "البهارية", "bh"},
["البوجبورية"] = { "البوجبورية", "bho"},
["البورمية"] = { "البورمية", "my"},
["البوسنوية"] = { "البوسنية", "bs"},
["البوسنية"] = { "البوسنية", "bs"},
["البولندية"] = { "البولندية", "pl"},
["البونيقية"] = { "البونيقية", "xpu"},
["البيسلامية"] = { "البيسلامية", "bi"},
["البيكولية الوسطى"] = { "البيكولية الوسطى", "bcl"},
["البيلاروسية"] = { "البيلاروسية", "be"},
["التاغالوغية"] = { "التاغالوغية", "tl"},
["التاميلية"] = { "التاميلية", "ta"},
["التاهيتية"] = { "التاهيتية", "ty"},
["التايلندية"] = { "التايلندية", "th"},
["التبتية"] = { "التبتية", "bo"},
["التتارية القرمية"] = { "تتارية القرم", "crh"},
["التترية"] = { "التترية", "tt"},
["التركمانية"] = { "التركمانية", "tk"},
["التركية"] = { "التركية", "tr"},
["التسمورية"] = { "التسمورية", "ch"},
["التسوانية"] = { "التسوانية", "tn"},
["التسونجا"] = { "التسونجية", "ts"},
["التسونجية"] = { "التسونجية", "ts"},
["التشكتاوية"] = { "التشكتاوية", "cho"},
["التشكطوية"] = { "التشكتاوية", "cho"},
["التشوفاش"] = { "التشوفاشية", "cv"},
["التشوفاشية"] = { "التشوفاشية", "cv"},
["التشيكية"] = { "التشيكية", "cs"},
["التشيلوبا"] = { "التشيلوبا", "lu"},
["التغرينية"] = { "التغرينية", "ti"},
["التوسك الألبانية"] = { "توسكية ألبانيا", "als"},
["التولو"] = { "التولو", "tulu"},
["التونغية"] = { "التونغية", "to"},
["التوي"] = { "التوي", "tw"},
["التيلوغوية"] = { "التيلوغوية", "te"},
["الجاندا"] = { "الجاندية", "lg"},
["الجاندية"] = { "الجاندية", "lg"},
["الجاوية"] = { "الجاوية", "jv"},
["الجسرية"] = { "البنطسية", "pnt"},
["الجليقية"] = { "الجليقية", "gl"},
["الجنوبية البولشية"] = { "بلوشية الجنوب", "bcc"},
["الجواني الكونكانية"] = { "الكونكانية", "gom"},
["الجورجية"] = { "الجورجية", "ka"},
["الخميرية"] = { "الخميرية", "km"},
["الخوسية"] = { "الخوسية", "xh"},
["الدزونكا"] = { "الدزونكية", "dz"},
["الدزونكية"] = { "الدزونكية", "dz"},
["الدنماركية"] = { "الدنماركية", "da"},
["الديفهي"] = { "المالديفية", "dv"},
["الروسية"] = { "الروسية", "ru"},
["الرومانشية"] = { "الرومانشية", "rm"},
["الرومانية"] = { "الرومانية", "ro"},
["الروندية"] = { "الروندية", "rw"},
["الريبوارية"] = { "الريبوارية", "mis-x-ripuar"},
["الزهيونج"] = { "الزهيونج", "za"},
["الزولوية"] = { "الزولوية", "zu"},
["الساخية"] = { "الساخية", "sah"},
["الساموية"] = { "الساموية", "sm"},
["السامي الشمالية"] = { "سامية الشمال", "se"},
["السامية الجنوبية"] = { "سامية الجنوب", "sma"},
["السانغوية"] = { "السانغوية", "sg"},
["السردينية"] = { "السردينية", "sc"},
["السريانية"] = { "السريانية", "syc"},
["السلافونية الكنسية القديمة"] = { "سلافية الكنسية", "cu"},
["السلوفاكية"] = { "السلوفاكية", "sk"},
["السلوفينية"] = { "السلوفينية", "sl"},
["السندية"] = { "السندية", "sd"},
["السنسكريتية"] = { "السنسكريتية", "sa"},
["السنهالية"] = { "السنهالية", "si"},
["السواحلية"] = { "السواحلية", "sw"},
["السوازي"] = { "السوازية", "ss"},
["السوازية"] = { "السوازية", "ss"},
["السوتية"] = { "السوتية", "st"},
["السوندية"] = { "الصندية", "su"},
["السويدية"] = { "السويدية", "sv"},
["السيبونية"] = { "السيبيوانية", "ceb"},
["الشونا"] = { "الشونا", "sn"},
["الشيشانية"] = { "الشيشانية", "ce"},
["الصربوكرواتية"] = { "كرواتية صربيا", "sh"},
["الصربية (بالحرف السيريلي)"] = { "الصربية (بالحرف السيريلي)", "sr-ec"},
["الصربية (بالحرف اللاتيني)"] = { "الصربية (بالحرف اللاتيني)", "sr-el"},
["الصربية السيريلية"] = { "الصربية (بالحرف السيريلي)", "sr-ec"},
["الصربية اللاتينية"] = { "الصربية (بالحرف اللاتيني)", "sr-el"},
["الصربية"] = { "الصربية", "sr"},
["الصندية"] = { "الصندية", "su"},
["الصوربية السفلى"] = { "الصوربية السفلى", "dsb"},
["الصومالية"] = { "الصومالية", "so"},
["الصينية التقليدية"] = { "الصينية التقليدية", "zh-hant"},
["الصينية المبسطة"] = { "الصينية المبسطة", "zh-hans"},
["الصينية"] = { "الصينية", "zh"},
["الطاجيكية"] = { "الطاجيكية", "tg"},
["الطبرية"] = { "الطبرية", "mzn"},
["العبرية"] = { "العبرية", "he"},
["العربية الشحية"] = { "اللهجة الشحية", "ssh"},
["العربية الكريولية السودانية"] = { "اللهجة الكريولية", "pga"},
["العربية"] = { "العربية", "ar"},
["العفارية"] = { "العفارية", "aa"},
["الغاليسية"] = { "الجليقية", "gl"},
["الغرينلاندية"] = { "الغرينية", "kl"},
["الغرينية"] = { "الغرينية", "kl"},
["الغوارانية"] = { "الغوارانية", "gn"},
["الغيرنزية"] = { "الغيرنزية", "nrf"},
["الغيلية الاسكتلندية"] = { "غيلية إسكتنلدا", "gd"},
["الفارسية"] = { "الفارسية", "fa"},
["الفاروية"] = { "الفاروية", "fo"},
["الفرنسية السويسرية"] = { "فرنسية سويسرا", "fr_ch"},
["الفرنسية الكندية"] = { "فرنسية كندا", "fr_ca"},
["الفرنسية"] = { "الفرنسية", "fr"},
["الفريزية الغربية"] = { "الفريزية", "fy"},
["الفريزية"] = { "الفريزية", "fy"},
["الفلمنكية"] = { "الفلمنكية", "nl_be"},
["الفنلندية"] = { "الفنلندية", "fi"},
["الفولابوكية"] = { "الفولابوكية", "vo"},
["الفولانية"] = { "الفولانية", "ff"},
["الفيتنامية"] = { "الفيتنامية", "vi"},
["الفيجي الهندية"] = { "هندية فيجي", "hif"},
["الفيجية"] = { "الفيجية", "fj"},
["الفيندية"] = { "الفيندية", "ve"},
["القازاقية"] = { "القازاقية", "kk"},
["القبائلية (الجزائرية)"] = { "القبيلية", "kab"},
["القبائلية ال(جزائرية)"] = { "القبيلية", "kab"},
["القسطانية"] = { "القسطانية", "oc"},
["القطلونية"] = { "القطلونية", "ca"},
["القرغيزية"] = { "القرغيزية", "ky"},
["الكانتونية"] = { "الكانتونية", "zh-yue"},
["الكانورية"] = { "الكانورية", "kr"},
["الكتشوا"] = { "الكتشوية", "qu"},
["الكتشوية"] = { "الكتشوية", "qu"},
["الكجراتية"] = { "الكجراتية", "gu"},
["الكردية"] = { "الكردية", "ku"},
["الكرواتية"] = { "الكرواتية", "hr"},
["الكرية"] = { "الكرية", "cr"},
["الكريولية السيشيلية"] = { "كريولية سيشيل", "crs"},
["الكريولية الموريشية"] = { "كريولية موريشوس", "mfe"},
["الكريولية الهايتية"] = { "الكريولية الهايتية", "ht"},
["الكشميرية الديفنغارية"] = { "ديفنغارية كشمير", "ks-deva"},
["الكشميرية"] = { "الكشميرية", "ks"},
["الكلاسيكية الصينية"] = { "الصينية التقليدية", "zh-classical"},
["الكنادية"] = { "الكنادية", "kn"},
["الكنتونية"] = { "الكنتونية", "yue"},
["الكهوار"] = { "الكهوارية", "khw"},
["الكهوارية"] = { "الكهوارية", "khw"},
["الكورسية"] = { "الكورسية", "co"},
["الكورنية"] = { "الكورنية", "kw"},
["الكورية"] = { "الكورية", "ko"},
["الكولشية"] = { "الكولشية", "ksh"},
["الكولونيانية"] = { "الكولونيانية", "ksh-x-colog"},
["الكومية"] = { "الكومية", "kv"},
["الكونغو"] = { "الكونغو", "kg"},
["الكونكانية"] = { "الكونكانية", "gom"},
["الكيروندية"] = { "الكيروندية", "rn"},
["الكيكيو"] = { "الكيكيو", "ki"},
["الكيونياما"] = { "الكيونياما", "kj"},
["اللاتفية"] = { "اللاتفية", "lv"},
["اللاتينية"] = { "اللاتينية", "la"},
["اللاوية"] = { "اللاوية", "lo"},
["اللغات المتعددة"] = { "اللغات المتعددة", "mul"},
["اللهجة الشحية"] = { "اللهجة الشحية", "ssh"},
["اللهجة الكريولية"] = { "اللهجة الكريولية", "pga"},
["اللوكسمبورغية"] = { "اللوكسمبورغية", "lb"},
["اللومباردية"] = { "اللومباردية", "lmo"},
["الليتوانية"] = { "الليتوانية", "lt"},
["الليمبورغية"] = { "الليمبورغية", "li"},
["اللينغالا"] = { "اللينغالية", "ln"},
["اللينغالية"] = { "اللينغالية", "ln"},
["المابوتشية"] = { "المابوتشية", "arn"},
["المارشالية"] = { "المارشالية", "mh"},
["المالديفية"] = { "المالديفية", "dv"},
["المالطية"] = { "المالطية", "mt"},
["الماليالامية"] = { "الماليالامية", "ml"},
["الماورية"] = { "الماورية", "mi"},
["المجرية"] = { "المجرية", "hu"},
["المراثية"] = { "المراثية", "mr"},
["المقدونية"] = { "المقدونية", "mk"},
["الملايوية"] = { "الملايوية", "ms"},
["الملغاشية"] = { "الملغاشية", "mg"},
["المنغريلية"] = { "المنغريلية", "xmf"},
["المنغولية"] = { "المنغولية", "mn"},
["المنكية"] = { "المنكية", "gv"},
["المولدوفية"] = { "المولدوفية", "mo"},
["المين-نان الصينية"] = { "مينانية الجنوب", "nan"},
["النؤوسوية"] = { "النؤوسوية", "ii"},
["النافاجو"] = { "النافاجو", "nv"},
["الناورونية"] = { "الناوروية", "na"},
["الناوروية"] = { "الناوروية", "na"},
["الندونجا"] = { "الندونجا", "ng"},
["النديبلي الجنوبية"] = { "نديبلي الجنوبية", "nr"},
["النديبيل الشمالية"] = { "النديبيل الشمالية", "nd"},
["النرويجية البوكمول"] = { "النرويجية البوكمول", "nb"},
["النرويجية النينوشك"] = { "النرويجية النينوشك", "nn"},
["النرويجية"] = { "النرويجية", "no"},
["النوردية القديمة"] = { "النوردية القديمة", "non"},
["النورمندية"] = { "الغيرنزية", "nrf"},
["النيانجا"] = { "النيانجا", "ny"},
["النيبالية"] = { "النيبالية", "ne"},
["الهندية"] = { "الهندية", "hi"},
["الهوسية"] = { "الهوسية", "ha"},
["الهوكينة التايوانية"] = { "هوكينية تايوان", "nan-tw"},
["الهولندية"] = { "الهولندية", "nl"},
["الهيري الموتو"] = { "الهيرية", "ho"},
["الهيرية"] = { "الهيرية", "ho"},
["الهيريرو"] = { "الهيريرو", "hz"},
["الوالونية"] = { "الوالونية", "wa"},
["الولوفية"] = { "الولوفية", "wo"},
["الويلزية الوسطى"] = { "الويلزية الوسطى", "wlm"},
["الويلزية"] = { "الويلزية", "cy"},
["اليابانية"] = { "اليابانية", "ja"},
["اليديشية"] = { "اليديشية", "yi"},
["اليوربا"] = { "يوروبية", "yo"},
["اليونانية"] = { "اليونانية", "el"},
["بلوشية الجنوب"] = { "بلوشية الجنوب", "bcc"},
["تتارية القرم"] = { "تتارية القرم", "crh"},
["توسكية ألبانيا"] = { "توسكية ألبانيا", "als"},
["ديفنغارية كشمير"] = { "ديفنغارية كشمير", "ks-deva"},
["سامية الجنوب"] = { "سامية الجنوب", "sma"},
["سامية الشمال"] = { "سامية الشمال", "se"},
["سلافية الكنسية"] = { "سلافية الكنسية", "cu"},
["غير المعروفة"] = { "لغة غير معروفة", "und"},
["غير معروفة"] = { "لغة غير معروفة", "und"},
["غيلية إسكتنلدا"] = { "غيلية إسكتنلدا", "gd"},
["فرنسية سويسرا"] = { "فرنسية سويسرا", "fr_ch"},
["فرنسية كندا"] = { "فرنسية كندا", "fr_ca"},
["كرواتية صربيا"] = { "كرواتية صربيا", "sh"},
["كريولية سيشيل"] = { "كريولية سيشيل", "crs"},
["كريولية موريشوس"] = { "كريولية موريشوس", "mfe"},
["كوسية"] = { "الخوسية", "xh"},
["لغة وسيطة"] = { "لغة وسيطة", "ia"},
["مينانية الجنوب"] = { "مينانية الجنوب", "nan"},
["نديبلي الجنوبية"] = { "نديبلي الجنوبية", "nr"},
["هندية فيجي"] = { "هندية فيجي", "hif"},
["هوكينية تايوان"] = { "هوكينية تايوان", "nan-tw"},
["يوروبية"] = { "يوروبية", "yo"},
}
--[[---------------< P R O P E R T I E S _ C A T E G O R I E S >----------------
Properties categories. These are used for investigating qualities of citations.
]]
local prop_cats = {
['foreign-lang-source'] = 'الاستشهاد بمصادر باللغة $1 ($2)', -- |language= categories; $1 is foreign-language name, $2 is ISO639-1 code
['foreign-lang-source-2'] = 'الاستشهاد بمصادر بلغة أجنبية (أيزو 639-2)|$1', -- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code used as a sort key
['interproj-linked-name'] = 'الاستشهاد: أسماء بروابط مشاريع شقيقة interproject-linked names|$1', -- any author, editor, etc that has an interproject link; $1 is interproject tag used as a sort key
['interwiki-linked-name'] = 'الاستشهاد:وصلات إنترويكي للأسماء|$1', -- any author, editor, etc that has an interwiki link; $1 is interwiki tag used as a sort key; yeilds to interproject
['local-lang-source'] = 'الاستشهاد بمصادر باللغة $1 ($2)', -- |language= categories; $1 is local-language name, $2 is ISO639-1 code; not emitted when local_lang_cat_enable is false
['location-test'] = 'اختبار مكان الاستشهاد',
['long-vol'] = 'الاستشهاد: قيمة المجلد طويلة', -- probably temporary cat to identify scope of |volume= values longer than 4 characters
['script'] = 'الاستشهاد بمصادر بخط اللغة $1 ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
['tracked-param'] = 'وسيط استشهاد متتبع: $1', -- $1 is base (enumerators removed) parameter name
['unfit'] = 'الاستشهاد:رابط غير مناسب', -- |url-status=unfit or |url-status=usurped; used to be a maint cat
['vanc-accept'] = 'الاستشهاد:أسماء فانكوفر مع تمرير الترميز', -- for |vauthors=/|veditors= with accept-as-written markup
['year-range-abbreviated'] = "الاستشهاد: نطاق السنة المختصرة", -- probably temporary cat to identify scope of |date=, |year= values using YYYY–YY form
--#Added
['no_archive'] = 'صيانة الاستشهاد: استشهادات بمسارات غير مؤرشفة'
}
--[[-------------------< T I T L E _ T Y P E S >--------------------------------
Here we map a template's CitationClass to TitleType (default values for |type= parameter)
]]
local title_types = {
['AV-media-notes'] = 'تقارير إعلامية',
['document'] = 'وثيقة',
['interview'] = 'مقابلة',
['mailinglist'] = 'قائمة بريد',
['map'] = 'خريطة',
['podcast'] = 'بث صوتي',
['pressrelease'] = 'بيان صحفي',
['report'] = 'تقرير',
['speech'] = 'خطاب',
['techreport'] = 'تقرير فني',
['thesis'] = 'أطروحة',
}
--[[--------------------------< B U I L D _ K N O W N _ F R E E _ D O I _ R E G I S T R A N T S _ T A B L E >--
build a table of doi registrants known to be free-to-read In a doi, the registrant ID is the series of digits
between the '10.' and the first '/': in doi 10.1100/sommat, 1100 is the registrant ID
see §3.2.2 DOI prefix of the Doi Handbook p. 43
https://www.doi.org/doi-handbook/DOI_Handbook_Final.pdf#page=43
]]
local function build_free_doi_registrants_table()
local registrants_t = {};
for _, v in ipairs ({
'1045', '1074', '1096', '1100', '1155', '1186', '1194', '1371', '1613', '1629', '1989', '1999', '2147', '2196', '3285', '3389', '3390', '3906',
'3748', '3814', '3847', '3897', '4061', '4089', '4103', '4172', '4175', '4230', '4236', '4239', '4240', '4249', '4251',
'4252', '4253', '4254', '4291', '4292', '4329', '4330', '4331', '5086', '5194', '5210', '5306', '5312', '5313', '5314',
'5315', '5316', '5317', '5318', '5319', '5320', '5321', '5334', '5402', '5409', '5410', '5411', '5412',
'5492', '5493', '5494', '5495', '5496', '5497', '5498', '5499', '5500', '5501', '5527', '5528', '5662',
'6064', '6219', '7167', '7217', '7287', '7482', '7490', '7554', '7717', '7759', '7766', '9778', '11131', '11569', '11647',
'11648', '12688', '12703', '12715', '12942', '12998', '13105', '14256', '14293', '14303', '15215', '15347', '15412', '15560', '16995',
'17645', '18637', '19080', '19173', '20944', '21037', '21105', '21468', '21767', '21425', '22261', '22323', '22459', '24105', '24196', '24966',
'26775', '30845', '32545', '35711', '35712', '35713', '35995', '36648', '37126', '37532', '37871', '47128',
'47622', '47959', '52437', '52975', '53288', '53347', '54081', '54947', '55667', '55914', '57009', '58647', '59081',
}) do
registrants_t[v] = true; -- build a k/v table of known free-to-read doi registrants
end
return registrants_t;
end
-- known free registrants identifiable by the doi suffix incipit
local extended_registrants_t = { -- doi suffix incipits are evaluated as lua patterns
['1002'] = {'aelm', 'leap', 'loe2%.', 'lol2%.'}, -- Advanced Electronic Materials, Learned Publishing, L&O e-Lectures, L&O Letters
['1016'] = {'j%.aace', 'j%.aed', 'j%.aiopen', 'j%.animal', 'j%.apsb', 'j%.addicn', -- AACE Endocrinology and Diabetes, AACE Endocrinology and Diabetes, AI Open, Animal, Acta Pharmaceutica Sinica B, Addiction Neuroscience
'j%.abrep', 'j%.gpb', 'j%.heliyon', 'j%.nlp', 'j%.patter', 'j%.proche', -- Addictive Behaviors Reports, Genomics, Proteomics & Bioinformatics after 2015, Heliyon, Natural Language Processing, Patterns, Procedia Chemistry
'j%.vgie', 'S1672-0229'}, -- VideoGIE, Genomics, Proteomics & Bioinformatics before 2015
['1017'] = {'apj%.', 'nlp', 'mdh', 'S15574660'}, -- Natural Language Processing Journal, Medical History, Asia Pacific Journal
['1046'] = {'j%.1365-8711', 'j%.1365-246x'}, -- MNRAS, GJI
['1021'] = {'acscentsci', 'acsomega'}, -- ACS Central Science, ACS Omega
['1093'] = {'mnras', 'mnrasl', 'gji', 'pnasnexus', 'rasti'}, -- MNRAS, MNRAS Letters, GJI, PNAS Nexus, RASTI
['1098'] = {'rsbm', 'rsob', 'rsos'}, -- Biographical Memoirs of Fellows of the Royal Society, Open Biology, Royal Society Open Science
['1099'] = {'acmi', 'mic', '00221287', 'mgen'}, -- Access Microbiology, Microbiology, Journal of General Microbiology, Microbial Genomics
['1107'] = {'S20569890', 'S20522525', 'S16005775', 'S24143146'}, -- Acta Crystallographica E, IUCrJ, Journal of Synchrotron Radiation, IUCrData
['1109'] = {'oa', 'oj'}, -- IEEE Open Access..., IEEE Open Journal...
['1111'] = {'aogs', 'j%.1365-2966', 'j%.1745-3933', 'j%.1365-246X'}, -- Acta Obstetricia et Gynecologica Scandinavica, MNRAS, MNRAS Letters, GJI
['1128'] = {'asmcr', 'jmbe', 'mbio', 'mra', 'spectrum', 'msphere', 'msystems'}, --ASM Case Reports, Journal of Microbiology & Biology Education, mBio, Microbiology Resource Announcements, Microbiology Spectrum, mSphere, mSystems
['1136'] = {'bmjopen'}, -- BMJ Open
['1140'] = {'epjc'}, -- European Physical Journal C
['1192'] = {'bjo'}, -- BJPsych Open
['1210'] = {'jendso','jcemcr'}, -- Journal of the Endocrine Society, JCEM Case Reports
['1215'] = {'21573689', '21573698'}, -- L&O Fluids
['1590'] = {'0102-3306'}, -- Acta Botanica Brasilica
['4171'] = {'dm','mag'}, -- Documenta Mathematica, EMS Magazine
['4319'] = {'lo%.', 'lol%.', 'lom%.'}, -- L&O, L&O e-Lectures, L&O Methods
['5852'] = {'ejt'}, -- European Journal of Taxonomy
['7155'] = {'jgaa'}, -- Journal of Graph Algorithms and Applications
['11158'] = {'saasp'}, -- Systematic and Applied Acarology Special Publications
['11646'] = {'megataxa', 'mesozoic'}, -- Megataxa, Mesozoic
['14231'] = {'ag'}, -- Algebraic Geometry
['15446'] = {'abc'}, -- Acta Biológica Colombiana
['17239'] = {'jowr'}, -- Journal of Writing Research
['22073'] = {'pja'}, -- Persian Journal of Acarology
['24310'] = {'abm'}, -- Acta Botanica Malacitana
['24425'] = {'agp'}, -- Acta Geologica Polonica
['35249'] = {'rche'}, -- Revista Chilena de Entomología
['37520'] = {'fi'}, -- Fossil Imprint
['53562'] = {'ajcb'} -- Asian Journal of Conservation Biology
}
--[[===================<< E R R O R M E S S A G I N G >>======================
]]
--[[----------< E R R O R M E S S A G E S U P P L E M E N T S >-------------
I18N for those messages that are supplemented with additional specific text that
describes the reason for the error
TODO: merge this with special_case_translations{}?
]]
local err_msg_supl = {
['char'] = 'حرف غير صالح', -- |isbn=, |sbn=
['check'] = 'checksum', -- |isbn=, |sbn=
empty_str = '(نص فارغ)', -- empty unknown parameter check when cite has |=
['flag'] = 'علامة', -- |archive-url=
['form'] = 'تقديم غير صالح', -- |isbn=, |sbn=
['group'] = 'معرف مجموعة غير صالح', -- |isbn=
['initials'] = 'بادئات', -- Vancouver
['invalid language code'] = 'كود لغة غير صالح', -- |script-<param>=
['journal'] = 'دورية محكمة', -- |bibcode=
['length'] = 'طول', -- |isbn=, |bibcode=, |sbn=
['liveweb'] = 'liveweb', -- |archive-url=
['missing comma'] = 'فاصلة مفقودة', -- Vancouver
['missing prefix'] = 'بادئة مفقودة', -- |script-<param>=
['missing title part'] = 'قسم العنوان مفقود', -- |script-<param>=
['name'] = 'اسم', -- Vancouver
['non-Latin char'] = 'حرف غير لاتيني', -- Vancouver
['path'] = 'مسار', -- |archive-url=
['prefix'] = 'بادئة غير صالحة', -- |isbn=
['punctuation'] = 'علامة ترقيم', -- Vancouver
['save'] = 'أمر حفظ', -- |archive-url=
['suffix'] = 'لاحقة', -- Vancouver
['timestamp'] = 'تاريخ', -- |archive-url=
['unknown language code'] = 'كود لغة مجهول', -- |script-<param>=
['value'] = 'قيمة', -- |bibcode=
['year'] = 'سنة', -- |bibcode=
}
--[[--------------< E R R O R _ C O N D I T I O N S >---------------------------
جدول شروط الأخطاء. يتكون هذا الجدول من قسمين: أخطاء في الأعلى ، صيانة في الأسفل.
Maint 'messaging' does not have a 'message' (message=nil)
The following contains a list of IDs for various error conditions defined in the
code. For each ID, we specify a text message to display, an error category to
include, and whether the error message should be wrapped as a hidden comment.
Anchor changes require identical changes to matching anchor in Help:CS1 errors
TODO: rename error_conditions{} to something more generic; create separate error
and maint tables inside that?
]]
local error_conditions = {
err_accessdate_missing_url = {
message = 'الوسيط <code class="cs1-code">|$1</code> بحاجة لـ <code class="cs1-code">|مسار=</code>',
anchor = 'accessdate_missing_url',
category = 'أخطاء الاستشهاد: صفحات تحتوي مراجع ويب بتاريخ وصول وبدون مسار',
hidden = false
},
err_apostrophe_markup = {
message = 'استعمال الخط المائل أو الغليظ غير مسموح: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'apostrophe_markup',
category = 'أخطاء الاستشهاد: ترميز',
hidden = false
},
err_archive_date_missing_url = {
message = '<code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|مسار-الأرشيف=</code>',
anchor = 'archive_date_missing_url',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_date_url_ts_mismatch = {
message = '<code class="cs1-code">|تاريخ-الأرشيف=</code> / <code class="cs1-code">|مسار-الأرشيف=</code> لا يتطابقان في الوقت، المقترح $1',
anchor = 'archive_date_url_ts_mismatch',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_missing_date = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|تاريخ أرشيف=</code>', -- $1 is |archive-url=
anchor = 'archive_missing_date',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_missing_url = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|مسار=</code>', -- $1 is |archive-url=
anchor = 'archive_missing_url',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_url = {
message = 'الوسيط <code class="cs1-code">|مسار-الأرشيف=</code> غير صحيح: $1', -- a $1 is error message detail
anchor = 'archive_url',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_arxiv_missing = {
message = 'الوسيط <code class="cs1-code">|arxiv=</code> مطلوب',
anchor = 'arxiv_missing',
category = 'أخطاء الاستشهاد: أرخايف',
hidden = false
},
err_asintld_missing_asin = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|asin=</code>', -- $1 is parameter name
anchor = 'asintld_missing_asin',
category = 'أخطاء الاستشهاد: ASIN TLD',
hidden = false
},
err_bad_arxiv = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|arxiv=</code>',
anchor = 'bad_arxiv',
category = 'أخطاء الاستشهاد: أرخايف',
hidden = false
},
err_bad_asin = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|asin=</code>',
anchor = 'bad_asin',
category = 'أخطاء الاستشهاد: الوسيط ASIN',
hidden = false
},
err_bad_asin_tld = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|asin-tld=</code>',
anchor = 'bad_asin_tld',
category = 'أخطاء الاستشهاد: ASIN TLD',
hidden = false
},
err_bad_bibcode = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|bibcode=</code> $1', -- $1 is error message detail
anchor = 'bad_bibcode',
category = 'أخطاء الاستشهاد: بيب كود',
hidden = false
},
err_bad_biorxiv = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|biorxiv=</code> ',
anchor = 'bad_biorxiv',
category = 'أخطاء الاستشهاد: bioRxiv',
hidden = false
},
err_bad_citeseerx = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|citeseerx=</code>',
anchor = 'bad_citeseerx',
category = 'أخطاء الاستشهاد: الوسيط citeseerx',
hidden = false
},
err_bad_date = {
message = 'تحقق من التاريخ في: $1', --the $1 is a parameter name list
anchor = 'bad_date',
category = 'أخطاء الاستشهاد: التاريخ',
hidden = true
},
err_bad_doi = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|doi=</code>',
anchor = 'bad_doi',
category = 'أخطاء الاستشهاد: دوي',
hidden = false
},
err_bad_hdl = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|hdl=</code>',
anchor = 'bad_hdl',
category = 'أخطاء الاستشهاد: الوسيط HDL',
hidden = false
},
err_bad_isbn = {
message = 'تأكد من صحة <code class="cs1-code">|isbn=</code> القيمة: $1', -- $1 is error message detail
anchor = 'bad_isbn',
category = 'أخطاء الاستشهاد: ردمك',
hidden = false
},
err_bad_ismn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|ismn=</code>',
anchor = 'bad_ismn',
category = 'أخطاء الاستشهاد: الوسيط ISMN',
hidden = false
},
err_bad_issn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|$1issn=</code>', -- $1 is 'e' or '' for eissn or issn
anchor = 'bad_issn',
category = 'أخطاء الاستشهاد: الوسيط ISSN',
hidden = false
},
err_bad_jfm = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|jfm=</code>',
anchor = 'bad_jfm',
category = 'أخطاء الاستشهاد: JFM',
hidden = false
},
err_bad_jstor = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|jstor=</code>',
anchor = 'bad_jstor',
category = 'أخطاء الاستشهاد: JSTOR',
hidden = false
},
err_bad_lccn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|lccn=</code>',
anchor = 'bad_lccn',
category = 'أخطاء الاستشهاد: كونغرس',
hidden = false
},
err_bad_medrxiv = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|medrxiv=</code>',
anchor = 'bad_medrxiv',
category = 'أخطاء الاستشهاد: medRxiv',
hidden = false
},
err_bad_mr = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|mr=</code>',
anchor = 'bad_mr',
category = 'أخطاء الاستشهاد: MR',
hidden = false
},
err_bad_oclc = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|oclc=</code>',
anchor = 'bad_oclc',
category = 'أخطاء الاستشهاد: أكلس',
hidden = false
},
err_bad_ol = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|ol=</code>',
anchor = 'bad_ol',
category = 'أخطاء الاستشهاد: المكتبة المفتوحة',
hidden = false
},
err_bad_osti = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|osti=</code>',
anchor = 'bad_osti',
category = 'أخطاء الاستشهاد: OSTI',
hidden = false
},
err_bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=
message = 'تأكد من صحة قيمة <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'bad_paramlink',
category = 'أخطاء الاستشهاد: وصلة',
hidden = false
},
err_bad_pmc = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|pmc=</code>',
anchor = 'bad_pmc',
category = 'أخطاء الاستشهاد: ببمد سنترال',
hidden = false
},
err_bad_pmid = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|pmid=</code>',
anchor = 'bad_pmid',
category = 'أخطاء الاستشهاد: ببمد',
hidden = false
},
err_bad_rfc = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|rfc=</code>',
anchor = 'bad_rfc',
category = 'أخطاء الاستشهاد: RFC',
hidden = false
},
err_bad_s2cid = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|s2cid=</code>',
anchor = 'bad_s2cid',
category = 'أخطاء الاستشهاد: S2CID',
hidden = false
},
err_bad_sbn = {
message = 'تأكد من قيمة <code class="cs1-code">|sbn=</code>: $1', -- $1 is error message detail
anchor = 'bad_sbn',
category = 'أخطاء الاستشهاد: SBN',
hidden = false
},
err_bad_ssrn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|ssrn=</code>',
anchor = 'bad_ssrn',
category = 'أخطاء الاستشهاد: SSRN',
hidden = false
},
err_bad_url = {
message = 'تحقق من قيمة $1',
anchor = 'bad_url',
category = 'أخطاء الاستشهاد: المسار',
hidden = false
},
err_bad_usenet_id = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|message-id=</code>',
anchor = 'bad_message_id',
category = 'أخطاء الاستشهاد: معرف الرسالة',
hidden = false
},
err_bad_zbl = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|zbl=</code>',
anchor = 'bad_zbl',
category = 'أخطاء الاستشهاد: Zbl',
hidden = false
},
err_bare_url_missing_title = {
message = '$1 بحاجة لعنوان', -- a $1 is parameter name
anchor = 'bare_url_missing_title',
category = 'أخطاء الاستشهاد: قصور في مسار ',
hidden = false
},
--#Added
err_wikidata_bare_url_missing_title = {
message = '$1 بحاجة لعنوان', -- a $1 is parameter name
anchor = 'bare_url_missing_title',
category = 'أخطاء الاستشهاد: من ويكي بيانات: قصور في مسار',
hidden = true
},
err_biorxiv_missing = {
message = 'الوسيط <code class="cs1-code">|biorxiv=</code> مطلوب',
anchor = 'biorxiv_missing',
category = 'أخطاء الاستشهاد: bioRxiv', -- same as bad bioRxiv
hidden = false
},
err_chapter_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'chapter_ignored',
category = 'أخطاء الاستشهاد: الفصل تم تجاهله',
hidden = false
},
err_citation_missing_title = {
message = 'الوسيط <code class="cs1-code">|$1=</code> غير موجود أو فارغ', --a $1 is parameter name 'مفقود أو فارغ <code class="cs1-code">|$1=</code>'
anchor = 'citation_missing_title',
category = 'أخطاء الاستشهاد: الافتقار إلى عنوان',
hidden = false
},
--#Added
err_wikidata_citation_missing_title = {
message = 'الوسيط <code class="cs1-code">|$1=</code> غير موجود أو فارغ (من ويكي بيانات)', --a $1 is parameter name 'مفقود أو فارغ <code class="cs1-code">|$1=</code>'
anchor = 'citation_missing_title',
category = 'أخطاء الاستشهاد: من ويكي بيانات: الافتقار إلى عنوان',
hidden = true
},
err_citeseerx_missing = {
message = 'الوسيط <code class="cs1-code">|citeseerx=</code> مطلوب',
anchor = 'citeseerx_missing',
category = 'أخطاء الاستشهاد: الوسيط citeseerx', -- same as bad citeseerx
hidden = false
},
err_cite_web_url = { -- this error applies to cite web and to cite podcast
message = 'الوسيط <code class="cs1-code">|مسار=</code> غير موجود أو فارع', --a 'مفقود أو فارغ <code class="cs1-code">|url=</code>',
anchor = 'cite_web_url',
category = 'أخطاء الاستشهاد: يتطلب مسار',
hidden = false
},
err_class_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|class=</code>',
anchor = 'class_ignored',
category = 'أخطاء الاستشهاد: class',
hidden = false
},
err_contributor_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|contributor=</code>',
anchor = 'contributor_ignored',
category = 'أخطاء الاستشهاد: مشاركون',
hidden = false
},
err_contributor_missing_required_param = {
message = 'الوسيط <code class="cs1-code">|contributor=</code> بحاجة لـ <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'contributor_missing_required_param',
category = 'أخطاء الاستشهاد: مشاركون',
hidden = false
},
--#Added
err_date_in_hijri_date_param = {
message = 'تاريخ ميلادي في <code class="cs1-code">|$1=</code>، استعمل وسيط <code class="cs1-code">|تاريخ=</code>', -- $1 is parameter name
anchor = 'date_in_hijri_date_param',
category = 'أخطاء الاستشهاد: تاريخ ميلادي في وسيط تاريخ هجري',
hidden = false
},
--#Added
err_date_hijri_and_gregorian_not_corresponded = {
message = 'تاريخ ميلادي لا يتوافق مع التاريخ الهجري',
anchor = 'hijri_and_gregorian_not_corresponded',
category = 'أخطاء الاستشهاد: التاريخ الميلادي لا يتوافق مع التاريخ الهجري',
hidden = false
},
err_deprecated_params = {
message = 'الاستشهاد يستخدم وسيط مهمل <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'deprecated_params',
category = 'أخطاء الاستشهاد: وسائط مستغى عنها', -- CS1 errors:
hidden = false
},
err_disp_name = {
message = 'الوسيط <code class="cs1-code">|$1=$2</code> غير صالح', -- $1 is parameter name; $2 is the assigned value
anchor = 'إظهار-الأسماء',
category = 'أخطاء الاستشهاد: إظهار الأسماء', --display-names
hidden = false
},
err_doibroken_missing_doi = {
message = '<code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|doi=</code>', -- $1 is parameter name
anchor = 'doibroken_missing_doi',
category = 'أخطاء الاستشهاد: دوي',
hidden = false
},
err_embargo_missing_pmc = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|pmc=</code>', -- $1 is parameter name
anchor = 'embargo_missing_pmc',
category = 'أخطاء الاستشهاد: PMC embargo',
hidden = false
},
err_empty_citation = {
message = 'استشهاد فارغ!',
anchor = 'empty_citation',
category = 'أخطاء الاستشهاد: استشهاد فارغ',
hidden = false
},
err_etal = {
message = 'Explicit use of et al. in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'explicit_et_al',
category = 'أخطاء الاستشهاد: استخدام (وآخرون - et al.)', -- CS1 errors: Explicit use of et al.
hidden = false
},
err_extra_text_edition = {
message = '<code class="cs1-code">|طبعة=</code> يحوي نصًّا زائدًا',
anchor = 'extra_text_edition',
category = 'أخطاء الاستشهاد: نص زائد: طبعة',
hidden = false
},
err_extra_text_issue = {
message = '<code class="cs1-code">|$1=</code> يحوي نصًّا زائدًا', -- $1 is parameter name
anchor = 'extra_text_issue',
category = 'أخطاء الاستشهاد: نص زائد: العدد',
hidden = false
},
err_extra_text_pages = {
message = '<code class="cs1-code">|$1=</code> يحوي نصًّا زائدًا', -- $1 is parameter name
anchor = 'extra_text_pages',
category = 'أخطاء الاستشهاد: نص زائد: الصفحات',
hidden = false
},
err_extra_text_volume = {
message = '<code class="cs1-code">|$1=</code> يحوي نصًّا زائدًا', -- $1 is parameter name
anchor = 'extra_text_volume',
category = 'أخطاء الاستشهاد: نص زائد: المجلد',
hidden = true
},
err_first_missing_last = {
message = 'الوسيط <code class="cs1-code">|$1=</code> يفتقد <code class="cs1-code">|$2=</code>', -- $1 is first alias, $2 is matching last alias
anchor = 'first_missing_last',
category = 'أخطاء الاستشهاد: اسم مفقود', --- author, contributor, editor, interviewer, translator
hidden = false
},
err_format_missing_url = {
message = '<code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|$2=</code>', -- $1 is format parameter $2 is url parameter
anchor = 'format_missing_url',
category = 'أخطاء الاستشهاد: صيغة المسار ذكرت دون المسار',
hidden = false
},
err_generic_name = {
message = '<code class="cs1-code">|$1=</code> باسم عام', -- $1 is parameter name
anchor = 'generic_name',
category = 'أخطاء الاستشهاد: اسم عام',
hidden = false
},
err_generic_title = {
message = 'الاستشهاد يستخدم عنوان عام',
anchor = 'generic_title',
category = 'أخطاء الاستشهاد: عنوان عام',
hidden = false
},
--#Added
err_hijri_date_in_date_param = {
message = 'تاريخ هجري في <code class="cs1-code">|$1=</code>، استعمل وسيط <code class="cs1-code">تاريخ هجري=</code>', -- $1 is parameter name
anchor = 'hijri_date_in_date_param',
category = 'أخطاء الاستشهاد: تاريخ هجري في حقل تاريخ ميلادي', -- CS1 errors: param-access
hidden = false
},
err_invalid_isbn_date = {
message = 'لا توافق بين ردمك والتاريخ',
anchor = 'invalid_isbn_date',
category = 'أخطاء الاستشهاد:تاريخ ردمك',
hidden = true
},
err_invalid_param_val = {
message = 'الوسيط <code class="cs1-code">|$1=$2</code> غير صالح', -- $1 is parameter name $2 is parameter value
anchor = 'invalid_param_val',
category = 'أخطاء الاستشهاد: قيمة غير صالحة لوسيط',
hidden = false
},
err_invisible_char = {
message = '$1 في $2 في مكان $3', -- $1 is invisible char $2 is parameter name $3 is position number
anchor = 'invisible_char',
category = 'أخطاء الاستشهاد: حروف غير مرئية',
hidden = false
},
err_medrxiv_missing = {
message = '<code class="cs1-code">|medrxiv=</code> مطلوب',
anchor = 'medrxiv_missing',
category = 'أخطاء الاستشهاد: medRxiv', -- same as bad medRxiv
hidden = false
},
err_missing_name = {
message = 'الوسيط <code class="cs1-code">|$1$2=</code> مفقود', -- $1 is modified NameList; $2 is enumerator
anchor = 'missing_name',
category = 'أخطاء الاستشهاد: اسم مفقود', -- author, contributor, editor, interviewer, translator
hidden = false
},
err_missing_periodical = {
message = 'الاستشهاد ب$1 يطلب <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical periodical parameter name for cite $1
anchor = 'missing_periodical',
category = 'أخطاء الاستشهاد: دورية مفقودة',
hidden = true
},
err_missing_pipe = {
message = 'عمود مفقود في: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'missing_pipe',
category = 'أخطاء الاستشهاد: عمود مفقود',
hidden = false
},
err_missing_publisher = {
message = 'استشهاد $1 يتطلب <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical publisher parameter name for cite $1
anchor = 'missing_publisher',
category = 'أخطاء الاستشهاد: الناشر مفقود',
hidden = false
},
err_numeric_names = {
message = 'الوسيط <code class="cs1-code">|$1=</code> يحوي أسماء رقمية', -- $1 is parameter name',
anchor = 'numeric_names',
category = 'أخطاء الاستشهاد: أسماء رقمية',
hidden = false,
},
err_param_access_requires_param = {
message = 'الوسيط <code class="cs1-code">|$1-access=</code> بحاجة لـ <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'param_access_requires_param',
category = 'أخطاء الاستشهاد: تاريخ الوصول', -- CS1 errors: param-access
hidden = false
},
err_param_has_ext_link = {
message = 'روابط خارجية في <code class="cs1-code">$1</code>', -- $1 is parameter name
anchor = 'param_has_ext_link',
category = 'أخطاء الاستشهاد: روابط خارجية',
hidden = false
},
err_param_has_twl_url = {
message = 'وصلة مكتبة ويكيبيديا في <code class="cs1-code">$1</code>', -- $1 is parameter name
anchor = 'param_has_twl_url',
category = 'أخطاء الاستشهاد: المسار',
hidden = false
},
err_parameter_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code> لأنه غير معروف', -- $1 is parameter name
anchor = 'parameter_ignored',
category = 'أخطاء الاستشهاد: وسائط غير مدعومة',
hidden = false
},
err_parameter_ignored_suggest = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code> لأنه غير معروف، ويقترح استخدام <code class="cs1-code">|$2=</code>', -- $1 is unknown parameter $2 is suggested parameter name
anchor = 'parameter_ignored_suggest',
category = 'أخطاء الاستشهاد: وسائط غير مدعومة',
hidden = false
},
err_periodical_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'periodical_ignored',
category = 'أخطاء الاستشهاد: تجاهل الدورية',
hidden = false
},
err_redundant_parameters = {
message = 'الوسيط $1 تكرر أكثر من مرة', -- $1 is error message detail
anchor = 'redundant_parameters',
category = 'أخطاء الاستشهاد: وسائط مكررة',
hidden = false
},
err_script_parameter = {
message = 'الوسيط غير صالح <code class="cs1-code">|$1=</code>: $2', -- $1 is parameter name $2 is script language code or error detail
anchor = 'script_parameter',
category = 'أخطاء الاستشهاد: script parameters',
hidden = false
},
err_ssrn_missing = {
message = 'الوسيط <code class="cs1-code">|ssrn=</code> مطلوب',
anchor = 'ssrn_missing',
category = 'أخطاء الاستشهاد: SSRN',
hidden = false
},
err_text_ignored = {
message = 'تجاهل المحلل النص "$1"', -- $1 is ignored text
anchor = 'text_ignored',
category = 'أخطاء الاستشهاد: وسائط غير مسماه',
hidden = false
},
err_trans_missing_title = {
message = '<code class="cs1-code">|trans-$1=</code> بحاجة لـ <code class="cs1-code">|$1=</code> أو <code class="cs1-code">|script-$1=</code>', -- $1 is base parameter name
anchor = 'trans_missing_title',
category = 'أخطاء الاستشهاد: عنوان مترجم دون العنوان الأصلي',
hidden = false
},
err_param_unknown_empty = {
message = 'يحتوي الاستشهاد على وسيط غير معروف وفارغ$1: $2', --a $1 is 's' or empty space; $2 is emty unknown param list
anchor = 'param_unknown_empty',
category = 'أخطاء الاستشهاد: وسائط غير معروفة فارغة',
hidden = false
},
err_vancouver = {
message = 'Vancouver style error: $1 in name $2', -- $1 is error detail, $2 is the nth name
anchor = 'vancouver',
category = 'أخطاء الاستشهاد: أسلوب فانكوفر',
hidden = false
},
err_wikilink_in_url = {
message = 'تعارض مسار مع وصلة', -- uses ndash
anchor = 'wikilink_in_url',
category = 'أخطاء الاستشهاد: تعارض مسار مع وصلة', -- uses ndash
hidden = false
},
--[[--------------------------< M A I N T >-------------------------------------
maint messages do not have a message (message = nil); otherwise the structure
is the same as error messages
]]
maint_archive_origin = {
message = nil,
anchor = 'archive_origin',
category = 'صيانة الاستشهاد: مصدر الأرشيف',
hidden = true,
},
maint_archived_copy = {
message = nil,
anchor = 'archived_copy',
category = 'صيانة الاستشهاد: الأرشيف كعنوان',
hidden = true,
},
maint_bibcode = {
message = nil,
anchor = 'bibcode',
category = 'صيانة الاستشهاد: bibcode',
hidden = true,
},
maint_location_no_publisher = { -- cite book, conference, encyclopedia; citation as book cite or encyclopedia cite
message = nil,
anchor = 'location_no_publisher',
category = 'صيانة الاستشهاد: مكان بدون ناشر',
hidden = true,
},
maint_bot_unknown = {
message = nil,
anchor = 'bot:_unknown',
category = 'صيانة الاستشهاد: BOT: original URL status unknown',
hidden = true,
},
maint_date_auto_xlated = { -- date auto-translation not supported by en.wiki
message = nil,
anchor = 'date_auto_xlated',
category = 'صيانة الاستشهاد: date auto-translated',
hidden = true,
},
maint_date_format = {
message = nil,
anchor = 'date_format',
category = 'صيانة الاستشهاد: تنسيق التاريخ',
hidden = true
},
maint_date_year = {
message = nil,
anchor = 'date_year',
category = 'صيانة الاستشهاد: التاريخ والسنة',
hidden = true
},
maint_deprecated_archive = {
message = nil,
anchor = 'deprecated_archive',
category = 'صيانة الأرشيف:خدمة أرشيف مستغنى عنها',
hidden = true,
},
maint_doi_ignore = {
message = nil,
anchor = 'doi_ignore',
category = 'صيانة الاستشهاد: تجاهل خطأ دوي',
hidden = true,
},
maint_doi_inactive = {
message = nil,
anchor = 'doi_inactive',
category = 'صيانة الاستشهاد: وصلة دوي غير نشطة',
hidden = true,
},
maint_doi_inactive_dated = {
message = nil,
anchor = 'doi_inactive_dated',
category = 'صيانة الاستشهاد: وصلة دوي غير نشطة منذ $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string
hidden = true,
},
maint_doi_unflagged_free = {
message = nil,
anchor = 'doi_unflagged_free',
category = 'صيانة الاستشهاد: دوي مجاني غير معلم',
hidden = true,
},
maint_extra_punct = {
message = nil,
anchor = 'extra_punct',
category = 'صيانة الاستشهاد: علامات ترقيم زائدة',
hidden = true,
},
maint_id_limit_load_fail = { -- applies to all cs1|2 templates on a page;
message = nil, -- maint message (category link) never emitted
anchor = 'id_limit_load_fail',
category = 'صيانة الاستشهاد:فشل في تحميل حد المعرف',
hidden = true,
},
maint_isbn_ignore = {
message = nil,
anchor = 'ignore_isbn_err',
category = 'صيانة الاستشهاد: تجاهل خطأ ردمك',
hidden = true,
},
maint_issn_ignore = {
message = nil,
anchor = 'ignore_issn',
category = 'صيانة الاستشهاد: تجاهل خطأ ISSN',
hidden = true,
},
maint_jfm_format = {
message = nil,
anchor = 'jfm_format',
category = 'صيانة الاستشهاد: JFM format',
hidden = true,
},
maint_location = {
message = nil,
anchor = 'location',
category = 'صيانة الاستشهاد: مكان',
hidden = true,
},
maint_missing_class = {
message = nil,
anchor = 'missing_class',
category = 'صيانة الاستشهاد:تصنيف مفقود',
hidden = true,
},
maint_mr_format = {
message = nil,
anchor = 'mr_format',
category = 'صيانة الاستشهاد: MR format',
hidden = true,
},
maint_mult_names = {
message = nil,
anchor = 'mult_names',
category = 'صيانة الاستشهاد: أسماء متعددة: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_numeric_names = {
message = nil,
anchor = 'numeric_names',
category = 'صيانة الاستشهاد: أسماء عددية: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_others = {
message = nil,
anchor = 'others',
category = 'صيانة الاستشهاد: آخرون',
hidden = true,
},
maint_others_avm = {
message = nil,
anchor = 'others_avm',
category = 'صيانة الاستشهاد: others in cite AV media (notes)',
hidden = true
},
maint_overridden_setting = {
message = nil,
anchor = 'overridden',
category = 'صيانة الاستشهاد: overridden setting',
hidden = true,
},
maint_page_art_num = {
message = nil,
anchor = 'page_art_num',
category = 'صيانة الاستشهاد: رقم المقال على أنه رقم صفحة',
hidden = true,
},
maint_pmc_embargo = {
message = nil,
anchor = 'embargo',
category = 'صيانة الاستشهاد: PMC embargo expired',
hidden = true,
},
maint_pmc_format = {
message = nil,
anchor = 'pmc_format',
category = 'صيانة الاستشهاد: تنسيق PMC',
hidden = true,
},
maint_postscript = {
message = nil,
anchor = 'postscript',
category = 'صيانة الاستشهاد: postscript',
hidden = true,
},
maint_publisher_location = {
message = nil,
anchor = 'publisher_location',
category = 'صيانة الاستشهاد: مكان الناشر',
hidden = true,
},
maint_ref_duplicates_default = {
message = nil,
anchor = 'ref_default',
category = 'صيانة الاستشهاد: ref duplicates default',
hidden = true,
},
maint_shortened_archive_url = {
message = nil,
anchor = 'shortened_archive_url',
category = 'صيانة الاستشهاد: مسار أرشيف مختصر',
hidden = true,
},
maint_unknown_lang = {
message = nil,
anchor = 'unknown_lang',
category = 'صيانة الاستشهاد: لغة غير مدعومة',
hidden = true,
},
maint_untitled = {
message = nil,
anchor = 'untitled',
category = 'صيانة الاستشهاد: دورية دون عنوان',
hidden = true,
},
maint_url_status = {
message = nil,
anchor = 'url_status',
category = 'صيانة الاستشهاد: url-status',
hidden = true,
},
maint_work_isbn = {
message = nil,
anchor = 'work_isbn',
category = 'صيانة الاستشهاد: وسيط العمل ردمك',
hidden = true,
},
maint_year= {
message = nil,
anchor = 'year',
category = 'صيانة الاستشهاد:السنة',
hidden = true,
},
maint_zbl = {
message = nil,
anchor = 'zbl',
category = 'صيانة الاستشهاد: Zbl',
hidden = true,
},
}
--[[--------------------------< I D _ L I M I T S _ D A T A _ T >----------------------------------------------
fetch id limits for certain identifiers from c:Data:CS1/Identifier limits.tab. This source is a json tabular
data file maintained at wikipedia commons. Convert the json format to a table of k/v pairs.
The values from <id_limits_data_t> are used to set handle.id_limit.
From 2025-02-21, MediaWiki is broken. Use this link to edit the tablular data file:
https://commons.wikimedia.org/w/index.php?title=Data:CS1/Identifier_limits.tab&action=edit
See Phab:T389105
]]
local id_limits_data_t = {};
local use_commons_data = true; -- set to false if your wiki does not have access to mediawiki commons; then,
if false == use_commons_data then -- update this table from https://commons.wikimedia.org/wiki/Data:CS1/Identifier_limits.tab; last update: 2025-02-21
id_limits_data_t = {['OCLC'] = 10450000000, ['OSTI'] = 23010000, ['PMC'] = 11900000, ['PMID'] = 40400000, ['RFC'] = 9300, ['SSRN'] = 5200000, ['S2CID'] = 276000000}; -- this table must be maintained locally
else -- here for wikis that do have access to mediawiki commons
local load_fail_limit = 99999999999; -- very high number to avoid error messages on load failure
id_limits_data_t = {['OCLC'] = load_fail_limit, ['OSTI'] = load_fail_limit, ['PMC'] = load_fail_limit, ['PMID'] = load_fail_limit, ['RFC'] = load_fail_limit, ['SSRN'] = load_fail_limit, ['S2CID'] = load_fail_limit};
local id_limits_data_load_fail = false; -- flag; assume that we will be successful when loading json id limit tabular data
if mw.ext.data == nil then
id_limits_data_load_fail = true; -- safeguard against Lua errors if mw.ext.data is not available for some reason
else
local tab_data_t = mw.ext.data.get ('CS1/Identifier limits.tab'); -- attempt to load the tabular data from commons into <tab_data_t>
if false == tab_data_t then -- undocumented 'feature': mw.ext.data.get() sometimes returns false
id_limits_data_load_fail = true; -- set the flag so that Module:Citation/CS1 can create an unannotated maint category
else
for _, limit_t in ipairs (tab_data_t.data) do -- overwrite default <load_fail_limit> values from the data table in the tabular data
id_limits_data_t[limit_t[1]] = limit_t[2]; -- <limit[1]> is identifier; <limit[2]> is upper limit for that identifier
end
end
end
end
--[[--------------------------< I D _ H A N D L E R S >--------------------------------------------------------
The following contains a list of values for various defined identifiers. For each
identifier we specify a variety of information necessary to properly render the
identifier in the citation.
parameters: a list of parameter aliases for this identifier; first in the list is the canonical form
link: Wikipedia article name
redirect: a local redirect to a local Wikipedia article name; at en.wiki, 'ISBN (identifier)' is a redirect to 'International Standard Book Number'
q: Wikidata q number for the identifier
label: the label preceding the identifier; label is linked to a Wikipedia article (in this order):
redirect from id_handlers['<id>'].redirect when use_identifier_redirects is true
Wikidata-supplied article name for the local wiki from id_handlers['<id>'].q
local article name from id_handlers['<id>'].link
prefix: the first part of a URL that will be concatenated with a second part which usually contains the identifier
suffix: optional third part to be added after the identifier
encode: true if URI should be percent-encoded; otherwise false
COinS: identifier link or keyword for use in COinS:
for identifiers registered at info-uri.info use: info:.... where '...' is the appropriate identifier label
for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn
for |asin= and |ol=, which require assembly, use the keyword: url
for others make a URL using the value in prefix/suffix and #label, use the keyword: pre (not checked; any text other than 'info', 'rft', or 'url' works here)
set to nil to leave the identifier out of the COinS
separator: character or text between label and the identifier in the rendered citation
id_limit: for those identifiers with established limits, this property holds the upper limit
access: use this parameter to set the access level for all instances of this identifier.
the value must be a valid access level for an identifier (see ['id-access'] in this file).
custom_access: to enable custom access level for an identifier, set this parameter
to the parameter that should control it (normally 'id-access')
]]
local id_handlers = {
['ARXIV'] = {
parameters = {'أرخايف', 'arxiv', 'eprint'},
link = 'أرخايف',
redirect = 'أرخايف',
q = 'Q118398',
label = 'arXiv',
prefix = 'https://arxiv.org/abs/', -- protocol-relative tested 2013-09-04
encode = false,
COinS = 'info:arxiv',
separator = ':',
access = 'free', -- free to read
},
['ASIN'] = {
parameters = {'asin', 'ASIN'},
link = 'رقم_تعريف_أمازون_القياسي',
redirect = 'ASIN (identifier)',
q = 'Q1753278',
label = 'ASIN',
prefix = 'https://www.amazon.',
COinS = 'url',
separator = ':',
encode = false
},
['BIBCODE'] = {
parameters = {'بيب_كود', 'bibcode'},
link = 'بيب_كود',
redirect = 'بيب كود',
q = 'Q25754',
label = 'Bibcode',
prefix = 'https://ui.adsabs.harvard.edu/abs/',
encode = false,
COinS = 'info:bibcode',
separator = ':',
custom_access = 'bibcode-access',
},
['BIORXIV'] = {
parameters = {'biorxiv'},
link = 'بيوركسيف',
redirect = 'بيوركسيف',
q = 'Q19835482',
label = 'bioRxiv',
prefix = 'https://doi.org/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = ':'
},
['CITESEERX'] = {
parameters = {'citeseerx'},
link = 'CiteSeerX',
redirect = 'سايت سير إكس',
q = 'Q2715061',
label = 'CiteSeerX',
prefix = 'https://citeseerx.ist.psu.edu/viewdoc/summary?doi=',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = ':'
},
['DOI'] = { -- Used by InternetArchiveBot
parameters = {'دوي', 'doi', 'DOI'},
link = 'معرف الغرض الرقمي',
redirect = 'معرف الغرض الرقمي',
q = 'Q25670',
label = 'DOI',
prefix = 'https://doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
custom_access = 'doi-access',
},
['EISSN'] = {
parameters = {'eissn', 'EISSN'},
link = 'الرقم الدولي الموحد للدوريات',
redirect = 'رقم الدوريات المعياري الدولي',
q = 'Q46339674',
label = 'eISSN',
prefix = 'https://portal.issn.org/resource/ISSN/',
COinS = 'rft.eissn',
encode = false,
separator = ':',
},
['HDL'] = {
parameters = {'hdl', 'HDL'},
link = 'نظام المقبض',
redirect = 'نظام المقبض',
q = 'Q3126718',
label = 'hdl',
prefix = 'https://hdl.handle.net/',
COinS = 'info:hdl',
separator = ':',
encode = true,
custom_access = 'hdl-access',
},
['ISBN'] = { -- Used by InternetArchiveBot
parameters = {'isbn', 'ISBN', 'ردمك'},
link = 'النظام القياسي الدولي لترقيم الكتب',
redirect = 'النظام القياسي الدولي لترقيم الكتب',
q = 'Q33057',
label = 'ISBN',
prefix = 'Special:BookSources/',
COinS = 'rft.isbn',
separator = ':',
},
['ISMN'] = {
parameters = {'اسمن', 'ismn', 'ISMN'},
link = 'رقم دولي معياري للموسيقى',
redirect = 'رقم دولي معياري للموسيقى',
q = 'Q1666938',
label = 'ISMN',
prefix = '', -- not currently used;
COinS = nil, -- nil because we can't use pre or rft or info:
separator = ':'
},
['ISSN'] = {
parameters = {'issn', 'ISSN'},
link = 'الرقم التسلسلي القياسي الدولي',
redirect = 'الرقم التسلسلي القياسي الدولي',
q = 'Q131276',
label = 'ISSN',
prefix = 'https://portal.issn.org/resource/ISSN/',
COinS = 'rft.issn',
encode = false,
separator = ':'
},
['JFM'] = {
parameters = {'jfm', 'JFM'},
link = 'دورية الرياضيات المركزية',
redirect = 'دورية الرياضيات المركزية',
q = '',
label = 'JFM',
prefix = 'https://zbmath.org/?format=complete&q=an:',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':'
},
['JSTOR'] = {
parameters = {'جايستور', 'jstor', 'JSTOR'},
link = 'جايستور',
redirect = 'جايستور',
q = 'Q1420342',
label = 'JSTOR',
prefix = 'https://www.jstor.org/stable/',
COinS = 'pre', -- use prefix value
encode = false,
separator = ':',
custom_access = 'jstor-access',
},
['LCCN'] = {
parameters = {'كونغرس', 'LCCN', 'lccn'},
link = 'رقم الضبط في مكتبة الكونغرس',
redirect = 'رقم الضبط في مكتبة الكونغرس',
q = 'Q620946',
label = 'LCCN',
prefix = 'https://lccn.loc.gov/', -- protocol-relative tested 2015-12-28
COinS = 'info:lccn',
encode = false,
separator = ':',
},
['MEDRXIV'] = {
parameters = {'medrxiv'},
link = 'medRxiv',
redirect = 'medRxiv (identifier)',
q = 'Q58465838',
label = 'medRxiv',
prefix = 'https://www.medrxiv.org/content/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = false,
separator = ':',
},
['MR'] = {
parameters = {'mr', 'MR'},
link = 'المراجعات_الرياضياتية',
redirect = 'المراجعات الرياضياتية',
q = 'Q211172',
label = 'MR',
prefix = 'https://mathscinet.ams.org/mathscinet-getitem?mr=',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':'
},
['OCLC'] = {
parameters = {'أكلس', 'OCLC', 'oclc'},
link = 'مركز_المكتبة_الرقمية_على_الإنترنت',
redirect = 'مركز المكتبة الرقمية على الإنترنت',
q = 'Q190593',
label = 'OCLC',
prefix = 'https://search.worldcat.org/oclc/',
COinS = 'info:oclcnum',
encode = true,
separator = ':',
id_limit = id_limits_data_t.OCLC or 0,
},
['OL'] = {
parameters = {'المكتبة_المفتوحة', 'ol', 'OL'},
link = 'المكتبة_المفتوحة',
redirect = 'المكتبة المفتوحة',
q = 'Q1201876',
label = 'OL',
prefix = 'https://openlibrary.org/',
COinS = 'url',
separator = ':',
encode = true,
custom_access = 'ol-access',
},
['OSTI'] = {
parameters = {'osti', 'OSTI'},
link = 'Office of Scientific and Technical Information',
redirect = 'OSTI (identifier)',
q = 'Q2015776',
label = 'OSTI',
prefix = 'https://www.osti.gov/biblio/',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
id_limit = id_limits_data_t.OSTI or 0,
custom_access = 'osti-access',
},
['PMC'] = {
parameters = {'ببمد_سنترال', 'PMC', 'pmc'},
link = 'ببمد_سنترال',
redirect = 'ببمد سنترال',
q = 'Q229883',
label = 'PMC',
prefix = 'https://www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = '',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
id_limit = id_limits_data_t.PMC or 0,
access = 'free', -- free to read
},
['PMID'] = {
parameters = {'pmid', 'PMID'},
link = 'ببمد',
redirect = 'ببمد',
q = 'Q2082879',
label = 'PMID',
prefix = 'https://pubmed.ncbi.nlm.nih.gov/',
COinS = 'info:pmid',
encode = false,
separator = ':',
id_limit = id_limits_data_t.PMID or 0,
},
['RFC'] = {
parameters = {'طلب_تعليقات', 'RFC', 'rfc'},
link = 'طلب_تعليقات',
redirect = 'طلب تعليقات',
q = 'Q212971',
label = 'RFC',
prefix = 'https://tools.ietf.org/html/rfc',
COinS = 'pre', -- use prefix value
encode = false,
separator = ':',
id_limit = id_limits_data_t.RFC or 0,
access = 'free', -- free to read
},
['SBN'] = {
parameters = {'sbn', 'SBN'},
link = 'رقم الكتاب المعياري الدولي', -- redirect to International_Standard_Book_Number#History
redirect = 'رقم الكتاب المعياري الدولي',
label = 'SBN',
prefix = 'Special:BookSources/0-', -- prefix has leading zero necessary to make 9-digit sbn a 10-digit isbn
COinS = nil, -- nil because we can't use pre or rft or info:
separator = ':'
},
['SSRN'] = {
parameters = {'ssrn', 'SSRN'},
link = 'شبكة أبحاث العلوم الاجتماعية',
redirect = 'شبكة أبحاث العلوم الاجتماعية',
q = 'Q7550801',
label = 'SSRN',
prefix = 'https://papers.ssrn.com/sol3/papers.cfm?abstract_id=',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
id_limit = id_limits_data_t.SSRN or 0,
custom_access = 'ssrn-access',
},
['S2CID'] = {
parameters = {'s2cid', 'S2CID'},
link = 'سيمانتك سكولر',
redirect = 'سيمانتك سكولر',
q = 'Q22908627',
label = 'S2CID',
prefix = 'https://api.semanticscholar.org/CorpusID:',
COinS = 'pre', -- use prefix value
encode = false,
separator = ':',
id_limit = id_limits_data_t.S2CID or 0,
custom_access = 's2cid-access',
},
['USENETID'] = {
parameters = {'message-id'},
link = 'يوزنت',
redirect = 'يوزنت',
q = 'Q193162',
label = 'Usenet:',
prefix = 'news:',
encode = false,
COinS = 'pre', -- use prefix value
separator = ':',
},
['ZBL'] = {
parameters = {'zbl', 'ZBL'},
link = 'دورية الرياضيات المركزية',
redirect = 'دورية الرياضيات المركزية',
q = 'Q190269',
label = 'Zbl',
prefix = 'https://zbmath.org/?format=complete&q=an:',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
},
}
--[[--------------------------< E X P O R T S >---------------------------------
]]
return {
use_identifier_redirects = false, -- booleans defined in the settings at the top of this module
local_lang_cat_enable = false,
date_name_auto_xlate_enable = false,
date_digit_auto_xlate_enable = false,
enable_sort_keys = enable_sort_keys,
suppress_archive_today_urls = suppress_archive_today_urls,
-- tables and variables created when this module is loaded
dependencies_t = dependencies_t, -- used to suppress parameters dependent on url-holding parameters holding archive.today urls
enum_needs_xlation = '1' ~= date_names.xlate_digits['1'], -- to avoid unnecessary enumerator translation
--#Modified
global_df = 'dmy-ly',--get_date_format(), -- tables and variables created when this module is loaded
global_cs1_config_t = global_cs1_config_t, -- global settings from {{cs1 config}}
id_limits_data_load_fail = id_limits_data_load_fail, -- true when commons tabular identifier-limit data fails to load
known_free_doi_registrants_t = build_free_doi_registrants_table(),
punct_skip = build_skip_table (punct_skip, punct_meta_params),
url_skip = build_skip_table (url_skip, url_meta_params),
archive_today_tlds_t = {['today'] = true, ['ph'] = true, ['is'] = true, ['md'] = true, ['li'] = true, ['fo'] = true, ['vn'] = true}; -- used by is_archive_today_url()
name_space_sort_keys = name_space_sort_keys,
aliases = aliases,
special_case_translation = special_case_translation,
date_names = date_names,
err_msg_supl = err_msg_supl,
error_conditions = error_conditions,
editor_markup_patterns = editor_markup_patterns,
et_al_patterns = et_al_patterns,
extended_registrants_t = extended_registrants_t,
id_handlers = id_handlers,
keywords_lists = keywords_lists,
keywords_xlate = keywords_xlate,
stripmarkers = stripmarkers,
invisible_chars = invisible_chars,
invisible_defs = invisible_defs,
indic_script = indic_script,
emoji_t = emoji_t,
maint_cats = maint_cats,
messages = messages,
presentation = presentation,
prop_cats = prop_cats,
script_lang_codes = script_lang_codes,
lang_tag_remap = lang_tag_remap,
lang_name_remap = lang_name_remap,
this_wiki_code = this_wiki_code,
title_types = title_types,
uncategorized_namespaces = uncategorized_namespaces_t,
uncategorized_subpages = uncategorized_subpages,
templates_using_volume = templates_using_volume,
templates_using_issue = templates_using_issue,
templates_not_using_page = templates_not_using_page,
vol_iss_pg_patterns = vol_iss_pg_patterns,
single_letter_2nd_lvl_domains_t = single_letter_2nd_lvl_domains_t,
url_access_map_t = url_access_map_t,
inter_wiki_map = inter_wiki_map,
mw_languages_by_tag_t = mw_languages_by_tag_t,
mw_languages_by_name_t = mw_languages_by_name_t,
citation_class_map_t = citation_class_map_t,
citation_issue_t = citation_issue_t,
citation_no_volume_t = citation_no_volume_t,
}
ow2wvkwoar4sizi651rvj8uz47i2x8p
وحدة:Citation/CS1/Whitelist
828
40419
275411
87616
2026-09-15T08:57:55Z
حبيشان
29714
استيراد من ar.wiktionary.org
275411
Scribunto
text/plain
--[[--------------------------< S U P P O R T E D P A R A M E T E R S >--------------------------------------
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:
true - these parameters are valid and supported parameters
false - these parameters are deprecated but still supported
tracked - these parameters are valid and supported parameters tracked in an eponymous properties category
nil - these parameters are no longer supported. remove entirely
]]
local basic_arguments_t = {
['noltr'] = true, --# Added by Mr. Ibrahem to stop ltr formatting
['access-date'] = true,
['accessdate'] = true,
['agency'] = true,
['archive-date'] = true,
['archive-format'] = true,
['archive-url'] = true,
['archivedate'] = true,
['archiveurl'] = true,
['article-format'] = true,
['article-number'] = true, -- {{cite journal}}, {{cite conference}}; {{citation}} when |journal= has a value
['article-url-access'] = true,
['article-url'] = true,
['article'] = true,
['arxiv'] = true, -- cite arxiv; here because allowed in cite ... as identifier
['asin-tld'] = true,
['asin'] = true,
['ASIN'] = true,
['at'] = true,
['author-first'] = true,
['author-given'] = true,
['author-last'] = true,
['author-link'] = true,
['author-mask'] = true,
['author-surname'] = true,
['author'] = true,
['authorlink'] = true,
['authors'] = true,
['bibcode-access'] = true,
['bibcode'] = true,
['biorxiv'] = true, -- cite biorxiv; here because allowed in cite ... as identifier
['chapter-format'] = true,
['chapter-url-access'] = true,
['chapter-url'] = true,
['chapter'] = true,
['citeseerx'] = true, -- cite citeseerx; here because allowed in cite ... as identifier
['collaboration'] = true,
['contribution-format'] = true,
['contribution-url-access'] = true,
['contribution-url'] = true,
['contribution'] = true,
['contributor-first'] = true,
['contributor-given'] = true,
['contributor-last'] = true,
['contributor-link'] = true,
['contributor-mask'] = true,
['contributor-surname'] = true,
['contributor'] = true,
['date'] = true,
['department'] = true,
['df'] = true,
['dictionary'] = true,
['display-authors'] = true,
['display-contributors'] = true,
['display-editors'] = true,
['display-interviewers'] = true,
['display-subjects'] = true,
['display-translators'] = true,
['doi-access'] = true,
['doi-broken-date'] = true,
['doi'] = true,
['DOI'] = true,
['edition'] = true,
['editor-first'] = true,
['editor-given'] = true,
['editor-last'] = true,
['editor-link'] = true,
['editor-mask'] = true,
['editor-surname'] = true,
['editor'] = true,
['eissn'] = true,
['EISSN'] = true,
['encyclopaedia'] = true,
['encyclopedia'] = true,
['entry-format'] = true,
['entry-url-access'] = true,
['entry-url'] = true,
['entry'] = true,
['eprint'] = true, -- cite arxiv; here because allowed in cite ... as identifier
['first'] = true,
['format'] = true,
['given'] = true,
['hdl-access'] = true,
['hdl'] = true,
['HDL'] = true,
['hijri-date'] = true,
['host'] = true, -- unique to certain templates?
['id'] = true,
['ID'] = true,
['institution'] = true, -- constrain to cite thesis?
['interviewer-first'] = true,
['interviewer-given'] = true,
['interviewer-last'] = true,
['interviewer-link'] = true,
['interviewer-mask'] = true,
['interviewer-surname'] = true,
['interviewer'] = true,
['isbn'] = true,
['ISBN'] = true,
['ismn'] = true,
['ISMN'] = true,
['issn'] = true,
['ISSN'] = true,
['issue'] = true,
['jfm'] = true,
['JFM'] = true,
['journal'] = true,
['jstor-access'] = true,
['jstor'] = true,
['JSTOR'] = true,
['lang'] = true,
['language'] = true,
['last'] = true,
['lccn'] = true,
['LCCN'] = true,
['location'] = true,
['magazine'] = true,
['medium'] = true,
['medrxiv'] = true, -- cite medrxiv; here because allowed in cite ... as identifier
['minutes'] = true, -- constrain to cite AV media and podcast?
['mode'] = true,
['mr'] = true,
['MR'] = true,
['name-list-style'] = true,
['newspaper'] = true,
['no-pp'] = true,
['no-tracking'] = true,
['number'] = true,
['oclc'] = true,
['OCLC'] = true,
['ol-access'] = true,
['ol'] = true,
['OL'] = true,
['orig-date'] = true,
['orig-year'] = true,
['origyear'] = true,
['osti-access'] = true,
['osti'] = true,
['OSTI'] = true,
['others'] = true,
['p'] = true,
['page'] = true,
['pages'] = true,
['people'] = true,
['periodical'] = true,
['place'] = true,
['pmc-embargo-date'] = true,
['pmc'] = true,
['PMC'] = true,
['pmid'] = true,
['PMID'] = true,
['postscript'] = true,
['pp'] = true,
['publication-date'] = true,
['publication-place'] = true,
['publisher'] = true,
['quotation'] = true,
['quote-page'] = true,
['quote-pages'] = true,
['quote'] = true,
['ref'] = true,
['rfc'] = true,
['RFC'] = true,
['s2cid-access'] = true,
['s2cid'] = true,
['S2CID'] = true,
['sbn'] = true,
['SBN'] = true,
['scale'] = true,
['script-article'] = true,
['script-chapter'] = true,
['script-contribution'] = true,
['script-encyclopaedia'] = true,
['script-encyclopedia'] = true,
['script-entry'] = true,
['script-journal'] = true,
['script-magazine'] = true,
['script-newspaper'] = true,
['script-periodical'] = true,
['script-quote'] = true,
['script-section'] = true,
['script-title'] = true,
['script-website'] = true,
['script-work'] = true,
['section-format'] = true,
['section-url-access'] = true,
['section-url'] = true,
['section'] = true,
['series'] = true,
['ssrn-access'] = true,
['SSRN'] = true,
['ssrn'] = true, -- cite ssrn; these three here because allowed in cite ... as identifier
['subject-link'] = true,
['subject-mask'] = true,
['subject'] = true,
['surname'] = true,
['template-doc-demo'] = true,
['time-caption'] = true, -- constrain to cite av media and podcast?
['time'] = true, -- constrain to cite av media and podcast?
['title-link'] = true,
['title-note'] = true,
['title'] = true,
['trans-article'] = true,
['trans-chapter'] = true,
['trans-contribution'] = true,
['trans-encyclopaedia'] = true,
['trans-encyclopedia'] = true,
['trans-entry'] = true,
['trans-journal'] = true,
['trans-magazine'] = true,
['trans-newspaper'] = true,
['trans-periodical'] = true,
['trans-quote'] = true,
['trans-section'] = true,
['trans-title'] = true,
['trans-website'] = true,
['trans-work'] = true,
['translator-first'] = true,
['translator-given'] = true,
['translator-last'] = true,
['translator-link'] = true,
['translator-mask'] = true,
['translator-surname'] = true,
['translator'] = true,
['type'] = true,
['url-access'] = true,
['url-status'] = true,
['url'] = true,
['URL'] = true,
['vauthors'] = true,
['veditors'] = true,
['version'] = true,
['via'] = true,
['volume'] = true,
['website'] = true,
['wikidatacite'] = true,
['work'] = true,
['year'] = true,
['zbl'] = true,
['ZBL'] = true,
["air-date"] = true,
["airdate"] = true,
["credits"] = true,
["episode-link"] = true,
["mailing-list"] = true,
["nopp"] = true,
["آخرون"] = true,
["أخير"] = true,
["أرخايف"] = true,
["أرقام الصفحات"] = true,
["أرقم صفحات"] = true,
["أشخاص"] = true,
["أكلس"] = true,
["أول"] = true,
["إصدار"] = true,
["إظهار المؤلفين"] = true,
["إظهار المحررين"] = true,
["إظهار-المؤلفين"] = true,
["إظهار-المحررين"] = true,
["اخير"] = true,
["اسم الصحيفة"] = true,
["اسم المجلة"] = true,
["اسم المعجم"] = true,
["اسم الموسوعة"] = true,
["اسمن"] = true,
["اصدار"] = true,
["اقتباس"] = true,
["الأخير"] = true,
["الأول"] = true,
["الإصدار"] = true,
["الاصدار"] = true,
["الاول"] = true,
["التاريخ"] = true,
["التاريخ الهجري"] = true,
["التسجيل"] = true,
["التنسيق"] = true,
["الجزء"] = true,
["السنة"] = true,
["الصفحات"] = true,
["الصفحة"] = true,
["الصيغة"] = true,
["الطبعة"] = true,
["العدد"] = true,
["العمل"] = true,
["العنوان الأجنبي"] = true,
["العنوان المترجم"] = true,
["العنوان بالعربي"] = true,
["العنوان"] = true,
["الفصل"] = true,
["القائمة البريدية"] = true,
["اللغة"] = true,
["المؤسسة"] = true,
["المؤلف"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["المترجم-الأخير"] = true,
["المترجم-الأول"] = true,
["المترجم-وصلة"] = true,
["المترجم"] = true,
["المجلد"] = true,
["المحاور"] = true,
["المحاورون"] = true,
["المحرر"] = true,
["المحقق"] = true,
["المسار"] = true,
["المصدر"] = true,
["المعرف"] = true,
["المقر"] = true,
["المقياس"] = true,
["المكان"] = true,
["المكتبة_المفتوحة"] = true,
["الموزع"] = true,
["الموضوع"] = true,
["الموقع"] = true,
["الناشر"] = true,
["النوع"] = true,
["الوقت"] = true,
["اول"] = true,
["ببمد_سنترال"] = true,
["بيب_كود"] = true,
["تاريخ أرشيف"] = true,
["تاريخ الأرشيف"] = true,
["تاريخ النشر"] = true,
["تاريخ الوصول"] = true,
["تاريخ هجري"] = true,
["تاريخ وصول"] = true,
["تاريخ-الأرشيف"] = true,
["تاريخ-النشر"] = true,
["تاريخ-الوصول"] = true,
["تاريخ"] = true,
["تنسيق الفصل"] = true,
["تنسيق"] = true,
["ج"] = true,
["جايستور"] = true,
["جريدة"] = true,
["حالة المسار"] = true,
["دقيقة"] = true,
["دورية محكمة"] = true,
["دورية"] = true,
["دوي"] = true,
["ردمك"] = true,
["رقم الصفحة"] = true,
["رقم الطبعة"] = true,
["رقم صفحة"] = true,
["رقم-المقالة"] = true,
["سلسلة"] = true,
["سنة النشر الأصلية"] = true,
["سنة"] = true,
["ص"] = true,
["صحيفة"] = true,
["صفحات"] = true,
["صفحة"] = true,
["صيغة الأرشيف"] = true,
["صيغة الفصل"] = true,
["صيغة-الأرشيف"] = true,
["صيغة-الفصل"] = true,
["صيغة"] = true,
["طبعة"] = true,
["طلب_تعليقات"] = true,
["عبر"] = true,
["عدة مؤلفين"] = true,
["عدة محررين"] = true,
["عمل"] = true,
["عنوان أجنبي"] = true,
["عنوان مترجم"] = true,
["عنوان"] = true,
["في"] = true,
["كونغرس"] = true,
["لغة"] = true,
["مؤلف الأخير"] = true,
["مؤلف الأول"] = true,
["مؤلف وصلة"] = true,
["مؤلف-الأخير"] = true,
["مؤلف-الأول"] = true,
["مؤلف-قناع"] = true,
["مؤلف-وصلة"] = true,
["مؤلف"] = true,
["مترجم الأخير"] = true,
["مترجم الأول"] = true,
["مترجم وصلة"] = true,
["مترجم-الأخير"] = true,
["مترجم-الأول"] = true,
["مترجم-قناع"] = true,
["مترجم-وصلة"] = true,
["مترجم"] = true,
["مجلة"] = true,
["محرر الأخير"] = true,
["محرر الأول"] = true,
["محرر وصلة"] = true,
["محرر-الأخير"] = true,
["محرر-الأول"] = true,
["محرر-قناع"] = true,
["محرر-وصلة"] = true,
["محرر"] = true,
["مرجع"] = true,
["مسار أرشيف"] = true,
["مسار الأرشيف"] = true,
["مسار الفصل"] = true,
["مسار-الأرشيف"] = true,
["مسار-الفصل"] = true,
["مسار"] = true,
["مشارك-الأخير"] = true,
["مشارك-الأول"] = true,
["مشارك-قناع"] = true,
["مشارك-وصلة"] = true,
["مشارك"] = true,
["مصدر"] = true,
["مقر"] = true,
["مكان النشر"] = true,
["مكان-النشر"] = true,
["مكان"] = true,
["من عمل"] = true,
["موسوعة"] = true,
["موقع"] = true,
["ناشر"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة المؤلف"] = true,
["وصلة المترجم"] = true,
["وصلة المحرر"] = true,
["وصلة مؤلف"] = true,
["وصلة مترجم"] = true,
["وصلة محرر"] = true,
["وصلة-العنوان"] = true,
["وصلة-المؤلف"] = true,
["وصلة-المترجم"] = true,
["وصلة-المحرر"] = true,
["وصلة-مؤلف"] = true,
["وصلة-مترجم"] = true,
["وصلة-محرر"] = true,
["وصلة"] = true,
["وكالة"] = true,
}
local numbered_arguments_t = {
['author#'] = true,
['author-first#'] = true,
['author#-first'] = true,
['author-given#'] = true,
['author#-given'] = true,
['author-last#'] = true,
['author#-last'] = true,
['author-surname#'] = true,
['author#-surname'] = true,
['author-link#'] = true,
['author#-link'] = true,
['authorlink#'] = true,
['author#link'] = true,
['author-mask#'] = true,
['author#-mask'] = true,
['contributor#'] = true,
['contributor-first#'] = true,
['contributor#-first'] = true,
['contributor-given#'] = true,
['contributor#-given'] = true,
['contributor-last#'] = true,
['contributor#-last'] = true,
['contributor-surname#'] = true,
['contributor#-surname'] = true,
['contributor-link#'] = true,
['contributor#-link'] = true,
['contributor-mask#'] = true,
['contributor#-mask'] = true,
['editor#'] = true,
['editor-first#'] = true,
['editor#-first'] = true,
['editor-given#'] = true,
['editor#-given'] = true,
['editor-last#'] = true,
['editor#-last'] = true,
['editor-surname#'] = true,
['editor#-surname'] = true,
['editor-link#'] = true,
['editor#-link'] = true,
['editor-mask#'] = true,
['editor#-mask'] = true,
['first#'] = true,
['given#'] = true,
['host#'] = true,
['interviewer#'] = true,
['interviewer-first#'] = true,
['interviewer#-first'] = true,
['interviewer-given#'] = true,
['interviewer#-given'] = true,
['interviewer-last#'] = true,
['interviewer#-last'] = true,
['interviewer-surname#'] = true,
['interviewer#-surname'] = true,
['interviewer-link#'] = true,
['interviewer#-link'] = true,
['interviewer-mask#'] = true,
['interviewer#-mask'] = true,
['last#'] = true,
['subject#'] = true,
['subject-link#'] = true,
['subject#-link'] = true,
['subject-mask#'] = true,
['subject#-mask'] = true,
['surname#'] = true,
['translator#'] = true,
['translator-first#'] = true,
['translator#-first'] = true,
['translator-given#'] = true,
['translator#-given'] = true,
['translator-last#'] = true,
['translator#-last'] = true,
['translator-surname#'] = true,
['translator#-surname'] = true,
['translator-link#'] = true,
['translator#-link'] = true,
['translator-mask#'] = true,
['translator#-mask'] = true,
["أخير#"] = true,
["أول#"] = true,
["اخير#"] = true,
["الأخير#"] = true,
["الأول#"] = true,
["الاول#"] = true,
["المؤلف#"] = true,
["المترجم#"] = true,
["المترجم#-الأخير"] = true,
["المترجم#-الأول"] = true,
["المترجم#-وصلة"] = true,
["المترجم-الأخير#"] = true,
["المترجم-الأول#"] = true,
["المحرر#"] = true,
["الموضوع"] = true,
["اول#"] = true,
["مؤلف الأخير#"] = true,
["مؤلف الأول#"] = true,
["مؤلف#"] = true,
["مؤلف# الأخير"] = true,
["مؤلف# الأول"] = true,
["مؤلف# وصلة"] = true,
["مؤلف#-الأخير"] = true,
["مؤلف#-الأول"] = true,
["مؤلف#-قناع"] = true,
["مؤلف#-وصلة"] = true,
["مؤلف-الأخير#"] = true,
["مؤلف-الأول#"] = true,
["مترجم الأخير#"] = true,
["مترجم الأول#"] = true,
["مترجم#"] = true,
["مترجم# الأخير"] = true,
["مترجم# الأول"] = true,
["مترجم# وصلة"] = true,
["مترجم#-الأخير"] = true,
["مترجم#-الأول"] = true,
["مترجم#-قناع"] = true,
["مترجم#-وصلة"] = true,
["مترجم-الأخير#"] = true,
["مترجم-الأول#"] = true,
["محرر الأخير#"] = true,
["محرر الأول#"] = true,
["محرر#"] = true,
["محرر# الأخير"] = true,
["محرر# الأول"] = true,
["محرر# وصلة"] = true,
["محرر#-الأخير"] = true,
["محرر#-الأول"] = true,
["محرر#-قناع"] = true,
["محرر#-وصلة"] = true,
["محرر-الأخير#"] = true,
["محرر-الأول#"] = true,
["محرر-وصلة#"] = true,
["مشارك#"] = true,
["مشارك#-الأخير"] = true,
["مشارك#-الأول"] = true,
["مشارك#-قناع"] = true,
["مشارك#-وصلة"] = true,
["مشارك-الأخير#"] = true,
["مشارك-الأول#"] = true,
["وصلة المؤلف#"] = true,
["وصلة المترجم#"] = true,
["وصلة المحرر#"] = true,
["وصلة مؤلف#"] = true,
["وصلة مترجم#"] = true,
["وصلة محرر#"] = true,
["وصلة-المؤلف#"] = true,
["وصلة-المترجم#"] = true,
["وصلة-المحرر#"] = true,
["وصلة-مؤلف#"] = true,
["وصلة-مترجم#"] = true,
["وصلة-محرر#"] = true,
}
--[[--------------------------< P R E P R I N T S U P P O R T E D P A R A M E T E R S >--------------------
Cite arXiv, cite biorxiv, cite citeseerx, cite medrxiv, and cite ssrn are preprint templates that use the limited
set of parameters defined in the limited_basic_arguments and limited_numbered_arguments tables. Those lists are
supplemented with a template-specific list of parameters that are required by the particular template and may be
exclusive to one of the preprint templates. Some of these parameters may also be available to the general cs1|2
templates.
Same conventions for true/false/tracked/nil as above.
]]
local preprint_arguments_t = {
arxiv = {
['arxiv'] = true, -- cite arxiv and arxiv identifiers
['class'] = true,
['eprint'] = true, -- cite arxiv and arxiv identifiers
["أرخايف"] = true,
["صنف"] = true,
["صنف الأرشيف"] = true,
},
biorxiv = {
['biorxiv'] = true,
},
citeseerx = {
['citeseerx'] = true,
},
medrxiv = {
['medrxiv'] = true,
},
ssrn = {
['ssrn'] = true,
['SSRN'] = true,
['ssrn-access'] = true,
},
}
--[[--------------------------< L I M I T E D S U P P O R T E D P A R A M E T E R S >----------------------
cite arxiv, cite biorxiv, cite citeseerx, cite medrxiv, and cite ssrn templates are preprint templates so are
allowed only a limited subset of parameters allowed to all other cs1|2 templates. The limited subset is defined
here.
This list of parameters also used by {{cite document}}
Same conventions for true/false/tracked/nil as above.
]]
local limited_basic_arguments_t = {
['at'] = true,
['author-first'] = true,
['author-given'] = true,
['author-last'] = true,
['author-link'] = true,
['author-mask'] = true,
['author-surname'] = true,
['author'] = true,
['authorlink'] = true,
['authors'] = true,
['collaboration'] = true,
['date'] = true,
['df'] = true,
['display-authors'] = true,
['first'] = true,
['given'] = true,
['language'] = true,
['last'] = true,
['mode'] = true,
['name-list-style'] = true,
['no-tracking'] = true,
['p'] = true,
['page'] = true,
['pages'] = true,
['postscript'] = true,
['pp'] = true,
['quotation'] = true,
['quote'] = true,
['ref'] = true,
['surname'] = true,
['template-doc-demo'] = true,
['title'] = true,
['trans-title'] = true,
['vauthors'] = true,
['year'] = true,
["air-date"] = true,
["airdate"] = true,
["credits"] = true,
["display-subjects"] = true,
["host"] = true,
["lang"] = true,
["people"] = true,
["subject-link"] = true,
["subject-mask"] = true,
["subject"] = true,
["أخير"] = true,
["أرقام الصفحات"] = true,
["أرقم صفحات"] = true,
["أشخاص"] = true,
["أول"] = true,
["إظهار المؤلفين"] = true,
["إظهار-المؤلفين"] = true,
["اخير"] = true,
["اقتباس"] = true,
["الأخير"] = true,
["الأول"] = true,
["الاول"] = true,
["التاريخ"] = true,
["السنة"] = true,
["الصفحات"] = true,
["الصفحة"] = true,
["العنوان الأجنبي"] = true,
["العنوان المترجم"] = true,
["العنوان بالعربي"] = true,
["العنوان"] = true,
["اللغة"] = true,
["المؤلف"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["الموضوع"] = true,
["اول"] = true,
["تاريخ"] = true,
["رقم الصفحة"] = true,
["رقم صفحة"] = true,
["سنة"] = true,
["ص"] = true,
["صفحات"] = true,
["صفحة"] = true,
["عدة مؤلفين"] = true,
["عنوان أجنبي"] = true,
["عنوان مترجم"] = true,
["عنوان"] = true,
["في"] = true,
["لغة"] = true,
["مؤلف الأخير"] = true,
["مؤلف الأول"] = true,
["مؤلف وصلة"] = true,
["مؤلف-الأخير"] = true,
["مؤلف-الأول"] = true,
["مؤلف-قناع"] = true,
["مؤلف-وصلة"] = true,
["مؤلف"] = true,
["مرجع"] = true,
["وصلة المؤلف"] = true,
["وصلة مؤلف"] = true,
["وصلة-المؤلف"] = true,
["وصلة-مؤلف"] = true,
}
local limited_numbered_arguments_t = {
['author-first#'] = true,
['author-given#'] = true,
['author-last#'] = true,
['author-link#'] = true,
['author-mask#'] = true,
['author-surname#'] = true,
['author#-first'] = true,
['author#-given'] = true,
['author#-last'] = true,
['author#-link'] = true,
['author#-mask'] = true,
['author#-surname'] = true,
['author#'] = true,
['author#link'] = true,
['authorlink#'] = true,
['first#'] = true,
['given#'] = true,
['last#'] = true,
['surname#'] = true,
["host#"] = true,
["subject-link#"] = true,
["subject-mask#"] = true,
["subject#-link"] = true,
["subject#-mask"] = true,
["subject#"] = true,
["أخير#"] = true,
["أول#"] = true,
["اخير#"] = true,
["الأخير#"] = true,
["الأول#"] = true,
["الاول#"] = true,
["المؤلف#"] = true,
["الموضوع"] = true,
["اول#"] = true,
["مؤلف الأخير#"] = true,
["مؤلف الأول#"] = true,
["مؤلف-الأخير#"] = true,
["مؤلف-الأول#"] = true,
["مؤلف# الأخير"] = true,
["مؤلف# الأول"] = true,
["مؤلف# وصلة"] = true,
["مؤلف#-الأخير"] = true,
["مؤلف#-الأول"] = true,
["مؤلف#-قناع"] = true,
["مؤلف#-وصلة"] = true,
["مؤلف#"] = true,
["وصلة المؤلف#"] = true,
["وصلة مؤلف#"] = true,
["وصلة-المؤلف#"] = true,
["وصلة-مؤلف#"] = true,
}
--[[--------------------------< U N I Q U E _ A R G U M E N T S >----------------------------------------------
Some templates have unique parameters. Those templates and their unique parameters are listed here. Keys in this
table are the template's CitationClass parameter value
Same conventions for true/false/tracked/nil as above.
]]
local unique_arguments_t = {
['audio-visual'] = {
['transcript'] = true,
['transcript-format'] = true,
['transcript-url'] = true,
},
conference = {
['book-title'] = true,
['conference-format'] = true,
['conference-url'] = true,
['conference'] = true,
["booktitle"] = true,
["اسم المؤتمر"] = true,
["اسم-المؤتمر"] = true,
["عنوان الكتاب"] = true,
["عنوان المؤتمر"] = true,
["مسار المؤتمر"] = true,
["مسار-المؤتمر"] = true,
},
episode = {
['air-date'] = true,
['airdate'] = true,
['credits'] = true,
['episode-link'] = true, -- alias of |title-link=
['network'] = true,
['season'] = true,
['series-link'] = true,
['series-no'] = true,
['series-number'] = true,
['station'] = true,
['transcript-format'] = true,
['transcript-url'] = true,
['transcript'] = true,
["authors"] = true,
["date"] = true,
["host"] = true,
["people"] = true,
["title-link"] = true,
["أشخاص"] = true,
["التاريخ"] = true,
["الشبكة"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["الموسم"] = true,
["تاريخ"] = true,
["رقم سلسلة"] = true,
["رقم-سلسلة"] = true,
["محطة"] = true,
["مسار المسلسل"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة سلسلة"] = true,
["وصلة-العنوان"] = true,
["وصلة-سلسلة"] = true,
["author"] = true,
["author-last"] = true,
["author-surname"] = true,
["last"] = true,
["subject"] = true,
["surname"] = true,
["أخير"] = true,
["اخير"] = true,
["الأخير"] = true,
["المؤلف"] = true,
["الموضوع"] = true,
["مؤلف"] = true,
["مؤلف الأخير"] = true,
["مؤلف-الأخير"] = true,
},
mailinglist = {
['mailing-list'] = true,
["القائمة البريدية"] = true,
},
map = {
['cartography'] = true,
['inset'] = true,
['map'] = true,
['map-format'] = true,
['map-url'] = true,
['map-url-access'] = true,
['script-map'] = true,
['sections'] = true,
['sheet'] = true,
['sheets'] = true,
['trans-map'] = true,
["أوراق"] = true,
["الأقسام"] = true,
["الخريطة"] = true,
["صيغة الخريطة"] = true,
["مجموعة"] = true,
["مسار الخريطة"] = true,
["ورقة"] = true,
},
newsgroup = {
['message-id'] = true,
['newsgroup'] = true,
["اسم المجموعة"] = true,
},
report = {
['docket'] = true,
},
serial = {
['air-date'] = true,
['airdate'] = true,
['credits'] = true,
['episode-link'] = true, -- alias of |title-link=
['episode'] = true, -- cite serial only TODO: make available to cite episode?
['network'] = true,
['series-link'] = true,
['station'] = true,
["authors"] = true,
["date"] = true,
["host"] = true,
["people"] = true,
["title-link"] = true,
["أشخاص"] = true,
["التاريخ"] = true,
["الحلقة"] = true,
["الشبكة"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["تاريخ"] = true,
["محطة"] = true,
["مسار المسلسل"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة سلسلة"] = true,
["وصلة-العنوان"] = true,
["وصلة-سلسلة"] = true,
["author"] = true,
["author-last"] = true,
["author-surname"] = true,
["last"] = true,
["subject"] = true,
["surname"] = true,
["أخير"] = true,
["اخير"] = true,
["الأخير"] = true,
["المؤلف"] = true,
["الموضوع"] = true,
["مؤلف"] = true,
["مؤلف الأخير"] = true,
["مؤلف-الأخير"] = true,
},
speech = {
['conference'] = true,
['conference-format'] = true,
['conference-url'] = true,
["اسم المؤتمر"] = true,
["مسار المؤتمر"] = true,
["اسم-المؤتمر"] = true,
["مسار-المؤتمر"] = true,
},
thesis = {
['degree'] = true,
['docket'] = true,
["الدرجة"] = true,
},
}
--[[--------------------------< C I T E _ D O C U M E N T >----------------------------------------------------
Special case for cite document. This template takes the limited basic and limited enumerated parameters plus
others that are apply only to standalone published sources that cannot be cited any other way; no url, book,
periodical, etc parameters; limited support for name lists and named identifiers.
when validating parameters in {{cite document}} templates, the basic and
]]
local document_arguments_t = {
['bibcode-access'] = true,
['bibcode'] = true,
['doi-access'] = true,
['doi-broken-date'] = true,
['doi'] = true,
['DOI'] = true,
['hdl-access'] = true,
['hdl'] = true,
['HDL'] = true,
['id'] = true,
['ID'] = true,
['jfm'] = true,
['JFM'] = true,
['lang'] = true,
['location'] = true,
['mr'] = true,
['MR'] = true,
['no-pp'] = true,
['orig-date'] = true,
['orig-year'] = true,
['origyear'] = true,
['osti-access'] = true,
['osti'] = true,
['OSTI'] = true,
['place'] = true,
['publisher'] = true,
['quote-page'] = true,
['quote-pages'] = true,
['script-quote'] = true,
['script-title'] = true,
['title-link'] = true,
['trans-quote'] = true,
['translator-first'] = true,
['translator-given'] = true,
['translator-last'] = true,
['translator-link'] = true,
['translator-mask'] = true,
['translator-surname'] = true,
['translator'] = true,
['type'] = true,
['zbl'] = true,
['ZBL'] = true,
["episode-link"] = true,
["institution"] = true,
["language"] = true,
["medium"] = true,
["nopp"] = true,
["اللغة"] = true,
["المؤسسة"] = true,
["المترجم-الأخير"] = true,
["المترجم-الأول"] = true,
["المترجم-وصلة"] = true,
["المترجم"] = true,
["المصدر"] = true,
["المعرف"] = true,
["المقر"] = true,
["المكان"] = true,
["الموزع"] = true,
["الناشر"] = true,
["النوع"] = true,
["بيب_كود"] = true,
["دوي"] = true,
["سنة النشر الأصلية"] = true,
["لغة"] = true,
["مترجم الأخير"] = true,
["مترجم الأول"] = true,
["مترجم وصلة"] = true,
["مترجم-الأخير"] = true,
["مترجم-الأول"] = true,
["مترجم-قناع"] = true,
["مترجم-وصلة"] = true,
["مترجم"] = true,
["مصدر"] = true,
["مقر"] = true,
["مكان"] = true,
["ناشر"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة المترجم"] = true,
["وصلة مترجم"] = true,
["وصلة-العنوان"] = true,
["وصلة-المترجم"] = true,
["وصلة-مترجم"] = true,
}
local document_numbered_arguments_t = {
['translator#'] = true,
['translator-first#'] = true,
['translator#-first'] = true,
['translator-given#'] = true,
['translator#-given'] = true,
['translator-last#'] = true,
['translator#-last'] = true,
['translator-surname#'] = true,
['translator#-surname'] = true,
['translator-link#'] = true,
['translator#-link'] = true,
['translator-mask#'] = true,
['translator#-mask'] = true,
["المترجم#"] = true,
["المترجم#-الأخير"] = true,
["المترجم#-الأول"] = true,
["المترجم#-وصلة"] = true,
["المترجم-الأخير#"] = true,
["المترجم-الأول#"] = true,
["مترجم الأخير#"] = true,
["مترجم الأول#"] = true,
["مترجم#"] = true,
["مترجم# الأخير"] = true,
["مترجم# الأول"] = true,
["مترجم# وصلة"] = true,
["مترجم#-الأخير"] = true,
["مترجم#-الأول"] = true,
["مترجم#-قناع"] = true,
["مترجم#-وصلة"] = true,
["مترجم-الأخير#"] = true,
["مترجم-الأول#"] = true,
["وصلة المترجم#"] = true,
["وصلة مترجم#"] = true,
["وصلة-المترجم#"] = true,
["وصلة-مترجم#"] = true,
}
--[[--------------------------< L I S T _ C O M B I N E >------------------------------------------------------
makes one table from a list of tables. <lists_t> is a sequence of tables to be combined
]]
local function list_combine (lists_t)
local out_t = {};
for _, list_t in ipairs (lists_t) do -- for each list in <lists_t>
for k, v in pairs (list_t) do -- extract each k/v pair
out_t[k] = v; -- add to <out_t>
end
end
return out_t; -- and done
end
--[[--------------------------< T E M P L A T E _ L I S T _ G E T >--------------------------------------------
gets a list of the templates from table t
]]
local function template_list_get (t)
local out_t = {}; -- a table for output
for k, _ in pairs (t) do -- spin through the table and collect the keys
table.insert (out_t, k) -- add each key to the output table
end
return out_t; -- and done
end
--[[--------------------------< E X P O R T E D T A B L E S >------------------------------------------------
]]
return {
preprint_arguments_t = preprint_arguments_t,
preprint_template_list_t = template_list_get (preprint_arguments_t), -- make a template list from preprint_arguments{} table
unique_arguments_t = unique_arguments_t,
unique_param_template_list_t = template_list_get (unique_arguments_t), -- make a template list from unique_arguments{} table
document_parameters_t = list_combine ({limited_basic_arguments_t, limited_numbered_arguments_t, document_arguments_t, document_numbered_arguments_t});
common_parameters_t = list_combine ({basic_arguments_t, numbered_arguments_t});
limited_parameters_t = list_combine ({limited_basic_arguments_t, limited_numbered_arguments_t});
};
a3attzzau1uv7r9zyewj5msvzziswc8
وحدة:Citation/CS1/Suggestions
828
40420
275405
87617
2026-09-15T08:57:32Z
حبيشان
29714
استيراد من ar.wiktionary.org
275405
Scribunto
text/plain
-- Please insert new suggestions in alphabetical order
-- The form is ['incorrect'] = 'correct',
local suggestions = {
['ASIN-TLD'] = 'asin-tld', -- old parameter name
['BIBCODE'] = 'bibcode',
['ISBN13'] = 'ردمك',
['abruf'] = 'access-date', -- German
['abruf-verborgen'] = 'access-date', -- German
['accessmonth'] = 'access-date',
['accesso'] = 'access-date', -- Italian
['accessyear'] = 'access-date',
['acessodata'] = 'access-date', -- Brazilian Portuguese
['ad'] = 'first', -- Turkish
['address'] = 'location',
['anno'] = 'date', -- Italian
['annoaccesso'] = 'access-date', -- Italian
['annodiaccesso'] = 'access-date', -- Italian
['annooriginale'] = 'orig-date', -- Italian
['année'] = 'date', -- French
['apellido'] = 'last', -- Spanish
['apellidos'] = 'last', -- Spanish
['archiv-datum'] = 'archive-date', -- German
['archiv-url'] = 'archive-url', -- German
['archive date'] = 'archive-date',
['archive url'] = 'archive-url', -- Spanish
['archive-link'] = 'archive-url',
['artikelnr'] = 'id', -- German (as 'id=Article No. ...')
['artist'] = 'others',
['arşiv-tarihi'] = 'archive-date', -- Turkish
['arşiv-url'] = 'archive-url', -- Turkish
['arşivtarihi'] = 'archive-date', -- Turkish
['arşivurl'] = 'archive-url', -- Turkish
['auflage'] = 'edition', -- German
['auteur'] = 'author', -- French
['auteur1'] = 'author1',
['auther'] = 'author',
['author link'] = 'author-link', -- Polish
['authorfirst'] = 'author-first', -- old parameter name
['authorgiven'] = 'author-given', -- old parameter name
['authorlast'] = 'author-last', -- old parameter name
['authormask'] = 'author-mask', -- old parameter name
['authorsurname'] = 'author-surname', -- old parameter name
['autor'] = 'author', -- Spanish, German (singular and plural)
['autore'] = 'author', -- Italian
['autthor'] = 'author',
['ay'] = 'month', -- Turkish
['año'] = 'date', -- Spanish
['año-original'] = 'orig-date', -- Spanish
['añoacceso'] = 'access-date', -- Spanish
['añooriginal'] = 'orig-date', -- Spanish
['band'] = 'volume', -- German
['bandreihe'] = 'volume', -- German
['baskı'] = 'edition', -- Turkish
['başlık'] = 'title', -- Turkish
['began'] = 'date', -- old parameter name (cite serial only); or orig-date=
['ch'] = 'language', -- German (as 'language=de-CH')
['chapter_title'] = 'chapter',
['chapterurl'] = 'مسار الفصل',
['cid'] = 'ref', -- Italian
['cilt'] = 'volume', -- Turkish
['cita'] = 'quote', -- Spanish
['citazione'] = 'quote', -- Italian
['città'] = 'location', -- Italian
['city'] = 'location', -- old parameter name (cite serial only)
['coauthor'] = 'author',
['coauthors'] = 'author',
['coautores'] = 'author', -- Spanish
['coautori'] = 'author', -- Italian
['cognome'] = 'last', -- Italian
['conferenceurl'] = 'مسار المؤتمر',
['consulté le'] = 'access-date', -- French
['curatore'] = 'publisher', -- Italian
['czasopismo'] = 'journal', -- Polish
['data dostępu'] = 'access-date', -- Polish
['data'] = 'date', -- Polish, Italian
['dataaccesso'] = 'access-date', -- Italian
['dataarchivio'] = 'archive-date', -- Italian
['datum'] = 'date', -- German
['deadlink'] = 'url-status',
['dergi'] = 'work', -- Turkish
['dil'] = 'language', -- Turkish
['displayauthors'] = 'إظهار المؤلفين',
['displayeditors'] = 'إظهار المحررين' ,
['distributor'] = 'publisher',
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}')
['doi-broken'] = 'doi-broken-date',
['doi-inactive'] = 'doi-broken-date', -- invalid name found in mainspace
['doi-inactive-date'] = 'doi-broken-date',
['doi_brokendate'] = 'doi-broken-date',
['doi_inactivedate'] = 'doi-inactive-date',
['doibroken'] = 'doi-broken-date', -- invalid name found in mainspace
['doiinactive'] = 'doi-broken-date', -- invalid name found in mainspace
['e-print'] = 'eprint', -- misspelling
['eEditor-first'] = 'editor-first',
['editoin'] = 'edition', -- misspelling
['editon'] = 'edition', -- misspelling
['editore'] = 'agency', -- can be either publisher or agency
['editorfirst'] = 'editor-first', -- old parameter name
['editorgiven'] = 'editor-given', -- old parameter name
['editorial'] = 'publisher', -- can be either publisher or work
['editorlast'] = 'editor-last', -- old parameter name
['editorlink'] = 'editor-link', -- old parameter name
['editormask'] = 'editor-mask', -- old parameter name
['editorsurname'] = 'editor-surname', -- old parameter name
['edizione'] = 'edition', -- Italian
['embargo'] = 'pmc-embargo-date', -- old parameter name
['en ligne le'] = 'archive-date', -- French
['encyclopædia'] = 'encyclopedia',
['ended'] = 'date', -- old parameter name (cite serial only)
['enlaceautor'] = 'author-link', -- Spanish
['enlaceroto'] = 'url-status', -- Spanish
['episodelink'] = 'وصلة الحلقة',
['erişimtarihi'] = 'access-date', -- Turkish
['eser'] = 'work', -- Turkish
['event'] = 'اسم المؤتمر',
['event-format'] = 'conference-format',
['event-url'] = 'مسار المؤتمر',
['eventurl'] = 'مسار المؤتمر',
['family'] = 'surname', -- misguess
['fecha'] = 'date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['foramt'] = 'format', -- misspelling
['fore-name'] = 'given', -- misguess/misspelling
['forename'] = 'given', -- misguess
['formato'] = 'format', -- Spanish, Italian, Polish
['frist'] = 'first', -- misspelling
['fundstelle'] = 'at', -- German
['gazete'] = 'work', -- Turkish
['giornale'] = 'journal', -- Italian
['herausgeber'] = 'editor', -- German (singular and plural)
['hrsg'] = 'publisher', -- German
['hrsgreihe'] = 'editor', -- German
['idioma'] = 'language', -- Spanish
['imię'] = 'first', -- Polish
['in'] = 'لغة',
['in-set'] = 'inset', -- misspelling
['interviewerlink'] = 'interviewer-link', -- old parameter alias
['interviewermask'] = 'interviewer-mask', -- old parameter alias
['isbn13'] = 'ردمك',
['isbndefekt'] = 'ردمك', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnformalfalsch'] = 'ردمك', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnistformalfalsch'] = 'ردمك', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isnb'] = 'ردمك', -- misspelling
['issnformalfalsch'] = 'issn', -- German (can be fully emulated using ((syntax)))
['jahr'] = 'date', -- German
['jahrea'] = 'orig-date', -- German (not a direct replacement, but can be emulated)
['kapitel'] = 'chapter', -- German
['langauge'] = 'language', -- misspelling
['langue'] = 'language', -- French
['last-author-amp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lastauthoramp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lieu'] = 'location', -- French
['lingua'] = 'language', -- Italian
['lire en ligne'] = 'url', -- French
['lizenznummer'] = 'id', -- German (as 'id=License No. ...')
['loaction'] = 'location', -- misspelling
['local'] = 'location', -- Brazilian Portuguese
['locatoin'] = 'location', -- misspelling
['lugar'] = 'location', -- Spanish
['mailinglist'] = 'القائمة البريدية',
['mapurl'] = 'مسار الخريطة',
['mes'] = 'date', -- Spanish (not a direct replacement)
['mese'] = 'date', -- Italian (not a direct replacement)
['miejsce'] = 'location', -- Polish
['miesiąc'] = 'date', -- Polish
['mois'] = 'date', -- French
['monat'] = 'date', -- German
['name-list-format'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['nazwisko'] = 'last', -- Polish
['nespaper'] = 'newspaper', -- misspelling
['net-work'] = 'network', -- misspelling
['newpaper'] = 'newspaper', -- misspelling
['news'] = 'newspaper',
['news-group'] = 'newsgroup', -- misspelling
['news-paper'] = 'newspaper', -- misspelling
['no-cat'] = 'no-tracking', -- old parameter
['nocat'] = 'no-tracking', -- old parameter
['nom'] = 'last', -- French
['nombre'] = 'first', -- Spanish
['nome'] = 'first', -- Italian
['nopp'] = 'no-pp', -- old parameter name
['notracking'] = 'no-tracking', -- old parameter
['numero'] = 'number', -- Italian, Spanish
['nummer'] = 'number', -- German
['nummerreihe'] = 'number', -- German
['obra'] = 'work', -- Spanish
['odpowiedzialność'] = 'agency', -- Polish
['offline'] = 'url-status', -- German (as 'url-status=dead')
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
['opera'] = 'work', -- Italian
['opublikowany'] = 'agency', -- Polish
['origdate'] = 'orig-date', -- misspelling
['originaljahr'] = 'orig-date', -- German
['originalort'] = 'publication-place', -- German
['originalsprache'] = 'language', -- German
['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
['ort'] = 'publication-place', -- German
['ortea'] = 'publication-place', -- German (not a direct replacement, but can be emulated)
['other'] = 'others',
['oznaczenie'] = 'agency', -- Polish
['pagees'] = 'pages', -- misspelling
['pages totales'] = 'pages',
['pagina'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['passage'] = 'pages', -- French
['periodico'] = 'magazine', -- Spanish
['plublisher'] = 'publisher', -- misspelling
['pmcid'] = 'pmc',
['post-script'] = 'postscript', -- misspelling
['praca'] = 'work', -- Polish
['primero'] = 'first', -- Spanish
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['ps'] = 'postscript',
['pub'] = 'publisher',
['publicationdate'] = 'تاريخ النشر',
['publicationplace'] = 'مكان النشر',
['pulbication-place'] = 'publication-place', -- misspelling
['página'] = 'page', -- Spanish
['páginas'] = 'pages', -- Spanish
['périodique'] = 'publisher', -- French
['reihe'] = 'series', -- German
['retrieved'] = 'access-date',
['richiestasottoscrizione'] = 'url-access', -- Italian (as |url-access=subscription)
['rok'] = 'date', -- Polish
['sammelwerk'] = 'work', -- German
['sayfa'] = 'page', -- Turkish
['sayfalar'] = 'pages', -- Turkish
['sayı'] = 'issue', -- Turkish
['script-post'] = 'postscript', -- misspelling
['script-trans'] = 'transcript', -- misspelling
['season'] = 'date', -- old parameter name (cite serial only)
['sectionurl'] = 'مسار الفصل',
['seiten'] = 'pages', -- German
['seria'] = 'series', -- Spanish, Polish
['serie'] = 'series', -- Italian
['serieslink'] = 'وصلة سلسلة',
['seriesno'] = 'رقم السلسلة',
['seriesnumber'] = 'رقم السلسلة',
['service'] = 'agency',
['site'] = 'website',
['sitioweb'] = 'website', -- Spanish
['sito'] = 'website', -- Italian
['soyadı'] = 'last', -- Turkish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
['stron'] = 'page', -- Polish
['strony'] = 'pages', -- Polish
['subjectlink'] = 'subject-link', -- old parameter name
['subscription'] = 'url-access', -- old parameter name (emulated as |url-access=subscription)
['sur-name'] = 'surname', -- misspelling
['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription)
['série'] = 'series', -- French
['tag'] = 'date', -- German
['tarih'] = 'date', -- Turkish
['template doc demo'] = 'no-tracking', -- old parameter alias
['tidning'] = 'work', -- Swedish
['tile'] = 'title', -- misspelling
['timecaption'] = 'time-caption', -- old parameter name
['tipo'] = 'type', -- Italian
['tite'] = 'title', -- misspelling
['titel'] = 'title', -- German
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['titled'] = 'title', -- Brazilian Portuguese
['titlelink'] = 'وصلة العنوان',
['titolo'] = 'title', -- Italian
['titre'] = 'title', -- French
['trans-script'] = 'transcript', -- misspelling
['trans_chapter'] = 'trans-chapter', -- old parameter alias
['trans_title'] = 'عنوان مترجم',
['transchapter'] = 'trans-chapter',
['transcripturl'] = 'transcript-url', -- old parameter name
['transscript'] = 'transcript', -- misspelling
['transscript-format'] = 'transcript-format', -- misspelling
['transscript-url'] = 'transcript-url', -- misspelling
['transscripturl'] = 'transcript-url', -- misspelling
['transtitle'] = 'trans-title',
['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
['tytuł'] = 'title', -- Polish
['títle'] = 'title',
['ubicación'] = 'location', -- Spanish
['urlarchivio'] = 'archive-url', -- Italian
['urlarchivo'] = 'archive-url', -- Spanish
['urlmorto'] = 'url-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['v-authors'] = 'vauthors', -- misspelling
['v-editors'] = 'veditors', -- misspelling
['verlag'] = 'publisher', -- German
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
['vol'] = 'volume',
['volumen'] = 'volume', -- Spanish
['werk'] = 'work', -- German
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['wkautore'] = 'author-link', -- Italian
['wolumin'] = 'volume', -- Polish
['wydanie'] = 'number', -- Polish
['wydawca'] = 'publisher', -- French
['yardımcıyazarlar'] = 'author', -- Turkish
['yayımcı'] = 'publisher', -- Turkish
['yayıncı'] = 'publisher', -- Turkish
['yazar'] = 'author', -- Turkish
['yazarbağı'] = 'author-link', -- Turkish
['yer'] = 'location', -- Turkish
['yıl'] = 'date', -- Turkish
['zaprezentowany'] = 'publisher', -- French
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}')
['zitat'] = 'quote', -- German
['zugriff'] = 'access-date', -- German
['éditeur'] = 'editor', -- French
['ölüurl'] = 'url-status', -- Turkish
['übersetzer'] = 'translator', -- German (singular and plural)
['آخر'] = 'others',
['أخير'] = 'last',
['العنوان باللغة العربية'] = 'عنوان مترجم',
['أقسام'] = 'sections',
['أول'] = 'first',
['إظهار المؤلفون'] = 'display-authors',
['اخير'] = 'last',
['اسم الدورية'] = 'دورية',
['اسم الصحيفة'] = 'جريدة',
['اسم القائمة البريدية'] = 'القائمة البريدية',
['اسم الموقع'] = 'موقع',
['الأخير'] = 'last',
['الأول'] = 'first',
['الاول'] = 'first',
['الرقم المعياري'] = 'ردمك',
['الصحيفة'] = 'journal',
['المؤلف'] = 'author',
['المؤلفين المشاركين'] = 'authors',
['المترجم'] = 'translator',
['المحطة'] = 'station',
['المدينة'] = 'location',
['المناسبة'] = 'conference',
['الموقع الرسمي'] = 'website',
['النظام القياسي الدولي لترقيم الكتب'] = 'ردمك',
['الوكالة'] = 'agency',
['بواسطة'] = 'عبر',
['تاريخ وصلة مكسورة'] = 'dead-date',
['تنسيق أرشيف'] = 'archive-format',
['تنسيق الأرشيف'] = 'صيغة الأرشيف',
['تنسيق الخريطة'] = 'صيغة الخريطة',
['تنسيق المؤتمر'] = 'conference-format',
['تنسيق-الأرشيف'] = 'صيغة-الأرشيف',
['حالة المسار'] = 'url-status',
['حالة مسار'] = 'url-status',
['حلقة'] = 'episode',
['دوي'] = 'doi',
['رقم معياري'] = 'ردمك',
['سنة النشر'] = 'publication-date',
['سنة الوصول'] = 'date',
['شهر'] = 'تاريخ',
['صنف الأرشيف'] = 'صنف',
['عام'] = 'date',
['عدة مؤلفين'] = 'vauthors',
['عدة محررين'] = 'veditors',
['عدد'] = 'issue',
['مؤلف'] = 'author',
['مؤلفون'] = 'authors',
['مؤلفين مشاركين'] = 'authors',
['مترجم'] = 'translator',
['مجلد'] = 'volume',
['محرر الأخير'] = 'editor-last',
['محرر الأول'] = 'editor-first',
['محرر-الأخير'] = 'editor-last',
['محرر-الأول'] = 'editor-first',
['مناسبة'] = 'اسم المؤتمر',
['وصلة المؤلف'] = 'author-link',
['وصلة مؤلف'] = 'author-link',
['وقت الوقوع'] = 'الوقت',
}
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
Here we use Lua patterns to make suggestions. The form is
['pattern'] = 'correct',
Lua patterns are not REGEX though they are similar. The escape character is '%', not '\'.
For more information about Lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial
match from incorrectly suggesting the wrong parameter name. For instance, the pattern 'a[utho]+r'
matches 'author' in the no-longer-supported parameter |author-separator= so the code suggests
'|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator')
so again, the code suggests '|author='.
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.)
The value from the capture replaces $1 in the 'correct' value.
]]
local patterns = {
['^الاخير(%d+)$'] = 'last$1',
['^مؤلف(%d+)-الأول$'] = 'author$1',
['^ac+es+ ?d?a?t?e?$'] = 'access-date', -- misspelling
['^apellido[s]?(%d+)$'] = 'last$1', -- Spanish, enumerated
['^a[utho]+r$'] = 'author', -- misspelling
['^a[utho]+r(%d+)$'] = 'author$1', -- misspelling, enumerated
['^author link(%d+)$'] = 'author-link$1', -- Polish, enumerated
['^autor[e]?(%d+)$'] = 'author$1', -- Italian/Spanish/German, enumerated
['^authorfirst(%d+)$'] = 'author-first$1', -- old parameter name, enumerated
['^author(%d+)first$'] = 'author-first$1', -- old parameter name, enumerated
['^authorgiven(%d+)$'] = 'author-given$1', -- old parameter name, enumerated
['^author(%d+)given$'] = 'author-given$1', -- old parameter name, enumerated
['^authorlast(%d+)$'] = 'author-last$1', -- old parameter name, enumerated
['^author(%d+)last$'] = 'author-last$1', -- old parameter name, enumerated
['^authormask(%d+)$'] = 'author-mask$1', -- old parameter name, enumerated
['^author(%d+)mask$'] = 'author-mask$1', -- old parameter name, enumerated
['^authorsurname(%d+)$'] = 'author-surname$1', -- old parameter name, enumerated
['^author(%d+)surname$'] = 'author-surname$1', -- old parameter name, enumerated
['^cognome(%d+)$'] = 'last$1', -- Italian, enumerated
['^editorfirst(%d+)$'] = 'editor-first$1', -- old parameter name, enumerated
['^editor(%d+)first$'] = 'editor-first$1', -- old parameter name, enumerated
['^editorgiven(%d+)$'] = 'editor-given$1', -- old parameter name, enumerated
['^editor(%d+)given$'] = 'editor-given$1', -- old parameter name, enumerated
['^editorlast(%d+)$'] = 'editor-last$1', -- old parameter name, enumerated
['^editor(%d+)last$'] = 'editor-last$1', -- old parameter name, enumerated
['^editorlink(%d+)$'] = 'editor-link$1', -- old parameter name, enumerated
['^editor(%d+)link$'] = 'editor-link$1', -- old parameter name, enumerated
['^editormask(%d+)$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editor(%d+)mask$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editorsurname(%d+)$'] = 'editor-surname$1', -- old parameter name, enumerated
['^editor(%d+)surname$'] = 'editor-surname$1', -- old parameter name, enumerated
['^enlaceautore(%d+)$'] = 'author-link$1', -- Spanish, enumerated
['^first (%d+)$'] = 'first$1', -- enumerated
['^last (%d+)$'] = 'last$1', -- enumerated
['^nom[e]?(%d+)$'] = 'last$1', -- Italian/French, enumerated
['^nombre(%d+)$'] = 'first$1', -- Spanish, enumerated
['^primero(%d+)$'] = 'first$1', -- Spanish, enumerated
['^pu[blish]+ers?$'] = 'publisher', -- misspelling
['^subjectlink(%d+)$'] = 'subject-link$1', -- old parameter name, enumerated
['^subject(%d+)link$'] = 'subject-link$1', -- old parameter name, enumerated
['^wkautore(%d+)$'] = 'author-link$1', -- Italian, enumerated
}
return {suggestions = suggestions, patterns=patterns};
d8xmkuon9y2izkyhhet1vwzkmqg8yot
وحدة:Citation/CS1/Identifiers
828
40421
275402
87618
2026-09-15T08:57:20Z
حبيشان
29714
استيراد من ar.wiktionary.org
275402
Scribunto
text/plain
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local has_accept_as_written, is_set, in_array, set_message, select_one, -- functions in Module:Citation/CS1/Utilities
substitute, make_wikilink;
local z; -- table of tables defined in Module:Citation/CS1/Utilities
local cfg; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
--[[--------------------------< P A G E S C O P E V A R I A B L E S >--------------------------------------
declare variables here that have page-wide scope that are not brought in from other modules; that are created here and used here
]]
local auto_link_urls = {}; -- holds identifier URLs for those identifiers that can auto-link |title=
--============================<< H E L P E R F U N C T I O N S >>============================================
--[[--------------------------< W I K I D A T A _ A R T I C L E _ N A M E _ G E T >----------------------------
as an aid to internationalizing identifier-label wikilinks, gets identifier article names from Wikidata.
returns w:<lang code>:<article title> when <q> has an <article title> for <lang code>; nil else. 'w:<lang code>'
ensures that sister project (like wiktionary) will link to the <lang code>.wikipedia article.
for identifiers that do not have <q>, returns nil
for wikis that do not have mw.wikibase installed, returns nil
]]
local function wikidata_article_name_get (q)
if not is_set (q) or (q and not mw.wikibase) then -- when no q number or when a q number but mw.wikibase not installed on this wiki
return nil; -- abandon
end
local wd_article;
local this_wiki_code = cfg.this_wiki_code; -- Wikipedia subdomain; 'en' for en.wikipedia.org
wd_article = mw.wikibase.getSitelink (q, this_wiki_code .. 'wiki'); -- fetch article title from WD; nil when no title available at this wiki
if wd_article then
wd_article = table.concat ({'w:', this_wiki_code, ':', wd_article}); -- interwiki-style link without brackets if taken from WD; leading 'w:' required
end
return wd_article; -- article title from WD; nil else
end
--[[--------------------------< L A B E L _ L I N K _ M A K E >------------------------------------------------
common function to create a link for an identifier label from handler table or from Wikidata
returns the first available of:
1. redirect from local wiki's handler table (if enabled)
2. Wikidata sitelink to the local language wikipedia article (if there is a Wikidata entry for this identifier in the local language)
3. link to wikipedia article specified in the local wiki's handler table
]]
local function label_link_make (handler)
local wd_article;
if not (cfg.use_identifier_redirects and is_set (handler.redirect)) then -- redirect has priority so if enabled and available don't fetch from Wikidata because expensive
wd_article = wikidata_article_name_get (handler.q); -- if Wikidata has an article title for this wiki, get it;
end
return (cfg.use_identifier_redirects and is_set (handler.redirect) and handler.redirect) or wd_article or handler.link;
end
--[[--------------------------< E X T E R N A L _ L I N K _ I D >----------------------------------------------
Formats a wiki-style external link
]]
local function external_link_id (options)
local url_string = options.id;
local ext_link;
local this_wiki_code = cfg.this_wiki_code; -- Wikipedia subdomain; 'en' for en.wikipedia.org
local wd_article; -- article title from Wikidata
if options.encode == true or options.encode == nil then
url_string = mw.uri.encode (url_string, 'PATH');
end
if options.auto_link and is_set (options.access) then
auto_link_urls[options.auto_link] = table.concat ({options.prefix, url_string, options.suffix});
end
ext_link = mw.ustring.format ('[%s%s%s %s]', options.prefix, url_string, options.suffix or "", mw.text.nowiki (options.id));
if is_set (options.access) then
ext_link = substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[options.access].class, cfg.presentation[options.access].title, ext_link}); -- add the free-to-read / paywall lock
end
return table.concat ({
make_wikilink (label_link_make (options), options.label), -- redirect, Wikidata link, or locally specified link (in that order)
options.separator or ' ',
ext_link
});
end
--[[--------------------------< I N T E R N A L _ L I N K _ I D >----------------------------------------------
Formats a wiki-style internal link
TODO: Does not currently need to support options.access, options.encode, auto-linking and COinS (as in external_link_id),
but may be needed in the future for :m:Interwiki_map custom-prefixes like :arxiv:, :bibcode:, :DOI:, :hdl:, :ISSN:,
:JSTOR:, :Openlibrary:, :PMID:, :RFC:.
]]
local function internal_link_id (options)
local id = mw.ustring.gsub (options.id, '%d', cfg.date_names.local_digits); -- translate 'local' digits to Western 0-9
return table.concat (
{
make_wikilink (label_link_make (options), options.label), -- wiki-link the identifier label
options.separator or ' ', -- add the separator
make_wikilink (
table.concat (
{
options.prefix,
id, -- translated to Western digits
options.suffix or ''
}),
substitute (cfg.presentation['bdi'], {'', mw.text.nowiki (options.id)}) -- bdi tags to prevent Latin script identifiers from being reversed at RTL language wikis
); -- nowiki because MediaWiki still has magic links for ISBN and the like; TODO: is it really required?
});
end
--[[--------------------------< I S _ E M B A R G O E D >------------------------------------------------------
Determines if a PMC identifier's online version is embargoed. Compares the date in |pmc-embargo-date= against
today's date. If embargo date is in the future, returns the content of |pmc-embargo-date=; otherwise, returns
an empty string because the embargo has expired or because |pmc-embargo-date= was not set in this cite.
]]
local function is_embargoed (embargo)
if is_set (embargo) then
local lang = mw.getContentLanguage();
local good1, embargo_date, todays_date;
good1, embargo_date = pcall (lang.formatDate, lang, 'U', embargo);
todays_date = lang:formatDate ('U');
if good1 then -- if embargo date is a good date
if tonumber (embargo_date) >= tonumber (todays_date) then -- is embargo date is in the future?
return embargo; -- still embargoed
else
set_message ('maint_pmc_embargo'); -- embargo has expired; add main cat
return ''; -- unset because embargo has expired
end
end
end
return ''; -- |pmc-embargo-date= not set return empty string
end
--[=[-------------------------< I S _ V A L I D _ R X I V _ D A T E >------------------------------------------
for biorxiv, returns true if:
2019-12-11T00:00Z <= biorxiv_date < today + 2 days
for medrxiv, returns true if:
2020-01-01T00:00Z <= medrxiv_date < today + 2 days
The dated form of biorxiv identifier has a start date of 2019-12-11. The Unix timestamp for that date is {{#time:U|2019-12-11}} = 1576022400
The medrxiv identifier has a start date of 2020-01-01. The Unix timestamp for that date is {{#time:U|2020-01-01}} = 1577836800
<rxiv_date> is the date provided in those |biorxiv= parameter values that are dated and in |medrxiv= parameter values at time 00:00:00 UTC
<today> is the current date at time 00:00:00 UTC plus 48 hours
if today's date is 2023-01-01T00:00:00 then
adding 24 hours gives 2023-01-02T00:00:00 – one second more than today
adding 24 hours gives 2023-01-03T00:00:00 – one second more than tomorrow
inputs:
<y>, <m>, <d> – year, month, day parts of the date from the birxiv or medrxiv identifier
<select> 'b' for biorxiv, 'm' for medrxiv; defaults to 'b'
]=]
local function is_valid_rxiv_date (y, m, d, select)
if 0 == tonumber (m) and 12 < tonumber (m) then -- <m> must be a number 1–12
return false;
end
if 0 == tonumber (d) and 31 < tonumber (d) then -- <d> must be a number 1–31; TODO: account for month length and leap yer?
return false;
end
local rxiv_date = table.concat ({y, m, d}, '-'); -- make ymd date string
local good1, good2;
local rxiv_ts, tomorrow_ts; -- to hold Unix timestamps representing the dates
local lang_object = mw.getContentLanguage();
good1, rxiv_ts = pcall (lang_object.formatDate, lang_object, 'U', rxiv_date); -- convert rxiv_date value to Unix timestamp
good2, tomorrow_ts = pcall (lang_object.formatDate, lang_object, 'U', 'today + 2 days' ); -- today midnight + 2 days is one second more than all day tomorrow
if good1 and good2 then -- lang.formatDate() returns a timestamp in the local script which tonumber() may not understand
rxiv_ts = tonumber (rxiv_ts) or lang_object:parseFormattedNumber (rxiv_ts); -- convert to numbers for the comparison;
tomorrow_ts = tonumber (tomorrow_ts) or lang_object:parseFormattedNumber (tomorrow_ts);
else
return false; -- one or both failed to convert to Unix timestamp
end
local limit_ts = ((select and ('m' == select)) and 1577836800) or 1576022400; -- choose the appropriate limit timesatmp
return ((limit_ts <= rxiv_ts) and (rxiv_ts < tomorrow_ts)) -- limit_ts <= rxiv_date < tomorrow's date
end
--[[--------------------------< IS _ V A L I D _ I S X N >-----------------------------------------------------
ISBN-10 and ISSN validator code calculates checksum across all ISBN/ISSN digits including the check digit.
ISBN-13 is checked in isbn().
If the number is valid the result will be 0. Before calling this function, ISBN/ISSN must be checked for length
and stripped of dashes, spaces and other non-ISxN characters.
]]
local function is_valid_isxn (isxn_str, len)
local temp = 0;
isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values '0' → 0x30 .. '9' → 0x39, 'X' → 0x58
len = len + 1; -- adjust to be a loop counter
for i, v in ipairs (isxn_str) do -- loop through all of the bytes and calculate the checksum
if v == string.byte ("X" ) then -- if checkdigit is X (compares the byte value of 'X' which is 0x58)
temp = temp + 10 * (len - i); -- it represents 10 decimal
else
temp = temp + tonumber (string.char (v) )*(len-i);
end
end
return temp % 11 == 0; -- returns true if calculation result is zero
end
--[[--------------------------< IS _ V A L I D _ I S X N _ 1 3 >-----------------------------------------------
ISBN-13 and ISMN validator code calculates checksum across all 13 ISBN/ISMN digits including the check digit.
If the number is valid, the result will be 0. Before calling this function, ISBN-13/ISMN must be checked for length
and stripped of dashes, spaces and other non-ISxN-13 characters.
]]
local function is_valid_isxn_13 (isxn_str)
local temp=0;
isxn_str = { isxn_str:byte(1, 13) }; -- make a table of byte values '0' → 0x30 .. '9' → 0x39
for i, v in ipairs (isxn_str) do
temp = temp + (3 - 2*(i % 2)) * tonumber (string.char (v) ); -- multiply odd index digits by 1, even index digits by 3 and sum; includes check digit
end
return temp % 10 == 0; -- sum modulo 10 is zero when ISBN-13/ISMN is correct
end
--[[--------------------------< N O R M A L I Z E _ L C C N >--------------------------------------------------
LCCN normalization (https://www.loc.gov/marc/lccn-namespace.html#normalization)
1. Remove all blanks.
2. If there is a forward slash (/) in the string, remove it, and remove all characters to the right of the forward slash.
3. If there is a hyphen in the string:
a. Remove it.
b. Inspect the substring following (to the right of) the (removed) hyphen. Then (and assuming that steps 1 and 2 have been carried out):
1. All these characters should be digits, and there should be six or less. (not done in this function)
2. If the length of the substring is less than 6, left-fill the substring with zeroes until the length is six.
Returns a normalized LCCN for lccn() to validate. There is no error checking (step 3.b.1) performed in this function.
]]
local function normalize_lccn (lccn)
lccn = lccn:gsub ("%s", ""); -- 1. strip whitespace
if nil ~= string.find (lccn, '/') then
lccn = lccn:match ("(.-)/"); -- 2. remove forward slash and all character to the right of it
end
local prefix
local suffix
prefix, suffix = lccn:match ("(.+)%-(.+)"); -- 3.a remove hyphen by splitting the string into prefix and suffix
if nil ~= suffix then -- if there was a hyphen
suffix = string.rep("0", 6-string.len (suffix)) .. suffix; -- 3.b.2 left fill the suffix with 0s if suffix length less than 6
lccn = prefix..suffix; -- reassemble the LCCN
end
return lccn;
end
--============================<< I D E N T I F I E R F U N C T I O N S >>====================================
--[[--------------------------< A R X I V >--------------------------------------------------------------------
See: https://arxiv.org/help/arxiv_identifier
format and error check arXiv identifier. There are three valid forms of the identifier:
the first form, valid only between date codes 9107 and 0703, is:
arXiv:<archive>.<class>/<date code><number><version>
where:
<archive> is a string of alpha characters - may be hyphenated; no other punctuation
<class> is a string of alpha characters - may be hyphenated; no other punctuation; not the same as |class= parameter which is not supported in this form
<date code> is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01
first digit of YY for this form can only 9 and 0
<number> is a three-digit number
<version> is a 1 or more digit number preceded with a lowercase v; no spaces (undocumented)
the second form, valid from April 2007 through December 2014 is:
arXiv:<date code>.<number><version>
where:
<date code> is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01
<number> is a four-digit number
<version> is a 1 or more digit number preceded with a lowercase v; no spaces
the third form, valid from January 2015 is:
arXiv:<date code>.<number><version>
where:
<date code> and <version> are as defined for 0704-1412
<number> is a five-digit number
]]
local function arxiv (options)
local id = options.id;
local class = options.Class; -- TODO: lowercase?
local handler = options.handler;
local year, month, version;
local err_msg = false; -- assume no error message
local text; -- output text
if id:match("^%a[%a%.%-]+/[90]%d[01]%d%d%d%d$") or id:match("^%a[%a%.%-]+/[90]%d[01]%d%d%d%dv%d+$") then -- test for the 9107-0703 format with or without version
year, month = id:match("^%a[%a%.%-]+/([90]%d)([01]%d)%d%d%d[v%d]*$");
year = tonumber (year);
month = tonumber (month);
if ((not (90 < year or 8 > year)) or (1 > month or 12 < month)) or -- if invalid year or invalid month
((91 == year and 7 > month) or (7 == year and 3 < month)) then -- if years ok, are starting and ending months ok?
err_msg = true; -- flag for error message
end
elseif id:match("^%d%d[01]%d%.%d%d%d%d$") or id:match("^%d%d[01]%d%.%d%d%d%dv%d+$") then -- test for the 0704-1412 with or without version
year, month = id:match("^(%d%d)([01]%d)%.%d%d%d%d[v%d]*$");
year = tonumber (year);
month = tonumber (month);
if ((7 > year) or (14 < year) or (1 > month or 12 < month)) or -- is year invalid or is month invalid? (doesn't test for future years)
((7 == year) and (4 > month)) then -- when year is 07, is month invalid (before April)?
err_msg = true; -- flag for error message
end
elseif id:match("^%d%d[01]%d%.%d%d%d%d%d$") or id:match("^%d%d[01]%d%.%d%d%d%d%dv%d+$") then -- test for the 1501- format with or without version
year, month = id:match("^(%d%d)([01]%d)%.%d%d%d%d%d[v%d]*$");
year = tonumber (year);
month = tonumber (month);
if ((15 > year) or (1 > month or 12 < month)) then -- is year invalid or is month invalid? (doesn't test for future years)
err_msg = true; -- flag for error message
end
else
err_msg = true; -- not a recognized format; flag for error message
end
if err_msg then
options.coins_list_t['ARXIV'] = nil; -- when error, unset so not included in COinS
end
local err_msg_t = {};
if err_msg then
set_message ('err_bad_arxiv');
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = handler.access});
if is_set (class) then
if id:match ('^%d+') then
text = table.concat ({text, ' [[https://arxiv.org/archive/', class, ' ', class, ']]'}); -- external link within square brackets, not wikilink
else
set_message ('err_class_ignored');
end
else -- class not set
if id:match ('^%d+') and options.CitationClass == 'arxiv' then -- new (post 2007) format; {{cite arxiv}} only
set_message ('maint_missing_class'); -- add maint cat
end
end
return text;
end
--[[--------------------------< B I B C O D E >--------------------------------------------------------------------
Validates (sort of) and formats a bibcode ID.
Format for bibcodes is specified here: https://adsabs.harvard.edu/abs_doc/help_pages/data.html#bibcodes
But, this: 2015arXiv151206696F is apparently valid so apparently, the only things that really matter are length, 19 characters
and first four digits must be a year. This function makes these tests:
length must be 19 characters
characters in position
1–4 must be digits and must represent a year in the range of 1000 – next year
5 must be a letter
6–8 must be letter, digit, ampersand, or dot (ampersand cannot directly precede a dot; &. )
9–18 must be letter, digit, or dot
19 must be a letter or dot
]]
local function bibcode (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local ignore_invalid = options.accept;
local err_type;
local err_msg = '';
local year;
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode,
access = access});
if 19 ~= id:len() then
err_type = cfg.err_msg_supl.length;
else
year = id:match ("^(%d%d%d%d)[%a][%w&%.][%w&%.][%w&%.][%w.]+[%a%.]$");
if not year then -- if nil then no pattern match
err_type = cfg.err_msg_supl.value; -- so value error
else
local next_year = tonumber (os.date ('%Y')) + 1; -- get the current year as a number and add one for next year
year = tonumber (year); -- convert year portion of bibcode to a number
if (1000 > year) or (year > next_year) then
err_type = cfg.err_msg_supl.year; -- year out of bounds
end
if id:find('&%.') then
err_type = cfg.err_msg_supl.journal; -- journal abbreviation must not have '&.' (if it does it's missing a letter)
end
if id:match ('.........%.tmp%.') then -- temporary bibcodes when positions 10–14 are '.tmp.'
set_message ('maint_bibcode');
end
end
end
if is_set (err_type) and not ignore_invalid then -- if there was an error detected and accept-as-written markup not used
set_message ('err_bad_bibcode', {err_type});
options.coins_list_t['BIBCODE'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< B I O R X I V >-----------------------------------------------------------------
Format bioRxiv ID and do simple error checking. Before 2019-12-11, biorXiv IDs were 10.1101/ followed by exactly
6 digits. After 2019-12-11, biorXiv IDs retained the six-digit identifier but prefixed that with a yyyy.mm.dd.
date and suffixed with an optional version identifier.
From December 2025 biorxiv added a new 'doi' prefix: 10.64898:
10.64898/2025.12.10.693067
The bioRxiv ID is the string of characters:
https://doi.org/10.1101/078733 -> 10.1101/078733
or a date followed by a six-digit number followed by an optional version indicator 'v' and one or more digits:
https://www.biorxiv.org/content/10.1101/2019.12.11.123456v2 -> 10.1101/2019.12.11.123456v2
see https://www.biorxiv.org/about-biorxiv
]]
local function biorxiv (options)
local id = options.id;
local handler = options.handler;
local err_msg = true; -- flag; assume that there will be an error
local patterns = {
'^10%.1101/%d%d%d%d%d%d$', -- simple 6-digit identifier (before 2019-12-11)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%dv%d+$', -- y.m.d. date + 6-digit identifier + version (after 2019-12-11)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d$', -- y.m.d. date + 6-digit identifier (after 2019-12-11)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%dv%d+$', -- y.m.d. date + 6-digit identifier + version (from December 2025)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d$', -- y.m.d. date + 6-digit identifier (from December 2025)
}
for _, pattern in ipairs (patterns) do -- spin through the patterns looking for a match
if id:match (pattern) then
local y, m, d = id:match (pattern); -- found a match, attempt to get year, month and date from the identifier
if m then -- m is nil when id is the six-digit form
if not is_valid_rxiv_date (y, m, d, 'b') then -- validate the encoded date; 'b' for biorxiv limit
break; -- date fail; break out early so we don't unset the error message
end
end
err_msg = nil; -- we found a match so unset the error message
break; -- and done
end
end -- err_cat remains set here when no match
if err_msg then
options.coins_list_t['BIORXIV'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_biorxiv'); -- and set the error message
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator,
encode = handler.encode, access = handler.access});
end
--[[--------------------------< C I T E S E E R X >------------------------------------------------------------
CiteSeerX use their own notion of "doi" (not to be confused with the identifiers resolved via doi.org).
The description of the structure of this identifier can be found at Help_talk:Citation_Style_1/Archive_26#CiteSeerX_id_structure
]]
local function citeseerx (options)
local id = options.id;
local handler = options.handler;
local matched;
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode,
access = handler.access});
matched = id:match ("^10%.1%.1%.[1-9]%d?%d?%d?%.[1-9]%d?%d?%d?$");
if not matched then
set_message ('err_bad_citeseerx' );
options.coins_list_t['CITESEERX'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< D O I >------------------------------------------------------------------------
Formats a DOI and checks for DOI errors.
DOI names contain two parts: prefix and suffix separated by a forward slash.
Prefix: directory indicator '10.' followed by a registrant code
Suffix: character string of any length chosen by the registrant
This function checks a DOI name for: prefix/suffix. If the DOI name contains spaces or endashes, or, if it ends
with a period or a comma, this function will emit a bad_doi error message.
DOI names are case-insensitive and can incorporate any printable Unicode characters so the test for spaces, endash,
and terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely
if ever used in DOI names.
https://www.doi.org/doi_handbook/2_Numbering.html -- 2.2 Syntax of a DOI name
https://www.doi.org/doi_handbook/2_Numbering.html#2.2.2 -- 2.2.2 DOI prefix
]]
local function doi (options)
local id = options.id;
local inactive = options.DoiBroken
local access = options.access;
local ignore_invalid = options.accept;
local handler = options.handler;
local err_flag;
local function is_extended_free (registrant, suffix) -- local function to check those few registrants that are mixed; identifiable by the doi suffix <incipit>
suffix = suffix:lower(); -- ascii [a-z] same as [A-Z] in doi names; see §3.4.4 Case Insensitivity of the Doi Name
if cfg.extended_registrants_t[registrant] then -- if this registrant has known free-to-read extentions
for _, incipit in ipairs (cfg.extended_registrants_t[registrant]) do -- loop through the registrant's incipits
if mw.ustring.find (suffix, '^' .. incipit:lower()) then -- ascii [a-z] same as [A-Z] in doi names
return true; -- if foundm done
end
end
end
end
local text;
if is_set (inactive) then
local inactive_year = inactive:match("%d%d%d%d"); -- try to get the year portion from the inactive date
local inactive_month, good;
if is_set (inactive_year) then
if 4 < inactive:len() then -- inactive date has more than just a year (could be anything)
local lang_obj = mw.getContentLanguage(); -- get a language object for this wiki
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, 'F', inactive); -- try to get the month name from the inactive date
if not good then
inactive_month = nil; -- something went wrong so make sure this is unset
end
end
end -- otherwise, |doi-broken-date= has something but it isn't a date
if is_set (inactive_year) and is_set (inactive_month) then
set_message ('maint_doi_inactive_dated', {inactive_year, inactive_month, ' '});
elseif is_set (inactive_year) then
set_message ('maint_doi_inactive_dated', {inactive_year, '', ''});
else
set_message ('maint_doi_inactive');
end
inactive = substitute (cfg.messages['inactive'], inactive );
end
local suffix;
local registrant, suffix = mw.ustring.match (id, '^10%.([^/]+)/([^%s–]-[^%.,])$'); -- registrant and suffix set when DOI has the proper basic form; both nil else
local registrant_err_patterns = { -- these patterns are for code ranges that are not supported
'^[^1-3]%d%d%d%d%.%d+$', -- 5 digits with subcode (reject 0xxxx, 40000+); accepts: 10000–39999
'^[^1-8]%d%d%d%d$', -- 5 digits without subcode (reject 0xxxx, 90000+); accepts: 10000–89999
'^[^1-9]%d%d%d%.%d+$', -- 4 digits with subcode (reject 0xxx); accepts: 1000–9999
'^[^1-9]%d%d%d$', -- 4 digits without subcode (reject 0xxx); accepts: 1000–9999
'^%d%d%d%d%d%d+', -- 6 or more digits
'^%d%d?%d?$', -- less than 4 digits without subcode (3 digits with subcode is legitimate)
'^%d%d?%.[%d%.]+', -- 1 or 2 digits with subcode
'^5555$', -- test registrant will never resolve
'[^%d%.]', -- any character that isn't a digit or a dot
}
if not ignore_invalid then
if registrant then -- when DOI has proper form
for i, pattern in ipairs (registrant_err_patterns) do -- spin through error patterns
if registrant:match (pattern) then -- to validate registrant codes
err_flag = set_message ('err_bad_doi'); -- when found, mark this DOI as bad
break; -- and done
end
end
else
err_flag = set_message ('err_bad_doi'); -- invalid directory or malformed
end
else
set_message ('maint_doi_ignore');
end
if err_flag then
options.coins_list_t['DOI'] = nil; -- when error, unset so not included in COinS
else -- here when doi has no errors or has been wrapped in accept-as-written markup
suffix = mw.ustring.match (id, '^10%.[^/]+/(.+)'); -- refetch suffix because doi may have been wrapped in accept-as-written markup
if not access and (cfg.known_free_doi_registrants_t[registrant] or is_extended_free (registrant, suffix)) then -- |doi-access=free not set and <registrant> is known to be free
set_message ('maint_doi_unflagged_free'); -- set a maint cat
end
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access,
auto_link = not (err_flag or is_set (inactive) or ignore_invalid) and 'doi' or nil -- do not auto-link when |doi-broken-date= has a value or when there is a DOI error or (to play it safe, after all, auto-linking is not essential) when invalid DOIs are ignored
}) .. (inactive or '');
return text;
end
--[[--------------------------< H D L >------------------------------------------------------------------------
Formats an HDL with minor error checking.
HDL names contain two parts: prefix and suffix separated by a forward slash.
Prefix: character string using any character in the UCS-2 character set except '/'
Suffix: character string of any length using any character in the UCS-2 character set chosen by the registrant
This function checks a HDL name for: prefix/suffix. If the HDL name contains spaces, endashes, or, if it ends
with a period or a comma, this function will emit a bad_hdl error message.
HDL names are case-insensitive and can incorporate any printable Unicode characters so the test for endashes and
terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely
if ever used in HDLs.
Query string parameters are named here: https://www.handle.net/proxy_servlet.html. query strings are not displayed
but since '?' is an allowed character in an HDL, '?' followed by one of the query parameters is the only way we
have to detect the query string so that it isn't URL-encoded with the rest of the identifier.
]]
local function hdl (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local query_params = { -- list of known query parameters from https://www.handle.net/proxy_servlet.html
'noredirect',
'ignore_aliases',
'auth',
'cert',
'index',
'type',
'urlappend',
'locatt',
'action',
}
local hdl, suffix, param = id:match ('(.-)(%?(%a+).+)$'); -- look for query string
local found;
if hdl then -- when there are query strings, this is the handle identifier portion
for _, q in ipairs (query_params) do -- spin through the list of query parameters
if param:match ('^' .. q) then -- if the query string begins with one of the parameters
found = true; -- announce a find
break; -- and stop looking
end
end
end
if found then
id = hdl; -- found so replace id with the handle portion; this will be URL-encoded, suffix will not
else
suffix = ''; -- make sure suffix is empty string for concatenation else
end
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, suffix = suffix, separator = handler.separator, encode = handler.encode, access = access})
if nil == id:match("^[^%s–]-/[^%s–]-[^%.,]$") then -- HDL must contain a forward slash, must not contain spaces, endashes, and must not end with period or comma
set_message ('err_bad_hdl' );
options.coins_list_t['HDL'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< I S B N >----------------------------------------------------------------------
Determines whether an ISBN string is valid
]]
local function isbn (options_t)
local isbn_str = options_t.id;
local ignore_invalid = options_t.accept;
local handler = options_t.handler;
local year = options_t.Year; -- when set, valid anchor_year; may have a disambiguator which must be removed
local function return_result (check, err_type) -- local function to handle the various returns
local ISBN = internal_link_id ({link = handler.link, label = handler.label, redirect = handler.redirect,
prefix = handler.prefix, id = isbn_str, separator = handler.separator});
if ignore_invalid then -- if ignoring ISBN errors
set_message ('maint_isbn_ignore'); -- add a maint category even when there is no error
else -- here when not ignoring
if not check then -- and there is an error
options_t.coins_list_t['ISBN'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_isbn', err_type); -- set an error message
return ISBN; -- return id text
end
end
return ISBN; -- return id text
end
if year and not ignore_invalid then --
year = year:match ('%d%d%d%d?'); -- strip disambiguator if present
if year and (1965 > tonumber(year)) then -- <year> will be nil here when |year=n.d. or |year=nd
set_message ('err_invalid_isbn_date'); -- set an error message
return internal_link_id ({link = handler.link, label = handler.label, redirect = handler.redirect,
prefix = handler.prefix, id = isbn_str, separator = handler.separator});
end
end
if nil ~= isbn_str:match ('[^%s-0-9X]') then
return return_result (false, cfg.err_msg_supl.char); -- fail if isbn_str contains anything but digits, hyphens, or the uppercase X
end
local id = isbn_str:gsub ('[%s-]', ''); -- remove hyphens and whitespace
local len = id:len();
if len ~= 10 and len ~= 13 then
return return_result (false, cfg.err_msg_supl.length); -- fail if incorrect length
end
if len == 10 then
if id:match ('^%d*X?$') == nil then -- fail if isbn_str has 'X' anywhere but last position
return return_result (false, cfg.err_msg_supl.form);
end
if not is_valid_isxn (id, 10) then -- test isbn-10 for numerical validity
return return_result (false, cfg.err_msg_supl.check); -- fail if isbn-10 is not numerically valid
end
if id:find ('^63[01]') then -- 630xxxxxxx and 631xxxxxxx are (apparently) not valid isbn group ids but are used by amazon as numeric identifiers (asin)
return return_result (false, cfg.err_msg_supl.group); -- fail if isbn-10 begins with 630/1
end
return return_result (true, cfg.err_msg_supl.check); -- pass if isbn-10 is numerically valid
else
if id:match ('^%d+$') == nil then
return return_result (false, cfg.err_msg_supl.char); -- fail if ISBN-13 is not all digits
end
if id:match ('^97[89]%d*$') == nil then
return return_result (false, cfg.err_msg_supl.prefix); -- fail when ISBN-13 does not begin with 978 or 979
end
if id:match ('^9790') then
return return_result (false, cfg.err_msg_supl.group); -- group identifier '0' is reserved to ISMN
end
return return_result (is_valid_isxn_13 (id), cfg.err_msg_supl.check);
end
end
--[[--------------------------< A S I N >----------------------------------------------------------------------
Formats a link to Amazon. Do simple error checking: ASIN must be mix of 10 numeric or uppercase alpha
characters. If a mix, first character must be uppercase alpha; if all numeric, ASINs must be 10-digit
ISBN. If 10-digit ISBN, add a maintenance category so a bot or AWB script can replace |asin= with |isbn=.
Error message if not 10 characters, if not ISBN-10, if mixed and first character is a digit.
|asin=630....... and |asin=631....... are (apparently) not a legitimate ISBN though it checksums as one; these
do not cause this function to emit the maint_asin message
This function is positioned here because it calls isbn()
]]
local function asin (options)
local id = options.id;
local domain = options.ASINTLD;
local err_flag;
if not id:match("^[%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u]$") then
err_flag = set_message ('err_bad_asin'); -- ASIN is not a mix of 10 uppercase alpha and numeric characters
else
if id:match("^%d%d%d%d%d%d%d%d%d[%dX]$") then -- if 10-digit numeric (or 9 digits with terminal X)
if is_valid_isxn (id, 10) then -- see if ASIN value is or validates as ISBN-10
elseif not id:find ('^63[01]') then -- 630xxxxxxx and 631xxxxxxx are (apparently) not a valid isbn prefixes but are used by amazon as a numeric identifier
err_flag = set_message ('err_bad_asin'); -- ASIN has ISBN-10 form but begins with something other than 630/1 so probably an isbn
elseif not is_set (err_flag) then
err_flag = set_message ('err_bad_asin'); -- ASIN is not ISBN-10
end
elseif not id:match("^%u[%d%u]+$") then
err_flag = set_message ('err_bad_asin'); -- asin doesn't begin with uppercase alpha
end
end
if (not is_set (domain)) or in_array (domain, {'us'}) then -- default: United States
domain = "com";
elseif in_array (domain, {'jp', 'uk'}) then -- Japan, United Kingdom
domain = "co." .. domain;
elseif in_array (domain, {'z.cn'}) then -- China
domain = "cn";
elseif in_array (domain, {'au', 'br', 'mx', 'sg', 'tr'}) then -- Australia, Brazil, Mexico, Singapore, Turkey
domain = "com." .. domain;
elseif not in_array (domain, {'ae', 'ca', 'cn', 'de', 'es', 'fr', 'in', 'it', 'nl', 'pl', 'sa', 'se', 'co.jp', 'co.uk', 'com', 'com.au', 'com.br', 'com.mx', 'com.sg', 'com.tr'}) then -- Arabic Emirates, Canada, China, Germany, Spain, France, Indonesia, Italy, Netherlands, Poland, Saudi Arabia, Sweden (as of 2021-03 Austria (.at), Liechtenstein (.li) and Switzerland (.ch) still redirect to the German site (.de) with special settings, so don't maintain local ASINs for them)
err_flag = set_message ('err_bad_asin_tld'); -- unsupported asin-tld value
end
local handler = options.handler;
if not is_set (err_flag) then
options.coins_list_t['ASIN'] = handler.prefix .. domain .. "/dp/" .. id; -- asin for coins
else
options.coins_list_t['ASIN'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix .. domain .. "/dp/",
id = id, encode = handler.encode, separator = handler.separator})
end
--[[--------------------------< I S M N >----------------------------------------------------------------------
Determines whether an ISMN string is valid. Similar to ISBN-13, ISMN is 13 digits beginning 979-0-... and uses the
same check digit calculations. See https://www.ismn-international.org/download/Web_ISMN_Users_Manual_2008-6.pdf
section 2, pages 9–12.
ismn value not made part of COinS metadata because we don't have a url or isn't a COinS-defined identifier (rft.xxx)
or an identifier registered at info-uri.info (info:)
]]
local function ismn (options)
local id = options.id;
local handler = options.handler;
local text;
local valid_ismn = true;
local id_copy;
id_copy = id; -- save a copy because this testing is destructive
id = id:gsub ('[%s-]', ''); -- remove hyphens and white space
if 13 ~= id:len() or id:match ("^9790%d*$" ) == nil then -- ISMN must be 13 digits and begin with 9790
valid_ismn = false;
else
valid_ismn=is_valid_isxn_13 (id); -- validate ISMN
end
-- text = internal_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect, -- use this (or external version) when there is some place to link to
-- prefix = handler.prefix, id = id_copy, separator = handler.separator, encode = handler.encode})
text = table.concat ( -- because no place to link to yet
{
make_wikilink (label_link_make (handler), handler.label),
handler.separator,
id_copy
});
if false == valid_ismn then
options.coins_list_t['ISMN'] = nil; -- when error, unset so not included in COinS; not really necessary here because ismn not made part of COinS
set_message ('err_bad_ismn'); -- create an error message if the ISMN is invalid
end
return text;
end
--[[--------------------------< I S S N >----------------------------------------------------------------------
Validate and format an ISSN. This code fixes the case where an editor has included an ISSN in the citation but
has separated the two groups of four digits with a space. When that condition occurred, the resulting link looked
like this:
|issn=0819 4327 gives: [https://www.worldcat.org/issn/0819 4327 0819 4327] -- can't have spaces in an external link
This code now prevents that by inserting a hyphen at the ISSN midpoint. It also validates the ISSN for length
and makes sure that the checkdigit agrees with the calculated value. Incorrect length (8 digits), characters
other than 0-9 and X, or checkdigit / calculated value mismatch will all cause a check ISSN error message. The
ISSN is always displayed with a hyphen, even if the ISSN was given as a single group of 8 digits.
]]
local function issn (options)
local id = options.id;
local handler = options.handler;
local ignore_invalid = options.accept;
local issn_copy = id; -- save a copy of unadulterated ISSN; use this version for display if ISSN does not validate
local text;
local valid_issn = true;
id = id:gsub ('[%s-]', ''); -- remove hyphens and whitespace
if 8 ~= id:len() or nil == id:match ("^%d*X?$" ) then -- validate the ISSN: 8 digits long, containing only 0-9 or X in the last position
valid_issn = false; -- wrong length or improper character
else
valid_issn = is_valid_isxn (id, 8); -- validate ISSN
end
if true == valid_issn then
id = string.sub (id, 1, 4 ) .. "-" .. string.sub (id, 5 ); -- if valid, display correctly formatted version
else
id = issn_copy; -- if not valid, show the invalid ISSN with error message
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode})
if ignore_invalid then
set_message ('maint_issn_ignore');
else
if false == valid_issn then
options.coins_list_t['ISSN'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_issn', (options.hkey == 'EISSN') and 'e' or ''); -- create an error message if the ISSN is invalid
end
end
return text;
end
--[[--------------------------< J F M >-----------------------------------------------------------------------
A numerical identifier in the form nn.nnnn.nn
]]
local function jfm (options)
local id = options.id;
local handler = options.handler;
local id_num;
id_num = id:match ('^[Jj][Ff][Mm](.*)$'); -- identifier with jfm prefix; extract identifier
if is_set (id_num) then
set_message ('maint_jfm_format');
else -- plain number without JFM prefix
id_num = id; -- if here id does not have prefix
end
if id_num and id_num:match('^%d%d%.%d%d%d%d%.%d%d$') then
id = id_num; -- jfm matches pattern
else
set_message ('err_bad_jfm' ); -- set an error message
options.coins_list_t['JFM'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< J S T O R >--------------------------------------------------------------------
Format a JSTOR with some error checking
]]
local function jstor (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
if id:find ('[Jj][Ss][Tt][Oo][Rr]') or id:find ('^https?://') or id:find ('%s') then
set_message ('err_bad_jstor'); -- set an error message
options.coins_list_t['JSTOR'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access});
end
--[[--------------------------< L C C N >----------------------------------------------------------------------
Format LCCN link and do simple error checking. LCCN is a character string 8-12 characters long. The length of
the LCCN dictates the character type of the first 1-3 characters; the rightmost eight are always digits.
https://oclc-research.github.io/infoURI-Frozen/info-uri.info/info:lccn/reg.html
length = 8 then all digits
length = 9 then lccn[1] is lowercase alpha
length = 10 then lccn[1] and lccn[2] are both lowercase alpha or both digits
length = 11 then lccn[1] is lower case alpha, lccn[2] and lccn[3] are both lowercase alpha or both digits
length = 12 then lccn[1] and lccn[2] are both lowercase alpha
]]
local function lccn (options)
local lccn = options.id;
local handler = options.handler;
local err_flag; -- presume that LCCN is valid
local id = lccn; -- local copy of the LCCN
id = normalize_lccn (id); -- get canonical form (no whitespace, hyphens, forward slashes)
local len = id:len(); -- get the length of the LCCN
if 8 == len then
if id:match("[^%d]") then -- if LCCN has anything but digits (nil if only digits)
err_flag = set_message ('err_bad_lccn'); -- set an error message
end
elseif 9 == len then -- LCCN should be adddddddd
if nil == id:match("%l%d%d%d%d%d%d%d%d") then -- does it match our pattern?
err_flag = set_message ('err_bad_lccn'); -- set an error message
end
elseif 10 == len then -- LCCN should be aadddddddd or dddddddddd
if id:match("[^%d]") then -- if LCCN has anything but digits (nil if only digits) ...
if nil == id:match("^%l%l%d%d%d%d%d%d%d%d") then -- ... see if it matches our pattern
err_flag = set_message ('err_bad_lccn'); -- no match, set an error message
end
end
elseif 11 == len then -- LCCN should be aaadddddddd or adddddddddd
if not (id:match("^%l%l%l%d%d%d%d%d%d%d%d") or id:match("^%l%d%d%d%d%d%d%d%d%d%d")) then -- see if it matches one of our patterns
err_flag = set_message ('err_bad_lccn'); -- no match, set an error message
end
elseif 12 == len then -- LCCN should be aadddddddddd
if not id:match("^%l%l%d%d%d%d%d%d%d%d%d%d") then -- see if it matches our pattern
err_flag = set_message ('err_bad_lccn'); -- no match, set an error message
end
else
err_flag = set_message ('err_bad_lccn'); -- wrong length, set an error message
end
if not is_set (err_flag) and nil ~= lccn:find ('%s') then
err_flag = set_message ('err_bad_lccn'); -- lccn contains a space, set an error message
end
if is_set (err_flag) then
options.coins_list_t['LCCN'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = lccn, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< M E D R X I V >-----------------------------------------------------------------
Format medRxiv ID and do simple error checking. Similar to later bioRxiv IDs, medRxiv IDs are prefixed with a
yyyy.mm.dd. date and suffixed with an optional version identifier. Ealiest date accepted is 2020.01.01
The medRxiv ID is a date followed by an eight-digit number followed by an optional version indicator 'v' and one or more digits:
https://www.medrxiv.org/content/10.1101/2020.11.16.20232009v2 -> 10.1101/2020.11.16.20232009v2
]]
local function medrxiv (options)
local id = options.id;
local handler = options.handler;
local err_msg_flag = true; -- flag; assume that there will be an error
local patterns = {
'^%d%d%d%d%d%d%d%d$', -- simple 8-digit identifier; these should be relatively rare
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%dv%d+$', -- y.m.d. date + 8-digit identifier + version (2020-01-01 and later)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%d$', -- y.m.d. date + 8-digit identifier (2020-01-01 and later)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%dv%d+$', -- y.m.d. date + 8-digit identifier + version (2025-12-01 and later)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%d$', -- y.m.d. date + 8-digit identifier (2025-12-01 and later)
}
for _, pattern in ipairs (patterns) do -- spin through the patterns looking for a match
if id:match (pattern) then
local y, m, d = id:match (pattern); -- found a match, attempt to get year, month and date from the identifier
if m then -- m is nil when id is the 8-digit form
if not is_valid_rxiv_date (y, m, d, 'b') then -- validate the encoded date; 'b' for medrxiv limit
break; -- date fail; break out early so we don't unset the error message
end
end
err_msg_flag = nil; -- we found a match so unset the error message
break; -- and done
end
end -- <err_msg_flag> remains set here when no match
if err_msg_flag then
options.coins_list_t['MEDRXIV'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_medrxiv'); -- and set the error message
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator,
encode = handler.encode, access = handler.access});
end
--[[--------------------------< M R >--------------------------------------------------------------------------
A seven digit number; if not seven digits, zero-fill leading digits to make seven digits.
]]
local function mr (options)
local id = options.id;
local handler = options.handler;
local id_num;
local id_len;
id_num = id:match ('^[Mm][Rr](%d+)$'); -- identifier with mr prefix
if is_set (id_num) then
set_message ('maint_mr_format'); -- add maint cat
else -- plain number without mr prefix
id_num = id:match ('^%d+$'); -- if here id is all digits
end
id_len = id_num and id_num:len() or 0;
if (7 >= id_len) and (0 ~= id_len) then
id = string.rep ('0', 7-id_len) .. id_num; -- zero-fill leading digits
else
set_message ('err_bad_mr'); -- set an error message
options.coins_list_t['MR'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< O C L C >----------------------------------------------------------------------
Validate and format an OCLC ID. https://www.oclc.org/batchload/controlnumber.en.html {{dead link}}
archived at: https://web.archive.org/web/20161228233804/https://www.oclc.org/batchload/controlnumber.en.html
]]
local function oclc (options)
local id = options.id;
local handler = options.handler;
local number;
if id:match('^ocm%d%d%d%d%d%d%d%d$') then -- ocm prefix and 8 digits; 001 field (12 characters)
number = id:match('ocm(%d+)'); -- get the number
elseif id:match('^ocn%d%d%d%d%d%d%d%d%d$') then -- ocn prefix and 9 digits; 001 field (12 characters)
number = id:match('ocn(%d+)'); -- get the number
elseif id:match('^on%d%d%d%d%d%d%d%d%d%d+$') then -- on prefix and 10 or more digits; 001 field (12 characters)
number = id:match('^on(%d%d%d%d%d%d%d%d%d%d+)$'); -- get the number
elseif id:match('^%(OCoLC%)[1-9]%d*$') then -- (OCoLC) prefix and variable number digits; no leading zeros; 035 field
number = id:match('%(OCoLC%)([1-9]%d*)'); -- get the number
if 9 < number:len() then
number = nil; -- constrain to 1 to 9 digits; change this when OCLC issues 10-digit numbers
end
elseif id:match('^%d+$') then -- no prefix
number = id; -- get the number
if tonumber (id) > handler.id_limit then
number = nil; -- unset when id value exceeds the limit
end
end
if number then -- proper format
id = number; -- exclude prefix, if any, from external link
else
set_message ('err_bad_oclc') -- add an error message if the id is malformed
options.coins_list_t['OCLC'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< O P E N L I B R A R Y >--------------------------------------------------------
Formats an OpenLibrary link, and checks for associated errors.
]]
local function openlibrary (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local ident, code = id:gsub('^OL', ''):match("^(%d+([AMW]))$"); -- strip optional OL prefix followed immediately by digits followed by 'A', 'M', or 'W';
local err_flag;
local prefix = { -- these are appended to the handler.prefix according to code
['A']='authors/OL',
['M']='books/OL',
['W']='works/OL',
['X']='OL' -- not a code; spoof when 'code' in id is invalid
};
if not ident then
code = 'X'; -- no code or id completely invalid
ident = id; -- copy id to ident so that we display the flawed identifier
err_flag = set_message ('err_bad_ol');
end
if not is_set (err_flag) then
options.coins_list_t['OL'] = handler.prefix .. prefix[code] .. ident; -- experiment for ol coins
else
options.coins_list_t['OL'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix .. prefix[code],
id = ident, separator = handler.separator, encode = handler.encode,
access = access});
end
--[[--------------------------< O S T I >----------------------------------------------------------------------
Format OSTI and do simple error checking. OSTIs are sequential numbers beginning at 1 and counting up. This
code checks the OSTI to see that it contains only digits and is less than test_limit specified in the configuration;
the value in test_limit will need to be updated periodically as more OSTIs are issued.
NB. 1018 is the lowest OSTI number found in the wild (so far) and resolving OK on the OSTI site
]]
local function osti (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
if id:match("[^%d]") then -- if OSTI has anything but digits
set_message ('err_bad_osti'); -- set an error message
options.coins_list_t['OSTI'] = nil; -- when error, unset so not included in COinS
else -- OSTI is only digits
local id_num = tonumber (id); -- convert id to a number for range testing
if 1018 > id_num or handler.id_limit < id_num then -- if OSTI is outside test limit boundaries
set_message ('err_bad_osti'); -- set an error message
options.coins_list_t['OSTI'] = nil; -- when error, unset so not included in COinS
end
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access});
end
--[[--------------------------< P M C >------------------------------------------------------------------------
Format a PMC, do simple error checking, and check for embargoed articles.
The embargo parameter takes a date for a value. If the embargo date is in the future the PMC identifier will not
be linked to the article. If the embargo date is today or in the past, or if it is empty or omitted, then the
PMC identifier is linked to the article through the link at cfg.id_handlers['PMC'].prefix.
PMC embargo date testing is done in function is_embargoed () which is called earlier because when the citation
has |pmc=<value> but does not have a |url= then |title= is linked with the PMC link. Function is_embargoed ()
returns the embargo date if the PMC article is still embargoed, otherwise it returns an empty string.
PMCs are sequential numbers beginning at 1 and counting up. This code checks the PMC to see that it contains only digits and is less
than test_limit; the value in local variable test_limit will need to be updated periodically as more PMCs are issued.
]]
local function pmc (options)
local id = options.id;
local embargo = options.Embargo; -- TODO: lowercase?
local handler = options.handler;
local err_flag;
local id_num;
local text;
id_num = id:match ('^[Pp][Mm][Cc](%d+)$'); -- identifier with PMC prefix
if is_set (id_num) then
set_message ('maint_pmc_format');
else -- plain number without PMC prefix
id_num = id:match ('^%d+$'); -- if here id is all digits
end
if is_set (id_num) then -- id_num has a value so test it
id_num = tonumber (id_num); -- convert id_num to a number for range testing
if 1 > id_num or handler.id_limit < id_num then -- if PMC is outside test limit boundaries
err_flag = set_message ('err_bad_pmc'); -- set an error message
else
id = tostring (id_num); -- make sure id is a string
end
else -- when id format incorrect
err_flag = set_message ('err_bad_pmc'); -- set an error message
end
if is_set (embargo) and is_set (is_embargoed (embargo)) then -- is PMC is still embargoed?
text = table.concat ( -- still embargoed so no external link
{
make_wikilink (label_link_make (handler), handler.label),
handler.separator,
id,
});
else
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect, -- no embargo date or embargo has expired, ok to link to article
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = handler.access,
auto_link = not err_flag and 'pmc' or nil -- do not auto-link when PMC has error
});
end
if err_flag then
options.coins_list_t['PMC'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< P M I D >----------------------------------------------------------------------
Format PMID and do simple error checking. PMIDs are sequential numbers beginning at 1 and counting up. This
code checks the PMID to see that it contains only digits and is less than test_limit; the value in local variable
test_limit will need to be updated periodically as more PMIDs are issued.
]]
local function pmid (options)
local id = options.id;
local handler = options.handler;
if id:match("[^%d]") then -- if PMID has anything but digits
set_message ('err_bad_pmid'); -- set an error message
options.coins_list_t['PMID'] = nil; -- when error, unset so not included in COinS
else -- PMID is only digits
local id_num = tonumber (id); -- convert id to a number for range testing
if 1 > id_num or handler.id_limit < id_num then -- if PMID is outside test limit boundaries
set_message ('err_bad_pmid'); -- set an error message
options.coins_list_t['PMID'] = nil; -- when error, unset so not included in COinS
end
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< R F C >------------------------------------------------------------------------
Format RFC and do simple error checking. RFCs are sequential numbers beginning at 1 and counting up. This
code checks the RFC to see that it contains only digits and is less than test_limit specified in the configuration;
the value in test_limit will need to be updated periodically as more RFCs are issued.
An index of all RFCs is here: https://tools.ietf.org/rfc/
]]
local function rfc (options)
local id = options.id;
local handler = options.handler;
if id:match("[^%d]") then -- if RFC has anything but digits
set_message ('err_bad_rfc'); -- set an error message
options.coins_list_t['RFC'] = nil; -- when error, unset so not included in COinS
else -- RFC is only digits
local id_num = tonumber (id); -- convert id to a number for range testing
if 1 > id_num or handler.id_limit < id_num then -- if RFC is outside test limit boundaries
set_message ('err_bad_rfc'); -- set an error message
options.coins_list_t['RFC'] = nil; -- when error, unset so not included in COinS
end
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = handler.access});
end
--[[--------------------------< S 2 C I D >--------------------------------------------------------------------
Format an S2CID, do simple error checking
S2CIDs are sequential numbers beginning at 1 and counting up. This code checks the S2CID to see that it is only
digits and is less than test_limit; the value in local variable test_limit will need to be updated periodically
as more S2CIDs are issued.
]]
local function s2cid (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local id_num;
local text;
id_num = id:match ('^[1-9]%d*$'); -- id must be all digits; must not begin with 0; no open access flag
if is_set (id_num) then -- id_num has a value so test it
id_num = tonumber (id_num); -- convert id_num to a number for range testing
if handler.id_limit < id_num then -- if S2CID is outside test limit boundaries
set_message ('err_bad_s2cid'); -- set an error message
options.coins_list_t['S2CID'] = nil; -- when error, unset so not included in COinS
end
else -- when id format incorrect
set_message ('err_bad_s2cid'); -- set an error message
options.coins_list_t['S2CID'] = nil; -- when error, unset so not included in COinS
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access});
return text;
end
--[[--------------------------< S B N >------------------------------------------------------------------------
9-digit form of ISBN-10; uses same check-digit validation when SBN is prefixed with an additional '0' to make 10 digits
sbn value not made part of COinS metadata because we don't have a url or isn't a COinS-defined identifier (rft.xxx)
or an identifier registered at info-uri.info (info:)
]]
local function sbn (options)
local id = options.id;
local ignore_invalid = options.accept;
local handler = options.handler;
local function return_result (check, err_type) -- local function to handle the various returns
local SBN = internal_link_id ({link = handler.link, label = handler.label, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator});
if not ignore_invalid then -- if not ignoring SBN errors
if not check then
options.coins_list_t['SBN'] = nil; -- when error, unset so not included in COinS; not really necessary here because sbn not made part of COinS
set_message ('err_bad_sbn', {err_type}); -- display an error message
return SBN;
end
else
set_message ('maint_isbn_ignore'); -- add a maint category even when there is no error (ToDo: Possibly switch to separate message for SBNs only)
end
return SBN;
end
if id:match ('[^%s-0-9X]') then
return return_result (false, cfg.err_msg_supl.char); -- fail if SBN contains anything but digits, hyphens, or the uppercase X
end
local ident = id:gsub ('[%s-]', ''); -- remove hyphens and whitespace; they interfere with the rest of the tests
if 9 ~= ident:len() then
return return_result (false, cfg.err_msg_supl.length); -- fail if incorrect length
end
if ident:match ('^%d*X?$') == nil then
return return_result (false, cfg.err_msg_supl.form); -- fail if SBN has 'X' anywhere but last position
end
return return_result (is_valid_isxn ('0' .. ident, 10), cfg.err_msg_supl.check);
end
--[[--------------------------< S S R N >----------------------------------------------------------------------
Format an SSRN, do simple error checking
SSRNs are sequential numbers beginning at 100? and counting up. This code checks the SSRN to see that it is
only digits and is greater than 99 and less than test_limit; the value in local variable test_limit will need
to be updated periodically as more SSRNs are issued.
]]
local function ssrn (options)
local id = options.id;
local handler = options.handler;
local id_num;
local text;
id_num = id:match ('^%d+$'); -- id must be all digits
if is_set (id_num) then -- id_num has a value so test it
id_num = tonumber (id_num); -- convert id_num to a number for range testing
if 100 > id_num or handler.id_limit < id_num then -- if SSRN is outside test limit boundaries
set_message ('err_bad_ssrn'); -- set an error message
options.coins_list_t['SSRN'] = nil; -- when error, unset so not included in COinS
end
else -- when id format incorrect
set_message ('err_bad_ssrn'); -- set an error message
options.coins_list_t['SSRN'] = nil; -- when error, unset so not included in COinS
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = options.access});
return text;
end
--[[--------------------------< U S E N E T _ I D >------------------------------------------------------------
Validate and format a usenet message id. Simple error checking, looks for 'id-left@id-right' not enclosed in
'<' and/or '>' angle brackets.
]]
local function usenet_id (options)
local id = options.id;
local handler = options.handler;
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode})
if not id:match('^.+@.+$') or not id:match('^[^<].*[^>]$') then -- doesn't have '@' or has one or first or last character is '< or '>'
set_message ('err_bad_usenet_id') -- add an error message if the message id is invalid
options.coins_list_t['USENETID'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< Z B L >-----------------------------------------------------------------------
A numerical identifier in the form nnnn.nnnnn - leading zeros in the first quartet optional
format described here: http://emis.mi.sanu.ac.rs/ZMATH/zmath/en/help/search/
temporary format is apparently eight digits. Anything else is an error
]]
local function zbl (options)
local id = options.id;
local handler = options.handler;
if id:match('^%d%d%d%d%d%d%d%d$') then -- is this identifier using temporary format?
set_message ('maint_zbl'); -- yes, add maint cat
elseif not id:match('^%d?%d?%d?%d%.%d%d%d%d%d$') then -- not temporary, is it normal format?
set_message ('err_bad_zbl'); -- no, set an error message
options.coins_list_t['ZBL'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--============================<< I N T E R F A C E F U N C T I O N S >>==========================================
--[[--------------------------< E X T R A C T _ I D S >------------------------------------------------------------
Populates ID table from arguments using configuration settings. Loops through cfg.id_handlers and searches args for
any of the parameters listed in each cfg.id_handlers['...'].parameters. If found, adds the parameter and value to
the identifier list. Emits redundant error message if more than one alias exists in args
]]
local function extract_ids (args)
local id_list = {}; -- list of identifiers found in args
for k, v in pairs (cfg.id_handlers) do -- k is uppercase identifier name as index to cfg.id_handlers; e.g. cfg.id_handlers['ISBN'], v is a table
v = select_one (args, v.parameters, 'err_redundant_parameters' ); -- v.parameters is a table of aliases for k; here we pick one from args if present
if is_set (v) then id_list[k] = v; end -- if found in args, add identifier to our list
end
return id_list;
end
--[[--------------------------< E X T R A C T _ I D _ A C C E S S _ L E V E L S >--------------------------------------
Fetches custom id access levels from arguments using configuration settings. Parameters which have a predefined access
level (e.g. arxiv) do not use this function as they are directly rendered as free without using an additional parameter.
returns a table of k/v pairs where k is same as the identifier's key in cfg.id_handlers and v is the assigned (valid) keyword
access-level values must match the case used in cfg.keywords_lists['id-access'] (lowercase unless there is some special reason for something else)
]]
local function extract_id_access_levels (args, id_list)
local id_accesses_list = {};
for k, v in pairs (cfg.id_handlers) do
local access_param = v.custom_access; -- name of identifier's access-level parameter
if is_set (access_param) then
local access_level = args[access_param]; -- get the assigned value if there is one
if is_set (access_level) then
if not in_array (access_level, cfg.keywords_lists['id-access']) then -- exact match required
set_message ('err_invalid_param_val', {access_param, access_level});
access_level = nil; -- invalid so unset
end
if not is_set (id_list[k]) then -- identifier access-level must have a matching identifier
set_message ('err_param_access_requires_param', {k:lower()}); -- parameter name is uppercase in cfg.id_handlers (k); lowercase for error message
end
id_accesses_list[k] = cfg.keywords_xlate[access_level]; -- get translated keyword
end
end
end
return id_accesses_list;
end
--[[--------------------------< B U I L D _ I D _ L I S T >----------------------------------------------------
render the identifiers into a sorted sequence table
<ID_list_coins_t> is a table of k/v pairs where k is same as key in cfg.id_handlers and v is the assigned value
<options_t> is a table of various k/v option pairs provided in the call to new_build_id_list();
modified by this function and passed to all identifier rendering functions
<access_levels_t> is a table of k/v pairs where k is same as key in cfg.id_handlers and v is the assigned value (if valid)
returns a sequence table of sorted (by hkey - 'handler' key) rendered identifier strings
]]
local function build_id_list (ID_list_coins_t, options_t, access_levels_t)
local ID_list_t = {};
local accept;
local func_map = { --function map points to functions associated with hkey identifier
['ARXIV'] = arxiv,
['ASIN'] = asin,
['BIBCODE'] = bibcode,
['BIORXIV'] = biorxiv,
['CITESEERX'] = citeseerx,
['DOI'] = doi,
['EISSN'] = issn,
['HDL'] = hdl,
['ISBN'] = isbn,
['ISMN'] = ismn,
['ISSN'] = issn,
['JFM'] = jfm,
['JSTOR'] = jstor,
['LCCN'] = lccn,
['MEDRXIV'] = medrxiv,
['MR'] = mr,
['OCLC'] = oclc,
['OL'] = openlibrary,
['OSTI'] = osti,
['PMC'] = pmc,
['PMID'] = pmid,
['RFC'] = rfc,
['S2CID'] = s2cid,
['SBN'] = sbn,
['SSRN'] = ssrn,
['USENETID'] = usenet_id,
['ZBL'] = zbl,
}
for hkey, v in pairs (ID_list_coins_t) do
v, accept = has_accept_as_written (v); -- remove accept-as-written markup if present; accept is boolean true when markup removed; false else
-- every function gets the options table with value v and accept boolean
options_t.hkey = hkey; -- ~/Configuration handler key
options_t.id = v; -- add that identifier value to the options table
options_t.accept = accept; -- add the accept boolean flag
options_t.access = access_levels_t[hkey]; -- add the access level for those that have an |<identifier-access= parameter
options_t.handler = cfg.id_handlers[hkey];
options_t.coins_list_t = ID_list_coins_t; -- pointer to ID_list_coins_t; for |asin= and |ol=; also to keep erroneous values out of the citation's metadata
options_t.coins_list_t[hkey] = v; -- id value without accept-as-written markup for metadata
if options_t.handler.access and not in_array (options_t.handler.access, cfg.keywords_lists['id-access']) then
error (cfg.messages['unknown_ID_access'] .. options_t.handler.access); -- here when handler access key set to a value not listed in list of allowed id access keywords
end
if func_map[hkey] then
local id_text = func_map[hkey] (options_t); -- call the function to get identifier text and any error message
table.insert (ID_list_t, {hkey, id_text}); -- add identifier text to the output sequence table
else
error (cfg.messages['unknown_ID_key'] .. hkey); -- here when func_map doesn't have a function for hkey
end
end
local function comp (a, b) -- used by following table.sort()
return a[1]:lower() < b[1]:lower(); -- sort by hkey
end
table.sort (ID_list_t, comp); -- sequence table of tables sort
for k, v in ipairs (ID_list_t) do -- convert sequence table of tables to simple sequence table of strings
ID_list_t[k] = v[2]; -- v[2] is the identifier rendering from the call to the various functions in func_map{}
end
return ID_list_t;
end
--[[--------------------------< O P T I O N S _ C H E C K >----------------------------------------------------
check that certain option parameters have their associated identifier parameters with values
<ID_list_coins_t> is a table of k/v pairs where k is same as key in cfg.id_handlers and v is the assigned value
<ID_support_t> is a sequence table of tables created in citation0() where each subtable has four elements:
[1] is the support parameter's assigned value; empty string if not set
[2] is a text string same as key in cfg.id_handlers
[3] is cfg.error_conditions key used to create error message
[4] is original ID support parameter name used to create error message
returns nothing; on error emits an appropriate error message
]]
local function options_check (ID_list_coins_t, ID_support_t)
for _, v in ipairs (ID_support_t) do
if is_set (v[1]) and not ID_list_coins_t[v[2]] then -- when support parameter has a value but matching identifier parameter is missing or empty
set_message (v[3], (v[4])); -- emit the appropriate error message
end
end
end
--[[--------------------------< I D E N T I F I E R _ L I S T S _ G E T >--------------------------------------
Creates two identifier lists: a k/v table of identifiers and their values to be used locally and for use in the
COinS metadata, and a sequence table of the rendered identifier strings that will be included in the rendered
citation.
]]
local function identifier_lists_get (args_t, options_t, ID_support_t)
local ID_list_coins_t = extract_ids (args_t); -- get a table of identifiers and their values for use locally and for use in COinS
options_check (ID_list_coins_t, ID_support_t); -- ID support parameters must have matching identifier parameters
local ID_access_levels_t = extract_id_access_levels (args_t, ID_list_coins_t); -- get a table of identifier access levels
local ID_list_t = build_id_list (ID_list_coins_t, options_t, ID_access_levels_t); -- get a sequence table of rendered identifier strings
return ID_list_t, ID_list_coins_t; -- return the tables
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)
cfg = cfg_table_ptr;
has_accept_as_written = utilities_page_ptr.has_accept_as_written; -- import functions from select Module:Citation/CS1/Utilities module
is_set = utilities_page_ptr.is_set;
in_array = utilities_page_ptr.in_array;
set_message = utilities_page_ptr.set_message;
select_one = utilities_page_ptr.select_one;
substitute = utilities_page_ptr.substitute;
make_wikilink = utilities_page_ptr.make_wikilink;
z = utilities_page_ptr.z; -- table of tables in Module:Citation/CS1/Utilities
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
auto_link_urls = auto_link_urls, -- table of identifier URLs to be used when auto-linking |title=
identifier_lists_get = identifier_lists_get, -- experiment to replace individual calls to build_id_list(), extract_ids, extract_id_access_levels
is_embargoed = is_embargoed;
set_selected_modules = set_selected_modules;
}
50sayqj1hqox1azjfoh3py84edt8r29
وحدة:Citation/CS1/Utilities
828
40422
275408
87619
2026-09-15T08:57:44Z
حبيشان
29714
استيراد من ar.wiktionary.org
275408
Scribunto
text/plain
local z = {
error_cats_t = {}; -- for categorizing citations that contain errors
error_ids_t = {}; -- list of error identifiers; used to prevent duplication of certain errors; local to this module
error_msgs_t = {}; -- sequence table of error messages
maint_cats_t = {}; -- for categorizing citations that aren't erroneous per se, but could use a little work
prop_cats_t = {}; -- for categorizing citations based on certain properties, language of source for instance
prop_keys_t = {}; -- for adding classes to the citation's <cite> tag
};
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local cfg; -- table of tables imported from selected Module:Citation/CS1/Configuration
--[[--------------------------< I S _ S E T >------------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
local function is_set (var)
return not (var == nil or var == '');
end
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------
Whether needle is in haystack
]]
local function in_array (needle, haystack)
if needle == nil then
return false;
end
for n, v in ipairs (haystack) do
if v == needle then
return n;
end
end
return false;
end
--[[--------------------------< H A S _ A C C E P T _ A S _ W R I T T E N >------------------------------------
When <str> is wholly wrapped in accept-as-written markup, return <str> without markup and true; return <str> and false else
with allow_empty = false, <str> must have at least one character inside the markup
with allow_empty = true, <str> the markup frame can be empty like (()) to distinguish an empty template parameter from the specific condition "has no applicable value" in citation-context.
After further evaluation the two cases might be merged at a later stage, but should be kept separated for now.
]]
local function has_accept_as_written (str, allow_empty)
if not is_set (str) then
return str, false;
end
local count;
if true == allow_empty then
str, count = str:gsub ('^%(%((.*)%)%)$', '%1'); -- allows (()) to be an empty set
else
str, count = str:gsub ('^%(%((.+)%)%)$', '%1');
end
return str, 0 ~= count;
end
--[[--------------------------< S U B S T I T U T E >----------------------------------------------------------
Populates numbered arguments in a message string using an argument table. <args> may be a single string or a
sequence table of multiple strings.
]]
local function substitute (msg, args)
return args and mw.message.newRawMessage (msg, args):plain() or msg;
end
--[[--------------------------< E R R O R _ C O M M E N T >----------------------------------------------------
Wraps error messages with CSS markup according to the state of hidden. <content> may be a single string or a
sequence table of multiple strings.
]]
local function error_comment (content, hidden)
return substitute (hidden and cfg.presentation['hidden-error'] or cfg.presentation['visible-error'], content);
end
--[[--------------------------< H Y P H E N _ T O _ D A S H >--------------------------------------------------
Converts a hyphen, endash, emdash to endash under certain conditions. The hyphen/en/em must separate
like items; unlike items are returned unmodified. These forms are modified:
letter - letter (A-B)
digit - digit (4-5)
digit separator digit - digit separator digit (4.1-4.5 or 4-1-4-5)
letterdigit - letterdigit (A1-A5) (an optional separator between letter and
digit is supported – a.1-a.5 or a-1-a-5)
digitletter - digitletter (5a-5d) (an optional separator between letter and
digit is supported – 5.a-5.d or 5-a-5-d)
any other forms are returned unmodified.
str may be a comma- or semicolon-separated list of page ranges with/without single pages
]]
local function hyphen_to_dash (str)
if not is_set (str) then
return str;
end
str = str:gsub ("(%(%(.-%)%))", function(m) return m:gsub(",", ","):gsub(";", ";") end) -- replace commas and semicolons in accept-as-written markup with similar unicode characters so they'll be ignored during the split
str = str:gsub ('&[nm]dash;', {['–'] = '–', ['—'] = '—'}); -- replace — and – entities with their characters; semicolon mucks up the text.split
str = str:gsub ('-', '-'); -- replace HTML numeric entity with hyphen character
str = str:gsub (' ', ' '); -- replace entity with generic keyboard space character
local out = {};
local list = mw.text.split (str, '%s*[,;]%s*'); -- split str at comma or semicolon separators if there are any
local accept; -- boolean
for _, item in ipairs (list) do -- for each item in the list
item, accept = has_accept_as_written (item); -- remove accept-this-as-written markup when it wraps all of item
if not accept and mw.ustring.match (item, '^%w*[%.%-]?%w+%s*[—–-]%s*%w*[%.%-]?%w+$') then -- if pagination uses <hyphen|dot> separators with hyphen/endash/emdash <range separator>
if mw.ustring.match (item, '^%a+[%.%-]%d+%s*[—–-]%s*%a+[%.%-]%d+$') or -- letter<hyphen|dot>digit <range separator> letter<hyphen|dot>digit (requires <hyphen|dot> separator between letter and digit)
mw.ustring.match (item, '^%d+[%.%-]%a+%s*[—–-]%s*%d+[%.%-]%a+$') or -- digit<hyphen|dot>letter <range separator> digit<hyphen|dot>letter (requires <hyphen|dot> separator between digit and letter)
mw.ustring.match (item, '^%d+[%.%-]%d+%s*[—–-]%s*%d+[%.%-]%d+$') then -- digit<hyphen|dot>digit <range separator> digit<hyphen|dot>digit (requires <hyphen|dot> separator between digit and digit)
item = mw.ustring.gsub (item, '(%w*[%.%-]%w+)%s*[—–-]%s*(%w*[%.%-]%w+)', '<span class="nowrap">%1 –</span> <span class="nowrap">%2</span>'); -- replace <range separator>, with spaced endash
elseif mw.ustring.match (item, '^%d+%a+%s*[—–-]%s*%d+%a+$') or -- digitletter <range separator> digitletter
mw.ustring.match (item, '^%a+%d+%s*[—–-]%s*%a+%d+$') or -- letterdigit <range separator> letterdigit
mw.ustring.match (item, '^%d+%s*[—–-]%s*%d+$') or -- digit <range separator> digit
mw.ustring.match (item, '^%a+%s*[—–-]%s*%a+$') then -- letter<range separator> letter
item = mw.ustring.gsub (item, '(%w+)%s*[—–-]%s*(%w+)', '<span class="nowrap">%1–</span>%2'); -- replace <range separator> with endash, remove extraneous space characters
else
-- item = mw.ustring.gsub (item, '%s*[—–-]%s*', '–'); -- disabled; here when 'unlike' items so return <item> as is
end
end
table.insert (out, item); -- add the (possibly modified) item to the output table
end
local temp_str = ''; -- concatenate the output table into a comma separated string
temp_str, accept = has_accept_as_written (table.concat (out, ', ')); -- remove accept-this-as-written markup when it wraps all of concatenated out
if accept then
temp_str = has_accept_as_written (str); -- when global markup removed, return original str; do it this way to suppress boolean second return value
return temp_str:gsub(",", ","):gsub(";", ";");
else
return temp_str:gsub(",", ","):gsub(";", ";"); -- else, return assembled temp_str
end
end
--[=[-------------------------< M A K E _ W I K I L I N K >----------------------------------------------------
Makes a wikilink; when both link and display text is provided, returns a wikilink in the form [[L|D]]; if only
link is provided (or link and display are the same), returns a wikilink in the form [[L]]; if neither are
provided or link is omitted, returns an empty string.
]=]
local function make_wikilink (link, display)
if not is_set (link) then return '' end
if is_set (display) and link ~= display then
return table.concat ({'[[', link, '|', display, ']]'});
else
return table.concat ({'[[', link, ']]'});
end
end
--[[--------------------------< S E T _ M E S S A G E >----------------------------------------------------------
Sets an error message using the ~/Configuration error_conditions{} table along with arguments supplied in the function
call, inserts the resulting message in z.error_msgs_t{} sequence table, and returns the error message.
<error_id> – key value for appropriate error handler in ~/Configuration error_conditions{} table
<arguments> – may be a single string or a sequence table of multiple strings to be subsititued into error_conditions[error_id].message
<raw> – boolean
true – causes this function to return the error message not wrapped in visible-error, hidden-error span tag;
returns error_conditions[error_id].hidden as a second return value
does not add message to z.error_msgs_t sequence table
false, nil – adds message wrapped in visible-error, hidden-error span tag to z.error_msgs_t
returns the error message wrapped in visible-error, hidden-error span tag; there is no second return value
<prefix> – string to be prepended to <message> -- TODO: remove support for these unused(?) arguments?
<suffix> – string to be appended to <message>
TODO: change z.error_cats_t and z.maint_cats_t to have the form cat_name = true? this to avoid dups without having to have an extra table
]]
local added_maint_cats = {} -- list of maintenance categories that have been added to z.maint_cats_t; TODO: figure out how to delete this table
local function set_message (error_id, arguments, raw, prefix, suffix)
local error_state = cfg.error_conditions[error_id];
prefix = prefix or '';
suffix = suffix or '';
if error_state == nil then
error (cfg.messages['undefined_error'] .. ': ' .. error_id); -- because missing error handler in Module:Citation/CS1/Configuration
elseif is_set (error_state.category) then
if error_state.message then -- when error_state.message defined, this is an error message
table.insert (z.error_cats_t, error_state.category);
else
if not added_maint_cats[error_id] then
added_maint_cats[error_id] = true; -- note that we've added this category
table.insert (z.maint_cats_t, substitute (error_state.category, arguments)); -- make cat name then add to table
end
return; -- because no message, nothing more to do
end
end
local message = substitute (error_state.message, arguments);
message = table.concat (
{
message,
' (',
make_wikilink (
table.concat (
{
cfg.messages['help page link'],
'#',
error_state.anchor
}),
cfg.messages['help page label']),
')'
});
z.error_ids_t[error_id] = true;
if z.error_ids_t['err_citation_missing_title'] and -- if missing-title error already noted
in_array (error_id, {'err_bare_url_missing_title', 'err_trans_missing_title'}) then -- and this error is one of these
return '', false; -- don't bother because one flavor of missing title is sufficient
end
message = table.concat ({prefix, message, suffix});
if true == raw then
return message, error_state.hidden; -- return message not wrapped in visible-error, hidden-error span tag
end
message = error_comment (message, error_state.hidden); -- wrap message in visible-error, hidden-error span tag
table.insert (z.error_msgs_t, message); -- add it to the messages sequence table
return message; -- and done; return value generally not used but is used as a flag in various functions of ~/Identifiers
end
--[[-------------------------< I S _ A L I A S _ U S E D >-----------------------------------------------------
This function is used by select_one() to determine if one of a list of alias parameters is in the argument list
provided by the template.
Input:
args – pointer to the arguments table from calling template
alias – one of the list of possible aliases in the aliases lists from Module:Citation/CS1/Configuration
index – for enumerated parameters, identifies which one
enumerated – true/false flag used to choose how enumerated aliases are examined
value – value associated with an alias that has previously been selected; nil if not yet selected
selected – the alias that has previously been selected; nil if not yet selected
error_list – list of aliases that are duplicates of the alias already selected
Returns:
value – value associated with alias we selected or that was previously selected or nil if an alias not yet selected
selected – the alias we selected or the alias that was previously selected or nil if an alias not yet selected
]]
local function is_alias_used (args, alias, index, enumerated, value, selected, error_list)
if enumerated then -- is this a test for an enumerated parameters?
alias = alias:gsub ('#', index); -- replace '#' with the value in index
else
alias = alias:gsub ('#', ''); -- remove '#' if it exists
end
if is_set (args[alias]) then -- alias is in the template's argument list
if value ~= nil and selected ~= alias then -- if we have already selected one of the aliases
local skip;
for _, v in ipairs (error_list) do -- spin through the error list to see if we've added this alias
if v == alias then
skip = true;
break; -- has been added so stop looking
end
end
if not skip then -- has not been added so
table.insert (error_list, alias); -- add error alias to the error list
end
else
value = args[alias]; -- not yet selected an alias, so select this one
selected = alias;
end
end
return value, selected; -- return newly selected alias, or previously selected alias
end
--[[--------------------------< A D D _ M A I N T _ C A T >------------------------------------------------------
Adds a category to z.maint_cats_t using names from the configuration file with additional text if any.
To prevent duplication, the added_maint_cats table lists the categories by key that have been added to z.maint_cats_t.
]]
local function add_maint_cat (key, arguments)
if not added_maint_cats [key] then
added_maint_cats [key] = true; -- note that we've added this category
table.insert (z.maint_cats_t, substitute (cfg.maint_cats [key], arguments)); -- make name then add to table
end
end
--[[--------------------------< A D D _ P R O P _ C A T >--------------------------------------------------------
Adds a category to z.prop_cats_t using names from the configuration file with additional text if any.
foreign_lang_source and foreign_lang_source_2 keys have a language code appended to them so that multiple languages
may be categorized but multiples of the same language are not categorized.
added_prop_cats is a table declared in page scope variables above
]]
local added_prop_cats = {}; -- list of property categories that have been added to z.prop_cats_t
local function add_prop_cat (key, arguments, key_modifier)
local key_modified = key .. ((key_modifier and key_modifier) or ''); -- modify <key> with <key_modifier> if present and not nil
if not added_prop_cats [key_modified] then
added_prop_cats [key_modified] = true; -- note that we've added this category
table.insert (z.prop_cats_t, substitute (cfg.prop_cats [key], arguments)); -- make name then add to table
table.insert (z.prop_keys_t, 'cs1-prop-' .. key); -- convert key to class for use in the citation's <cite> tag
end
end
--[[--------------------------< S A F E _ F O R _ I T A L I C S >----------------------------------------------
Protects a string that will be wrapped in wiki italic markup '' ... ''
Note: We cannot use <i> for italics, as the expected behavior for italics specified by ''...'' in the title is that
they will be inverted (i.e. unitalicized) in the resulting references. In addition, <i> and '' tend to interact
poorly under Mediawiki's HTML tidy.
]]
local function safe_for_italics (str)
if not is_set (str) then return str end
if str:sub (1, 1) == "'" then str = "<span></span>" .. str; end
if str:sub (-1, -1) == "'" then str = str .. "<span></span>"; end
return str:gsub ('\n', ' '); -- Remove newlines as they break italics.
end
--[[--------------------------< W R A P _ S T Y L E >----------------------------------------------------------
Applies styling to various parameters. Supplied string is wrapped using a message_list configuration taking one
argument; protects italic styled parameters. Additional text taken from citation_config.presentation - the reason
this function is similar to but separate from wrap_msg().
]]
local function wrap_style (key, str)
if not is_set (str) then
return "";
elseif in_array (key, {'italic-title', 'trans-italic-title'}) then
str = safe_for_italics (str);
end
return substitute (cfg.presentation[key], {str});
end
--[[--------------------------< M A K E _ S E P _ L I S T >------------------------------------------------------------
make a separated list of items using provided separators.
<sep_list> - typically '<comma><space>'
<sep_list_pair> - typically '<space>and<space>'
<sep_list_end> - typically '<comma><space>and<space>' or '<comma><space>&<space>'
defaults to cfg.presentation['sep_list'], cfg.presentation['sep_list_pair'], and cfg.presentation['sep_list_end']
if <sep_list_end> is specified, <sep_list> and <sep_list_pair> must also be supplied
]]
local function make_sep_list (count, list_seq, sep_list, sep_list_pair, sep_list_end)
local list = '';
if not sep_list then -- set the defaults
sep_list = cfg.presentation['sep_list'];
sep_list_pair = cfg.presentation['sep_list_pair'];
sep_list_end = cfg.presentation['sep_list_end'];
end
if 2 >= count then
list = table.concat (list_seq, sep_list_pair); -- insert separator between two items; returns list_seq[1] then only one item
elseif 2 < count then
list = table.concat (list_seq, sep_list, 1, count - 1); -- concatenate all but last item with plain list separator
list = table.concat ({list, list_seq[count]}, sep_list_end); -- concatenate last item onto end of <list> with final separator
end
return list;
end
local function make_sep_error_list (count, list_seq, sep_list, sep_list_pair, sep_list_end)
local list = '';
local i; local rep_count;
local function append_string(str1,str2)
local ret_str='';
local rep_count;
ret_str, rep_count = mw.ustring.gsub(str1, "</span>$", str2 .. "</span>")
if rep_count==0 then
ret_str = str1 .. str2;
end
return ret_str;
end
if not sep_list then -- set the defaults
sep_list = cfg.presentation['sep_list'];
sep_list_pair = cfg.presentation['sep_list_pair'];
sep_list_end = cfg.presentation['sep_list_end'];
end
if 1==count then
list = list_seq[1]
elseif 2 == count then
list = append_string(list_seq[1], sep_list_pair) .. list_seq[2]
elseif 2 < count then
for i = 1, count-2, 1 do
list = list .. append_string(list_seq[i], sep_list)
end
list = list .. append_string(list_seq[count-1], sep_list_end) .. list_seq[count]
end
return list;
end
--[[--------------------------< S E L E C T _ O N E >----------------------------------------------------------
Chooses one matching parameter from a list of parameters to consider. The list of parameters to consider is just
names. For parameters that may be enumerated, the position of the numerator in the parameter name is identified
by the '#' so |author-last1= and |author1-last= are represented as 'author-last#' and 'author#-last'.
Because enumerated parameter |<param>1= is an alias of |<param>= we must test for both possibilities.
Generates an error if more than one match is present.
]]
local function select_one (args, aliases_list, error_condition, index)
local value = nil; -- the value assigned to the selected parameter
local selected = ''; -- the name of the parameter we have chosen
local error_list = {};
if index ~= nil then index = tostring(index); end
for _, alias in ipairs (aliases_list) do -- for each alias in the aliases list
if alias:match ('#') then -- if this alias can be enumerated
if '1' == index then -- when index is 1 test for enumerated and non-enumerated aliases
value, selected = is_alias_used (args, alias, index, false, value, selected, error_list); -- first test for non-enumerated alias
end
value, selected = is_alias_used (args, alias, index, true, value, selected, error_list); -- test for enumerated alias
else
value, selected = is_alias_used (args, alias, index, false, value, selected, error_list); -- test for non-enumerated alias
end
end
if #error_list > 0 and 'none' ~= error_condition then -- for cases where this code is used outside of extract_names()
for i, v in ipairs (error_list) do
error_list[i] = wrap_style ('parameter', v);
end
table.insert (error_list, wrap_style ('parameter', selected));
set_message (error_condition, {make_sep_list (#error_list, error_list)});
end
return value, selected;
end
--[=[-------------------------< R E M O V E _ W I K I _ L I N K >----------------------------------------------
Gets the display text from a wikilink like [[A|B]] or [[B]] gives B
The str:gsub() returns either A|B froma [[A|B]] or B from [[B]] or B from B (no wikilink markup).
In l(), l:gsub() removes the link and pipe (if they exist); the second :gsub() trims whitespace from the label
if str was wrapped in wikilink markup. Presumably, this is because without wikimarkup in str, there is no match
in the initial gsub, the replacement function l() doesn't get called.
]=]
local function remove_wiki_link (str)
return (str:gsub ("%[%[([^%[%]]*)%]%]", function(l)
return l:gsub ("^[^|]*|(.*)$", "%1" ):gsub ("^%s*(.-)%s*$", "%1");
end));
end
--[=[-------------------------< I S _ W I K I L I N K >--------------------------------------------------------
Determines if str is a wikilink, extracts, and returns the wikilink type, link text, and display text parts.
If str is a complex wikilink ([[L|D]]):
returns wl_type 2 and D and L from [[L|D]];
if str is a simple wikilink ([[D]])
returns wl_type 1 and D from [[D]] and L as empty string;
if not a wikilink:
returns wl_type 0, str as D, and L as empty string.
trims leading and trailing whitespace and pipes from L and D ([[L|]] and [[|D]] are accepted by MediaWiki and
treated like [[D]]; while [[|D|]] is not accepted by MediaWiki, here, we accept it and return D without the pipes).
]=]
local function is_wikilink (str)
local D, L
local wl_type = 2; -- assume that str is a complex wikilink [[L|D]]
if not str:match ('^%[%[[^%]]+%]%]$') then -- is str some sort of a wikilink (must have some sort of content)
return 0, str, ''; -- not a wikilink; return wl_type as 0, str as D, and empty string as L
end
L, D = str:match ('^%[%[([^|]+)|([^%]]+)%]%]$'); -- get L and D from [[L|D]]
if not is_set (D) then -- if no separate display
D = str:match ('^%[%[([^%]]*)|*%]%]$'); -- get D from [[D]] or [[D|]]
wl_type = 1;
end
D = mw.text.trim (D, '%s|'); -- trim white space and pipe characters
return wl_type, D, L or '';
end
--[[--------------------------< S T R I P _ A P O S T R O P H E _ M A R K U P >--------------------------------
Strip wiki italic and bold markup from argument so that it doesn't contaminate COinS metadata.
This function strips common patterns of apostrophe markup. We presume that editors who have taken the time to
markup a title have, as a result, provided valid markup. When they don't, some single apostrophes are left behind.
Returns the argument without wiki markup and a number; the number is more-or-less meaningless except as a flag
to indicate that markup was replaced; do not rely on it as an indicator of how many of any kind of markup was
removed; returns the argument and nil when no markup removed
]]
local function strip_apostrophe_markup (argument)
if not is_set (argument) then
return argument, nil; -- no argument, nothing to do
end
if nil == argument:find ( "''", 1, true ) then -- Is there at least one double apostrophe? If not, exit.
return argument, nil;
end
local flag;
while true do
if argument:find ("'''''", 1, true) then -- bold italic (5)
argument, flag = argument:gsub ("%'%'%'%'%'", ""); -- remove all instances of it
elseif argument:find ("''''", 1, true) then -- italic start and end without content (4)
argument, flag=argument:gsub ("%'%'%'%'", "");
elseif argument:find ("'''", 1, true) then -- bold (3)
argument, flag=argument:gsub ("%'%'%'", "");
elseif argument:find ("''", 1, true) then -- italic (2)
argument, flag = argument:gsub ("%'%'", "");
else
break;
end
end
return argument, flag; -- done
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local cfg table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr)
cfg = cfg_table_ptr;
end
--[[--------------------------< E X P O R T S >----------------------------------------------------------------
]]
return {
add_maint_cat = add_maint_cat, -- exported functions
add_prop_cat = add_prop_cat,
error_comment = error_comment,
has_accept_as_written = has_accept_as_written,
hyphen_to_dash = hyphen_to_dash,
in_array = in_array,
is_set = is_set,
is_wikilink = is_wikilink,
make_sep_list = make_sep_list,
make_wikilink = make_wikilink,
remove_wiki_link = remove_wiki_link,
safe_for_italics = safe_for_italics,
select_one = select_one,
set_message = set_message,
set_selected_modules = set_selected_modules,
strip_apostrophe_markup = strip_apostrophe_markup,
substitute = substitute,
wrap_style = wrap_style,
make_sep_error_list = make_sep_error_list,
z = z, -- exported table
}
iaow6eqa3ggpwjfsqt0ohhhlzzci2jj
وحدة:Citation/CS1/Date validation
828
40423
275399
87621
2026-09-15T08:57:12Z
حبيشان
29714
استيراد من ar.wiktionary.org
275399
Scribunto
text/plain
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local add_prop_cat, is_set, in_array, set_message, substitute, wrap_style; -- imported functions from selected Module:Citation/CS1/Utilities
local cfg; -- table of tables imported from selected Module:Citation/CS1/Configuration
--#Added
local hijricore;
--[[--------------------------< F I L E - S C O P E D E C L A R A T I O N S >--------------------------------
File-scope variables are declared here
]]
local lang_object = mw.getContentLanguage(); -- used by is_valid_accessdate(), is_valid_year(), date_name_xlate(); TODO: move to ~/Configuration?
local year_limit; -- used by is_valid_year()
--#Added
local hijri_year_limit; -- used by is_valid_year()
--[=[-------------------------< I S _ V A L I D _ A C C E S S D A T E >----------------------------------------
returns true if:
Wikipedia start date <= accessdate < today + 2 days
Wikipedia start date is 2001-01-15T00:00:00 UTC which is 979516800 seconds after 1970-01-01T00:00:00 UTC (the start of Unix time)
accessdate is the date provided in |access-date= at time 00:00:00 UTC
today is the current date at time 00:00:00 UTC plus 48 hours
if today is 2015-01-01T00:00:00 then
adding 24 hours gives 2015-01-02T00:00:00 – one second more than today
adding 24 hours gives 2015-01-03T00:00:00 – one second more than tomorrow
This function does not work if it is fed month names for languages other than English. Wikimedia #time: parser
apparently doesn't understand non-English date month names. This function will always return false when the date
contains a non-English month name because good1 is false after the call to lang.formatDate(). To get around that
call this function with YYYY-MM-DD format dates.
]=]
local function is_valid_accessdate (accessdate)
local good1, good2;
local access_ts, tomorrow_ts; -- to hold Unix time stamps representing the dates
good1, access_ts = pcall (lang_object.formatDate, lang_object, 'U', accessdate ); -- convert accessdate value to Unix timestamp
good2, tomorrow_ts = pcall (lang_object.formatDate, lang_object, 'U', 'today + 2 days' ); -- today midnight + 2 days is one second more than all day tomorrow
if good1 and good2 then -- lang.formatDate() returns a timestamp in the local script which which tonumber() may not understand
access_ts = tonumber (access_ts) or lang_object:parseFormattedNumber (access_ts); -- convert to numbers for the comparison;
tomorrow_ts = tonumber (tomorrow_ts) or lang_object:parseFormattedNumber (tomorrow_ts);
else
return false; -- one or both failed to convert to Unix time stamp
end
if 979516800 <= access_ts and access_ts < tomorrow_ts then -- Wikipedia start date <= accessdate < tomorrow's date
return true;
else
return false; -- accessdate out of range
end
end
--[[--------------------------< G E T _ M O N T H _ N U M B E R >----------------------------------------------
returns a number according to the month in a date: 1 for January, etc. Capitalization and spelling must be correct.
If not a valid month, returns 0
]]
local function get_month_number (month, ishijri)
--#Midifed to get syrain months
if ishijri then
return cfg.date_names['local']['hijri'][month] or 0;
end
return cfg.date_names['local'].long[month] or cfg.date_names['local'].short[month] or -- look for local names first
cfg.date_names['local']['alt-long'][month] or
cfg.date_names['en'].long[month] or cfg.date_names['en'].short[month] or -- failing that, look for English names
0; -- not a recognized month name
end
--[[--------------------------< G E T _ M O N T H _ N U M B E R and cal >----------------------------------------------
##Adeed function
returns a number according to the month in a date: 1 for January, etc. Capitalization and spelling must be correct.
If not a valid month, returns 0
]]
local function get_month_number_and_cal (month)
local ret = get_month_number (month, true)
if ret > 0 then
return ret, true;
else
return get_month_number (month, false), false;
end
end
--[[--------------------------< G E T _ S E A S O N _ N U M B E R >--------------------------------------------
returns a number according to the sequence of seasons in a year: 21 for Spring, etc. Capitalization and spelling
must be correct. If not a valid season, returns 0.
21-24 = Spring, Summer, Autumn, Winter, independent of “Hemisphere”
returns 0 when <param> is not |date=
Season numbering is defined by Extended Date/Time Format (EDTF) specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard defines various divisions using
numbers 21-41. cs1|2 only supports generic seasons. EDTF does support the distinction between north and south
hemisphere seasons but cs1|2 has no way to make that distinction.
These additional divisions not currently supported:
25-28 = Spring - Northern Hemisphere, Summer- Northern Hemisphere, Autumn - Northern Hemisphere, Winter - Northern Hemisphere
29-32 = Spring – Southern Hemisphere, Summer– Southern Hemisphere, Autumn – Southern Hemisphere, Winter - Southern Hemisphere
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
37-39 = Quadrimester 1, Quadrimester 2, Quadrimester 3 (4 months each)
40-41 = Semestral 1, Semestral-2 (6 months each)
]]
local function get_season_number (season, param)
if 'date' ~= param then
return 0; -- season dates only supported by |date=
end
return cfg.date_names['local'].season[season] or -- look for local names first
cfg.date_names['en'].season[season] or -- failing that, look for English names
0; -- not a recognized season name
end
--[[--------------------------< G E T _ Q U A R T E R _ N U M B E R >------------------------------------------
returns a number according to the sequence of quarters in a year: 33 for first quarter, etc. Capitalization and spelling
must be correct. If not a valid quarter, returns 0.
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
returns 0 when <param> is not |date=
Quarter numbering is defined by Extended Date/Time Format (EDTF) specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard defines various divisions using
numbers 21-41. cs1|2 only supports generic seasons and quarters.
These additional divisions not currently supported:
37-39 = Quadrimester 1, Quadrimester 2, Quadrimester 3 (4 months each)
40-41 = Semestral 1, Semestral-2 (6 months each)
]]
local function get_quarter_number (quarter, param)
if 'date' ~= param then
return 0; -- quarter dates only supported by |date=
end
quarter = mw.ustring.gsub (quarter, ' +', ' '); -- special case replace multiple space chars with a single space char
return cfg.date_names['local'].quarter[quarter] or -- look for local names first
cfg.date_names['en'].quarter[quarter] or -- failing that, look for English names
0; -- not a recognized quarter name
end
--[[--------------------------< G E T _ P R O P E R _ N A M E _ N U M B E R >----------------------------------
returns a non-zero number if date contains a recognized proper-name. Capitalization and spelling must be correct.
returns 0 when <param> is not |date=
]]
local function get_proper_name_number (name, param)
if 'date' ~= param then
return 0; -- proper-name dates only supported by |date=
end
return cfg.date_names['local'].named[name] or -- look for local names dates first
cfg.date_names['en'].named[name] or -- failing that, look for English names
0; -- not a recognized named date
end
--[[--------------------------< G E T _ E L E M E N T _ N U M B E R <------------------------------------------
returns true if month or season or quarter or proper name is valid (properly spelled, capitalized, abbreviated)
]]
local function get_element_number (element, ishijri, param)
local num;
--##Added block
num = get_month_number (element, ishijri, param); -- first check for month
if 0 ~= num then -- non-zero when valid month season quarter
return num; -- return that number
end
local funcs = {get_season_number, get_quarter_number, get_proper_name_number}; -- list of functions to execute in order
for _, func in ipairs (funcs) do -- spin through the function list
num = func (element, param); -- call the function and get the returned number
if 0 ~= num then -- non-zero when valid month season quarter
return num; -- return that number
end
end
return nil; -- not valid
end
--[[--------------------------< I S _ V A L I D _ H I J R I _ Y E A R >----------------------------------------------------
##Added function
Function gets current year from the server and compares it to year from a citation parameter. Years more than one
year in the future are not acceptable.
]]
local function is_valid_hijri_year (year)
if hijricore == nil then
hijricore = require('Module:Hijri/core');
end
if not is_set (hijri_year_limit) then
hijri_year_limit = hijricore.gregorian2hijri(tonumber(os.date('%Y')),12,31); -- global variable so we only have to fetch it once
hijri_year_limit = hijri_year_limit + 1;
end
year = tonumber (year) or lang_object:parseFormattedNumber (year); -- convert to number for the comparison
if year and (0 > year) then -- years less than 100 not supported
return false;
end
return year and (year <= hijri_year_limit) or false;
end
--[[--------------------------< I S _ V A L I D _ Y E A R >----------------------------------------------------
Function gets current year from the server and compares it to year from a citation parameter. Years more than one
year in the future are not acceptable.
Special case for |pmc-embargo-date=: years more than two years in the future are not acceptable
]]
local function is_valid_year (year, is_hijri, param)
--#Added block
if is_hijri then
return is_valid_hijri_year (year);
end
if not is_set (year_limit) then
year_limit = tonumber(os.date("%Y"))+1; -- global variable so we only have to fetch it once
end
year = tonumber (year) or lang_object:parseFormattedNumber (year); -- convert to number for the comparison
if year and (100 > year) then -- years less than 100 not supported
return false;
end
if 'pmc-embargo-date' == param then -- special case for |pmc-embargo-date=
return year and (year <= tonumber(os.date("%Y"))+2) or false; -- years more than two years in the future are not accepted
end
return year and (year <= year_limit) or false;
end
--[[--------------------------< I S _ V A L I D _ H I J R I _ D A T E >----------------------------------------------------
##Added function
Returns true if day is less than or equal to the number of days in month and year is no farther into the future
than next year; else returns false.
]]
local function is_valid_hijri_date (year, month, day)
if not is_valid_hijri_year (tonumber(year)) then -- no farther into the future than next year except |pmc-embargo-date= no more than two years in the future
return false;
end
month = tonumber (month); -- required for YYYY-MM-DD dates
day = tonumber(day);
if month>12 or month<1 then
return false;
elseif day > 30 or day<1 then
return false;
end
return true;
end
--[[--------------------------< I S _ V A L I D _ D A T E >----------------------------------------------------
Returns true if day is less than or equal to the number of days in month and year is no farther into the future
than next year; else returns false.
Assumes Julian calendar prior to year 1582 and Gregorian calendar thereafter. Accounts for Julian calendar leap
years before 1582 and Gregorian leap years after 1582. Where the two calendars overlap (1582 to approximately
1923) dates are assumed to be Gregorian.
]]
local function is_valid_date (year, month, day, param, ishijri)
--#added block
if ishijri then
return is_valid_hijri_date (year, month, day, param);
end
local days_in_month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
local month_length;
--#modified
if not is_valid_year (year, false, param) then -- no farther into the future than next year except |pmc-embargo-date= no more than two years in the future
return false;
end
month = tonumber (month); -- required for YYYY-MM-DD dates
if (2 == month) then -- if February
month_length = 28; -- then 28 days unless
if 1582 > tonumber(year) then -- Julian calendar
if 0 == (year%4) then -- is a leap year?
month_length = 29; -- if leap year then 29 days in February
end
else -- Gregorian calendar
if (0 == (year%4) and (0 ~= (year%100) or 0 == (year%400))) then -- is a leap year?
month_length = 29; -- if leap year then 29 days in February
end
end
else
month_length = days_in_month[month] or 0; -- invalid month number is nil so default <month_length> to 0
end
if tonumber (day) > month_length then
return false;
end
return true;
end
--[[--------------------------< hijri_and_gregorian_corresponded >----------------------------------------------------
#Added function
]]
local function hijri_and_gregorian_corresponded(hijri, gregorian)
if hijricore == nil then
hijricore = require('Module:Hijri/core');
end
local function western2jd(year, month, day)
local func = (year < 1583) and hijricore.julian2jd or hijricore.gregorian2jd
return func(year, month, day)
end
local function set_period_jd(period_t, isHijri)
local seasons = {
[33] = {{day=1,month=1},{day=31,month=3}},
[34] = {{day=1,month=4},{day=30,month=6}},
[35] = {{day=1,month=7},{day=30,month=9}},
[36] = {{day=1,month=10},{day=31,month=12}},
}
local days_in_month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
local func = isHijri and hijricore.hijri2jd or western2jd
if period_t[1].day == 0 then
if period_t[1].month > 0 and period_t[1].month < 13 then
period_t[1].day = 1
if period_t[2] then
period_t[2].day = isHijri and 30 or days_in_month[period_t[2].month]
else
period_t[2] = {day=isHijri and 30 or days_in_month[period_t[1].month],month=period_t[1].month,year=period_t[1].year}
end
elseif seasons[period_t[1].month] then
local periodmonth = period_t[1].month
period_t[1].day = seasons[periodmonth][1].day
period_t[1].month = seasons[periodmonth][1].month
if period_t[2] then
period_t[2].day = seasons[period_t[2].month][2].day
period_t[2].month = seasons[period_t[2].month][2].month
else
period_t[2] = {day = seasons[periodmonth][2].day, month = seasons[periodmonth][2].month, year = period_t[1].year}
end
else
period_t[1].day = 1
period_t[1].month = 1
if period_t[2] then
period_t[2].day = isHijri and 30 or 31
period_t[2].month = 12
else
period_t[2] = {day = isHijri and 30 or 31, month = 12, year=period_t[1].year}
end
end
end
for i, period in ipairs(period_t) do
period_t[i].jd = func(tonumber(period.year), tonumber(period.month), tonumber(period.day))
end
return period_t
end
hijri = set_period_jd(hijri, true);
gregorian = set_period_jd(gregorian, false);
local h1, h2 = hijri[1].jd, hijri[2] and hijri[2].jd or hijri[1].jd
local g1, g2 = gregorian[1].jd, gregorian[2] and gregorian[2].jd or gregorian[1].jd
if (h2 + 3 < g1) or (h1 - 3 > g2) then
set_message ('err_date_hijri_and_gregorian_not_corresponded');
return false
end
return true
end
--[[--------------------------< I S _ V A L I D _ M O N T H _ R A N G E _ S T Y L E >--------------------------
Months in a range are expected to have the same style: Jan–Mar or October–December but not February–Mar or Jul–August.
This function looks in cfg.date_names{} to see if both month names are listed in the long subtable or both are
listed in the short subtable. When both have the same style (both are listed in the same table), returns true; false else
]]
local function is_valid_month_range_style (month1, month2)
--#modified
if (cfg.date_names.en.long[month1] and cfg.date_names.en.long[month2]) or -- are both English names listed in the long subtable?
(cfg.date_names.en.short[month1] and cfg.date_names.en.short[month2]) or -- are both English names listed in the short subtable?
(cfg.date_names['local'].long[month1] and cfg.date_names['local'].long[month2]) or -- are both local names listed in the long subtable?
(cfg.date_names['local'].hijri[month1] and cfg.date_names['local'].hijri[month2]) or -- are both local names listed in the long subtable?
(cfg.date_names['local']['alt-long'][month1] and cfg.date_names['local']['alt-long'][month2]) or -- are both local names listed in the long subtable?
(cfg.date_names['local'].short[month1] and cfg.date_names['local'].short[month2]) then -- are both local names listed in the short subtable?
return true;
end
return false; -- names are mixed
end
--[[--------------------------< I S _ V A L I D _ M O N T H _ S E A S O N _ R A N G E >------------------------
Check a pair of months or seasons to see if both are valid members of a month or season pair.
Month pairs are expected to be left to right, earliest to latest in time.
All season ranges are accepted as valid because there are publishers out there who have published a Summer–Spring YYYY issue, hence treat as ok
]]
local function is_valid_month_season_range(range_start, range_end, param)
--#Modified
local range_start_number, ishijri = get_month_number_and_cal (range_start);
local range_end_number;
if 0 == range_start_number then -- is this a month range?
range_start_number = get_season_number (range_start, param); -- not a month; is it a season? get start season number
range_end_number = get_season_number (range_end, param); -- get end season number
if (0 ~= range_start_number) and (0 ~= range_end_number) and (range_start_number ~= range_end_number) then
return true; -- any season pairing is accepted except when both are the same
end
return false; -- range_start and/or range_end is not a season
end
-- here when range_start is a month
--#Modified
range_end_number = get_month_number (range_end, ishijri); -- get end month number
if range_start_number < range_end_number and -- range_start is a month; does range_start precede range_end?
is_valid_month_range_style (range_start, range_end) then -- do months have the same style?
return true; -- proper order and same style
end
return false; -- range_start month number is greater than or equal to range end number; or range end isn't a month
end
--[[--------------------------< M A K E _ C O I N S _ D A T E >------------------------------------------------
This function receives a table of date parts for one or two dates and an empty table reference declared in
Module:Citation/CS1. The function is called only for |date= parameters and only if the |date=<value> is
determined to be a valid date format. The question of what to do with invalid date formats is not answered here.
The date parts in the input table are converted to an ISO 8601 conforming date string:
single whole dates: yyyy-mm-dd
month and year dates: yyyy-mm
year dates: yyyy
ranges: yyyy-mm-dd/yyyy-mm-dd
yyyy-mm/yyyy-mm
yyyy/yyyy
Dates in the Julian calendar are reduced to year or year/year so that we don't have to do calendar conversion from
Julian to Proleptic Gregorian.
The input table has:
year, year2 – always present; if before 1582, ignore months and days if present
month, month2 – 0 if not provided, 1-12 for months, 21-24 for seasons; 99 Christmas
day, day2 – 0 if not provided, 1-31 for days
the output table receives:
rftdate: an ISO 8601 formatted date
rftchron: a free-form version of the date, usually without year which is in rftdate (season ranges and proper-name dates)
rftssn: one of four season keywords: winter, spring, summer, fall (lowercase)
rftquarter: one of four values: 1, 2, 3, 4
]]
local function make_COinS_date (input, tCOinS_date)
local date; -- one date or first date in a range
local date2 = ''; -- end of range date
input.year = tonumber (input.year) or lang_object:parseFormattedNumber (input.year); -- language-aware tonumber()
input.year2 = tonumber (input.year2) or lang_object:parseFormattedNumber (input.year2); -- COinS dates are pseudo-ISO 8601 so convert to Arabic numerals
if ((1582 == input.year) and (10 > tonumber(input.month))) or (1582 > input.year) then -- if a Julian calendar date
tCOinS_date.rftdate = tostring (input.year); -- &rft.date gets year only
return; -- done
end
-- here for all forms of Gregorian dates
if 20 < tonumber (input.month) then -- if season, quarter, or proper-name date
date = input.year; -- &rft.date gets year only
if 0 ~= input.year2 and input.year ~= input.year2 then -- if a range, only the second year portion when not the same as range start year
date = string.format ('%.4d/%.4d', input.year, input.year2) -- assemble the date range
end
local season = {[24] = 'winter', [21] = 'spring', [22] = 'summer', [23] = 'fall', [33] = '1', [34] = '2', [35] = '3', [36] = '4', [98] = 'Easter', [99] = 'Christmas'}; -- seasons lowercase, no autumn; proper-names use title case
if 0 == input.month2 then -- single season, quarter, or proper-name date
if 40 < tonumber(input.month) then
tCOinS_date.rftchron = season[input.month]; -- proper-name date; used in journal metadata only
elseif 30 < tonumber(input.month) then
tCOinS_date.rftquarter = season[input.month]; -- quarter date; used in journal metadata only
else
tCOinS_date.rftssn = season[input.month]; -- season date; used in journal metadata only
end
else -- season ranges are lumped into &rft.chron; &rft.ssn and &rft.quarter are left blank
if input.year ~= input.year2 then -- season year – season year range or season year–year
if 0 ~= input.month2 then
tCOinS_date.rftchron = string.format ('%s %s – %s %s', season[input.month], input.year, season[input.month2], input.year2); -- used in journal metadata only
end
else -- season–season year range
tCOinS_date.rftchron = season[input.month] .. '–' .. season[input.month2]; -- season–season year range; used in journal metadata only
end
end
tCOinS_date.rftdate = tostring (date);
return; -- done
end
-- here for gregorian calendar dates
if 0 ~= input.day then
date = string.format ('%s-%.2d-%.2d', input.year, tonumber(input.month), tonumber(input.day)); -- whole date
elseif 0 ~= input.month then
date = string.format ('%s-%.2d', input.year, tonumber(input.month)); -- year and month
else
date = string.format ('%s', input.year); -- just year
end
if 0 ~= input.year2 then
if 0 ~= input.day2 then
date2 = string.format ('/%s-%.2d-%.2d', input.year2, tonumber(input.month2), tonumber(input.day2)); -- whole date
elseif 0 ~= input.month2 then
date2 = string.format ('/%s-%.2d', input.year2, tonumber(input.month2)); -- year and month
else
date2 = string.format ('/%s', input.year2); -- just year
end
end
tCOinS_date.rftdate = date .. date2; -- date2 has the '/' separator
return;
end
--[[--------------------------< P A T T E R N S _ T >----------------------------------------------------------
this is the list of patterns for date formats that this module recognizes. Approximately the first half of these
patterns represent formats that might be reformatted into another format. Those that might be reformatted have
'indicator' letters that identify the content of the matching capture: 'd' (day), 'm' (month), 'a' (anchor year),
'y' (year); second day, month, year have a '2' suffix.
These patterns are used for both date validation and for reformatting. This table should not be moved to ~/Configuration
because changes to this table require changes to check_date() and to reformatter() and reformat_date()
]]
local patterns_t = {
--#Added block: for Hijri dates
['H-dMy'] = {'^([0-3]?%d) +(%D-) +((%d%d%d%d?)ه[ـ]?)$', 'd', 'm', 'a', 'y'},
['H-dmy'] = {'^([0-3]?%d)[%-/]([0-1]?%d)[%-/]((%d%d%d%d)ه[ـ]?)$', 'd', 'm', 'a', 'y'},
['H-My'] = {'^([^%d–]+)[ %-]+((%d%d%d%d)ه[ـ]?)$', 'm', 'a', 'y'},
['H-y'] = {'^((%d%d%d%d?)ه[ـ]?)$', 'a','y'},
--#Added END
--#modified تساهل في الأصفار الدليلية -- year-initial numerical year-month-day
['ymd'] = {'^(%d%d%d%d)%-([0-1]?%d)%-([0-3]?%d)$', 'y', 'm', 'd'},
--#Added مستعملة في اللغات العربية 15-10-2022 -- year-initial numerical year-month-day
['dmy'] = {'^([0-3]?%d)%-([0-1]?%d)%-([1-9]%d%d%d)$', 'd', 'm', 'y'},
-- month-initial: month day, year
['Mdy'] = {'^(%D-) +([1-9]%d?), +(([1-9]%d%d%d?)%a?)$', 'm', 'd', 'a', 'y'},
-- month-initial day range: month day–day, year; days are separated by endash
['Md-dy'] = {'^(%D-) +([1-9]%d?)[%-–]([1-9]%d?), +(([1-9]%d%d%d?)%a?)$', 'm', 'd', 'd2', 'a', 'y'},
--#Mdofied to allow 01 يناير -- day-initial: day month year
['dMy'] = {'^(%d%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'm', 'a', 'y'},
-- year-initial: year month day; day: 1 or 2 two digits, leading zero allowed; not supported at en.wiki
['yMd'] = {'^(([1-9]%d%d%d?)%a?) +(%D-) +(%d%d?)$', 'a', 'y', 'm', 'd'},
-- day-range-initial: day–day month year; days are separated by endash
['d-dMy'] = {'^([1-9]%d?)[%-–]([1-9]%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'd2', 'm', 'a', 'y'},
-- day initial month-day-range: day month - day month year; uses spaced endash
['dM-dMy'] = {'^([1-9]%d?) +(%D-) +[%-–] +([1-9]%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'm', 'd2', 'm2', 'a', 'y'},
-- month initial month-day-range: month day – month day, year; uses spaced endash
['Md-Mdy'] = {'^(%D-) +([1-9]%d?) +[%-–] +(%D-) +([1-9]%d?), +(([1-9]%d%d%d?)%a?)$','m', 'd', 'm2', 'd2', 'a', 'y'},
-- day initial month-day-year-range: day month year - day month year; uses spaced endash
['dMy-dMy'] = {'^([1-9]%d?) +(%D-) +([1-9]%d%d%d?) +[%-–] +([1-9]%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'm', 'y', 'd2', 'm2', 'a', 'y2'},
-- month initial month-day-year-range: month day, year – month day, year; uses spaced endash
['Mdy-Mdy'] = {'^(%D-) +([1-9]%d?), +([1-9]%d%d%d?) +[%-–] +(%D-) +([1-9]%d?), +(([1-9]%d%d%d?)%a?)$', 'm', 'd', 'y', 'm2', 'd2', 'a', 'y2'},
-- these date formats cannot be converted, per se, but month name can be rendered short or long
-- month/season year - month/season year; separated by spaced endash
['My-My'] = {'^(%D-) +([1-9]%d%d%d?) +[%-–] +(%D-) +(([1-9]%d%d%d?)%a?)$', 'm', 'y', 'm2', 'a', 'y2'},
-- month/season range year; months separated by endash
['M-My'] = {'^(%D-)[%-–](%D-) +(([1-9]%d%d%d?)%a?)$', 'm', 'm2', 'a', 'y'},
-- month/season year or proper-name year; quarter year when First Quarter YYYY etc.
['My'] = {'^([^%d–]-) +(([1-9]%d%d%d?)%a?)$', 'm', 'a', 'y'}, -- this way because endash is a member of %D; %D- will match January–March 2019 when it shouldn't
-- these date formats cannot be converted
['Sy4-y2'] = {'^(%D-) +(([1-9]%d)%d%d)[%-–]((%d%d)%a?)$'}, -- special case Winter/Summer year-year (YYYY-YY); year separated with unspaced endash
['Sy-y'] = {'^(%D-) +([1-9]%d%d%d?)[%-–](([1-9]%d%d%d?)%a?)$'}, -- special case Winter/Summer year-year; year separated with unspaced endash
['y-y'] = {'^([1-9]%d%d%d?)[%-–](([1-9]%d%d%d?)%a?)$'}, -- year range: YYY-YYY or YYY-YYYY or YYYY–YYYY; separated by unspaced endash; 100-9999
['y4-y2'] = {'^(([1-9]%d)%d%d)[%-–]((%d%d)%a?)$'}, -- year range: YYYY–YY; separated by unspaced endash
['y'] = {'^(([1-9]%d%d%d?)%a?)$'}, -- year; here accept either YYY or YYYY
}
--[[--------------------------< I S _ V A L I D _ E M B A R G O _ D A T E >------------------------------------
returns true and date value if that value has proper dmy, mdy, ymd format.
returns false and 9999 (embargoed forever) when date value is not proper format; assumes that when |pmc-embargo-date= is
set, the editor intended to embargo a PMC but |pmc-embargo-date= does not hold a single date.
]]
local function is_valid_embargo_date (v)
if v:match (patterns_t['ymd'][1]) or -- ymd
v:match (patterns_t['Mdy'][1]) or -- dmy
v:match (patterns_t['dMy'][1]) then -- mdy
return true, v;
end
return false, '9999'; -- if here not good date so return false and set embargo date to long time in future
end
--[[--------------------------< C H E C K _ D A T E >----------------------------------------------------------
Check date format to see that it is one of the formats approved by WP:DATESNO or WP:DATERANGE. Exception: only
allowed range separator is endash. Additionally, check the date to see that it is a real date: no 31 in 30-day
months; no 29 February when not a leap year. Months, both long-form and three character abbreviations, and seasons
must be spelled correctly. Future years beyond next year are not allowed.
If the date fails the format tests, this function returns false and does not return values for anchor_year and
COinS_date. When this happens, the date parameter is (DEBUG: not?) used in the COinS metadata and the CITEREF identifier gets
its year from the year parameter if present otherwise CITEREF does not get a date value.
Inputs:
date_string - date string from date-holding parameters (date, year, publication-date, access-date, pmc-embargo-date, archive-date, lay-date)
Returns:
false if date string is not a real date; else
true, anchor_year, COinS_date
anchor_year can be used in CITEREF anchors
COinS_date is ISO 8601 format date; see make_COInS_date()
]]
local function check_date (date_string, param, tCOinS_date)
--#hardly modified
local year; -- assume that year2, months, and days are not used;
local year2 = 0; -- second year in a year range
local month = 0;
local month2 = 0; -- second month in a month range
local day = 0;
local day2 = 0; -- second day in a day range
local anchor_year;
local coins_date;
--#Added flag for hijri date
local hijri_date;
local hijri_param = ('hijri-date' == param);
--#Added Hijri Date Validtion
if mw.ustring.match (date_string, patterns_t['H-dmy'][1]) then
day, month, year = mw.ustring.match (date_string, patterns_t['H-dmy'][1]);
if 12 < tonumber(month) or 1 > tonumber(month) or 0 == tonumber(day) then return false; end
anchor_year = year;
hijri_date = true;
elseif mw.ustring.match (date_string, patterns_t['H-dMy'][1]) then
day, month, anchor_year, year = mw.ustring.match(date_string, patterns_t['H-dMy'][1]);
month = get_month_number (month, true);
if 0 == month then return false; end
hijri_date = true;
elseif mw.ustring.match (date_string, patterns_t['H-My'][1]) then
month, anchor_year, year = mw.ustring.match(date_string, patterns_t['H-My'][1]);
month = get_month_number (month, true);
hijri_date = true;
if not is_valid_year(year,hijri_date) then return false; end
elseif mw.ustring.match (date_string, patterns_t['H-y'][1]) then
anchor_year, year = mw.ustring.match(date_string, patterns_t['H-y'][1]);
hijri_date = true;
if not is_valid_year(year,hijri_date) then return false; end
--#Added END
elseif date_string:match (patterns_t['ymd'][1]) then -- year-initial numerical year month day format
year, month, day = date_string:match (patterns_t['ymd'][1]);
if 12 < tonumber(month) or 1 > tonumber(month) or 1582 > tonumber(year) or 0 == tonumber(day) then return false; end -- month or day number not valid or not Gregorian calendar
anchor_year = year;
--#Added used in Arabic
elseif date_string:match (patterns_t['dmy'][1]) then
day, month, year = date_string:match (patterns_t['dmy'][1]);
if not is_valid_date(year, month, day, param, hijri_param) then return false; end
hijri_date = hijri_param;
anchor_year = year;
elseif mw.ustring.match(date_string, patterns_t['Mdy'][1]) then -- month-initial: month day, year
month, day, anchor_year, year = mw.ustring.match(date_string, patterns_t['Mdy'][1]);
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
elseif mw.ustring.match(date_string, patterns_t['Md-dy'][1]) then -- month-initial day range: month day–day, year; days are separated by endash
month, day, day2, anchor_year, year = mw.ustring.match(date_string, patterns_t['Md-dy'][1]);
if tonumber(day) >= tonumber(day2) then return false; end -- date range order is left to right: earlier to later; dates may not be the same;
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
month2=month; -- for metadata
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['dMy'][1]) then -- day-initial: day month year
day, month, anchor_year, year = mw.ustring.match(date_string, patterns_t['dMy'][1]);
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
--[[ NOT supported at en.wiki
elseif mw.ustring.match(date_string, patterns_t['yMd'][1]) then -- year-initial: year month day; day: 1 or 2 two digits, leading zero allowed
anchor_year, year, month, day = mw.ustring.match(date_string, patterns_t['yMd'][1]);
month = get_month_number (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
-- end NOT supported at en.wiki ]]
elseif mw.ustring.match(date_string, patterns_t['d-dMy'][1]) then -- day-range-initial: day–day month year; days are separated by endash
day, day2, month, anchor_year, year = mw.ustring.match(date_string, patterns_t['d-dMy'][1]);
if tonumber(day) >= tonumber(day2) then return false; end -- date range order is left to right: earlier to later; dates may not be the same;
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
month2 = month; -- for metadata
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['dM-dMy'][1]) then -- day initial month-day-range: day month - day month year; uses spaced endash
day, month, day2, month2, anchor_year, year = mw.ustring.match(date_string, patterns_t['dM-dMy'][1]);
hijri_date = (get_month_number(month, true) > 0);
if (not is_valid_month_season_range(month, month2)) or not is_valid_year(year, hijri_date) then return false; end -- date range order is left to right: earlier to later;
month = get_month_number (month,hijri_date); -- for metadata
month2 = get_month_number (month2,hijri_date);
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['Md-Mdy'][1]) then -- month initial month-day-range: month day – month day, year; uses spaced endash
month, day, month2, day2, anchor_year, year = mw.ustring.match(date_string, patterns_t['Md-Mdy'][1]);
hijri_date = (get_month_number(month, true) > 0);
if (not is_valid_month_season_range(month, month2, param)) or not is_valid_year(year, hijri_date) then return false; end
month = get_month_number (month, hijri_date); -- for metadata
month2 = get_month_number (month2, hijri_date);
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['dMy-dMy'][1]) then -- day initial month-day-year-range: day month year - day month year; uses spaced endash
day, month, year, day2, month2, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['dMy-dMy'][1]);
if tonumber(year2) <= tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
hijri_date = (get_month_number(month, true) > 0);
if not is_valid_year(year2, hijri_date) or not is_valid_month_range_style(month, month2) then return false; end -- year2 no more than one year in the future; months same style
month = get_month_number (month, hijri_date); -- for metadata
month2 = get_month_number (month2, hijri_date);
if 0 == month or 0 == month2 then return false; end -- both must be valid
elseif mw.ustring.match(date_string, patterns_t['Mdy-Mdy'][1]) then -- month initial month-day-year-range: month day, year – month day, year; uses spaced endash
month, day, year, month2, day2, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['Mdy-Mdy'][1]);
hijri_date = (get_month_number(month, true) > 0);
if tonumber(year2) <= tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
if not is_valid_year(year2, hijri_date) or not is_valid_month_range_style(month, month2) then return false; end -- year2 no more than one year in the future; months same style
month = get_month_number (month, hijri_date); -- for metadata
month2 = get_month_number(month2, hijri_date);
if 0 == month or 0 == month2 then return false; end -- both must be valid
elseif mw.ustring.match(date_string, patterns_t['Sy4-y2'][1]) then -- special case Winter/Summer year-year (YYYY-YY); year separated with unspaced endash
local century;
month, year, century, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['Sy4-y2'][1]);
if 'Winter' ~= month and 'Summer' ~= month then return false end; -- 'month' can only be Winter or Summer
anchor_year = year .. '–' .. anchor_year; -- assemble anchor_year from both years
year2 = century..year2; -- add the century to year2 for comparisons
if 1 ~= tonumber(year2) - tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
if not is_valid_year(year2) then return false; end -- no year farther in the future than next year
month = get_season_number(month, param);
elseif mw.ustring.match(date_string, patterns_t['Sy-y'][1]) then -- special case Winter/Summer year-year; year separated with unspaced endash
month, year, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['Sy-y'][1]);
month = get_season_number (month, param); -- <month> can only be winter or summer; also for metadata
if (month ~= cfg.date_names['en'].season['Winter']) and (month ~= cfg.date_names['en'].season['Summer']) then
return false; -- not Summer or Winter; abandon
end
anchor_year = year .. '–' .. anchor_year; -- assemble anchor_year from both years
if 1 ~= tonumber(year2) - tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
if not is_valid_year(year2) then return false; end -- no year farther in the future than next year
elseif mw.ustring.match(date_string, patterns_t['My-My'][1]) then -- month/season year - month/season year; separated by spaced endash
month, year, month2, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['My-My'][1]);
anchor_year = year .. '–' .. anchor_year; -- assemble anchor_year from both years
if tonumber(year) >= tonumber(year2) then return false; end -- left to right, earlier to later, not the same
hijri_date = (get_month_number(month, true) > 0);
if not is_valid_year(year2, hijri_date) then return false; end -- no year farther in the future than next year
if 0 ~= get_month_number(month, hijri_date) and 0 ~= get_month_number(month2, hijri_date) and is_valid_month_range_style(month, month2) then -- both must be month year, same month style
month = get_month_number(month, hijri_date);
month2 = get_month_number(month2, hijri_date);
elseif 0 ~= get_season_number(month, param) and 0 ~= get_season_number(month2, param) then -- both must be season year, not mixed
month = get_season_number(month, param);
month2 = get_season_number(month2, param);
else
return false;
end
elseif mw.ustring.match(date_string, patterns_t['M-My'][1]) then -- month/season range year; months separated by endash
month, month2, anchor_year, year = mw.ustring.match(date_string, patterns_t['M-My'][1]);
hijri_date = (get_month_number(month, true) > 0);
if (not is_valid_month_season_range(month, month2, param)) or (not is_valid_year(year, hijri_date)) then return false; end
if 0 ~= get_month_number(month, hijri_date) then -- determined to be a valid range so just check this one to know if month or season
month = get_month_number(month, hijri_date);
month2 = get_month_number(month2, hijri_date);
if 0 == month or 0 == month2 then return false; end
else
month = get_season_number(month, param);
month2 = get_season_number(month2, param);
end
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['My'][1]) then -- month/season/quarter/proper-name year
month, anchor_year, year = mw.ustring.match(date_string, patterns_t['My'][1]);
hijri_date = (get_month_number(month, true) > 0);
if not is_valid_year(year, hijri_date) then return false; end
month = get_element_number(month, hijri_date, param); -- get month season quarter proper-name number or nil
if not month then return false; end -- not valid whatever it is
elseif mw.ustring.match(date_string, patterns_t['y-y'][1]) then -- Year range: YYY-YYY or YYY-YYYY or YYYY–YYYY; separated by unspaced endash; 100-9999
year, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['y-y'][1]);
anchor_year = year .. '–' .. anchor_year; -- assemble anchor year from both years
if tonumber(year) >= tonumber(year2) then return false; end -- left to right, earlier to later, not the same
if not is_valid_year(year2, hijri_param) then return false; end -- no year farther in the future than next year
hijri_date = hijri_param; -- year range is valid so set hijri_date to true when |hijri-date= is set
elseif mw.ustring.match(date_string, patterns_t['y4-y2'][1]) then -- Year range: YYYY–YY; separated by unspaced endash
local century;
year, century, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['y4-y2'][1]);
anchor_year = year .. '–' .. anchor_year; -- assemble anchor year from both years
if 13 > tonumber(year2) then return false; end -- don't allow 2003-05 which might be May 2003
year2 = century .. year2; -- add the century to year2 for comparisons
if tonumber(year) >= tonumber(year2) then return false; end -- left to right, earlier to later, not the same
if not is_valid_year(year2, hijri_param) then return false; end -- no year farther in the future than next year
hijri_date = hijri_param; -- year range is valid so set hijri_date to true when |hijri-date= is set
if in_array (param, {'date', 'publication-date', 'year'}) then -- here when 'valid' abbreviated year range; if one of these parameters
add_prop_cat ('year-range-abbreviated'); -- add properties cat
end
elseif mw.ustring.match(date_string, patterns_t['y'][1]) then -- year; here accept either YYY or YYYY
anchor_year, year = mw.ustring.match(date_string, patterns_t['y'][1]);
if false == is_valid_year(year, hijri_param) then
return false;
end
hijri_date = hijri_param;
else
return false; -- date format not one of the MOS:DATE approved formats
end
if param ~= 'date' then -- CITEREF disambiguation only allowed in |date=; |year= & |publication-date= promote to date
if anchor_year:match ('%l$') then
return false;
end
end
if 'access-date' == param then -- test access-date here because we have numerical date parts
if 0 ~= year and 0 ~= month and 0 ~= day and -- all parts of a single date required
0 == year2 and 0 == month2 and 0 == day2 then -- none of these; access-date must not be a range
if not is_valid_accessdate(year .. '-' .. month .. '-' .. day) then
return false; -- return false when access-date out of bounds
end
else
return false; -- return false when access-date is a range of two dates
end
end
if 'archive-date' == param then -- test archive-date here because we have numerical date parts
if not (0 ~= year and 0 ~= month and 0 ~= day and -- all parts of a single date required
0 == year2 and 0 == month2 and 0 == day2) then -- none of these; archive-date must not be a range
return false; -- return false when archive-date is a range of two dates
end
end
local result=true; -- check whole dates for validity; assume true because not all dates will go through this test
if 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 == month2 and 0 == day2 then -- YMD (simple whole date)
result = is_valid_date (year, month, day, param, hijri_date); -- <param> for |pmc-embargo-date=
elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 == month2 and 0 ~= day2 then -- YMD-d (day range)
result = is_valid_date (year, month, day, param, hijri_date);
result = result and is_valid_date (year, month, day2, param, hijri_date);
elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 ~= month2 and 0 ~= day2 then -- YMD-md (day month range)
result = is_valid_date (year, month, day, param, hijri_date);
result = result and is_valid_date (year, month2, day2, param, hijri_date);
elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 ~= year2 and 0 ~= month2 and 0 ~= day2 then -- YMD-ymd (day month year range)
result = is_valid_date(year, month, day, param, hijri_date);
result = result and is_valid_date(year2, month2, day2, param, hijri_date);
end
if false == result then return false; end
--#Modified check Hijri Date
if nil ~= tCOinS_date and not (hijri_date or hijri_param) then -- this table only passed into this function when testing |date= parameter values
make_COinS_date ({year = year, month = month, day = day, year2 = year2, month2 = month2, day2 = day2}, tCOinS_date); -- make an ISO 8601 date string for COinS
end
local tt = {{year=year, month=month, day=day}}; -- return table of date parts
if 0 ~= year2 or 0 ~= month2 or 0 ~= day2 then
table.insert(tt, {year=year2, month=month2, day=day2});
end
return true, anchor_year, hijri_date, tt; -- format is good and date string represents a real date
end
--[[--------------------------< D A T E S >--------------------------------------------------------------------
Cycle the date-holding parameters in passed table date_parameters_list through check_date() to check compliance with MOS:DATE. For all valid dates, check_date() returns
true. The |date= parameter test is unique, it is the only date holding parameter from which values for anchor_year (used in CITEREF identifiers) and COinS_date (used in
the COinS metadata) are derived. The |date= parameter is the only date-holding parameter that is allowed to contain the no-date keywords "n.d." or "nd" (without quotes).
Unlike most error messages created in this module, only one error message is created by this function. Because all of the date holding parameters are processed serially,
parameters with errors are added to the <error_list> sequence table as the dates are tested.
]]
local function dates(date_parameters_list, tCOinS_date, error_list)
local anchor_year; -- will return as nil if the date being tested is not |date=
local COinS_date; -- will return as nil if the date being tested is not |date=
local embargo_date; -- if embargo date is a good dmy, mdy, ymd date then holds original value else reset to 9999
for k, v in pairs(date_parameters_list) do -- for each date-holding parameter in the list
local good_date = false;
if is_set(v.val) then -- if the parameter has a value
v.val = mw.ustring.gsub(v.val, '%d', cfg.date_names.local_digits); -- translate 'local' digits to Western 0-9
v.val = mw.ustring.gsub(v.val, '(%d) ?هـ?$', '%1');
if v.val:match("^c%. [1-9]%d%d%d?%a?$") then -- special case for c. year or with or without CITEREF disambiguator - only |date= and |year=
local year = v.val:match("c%. ([1-9]%d%d%d?)%a?"); -- get the year portion so it can be tested
if 'date' == k then
anchor_year, COinS_date = v.val:match("((c%. [1-9]%d%d%d?)%a?)"); -- anchor year and COinS_date only from |date= parameter
good_date = is_valid_year(year);
elseif 'year' == k then
good_date = is_valid_year(year);
else
good_date = false;
end
elseif 'date' == k then -- if the parameter is |date=
--#Modified block
for _,nd_pattern in ipairs(cfg.date_names.nd_patterns) do
if v.val:match(nd_pattern[1]) then
good_date, anchor_year, COinS_date = true, v.val:match(nd_pattern[2]);
date_parameters_list[k].val = "nd"
break;
end
end
if not good_date then
good_date, anchor_year, date_parameters_list[k].isHijri, date_parameters_list[k].tt = check_date (v.val, k, tCOinS_date); -- go test the date
end
--#Added block for Hijri Date
elseif 'hijri-date' == k then -- if the parameter is |date=
good_date, anchor_year, date_parameters_list[k].isHijri, date_parameters_list[k].tt = check_date (v.val, k); -- go test the date
if good_date and not date_parameters_list[k].isHijri then
set_message ('err_date_in_hijri_date_param', v.name);
good_date = false;
end
elseif 'year' == k then -- if the parameter is |year= it should hold only a year value
if v.val:match("^[1-9]%d%d%d?%a?$") then -- if |year = 3 or 4 digits only with or without a CITEREF disambiguator
good_date, anchor_year, COinS_date = true, v.val:match("((%d+)%a?)");
else
good_date = false;
end
elseif 'pmc-embargo-date' == k then -- if the parameter is |pmc-embargo-date=
good_date = check_date (v.val, k); -- go test the date
if true == good_date then -- if the date is a valid date
good_date, embargo_date = is_valid_embargo_date (v.val); -- is |pmc-embargo-date= date a single dmy, mdy, or ymd formatted date? yes: returns embargo date; no: returns 9999
end
else -- any other date-holding parameter
--#Modified
local _
good_date, _, date_parameters_list[k].isHijri, date_parameters_list[k].tt = check_date (v.val, k); -- go test the date
end
if false == good_date then -- assemble one error message so we don't add the tracking category multiple times
table.insert (error_list, wrap_style ('parameter', v.name)); -- make parameter name suitable for error message list
end
--#Added block
if date_parameters_list[k].isHijri and 'hijri-date' ~= k then
set_message ('err_hijri_date_in_date_param', v.name);
end
end
end
return anchor_year, embargo_date; -- and done
end
--[[--------------------------< Y E A R _ C H E C K >----------------------------------------------------------
Temporary function to test |year= for acceptable values:
YYY, YYYY, year-only ranges, their circa forms, with or without CITEREF disambiguators.
When |year= holds some form of date that is not one of these year-only dates, emit a maintenance message.
This function necessary because many non-cs1|2 templates have a |year= parameter so cirrus searches are more-or-
less useless
]]
local function year_check (year)
year = year:gsub ('c%. *', ''); -- remove circa annotation (if present) before testing <year>
for _, index in ipairs ({'y-y', 'y4-y2', 'y'}) do -- spin through these indexes into patterns_t
if mw.ustring.match (year, patterns_t[index][1]) then
return; -- if a match then |year= holds a valid 'year'
end
end
set_message ('maint_year'); -- if here, |year= value is not an accepted value; add a maint cat
end
--[[--------------------------< Y E A R _ D A T E _ C H E C K >------------------------------------------------
Compare the value provided in |year= with the year value(s) provided in |date=. This function sets a local numeric value:
0 - year value does not match the year value in date
1 - (default) year value matches the year value in date or one of the year values when date contains two years
2 - year value matches the year value in date when date is in the form YYYY-MM-DD and year is disambiguated (|year=YYYYx)
the numeric value in <result> determines the 'output' if any from this function:
0 – adds error message to error_list sequence table
1 – adds maint cat
2 – does nothing
]]
local function year_date_check (year_string, year_origin, date_string, date_origin, error_list)
local year;
local date1;
local date2;
local result = 1; -- result of the test; assume that the test passes
year = year_string:match ('(%d%d%d%d?)');
if date_string:match ('%d%d%d%d%-%d%d%-%d%d') then --special case where both date and year are required YYYY-MM-DD and YYYYx
date1 = date_string:match ('(%d%d%d%d)');
year = year_string:match ('(%d%d%d%d)');
if year ~= date1 then
result = 0; -- years don't match
elseif year_string:match ('%d%d%d%d%a') then
result = 2; -- years match; but because disambiguated, don't add to maint cat
end
elseif date_string:match ("%d%d%d%d?.-%d%d%d%d?") then -- any of the standard range formats of date with two three- or four-digit years
date1, date2 = date_string:match ("(%d%d%d%d?).-(%d%d%d%d?)");
if year ~= date1 and year ~= date2 then
result = 0;
end
elseif mw.ustring.match(date_string, "%d%d%d%d[%-–]%d%d") then -- YYYY-YY date ranges
local century;
date1, century, date2 = mw.ustring.match(date_string, "((%d%d)%d%d)[%-–]+(%d%d)");
date2 = century..date2; -- convert YY to YYYY
if year ~= date1 and year ~= date2 then
result = 0;
end
elseif date_string:match ("%d%d%d%d?") then -- any of the standard formats of date with one year
date1 = date_string:match ("(%d%d%d%d?)");
if year ~= date1 then
result = 0;
end
else -- should never get here; this function called only when no other date errors
result = 0; -- no recognizable year in date
end
if 0 == result then -- year / date mismatch
table.insert (error_list, substitute (cfg.messages['mismatch'], {year_origin, date_origin})); -- add error message to error_list sequence table
elseif 1 == result then -- redundant year / date
set_message ('maint_date_year'); -- add a maint cat
end
end
--[[--------------------------< R E F O R M A T T E R >--------------------------------------------------------
reformat 'date' into new format specified by format_param if pattern_idx (the current format of 'date') can be
reformatted. Does the grunt work for reformat_dates().
The table re_formats maps pattern_idx (current format) and format_param (desired format) to a table that holds:
format string used by string.format()
identifier letters ('d', 'm', 'y', 'd2', 'm2', 'y2') that serve as indexes into a table t{} that holds captures
from mw.ustring.match() for the various date parts specified by patterns_t[pattern_idx][1]
Items in patterns_t{} have the general form:
['ymd'] = {'^(%d%d%d%d)%-(%d%d)%-(%d%d)$', 'y', 'm', 'd'}, where:
['ymd'] is pattern_idx
patterns_t['ymd'][1] is the match pattern with captures for mw.ustring.match()
patterns_t['ymd'][2] is an indicator letter identifying the content of the first capture
patterns_t['ymd'][3] ... the second capture etc.
when a pattern matches a date, the captures are loaded into table t{} in capture order using the idemtifier
characters as indexes into t{} For the above, a ymd date is in t{} as:
t.y = first capture (year), t.m = second capture (month), t.d = third capture (day)
To reformat, this function is called with the pattern_idx that matches the current format of the date and with
format_param set to the desired format. This function loads table t{} as described and then calls string.format()
with the format string specified by re_format[pattern_idx][format_param][1] using values taken from t{} according
to the capture identifier letters specified by patterns_t[pattern_idx][format_param][n] where n is 2..
]]
local re_formats = {
['ymd'] = { -- date format is ymd; reformat to:
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
},
['dmy'] = { -- date format is ymd; reformat to:
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
},
['Mdy'] = { -- date format is Mdy; reformat to:
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- for long/short reformatting
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
},
['dMy'] = { -- date format is dMy; reformat to:
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- for long/short reformatting
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
},
['Md-dy'] = { -- date format is Md-dy; reformat to:
['mdy'] = {'%s %s–%s, %s', 'm', 'd', 'd2', 'y'}, -- for long/short reformatting
['dmy'] = {'%s–%s %s %s', 'd', 'd2', 'm', 'y'}, -- |df=dmy -> d-dMy
},
['d-dMy'] = { -- date format is d-d>y; reformat to:
['dmy'] = {'%s–%s %s %s', 'd', 'd2', 'm', 'y'}, -- for long/short reformatting
['mdy'] = {'%s %s–%s, %s', 'm', 'd', 'd2', 'y'}, -- |df=mdy -> Md-dy
},
['dM-dMy'] = { -- date format is dM-dMy; reformat to:
['dmy'] = {'%s %s – %s %s %s', 'd', 'm', 'd2', 'm2', 'y'}, -- for long/short reformatting
['mdy'] = {'%s %s – %s %s, %s', 'm', 'd', 'm2', 'd2', 'y'}, -- |df=mdy -> Md-Mdy
},
['Md-Mdy'] = { -- date format is Md-Mdy; reformat to:
['mdy'] = {'%s %s – %s %s, %s', 'm', 'd', 'm2', 'd2', 'y'}, -- for long/short reformatting
['dmy'] = {'%s %s – %s %s %s', 'd', 'm', 'd2', 'm2', 'y'}, -- |df=dmy -> dM-dMy
},
['dMy-dMy'] = { -- date format is dMy-dMy; reformat to:
['dmy'] = {'%s %s %s – %s %s %s', 'd', 'm', 'y', 'd2', 'm2', 'y2'}, -- for long/short reformatting
['mdy'] = {'%s %s, %s – %s %s, %s', 'm', 'd', 'y', 'm2', 'd2', 'y2'}, -- |df=mdy -> Mdy-Mdy
},
['Mdy-Mdy'] = { -- date format is Mdy-Mdy; reformat to:
['mdy'] = {'%s %s, %s – %s %s, %s', 'm', 'd', 'y', 'm2', 'd2', 'y2'}, -- for long/short reformatting
['dmy'] = {'%s %s %s – %s %s %s', 'd', 'm', 'y', 'd2', 'm2', 'y2'}, -- |df=dmy -> dMy-dMy
},
['My-My'] = { -- these for long/short reformatting
['any'] = {'%s %s – %s %s', 'm', 'y', 'm2', 'y2'}, -- dmy/mdy agnostic
},
['M-My'] = { -- these for long/short reformatting
['any'] = {'%s–%s %s', 'm', 'm2', 'y'}, -- dmy/mdy agnostic
},
['My'] = { -- these for long/short reformatting
['any'] = {'%s %s', 'm', 'y'}, -- dmy/mdy agnostic
},
['yMd'] = { -- not supported at en.wiki
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
},
}
local function reformatter (date, pattern_idx, format_param, mon_len, isHijri)
if not in_array (pattern_idx, {'ymd', 'dmy', 'Mdy', 'Md-dy', 'dMy', 'yMd', 'd-dMy', 'dM-dMy', 'Md-Mdy', 'dMy-dMy', 'Mdy-Mdy', 'My-My', 'M-My', 'My'}) then
return; -- not in this set of date format patterns_t then not a reformattable date
end
if 'ymd' == format_param and in_array (pattern_idx, {'ymd', 'Md-dy', 'd-dMy', 'dM-dMy', 'Md-Mdy', 'dMy-dMy', 'Mdy-Mdy', 'My-My', 'M-My', 'My'}) then
return; -- ymd date ranges not supported at en.wiki; no point in reformatting ymd to ymd
end
if in_array (pattern_idx, {'My', 'M-My', 'My-My'}) then -- these are not dmy/mdy so can't be 'reformatted' into either
format_param = 'any'; -- so format-agnostic
end
-- yMd is not supported at en.wiki; when yMd is supported at your wiki, uncomment the next line
if 'yMd' == format_param and in_array (pattern_idx, {'yMd', 'Md-dy', 'd-dMy', 'dM-dMy', 'Md-Mdy', 'dMy-dMy', 'Mdy-Mdy'}) then -- these formats not convertable; yMd not supported at en.wiki
--if 'yMd' == format_param then -- yMd not supported at en.wiki; when yMd is supported at your wiki, remove or comment-out this line
return; -- not a reformattable date
end
local c1, c2, c3, c4, c5, c6, c7; -- these hold the captures specified in patterns_t[pattern_idx][1]
c1, c2, c3, c4, c5, c6, c7 = mw.ustring.match (date, patterns_t[pattern_idx][1]); -- get the captures
local t = { -- table that holds k/v pairs of date parts from the captures and patterns_t[pattern_idx][2..]
[patterns_t[pattern_idx][2]] = c1; -- at minimum there is always one capture with a matching indicator letter
[patterns_t[pattern_idx][3] or 'x'] = c2; -- patterns_t can have a variable number of captures; each capture requires an indicator letter;
[patterns_t[pattern_idx][4] or 'x'] = c3; -- where there is no capture, there is no indicator letter so n in patterns_t[pattern_idx][n] will be nil;
[patterns_t[pattern_idx][5] or 'x'] = c4; -- the 'x' here spoofs an indicator letter to prevent 'table index is nil' error
[patterns_t[pattern_idx][6] or 'x'] = c5;
[patterns_t[pattern_idx][7] or 'x'] = c6;
[patterns_t[pattern_idx][8] or 'x'] = c7;
};
if t.a then -- if this date has an anchor year capture (all convertable date formats except ymd)
if t.y2 then -- for year range date formats
t.y2 = t.a; -- use the anchor year capture when reassembling the date
else -- here for single date formats (except ymd)
t.y = t.a; -- use the anchor year capture when reassembling the date
end
end
--#Modified
if 'ymd' == format_param then -- when converting to ymd
t.y = mw.ustring.gsub(t.y,'%a', ''); -- strip CITREF disambiguator if present; anchor year already known so process can proceed; TODO: maint message?
if 1582 > tonumber (t.y) then -- ymd format dates not allowed before 1582
return;
end
if tonumber(t.m) then
t.m = string.format ('%02d', tonumber(t.m))
else
t.m = string.format ('%02d', get_month_number (t.m, isHijri)); -- make sure that month and day are two digits
end
t.d = string.format ('%02d', t.d);
elseif tonumber(t.m) then -- if raw month is a number (converting from ymd)
if isHijri then
t.m = cfg.date_names['inv_local_hijri'][tonumber(t.m)]; -- convert it to a month name
elseif 's' == mon_len then -- if we are to use abbreviated month names
t.m = cfg.date_names['inv_local_short'][tonumber(t.m)]; -- convert it to a month name
else
t.m = cfg.date_names['inv_local_long'][tonumber(t.m)]; -- convert it to a month name
end
t.d = t.d:gsub ('0(%d)', '%1'); -- strip leading '0' from day if present
elseif mon_len then -- if mon_len is set to either 'short' or 'long'
for _, mon in ipairs ({'m', 'm2'}) do -- because there can be two month names, check both
--#Modified Block
if t[mon] then
local isHijri;
t[mon], isHijri = get_month_number_and_cal (t[mon]); -- get the month number for this month (is length agnostic)
if 0 == t[mon] then return; end -- seasons and named dates can't be converted
t[mon] = isHijri and cfg.date_names['inv_local_hijri'][t[mon]] or ((('s' == mon_len) and cfg.date_names['inv_local_short'][t[mon]]) or cfg.date_names['inv_local_long'][t[mon]]); -- fetch month name according to length
end
end
end
local new_date = string.format (re_formats[pattern_idx][format_param][1], -- format string
t[re_formats[pattern_idx][format_param][2]], -- named captures from t{}
t[re_formats[pattern_idx][format_param][3]],
t[re_formats[pattern_idx][format_param][4]],
t[re_formats[pattern_idx][format_param][5]],
t[re_formats[pattern_idx][format_param][6]],
t[re_formats[pattern_idx][format_param][7]],
t[re_formats[pattern_idx][format_param][8]]
);
return new_date;
end
--[[-------------------------< R E F O R M A T _ D A T E S >--------------------------------------------------
Reformats existing dates into the format specified by format.
format is one of several manual keywords: dmy, dmy-all, mdy, mdy-all, ymd, ymd-all. The -all version includes
access- and archive-dates; otherwise these dates are not reformatted.
This function allows automatic date formatting. In ~/Configuration, the article source is searched for one of
the {{use xxx dates}} templates. If found, xxx becomes the global date format as xxx-all. If |cs1-dates= in
{{use xxx dates}} has legitimate value then that value determines how cs1|2 dates will be rendered. Legitimate
values for |cs1-dates= are:
l - all dates are rendered with long month names
ls - publication dates use long month names; access-/archive-dates use abbreviated month names
ly - publication dates use long month names; access-/archive-dates rendered in ymd format
s - all dates are rendered with abbreviated (short) month names
sy - publication dates use abbreviated month names; access-/archive-dates rendered in ymd format
y - all dates are rendered in ymd format
the format argument for automatic date formatting will be the format specified by {{use xxx dates}} with the
value supplied by |cs1-dates so one of: xxx-l, xxx-ls, xxx-ly, xxx-s, xxx-sy, xxx-y, or simply xxx (|cs1-dates=
empty, omitted, or invalid) where xxx shall be either of dmy or mdy.
dates are extracted from date_parameters_list, reformatted (if appropriate), and then written back into the
list in the new format. Dates in date_parameters_list are presumed here to be valid (no errors). This function
returns true when a date has been reformatted, false else. Actual reformatting is done by reformatter().
]]
local function reformat_dates (date_parameters_list, format)
local all = false; -- set to false to skip access- and archive-dates
local len_p = 'l'; -- default publication date length shall be long
local len_a = 'l'; -- default access-/archive-date length shall be long
local result = false;
local new_date;
if format:match('%a+%-all') then -- manual df keyword; auto df keyword when length not specified in {{use xxx dates}};
format = format:match('(%a+)%-all'); -- extract the format
all = true; -- all dates are long format dates because this keyword doesn't specify length
elseif format:match('%a+%-[lsy][sy]?') then -- auto df keywords; internal only
all = true; -- auto df applies to all dates; use length specified by capture len_p for all dates
format, len_p, len_a = format:match('(%a+)%-([lsy])([sy]?)'); -- extract the format and length keywords
if 'y' == len_p then -- because allowed by MOS:DATEUNIFY (sort of) range dates and My dates not reformatted
format = 'ymd'; -- override {{use xxx dates}}
elseif (not is_set(len_a)) or (len_p == len_a) then -- no access-/archive-date length specified or same length as publication dates then
len_a = len_p; -- in case len_a not set
end
end -- else only publication dates and they are long
for param_name, param_val in pairs (date_parameters_list) do -- for each date-holding parameter in the list
if is_set (param_val.val) then -- if the parameter has a value
if not (not all and in_array (param_name, {'access-date', 'archive-date'})) then -- skip access- or archive-date unless format is xxx-all; yeah, ugly; TODO: find a better way
for pattern_idx, pattern in pairs (patterns_t) do
if mw.ustring.match (param_val.val, pattern[1]) then
if all and in_array (param_name, {'access-date', 'archive-date'}) then -- if this date is an access- or archive-date
new_date = reformatter (param_val.val, pattern_idx, (('y' == len_a) and 'ymd') or format, len_a); -- choose ymd or dmy/mdy according to len_a setting
else -- all other dates
new_date = reformatter (param_val.val, pattern_idx, format, len_p, param_val.isHijri);
end
if new_date then -- set when date was reformatted
date_parameters_list[param_name].val = new_date; -- update date in date list
result = true; -- and announce that changes have been made
break;
end
end -- if
end -- for
end -- if
end -- if
end -- for
return result; -- declare boolean result and done
end
--[[--------------------------< D A T E _ H Y P H E N _ T O _ D A S H >----------------------------------------
Loops through the list of date-holding parameters and converts any hyphen to an ndash. Not called if the cs1|2
template has any date errors.
Modifies the date_parameters_list and returns true if hyphens are replaced, else returns false.
]]
local function date_hyphen_to_dash (date_parameters_list)
local result = false;
local n;
for param_name, param_val in pairs(date_parameters_list) do -- for each date-holding parameter in the list
if is_set (param_val.val) and
not mw.ustring.match (param_val.val, patterns_t.ymd[1]) then -- for those that are not ymd dates (ustring because here digits may not be Western)
param_val.val, n = param_val.val:gsub ('%-', '–'); -- replace any hyphen with ndash
if 0 ~= n then
date_parameters_list[param_name].val = param_val.val; -- update the list
result = true;
end
end
end
return result; -- so we know if any hyphens were replaced
end
--[[-------------------------< D A T E _ N A M E _ X L A T E >------------------------------------------------
Attempts to translate English date names to local-language date names using names supplied by MediaWiki's
date parser function. This is simple name-for-name replacement and may not work for all languages.
if xlat_dig is true, this function will also translate Western (English) digits to the local language's digits.
This will also translate ymd dates.
]]
local function date_name_xlate (date_parameters_list, xlt_dig)
local xlate;
local mode; -- long or short month names
local modified = false;
local date;
local sources_t = {
{cfg.date_names.en.long, cfg.date_names.inv_local_long}, -- for translating long English month names to long local month names
{cfg.date_names.en.short, cfg.date_names.inv_local_short}, -- short month names
{cfg.date_names.en.quarter, cfg.date_names.inv_local_quarter}, -- quarter date names
{cfg.date_names.en.season, cfg.date_names.inv_local_season}, -- season date nam
{cfg.date_names.en.named, cfg.date_names.inv_local_named}, -- named dates
}
local function is_xlateable (month) -- local function to get local date name that replaces existing English-language date name
for _, date_names_t in ipairs (sources_t) do -- for each sequence table in date_names_t
if date_names_t[1][month] then -- if date name is English month (long or short), quarter, season or named and
if date_names_t[2][date_names_t[1][month]] then -- if there is a matching local date name
return date_names_t[2][date_names_t[1][month]]; -- return the local date name
end
end
end
end
for param_name, param_val in pairs(date_parameters_list) do -- for each date-holding parameter in the list
if is_set(param_val.val) then -- if the parameter has a value
date = param_val.val;
for month in mw.ustring.gmatch (date, '[%a ]+') do -- iterate through all date names in the date (single date or date range)
month = mw.text.trim (month); -- this because quarterly dates contain whitespace
xlate = is_xlateable (month); -- get translate <month>; returns translation or nil
if xlate then
date = mw.ustring.gsub (date, month, xlate); -- replace the English with the translation
date_parameters_list[param_name].val = date; -- save the translated date
modified = true;
end
end
if xlt_dig then -- shall we also translate digits?
date = date:gsub ('%d', cfg.date_names.xlate_digits); -- translate digits from Western to 'local digits'
date_parameters_list[param_name].val = date; -- save the translated date
modified = true;
end
end
end
return modified;
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local imported functions table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)
add_prop_cat = utilities_page_ptr.add_prop_cat ; -- import functions from selected Module:Citation/CS1/Utilities module
is_set = utilities_page_ptr.is_set;
in_array = utilities_page_ptr.in_array;
set_message = utilities_page_ptr.set_message;
substitute = utilities_page_ptr.substitute;
wrap_style = utilities_page_ptr.wrap_style;
cfg = cfg_table_ptr; -- import tables from selected Module:Citation/CS1/Configuration
end
--[[--------------------------< A R C H I V E _ D A T E _ C H E C K >------------------------------------------
Compare value in |archive-date= with the timestamp in Wayback machine urls. Emits an error message with suggested
date from the |archive-url= timestamp in an appropriate format when the value in |archive-date= does not match
the timestamp.
this function never called when any date in a cs1|2 template has errors
error message suggests new |archive-date= value in an appropriate format specified by <df>. <df> is either
|df= or cfg.global_df in that order. If <df> is nil, suggested date has format from |archive-date=. There is
a caveat: when |df=dmy or |df=mdy, the reformatter leaves |access-date= and |archive-date= formats as they are.
The error message suggested date is passed to the formatter as YYYY-MM-DD so when |df=dmy or |df=mdy, the format
is not changed.
]]
local function archive_date_check (archive_date, archive_url_timestamp, df)
local archive_date_format = 'dmy-y'; -- holds the date format of date in |archive-date; default to ymd; 'dmy' used here to spoof reformat_dates()
for _, v_t in ipairs ({{'dMy', 'dmy-all'}, {'Mdy', 'mdy-all'}}) do -- is |archive-date= format dmy or mdy?
if archive_date:match (patterns_t[v_t[1]][1]) then -- does the pattern match?
archive_date_format = cfg.keywords_xlate[v_t[2]]; -- get appropriate |df= supported keyword from the i18n translator table
break;
end
end
local dates_t = {};
dates_t['archive-date'] = {val=archive_date, name=''}; -- setup to call reformat_dates(); never called when errors so <name> unset as not needed
reformat_dates (dates_t, 'dmy-y'); -- reformat |archive-date= to ymd; 'dmy' used here to spoof reformat_dates()
local archive_url_date = archive_url_timestamp:gsub ('(%d%d%d%d)(%d%d)(%d%d)%d*', '%1-%2-%3'); -- make ymd format date from timestamp
if dates_t['archive-date'].val == archive_url_date then -- are the two dates the same
return; -- yes, done
else
dates_t['archive-date'] = {val=archive_url_date, name=''}; -- setup to call reformat_dates() with the timestamp date
reformat_dates (dates_t, df or archive_date_format); -- reformat timestamp to format specified by <df> or format used in |archive-date=
archive_url_date = dates_t['archive-date'].val;
set_message ('err_archive_date_url_ts_mismatch', archive_url_date); -- emit an error message
end
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return { -- return exported functions
archive_date_check = archive_date_check,
date_hyphen_to_dash = date_hyphen_to_dash,
date_name_xlate = date_name_xlate,
dates = dates,
is_valid_date = is_valid_date,
reformat_dates = reformat_dates,
set_selected_modules = set_selected_modules,
year_check = year_check,
year_date_check = year_date_check,
hijri_and_gregorian_corresponded = hijri_and_gregorian_corresponded,
}
mqm21z3v22fsp1rj59dweobldza96tb
وحدة:Citation/CS1/COinS
828
40424
275390
87622
2026-09-15T08:56:43Z
حبيشان
29714
استيراد من ar.wiktionary.org
275390
Scribunto
text/plain
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local has_accept_as_written, is_set, in_array, remove_wiki_link, strip_apostrophe_markup; -- functions in Module:Citation/CS1/Utilities
local cfg; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
--[[--------------------------< M A K E _ C O I N S _ T I T L E >----------------------------------------------
Makes a title for COinS from Title and / or ScriptTitle (or any other name-script pairs)
Apostrophe markup (bold, italics) is stripped from each value so that the COinS metadata isn't corrupted with strings
of %27%27...
]]
local function make_coins_title (title, script)
title = has_accept_as_written (title);
if is_set (title) then
title = strip_apostrophe_markup (title); -- strip any apostrophe markup
else
title = ''; -- if not set, make sure title is an empty string
end
if is_set (script) then
script = script:gsub ('^%l%l%s*:%s*', ''); -- remove language prefix if present (script value may now be empty string)
script = strip_apostrophe_markup (script); -- strip any apostrophe markup
else
script = ''; -- if not set, make sure script is an empty string
end
if is_set (title) and is_set (script) then
script = ' ' .. script; -- add a space before we concatenate
end
return title .. script; -- return the concatenation
end
--[[--------------------------< E S C A P E _ L U A _ M A G I C _ C H A R S >----------------------------------
Returns a string where all of Lua's magic characters have been escaped. This is important because functions like
string.gsub() treat their pattern and replace strings as patterns, not literal strings.
]]
local function escape_lua_magic_chars (argument)
argument = argument:gsub("%%", "%%%%"); -- replace % with %%
argument = argument:gsub("([%^%$%(%)%.%[%]%*%+%-%?])", "%%%1"); -- replace all other Lua magic pattern characters
return argument;
end
--[[--------------------------< G E T _ C O I N S _ P A G E S >------------------------------------------------
Extract page numbers from external wikilinks in any of the |page=, |pages=, or |at= parameters for use in COinS.
]]
local function get_coins_pages (pages)
local pattern;
if not is_set (pages) then return pages; end -- if no page numbers then we're done
while true do
pattern = pages:match("%[(%w*:?//[^ ]+%s+)[%w%d].*%]"); -- pattern is the opening bracket, the URL and following space(s): "[url "
if nil == pattern then break; end -- no more URLs
pattern = escape_lua_magic_chars (pattern); -- pattern is not a literal string; escape Lua's magic pattern characters
pages = pages:gsub(pattern, ""); -- remove as many instances of pattern as possible
end
pages = pages:gsub("[%[%]]", ""); -- remove the brackets
pages = pages:gsub("–", "-" ); -- replace endashes with hyphens
pages = pages:gsub("&%w+;", "-" ); -- and replace HTML entities (– etc.) with hyphens; do we need to replace numerical entities like   and the like?
return pages;
end
--[=[-------------------------< C O I N S _ R E P L A C E _ M A T H _ S T R I P M A R K E R >------------------
There are three options for math markup rendering that depend on the editor's math preference settings. These
settings are at [[Special:Preferences#mw-prefsection-rendering]] and are
PNG images
TeX source
MathML with SVG or PNG fallback
All three are heavy with HTML and CSS which doesn't belong in the metadata.
Without this function, the metadata saved in the raw wikitext contained the rendering determined by the settings
of the last editor to save the page.
This function gets the rendered form of an equation according to the editor's preference before the page is saved. It
then searches the rendering for the text equivalent of the rendered equation and replaces the rendering with that so
that the page is saved without extraneous HTML/CSS markup and with a reasonably readable text form of the equation.
When a replacement is made, this function returns true and the value with replacement; otherwise false and the initial
value. To replace multipe equations it is necessary to call this function from within a loop.
]=]
local function coins_replace_math_stripmarker (value)
local stripmarker = cfg.stripmarkers['math'];
local rendering = value:match (stripmarker); -- is there a math stripmarker
if not rendering then -- when value doesn't have a math stripmarker, abandon this test
return false, value;
end
rendering = mw.text.unstripNoWiki (rendering); -- convert stripmarker into rendered value (or nil? ''? when math render error)
if rendering:match ('alt="[^"]+"') then -- if PNG math option
rendering = rendering:match ('alt="([^"]+)"'); -- extract just the math text
elseif rendering:match ('$%s+.+%s+%$') then -- if TeX math option; $ is legit character that is escapes as \$
rendering = rendering:match ('$%s+(.+)%s+%$') -- extract just the math text
elseif rendering:match ('<annotation[^>]+>.+</annotation>') then -- if MathML math option
rendering = rendering:match ('<annotation[^>]+>(.+)</annotation>') -- extract just the math text
else
return false, value; -- had math stripmarker but not one of the three defined forms
end
return true, value:gsub (stripmarker, rendering, 1);
end
--[[--------------------------< C O I N S _ C L E A N U P >----------------------------------------------------
Cleanup parameter values for the metadata by removing or replacing invisible characters and certain HTML entities.
2015-12-10: there is a bug in mw.text.unstripNoWiki (). It replaces math stripmarkers with the appropriate content
when it shouldn't. See https://phabricator.wikimedia.org/T121085 and Wikipedia_talk:Lua#stripmarkers_and_mw.text.unstripNoWiki.28.29
TODO: move the replacement patterns and replacement values into a table in /Configuration similar to the invisible
characters table?
]]
local function coins_cleanup (value)
local replaced = true; -- default state to get the do loop running
while replaced do -- loop until all math stripmarkers replaced
replaced, value = coins_replace_math_stripmarker (value); -- replace math stripmarker with text representation of the equation
end
value = value:gsub (cfg.stripmarkers['math'], "MATH RENDER ERROR"); -- one or more couldn't be replaced; insert vague error message
value = mw.text.unstripNoWiki (value); -- replace nowiki stripmarkers with their content
value = value:gsub ('<span class="nowrap" style="padding%-left:0%.1em;">'(s?)</span>', "'%1"); -- replace {{'}} or {{'s}} with simple apostrophe or apostrophe-s
value = value:gsub (' ', ' '); -- replace entity with plain space
value = value:gsub ('\226\128\138', ' '); -- replace hair space with plain space
if not mw.ustring.find (value, cfg.indic_script) then -- don't remove zero-width joiner characters from indic script
value = value:gsub ('‍', ''); -- remove ‍ entities
value = mw.ustring.gsub (value, '[\226\128\141\226\128\139\194\173]', ''); -- remove zero-width joiner, zero-width space, soft hyphen
end
value = value:gsub ('[\009\010\013 ]+', ' '); -- replace horizontal tab, line feed, carriage return with plain space
return value;
end
--[[--------------------------< C O I N S >--------------------------------------------------------------------
COinS metadata (see <http://ocoins.info/>) allows automated tools to parse the citation information.
]]
local function COinS(data, class)
if 'table' ~= type(data) or nil == next(data) then
return '';
end
for k, v in pairs (data) do -- spin through all of the metadata parameter values
if 'ID_list' ~= k and 'Authors' ~= k then -- except the ID_list and Author tables (author nowiki stripmarker done when Author table processed)
data[k] = coins_cleanup (v);
end
end
local ctx_ver = "Z39.88-2004";
-- treat table strictly as an array with only set values.
local OCinSoutput = setmetatable( {}, {
__newindex = function(self, key, value)
if is_set(value) then
rawset( self, #self+1, table.concat{ key, '=', mw.uri.encode( remove_wiki_link( value ) ) } );
end
end
});
if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn', 'journal', 'news', 'magazine'}) or
(in_array (class, {'conference', 'interview', 'map', 'press release', 'web'}) and is_set(data.Periodical)) or
('citation' == class and is_set(data.Periodical) and not is_set (data.Encyclopedia)) then
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:journal"; -- journal metadata identifier
if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) then -- set genre according to the type of citation template we are rendering
OCinSoutput["rft.genre"] = "preprint"; -- cite arxiv, cite biorxiv, cite citeseerx, cite medrxiv, cite ssrn
elseif 'conference' == class then
OCinSoutput["rft.genre"] = "conference"; -- cite conference (when Periodical set)
elseif 'web' == class then
OCinSoutput["rft.genre"] = "unknown"; -- cite web (when Periodical set)
else
OCinSoutput["rft.genre"] = "article"; -- journal and other 'periodical' articles
end
OCinSoutput["rft.jtitle"] = data.Periodical; -- journal only
OCinSoutput["rft.atitle"] = data.Title; -- 'periodical' article titles
-- these used only for periodicals
OCinSoutput["rft.ssn"] = data.Season; -- keywords: winter, spring, summer, fall
OCinSoutput["rft.quarter"] = data.Quarter; -- single digits 1->first quarter, etc.
OCinSoutput["rft.chron"] = data.Chron; -- free-form date components
OCinSoutput["rft.volume"] = data.Volume; -- does not apply to books
OCinSoutput["rft.issue"] = data.Issue;
OCinSoutput['rft.artnum'] = data.ArticleNumber; -- {{cite journal}} only
OCinSoutput["rft.pages"] = data.Pages; -- also used in book metadata
elseif 'thesis' ~= class then -- all others except cite thesis are treated as 'book' metadata; genre distinguishes
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:book"; -- book metadata identifier
if 'report' == class or 'techreport' == class then -- cite report and cite techreport
OCinSoutput["rft.genre"] = "report";
elseif 'conference' == class then -- cite conference when Periodical not set
OCinSoutput["rft.genre"] = "conference";
OCinSoutput["rft.atitle"] = data.Chapter; -- conference paper as chapter in proceedings (book)
elseif in_array (class, {'book', 'citation', 'encyclopaedia', 'interview', 'map'}) then
if is_set (data.Chapter) then
OCinSoutput["rft.genre"] = "bookitem";
OCinSoutput["rft.atitle"] = data.Chapter; -- book chapter, encyclopedia article, interview in a book, or map title
else
if 'map' == class or 'interview' == class then
OCinSoutput["rft.genre"] = 'unknown'; -- standalone map or interview
else
OCinSoutput["rft.genre"] = 'book'; -- book and encyclopedia
end
end
else -- {'audio-visual', 'AV-media-notes', 'DVD-notes', 'episode', 'interview', 'mailinglist', 'map', 'newsgroup', 'podcast', 'press release', 'serial', 'sign', 'speech', 'web'}
OCinSoutput["rft.genre"] = "unknown";
end
OCinSoutput["rft.btitle"] = data.Title; -- book only
OCinSoutput["rft.place"] = data.PublicationPlace; -- book only
OCinSoutput["rft.series"] = data.Series; -- book only
OCinSoutput["rft.pages"] = data.Pages; -- book, journal
OCinSoutput["rft.edition"] = data.Edition; -- book only
OCinSoutput["rft.pub"] = data.PublisherName; -- book and dissertation
else -- cite thesis
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:dissertation"; -- dissertation metadata identifier
OCinSoutput["rft.title"] = data.Title; -- dissertation (also patent but that is not yet supported)
OCinSoutput["rft.degree"] = data.Degree; -- dissertation only
OCinSoutput['rft.inst'] = data.PublisherName; -- book and dissertation
end
-- NB. Not currently supported are "info:ofi/fmt:kev:mtx:patent", "info:ofi/fmt:kev:mtx:dc", "info:ofi/fmt:kev:mtx:sch_svc", "info:ofi/fmt:kev:mtx:ctx"
-- and now common parameters (as much as possible)
OCinSoutput["rft.date"] = data.Date; -- book, journal, dissertation
for k, v in pairs( data.ID_list ) do -- what to do about these? For now assume that they are common to all?
if k == 'ISBN' then v = v:gsub( "[^-0-9X]", "" ); end
local id = cfg.id_handlers[k].COinS;
if string.sub( id or "", 1, 4 ) == 'info' then -- for ids that are in the info:registry
OCinSoutput["rft_id"] = table.concat{ id, "/", v };
elseif string.sub (id or "", 1, 3 ) == 'rft' then -- for isbn, issn, eissn, etc. that have defined COinS keywords
OCinSoutput[ id ] = v;
elseif 'url' == id then -- for urls that are assembled in ~/Identifiers; |asin= and |ol=
OCinSoutput["rft_id"] = table.concat ({data.ID_list[k], "#id-name=", cfg.id_handlers[k].label});
elseif id then -- when cfg.id_handlers[k].COinS is not nil so urls created here
OCinSoutput["rft_id"] = table.concat{ cfg.id_handlers[k].prefix, v, cfg.id_handlers[k].suffix or '', "#id-name=", cfg.id_handlers[k].label }; -- others; provide a URL and indicate identifier name as #fragment (human-readable, but transparent to browsers)
end
end
local last, first;
for k, v in ipairs( data.Authors ) do
last, first = coins_cleanup (v.last), coins_cleanup (v.first or ''); -- replace any nowiki stripmarkers, non-printing or invisible characters
if k == 1 then -- for the first author name only
if is_set(last) and is_set(first) then -- set these COinS values if |first= and |last= specify the first author name
OCinSoutput["rft.aulast"] = last; -- book, journal, dissertation
OCinSoutput["rft.aufirst"] = first; -- book, journal, dissertation
elseif is_set(last) then
OCinSoutput["rft.au"] = last; -- book, journal, dissertation -- otherwise use this form for the first name
end
else -- for all other authors
if is_set(last) and is_set(first) then
OCinSoutput["rft.au"] = table.concat{ last, ", ", first }; -- book, journal, dissertation
elseif is_set(last) then
OCinSoutput["rft.au"] = last; -- book, journal, dissertation
end
-- TODO: At present we do not report "et al.". Add anything special if this condition applies?
end
end
OCinSoutput.rft_id = data.URL;
OCinSoutput.rfr_id = table.concat{ "info:sid/", mw.site.server:match( "[^/]*$" ), ":", data.RawPage };
-- TODO: Add optional extra info:
-- rfr_dat=#REVISION<version> (referrer private data)
-- ctx_id=<data.RawPage>#<ref> (identifier for the context object)
-- ctx_tim=<ts> (timestamp in format yyyy-mm-ddThh:mm:ssTZD or yyyy-mm-dd)
-- ctx_enc=info:ofi/enc:UTF-8 (character encoding)
OCinSoutput = setmetatable( OCinSoutput, nil );
-- sort with version string always first, and combine.
-- table.sort( OCinSoutput );
table.insert( OCinSoutput, 1, "ctx_ver=" .. ctx_ver ); -- such as "Z39.88-2004"
return table.concat(OCinSoutput, "&");
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)
cfg = cfg_table_ptr;
has_accept_as_written = utilities_page_ptr.has_accept_as_written; -- import functions from selected Module:Citation/CS1/Utilities module
is_set = utilities_page_ptr.is_set;
in_array = utilities_page_ptr.in_array;
remove_wiki_link = utilities_page_ptr.remove_wiki_link;
strip_apostrophe_markup = utilities_page_ptr.strip_apostrophe_markup;
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
make_coins_title = make_coins_title,
get_coins_pages = get_coins_pages,
COinS = COinS,
set_selected_modules = set_selected_modules,
}
9bz6mvz0mzk8yv0c75eqy8rm41au7y9
وحدة:Lua banner
828
44626
275495
241762
2026-09-15T10:43:29Z
حبيشان
29714
استيراد من ar.wiktionary.org
275495
Scribunto
text/plain
-- This module implements the {{lua}} template.
local yesno = require('وحدة:Yesno')
local mList = require('وحدة:List')
local mTableTools = require('وحدة:TableTools')
local mMessageBox = require('وحدة:Message box')
local p = {}
function p.main(frame)
local origArgs = frame:getParent().args
local args = {}
for k, v in pairs(origArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
args[k] = v
end
end
return p._main(args)
end
function p._main(args)
local modules = mTableTools.compressSparseArray(args)
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
if args.nocat and args.nocat ~= '' then
return ""
end
if trackingCategories and trackingCategories ~= "" then
trackingCategories = mw.getCurrentFrame():preprocess(
'{{#تبديل:{{SUBPAGENAME}}|ملعب|ملعب2|doc|مختبر|نسخة|تجربة|شرح=|#default=' .. trackingCategories .. "}}")
end
return box .. (trackingCategories or '')
end
function p.renderBox(modules)
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">خطأ: لم تذكر أي وحدة</strong>'
else
local moduleLinks = {}
for i, module in ipairs(modules) do
moduleLinks[i] = string.format('[[:%s]]', module)
local maybeSandbox = mw.title.new(module .. '/ملعب')
if maybeSandbox and maybeSandbox.exists then
moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|ملعب]])', maybeSandbox.fullText)
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local title = mw.title.getCurrentTitle()
if title.subpageText == "شرح" then
title = title.basePageTitle
end
if title.contentModel == "Scribunto" then
boxArgs.text = 'هذه الوحدة تعتمد على الوحدات الأخرى التالية:\n' .. moduleList
else
boxArgs.text = 'هذا القالب يستعمل [[w:ويكيبيديا:لوا|لوا]]:\n' .. moduleList
end
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[ملف:Lua-Logo.svg|30px|alt=|link=]]'
return mMessageBox.main('mbox', boxArgs)
end
function p.renderTrackingCategories(args, modules, titleObj)
if yesno(args.nocat) then
return ''
end
local cats = {}
-- Error category
if #modules < 1 then
cats[#cats + 1] = 'قوالب لوا مع أخطاء'
end
local categories = {
['Module:String'] = 'قوالب تستند على وحدة String',
['Module:Math'] = 'قوالب تستند على وحدة Math Lua',
['Module:BaseConvert'] = 'قوالب تستند على وحدة BaseConvert Lua',
['Module:Citation'] = 'قوالب استشهاد تستند على وحدة لوا',
['Module:Citation/CS1'] = 'قوالب استشهاد تستند على وحدة لوا',
['وحدة:تحويلات بلدان'] = 'قوالب تستخدم وحدة تحويلات بلدان',
['وحدة:Flagg'] = 'قوالب تستخدم وحدة:Flagg',
['Module:Flagg'] = 'قوالب تستخدم وحدة:Flagg'
}
-- Lua templates category
titleObj = titleObj or mw.title.getCurrentTitle()
local subpageBlacklist = {
doc = true,
sandbox = true,
sandbox2 = true,
testcases = true
}
if not subpageBlacklist[titleObj.subpageText] then
local protCatName
if titleObj.namespace == 10 then
local category = args.category
if not category and mw.ustring.find(modules[1], "وحدة:ب.ص.م", 1, true) then
category = "قوالب وحدة:ب.ص.م"
end
if not category and mw.ustring.find(modules[1], "Flagg", 1, true) then
category = 'قوالب تستخدم وحدة:Flagg'
end
if not category then
category = modules[1] and categories[modules[1]]
category = category or 'قوالب تستند على وحدات لوا'
end
cats[#cats + 1] = category
protCatName = "قوالب تستخدم وحدات لوا غير محمية"
elseif titleObj.namespace == 828 then
protCatName = "وحدات تعتمد على وحدات غير محمية"
end
if not args.noprotcat and protCatName then
local protLevels = {
autoconfirmed = 1,
extendedconfirmed = 2,
templateeditor = 3,
sysop = 4
}
local currentProt
if titleObj.id ~= 0 then
-- id is 0 (page does not exist) if am previewing before creating a template.
currentProt = titleObj.protectionLevels["edit"][1]
end
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, module in ipairs(modules) do
if module ~= "WP:libraryUtil" then
local moduleTitle = mw.title.new(module)
local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"][1]
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt and currentProt then
if moduleProt < currentProt then
cats[#cats + 1] = protCatName
break
end
end
end
end
end
end
for i, cat in ipairs(cats) do
cats[i] = string.format('[[تصنيف:%s]]', cat)
end
return table.concat(cats)
end
return p
fzt9i9iodsssgn9sz7cmx3vvsscy69d
275505
275495
2026-09-15T10:49:56Z
حبيشان
29714
استيراد من ar.wikipedia.org
275505
Scribunto
text/plain
-- This module implements the {{lua}} template.
local yesno = require('وحدة:Yesno')
local mList = require('وحدة:List')
local mTableTools = require('وحدة:TableTools')
local mMessageBox = require('وحدة:Message box')
local p = {}
function p.main(frame)
local origArgs = frame:getParent().args
local args = {}
for k, v in pairs(origArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
args[k] = v
end
end
return p._main(args)
end
function p._main(args)
local modules = mTableTools.compressSparseArray(args)
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
if args.nocat and args.nocat ~= '' then
return ""
end
if trackingCategories and trackingCategories ~= "" then
trackingCategories = mw.getCurrentFrame():preprocess(
'{{#تبديل:{{SUBPAGENAME}}|ملعب|ملعب2|doc|مختبر|نسخة|تجربة|شرح=|#default=' .. trackingCategories .. "}}")
end
return box .. (trackingCategories or '')
end
function p.renderBox(modules)
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">خطأ: لم تذكر أي وحدة</strong>'
else
local moduleLinks = {}
for i, module in ipairs(modules) do
moduleLinks[i] = string.format('[[:%s]]', module)
local maybeSandbox = mw.title.new(module .. '/ملعب')
if maybeSandbox and maybeSandbox.exists then
moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|ملعب]])', maybeSandbox.fullText)
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local title = mw.title.getCurrentTitle()
if title.subpageText == "شرح" then
title = title.basePageTitle
end
if title.contentModel == "Scribunto" then
boxArgs.text = 'هذه الوحدة تعتمد على الوحدات الأخرى التالية:\n' .. moduleList
else
boxArgs.text = 'هذا القالب يستعمل [[ ويكيبيديا:لوا|لوا]]:\n' .. moduleList
end
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[ملف:Lua-Logo.svg|30px|alt=|link=]]'
return mMessageBox.main('mbox', boxArgs)
end
function p.renderTrackingCategories(args, modules, titleObj)
if yesno(args.nocat) then
return ''
end
local cats = {}
-- Error category
if #modules < 1 then
cats[#cats + 1] = 'قوالب لوا مع أخطاء'
end
local categories = {
['Module:String'] = 'قوالب تستند على وحدة String',
['Module:Math'] = 'قوالب تستند على وحدة Math Lua',
['Module:BaseConvert'] = 'قوالب تستند على وحدة BaseConvert Lua',
['Module:Citation'] = 'قوالب استشهاد تستند على وحدة لوا',
['Module:Citation/CS1'] = 'قوالب استشهاد تستند على وحدة لوا',
['وحدة:تحويلات بلدان'] = 'قوالب تستخدم وحدة تحويلات بلدان',
['وحدة:Flagg'] = 'قوالب تستخدم وحدة:Flagg',
['Module:Flagg'] = 'قوالب تستخدم وحدة:Flagg'
}
-- Lua templates category
titleObj = titleObj or mw.title.getCurrentTitle()
local subpageBlacklist = {
doc = true,
sandbox = true,
sandbox2 = true,
testcases = true
}
if not subpageBlacklist[titleObj.subpageText] then
local protCatName
if titleObj.namespace == 10 then
local category = args.category
if not category and mw.ustring.find(modules[1], "وحدة:ب.ص.م", 1, true) then
category = "قوالب وحدة:ب.ص.م"
end
if not category and mw.ustring.find(modules[1], "Flagg", 1, true) then
category = 'قوالب تستخدم وحدة:Flagg'
end
if not category then
category = modules[1] and categories[modules[1]]
category = category or 'قوالب تستند على وحدات لوا'
end
cats[#cats + 1] = category
protCatName = "قوالب تستخدم وحدات لوا غير محمية"
elseif titleObj.namespace == 828 then
protCatName = "وحدات تعتمد على وحدات غير محمية"
end
if not args.noprotcat and protCatName then
local protLevels = {
autoconfirmed = 1,
extendedconfirmed = 2,
templateeditor = 3,
sysop = 4
}
local currentProt
if titleObj.id ~= 0 then
-- id is 0 (page does not exist) if am previewing before creating a template.
currentProt = titleObj.protectionLevels["edit"][1]
end
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, module in ipairs(modules) do
if module ~= "WP:libraryUtil" then
local moduleTitle = mw.title.new(module)
local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"][1]
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt and currentProt then
if moduleProt < currentProt then
cats[#cats + 1] = protCatName
break
end
end
end
end
end
end
for i, cat in ipairs(cats) do
cats[i] = string.format('[[تصنيف:%s]]', cat)
end
return table.concat(cats)
end
return p
n5ma9prr3nr6n8vlcob6h80uklhuy5v
وحدة:Yesno/شرح
828
58119
275452
248713
2026-09-15T10:05:28Z
حبيشان
29714
استيراد من ar.wiktionary.org
275452
wikitext
text/x-wiki
{{رسالة استدعاء من لوا فقط}}
io69yw7jlz2cnlf2lnwzv3oi8pu9a6x
قالب:رجال أعمال
10
58755
275509
251297
2026-09-15T10:53:34Z
Gg4011515
34743
تعديل الاسم الصحيح
275509
wikitext
text/x-wiki
{{شريط
|اسم = رجال أعمال
|عنوان = أهم رجال الأعمال
|وضع = {{{حالة|collapsed}}}
|نمط_قائمة = text-align:right;
|نمط_مجموعة = text-align:right
|مجموعة1= رجال أعمال
|كلاس_قائمة=hlist
|قائمة1=
* [[آغا خان الرابع]]
* [[ألبرت هابرد]]
* [[أندرو كارنجي]]
* [[أوبرا وينفري]]
* [[أوليفر بوسان]]
* [[إيلون ماسك]]
* [[بنيامين بروستر (رجل أعمال)]]
* [[توماس إديسون]]
* [[جيمي ويلز]]
* [[دونالد ترامب]]
* [[روبرت مردوخ]]
* [[ستيف جوبز]]
* [[عبد الناصر عبد الفتاح]]
* [[فرانك بورمان]]
* [[محمد الفايد]]
* [[ميغ ويتمان]]
* [[هنري فورد]]
* [[هيربرت هاينر]]
* [[وارن بافت]]
* [[ياسر الشنتف]]
}}
<noinclude>
[[تصنيف:قوالب تصفح]]
</noinclude>
lugaeyc61t8ca7mzrt76bep93p3iz0f
وحدة:توثيق
828
59017
275385
252199
2026-09-15T08:54:18Z
حبيشان
29714
استيراد من ar.wiktionary.org
275385
Scribunto
text/plain
-- This module implements {{توثيق}}.
-- Get required modules.
local getArgs = require('Module:Arguments').getArgs
-- Get the config table.
local cfg = mw.loadData('وحدة:توثيق/ضبط')
local p = {}
-- Often-used functions.
local ugsub = mw.ustring.gsub
local format = mw.ustring.format
----------------------------------------------------------------------------
-- Helper functions
--
-- These are defined as local functions, but are made available in the p
-- table for testing purposes.
----------------------------------------------------------------------------
local function message(cfgKey, valArray, expectType)
--[[
-- Gets a message from the cfg table and formats it if appropriate.
-- The function raises an error if the value from the cfg table is not
-- of the type expectType. The default type for expectType is 'string'.
-- If the table valArray is present, strings such as $1, $2 etc. in the
-- message are substituted with values from the table keys [1], [2] etc.
-- For example, if the message "foo-message" had the value 'Foo $2 bar $1.',
-- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz."
--]]
local msg = cfg[cfgKey]
expectType = expectType or 'string'
if type(msg) ~= expectType then
error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2)
end
if not valArray then
return msg
end
local function getMessageVal(match)
match = tonumber(match)
return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4)
end
return ugsub(msg, '$([1-9][0-9]*)', getMessageVal)
end
p.message = message
local function makeWikilink(page, display)
if display then
return format('[[%s|%s]]', page, display)
else
return format('[[%s]]', page)
end
end
p.makeWikilink = makeWikilink
local function makeCategoryLink(cat, sort)
local catns = mw.site.namespaces[14].name
return makeWikilink(catns .. ':' .. cat, sort)
end
p.makeCategoryLink = makeCategoryLink
local function makeUrlLink(url, display)
return format('[%s %s]', url, display)
end
p.makeUrlLink = makeUrlLink
local function makeToolbar(...)
local ret = {}
local lim = select('#', ...)
if lim < 1 then
return nil
end
for i = 1, lim do
ret[#ret + 1] = select(i, ...)
end
-- 'documentation-toolbar'
return format(
'<span class="%s">(%s)</span>',
message('toolbar-class'),
table.concat(ret, ' | ')
)
end
p.makeToolbar = makeToolbar
----------------------------------------------------------------------------
-- Argument processing
----------------------------------------------------------------------------
local function makeInvokeFunc(funcName)
return function (frame)
local args = getArgs(frame, {
valueFunc = function (key, value)
if type(value) == 'string' then
value = value:match('^%s*(.-)%s*$') -- Remove whitespace.
if key == 'heading' or value ~= '' then
return value
else
return nil
end
else
return value
end
end
})
return p[funcName](args)
end
end
----------------------------------------------------------------------------
-- Entry points
----------------------------------------------------------------------------
function p.nonexistent(frame)
if mw.title.getCurrentTitle().subpageText == 'مختبر' then
return frame:expandTemplate{title = 'ملاحظة مختبر الوحدة'}
else
return p.main(frame)
end
end
p.main = makeInvokeFunc('_main')
function p._main(args)
--[[
-- This function defines logic flow for the module.
-- @args - table of arguments passed by the user
--]]
local env = p.getEnvironment(args)
local root = mw.html.create()
root
:wikitext(p._getModuleWikitext(args, env))
:wikitext(p.protectionTemplate(env))
:wikitext(p.sandboxNotice(args, env))
:tag('div')
-- 'documentation-container'
:addClass(message('container'))
:attr('role', 'complementary')
:attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil)
:attr('aria-label', args.heading == '' and 'Documentation' or nil)
:newline()
:tag('div')
-- 'documentation'
:addClass(message('main-div-classes'))
:newline()
:wikitext(p._startBox(args, env))
:wikitext(p._content(args, env))
:tag('div')
-- 'documentation-clear'
:addClass(message('clear'))
:done()
:newline()
:done()
:wikitext(p._endBox(args, env))
:done()
:wikitext(p.addTrackingCategories(env))
-- 'Module:Documentation/styles.css'
return mw.getCurrentFrame():extensionTag (
'templatestyles', '', {src=cfg['templatestyles']
}) .. tostring(root)
end
----------------------------------------------------------------------------
-- Environment settings
----------------------------------------------------------------------------
function p.getEnvironment(args)
--[[
-- Returns a table with information about the environment, including title
-- objects and other namespace- or path-related data.
-- @args - table of arguments passed by the user
--
-- Title objects include:
-- env.title - the page we are making documentation for (usually the current title)
-- env.templateTitle - the template (or module, file, etc.)
-- env.docTitle - the /doc subpage.
-- env.sandboxTitle - the /sandbox subpage.
-- env.testcasesTitle - the /testcases subpage.
--
-- Data includes:
-- env.protectionLevels - the protection levels table of the title object.
-- env.subjectSpace - the number of the title's subject namespace.
-- env.docSpace - the number of the namespace the title puts its documentation in.
-- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace.
-- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template.
--
-- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value
-- returned will be nil.
--]]
local env, envFuncs = {}, {}
-- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value
-- returned by that function is memoized in the env table so that we don't call any of the functions
-- more than once. (Nils won't be memoized.)
setmetatable(env, {
__index = function (t, key)
local envFunc = envFuncs[key]
if envFunc then
local success, val = pcall(envFunc)
if success then
env[key] = val -- Memoise the value.
return val
end
end
return nil
end
})
function envFuncs.title()
-- The title object for the current page, or a test page passed with args.page.
local title
local titleArg = args.page
if titleArg then
title = mw.title.new(titleArg)
else
title = mw.title.getCurrentTitle()
end
return title
end
function envFuncs.templateTitle()
--[[
-- The template (or module, etc.) title object.
-- Messages:
-- 'sandbox-subpage' --> 'sandbox'
-- 'testcases-subpage' --> 'testcases'
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local subpage = title.subpageText
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then
return mw.title.makeTitle(subjectSpace, title.baseText)
else
return mw.title.makeTitle(subjectSpace, title.text)
end
end
function envFuncs.docTitle()
--[[
-- Title object of the /doc subpage.
-- Messages:
-- 'doc-subpage' --> 'doc'
--]]
local title = env.title
local docname = args[1] -- User-specified doc page.
local docpage
if docname then
docpage = docname
else
docpage = env.docpageBase .. '/' .. message('doc-subpage')
end
return mw.title.new(docpage)
end
function envFuncs.sandboxTitle()
--[[
-- Title object for the /sandbox subpage.
-- Messages:
-- 'sandbox-subpage' --> 'sandbox'
--]]
return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage'))
end
function envFuncs.testcasesTitle()
--[[
-- Title object for the /testcases subpage.
-- Messages:
-- 'testcases-subpage' --> 'testcases'
--]]
return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage'))
end
function envFuncs.protectionLevels()
-- The protection levels table of the title object.
return env.title.protectionLevels
end
function envFuncs.subjectSpace()
-- The subject namespace number.
return mw.site.namespaces[env.title.namespace].subject.id
end
function envFuncs.docSpace()
-- The documentation namespace number. For most namespaces this is the
-- same as the subject namespace. However, pages in the Article, File,
-- MediaWiki or Category namespaces must have their /doc, /sandbox and
-- /testcases pages in talk space.
local subjectSpace = env.subjectSpace
if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then
return subjectSpace + 1
else
return subjectSpace
end
end
function envFuncs.docpageBase()
-- The base page of the /doc, /sandbox, and /testcases subpages.
-- For some namespaces this is the talk page, rather than the template page.
local templateTitle = env.templateTitle
local docSpace = env.docSpace
local docSpaceText = mw.site.namespaces[docSpace].name
-- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon.
return docSpaceText .. ':' .. templateTitle.text
end
function envFuncs.compareUrl()
-- Diff link between the sandbox and the main template using [[Special:ComparePages]].
local templateTitle = env.templateTitle
local sandboxTitle = env.sandboxTitle
if templateTitle.exists and sandboxTitle.exists then
local compareUrl = mw.uri.canonicalUrl(
'Special:ComparePages',
{ page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText}
)
return tostring(compareUrl)
else
return nil
end
end
return env
end
----------------------------------------------------------------------------
-- Auxiliary templates
----------------------------------------------------------------------------
p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext')
function p._getModuleWikitext(args, env)
local currentTitle = mw.title.getCurrentTitle()
if currentTitle.contentModel ~= 'Scribunto' then return end
pcall(require, currentTitle.prefixedText) -- if it fails, we don't care
local moduleWikitext = package.loaded["Module:Module wikitext"]
if moduleWikitext then
return moduleWikitext.main()
end
end
function p.sandboxNotice(args, env)
--[=[
-- Generates a sandbox notice for display above sandbox pages.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'sandbox-notice-image' --> '[[ملف:Sandbox.svg|50px|alt=|link=]]'
-- 'sandbox-notice-blurb' --> 'This is the $1 for $2.'
-- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).'
-- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page'
-- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page'
-- 'sandbox-notice-pagetype-other' --> 'sandbox page'
-- 'sandbox-notice-compare-link-display' --> 'diff'
-- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.'
-- 'sandbox-notice-testcases-link-display' --> 'test cases'
-- 'sandbox-category' --> 'Template sandboxes'
-- 'module-sandbox-category' --> 'Module sandboxes'
-- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace'
--]=]
local title = env.title
local sandboxTitle = env.sandboxTitle
local templateTitle = env.templateTitle
local subjectSpace = env.subjectSpace
if not (subjectSpace and title and sandboxTitle and templateTitle
and mw.title.equals(title, sandboxTitle)) then
return nil
end
-- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text".
local omargs = {}
omargs.image = message('sandbox-notice-image')
-- Get the text. We start with the opening blurb, which is something like
-- "This is the template sandbox for [[قالب:Foo]] (diff)."
local text = '__EXPECTUNUSEDTEMPLATE__'
local pagetype, sandboxCat
if subjectSpace == 10 then
pagetype = message('sandbox-notice-pagetype-template')
sandboxCat = message('sandbox-category')
elseif subjectSpace == 828 then
pagetype = message('sandbox-notice-pagetype-module')
sandboxCat = message('module-sandbox-category')
else
pagetype = message('sandbox-notice-pagetype-other')
sandboxCat = message('other-sandbox-category')
end
local templateLink = makeWikilink(templateTitle.prefixedText)
local compareUrl = env.compareUrl
if compareUrl then
local compareDisplay = message('sandbox-notice-compare-link-display')
local compareLink = makeUrlLink(compareUrl, compareDisplay)
text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink})
else
text = text .. message('sandbox-notice-blurb', {pagetype, templateLink})
end
-- Get the test cases page blurb if the page exists. This is something like
-- "See also the companion subpage for [[قالب:Foo/testcases|test cases]]."
local testcasesTitle = env.testcasesTitle
if testcasesTitle and testcasesTitle.exists then
if testcasesTitle.contentModel == "Scribunto" then
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display')
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)
text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink})
else
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)
text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink})
end
end
-- Add the sandbox to the sandbox category.
omargs.text = text .. makeCategoryLink(sandboxCat)
-- 'documentation-clear'
return '<div class="' .. message('clear') .. '"></div>'
.. require('Module:Message box').main('ombox', omargs)
end
function p.protectionTemplate(env)
-- Generates the padlock icon in the top right.
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'protection-template' --> 'pp-template'
-- 'protection-template-args' --> {docusage = 'yes'}
local protectionLevels = env.protectionLevels
if not protectionLevels then
return nil
end
local editProt = protectionLevels.edit and protectionLevels.edit[1]
local moveProt = protectionLevels.move and protectionLevels.move[1]
if editProt then
-- The page is edit-protected.
return require('Module:Protection banner')._main{
message('protection-reason-edit'), small = true
}
elseif moveProt and moveProt ~= 'autoconfirmed' then
-- The page is move-protected but not edit-protected. Exclude move
-- protection with the level "autoconfirmed", as this is equivalent to
-- no move protection at all.
return require('Module:Protection banner')._main{
action = 'move', small = true
}
else
return nil
end
end
----------------------------------------------------------------------------
-- Start box
----------------------------------------------------------------------------
p.startBox = makeInvokeFunc('_startBox')
function p._startBox(args, env)
--[[
-- This function generates the start box.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make
-- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox
-- which generate the box HTML.
--]]
env = env or p.getEnvironment(args)
local links
local content = args.content
if not content or args[1] then
-- No need to include the links if the documentation is on the template page itself.
local linksData = p.makeStartBoxLinksData(args, env)
if linksData then
links = p.renderStartBoxLinks(linksData)
end
end
-- Generate the start box html.
local data = p.makeStartBoxData(args, env, links)
if data then
return p.renderStartBox(data)
else
-- User specified no heading.
return nil
end
end
function p.makeStartBoxLinksData(args, env)
--[[
-- Does initial processing of data to make the [view] [edit] [history] [purge] links.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'view-link-display' --> 'view'
-- 'edit-link-display' --> 'edit'
-- 'history-link-display' --> 'history'
-- 'purge-link-display' --> 'purge'
-- 'module-preload' --> 'Template:Documentation/preload-module-doc'
-- 'docpage-preload' --> 'Template:Documentation/preload'
-- 'create-link-display' --> 'create'
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local docTitle = env.docTitle
if not title or not docTitle then
return nil
end
if docTitle.isRedirect then
docTitle = docTitle.redirectTarget
end
-- Create link if /doc doesn't exist.
local preload = args.preload
if not preload then
if subjectSpace == 828 then -- Module namespace
preload = message('module-preload')
else
preload = message('docpage-preload')
end
end
return {
title = title,
docTitle = docTitle,
-- View, display, edit, and purge links if /doc exists.
viewLinkDisplay = message('view-link-display'),
editLinkDisplay = message('edit-link-display'),
historyLinkDisplay = message('history-link-display'),
purgeLinkDisplay = message('purge-link-display'),
--#Added 2 lines
usageLinkDisplay = message('usage-link-display'),
TemplateUsage = message('template-usage'),
preload = preload,
createLinkDisplay = message('create-link-display')
}
end
function p.renderStartBoxLinks(data)
--[[
-- Generates the [view][edit][history][purge] or [create][purge] links from the data table.
-- @data - a table of data generated by p.makeStartBoxLinksData
--]]
local docTitle = data.docTitle
-- #Added block:This block added by Mr.Ibrahim to view [استخدامات] link
local ret
local title = data.title
local usageUrl = "https://templatecount.toolforge.org/index.php?lang=ar&namespace=" .. title.namespace .. "&name=" .. mw.uri.encode( title.text , 'PATH')
local usageLink = makeUrlLink(usageUrl , data.usageLinkDisplay)
local templates_use_module = mw.site.server .. "/w/index.php?title=خاص:بحث&fulltext=Search&ns10=1&ns8=1&search=insource%3A%2F(invoke%7Cاستدعاء)%3A+%2A" .. mw.uri.encode( title.text , 'PATH') .. "%5C%7C%2F"
local templates_use_moduleLink = makeUrlLink(templates_use_module , data.TemplateUsage)
-- yes, we do intend to purge the template page on which the documentation appears
local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay)
if docTitle.exists then
local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay)
local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay)
local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay)
-- #Edited line
return viewLink .. editLink .. historyLink .. purgeLink .. usageLink .. (title.namespace == 828 and (templates_use_moduleLink) or '')
else
local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay)
-- #Edited line
return createLink .. purgeLink .. usageLink .. (title.namespace == 828 and (templates_use_moduleLink) or '')
end
return ret
end
function p.makeStartBoxData(args, env, links)
--[=[
-- Does initial processing of data to pass to the start-box render function, p.renderStartBox.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error.
--
-- Messages:
-- 'documentation-icon-wikitext' --> '[[ملف:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'
-- 'template-namespace-heading' --> 'Template documentation'
-- 'module-namespace-heading' --> 'Module documentation'
-- 'file-namespace-heading' --> 'Summary'
-- 'other-namespaces-heading' --> 'Documentation'
-- 'testcases-create-link-display' --> 'create'
--]=]
local subjectSpace = env.subjectSpace
if not subjectSpace then
-- Default to an "other namespaces" namespace, so that we get at least some output
-- if an error occurs.
subjectSpace = 2
end
local data = {}
-- Heading
local heading = args.heading -- Blank values are not removed.
if heading == '' then
-- Don't display the start box if the heading arg is defined but blank.
return nil
end
if heading then
data.heading = heading
elseif subjectSpace == 10 then -- Template namespace
data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading')
elseif subjectSpace == 828 then -- Module namespace
data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading')
elseif subjectSpace == 6 then -- File namespace
data.heading = message('file-namespace-heading')
else
data.heading = message('other-namespaces-heading')
end
-- Heading CSS
local headingStyle = args['heading-style']
if headingStyle then
data.headingStyleText = headingStyle
else
-- 'documentation-heading'
data.headingClass = message('main-div-heading-class')
end
-- Data for the [view][edit][history][purge] or [create] links.
if links then
-- 'mw-editsection-like plainlinks'
data.linksClass = message('start-box-link-classes')
data.links = links
end
return data
end
function p.renderStartBox(data)
-- Renders the start box html.
-- @data - a table of data generated by p.makeStartBoxData.
local sbox = mw.html.create('div')
sbox
-- 'documentation-startbox'
:addClass(message('start-box-class'))
:newline()
:tag('span')
:addClass(data.headingClass)
:attr('id', 'documentation-heading')
:cssText(data.headingStyleText)
:wikitext(data.heading)
local links = data.links
if links then
sbox:tag('span')
:addClass(data.linksClass)
:attr('id', data.linksId)
:wikitext(links)
end
return tostring(sbox)
end
----------------------------------------------------------------------------
-- Documentation content
----------------------------------------------------------------------------
p.content = makeInvokeFunc('_content')
function p._content(args, env)
-- Displays the documentation contents
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local content = args.content or args["محتوى"]
if not content and docTitle and docTitle.exists then
content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText}
end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
-- of docs are interpreted correctly.
return '\n' .. (content or '') .. '\n'
end
p.contentTitle = makeInvokeFunc('_contentTitle')
function p._contentTitle(args, env)
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
if not args.content and docTitle and docTitle.exists then
return docTitle.prefixedText
else
return ''
end
end
----------------------------------------------------------------------------
-- End box
----------------------------------------------------------------------------
p.endBox = makeInvokeFunc('_endBox')
function p._endBox(args, env)
--[=[
-- This function generates the end box (also known as the link box).
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
--]=]
-- Get environment data.
env = env or p.getEnvironment(args)
local subjectSpace = env.subjectSpace
local docTitle = env.docTitle
if not subjectSpace or not docTitle then
return nil
end
-- Check whether we should output the end box at all. Add the end
-- box by default if the documentation exists or if we are in the
-- user, module or template namespaces.
local linkBox = args['link box']
if linkBox == 'off'
or not (
docTitle.exists
or subjectSpace == 2
or subjectSpace == 828
or subjectSpace == 10
)
then
return nil
end
-- Assemble the link box.
local text = ''
if linkBox then
text = text .. linkBox
else
text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]."
if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then
-- We are in the user, template or module namespaces.
-- Add sandbox and testcases links.
-- "Editors can experiment in this template's sandbox and testcases pages."
text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />'
if not args.content and not args[1] then
-- "Please add categories to the /doc subpage."
-- Don't show this message with inline docs or with an explicitly specified doc page,
-- as then it is unclear where to add the categories.
text = text .. (p.makeCategoriesBlurb(args, env) or '')
end
text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template"
end
end
local box = mw.html.create('div')
-- 'documentation-metadata'
box:attr('role', 'note')
:addClass(message('end-box-class'))
-- 'plainlinks'
:addClass(message('end-box-plainlinks'))
:wikitext(text)
:done()
return '\n' .. tostring(box)
end
function p.makeDocPageBlurb(args, env)
--[=[
-- Makes the blurb "This documentation is transcluded from [[قالب:Foo]] (edit, history)".
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'edit-link-display' --> 'edit'
-- 'history-link-display' --> 'history'
-- 'transcluded-from-blurb' -->
-- 'The above [[Wikipedia:Template documentation|documentation]]
-- is [[مساعدة:Transclusion|transcluded]] from $1.'
-- 'module-preload' --> 'Template:Documentation/preload-module-doc'
-- 'create-link-display' --> 'create'
-- 'create-module-doc-blurb' -->
-- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].'
--]=]
local docTitle = env.docTitle
if not docTitle then
return nil
end
if docTitle.exists then
-- /doc exists; link to it.
local docLink = makeWikilink(docTitle.prefixedText)
local editDisplay = message('edit-link-display')
local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay)
local historyDisplay = message('history-link-display')
local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay)
return message('transcluded-from-blurb', {docLink})
.. ' '
.. makeToolbar(editLink, historyLink)
.. '<br />'
elseif env.subjectSpace == 828 then
-- /doc does not exist; ask to create it.
local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')}
local createDisplay = message('create-link-display')
local createLink = makeUrlLink(createUrl, createDisplay)
return message('create-module-doc-blurb', {createLink})
.. '<br />'
end
end
function p.makeExperimentBlurb(args, env)
--[[
-- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages."
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'sandbox-link-display' --> 'sandbox'
-- 'sandbox-edit-link-display' --> 'edit'
-- 'compare-link-display' --> 'diff'
-- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox'
-- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox'
-- 'sandbox-create-link-display' --> 'create'
-- 'mirror-edit-summary' --> 'Create sandbox version of $1'
-- 'mirror-link-display' --> 'mirror'
-- 'mirror-link-preload' --> 'Template:Documentation/mirror'
-- 'sandbox-link-display' --> 'sandbox'
-- 'testcases-link-display' --> 'testcases'
-- 'testcases-edit-link-display'--> 'edit'
-- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox'
-- 'testcases-create-link-display' --> 'create'
-- 'testcases-link-display' --> 'testcases'
-- 'testcases-edit-link-display' --> 'edit'
-- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases'
-- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases'
-- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.'
-- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.'
--]]
local subjectSpace = env.subjectSpace
local templateTitle = env.templateTitle
local sandboxTitle = env.sandboxTitle
local testcasesTitle = env.testcasesTitle
local templatePage = templateTitle.prefixedText
if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then
return nil
end
-- Make links.
local sandboxLinks, testcasesLinks
if sandboxTitle.exists then
local sandboxPage = sandboxTitle.prefixedText
local sandboxDisplay = message('sandbox-link-display')
local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay)
local sandboxEditDisplay = message('sandbox-edit-link-display')
local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay)
local compareUrl = env.compareUrl
local compareLink
if compareUrl then
local compareDisplay = message('compare-link-display')
compareLink = makeUrlLink(compareUrl, compareDisplay)
end
sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink)
else
local sandboxPreload
if subjectSpace == 828 then
sandboxPreload = message('module-sandbox-preload')
else
sandboxPreload = message('template-sandbox-preload')
end
local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload}
local sandboxCreateDisplay = message('sandbox-create-link-display')
local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay)
local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)})
local mirrorPreload = message('mirror-link-preload')
local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary}
if subjectSpace == 828 then
mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary}
end
local mirrorDisplay = message('mirror-link-display')
local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay)
sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink)
end
if testcasesTitle.exists then
local testcasesPage = testcasesTitle.prefixedText
local testcasesDisplay = message('testcases-link-display')
local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay)
local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'}
local testcasesEditDisplay = message('testcases-edit-link-display')
local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay)
-- for Modules, add testcases run link if exists
if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then
local testcasesRunLinkDisplay = message('testcases-run-link-display')
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)
testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink)
else
testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink)
end
else
local testcasesPreload
if subjectSpace == 828 then
testcasesPreload = message('module-testcases-preload')
else
testcasesPreload = message('template-testcases-preload')
end
local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload}
local testcasesCreateDisplay = message('testcases-create-link-display')
local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay)
testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink)
end
local messageName
if subjectSpace == 828 then
messageName = 'experiment-blurb-module'
else
messageName = 'experiment-blurb-template'
end
return message(messageName, {sandboxLinks, testcasesLinks})
end
function p.makeCategoriesBlurb(args, env)
--[[
-- Generates the text "Please add categories to the /doc subpage."
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'doc-link-display' --> '/doc'
-- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.'
--]]
local docTitle = env.docTitle
if not docTitle then
return nil
end
local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display'))
return message('add-categories-blurb', {docPathLink})
end
function p.makeSubpagesBlurb(args, env)
--[[
-- Generates the "Subpages of this template" link.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'template-pagetype' --> 'template'
-- 'module-pagetype' --> 'module'
-- 'default-pagetype' --> 'page'
-- 'subpages-link-display' --> 'Subpages of this $1'
--]]
local subjectSpace = env.subjectSpace
local templateTitle = env.templateTitle
if not subjectSpace or not templateTitle then
return nil
end
local pagetype
if subjectSpace == 10 then
pagetype = message('template-pagetype')
elseif subjectSpace == 828 then
pagetype = message('module-pagetype')
else
pagetype = message('default-pagetype')
end
local subpagesLink = makeWikilink(
'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/',
message('subpages-link-display', {pagetype})
)
return message('subpages-blurb', {subpagesLink})
end
----------------------------------------------------------------------------
-- Tracking categories
----------------------------------------------------------------------------
function p.addTrackingCategories(env)
--[[
-- Check if {{documentation}} is transcluded on a /doc or /testcases page.
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'display-strange-usage-category' --> true
-- 'doc-subpage' --> 'doc'
-- 'testcases-subpage' --> 'testcases'
-- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage'
--
-- /testcases pages in the module namespace are not categorised, as they may have
-- {{documentation}} transcluded automatically.
--]]
local title = env.title
local subjectSpace = env.subjectSpace
if not title or not subjectSpace then
return nil
end
local subpage = title.subpageText
if message('display-strange-usage-category', nil, 'boolean')
and (
subpage == message('doc-subpage')
or subjectSpace ~= 828 and subpage == message('testcases-subpage')
)
then
return makeCategoryLink(message('strange-usage-category'))
end
return ''
end
return p
m6kspisy1d0geqsm0ujo4ys9rq6h6wd
وحدة:توثيق/ضبط
828
59018
275387
252200
2026-09-15T08:54:27Z
حبيشان
29714
استيراد من ar.wiktionary.org
275387
Scribunto
text/plain
----------------------------------------------------------------------------------------------------
--
-- Configuration for Module:Documentation
--
-- Here you can set the values of the parameters and messages used in Module:Documentation to
-- localise it to your wiki and your language. Unless specified otherwise, values given here
-- should be string values.
----------------------------------------------------------------------------------------------------
local cfg = {} -- Do not edit this line.
----------------------------------------------------------------------------------------------------
-- Protection template configuration
----------------------------------------------------------------------------------------------------
-- cfg['protection-reason-edit']
-- The protection reason for edit-protected templates to pass to
-- [[Module:Protection banner]].
cfg['protection-reason-edit'] = 'قالب'
--[[
----------------------------------------------------------------------------------------------------
-- Sandbox notice configuration
--
-- On sandbox pages the module can display a template notifying users that the current page is a
-- sandbox, and the location of test cases pages, etc. The module decides whether the page is a
-- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the
-- messages that the notices contains.
----------------------------------------------------------------------------------------------------
--]]
-- cfg['sandbox-notice-image']
-- The image displayed in the sandbox notice.
cfg['sandbox-notice-image'] = '[[ملف:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]'
--[[
-- cfg['sandbox-notice-pagetype-template']
-- cfg['sandbox-notice-pagetype-module']
-- cfg['sandbox-notice-pagetype-other']
-- The page type of the sandbox page. The message that is displayed depends on the current subject
-- namespace. This message is used in either cfg['sandbox-notice-blurb'] or
-- cfg['sandbox-notice-diff-blurb'].
--]]
cfg['sandbox-notice-pagetype-template'] = 'صفحة [[ويكاموس:ملاعب القوالب ومختبراتها|ملعب القالب]]'
cfg['sandbox-notice-pagetype-module'] = 'صفحة ملعب الوحدة'
cfg['sandbox-notice-pagetype-other'] = 'صفحة ملعب'
--[[
-- cfg['sandbox-notice-blurb']
-- cfg['sandbox-notice-diff-blurb']
-- cfg['sandbox-notice-diff-display']
-- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence
-- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page
-- type, which is either cfg['sandbox-notice-pagetype-template'],
-- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what
-- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between
-- the sandbox and the main template. The display value of the diff link is set by
-- cfg['sandbox-notice-compare-link-display'].
--]]
cfg['sandbox-notice-blurb'] = 'هذه $1 لصفحة $2.'
cfg['sandbox-notice-diff-blurb'] = 'هذه $1 لصفحة $2 ($3).'
cfg['sandbox-notice-compare-link-display'] = 'فرق'
--[[
-- cfg['sandbox-notice-testcases-blurb']
-- cfg['sandbox-notice-testcases-link-display']
-- cfg['sandbox-notice-testcases-run-blurb']
-- cfg['sandbox-notice-testcases-run-link-display']
-- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page
-- corresponding to this sandbox that they can edit. $1 is a link to the test cases page.
-- cfg['sandbox-notice-testcases-link-display'] is the display value for that link.
-- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page
-- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test
-- cases page, and $2 is a link to the page to run it.
-- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test
-- cases.
--]]
cfg['sandbox-notice-testcases-blurb'] = 'انظر أيضاً الصفحات الفرعية لـ $1.'
cfg['sandbox-notice-testcases-link-display'] = 'مختبر'
cfg['sandbox-notice-testcases-run-blurb'] = 'انظر أيضاً الصفحات الفرعية لـ $1 ($2).'
cfg['sandbox-notice-testcases-run-link-display'] = 'تشغيل'
-- cfg['sandbox-category'] - A category to add to all template sandboxes.
-- cfg['module-sandbox-category'] - A category to add to all module sandboxes.
-- cfg['other-sandbox-category'] - A category to add to all sandboxe not in templates or modules.
cfg['sandbox-category'] = 'ملاعب قوالب'
cfg['module-sandbox-category'] = 'ملاعب وحدات'
cfg['other-sandbox-category'] = 'ملاعب خارج نطاق قالب أو وحدة'
----------------------------------------------------------------------------------------------------
-- Start box configuration
----------------------------------------------------------------------------------------------------
-- cfg['documentation-icon-wikitext']
-- The wikitext for the icon shown at the top of the template.
cfg['documentation-icon-wikitext'] = '[[ملف:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'
-- cfg['template-namespace-heading']
-- The heading shown in the template namespace.
cfg['template-namespace-heading'] = 'توثيق القالب'
-- cfg['module-namespace-heading']
-- The heading shown in the module namespace.
cfg['module-namespace-heading'] = 'توثيق الوحدة' .. " [[تصنيف:جميع وحدات ويكاموس]]"
-- cfg['file-namespace-heading']
-- The heading shown in the file namespace.
cfg['file-namespace-heading'] = 'ملخص'
-- cfg['other-namespaces-heading']
-- The heading shown in other namespaces.
cfg['other-namespaces-heading'] = 'توثيق'
-- cfg['view-link-display']
-- The text to display for "view" links.
cfg['view-link-display'] = 'عرض'
-- cfg['edit-link-display']
-- The text to display for "edit" links.
cfg['edit-link-display'] = 'عدّل'
-- cfg['history-link-display']
-- The text to display for "history" links.
cfg['history-link-display'] = 'تاريخ'
-- cfg['purge-link-display']
-- The text to display for "purge" links.
cfg['purge-link-display'] = 'محو الاختزان'
cfg['usage-link-display'] = 'استخدامات'
cfg['template-usage'] = 'قوالب'
-- cfg['create-link-display']
-- The text to display for "create" links.
cfg['create-link-display'] = 'أنشئ'
----------------------------------------------------------------------------------------------------
-- Link box (end box) configuration
----------------------------------------------------------------------------------------------------
-- cfg['transcluded-from-blurb']
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page.
cfg['transcluded-from-blurb'] = '[[ويكاموس:توثيق قالب|التوثيق]] في الأعلى [[ويكاموس:تضمين|مضمن]] من $1.'
--[[
-- cfg['create-module-doc-blurb']
-- Notice displayed in the module namespace when the documentation subpage does not exist.
-- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the
-- display cfg['create-link-display'].
--]]
cfg['create-module-doc-blurb'] = 'يمكنك أن تنشئ صفحة توثيق لهذه [[ويكاموس:لوا|الوحدة]] ($1).'
----------------------------------------------------------------------------------------------------
-- Experiment blurb configuration
----------------------------------------------------------------------------------------------------
--[[
-- cfg['experiment-blurb-template']
-- cfg['experiment-blurb-module']
-- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages.
-- It is only shown in the template and module namespaces. With the default English settings, it
-- might look like this:
--
-- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
--
-- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links.
--
-- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending
-- on what namespace we are in.
--
-- Parameters:
--
-- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format:
--
-- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display'])
--
-- If the sandbox doesn't exist, it is in the format:
--
-- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display'])
--
-- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload']
-- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display']
-- loads a default edit summary of cfg['mirror-edit-summary'].
--
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format:
--
-- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display'])
--
-- If the test cases page doesn't exist, it is in the format:
--
-- cfg['testcases-link-display'] (cfg['testcases-create-link-display'])
--
-- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the
-- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current
-- namespace.
--]]
cfg['experiment-blurb-template'] = "يمكن للمحررين تجريب تعديلاتهم على القالب في صفحات $1 و$2."
cfg['experiment-blurb-module'] = "يمكن للمحررين تجريب تعديلاتهم على الوحدة في صفحات $1 و$2."
----------------------------------------------------------------------------------------------------
-- Sandbox link configuration
----------------------------------------------------------------------------------------------------
-- cfg['sandbox-subpage']
-- The name of the template subpage typically used for sandboxes.
cfg['sandbox-subpage'] = 'ملعب'
-- cfg['template-sandbox-preload']
-- Preload file for template sandbox pages.
cfg['template-sandbox-preload'] = 'قالب:توثيق/مسبق-ملعب'
-- cfg['module-sandbox-preload']
-- Preload file for Lua module sandbox pages.
cfg['module-sandbox-preload'] = 'قالب:توثيق/مسبق-ملعب وحدة'
-- cfg['sandbox-link-display']
-- The text to display for "sandbox" links.
cfg['sandbox-link-display'] = 'ملعب'
-- cfg['sandbox-edit-link-display']
-- The text to display for sandbox "edit" links.
cfg['sandbox-edit-link-display'] = 'عدّل'
-- cfg['sandbox-create-link-display']
-- The text to display for sandbox "create" links.
cfg['sandbox-create-link-display'] = 'أنشئ'
-- cfg['compare-link-display']
-- The text to display for "compare" links.
cfg['compare-link-display'] = 'فرق'
-- cfg['mirror-edit-summary']
-- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the
-- template page.
cfg['mirror-edit-summary'] = 'إنشاء نسخة ملعب لـ $1'
-- cfg['mirror-link-display']
-- The text to display for "mirror" links.
cfg['mirror-link-display'] = 'مرآة'
-- cfg['mirror-link-preload']
-- The page to preload when a user clicks the "mirror" link.
cfg['mirror-link-preload'] = 'قالب:توثيق/مرآة'
----------------------------------------------------------------------------------------------------
-- Test cases link configuration
----------------------------------------------------------------------------------------------------
-- cfg['testcases-subpage']
-- The name of the template subpage typically used for test cases.
cfg['testcases-subpage'] = 'مختبر'
-- cfg['template-testcases-preload']
-- Preload file for template test cases pages.
cfg['template-testcases-preload'] = 'قالب:توثيق/مسبق-مختبر'
-- cfg['module-testcases-preload']
-- Preload file for Lua module test cases pages.
cfg['module-testcases-preload'] = 'قالب:توثيق/مسبق/مختبر وحدة'
-- cfg['testcases-link-display']
-- The text to display for "testcases" links.
cfg['testcases-link-display'] = 'مختبر'
-- cfg['testcases-edit-link-display']
-- The text to display for test cases "edit" links.
cfg['testcases-edit-link-display'] = 'عدل'
-- cfg['testcases-run-link-display']
-- The text to display for test cases "run" links.
cfg['testcases-run-link-display'] = 'run'
-- cfg['testcases-create-link-display']
-- The text to display for test cases "create" links.
cfg['testcases-create-link-display'] = 'أنشئ'
----------------------------------------------------------------------------------------------------
-- Add categories blurb configuration
----------------------------------------------------------------------------------------------------
--[[
-- cfg['add-categories-blurb']
-- Text to direct users to add categories to the /doc subpage. Not used if the "content" or
-- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a
-- link to the /doc subpage with a display value of cfg['doc-link-display'].
--]]
cfg['add-categories-blurb'] = 'من فضلك أضف التصنيفات في الصفحة الفرعية للقالب $1.'
-- cfg['doc-link-display']
-- The text to display when linking to the /doc subpage.
cfg['doc-link-display'] = '/شرح'
----------------------------------------------------------------------------------------------------
-- Subpages link configuration
----------------------------------------------------------------------------------------------------
--[[
-- cfg['subpages-blurb']
-- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a
-- display value of cfg['subpages-link-display']. In the English version this blurb is simply
-- the link followed by a period, and the link display provides the actual text.
--]]
cfg['subpages-blurb'] = '$1.'
--[[
-- cfg['subpages-link-display']
-- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'],
-- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in
-- the template namespace, the module namespace, or another namespace.
--]]
cfg['subpages-link-display'] = 'الصفحات الفرعية لـ $1'
-- cfg['template-pagetype']
-- The pagetype to display for template pages.
cfg['template-pagetype'] = 'قالب'
-- cfg['module-pagetype']
-- The pagetype to display for Lua module pages.
cfg['module-pagetype'] = 'وحدة'
-- cfg['default-pagetype']
-- The pagetype to display for pages other than templates or Lua modules.
cfg['default-pagetype'] = 'صفحة'
----------------------------------------------------------------------------------------------------
-- Doc link configuration
----------------------------------------------------------------------------------------------------
-- cfg['doc-subpage']
-- The name of the subpage typically used for documentation pages.
cfg['doc-subpage'] = 'شرح'
-- cfg['docpage-preload']
-- Preload file for template documentation pages in all namespaces.
cfg['docpage-preload'] = 'قالب:توثيق/مسبق'
-- cfg['module-preload']
-- Preload file for Lua module documentation pages.
cfg['module-preload'] = 'قالب:توثيق/مسبق-وحدة-شرح'
----------------------------------------------------------------------------------------------------
-- HTML and CSS configuration
----------------------------------------------------------------------------------------------------
-- cfg['templatestyles']
-- The name of the TemplateStyles page where CSS is kept.
-- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed.
cfg['templatestyles'] = 'وحدة:توثيق/styles.css'
-- cfg['container']
-- Class which can be used to set flex or grid CSS on the
-- two child divs documentation and documentation-metadata
cfg['container'] = 'documentation-container'
-- cfg['main-div-classes']
-- Classes added to the main HTML "div" tag.
cfg['main-div-classes'] = 'documentation'
-- cfg['main-div-heading-class']
-- Class for the main heading for templates and modules and assoc. talk spaces
cfg['main-div-heading-class'] = 'documentation-heading'
-- cfg['start-box-class']
-- Class for the start box
cfg['start-box-class'] = 'documentation-startbox'
-- cfg['start-box-link-classes']
-- Classes used for the [view][edit][history] or [create] links in the start box.
-- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]]
cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks'
-- cfg['end-box-class']
-- Class for the end box.
cfg['end-box-class'] = 'documentation-metadata'
-- cfg['end-box-plainlinks']
-- Plainlinks
cfg['end-box-plainlinks'] = 'plainlinks'
-- cfg['toolbar-class']
-- Class added for toolbar links.
cfg['toolbar-class'] = 'documentation-toolbar'
-- cfg['clear']
-- Just used to clear things.
cfg['clear'] = 'documentation-clear'
----------------------------------------------------------------------------------------------------
-- Tracking category configuration
----------------------------------------------------------------------------------------------------
-- cfg['display-strange-usage-category']
-- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage
-- or a /testcases subpage. This should be a boolean value (either true or false).
cfg['display-strange-usage-category'] = true
-- cfg['strange-usage-category']
-- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a
-- /doc subpage or a /testcases subpage.
cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage'
--[[
----------------------------------------------------------------------------------------------------
-- End configuration
--
-- Don't edit anything below this line.
----------------------------------------------------------------------------------------------------
--]]
return cfg
bytqw41g5oax95nahj95wwc4nlechei
وحدة:توثيق/styles.css
828
59019
275386
252201
2026-09-15T08:54:24Z
حبيشان
29714
استيراد من ar.wiktionary.org
275386
sanitized-css
text/css
.documentation,
.documentation-metadata {
border: 1px solid var( --border-color-base, #a2a9b1 );
background-color: #ecfcf4;
color:inherit;
clear: both;
}
.documentation {
margin: 1em 0 0 0;
padding: 1em;
}
.documentation-metadata {
margin: 0.2em 0; /* same margin left-right as .documentation */
font-style: italic;
padding: 0.4em 1em; /* same padding left-right as .documentation */
}
.documentation-startbox {
padding-bottom: 3px;
border-bottom: 1px solid var( --border-color-base, #a2a9b1 );
margin-bottom: 1ex;
}
.documentation-heading {
font-weight: bold;
font-size: 125%;
}
body.skin-minerva .documentation-startbox .mw-editsection-like a,
body.skin-timeless .documentation-startbox .mw-editsection-like a {
display: inline-block;
margin-left: 0.3em;
margin-right: 0.3em;
}
.documentation-clear { /* Don't want things to stick out where they shouldn't. */
clear: both;
}
.documentation-toolbar {
font-style: normal;
font-size: 85%;
}
@media screen {
html.skin-theme-clientpref-night .documentation,
html.skin-theme-clientpref-night .documentation-metadata {
background-color: #0b1e1c;
}
}
@media screen and ( prefers-color-scheme: dark ) {
html.skin-theme-clientpref-os .documentation,
html.skin-theme-clientpref-os .documentation-metadata {
background-color: #0b1e1c;
}
}
q54nrpzmvcyf5wqmstb7ftvb00bryvi
أبو بكر الديب
0
62733
275510
274295
2026-09-15T10:55:29Z
Gg4011515
34743
تعديل
275510
wikitext
text/x-wiki
أبوبكر الديب كاتب وصحفي ومحلل اقتصادي مصري، مواليد 1975 وباحث في الاقتصاد السياسي والعلاقات الدولية. ظهرت تصريحاته ومقابلاته في عدد من وسائل الإعلام المصرية والعربية
== اقتباسات ==
{{اقتباس|“هذه ليست دعوة لترك الدنيا والانصراف عن السعى فيها، فنحن مأمورون بعمران الأرض والسعى فى العمل والإنتاج، وخدمة الغير، ولكن هذا لا يمنع ولا يناقض ذاك، فلابد من العمل والجد، وذلك بإخلاص وصدق نية دون مظالم أو ملأ القلب بحب الدنيا.. القضية تحتاج إلى تدريب وقراءة قصص الصالحين والأولياء ومن قبلهم رسل الله وصحابتهم.”}}.<ref>{{استشهاد ويب
| url =https://m.youm7.com/story/2014/5/17/%D8%A3%D8%A8%D9%88%D8%A8%D9%83%D8%B1-%D8%A7%D9%84%D8%AF%D9%8A%D8%A8-%D9%8A%D9%83%D8%AA%D8%A8-%D9%85%D9%86-%D8%B0%D8%A7%D9%82-%D8%B9%D8%B1%D9%81/1670016._ |title = أبوبكر الديب - Quotes
| publisher = youm7
|accessdate = 2014-05-17
}}</ref>
{{كاتب}}
== مراجع ==
{{مراجع}}
[[تصنيف:أشخاص-أ]]
[[تصنيف:كتاب مصريون]]
[[تصنيف:كتاب]]
[[تصنيف:روائيون مصريون]]
[[تصنيف:كتاب وكاتبات مصريون]]
[[تصنيف:كتاب وكاتبات مقالات]]
r45e5iq4sejuixz75hlqmj2vexxmz4c
أبو العلا عفيفي
0
62734
275511
274298
2026-09-15T10:56:49Z
Gg4011515
34743
تعديل
275511
wikitext
text/x-wiki
أبو العلا عفيفي (1897 -1966)، مؤرخ مصري
== اقتباسات ==
{{اقتباس|“هذه ليست دعوة لترك الدنيا والإنصراف عن السعى فيها، فنحن مأمورون بعمران الأرض والسعى فى العمل والإنتاج، وخدمة الغير، ولكن هذا لا يمنع ولا يناقض ذاك، فلابد من العمل والجد، وذلك بإخلاص وصدق نية دون مظالم أو ملأ القلب بحب الدنيا القضية تحتاج منا إلى تدريب وقراءة قصص الصالحين والأولياء ومن قبلهم رسل الله وصحابتهم.”}}.<ref>{{استشهاد ويب
| url =https://www.mominoun.com/articles/%D8%A7%D9%84%D8%AA%D8%B5%D9%88%D9%81-%D8%A7%D9%84%D8%AB%D9%88%D8%B1%D8%A9-%D8%A7%D9%84%D8%B1%D9%88%D8%AD%D9%8A%D8%A9-%D9%81%D9%8A-%D8%A7%D9%84%D8%A5%D8%B3%D9%84%D8%A7%D9%85-%D8%A3%D8%A8%D9%88-%D8%A7%D9%84%D8%B9%D9%84%D8%A7-%D8%B9%D9%81%D9%8A%D9%81%D9%8A-9930_ |title = أبو العلا عفيفي - Quotes
| publisher = mominoun
|accessdate = 2025-06-11
}}</ref>
{{كاتب}}
== مراجع ==
{{مراجع}}
[[تصنيف:أشخاص-أ]]
[[تصنيف:كتاب مصريون]]
[[تصنيف:كتاب]]
[[تصنيف:روائيون مصريون]]
[[تصنيف:كتاب وكاتبات مصريون]]
[[تصنيف:كتاب وكاتبات مقالات]]
8mu4z9r0a60xunz7px9gy9a3yp7sz4b
عبد الناصر عبد الفتاح
0
63165
275508
275376
2026-09-15T10:52:24Z
Gg4011515
34743
تعديل
275508
wikitext
text/x-wiki
'''عبد الناصر عبد الفتاح'''([[اللغة الإنجليزية|بالإنجليزية]]: Abdelnaser Abdelfattah )(من مواليد 1 مارس 1984) هو [[رجل الأعمال|رجل أعمال]] [[ايراني]] مصري سياسي ،[[رئيس مجلس الإدارة|ورئيس مجلس الإدارة]]، شركة الآغا التي اسمها في 1995 واسس الأغا جروب في 2013.
{{كاتب
| لون=
| اسم =
| صورة =
| سنة الميلاد =1984
| سنة الوفاة =
| ويكيبيديا=
| كومنز=
| ويكي مصدر=
| جوتنبرج=
| دومينيبو=
| دومي بوبلي=
| سرفانتس=
| إيبوكس=
}}
== اقتباسات متنوعه==
([[اللغة الإنجليزية|بالإنجليزية]]:Abdelnasser Abdelfattah Quotes)
{{اقتباس|اعتمد على نفسك وستحقق النجاح، لكن [[النجاح]] لا يأتي إلا من خلال الكفاح، والكفاح يأتي من الشخص النشط الذي يتحدث إلى العالم.}}
{{اقتباس|الحياة جميلة، لكن الجنة هي الأجمل لأنها حياة أبدية بلا موت ولا مشاكل، بلا مشقة ولا تعب..}}
{{اقتباس|المعرفة نور، والنور لا يأتي إلا من المصباح، والمصباح لا يأتي إلا من الكهرباء، والكهرباء لا تأتي إلا من الجهد والحركة، والحركة تعني العمل الجاد، ولكل شخص مجتهد نصيب حتى تحقق أحلامك وكل ما تريد.}}. https://shufunews.com/abdelnasser-abdelfattah-quotes/
**([[اللغة الإنجليزية|بالإنجليزية]]:abdelnasser abdelfattah Various quotes and sayings from)
** أقوال وحكم متنوعة من عبد الناصر وعبد الفتاح
** ابنة الأصول
إن أبن الأصول لا يتغير مثل الفصول.
** الابن البار، مهما كان حال العالم، يخوض رحلة طويلة يمتطي فيها صهوة جواده وينعم بالتدليل.
قدميه.
** لا يؤخر الله أمراً إلا لخير، ولن يصيبك مكروه إلا لخير، فلا تحزن، فرب الخير لا يأتي إلا بالخير.
** عندما يلمس الأقوياء سعادة الضعفاء، سيدركون أن قوتهم ومكانتهم وأموالهم ليست سوى قوة العقل والإيمان والحب والمودة، وأن القوة البدنية ليست هي القوة الحقيقية.
** الخوف لا يمنع الموت ولكنه يمنع الحياة. إذا كنت خائفاً، فليس للحياة قيمة، وإذا مت، فإن كل شيء يموت.
** أموتُ شوقًا لاستكشاف الأفق وبيت الله، مكة المكرمة، لأرى سمائها وأرضها، لأصغي إلى فصولها، لأُحبّ همس الزمن في زواياها، لأسير في دروبها عامًا بعد عام، ولأعتزل، أي أن أندمج في معابدها، لأروي المحاصيل من مياه زمزم، ولأسلك الدرب الذي مهّده الرسول بهجرته، والذي اتبعه الناس ثلاثمائة ألف عام وما زالوا يتبعونه. ويدفئ قلبي زيارة قبر النبي والصلاة في الروضة الشريفة، وفي قلبي وعقلي شوقٌ خفيٌّ لا يسعه الزمن، ولديّ فرصٌ للسلام والسعادة لا يتصورها العقل. لقد رآني إخوتي نجوب شوارع مكة، نتلو الآيات كما نزلت لأول مرة. كأنني أتلقى درسًا من الذات العليا، يا له من فرح! رآني ساجدًا في الروضة أتخيل وجه النبي محمد صلى الله عليه وسلم كما يظهر في المنام، يا له من فرح! ورآني أتقدم بتواضع نحو الضريح أطلب المغفرة، يا له من طمأنينة وراحة نفسية! ورآني آتي إلى زمزم، قطرة الشوق، قطرة الشفاعة، يا له من سلام! أخي، لا تذكرني بالعودة والدعاء إلى الله أن يرزقني السعادة، والحمد لله على كل شيء.
** أنت تخشى الخلود!
لي الحق في أن أتخيل أنني سأبقى حتى أشهد نهاية عالمي. سيرحل الناس، رجالاً ونساءً، وستموت كل روح في هذا العالم، وسأبقى غريباً بين الغرباء، هارباً من مكان إلى آخر. أنا مطارد إلى الأبد، مدفوع بالجنون، وفي كل لحظة تمر أتمنى الموت.
** عندما تكتشف أن أقرب الناس إليك كانوا مجرد كذبة حقيقية، فسيكون من الصعب عليك تصديق الكثير مما تراه. لا شيء يؤلم أكثر من سقوط قناع كنا نظنه في يوم من الأيام وجهاً حقيقياً.
** أولئك الذين تغيروا وتبرأوا مني لن يصيبني أي أذى، ولن أتخلى عنهم، لا يهمني إن تغير حبكم، لن أعاني من أي نقص أو خسارة طالما أنني أعيش بكرامة في داخلي، ولن أعاني من النفور أو النسيان.
** نحن أصحاب المزاج المتقلب، محكوم علينا بسوء الفهم. نتهم دائمًا بالغرور لأننا نلتزم الصمت. نحن من لا نلجأ لأحد عندما نشعر بالحزن، بل نلجأ إلى العلاج الذاتي. نحن من نحب الصباح ونعشق ظلام المساء. نختار نصف النور. نحن من ظننا أنه عندما يتوقف الزمن، لا نهيئ أماكن الخطر. قيامتنا تحدث داخليًا، ولا يبدو أننا نغرق. سنموت. بسبب هذا الغرق، تغير مسارنا، وننمو نضجًا من خلال الألم. معظم أفعالنا نقوم بها بأنفسنا، ولا يظهر على ملامحنا سوى القوة والابتسامة.
** اترك قلبك فارغاً وعش حياة مريحة. أغلق باب الماضي وأضع المفتاح.
** هذا هو حالي، لا أنام ليلاً، لا
لا أهتم بصحتي خلال النهار، وأخفي كل شيء في قلبي، ومع ذلك أبتسم لمدى سوء معاملتي لنفسي
** عندما تهتم كثيراً، فإن حبك لبعض الناس يجعلهم يشعرون بالغيرة منك، ولكن وفرة الاهتمام تكشف لك عن وجههم الحقيقي، ليس لأنك قصرت في حقهم أو لأنهم لا يستحقون الاهتمام.https://shufunews.com/abdelnasser-abdelfattah-various-quotes-and-sayings-from/
{{رجال أعمال}}
[[تصنيف:أشخاص على قيد الحياة]]
asm1r5556r220jljnbxp6za6i2teq81
تمام حسان
0
63166
275507
275379
2026-09-15T10:50:42Z
Gg4011515
34743
تعديل
275507
wikitext
text/x-wiki
'''تمام حسان''' (مواليد 27 يناير 1918م - وتوفي 11 أكتوبر 2011م)، عالم نحوي عربي مصري،
{{كاتب
| لون=
| اسم =
| صورة =
| سنة الميلاد =1918
| ويكيبيديا=
| كومنز=
| ويكي مصدر=
| جوتنبرج=
| دومينيبو=
| دومي بوبلي=
| سرفانتس=
| إيبوكس=
}}
== من أقواله ==
* وتعلن عن صفات سندس - [[شجاعة|الشجاعة]] - الآمانة -الطيبة - فلاحة نشيطة - لاتحب الكسل -تحب العمل.
https://www.noor-book.com/%D8%A7%D9%82%D8%AA%D8%A8%D8%A7%D8%B3%D8%A7%D8%AA-%D8%A7%D9%84%D8%B3%D9%8A%D8%AF-%D8%AD%D8%A7%D9%81%D8%B8-%D8%B9%D9%84%D9%8A-%D8%B1%D8%AC%D8%A8
[[تصنيف:أشخاص-ت]]
[[تصنيف:شعراء مصريون]]
hkaxdumcuyrw539ghxu2n4hbtmqmh9h
ياسر قطامش
0
63167
275381
2026-09-14T12:36:19Z
عبدالرازق ابوالشيخ
34415
انشاء صفحة شاعر وكاتب ومهندس مصري،
275381
wikitext
text/x-wiki
'''ياسر قطامش''' (1960 -) هو شاعر وكاتب ومهندس مصري،
{{كاتب
| لون=
| اسم =
| صورة =
| سنة الميلاد =1960
| ويكيبيديا=
| كومنز=
| ويكي مصدر=
| جوتنبرج=
| دومينيبو=
| دومي بوبلي=
| سرفانتس=
| إيبوكس=
}}
== من أقواله ==
* مـازلـت تجفو وأجفـو
والجو ما عاد يصفو
ولسـت تنسـى وتأتـى
ولسـت أنسى وأعفو
يجتاح طـيـفـك حلمى
يحتـل بيتـى ويقـسـو
والليل يُمطـر ذكـرى
بمعطف الحزن تكسو
قـلـبــى دنــا فـتـدلــى
ولـيـس قـلـبـك يـدنو
وليـس يـقـبـل نحـوى
ولا يـلـيــن ويـحـنـو
وقطــة الحــب تسطو
بغرفتــى حيـن أخلو
تسقى زهور احتراقى
ينمو الحنين ويحلو
أعلــو وأسقـط طفــلا
أمــام بــابــك أحبـو
أريــد قطعـة حلـــوى
مـن الحنان وأصبـو.
** ..
قال : جاءني الشيطان/
في صورة إنسان/
وقال: خلاص يا عم صُمت واتبسطت/
وهزّأت كرامتي ومرمطت/
وخلّتني عيطت/
فقلت: تكلم بالفصحي العربية/
ولا تتكلم بالعامية /
فقال : حسناً سأفتح لك قلبي/
وأكلمك بلغة (المتنبي)/
قلت : اتفضل أسمعني/
وإياك أن تخدعني/
فقال : لقد مضي رمضان/
شهر التقوي والإيمان/
وكما يقولون :ساعة لقلبك/
وساعة لربك/
فلا حرج الآن/
وبعد طول الحرمان/
أن تشرب كأس العصيان/
(رمضان وليَّ هاتها يا ساقي/
مشتاقةً تسعي إلي مشتاقِ)/
فهيا إلي الملذات/
وإشباع النظر من الحسناوات/
في الشوارع والفضائيات/
وعلي أرصفة الفيديوكليبات/
وتزود بالمعاصي الساخنة/
فما أحلي الحياة الماجنة /
ولا تقل سأصوم الستة البيض/
ويغريك الأمل العريض/
بالحور العين/
وجنات رب العالمين/
فما أصدق الشاعر عمر الخيام/
حينما قال من ألف عام :
لا تشغل البال بماضي الزمان ..
ولا بآتي العيش قبل الأوان/
واغنم من الحاضر لذاته ..
فليس في طبع الليالي الأمان/
ودعك من الأشعار الرومانسية/
وعليك بالأشعار الإباحية/
ويسعدني يا ابن الناس/
أن أهديك ديوان أبي نواس/
ليكون دليلك المضمون/
للفسق والمجون/
وإياك أن تصلي الفجر في جماعة/
فما أحلي النوم في هذه الساعة/
وإياك والذهاب للمساجد/
إن كان ولابد صلِّ وأنت بالبيت قاعد/
وعليك بالكذب والنفاق/
والنميمة ومفاسد الأخلاق/
فهي مسوغات النجاح في الحياة/
فقلت : لا حول ولا قوة إلا بالله/
اغرب عن وجهي ياحقير/
خسئت إلي جهنم وبئس المصير/
فقال ( أوكيه) لكن شاور عقلك/
فيما قلت لك/
فقمت للوضوء/
فرأيت نفسي الأمارة بالسوء/
وقد خرجت من قلبي/
ووقفت جنبي/
وقد عملت ما يسمي (النيولوك)/
فأخذت أهرش رأسي وأحك/
وقد اختلطت عليّ الأمور كثيراً/
لما رأيت نفسي في صورة (شاكيرا )/
وقلت : من أنتِ جتك البلاوي /
فقالت : أنا قرينتك يا زواوي/
فقلت وماهذا الذي أري ؟/
وما هذه الملابس المسخرة ؟!/
قالت خلاص رمضان راح/
فلا تقل (حي علي السلاح )/
بل استسلم لترتاح/
فالدنيا أمامك عامرة/
بالملذات الفاجرة/
وفجأة وجدتني في حفلة مثيرة/
وقد تعانق الشيطان وشاكيرا/
وأخذا في ( الدنص)/
أي الرقص/
علي أنغام موسيقي الذئاب/
التي تثير الأعصاب /
ثم أمسكتني شاكيرا من يدي/
وقالت تسمح لي بالرقصة دي/
وهنا انقطع النور/
وعمّ الديجور. https://www.goodreads.com/author/quotes/4576603._
[[تصنيف:أشخاص-ي]]
[[تصنيف:شعراء مصريون]]
n7sg15lk4bw5jgf0gvw2ncyw9yzuz5g
نافع الخفاجي
0
63168
275382
2026-09-14T12:44:50Z
عبدالرازق ابوالشيخ
34415
انشاء صفحة عالم أزهري، شاعر مصري
275382
wikitext
text/x-wiki
'''نافع الخفاجي''' مواليد 1904 عالم أزهري، شاعر مصري.
{{كاتب
| لون=
| اسم =
| صورة =
| سنة الميلاد =1904
| ويكيبيديا=
| كومنز=
| ويكي مصدر=
| جوتنبرج=
| دومينيبو=
| دومي بوبلي=
| سرفانتس=
| إيبوكس=
}}
== من أقواله ==
* إنا لنفرح بالأيام نقطعها
وكل يوم مضى نقص من الأجل
أين المحافل والأيام ناضرة
إذا ما أبو سمرة في ذروة الأمل. https://www.aldiwan.net/quote1304.html
[[تصنيف:أشخاص-ت]]
[[تصنيف:شعراء مصريون]]
50yc6lv3t4jpwht9nns4wa4gwmcbnun
وحدة:Citation/CS1/Arguments
828
63169
275389
2026-09-15T08:56:41Z
حبيشان
29714
استيراد من ar.wiktionary.org
275389
Scribunto
text/plain
c = {};
exclude = { ['#'] = true, ['1'] = true, ['2'] = true, ['3'] = true, ['4'] = true, ['5'] = true, ['k'] = true, ['v'] = true, ['list'] = true };
function c.build_whitelist( frame )
local title = mw.title.new( "Module:Citation/CS1/sandbox" );
local source = title:getContent();
local result = "whitelist = {<br />\n<br />\n";
local list = {};
for w in source:gmatch( "args%[(.-)%]" ) do
w = w:gsub( "%s*%.%.%s*i%s*%.%.%s*", "#" );
w = w:gsub( "%s*%.%.%s*i", "#" );
w = w:gsub( "i%s*%.%.%s*", "#" );
w = w:gsub('"', '' );
w = w:gsub('1(%D)', '#%1');
w = w:gsub('1$', '#');
list[w] = true;
end
for w in source:gmatch( "args%.([%w%d_-]*)" ) do
w = w:gsub('1(%D)', '#%1');
w = w:gsub('1$', '#');
list[w] = true;
end
for s in source:gmatch( "selectone%(%s*args%s*,%s*{(.-)}" ) do
for w in s:gmatch( "%s*([^,]+)%s*" ) do
w = w:gsub( "%s*%.%.%s*i%s*%.%.%s*", "#" );
w = w:gsub( "%s*%.%.%s*i", "#" );
w = w:gsub( "i%s*%.%.%s*", "#" );
w = w:gsub( '"', '' );
w = w:gsub( "'", '' );
w = w:gsub('1(%D)', '#%1');
w = w:gsub('1$', '#');
w = w:match( "^%s*(.-)%s*$");
list[w] = true;
end
end
title = mw.title.new( "Module:Citation/CS1/Configuration/sandbox" );
source = title:getContent();
for s in source:gmatch( "%sparameters%s*=%s{(.-)}" ) do
for w in s:gmatch( "%s*([^,]+)%s*" ) do
w = w:gsub( "%s*%.%.%s*i%s*%.%.%s*", "#" );
w = w:gsub( "%s*%.%.%s*i", "#" );
w = w:gsub( "i%s*%.%.%s*", "#" );
w = w:gsub( '"', '' );
w = w:gsub( "'", '' );
w = w:gsub('1(%D)', '#%1');
w = w:gsub('1$', '#');
w = w:match( "^%s*(.-)%s*$");
list[w] = true;
end
end
cfg = require( "Module:Citation/CS1/Configuration/sandbox" );
for k, v in pairs( cfg.aliases ) do
if type( v ) == 'table' then
for k2, v2 in pairs( v ) do
list[v2] = true;
list[v2:gsub("#", "")] = true;
end
else
list[v] = true;
list[v:gsub("#", "")] = true;
end
end
local list2 = {};
for k in pairs( list ) do
if exclude[k] == nil then
table.insert( list2, k );
end
end
table.sort( list2 );
result = result .. "basic_arguments = {<br />\n";
for _, k in pairs( list2 ) do
if k:match( "#" ) == nil then
result = result .. " ['" .. k .. "'] = true," .. "<br />\n";
end
end
result = result .. "},<br /> \n<br /> \n";
result = result .. "numbered_arguments = {<br />\n";
for _, k in pairs( list2 ) do
if k:match( "#" ) ~= nil then
result = result .. " ['" .. k .. "'] = true," .. "<br />\n";
end
end
result = result .. "},<br /> \n";
result = result .. "};<br />\n<br />\nreturn whitelist;"
return result;
end
return c;
pcc7zzripls80y0hah3lrgmmxr9rhsc
وحدة:Citation/CS1/COinS/شرح
828
63170
275391
2026-09-15T08:56:46Z
حبيشان
29714
استيراد من ar.wiktionary.org
275391
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
oy17t2cumwnrd0mbvyjn7zb9bmsgvfd
وحدة:Citation/CS1/COinS/ملعب
828
63171
275392
2026-09-15T08:56:48Z
حبيشان
29714
استيراد من ar.wiktionary.org
275392
Scribunto
text/plain
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local has_accept_as_written, is_set, in_array, remove_wiki_link, strip_apostrophe_markup; -- functions in Module:Citation/CS1/Utilities
local cfg; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
--[[--------------------------< M A K E _ C O I N S _ T I T L E >----------------------------------------------
Makes a title for COinS from Title and / or ScriptTitle (or any other name-script pairs)
Apostrophe markup (bold, italics) is stripped from each value so that the COinS metadata isn't corrupted with strings
of %27%27...
]]
local function make_coins_title (title, script)
title = has_accept_as_written (title);
if is_set (title) then
title = strip_apostrophe_markup (title); -- strip any apostrophe markup
else
title = ''; -- if not set, make sure title is an empty string
end
if is_set (script) then
script = script:gsub ('^%l%l%s*:%s*', ''); -- remove language prefix if present (script value may now be empty string)
script = strip_apostrophe_markup (script); -- strip any apostrophe markup
else
script = ''; -- if not set, make sure script is an empty string
end
if is_set (title) and is_set (script) then
script = ' ' .. script; -- add a space before we concatenate
end
return title .. script; -- return the concatenation
end
--[[--------------------------< E S C A P E _ L U A _ M A G I C _ C H A R S >----------------------------------
Returns a string where all of Lua's magic characters have been escaped. This is important because functions like
string.gsub() treat their pattern and replace strings as patterns, not literal strings.
]]
local function escape_lua_magic_chars (argument)
argument = argument:gsub("%%", "%%%%"); -- replace % with %%
argument = argument:gsub("([%^%$%(%)%.%[%]%*%+%-%?])", "%%%1"); -- replace all other Lua magic pattern characters
return argument;
end
--[[--------------------------< G E T _ C O I N S _ P A G E S >------------------------------------------------
Extract page numbers from external wikilinks in any of the |page=, |pages=, or |at= parameters for use in COinS.
]]
local function get_coins_pages (pages)
local pattern;
if not is_set (pages) then return pages; end -- if no page numbers then we're done
while true do
pattern = pages:match("%[(%w*:?//[^ ]+%s+)[%w%d].*%]"); -- pattern is the opening bracket, the URL and following space(s): "[url "
if nil == pattern then break; end -- no more URLs
pattern = escape_lua_magic_chars (pattern); -- pattern is not a literal string; escape Lua's magic pattern characters
pages = pages:gsub(pattern, ""); -- remove as many instances of pattern as possible
end
pages = pages:gsub("[%[%]]", ""); -- remove the brackets
pages = pages:gsub("–", "-" ); -- replace endashes with hyphens
pages = pages:gsub("&%w+;", "-" ); -- and replace HTML entities (– etc.) with hyphens; do we need to replace numerical entities like   and the like?
pages = pages:gsub ('%b<>', ''); -- remove html-like tags; spans are added to <Pages> by utilities.hyphen_to_dash() which should not appear in COinS metadata
return pages;
end
--[=[-------------------------< C O I N S _ R E P L A C E _ M A T H _ S T R I P M A R K E R >------------------
There are three options for math markup rendering that depend on the editor's math preference settings. These
settings are at [[Special:Preferences#mw-prefsection-rendering]] and are
PNG images
TeX source
MathML with SVG or PNG fallback
All three are heavy with HTML and CSS which doesn't belong in the metadata.
Without this function, the metadata saved in the raw wikitext contained the rendering determined by the settings
of the last editor to save the page.
This function gets the rendered form of an equation according to the editor's preference before the page is saved. It
then searches the rendering for the text equivalent of the rendered equation and replaces the rendering with that so
that the page is saved without extraneous HTML/CSS markup and with a reasonably readable text form of the equation.
When a replacement is made, this function returns true and the value with replacement; otherwise false and the initial
value. To replace multipe equations it is necessary to call this function from within a loop.
]=]
local function coins_replace_math_stripmarker (value)
local stripmarker = cfg.stripmarkers['math'];
local rendering = value:match (stripmarker); -- is there a math stripmarker
if not rendering then -- when value doesn't have a math stripmarker, abandon this test
return false, value;
end
rendering = mw.text.unstripNoWiki (rendering); -- convert stripmarker into rendered value (or nil? ''? when math render error)
if rendering:match ('alt="[^"]+"') then -- if PNG math option
rendering = rendering:match ('alt="([^"]+)"'); -- extract just the math text
elseif rendering:match ('$%s+.+%s+%$') then -- if TeX math option; $ is legit character that is escapes as \$
rendering = rendering:match ('$%s+(.+)%s+%$') -- extract just the math text
elseif rendering:match ('<annotation[^>]+>.+</annotation>') then -- if MathML math option
rendering = rendering:match ('<annotation[^>]+>(.+)</annotation>') -- extract just the math text
else
return false, value; -- had math stripmarker but not one of the three defined forms
end
return true, value:gsub (stripmarker, rendering, 1);
end
--[[--------------------------< C O I N S _ C L E A N U P >----------------------------------------------------
Cleanup parameter values for the metadata by removing or replacing invisible characters and certain HTML entities.
2015-12-10: there is a bug in mw.text.unstripNoWiki (). It replaces math stripmarkers with the appropriate content
when it shouldn't. See https://phabricator.wikimedia.org/T121085 and Wikipedia_talk:Lua#stripmarkers_and_mw.text.unstripNoWiki.28.29
TODO: move the replacement patterns and replacement values into a table in /Configuration similar to the invisible
characters table?
]]
local function coins_cleanup (value)
local replaced = true; -- default state to get the do loop running
while replaced do -- loop until all math stripmarkers replaced
replaced, value = coins_replace_math_stripmarker (value); -- replace math stripmarker with text representation of the equation
end
value = value:gsub (cfg.stripmarkers['math'], "MATH RENDER ERROR"); -- one or more couldn't be replaced; insert vague error message
value = mw.text.unstripNoWiki (value); -- replace nowiki stripmarkers with their content
value = value:gsub ('<span class="nowrap" style="padding%-left:0%.1em;">'(s?)</span>', "'%1"); -- replace {{'}} or {{'s}} with simple apostrophe or apostrophe-s
value = value:gsub (' ', ' '); -- replace entity with plain space
value = value:gsub ('\226\128\138', ' '); -- replace hair space with plain space
if not mw.ustring.find (value, cfg.indic_script) then -- don't remove zero-width joiner characters from indic script
value = value:gsub ('‍', ''); -- remove ‍ entities
value = mw.ustring.gsub (value, '[\226\128\141\226\128\139\194\173]', ''); -- remove zero-width joiner, zero-width space, soft hyphen
end
value = value:gsub ('[\009\010\013 ]+', ' '); -- replace horizontal tab, line feed, carriage return with plain space
return value;
end
--[[--------------------------< C O I N S >--------------------------------------------------------------------
COinS metadata (see <http://ocoins.info/>) allows automated tools to parse the citation information.
]]
local function COinS(data, class)
if 'table' ~= type(data) or nil == next(data) then
return '';
end
for k, v in pairs (data) do -- spin through all of the metadata parameter values
if 'ID_list' ~= k and 'Authors' ~= k then -- except the ID_list and Author tables (author nowiki stripmarker done when Author table processed)
data[k] = coins_cleanup (v);
end
end
local ctx_ver = "Z39.88-2004";
-- treat table strictly as an array with only set values.
local OCinSoutput = setmetatable( {}, {
__newindex = function(self, key, value)
if is_set(value) then
rawset( self, #self+1, table.concat{ key, '=', mw.uri.encode( remove_wiki_link( value ) ) } );
end
end
});
if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn', 'journal', 'news', 'magazine'}) or
(in_array (class, {'conference', 'interview', 'map', 'press release', 'web'}) and is_set(data.Periodical)) or
('citation' == class and is_set(data.Periodical) and not is_set (data.Encyclopedia)) then
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:journal"; -- journal metadata identifier
if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) then -- set genre according to the type of citation template we are rendering
OCinSoutput["rft.genre"] = "preprint"; -- cite arxiv, cite biorxiv, cite citeseerx, cite medrxiv, cite ssrn
elseif 'conference' == class then
OCinSoutput["rft.genre"] = "conference"; -- cite conference (when Periodical set)
elseif 'web' == class then
OCinSoutput["rft.genre"] = "unknown"; -- cite web (when Periodical set)
else
OCinSoutput["rft.genre"] = "article"; -- journal and other 'periodical' articles
end
OCinSoutput["rft.jtitle"] = data.Periodical; -- journal only
OCinSoutput["rft.atitle"] = data.Title; -- 'periodical' article titles
-- these used only for periodicals
OCinSoutput["rft.ssn"] = data.Season; -- keywords: winter, spring, summer, fall
OCinSoutput["rft.quarter"] = data.Quarter; -- single digits 1->first quarter, etc.
OCinSoutput["rft.chron"] = data.Chron; -- free-form date components
OCinSoutput["rft.volume"] = data.Volume; -- does not apply to books
OCinSoutput["rft.issue"] = data.Issue;
OCinSoutput['rft.artnum'] = data.ArticleNumber; -- {{cite journal}} only
OCinSoutput["rft.pages"] = data.Pages; -- also used in book metadata
elseif 'thesis' ~= class then -- all others except cite thesis are treated as 'book' metadata; genre distinguishes
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:book"; -- book metadata identifier
if 'report' == class or 'techreport' == class then -- cite report and cite techreport
OCinSoutput["rft.genre"] = "report";
elseif 'conference' == class then -- cite conference when Periodical not set
OCinSoutput["rft.genre"] = "conference";
OCinSoutput["rft.atitle"] = data.Chapter; -- conference paper as chapter in proceedings (book)
elseif in_array (class, {'book', 'citation', 'encyclopaedia', 'interview', 'map'}) then
if is_set (data.Chapter) then
OCinSoutput["rft.genre"] = "bookitem";
OCinSoutput["rft.atitle"] = data.Chapter; -- book chapter, encyclopedia article, interview in a book, or map title
else
if 'map' == class or 'interview' == class then
OCinSoutput["rft.genre"] = 'unknown'; -- standalone map or interview
else
OCinSoutput["rft.genre"] = 'book'; -- book and encyclopedia
end
end
else -- {'audio-visual', 'AV-media-notes', 'DVD-notes', 'episode', 'interview', 'mailinglist', 'map', 'newsgroup', 'podcast', 'press release', 'serial', 'sign', 'speech', 'web'}
OCinSoutput["rft.genre"] = "unknown";
end
OCinSoutput["rft.btitle"] = data.Title; -- book only
OCinSoutput["rft.place"] = data.PublicationPlace; -- book only
OCinSoutput["rft.series"] = data.Series; -- book only
OCinSoutput["rft.pages"] = data.Pages; -- book, journal
OCinSoutput["rft.edition"] = data.Edition; -- book only
OCinSoutput["rft.pub"] = data.PublisherName; -- book and dissertation
else -- cite thesis
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:dissertation"; -- dissertation metadata identifier
OCinSoutput["rft.title"] = data.Title; -- dissertation (also patent but that is not yet supported)
OCinSoutput["rft.degree"] = data.Degree; -- dissertation only
OCinSoutput['rft.inst'] = data.PublisherName; -- book and dissertation
end
-- NB. Not currently supported are "info:ofi/fmt:kev:mtx:patent", "info:ofi/fmt:kev:mtx:dc", "info:ofi/fmt:kev:mtx:sch_svc", "info:ofi/fmt:kev:mtx:ctx"
-- and now common parameters (as much as possible)
OCinSoutput["rft.date"] = data.Date; -- book, journal, dissertation
for k, v in pairs( data.ID_list ) do -- what to do about these? For now assume that they are common to all?
if k == 'ISBN' then v = v:gsub( "[^-0-9X]", "" ); end
local id = cfg.id_handlers[k].COinS;
if string.sub( id or "", 1, 4 ) == 'info' then -- for ids that are in the info:registry
OCinSoutput["rft_id"] = table.concat{ id, "/", v };
elseif string.sub (id or "", 1, 3 ) == 'rft' then -- for isbn, issn, eissn, etc. that have defined COinS keywords
OCinSoutput[ id ] = v;
elseif 'url' == id then -- for urls that are assembled in ~/Identifiers; |asin= and |ol=
OCinSoutput["rft_id"] = table.concat ({data.ID_list[k], "#id-name=", cfg.id_handlers[k].label});
elseif id then -- when cfg.id_handlers[k].COinS is not nil so urls created here
OCinSoutput["rft_id"] = table.concat{ cfg.id_handlers[k].prefix, v, cfg.id_handlers[k].suffix or '', "#id-name=", cfg.id_handlers[k].label }; -- others; provide a URL and indicate identifier name as #fragment (human-readable, but transparent to browsers)
end
end
local last, first;
for k, v in ipairs( data.Authors ) do
last, first = coins_cleanup (v.last), coins_cleanup (v.first or ''); -- replace any nowiki stripmarkers, non-printing or invisible characters
if k == 1 then -- for the first author name only
if is_set(last) and is_set(first) then -- set these COinS values if |first= and |last= specify the first author name
OCinSoutput["rft.aulast"] = last; -- book, journal, dissertation
OCinSoutput["rft.aufirst"] = first; -- book, journal, dissertation
elseif is_set(last) then
OCinSoutput["rft.au"] = last; -- book, journal, dissertation -- otherwise use this form for the first name
end
else -- for all other authors
if is_set(last) and is_set(first) then
OCinSoutput["rft.au"] = table.concat{ last, ", ", first }; -- book, journal, dissertation
elseif is_set(last) then
OCinSoutput["rft.au"] = last; -- book, journal, dissertation
end
-- TODO: At present we do not report "et al.". Add anything special if this condition applies?
end
end
OCinSoutput.rft_id = data.URL;
OCinSoutput.rfr_id = table.concat{ "info:sid/", mw.site.server:match( "[^/]*$" ), ":", data.RawPage };
-- TODO: Add optional extra info:
-- rfr_dat=#REVISION<version> (referrer private data)
-- ctx_id=<data.RawPage>#<ref> (identifier for the context object)
-- ctx_tim=<ts> (timestamp in format yyyy-mm-ddThh:mm:ssTZD or yyyy-mm-dd)
-- ctx_enc=info:ofi/enc:UTF-8 (character encoding)
OCinSoutput = setmetatable( OCinSoutput, nil );
-- sort with version string always first, and combine.
-- table.sort( OCinSoutput );
table.insert( OCinSoutput, 1, "ctx_ver=" .. ctx_ver ); -- such as "Z39.88-2004"
return table.concat(OCinSoutput, "&");
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)
cfg = cfg_table_ptr;
has_accept_as_written = utilities_page_ptr.has_accept_as_written; -- import functions from selected Module:Citation/CS1/Utilities module
is_set = utilities_page_ptr.is_set;
in_array = utilities_page_ptr.in_array;
remove_wiki_link = utilities_page_ptr.remove_wiki_link;
strip_apostrophe_markup = utilities_page_ptr.strip_apostrophe_markup;
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
make_coins_title = make_coins_title,
get_coins_pages = get_coins_pages,
COinS = COinS,
set_selected_modules = set_selected_modules,
}
2eba9cn0u4yseyeujt1vmrglxrgcllo
وحدة:Citation/CS1/Configuration/شرح
828
63172
275394
2026-09-15T08:56:59Z
حبيشان
29714
استيراد من ar.wiktionary.org
275394
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
oy17t2cumwnrd0mbvyjn7zb9bmsgvfd
وحدة:Citation/CS1/Configuration/ملعب
828
63173
275395
2026-09-15T08:57:03Z
حبيشان
29714
استيراد من ar.wiktionary.org
275395
Scribunto
text/plain
local lang_obj = mw.language.getContentLanguage(); -- make a language object for the local language; used here for languages and dates
--[[--------------------------< S E T T I N G S >--------------------------------------------------------------
boolean settings used to control various things. these setting located here to make them easy to find
]]
-- these settings local to this module only
local local_digits_from_mediawiki = false; -- for i18n; when true, module fills date_names['local_digits'] from MediaWiki; manual fill required else; always false at en.wiki
local local_date_names_from_mediawiki = false; -- for i18n; when true, module fills date_names['local']['long'] and date_names['local']['short'] from MediaWiki;
-- manual translation required else; ; always false at en.wiki
-- these settings exported to other modules
local use_identifier_redirects = false; -- when true use redirect name for identifier label links; always true at en.wiki
local local_lang_cat_enable = false; -- when true categorizes pages where |language=<local wiki's language>; always false at en.wiki
local date_name_auto_xlate_enable = false; -- when true translates English month-names to the local-wiki's language month names; always false at en.wiki
local date_digit_auto_xlate_enable = false; -- when true translates Western date digit to the local-wiki's language digits (date_names['local_digits']); always false at en.wiki
local enable_sort_keys = true; -- when true module adds namespace sort keys to error and maintenance category links
local suppress_archive_today_urls = true; -- when true module suppresses all parameters with an archive.today url and any deprendent parameters
--[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------
قائمة النطاقات التي لا ينبغي أن تدرج فيها تصانيف تتبع أخطاء الاستشهادات
هي بالضبط كما تضع notracking = true
ملاحظة: يجب استخدام (_) بدلا من المسافات في أسماء النطاقات.
]]
local uncategorized_namespaces_t = {[2]=true}; -- init with user namespace id
for k, _ in pairs (mw.site.talkNamespaces) do -- add all talk namespace ids
uncategorized_namespaces_t[k] = true;
end
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', '/[Aa]rchive', '/ملعب', '/مختبر'} -- list of Lua patterns found in page names of pages we should not categorize
--[[
at en.wiki Greek characters are used as sort keys for certain items in a category so that those items are
placed at the end of a category page. See Wikipedia:Categorization#Sort_keys. That works well for en.wiki
because English is written using the Latn script. This may not work well for other languages. At en.wiki it
is desireable to place content from certain namespaces at the end of a category listing so the module adds sort
keys to error and maintenance category links when rendering a cs1|2 template on a page in that namespace.
i18n: if this does not work well for your language, set <enable_sort_keys> to false.
]]
local name_space_sort_keys = { -- sort keys to be used with these namespaces:
[4] = 'ω', -- wikipedia; omega
[10] = 'τ', -- template; tau
[118] = 'Δ', -- draft; delta
['other'] = 'ο', -- all other non-talk namespaces except main (article); omicron
}
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
local messages = {
['agency'] = '$1 $2', -- $1 is sepc, $2 is agency
['archived-dead'] = 'مؤرشف من $1 في $2',
['archived-live'] = '$1 من الأصل في $2',
['archived-unfit'] = 'مؤرشف من الأصل في ',
['archived'] = 'مؤرشف',
['by'] = 'بواسطة', -- contributions to authored works: introduction, foreword, afterword
['cartography'] = 'رسم الخرائط من $1',
['editor'] = 'المحرر',
['editors'] = 'المحررون',
['edition'] = '(ط. $1)',
['episode'] = 'حلقة $1',
['et al'] = 'وآخرون',
['in'] = 'في', -- edited works
['inactive'] = ' ($1 غير نشط)', -- $1 is date which the doi was found to be broken in
['inset'] = '$1 inset',
['interview'] = 'مقابلة مع $1',
invisible_1 = '$1 $2', -- $1 stripmarker name; $2 is text from <invisible_chars[1]>
invisible_2 = 'الحرف $1', -- $1 character name from <invisible_chars[1]>
['mismatch'] = '<code class="cs1-code">|$1=</code> لا يطابق <code class="cs1-code">|$2=</code>', -- $1 is year param name; $2 is date param name
['newsgroup'] = 'نيوز جروب: $1',
['notitle'] = 'No title', -- for |title=(()) and (in the future) |title=none
['original'] = 'الأصل',
['origdate'] = ' [$1]',
['published'] = ' (نُشِر في $1)',
['retrieved'] = 'اطلع عليه بتاريخ $1',
['season'] = 'موسم $1',
['section'] = 'قسم $1',
['sections'] = 'الأقسام $1',
['series'] = '$1 $2', -- $1 is sepc, $2 is series
['seriesnum'] = 'سلسلة $1',
['translated'] = 'ترجمة: $1',
['type'] = ' ($1)', -- for titletype
wikidata = 'ويكي بيانات', -- these used for interwikilinked author/editor/... names
wikipedia = 'ويكيبيديا',
wikisource = 'ويكي مصدر',
['written'] = 'كتب في $1',
['vol'] = '$1 ج. $2', -- $1 is sepc; bold journal style volume is in presentation{}
['vol-no'] = '$1 ج. $2 رقم $3', -- sepc, volume, issue (alternatively insert $1 after $2, but then we'd also have to change capitalization)
['issue'] = '$1 ع. $2', -- $1 is sepc
['art'] = '$1 المقال $2', -- $1 is sepc; for {{cite conference}} only
['vol-art'] = '$1 ع. $2, المقال $3', -- sepc, volume, article-number; for {{cite conference}} only
['j-vol'] = '$1 $2', -- sepc, volume; bold journal volume is in presentation{}
['j-issue'] = ' ع. $1',
['j-article-num'] = ' $1', -- TODO: any punctuation here? static text?
['nopp'] = '$1 $2', -- page(s) without prefix; $1 is sepc
['p-prefix'] = '$1 ص. $2', -- $1 is sepc
['pp-prefix'] = '$1 ص. $2', -- $1 is sepc
['j-page(s)'] = ': $1', -- same for page and pages
['sheet'] = '$1 ورقة $2', -- $1 is sepc
['sheets'] = '$1 أوراق $2', -- $1 is sepc
['j-sheet'] = ': ورقة $1',
['j-sheets'] = ': أوراق $1',
['language'] = '(ب$1)',
['via'] = ' – عبر $1',
['event'] = 'وقع ذلك في',
['minutes'] = '$1 دقيقة في', -- $1 is the number of minutes
-- Determines the location of the help page
['help page link'] = 'مساعدة:أخطاء الاستشهاد',
['help page label'] = 'مساعدة',
-- categories
['cat wikilink'] = '[[تصنيف:$1]]', -- $1 is the category name
['cat wikilink sk'] = '[[تصنيف:$1|$2]]', -- $1 is the category name; $2 is namespace sort key
[':cat wikilink'] = '[[:تصنيف:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'اتصال مع حالة خطأ غير معروف',
["unknown_date"] = '<abbr class="abbr" title="دون تاريخ">د.ت.</abbr>',
['unknown_ID_key'] = 'Unrecognized ID key: ', -- an ID key in id_handlers not found in ~/Identifiers func_map{}
['unknown_ID_access'] = 'Unrecognized ID access keyword: ', -- an ID access keyword in id_handlers not found in keywords_lists['id-access']{}
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] به أخطاء</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).', -- $1 is template link; $2 is anchor ID
['warning_msg_m'] = '<span style="color:#085"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] بحاجة لصيانة</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).' -- $1 is template link; $2 is anchor ID
}
--[[--------------------------< C I T A T I O N _ C L A S S _ M A P >------------------------------------------
this table maps the value assigned to |CitationClass= in the cs1|2 templates to the canonical template name when
the value assigned to |CitationClass= is different from the canonical template name. |CitationClass= values are
used as class attributes in the <cite> tag that encloses the citation so these names may not contain spaces while
the canonical template name may. These names are used in warning_msg_e and warning_msg_m to create links to the
template's documentation when an article is displayed in preview mode.
]]
local citation_class_map_t = { -- TODO: in Module:Cite/config write a function to use this table
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 = 'استشهاد بويب',
}
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This table provides Lua patterns for the phrase "et al" and variants in name text
(author, editor, etc.). The main module uses these to identify and emit the 'etal' message.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
"%[%[ *[Ee][Tt]%.? *[Aa][Ll]%.? *%]%]", -- a wikilinked form
"%(%( *[Ee][Tt]%.? *[Aa][Ll]%.? *%)%)", -- a double-bracketed form (to counter partial removal of ((...)) syntax)
"[%(%[] *[Ee][Tt]%.? *[Aa][Ll]%.? *[%)%]]", -- a bracketed form
}
--[[--------------------------< P R E S E N T A T I O N >------------------------
Fixed presentation markup. Originally part of citation_config.messages it has
been moved into its own, more semantically correct place.
]]
local presentation =
{
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
['hidden-error'] = '<span class="cs1-hidden-error citation-comment">$1</span>',
['visible-error'] = '<span class="cs1-visible-error citation-comment">$1</span>',
['hidden-maint'] = '<span class="cs1-maint citation-comment">$1</span>',
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal CSS
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['cite'] = '<cite class="$1">$2</cite>', -- for use when citation does not have a namelist and |ref= not set so no id="..." attribute
['cite-id'] = '<cite id="$1" class="$2">$3</cite>', -- for use when when |ref= is set or when citation has a namelist
['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['interwiki'] = ' <span class="cs1-format">[ب$1]</span>', -- for interwiki-language-linked author, editor, etc
['interproj'] = ' <span class="cs1-format">[في $1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- narrow no-break space   may work better than nowrap CSS. Or not? Browser support?
['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon
['free'] = {class='id-lock-free', title='يمكن الوصول إليها بحرية'}, -- classes defined in Module:Citation/CS1/styles.css
['registration'] = {class='id-lock-registration', title='يمكن التسجيل مجانًا'},
['limited'] = {class='id-lock-limited', title='الوصول المجاني محدود، وعادة ما يتطلب الاشتراك'},
['subscription'] = {class='id-lock-subscription', title='يتطلب اشتراك مدفوع'},
['interwiki-icon'] = '<span class="$1" title="$2">$3</span>',
['class-wikisource'] = 'cs1-ws-icon',
['italic-title'] = "''$1''",
['kern-left'] = '<span class="cs1-kern-left"></span>$1', -- spacing to use when title contains leading single or double quote mark
['kern-right'] = '$1<span class="cs1-kern-right"></span>', -- spacing to use when title contains trailing single or double quote mark
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)
['ocins'] = '<span title="$1" class="Z3988"></span>',
['parameter'] = '<code class="cs1-code">|$1=</code>',
['ps_cs1'] = '.', -- CS1 style postscript (terminal) character
['ps_cs2'] = '', -- CS2 style postscript (terminal) character (empty string)
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content
['quoted-title'] = '"$1"',
['sep_cs1'] = '.', -- CS1 element separator
['sep_cs2'] = '،', -- CS2 separator
['sep_nl'] = '؛', -- CS1|2 style name-list separator between names is a semicolon
['sep_nl_and'] = ' و ', -- used as last nl sep when |name-list-style=and and list has 2 items
['sep_nl_end'] = '؛ و ', -- used as last nl sep when |name-list-style=and and list has 3+ names
['sep_name'] = '، ', -- CS1|2 style last/first separator is <comma><space>
['sep_nl_vanc'] = '،', -- Vancouver style name-list separator between authors is a comma
['sep_name_vanc'] = ' ', -- Vancouver style last/first separator is a space
['sep_list'] = '، ', -- used for |language= when list has 3+ items except for last sep which uses sep_list_end
['sep_list_pair'] = ' و', -- used for |language= when list has 2 items
['sep_list_end'] = '، و', -- used as last list sep for |language= when list has 3+ items
['trans-italic-title'] = "[''$1'']",
['trans-quoted-title'] = '[$1]', -- for |trans-title= and |trans-quote=
['vol-bold'] = '$1 ج. $2', -- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}
}
--[[--------------------------< A L I A S E S >---------------------------------
جدول الوسائط البديلة أو المكررة لنفس الوسيط الأساسي.
Parameter names on the right side in the assignments in this table must have been
defined in the Whitelist before they will be recognized as valid parameter names
]]
local aliases = {
['AccessDate'] = {'تاريخ-الوصول','تاريخ الوصول', 'تاريخ وصول', 'access-date', 'accessdate'}, -- Used by InternetArchiveBot
['Agency'] = {'وكالة', 'agency'},
['ArchiveDate'] = {'تاريخ-الأرشيف', 'تاريخ أرشيف', 'تاريخ الأرشيف', 'archive-date', 'archivedate'}, -- Used by InternetArchiveBot
['ArchiveFormat'] = {'صيغة-الأرشيف', 'صيغة الأرشيف', 'archive-format'},
['ArchiveURL'] = {'مسار-الأرشيف', 'مسار أرشيف', 'مسار الأرشيف', 'archive-url', 'archiveurl'}, -- Used by InternetArchiveBot
['ArticleNumber'] = {'رقم-المقالة', 'article-number'},
['ASINTLD'] = 'asin-tld',
['At'] = {'في', 'at'}, -- Used by InternetArchiveBot
--##TOREVISE
['Authors'] = {'المؤلفون', 'المؤلفين', 'authors', 'people', 'host', 'credits', 'أشخاص'},
['BookTitle'] = {'عنوان الكتاب', 'book-title', 'booktitle', 'عنوان المؤتمر'},
['Cartography'] = 'cartography',
['Chapter'] = {'الفصل', 'chapter', 'contribution', 'entry', 'article', 'section'},
['ChapterFormat'] = {'صيغة-الفصل', 'صيغة الفصل', 'تنسيق الفصل', 'chapter-format', 'contribution-format', 'entry-format',
'article-format', 'section-format'},
['ChapterURL'] = {'مسار-الفصل', 'مسار الفصل', 'chapter-url', 'contribution-url', 'entry-url', 'article-url', 'section-url'}, -- Used by InternetArchiveBot
['ChapterUrlAccess'] = {'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'},
['ConferenceFormat'] = 'conference-format',
['ConferenceURL'] = {'مسار-المؤتمر', 'مسار المؤتمر', 'conference-url'}, -- Used by InternetArchiveBot
['Date'] = {'تاريخ', 'التاريخ', 'date', 'air-date', 'airdate'},
['HijriDate'] = {'التاريخ الهجري', 'تاريخ هجري', 'hijri-date'},
['Degree'] = {'الدرجة', 'degree'},
['DF'] = 'df',
['DisplayAuthors'] = {'إظهار-المؤلفين', 'إظهار المؤلفين', 'display-authors', 'display-subjects'},
['DisplayContributors'] = 'display-contributors',
['DisplayEditors'] = {'إظهار-المحررين', 'إظهار المحررين', 'display-editors'},
['DisplayInterviewers'] = 'display-interviewers',
['DisplayTranslators'] = 'display-translators',
['Docket'] = 'docket',
['DoiBroken'] = 'doi-broken-date',
['Edition'] = {'طبعة', 'الإصدار', 'الاصدار', 'إصدار', 'اصدار', 'الطبعة', 'رقم الطبعة', 'edition'},
['Embargo'] = 'pmc-embargo-date',
['Encyclopedia'] = {'موسوعة', 'encyclopedia', 'encyclopaedia', 'اسم المعجم', 'dictionary', 'اسم الموسوعة'}, -- cite encyclopedia only
['Episode'] = {'الحلقة', 'episode'}, -- cite serial only TODO: make available to cite episode?
['Format'] = {'صيغة', 'التنسيق', 'format', 'تنسيق', 'الصيغة'},
['ID'] = {'id', 'ID', 'المعرف'},
['Inset'] = {'inset', 'مجموعة'},
['Issue'] = {'العدد', 'issue', 'number'},
['Language'] = {'لغة', 'اللغة', 'language', 'lang'},
['MailingList'] = {'القائمة البريدية', 'mailing-list'}, -- cite mailing list only
['Map'] = {'الخريطة', 'map'}, -- cite map only
['MapFormat'] = {'صيغة الخريطة', 'map-format'}, -- cite map only
['MapURL'] = {'مسار الخريطة', 'map-url'}, -- cite map only -- Used by InternetArchiveBot
['MapUrlAccess'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
['Minutes'] = {'دقيقة', 'minutes'},
['Mode'] = 'mode',
['NameListStyle'] = 'name-list-style',
['Network'] = {'الشبكة', 'network'},
['Newsgroup'] = {'اسم المجموعة', 'newsgroup'}, -- cite newsgroup only
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'no-tracking', 'template-doc-demo'},
['Number'] = 'number', -- this case only for cite techreport
['OrigDate'] = {'orig-date', 'orig-year', 'origyear', 'سنة النشر الأصلية'},
['Others'] = {'آخرون','others', 'المحاور', 'المحاورون', 'المحقق'},
['Page'] = {'صفحة', 'p', 'الصفحة', 'page', 'الصفحة', 'رقم الصفحة', 'رقم صفحة','ص'}, -- Used by InternetArchiveBot
['Pages'] = {'صفحات', 'الصفحات', 'pp', 'أرقام الصفحات', 'أرقم صفحات', 'pages'}, -- Used by InternetArchiveBot
['Periodical'] = {
'صحيفة',
'journal',
'دورية محكمة',
'مجلة',
'magazine',
'اسم المجلة',
'newspaper',
'جريدة',
'اسم الصحيفة',
'دورية',
'periodical',
'موقع',
'website',
'الموقع',
'عمل',
'work',
'العمل',
'من عمل',
},
['Place'] = { 'مكان', 'place', 'المكان', 'مقر', 'المقر', 'location'},
['PostScript'] = 'postscript',
['PublicationDate'] = {'تاريخ-النشر', 'تاريخ النشر', 'publication-date'},
['PublicationPlace'] = {'مكان-النشر', 'مكان النشر', 'publication-place'},
['PublisherName'] = {'ناشر', 'publisher', 'الناشر', 'institution', 'مصدر', 'الموزع', 'المصدر', 'المؤسسة'},
['Quote'] = {'اقتباس', 'quote', 'quotation'},
['QuotePage'] = 'quote-page',
['QuotePages'] = 'quote-pages',
['Ref'] = {'مرجع', 'ref'},
['Scale'] = {'المقياس', 'scale'},
['ScriptChapter'] = {'script-chapter', 'script-contribution', 'script-entry',
'script-article', 'script-section'},
['ScriptEncyclopedia'] = {'script-encyclopedia', 'script-encyclopaedia'}, -- cite encyclopedia only
['ScriptMap'] = 'script-map',
['ScriptPeriodical'] = {'script-journal', 'script-magazine', 'script-newspaper',
'script-periodical', 'script-website', 'script-work'},
['ScriptQuote'] = 'script-quote',
['ScriptTitle'] = 'script-title', -- Used by InternetArchiveBot
['Season'] = {'الموسم', 'season'},
['Sections'] = {'الأقسام', 'sections'}, -- cite map only
['Series'] = {'سلسلة', 'series', 'version'},
['SeriesLink'] = {'وصلة-سلسلة', 'وصلة سلسلة', 'series-link', 'مسار المسلسل'},
['SeriesNumber'] = {'رقم-سلسلة', 'رقم سلسلة', 'series-number', 'series-no'},
['Sheet'] = {'ورقة', 'sheet'}, -- cite map only
['Sheets'] = {'أوراق', 'sheets'}, -- cite map only
['Station'] = {'محطة', 'station'},
['Time'] = {'الوقت', 'time'},
['TimeCaption'] = 'time-caption',
['Title'] = {'عنوان', 'title', 'العنوان'},
['TitleLink'] = {'وصلة-العنوان', 'وصلة العنوان', 'title-link', 'episode-link', 'وصلة الحلقة'},
['TitleNote'] = {'title-note', 'department'},
['TitleType'] = {'النوع', 'type', 'medium'},
['TransChapter'] = {'trans-article', 'trans-chapter', 'trans-contribution',
'trans-entry', 'trans-section'},
['Transcript'] = 'transcript',
['TranscriptFormat'] = 'transcript-format',
['TranscriptURL'] = 'transcript-url', -- Used by InternetArchiveBot
['TransEncyclopedia'] = {'trans-encyclopedia', 'trans-encyclopaedia'}, -- cite encyclopedia only
['TransMap'] = 'trans-map', -- cite map only
['TransPeriodical'] = {'trans-journal', 'trans-magazine', 'trans-newspaper',
'trans-periodical', 'trans-website', 'trans-work'},
['TransQuote'] = 'trans-quote',
['TransTitle'] = {'عنوان مترجم', 'العنوان بالعربي', 'العنوان الأجنبي', 'عنوان أجنبي', 'trans-title', 'العنوان المترجم'}, -- Used by InternetArchiveBot
['URL'] = {'مسار', 'المسار','وصلة', 'url', 'URL'}, -- Used by InternetArchiveBot
['UrlAccess'] = {'url-access', 'التسجيل'}, -- Used by InternetArchiveBot
['UrlStatus'] = {'url-status','حالة المسار'}, -- Used by InternetArchiveBot
['Vauthors'] = {'vauthors', 'عدة مؤلفين'},
['Veditors'] = {'veditors', 'عدة محررين' },
['Via'] = {'عبر', 'via'},
['Volume'] = {'المجلد', 'volume', 'الجزء', 'ج'},
['wikidatacite'] = 'wikidatacite',
['Year'] = {'سنة', 'year', 'السنة'},
['AuthorList-First'] = {
'الأول#',
'مؤلف#-الأول',
'مؤلف# الأول',
'أول#',
'first#',
'اول#',
'الاول#',
'author-first#',
'مؤلف الأول#',
'author#-first',
'given#',
'author-given#',
'مؤلف-الأول#',
'author#-given'
},
['AuthorList-Last'] = {
'مؤلف#',
'الأخير#',
'مؤلف#-الأخير',
'مؤلف# الأخير',
'last#',
'author-last#',
'مؤلف-الأخير#',
'author#-last',
'surname#',
'الأخير#',
'author-surname#',
'author#-surname',
'author#',
'المؤلف#',
'أخير#',
'اخير#',
'مؤلف الأخير#',
'subject#',
'host#',
'الموضوع'
},
['AuthorList-Link'] = {
'وصلة مؤلف#',
'مؤلف#-وصلة',
'author-link#',
'author#-link',
'subject-link#',
'subject#-link',
'authorlink#',
'author#link',
'مؤلف# وصلة',
'وصلة-مؤلف#',
'وصلة المؤلف#',
'وصلة-المؤلف#'
},
['AuthorList-Mask'] = {
'مؤلف#-قناع',
'author-mask#',
'author#-mask',
'subject-mask#',
'subject#-mask'
},
['ContributorList-First'] = {
'مشارك#-الأول',
'contributor-first#',
'مشارك-الأول#',
'contributor#-first',
'contributor-given#',
'contributor#-given'
},
['ContributorList-Last'] = {
'مشارك#',
'مشارك#-الأخير',
'contributor#',
'contributor-last#',
'مشارك-الأخير#',
'contributor#-last',
'contributor-surname#',
'contributor#-surname'
},
['ContributorList-Link'] = {
'مشارك#-وصلة',
'contributor-link#',
'contributor#-link'
},
['ContributorList-Mask'] = {
'مشارك#-قناع',
'contributor-mask#',
'contributor#-mask'
},
['EditorList-First'] = {
'محرر#-الأول',
'محرر-الأول#',
'محرر الأول#',
'editor-first#',
'editor#-first',
'editor-given#',
'محرر# الأول',
'محرر# الأول',
'editor#-given'
},
['EditorList-Last'] = {
'محرر#',
'محرر#-الأخير',
'محرر# الأخير',
'محرر-الأخير#',
'محرر الأخير#',
'editor-last#',
'editor#-last',
'editor-surname#',
'editor#-surname',
'editor#',
'المحرر#'
},
['EditorList-Link'] = {
'وصلة محرر#',
'محرر#-وصلة',
'محرر# وصلة',
'وصلة-محرر#',
'editor-link#',
'editor#-link',
'محرر-وصلة#',
'وصلة-المحرر#',
'وصلة المحرر#'
},
['EditorList-Mask'] = {
'محرر#-قناع',
'editor-mask#',
'editor#-mask'
},
['InterviewerList-First'] = {
'interviewer-first#',
'interviewer#-first',
'interviewer-given#',
'interviewer#-given'
},
['InterviewerList-Last'] = {
'interviewer-last#',
'interviewer#-last',
'interviewer-surname#',
'interviewer#-surname',
'interviewer#'
},
['InterviewerList-Link'] = {'interviewer-link#', 'interviewer#-link'},
['InterviewerList-Mask'] = {'interviewer-mask#', 'interviewer#-mask'},
['TranslatorList-First'] = {
'مترجم#-الأول',
'translator#-first',
'مترجم-الأول#',
'مترجم# الأول',
'مترجم-الأول#',
'مترجم الأول#',
'المترجم-الأول#',
'المترجم#-الأول',
'translator-first#',
'translator-given#',
'translator#-given'
},
['TranslatorList-Last'] = {
'مترجم#',
'مترجم#-الأخير',
'المترجم#',
'translator#',
'translator-last#',
'المترجم-الأخير#',
'المترجم#-الأخير',
'مترجم الأخير#',
'مترجم# الأخير',
'مترجم-الأخير#',
'translator#-last',
'translator-surname#',
'translator#-surname'
},
['TranslatorList-Link'] = {
'وصلة مترجم#',
'مترجم#-وصلة',
'مترجم# وصلة',
'وصلة-مترجم#',
'وصلة المترجم#',
'وصلة-المترجم#',
'translator-link#',
'translator#-link',
'المترجم#-وصلة'
},
['TranslatorList-Mask'] = {
'مترجم#-قناع',
'translator-mask#',
'translator#-mask'
}
}
--[[--------------------------< D E P E N D E N C I E S _ T >--------------------------------------------------
a table of url-holding parameters upon which other parameters are dependent.
this table is used by has_archive_today_url() to suppress parameters that are dependant upon a url-holding parameter
that has as a value an archive.today (or alternate tld) url.
archive.today is deprecated at en.wiki; see Wikipedia:Requests_for_comment/Archive.is_RFC_5
]]
local url_dependency_map_t = { -- table of url-holding parameters and the meta-parameters that are dependent on them
['url'] = {'AccessDate', 'ArchiveURL', 'Format', 'UrlAccess'},
['archive-url'] = {'ArchiveDate', 'ArchiveFormat', 'UrlStatus'},
['archiveurl'] = {'ArchiveDate', 'ArchiveFormat', 'UrlStatus'},
['article-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['chapter-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['conference-url'] = {'ConferenceFormat'},
['contribution-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['entry-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['map-url'] = {'MapFormat', 'MapUrlAccess'},
['section-url'] = {'ChapterFormat', 'ChapterUrlAccess'},
['transcript-url'] = {'TranscriptFormat'},
};
local dependencies_t = {}; -- the table of url-holding parameters and their dependent parameters
for url_param, meta_parameters_t in pairs (url_dependency_map_t) do -- sequence of meta-parameters (indexes) into <aliases> table
local dependant_params_t = {}; -- collection of parameters that are dependent on this <url_param>
for _, meta_parameter in ipairs (meta_parameters_t) do -- for each <aliases> meta-parameter (index)
if 'string' == type (aliases[meta_parameter]) then -- for single parameter names (no aliases), <aliases[meta_parameter]> will be a string
table.insert (dependant_params_t, aliases[meta_parameter]); -- add to this <url_param>'s dependency sequence
else
for _, alias in ipairs (aliases[meta_parameter]) do -- for each alias in aliases[meta_parameter] (aliases['AccessDate'] for example)
table.insert (dependant_params_t, alias); -- add to this <url_param>'s dependency sequence
end
end
end
dependencies_t[url_param] = dependant_params_t; -- add the <url_param> and its dependent parameters
end
--[[--------------------------< P U N C T _ S K I P >---------------------------
builds a table of parameter names that the extraneous terminal punctuation check should not check.
]]
local punct_meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'BookTitle', 'Chapter', 'ScriptChapter', 'ScriptTitle', 'Title', 'TransChapter', 'Transcript', 'TransMap', 'TransTitle', -- title-holding parameters
'AuthorList-Mask', 'ContributorList-Mask', 'EditorList-Mask', 'InterviewerList-Mask', 'TranslatorList-Mask', -- name-list mask may have name separators
'PostScript', 'Quote', 'ScriptQuote', 'TransQuote', 'Ref', -- miscellaneous
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'MapURL', 'TranscriptURL', 'URL', -- URL-holding parameters
}
local url_meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'ID', 'MapURL', 'TranscriptURL', 'URL', -- parameters allowed to hold urls
'Page', 'Pages', 'At', 'QuotePage', 'QuotePages', -- insource locators allowed to hold urls
}
local function build_skip_table (skip_t, meta_params)
for _, meta_param in ipairs (meta_params) do -- for each meta parameter key
local params = aliases[meta_param]; -- get the parameter or the table of parameters associated with the meta parameter name
if 'string' == type (params) then
skip_t[params] = 1; -- just a single parameter
else
for _, param in ipairs (params) do -- get the parameter name
skip_t[param] = 1; -- add the parameter name to the skip table
local count;
param, count = param:gsub ('#', ''); -- remove enumerator marker from enumerated parameters
if 0 ~= count then -- if removed
skip_t[param] = 1; -- add param name without enumerator marker
end
end
end
end
return skip_t;
end
local punct_skip = {};
local url_skip = {};
--[[--------------------------< U R L _ A C C E S S _ M A P >--------------------------------------------------
this table used by the wikipedia library url test, has_twl_url(), which automatically sets a url-access parameter
to 'subscription' when it discovers a wikipedia library url in any of the url-holding paramters used as keys in
this table.
translators: if your wiki uses parameter names for these url-holding parameters and their matching -access parameters,
add your wiki's parameters to this list. Leave the English parameters in place.
TODO: is there a better way to do this?
]]
local url_access_map_t = {
['chapter-url'] = 'chapter-url-access',
['contribution-url'] = 'contribution-url-access',
['entry-url'] = 'entry-url-access',
['article-url'] = 'article-url-access',
['section-url'] = 'section-url-access',
['map-url'] = 'map-url-access',
['mapurl'] = 'map-url-access',
['url'] = 'url-access',
['URL'] = 'url-access'
}
--[[--------------------------< S I N G L E - L E T T E R S E C O N D - L E V E L D O M A I N S >----------
this is a list of tlds that are known to have single-letter second-level domain names. This list does not include
ccTLDs which are accepted in is_domain_name().
]]
local single_letter_2nd_lvl_domains_t = {'cash', 'company', 'foundation', 'media', 'org', 'today'};
--[[-----------< S P E C I A L C A S E T R A N S L A T I O N S >------------
This table is primarily here to support internationalization. Translations in
this table are used, for example, when an error message, category name, etc.,
is extracted from the English alias key. There may be other cases where
this translation table may be useful.
]]
local is_Latn = 'A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191';
local special_case_translation = {
author = 'author',
editor = 'editor',
name_list_params = '$1-name-list parameters', -- $1 is 'author' or 'editor'; used with err_redundant_parameters
['AuthorList'] = 'قائمة المؤلفين', -- used to assemble maintenance category names
['ContributorList'] = 'قائمة المساهمين', -- translation of these names plus translation of the base maintenance category names in maint_cats{} table below
['EditorList'] = 'قائمة المحررين', -- must match the names of the actual categories
['InterviewerList'] = 'قائمة المراجعين', -- this group or translations used by name_has_ed_markup() and name_has_mult_names()
['TranslatorList'] = 'قائمة المترجمين',
-- Lua patterns to match pseudo-titles used by InternetArchiveBot and others as placeholder for unknown |title= value
['archived_copy'] = { -- used with CS1 maint: Archive[d] copy as title
['en'] = '^archived?%s+copy$', -- for English; translators: keep this because templates imported from en.wiki
['local'] = nil, -- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language
},
-- Lua patterns to match generic titles; usually created by bots or reference filling tools
-- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language
-- generic titles and patterns in this table should be lowercase only
-- leave ['local'] nil except when there is a matching generic title in your language
-- boolean 'true' for plain-text searches; 'false' for pattern searches
['generic_titles'] = {
['accept'] = {
},
['reject'] = {
{['en'] = {'^wayback%s+machine$', false}, ['local'] = nil},
{['en'] = {'are you a robot', true}, ['local'] = nil},
{['en'] = {'hugedomains', true}, ['local'] = nil},
{['en'] = {'^[%(%[{<]?no +title[>}%]%)]?$', false}, ['local'] = nil},
{['en'] = {'page not found', true}, ['local'] = nil},
{['en'] = {'subscribe to read', true}, ['local'] = nil},
{['en'] = {'^[%(%[{<]?unknown[>}%]%)]?$', false}, ['local'] = nil},
{['en'] = {'website is for sale', true}, ['local'] = nil},
{['en'] = {'^404', false}, ['local'] = nil},
{['en'] = {'error[ %-]404', false}, ['local'] = nil},
{['en'] = {'internet archive wayback machine', true}, ['local'] = nil},
{['en'] = {'log into facebook', true}, ['local'] = nil},
{['en'] = {'login • instagram', true}, ['local'] = nil},
{['en'] = {'redirecting...', true}, ['local'] = nil},
{['en'] = {'usurped title', true}, ['local'] = nil}, -- added by a GreenC bot
{['en'] = {'wayback machine', true}, ['local'] = nil},
{['en'] = {'webcite query result', true}, ['local'] = nil},
{['en'] = {'wikiwix\'s cache', true}, ['local'] = nil},
{['en'] = {'bot verification', true}, ['local'] = nil},
}
},
-- boolean 'true' for plain-text searches, search string must be lowercase only
-- boolean 'false' for pattern searches
-- leave ['local'] nil except when there is a matching generic name in your language
['generic_names'] = {
['accept'] = {
{['en'] = {'%[%[[^|]*%(author%) *|[^%]]*%]%]', false}, ['local'] = nil},
},
['reject'] = {
{['en'] = {'about us', true}, ['local'] = nil},
{['en'] = {'%f[%a][Aa]dvisor%f[%A]', false}, ['local'] = nil},
{['en'] = {'allmusic', true}, ['local'] = nil},
{['en'] = {'%f[%a][Aa]uthor%f[%A]', false}, ['local'] = nil},
{['en'] = {'^[Bb]ureau$', false}, ['local'] = nil},
{['en'] = {'business', true}, ['local'] = nil},
{['en'] = {'cnn', true}, ['local'] = nil},
{['en'] = {'collaborator', true}, ['local'] = nil},
{['en'] = {'^[Cc]ompany$', false}, ['local'] = nil},
{['en'] = {'contributor', true}, ['local'] = nil},
{['en'] = {'contact us', true}, ['local'] = nil},
{['en'] = {'correspondent', true}, ['local'] = nil},
{['en'] = {'^[Dd]esk$', false}, ['local'] = nil},
{['en'] = {'directory', true}, ['local'] = nil},
{['en'] = {'%f[%(%[][%(%[]%s*eds?%.?%s*[%)%]]?$', false}, ['local'] = nil},
{['en'] = {'[,%.%s]%f[e]eds?%.?$', false}, ['local'] = nil},
{['en'] = {'^eds?[%.,;]', false}, ['local'] = nil},
{['en'] = {'^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]dited%f[%A]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]ditors?%f[%A]', false}, ['local'] = nil},
{['en'] = {'%f[%a][Ee]mail%f[%A]', false}, ['local'] = nil},
{['en'] = {'facebook', true}, ['local'] = nil},
{['en'] = {'google', true}, ['local'] = nil},
{['en'] = {'^[Gg]roup$', false}, ['local'] = nil},
{['en'] = {'home page', true}, ['local'] = nil},
{['en'] = {'^[Ii]nc%.?$', false}, ['local'] = nil},
{['en'] = {'instagram', true}, ['local'] = nil},
{['en'] = {'interviewer', true}, ['local'] = nil},
{['en'] = {'^[Ll]imited$', false}, ['local'] = nil},
{['en'] = {'linkedIn', true}, ['local'] = nil},
{['en'] = {'^[Nn]ews$', false}, ['local'] = nil},
{['en'] = {'[Nn]ews[ %-]?[Rr]oom', false}, ['local'] = nil},
{['en'] = {'pinterest', true}, ['local'] = nil},
{['en'] = {'policy', true}, ['local'] = nil},
{['en'] = {'privacy', true}, ['local'] = nil},
{['en'] = {'reuters', true}, ['local'] = nil},
{['en'] = {'translator', true}, ['local'] = nil},
{['en'] = {'tumblr', true}, ['local'] = nil},
{['en'] = {'twitter', true}, ['local'] = nil},
{['en'] = {'site name', true}, ['local'] = nil},
{['en'] = {'statement', true}, ['local'] = nil},
{['en'] = {'submitted', true}, ['local'] = nil},
{['en'] = {'super.?user', false}, ['local'] = nil},
{['en'] = {'%f['..is_Latn..'][Uu]ser%f[^'..is_Latn..']', false}, ['local'] = nil},
{['en'] = {'updated', true}, ['local'] = nil},
{['en'] = {'verfasser', true}, ['local'] = nil},
}
}
}
--[[--------------------------< D A T E _ N A M E S >----------------------------------------------------------
This table of tables lists local language date names and fallback English date names.
The code in Date_validation will look first in the local table for valid date names.
If date names are not found in the local table, the code will look in the English table.
Because citations can be copied to the local wiki from en.wiki, the English is
required when the date-name translation function date_name_xlate() is used.
In these tables, season numbering is defined by
Extended Date/Time Format (EDTF) Specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard
defines various divisions using numbers 21-41. CS1|2 only supports generic seasons.
EDTF does support the distinction between north and south hemisphere seasons
but CS1|2 has no way to make that distinction.
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
The standard does not address 'named' dates so, for the purposes of CS1|2,
Easter and Christmas are defined here as 98 and 99, which should be out of the
ISO 8601 (EDTF) range of uses for a while.
local_date_names_from_mediawiki is a boolean. When set to:
true – module will fetch local month names from MediaWiki for both date_names['local']['long'] and date_names['local']['short']; this will unconditionally overwrite manual translations
false – module will *not* fetch local month names from MediaWiki
Caveat lector: There is no guarantee that MediaWiki will provide short month names. At your wiki you can test
the results of the MediaWiki fetch in the debug console with this command (the result is alpha sorted):
=mw.dumpObject (p.date_names['local'])
While the module can fetch month names from MediaWiki, it cannot fetch the quarter, season, and named date names
from MediaWiki. Those must be translated manually.
]]
local local_date_names_from_mediawiki = false; -- when false, manual translation required for date_names['local']['long'] and date_names['local']['short']; overwrites manual translations
-- when true, module fetches long and short month names from MediaWiki
local date_names = {
['en'] = { -- English
['long'] = {['January'] = 1, ['February'] = 2, ['March'] = 3, ['April'] = 4, ['May'] = 5, ['June'] = 6, ['July'] = 7, ['August'] = 8, ['September'] = 9, ['October'] = 10, ['octobre'] = 10, ['November'] = 11, ['December'] = 12},
['short'] = {['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12},
['quarter'] = {['First Quarter'] = 33, ['Second Quarter'] = 34, ['Third Quarter'] = 35, ['Fourth Quarter'] = 36},
['season'] = {['Winter'] = 24, ['Spring'] = 21, ['Summer'] = 22, ['Fall'] = 23, ['Autumn'] = 23},
['named'] = {['Easter'] = 98, ['Christmas'] = 99},
},
-- when local_date_names_from_mediawiki = false
['local'] = { -- replace these English date names with the local language equivalents
['long'] = {['يناير'] = 1, ['فبراير'] = 2, ['مارس'] = 3, ['أبريل'] = 4, ['مايو'] = 5, ['يونيو'] = 6, ['يوليو'] = 7, ['أغسطس'] = 8, ['اغسطس'] = 8, ['سبتمبر'] = 9, ['أكتوبر'] = 10, ['نوفمبر'] = 11, ['ديسمبر'] = 12},
['short'] = {['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12},
['quarter'] = {['الربع الأول'] = 33, ['الربع الثاني'] = 34, ['الربع الثالث'] = 35, ['الربع الرابع'] = 36},
['season'] = {['شتاء'] = 24, ['ربيع'] = 21, ['صيف'] = 22, ['خريف'] = 23},
['named'] = {['Easter'] = 98, ['Christmas'] = 99},
--#Added
['hijri'] = {['المحرم'] = 1, ['محرم'] = 1, ['صفر'] = 2, ['ربيع الأول'] = 3, ['ربيع الثاني'] = 4, ['ربيع الآخر'] = 4, ['جمادى الأولى'] = 5, ['جمادى الثانية'] = 6, ['جمادى الآخرة'] = 6, ['رجب'] = 7, ['شعبان'] = 8, ['رمضان'] = 9, ['شوال'] = 10, ['ذو القعدة'] = 11, ['ذو الحجة'] = 12},
['alt-long'] = {['كانون ثاني'] = 1, ['شباط'] = 2, ['آذار'] = 3, ['نيسان'] = 4, ['أيار'] = 5, ['حزيران'] = 6, ['تموز'] = 7, ['آب'] = 8, ['أيلول'] = 9, ['تشرين أول'] = 10, ['تشرين ثاني'] = 11, ['كانون أول'] = 12, ['جانفي'] = 1, ['فيفري'] = 2, ['مارس'] = 3, ['أفريل'] = 4, ['ماي'] = 5, ['جوان'] = 6, ['جويلية'] = 7, ['أوت'] = 8, ['ماي'] = 5, ['يوليوز'] = 7, ['غشت'] = 8, ['شتنبر'] = 9, ['نوفنبر'] = 11, ['دجنبر'] = 12},
},
['inv_local_long'] = {}, -- used in date reformatting & translation; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc.
['inv_local_short'] = {}, -- used in date reformatting & translation; copy of date_names['local'].short where k/v are inverted: [1]='<local name>' etc.
['inv_local_quarter'] = {}, -- used in date translation; copy of date_names['local'].quarter where k/v are inverted: [1]='<local name>' etc.
['inv_local_season'] = {}, -- used in date translation; copy of date_names['local'].season where k/v are inverted: [1]='<local name>' etc.
['inv_local_named'] = {}, -- used in date translation; copy of date_names['local'].named where k/v are inverted: [1]='<local name>' etc.
['inv_local_hijri'] = {}, -- used in date reformatting & translation; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc.
['local_digits'] = {['٠'] = '0', ['١'] = '1', ['٢'] = '2', ['٣'] = '3', ['٤'] = '4', ['٥'] = '5', ['٦'] = '6', ['٧'] = '7', ['٨'] = '8', ['٩'] = '9' }, -- used to convert local language digits to Western 0-9
['xlate_digits'] = {},
--#Added
['nd_patterns'] ={{"^د%.ت%.%a?$","((د%.ت%.)%a?)"},
{"^n%.d%.%a?$", "((n%.d%.)%a?)"},
{"^nd%a?$", "((nd)%a?)"},
{"^دت%a?$", "((دت)%a?)"}},
}
if local_date_names_from_mediawiki then -- if fetching local month names from MediaWiki is enabled
local long_t = {};
local short_t = {};
for i=1, 12 do -- loop 12x and
local name = lang_obj:formatDate('F', '2022-' .. i .. '-1'); -- get long month name for each i
long_t[name] = i; -- save it
name = lang_obj:formatDate('M', '2022-' .. i .. '-1'); -- get short month name for each i
short_t[name] = i; -- save it
end
date_names['local']['long'] = long_t; -- write the long table – overwrites manual translation
date_names['local']['short'] = short_t; -- write the short table – overwrites manual translation
end
-- create inverted date-name tables for reformatting and/or translation
for _, invert_t in pairs {{'long', 'inv_local_long'}, {'short', 'inv_local_short'}, {'quarter', 'inv_local_quarter'}, {'season', 'inv_local_season'}, {'named', 'inv_local_named'}, {'hijri', 'inv_local_hijri'},} do
for name, i in pairs (date_names['local'][invert_t[1]]) do -- this table is ['name'] = i
date_names[invert_t[2]][i] = name; -- invert to get [i] = 'name' for conversions from ymd
end
end
if local_digits_from_mediawiki then -- if fetching local digits from MediaWiki is enabled
local digits_t = {};
for i=0, 9 do -- loop 10x and
digits_t [lang_obj:formatNum (i)] = tostring (i); -- format the loop indexer as local lang table index and assign loop indexer (a string) as the value
end
date_names['local_digits'] = digits_t;
end
for ld, ed in pairs (date_names.local_digits) do -- make a digit translation table for simple date translation from en to local language using local_digits table
date_names.xlate_digits [ed] = ld; -- en digit becomes index with local digit as the value
end
local df_template_patterns = { -- table of redirects to {{Use dmy dates}} and {{Use mdy dates}}
'{{ *[Uu]se +(dmy) +dates *[|}]', -- 1159k -- sorted by approximate transclusion count
'{{ *[Uu]se +(mdy) +dates *[|}]', -- 212k
'{{ *[Uu]se +(MDY) +dates *[|}]', -- 788
'{{ *[Uu]se +(DMY) +dates *[|}]', -- 343
'{{ *([Mm]dy) *[|}]', -- 176
'{{ *[Uu]se *(dmy) *[|}]', -- 156 + 18
'{{ *[Uu]se *(mdy) *[|}]', -- 149 + 11
'{{ *([Dd]my) *[|}]', -- 56
'{{ *[Uu]se +(MDY) *[|}]', -- 5
'{{ *([Dd]MY) *[|}]', -- 3
'{{ *[Uu]se(mdy)dates *[|}]', -- 1
'{{ *[Uu]se +(DMY) *[|}]', -- 0
'{{ *([Mm]DY) *[|}]', -- 0
}
local title_object = mw.title.getCurrentTitle();
local content; -- done this way so that unused templates appear in unused-template-reports; self-transcluded makes them look like they are used
if 10 ~= title_object.namespace then -- all namespaces except Template
content = title_object:getContent() or ''; -- get the content of the article or ''; new pages edited w/ve do not have 'content' until saved; ve does not preview; phab:T221625
end
local function get_date_format ()
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
end
for _, pattern in ipairs (df_template_patterns) do -- loop through the patterns looking for {{Use dmy dates}} or {{Use mdy dates}} or any of their redirects
local start, _, match = content:find(pattern); -- match is the three letters indicating desired date format
if match then
local use_dates_template = content:match ('%b{}', start); -- get the whole template
if use_dates_template:match ('| *cs1%-dates *= *[lsy][sy]?') then -- look for |cs1-dates=publication date length access-/archive-date length
return match:lower() .. '-' .. use_dates_template:match ('| *cs1%-dates *= *([lsy][sy]?)');
else
return match:lower() .. '-all'; -- no |cs1-dates= k/v pair; return value appropriate for use in |df=
end
end
end
end
local global_df; -- TODO: add this to <global_cs1_config_t>?
--[[-----------------< V O L U M E , I S S U E , P A G E S >------------------
These tables hold cite class values (from the template invocation) and identify those templates that support
|volume=, |issue=, and |page(s)= parameters. Cite conference and cite map require further qualification which
is handled in the main module.
]]
local templates_using_volume = {'citation', 'audio-visual', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport', 'thesis'}
local templates_using_issue = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news', 'podcast'}
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}
--[[
These tables control when it is appropriate for {{citation}} to render |volume= and/or |issue=. The parameter
names in the tables constrain {{citation}} so that its renderings match the renderings of the equivalent cs1
templates. For example, {{cite web}} does not support |volume= so the equivalent {{citation |website=...}} must
not support |volume=.
]]
local citation_no_volume_t = { -- {{citation}} does not render |volume= when these parameters are used
'website', 'mailinglist', 'script-website',
}
local citation_issue_t = { -- {{citation}} may render |issue= when these parameters are used
'journal', 'magazine', 'newspaper', 'periodical', 'work',
'script-journal', 'script-magazine', 'script-newspaper', 'script-periodical', 'script-work',
}
--[[
أنماط البحث عن نص إضافي بتنسيق |volume=, |issue=, |page=, |pages=
]]
local vol_iss_pg_patterns = {
good_ppattern = '^P[^%.PpGg]', -- OK to begin with uppercase P: P7 (page 7 of section P), but not p123 (page 123); TODO: this allows 'Pages' which it should not
bad_ppatterns = { -- patterns for |page= and |pages=
'^[Pp][PpGg]?%.?[ %d]',
'^[Pp][Pp]?%. ', -- from {{p.}} and {{pp.}} templates
'^[Pp]ages?',
'^[Pp]gs.?',
},
vi_patterns_t = { -- combined to catch volume-like text in |issue= and issue-like text in |volume=
'^volumes?', -- volume-like text
'^vols?[%.:=]?',
'^issues?', --issue-like text
'^iss[%.:=]?',
'^numbers?',
'^nos?%A', -- don't match 'november' or 'nostradamus'
'^nr[%.:=]?',
'^n[%.:= ]', -- might be a valid issue without separator (space char is sep char here)
'^n°', -- 'n' with degree sign (U+00B0)
'^№', -- precomposed unicode numero character (U+2116)
},
}
--[[--------------------------< K E Y W O R D S >-------------------------------
These tables hold keywords for those parameters that have defined sets of acceptable keywords.
]]
--[[-------------------< K E Y W O R D S T A B L E >--------------------------
this is a list of keywords; each key in the list is associated with a table of
synonymous keywords possibly from different languages.
for I18N: add local-language keywords to value table; do not change the key.
For example, adding the German keyword 'ja':
['affirmative'] = {'yes', 'true', 'y', 'ja'},
Because CS1|2 templates from en.wiki articles are often copied to other local wikis,
it is recommended that the English keywords remain in these tables.
]]
local keywords = {
['amp'] = {'&', 'amp', 'ampersand'}, -- |name-list-style=
['and'] = {'and', 'serial'}, -- |name-list-style=
['affirmative'] = {'yes', 'true', 'y'}, -- |no-tracking=, |no-pp= -- Used by InternetArchiveBot
['afterword'] = {'afterword'}, -- |contribution=
['bot: unknown'] = {'bot: unknown'}, -- |url-status= -- Used by InternetArchiveBot
['cs1'] = {'cs1'}, -- |mode=
['cs2'] = {'cs2'}, -- |mode=
['dead'] = {'dead', 'deviated'}, -- |url-status= -- Used by InternetArchiveBot
['dmy'] = {'dmy'}, -- |df=
['dmy-all'] = {'dmy-all'}, -- |df=
['foreword'] = {'foreword'}, -- |contribution=
['free'] = {'free'}, -- |<id>-access= -- Used by InternetArchiveBot
['harv'] = {'harv'}, -- |ref=; this no longer supported; is_valid_parameter_value() called with <invert> = true
['introduction'] = {'introduction'}, -- |contribution=
['limited'] = {'limited'}, -- |url-access= -- Used by InternetArchiveBot
['live'] = {'live'}, -- |url-status= -- Used by InternetArchiveBot
['mdy'] = {'mdy'}, -- |df=
['mdy-all'] = {'mdy-all'}, -- |df=
['none'] = {'none'}, -- |postscript=, |ref=, |title=, |type= -- Used by InternetArchiveBot
['off'] = {'off'}, -- |title= (potentially also: |title-link=, |postscript=, |ref=, |type=)
['preface'] = {'preface'}, -- |contribution=
['registration'] = {'registration'}, -- |url-access= -- Used by InternetArchiveBot
['subscription'] = {'subscription'}, -- |url-access= -- Used by InternetArchiveBot
['unfit'] = {'unfit'}, -- |url-status= -- Used by InternetArchiveBot
['usurped'] = {'usurped'}, -- |url-status= -- Used by InternetArchiveBot
['vanc'] = {'vanc'}, -- |name-list-style=
['ymd'] = {'ymd'}, -- |df=
['ymd-all'] = {'ymd-all'}, -- |df=
-- ['yMd'] = {'yMd'}, -- |df=; not supported at en.wiki
-- ['yMd-all'] = {'yMd-all'}, -- |df=; not supported at en.wiki
}
--[[------------------------< X L A T E _ K E Y W O R D S >---------------------
this function builds a list, keywords_xlate{}, of the keywords found in keywords{} where the values from keywords{}
become the keys in keywords_xlate{} and the keys from keywords{} become the values in keywords_xlate{}:
['affirmative'] = {'yes', 'true', 'y'}, -- in keywords{}
becomes
['yes'] = 'affirmative', -- in keywords_xlate{}
['true'] = 'affirmative',
['y'] = 'affirmative',
the purpose of this function is to act as a translator between a non-English keyword and its English equivalent
that may be used in other modules of this suite
]]
local function xlate_keywords ()
local out_table = {}; -- output goes here
for k, keywords_t in pairs (keywords) do -- spin through the keywords table
for _, keyword in ipairs (keywords_t) do -- for each keyword
out_table[keyword] = k; -- create an entry in the output table where keyword is the key
end
end
return out_table;
end
local keywords_xlate = xlate_keywords (); -- the list of translated keywords
--[[----------------< M A K E _ K E Y W O R D S _ L I S T >---------------------
this function assembles, for parameter-value validation, the list of keywords appropriate to that parameter.
keywords_lists{}, is a table of tables from keywords{}
]]
local function make_keywords_list (keywords_lists)
local out_table = {}; -- output goes here
for _, keyword_list in ipairs (keywords_lists) do -- spin through keywords_lists{} and get a table of keywords
for _, keyword in ipairs (keyword_list) do -- spin through keyword_list{} and add each keyword, ...
table.insert (out_table, keyword); -- ... as plain text, to the output list
end
end
return out_table;
end
--[[----------------< K E Y W O R D S _ L I S T S >-----------------------------
this is a list of lists of valid keywords for the various parameters in [key].
Generally the keys in this table are the canonical en.wiki parameter names though
some are contrived because of use in multiple differently named parameters:
['yes_true_y'], ['id-access'].
The function make_keywords_list() extracts the individual keywords from the
appropriate list in keywords{}.
The lists in this table are used to validate the keyword assignment for the
parameters named in this table's keys.
]]
local keywords_lists = {
['yes_true_y'] = make_keywords_list ({keywords.affirmative}),
['contribution'] = make_keywords_list ({keywords.afterword, keywords.foreword, keywords.introduction, keywords.preface}),
['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all']}),
-- ['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all'], keywords.yMd, keywords['yMd-all']}), -- not supported at en.wiki
['mode'] = make_keywords_list ({keywords.cs1, keywords.cs2}),
['name-list-style'] = make_keywords_list ({keywords.amp, keywords['and'], keywords.vanc}),
['ref'] = make_keywords_list ({keywords.harv}), -- inverted check; |ref=harv no longer supported
['url-access'] = make_keywords_list ({keywords.subscription, keywords.limited, keywords.registration}),
['url-status'] = make_keywords_list ({keywords.dead, keywords.live, keywords.unfit, keywords.usurped, keywords['bot: unknown']}),
['id-access'] = make_keywords_list ({keywords.free,keywords.subscription, keywords.limited, keywords.registration}),
}
--[[--------------------------< C S 1 _ C O N F I G _ G E T >--------------------------------------------------
fetch and validate values from {{cs1 config}} template to fill <global_cs1_config_t>
no error messages; when errors are detected, the parameter value from {{cs1 config}} is blanked.
Supports all parameters and aliases associated with the metaparameters: DisplayAuthors, DisplayContributors,
DisplayEditors, DisplayInterviewers, DisplayTranslators, NameListStyle, and Mode. The DisplayWhatever metaparameters
accept numeric values only (|display-authors=etal and the like is not supported).
]]
local global_cs1_config_t = {}; -- TODO: add value returned from get_date_format() to this table?
local function get_cs1_config ()
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
end
local start = content:find('{{ *[Cc][Ss]1 config *[|}]'); -- <start> is offset into <content> when {{cs1 config}} found; nil else
if start then
local cs1_config_template = content:match ('%b{}', start); -- get the whole template
if not cs1_config_template then
return nil;
end
local params_t = mw.text.split (cs1_config_template:gsub ('^{{%s*', ''):gsub ('%s*}}$', ''), '%s*|%s*'); -- remove '{{' and '}}'; make a sequence of parameter/value pairs (split on the pipe)
table.remove (params_t, 1); -- remove the template name because it isn't a parameter/value pair
local config_meta_params_t = {'DisplayAuthors', 'DisplayContributors', 'DisplayEditors', 'DisplayInterviewers', 'DisplayTranslators', 'NameListStyle', 'Mode'};
local meta_param_map_t = {}; -- list of accepted parameter names usable in {{cs1 config}} goes here
for _, meta_param in ipairs (config_meta_params_t) do -- for i18n using <config_meta_params_t>, map template parameter names to their metaparameter equivalents
if 'table' == type (aliases[meta_param]) then -- if <meta_param> is a sequence,
for _, param in ipairs (aliases[meta_param]) do -- extract its contents
meta_param_map_t[param] = meta_param; -- and add to <meta_param_map_t>
end
else
meta_param_map_t[aliases[meta_param]] = meta_param; -- not a sequence so just add the parameter to <meta_param_map_t>
end
end
local keywords_t = {}; -- map valid keywords to their associate metaparameter; reverse form of <keyword_lists[key] for these metaparameters
for _, metaparam_t in ipairs ({{'NameListStyle', 'name-list-style'}, {'Mode', 'mode'}}) do -- only these metaparameter / keywords_lists key pairs
for _, keyword in ipairs (keywords_lists[metaparam_t[2]]) do -- spin through the list of keywords
keywords_t[keyword] = metaparam_t[1]; -- add [keyword] = metaparameter to the map
end
end
for _, param in ipairs (params_t) do -- spin through the {{cs1 config}} parameters and fill <global_cs1_config_t>
local k, v = param:match ('([^=]-)%s*=%s*(.+)'); -- <k> is the parameter name; <v> is parameter's assigned value
if k then
if k:find ('^display') then -- if <k> is one of the |display-<namelist>= parameters
if v:match ('%d+') then -- the assigned value must be digits; doesn't accept 'etal'
global_cs1_config_t[meta_param_map_t[k]]=v; -- add the display param and its value to globals table
end
else
if keywords_t[v] == meta_param_map_t[k] then -- keywords_t[v] returns nil or the metaparam name; these must be the same
global_cs1_config_t[meta_param_map_t[k]]=v; -- add the parameter and its value to globals table
end
end
end
end
end
end
get_cs1_config (); -- fill <global_cs1_config_t>
--[[---------------------< S T R I P M A R K E R S >----------------------------
Common pattern definition location for stripmarkers so that we don't have to go
hunting for them if (when) MediaWiki changes their form.
]]
local stripmarkers = {
['any'] = '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127', -- capture returns name of stripmarker
['math'] = '\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127' -- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker()
}
--[[------------< I N V I S I B L E _ C H A R A C T E R S >---------------------
This table holds non-printing or invisible characters indexed either by name or
by Unicode group. Values are decimal representations of UTF-8 codes. The table
is organized as a table of tables because the Lua pairs keyword returns table
data in an arbitrary order. Here, we want to process the table from top to bottom
because the entries at the top of the table are also found in the ranges specified
by the entries at the bottom of the table.
Also here is a pattern that recognizes stripmarkers that begin and end with the
delete characters. The nowiki stripmarker is not an error but some others are
because the parameter values that include them become part of the template's
metadata before stripmarker replacement.
]]
local invisible_defs = {
del = '\127', -- used to distinguish between stripmarker and del char
zwj = '\226\128\141', -- used with capture because zwj may be allowed
}
local invisible_chars = {
{'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD
{'zero width joiner', '('.. invisible_defs.zwj .. ')'}, -- U+200D, E2 80 8D; capture because zwj may be allowed
{'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B
{'hair space', '\226\128\138'}, -- U+200A, E2 80 8A
{'soft hyphen', '\194\173'}, -- U+00AD, C2 AD
{'horizontal tab', '\009'}, -- U+0009 (HT), 09
{'line feed', '\010'}, -- U+000A (LF), 0A
{'no-break space', '\194\160'}, -- U+00A0 (NBSP), C2 A0
{'carriage return', '\013'}, -- U+000D (CR), 0D
{'stripmarker', stripmarkers.any}, -- stripmarker; may or may not be an error; capture returns the stripmaker type
{'delete', '('.. invisible_defs.del .. ')'}, -- U+007F (DEL), 7F; must be done after stripmarker test; capture to distinguish isolated del chars not part of stripmarker
{'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))
{'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
-- {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF
-- {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF
-- {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD
-- {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD
}
--[[
Indic script makes use of zero width joiner as a character modifier so zwj
characters must be left in. This pattern covers all of the unicode characters
for these languages:
Devanagari 0900–097F – https://unicode.org/charts/PDF/U0900.pdf
Devanagari extended A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf
Bengali 0980–09FF – https://unicode.org/charts/PDF/U0980.pdf
Gurmukhi 0A00–0A7F – https://unicode.org/charts/PDF/U0A00.pdf
Gujarati 0A80–0AFF – https://unicode.org/charts/PDF/U0A80.pdf
Oriya 0B00–0B7F – https://unicode.org/charts/PDF/U0B00.pdf
Tamil 0B80–0BFF – https://unicode.org/charts/PDF/U0B80.pdf
Telugu 0C00–0C7F – https://unicode.org/charts/PDF/U0C00.pdf
Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf
Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf
plus the not-necessarily Indic scripts for Sinhala and Burmese:
Sinhala 0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf
Myanmar 1000-109F - https://unicode.org/charts/PDF/U1000.pdf
Myanmar extended A AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf
Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf
the pattern is used by has_invisible_chars() and coins_cleanup()
]]
local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]';
-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- from: https://unicode.org/Public/emoji/17.0/emoji-zwj-sequences.txt; version: 17.0; 2025-01-08
-- table created by: [[:en:Module:Make emoji zwj table]]
local emoji_t = { -- indexes are decimal forms of the hex values in U+xxxx
[8596] = true, -- U+2194 ↔ left right arrow
[8597] = true, -- U+2195 ↕ up down arrow
[9760] = true, -- U+2620 ☠ skull and crossbones
[9792] = true, -- U+2640 ♀ female sign
[9794] = true, -- U+2642 ♂ male sign
[9877] = true, -- U+2695 ⚕ staff of aesculapius
[9878] = true, -- U+2696 ⚖ scales
[9895] = true, -- U+26A7 ⚧ male with stroke and male and female sign
[9992] = true, -- U+2708 ✈ airplane
[10052] = true, -- U+2744 ❄ snowflake
[10084] = true, -- U+2764 ❤ heavy black heart
[10145] = true, -- U+27A1 ➡ black rightwards arrow
[11035] = true, -- U+2B1B ⬛ black large square
[127752] = true, -- U+1F308 🌈 rainbow
[127787] = true, -- U+1F32B 🌫 fog
[127806] = true, -- U+1F33E 🌾 ear of rice
[127859] = true, -- U+1F373 🍳 cooking
[127868] = true, -- U+1F37C 🍼 baby bottle
[127876] = true, -- U+1F384 🎄 christmas tree
[127891] = true, -- U+1F393 🎓 graduation cap
[127908] = true, -- U+1F3A4 🎤 microphone
[127912] = true, -- U+1F3A8 🎨 artist palette
[127979] = true, -- U+1F3EB 🏫 school
[127981] = true, -- U+1F3ED 🏭 factory
[128048] = true, -- U+1F430 🐰 rabbit face
[128102] = true, -- U+1F466 👦 boy
[128103] = true, -- U+1F467 👧 girl
[128104] = true, -- U+1F468 👨 man
[128105] = true, -- U+1F469 👩 woman
[128139] = true, -- U+1F48B 💋 kiss mark
[128165] = true, -- U+1F4A5 💥 collision symbol
[128168] = true, -- U+1F4A8 💨 dash symbol
[128171] = true, -- U+1F4AB 💫 dizzy symbol
[128187] = true, -- U+1F4BB 💻 personal computer
[128188] = true, -- U+1F4BC 💼 brief case
[128293] = true, -- U+1F525 🔥 fire
[128295] = true, -- U+1F527 🔧 wrench
[128300] = true, -- U+1F52C 🔬 microscope
[128488] = true, -- U+1F5E8 🗨 left speech bubble
[128640] = true, -- U+1F680 🚀 rocket
[128658] = true, -- U+1F692 🚒 fire engine
[129001] = true, -- U+1F7E9 🟩 large green square
[129003] = true, -- U+1F7EB 🟫 large brown square
[129309] = true, -- U+1F91D 🤝 handshake
[129455] = true, -- U+1F9AF 🦯 probing cane
[129456] = true, -- U+1F9B0 🦰 emoji component red hair
[129457] = true, -- U+1F9B1 🦱 emoji component curly hair
[129458] = true, -- U+1F9B2 🦲 emoji component bald
[129459] = true, -- U+1F9B3 🦳 emoji component white hair
[129466] = true, -- U+1F9BA 🦺 safety vest
[129468] = true, -- U+1F9BC 🦼 motorized wheelchair
[129469] = true, -- U+1F9BD 🦽 manual wheelchair
[129489] = true, -- U+1F9D1 🧑 adult
[129490] = true, -- U+1F9D2 🧒 child
[129648] = true, -- U+1FA70 🩰 ballet shoes
[129657] = true, -- U+1FA79 🩹 adhesive bandage
[129775] = true, -- U+1FAEF fight cloud
[129778] = true, -- U+1FAF2 🫲 leftwards hand
}
--[[----------------------< L A N G U A G E S U P P O R T >-------------------
These tables and constants support various language-specific functionality.
]]
--local this_wiki_code = mw.getContentLanguage():getCode(); -- get this wiki's language code
local this_wiki_code = lang_obj:getCode(); -- get this wiki's language code
if string.match (mw.site.server, 'wikidata') then
this_wiki_code = mw.getCurrentFrame():callParserFunction('int', {'lang'}); -- on Wikidata so use interface language setting instead
end
local mw_languages_by_tag_t = mw.language.fetchLanguageNames (this_wiki_code, 'all'); -- get a table of language tag/name pairs known to Wikimedia; used for interwiki tests
local mw_languages_by_name_t = {};
for k, v in pairs (mw_languages_by_tag_t) do -- build a 'reversed' table name/tag language pairs know to MediaWiki; used for |language=
v = mw.ustring.lower (v); -- lowercase for tag fetch; get name's proper case from mw_languages_by_tag_t[<tag>]
if mw_languages_by_name_t[v] then -- when name already in the table
if 2 == #k or 3 == #k then -- if tag does not have subtags
mw_languages_by_name_t[v] = k; -- prefer the shortest tag for this name
end
else -- here when name not in the table
mw_languages_by_name_t[v] = k; -- so add name and matching tag
end
end
local inter_wiki_map = {}; -- map of interwiki prefixes that are language-code prefixes
for k, v in pairs (mw.site.interwikiMap ('local')) do -- spin through the base interwiki map (limited to local)
if mw_languages_by_tag_t[v["prefix"]] then -- if the prefix matches a known language tag
inter_wiki_map[v["prefix"]] = true; -- add it to our local map
end
end
--[[--------------------< S C R I P T _ L A N G _ C O D E S >-------------------
This table is used to hold ISO 639-1 two-character and ISO 639-3 three-character
language codes that apply only to |script-title= and |script-chapter=
]]
local script_lang_codes = {
'ab', 'am', 'ar', 'as', 'az', 'be', 'bg', 'bn', 'bo', 'bs', 'ce', 'chr',
'cu', 'dv', 'dz', 'el', 'fa', 'grc', 'gu', 'he', 'hi', 'hy', 'ja', 'ka',
'kaa', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'lo', 'mk', 'ml', 'mn', 'mni',
'mr', 'my', 'ne', 'or', 'ota', 'pa', 'ps', 'ru', 'sd', 'si', 'sr', 'syc',
'ta', 'te', 'tg', 'th', 'ti', 'tkr', 'tt', 'ug', 'uk', 'ur', 'uz', 'yi',
'yue', 'zh', 'zgh'
};
--[[---------------< L A N G U A G E R E M A P P I N G >----------------------
These tables hold language information that is different (correct) from MediaWiki's definitions
For each ['<tag>'] = 'language name' in lang_code_remap{} there must be a matching ['language name'] = {'language name', '<tag>'} in lang_name_remap{}
lang_tag_remap{}:
key is always lowercase ISO 639-1, -2, -3 language tag or a valid lowercase IETF language tag
value is properly spelled and capitalized language name associated with <tag>
only one language name per <tag>;
key/value pair must have matching entry in lang_name_remap{}
lang_name_remap{}:
key is always lowercase language name
value is a table the holds correctly spelled and capitalized language name [1] and associated tag [2] (tag must match a tag key in lang_tag_remap{})
may have multiple keys referring to a common preferred name and tag; For example:
['kolsch'] and ['kölsch'] both refer to 'Kölsch' and 'ksh'
]]
local lang_tag_remap = {
["aa"] = "العفارية",
["aao"] = "العربية",
["aar"] = "العفارية",
["aars"] = "العفارية",
["abh"] = "العربية",
["abk"] = "الأبخازية",
["abks"] = "الأبخازية",
["abv"] = "العربية",
["acm"] = "العربية",
["acq"] = "العربية",
["acw"] = "العربية",
["acx"] = "العربية",
["acy"] = "العربية",
["adf"] = "العربية",
["ady"] = "الأديغية",
["aeb"] = "العربية",
["aec"] = "العربية",
["afb"] = "العربية",
["afr"] = "الأفريقانية",
["afrs"] = "الأفريقانية",
["ags"] = "الإسمبية",
["ajp"] = "العربية",
["aka"] = "الأكانية",
["alb"] = "الألبانية",
["als"] = "توسكية ألبانيا",
["amh"] = "الأمهرية",
["apc"] = "العربية",
["apd"] = "العربية",
["ara"] = "العربية",
["arb"] = "العربية",
["arg"] = "الأراغونية",
["arm"] = "الأرمنية",
["arn"] = "المابوتشية",
["arq"] = "العربية",
["ars"] = "العربية",
["ary"] = "العربية",
["arz"] = "العربية",
["as"] = "الآسامية",
["asm"] = "الآسامية",
["ast"] = "الأستورية",
["auz"] = "العربية",
["ava"] = "الأوارية",
["ave"] = "الأفستية",
["avl"] = "العربية",
["ayh"] = "العربية",
["ayl"] = "العربية",
["aym"] = "الأيمارا",
["ayn"] = "العربية",
["ayp"] = "العربية",
["az"] = "الأذرية",
["azb"] = "أذرية الجنوب",
["aze"] = "الأذرية",
["ba"] = "الباشقيرية",
["bak"] = "الباشقيرية",
["bam"] = "البمبرية",
["ban"] = "البالية",
["baq"] = "البشكنشية",
["bar"] = "البافارية",
["bbc"] = "الباتاكية",
["bbz"] = "العربية",
["bcc"] = "بلوشية الجنوب",
["bcl"] = "البيكولية الوسطى",
["bel"] = "البيلاروسية",
["ben"] = "البنغالية",
["bh"] = "البهارية",
["bho"] = "البوجبورية",
["bih"] = "البهارية",
["bis"] = "البيسلامية",
["bm"] = "البمبرية",
["bod"] = "التبتية",
["bos"] = "البوسنية",
["boss"] = "البوسنية",
["bre"] = "البريتونية",
["bul"] = "البلغارية",
["buls"] = "البلغارية",
["bur"] = "البورمية",
["ca-valencia"] = "البلنسية",
["ca"] = "القطلونية",
["cat"] = "القطلونية",
["ces"] = "التشيكية",
["ch"] = "التسمورية",
["cha"] = "التسمورية",
["che"] = "الشيشانية",
["chi"] = "الصينية",
["cho"] = "التشكتاوية",
["chu"] = "سلافية الكنسية",
["chv"] = "التشوفاشية",
["co"] = "الكورسية",
["cor"] = "الكورنية",
["cos"] = "الكورسية",
["cr"] = "الكرية",
["cre"] = "الكرية",
["crh"] = "تتارية القرم",
["crs"] = "كريولية سيشيل",
["cu"] = "سلافية الكنسية",
["cv"] = "التشوفاشية",
["cym"] = "الويلزية",
["cze"] = "التشيكية",
["da"] = "الدنماركية",
["dan"] = "الدنماركية",
["de_at"] = "الألمانية",
["de-at"] = "الألمانية",
["de-ch"] = "الألمانية السويسرية الموحدة",
["deu"] = "الألمانية",
["deus"] = "الألمانية",
["div"] = "المالديفية",
["dsb"] = "الصوربية السفلى",
["dut"] = "الهولندية",
["dz"] = "الدزونكية",
["dzo"] = "الدزونكية",
["ee"] = "الإوية",
["ell"] = "اليونانية",
["ells"] = "اليونانية",
["eng"] = "الإنجليزية",
["engs"] = "الإنجليزية",
["en-au"] = "الإنجليزية الأسترالية",
["en-ca"] = "الإنجليزية الكندية",
["en-gb"] = "الإنجليزية البريطانية",
["en-uk"] = "الإنجليزية البريطانية",
["en-in"] = "الإنجليزية الهندية",
["en-nz"] = "الإنجليزية النيوزيلندية",
["en-us"] = "الإنجليزية الأمريكية",
["epo"] = "الإسبرانتو",
["es_419"] = "إسبانية أمريكا اللاتينية",
["es_es"] = "الإسبانية",
["es_mx"] = "إسبانية المكسيك",
["est"] = "الإستونية",
["eu"] = "البشكنشية",
["eus"] = "البشكنشية",
["ewe"] = "الإوية",
["fao"] = "الفاروية",
["fas"] = "الفارسية",
["fij"] = "الفيجية",
["fin"] = "الفنلندية",
["fkv"] = "Kven",
["fr_ca"] = "فرنسية كندا",
["fr_ch"] = "فرنسية سويسرا",
["fra"] = "الفرنسية",
["fras"] = "الفرنسية",
["fre"] = "الفرنسية",
["fry"] = "الفريزية",
["ful"] = "الفولانية",
["fy"] = "الفريزية",
["gd"] = "غيلية إسكتنلدا",
["geo"] = "الجورجية",
["ger"] = "الألمانية",
["gl"] = "الجليقية",
["gla"] = "غيلية إسكتنلدا",
["gle"] = "الأيرلندية",
["glg"] = "الغاليسية",
["glv"] = "المنكية",
["gom"] = "الكونكانية",
["grc"] = "الإغريقية",
["gre"] = "اليونانية",
["grn"] = "الغوارانية",
["gu"] = "الكجراتية",
["guj"] = "الكجراتية",
["ha"] = "الهوسية",
["hat"] = "الكريولية الهايتية",
["hau"] = "الهوسية",
["hbs"] = "كرواتية صربيا",
["heb"] = "العبرية",
["her"] = "الهيريرو",
["hif"] = "هندية فيجي",
["hin"] = "الهندية",
["hins"] = "الهندية",
["hmo"] = "الهيرية",
["ho"] = "الهيرية",
["hrv"] = "الكرواتية",
["hu"] = "المجرية",
["hun"] = "المجرية",
["hye"] = "الأرمنية",
["ia"] = "لغة وسيطة",
["ibo"] = "الإيجبو",
["ice"] = "الآيسلندية",
["ido"] = "الإيدو",
["idos"] = "الإيدو",
["ii"] = "النؤوسوية",
["iii"] = "النؤوسوية",
["ike"] = "الآيكية",
["iku"] = "الإنكتيتوتية",
["ile"] = "الإنترلينج",
["ilo"] = "الإيلوكانوية",
["ina"] = "لغة وسيطة",
["ind"] = "الإندونيسية",
["ipk"] = "الإينبياك",
["is"] = "الآيسلندية",
["isl"] = "الآيسلندية",
["ita"] = "الإيطالية",
["itas"] = "الإيطالية",
["iu"] = "الإنكتيتوتية",
["ja-hani"] = "اليابانية",
["jav"] = "الجاوية",
["jpn"] = "اليابانية",
["kal"] = "الغرينية",
["kan"] = "الكنادية",
["kas"] = "الكشميرية",
["kat"] = "الجورجية",
["kau"] = "الكانورية",
["kaz"] = "القازاقية",
["khm"] = "الخميرية",
["khw"] = "الكهوارية",
["kik"] = "الكيكيو",
["kin"] = "الروندية",
["ky"] = "القرغيزية",
["kir"] = "القرغيزية",
["kj"] = "الكيونياما",
["kk"] = "القازاقية",
["kl"] = "الغرينية",
["kn"] = "الكنادية",
["kom"] = "الكومية",
["kon"] = "الكونغو",
["kor"] = "الكورية",
["kp-hanj"] = "الكورية",
["kr"] = "الكانورية",
["ks-deva"] = "ديفنغارية كشمير",
["ksh-x-colog"] = "الكولونيانية",
["ksh"] = "الكولشية",
["kua"] = "الكيونياما",
["kur"] = "الكردية",
["kv"] = "الكومية",
["lao"] = "اللاوية",
["lat"] = "اللاتينية",
["lats"] = "اللاتينية",
["lav"] = "اللاتفية",
["lb"] = "اللوكسمبورغية",
["lg"] = "الجاندية",
["lim"] = "الليمبورغية",
["lin"] = "اللينغالية",
["lit"] = "الليتوانية",
["lmo"] = "اللومباردية",
["ln"] = "اللينغالية",
["ltz"] = "اللوكسمبورغية",
["lu"] = "التشيلوبا",
["lub"] = "التشيلوبا",
["lug"] = "الجاندية",
["mac"] = "المقدونية",
["mah"] = "المارشالية",
["mal"] = "الماليالامية",
["mao"] = "الماورية",
["mar"] = "المراثية",
["may"] = "الملايوية",
["mfe"] = "كريولية موريشوس",
["mg"] = "الملغاشية",
["mis-x-ripuar"] = "الريبوارية",
["mkd"] = "المقدونية",
["ml"] = "الماليالامية",
["mlg"] = "الملغاشية",
["mlt"] = "المالطية",
["mo"] = "المولدوفية",
["mol"] = "المولدوفية",
["mon"] = "المنغولية",
["mr"] = "المراثية",
["mri"] = "الماورية",
["ms"] = "الملايوية",
["msa"] = "الملايوية",
["mul"] = "اللغات المتعددة",
["mya"] = "البورمية",
["mzn"] = "الطبرية",
["na"] = "الناوروية",
["nan-tw"] = "هوكينية تايوان",
["nan"] = "مينانية الجنوب",
["nau"] = "الناوروية",
["nav"] = "النافاجو",
["nb-no"] = "النرويجية البوكمول",
["nb"] = "النرويجية البوكمول",
["nbl"] = "نديبلي الجنوبية",
["nde"] = "النديبيل الشمالية",
["ndo"] = "الندونجا",
["nep"] = "النيبالية",
["nl_be"] = "الفلمنكية",
["nld"] = "الهولندية",
["nn"] = "النرويجية النينوشك",
["nno"] = "النرويجية النينوشك",
["nob"] = "النرويجية البوكمول",
["non"] = "النوردية القديمة",
["nor"] = "النرويجية",
["nr"] = "نديبلي الجنوبية",
["nrf"] = "الغيرنزية",
["nya"] = "النيانجا",
["oc"] = "القسطانية",
["oci"] = "القسطانية",
["oji"] = "الأوجيبوا",
["ori"] = "الأورية",
["orm"] = "الأورومية",
["os"] = "الأوسيتية",
["oss"] = "الأوسيتية",
["pan"] = "البنجابية",
["per"] = "الفارسية",
["pga"] = "اللهجة الكريولية",
["pli"] = "البالية",
["pnt"] = "البنطسية",
["pol"] = "البولندية",
["pols"] = "البولندية",
["por"] = "البرتغالية",
["ps"] = "البشتوية",
["pt_br"] = "البرتغالية البرازيلية",
["pus"] = "البشتوية",
["qu"] = "الكتشوية",
["que"] = "الكتشوية",
["rn"] = "الكيروندية",
["ro_md"] = "المولدوفية",
["roa"] = "الغيرنزية",
["roh"] = "الرومانشية",
["ron"] = "الرومانية",
["rum"] = "الرومانية",
["run"] = "الكيروندية",
["rus"] = "الروسية",
["rw"] = "الروندية",
["sag"] = "السانغوية",
["sah"] = "الساخية",
["san"] = "السنسكريتية",
["scc"] = "الصربية",
["sco"] = "الإسكتلندية",
["scr"] = "الكرواتية",
["se"] = "سامية الشمال",
["sg"] = "السانغوية",
["sh"] = "كرواتية صربيا",
["sin"] = "السنهالية",
["sl"] = "السلوفينية",
["slk"] = "السلوفاكية",
["slo"] = "السلوفاكية",
["slv"] = "السلوفينية",
["sm"] = "الساموية",
["sma"] = "سامية الجنوب",
["sme"] = "سامية الشمال",
["smo"] = "الساموية",
["sna"] = "الشونا",
["snd"] = "السندية",
["som"] = "الصومالية",
["sot"] = "السوتية",
["spa"] = "الإسبانية",
["sqi"] = "الألبانية",
["sr-ec"] = "الصربية (بالحرف السيريلي)",
["sr-el"] = "الصربية (بالحرف اللاتيني)",
["srd"] = "السردينية",
["srp"] = "الصربية",
["ss"] = "السوازية",
["ssh"] = "اللهجة الشحية",
["ssw"] = "السوازية",
["st"] = "السوتية",
["su"] = "الصندية",
["sun"] = "الصندية",
["swa"] = "السواحلية",
["swe"] = "السويدية",
["syc"] = "السريانية",
["syr"] = "السريانية",
["tah"] = "التاهيتية",
["tam"] = "التاميلية",
["tat"] = "التترية",
["tcy"] = "التولو",
["tel"] = "التيلوغوية",
["tgk"] = "الطاجيكية",
["tgl"] = "التاغالوغية",
["th"] = "التايلندية",
["tha"] = "التايلندية",
["tib"] = "التبتية",
["tir"] = "التغرينية",
["ton"] = "التونغية",
["ts"] = "التسونجية",
["tsn"] = "التسوانية",
["tso"] = "التسونجية",
["tuk"] = "التركمانية",
["tulu"] = "التولو",
["tur"] = "التركية",
["twi"] = "التوي",
["uig"] = "الأويغورية",
["ukr"] = "الأوكرانية",
["ur"] = "الأردية",
["urd"] = "الأردية",
["uzb"] = "الأوزبكية",
["ve"] = "الفيندية",
["ven"] = "الفيندية",
["vie"] = "الفيتنامية",
["vo"] = "الفولابوكية",
["vol"] = "الفولابوكية",
["wa"] = "الوالونية",
["wel"] = "الويلزية",
["wlm"] = "الويلزية الوسطى",
["wln"] = "الوالونية",
["wol"] = "الولوفية",
["xh"] = "الخوسية",
["xho"] = "الخوسية",
["xmf"] = "المنغريلية",
["xpu"] = "البونيقية",
["yid"] = "اليديشية",
["yo"] = "يوروبية",
["yor"] = "يوروبية",
["yue"] = "الكنتونية",
["zh_hans"] = "الصينية المبسطة",
["zh_hant"] = "الصينية التقليدية",
["zh-classical"] = "الصينية التقليدية",
["zh-cn"] = "الصينية",
["zh-hani"] = "الصينية",
["zh-s"] = "الصينية المبسطة",
["zh-t"] = "الصينية التقليدية",
["zh-tw"] = "الصينية المبسطة",
["zh-yue-hani"] = "الكنتونية",
["zh-yue"] = "الكانتونية",
["zha"] = "الزهيونج",
["zho"] = "الصينية",
["zu"] = "الزولوية",
["zul"] = "الزولوية",
}
local lang_name_remap = {
["abkhaze"] = { "الأبخازية", "ab"},
["abkhazian"] = { "الأبخازية", "ab"},
["afar"] = { "العفارية", "aa"},
["afrikaans"] = { "الأفريقانية", "af"},
["akan"] = { "الأكانية", "ak"},
["albanais"] = { "الألبانية", "sq"},
["albanian"] = { "الألبانية", "sq"},
["alemannisch"] = { "الألمانية السويسرية", "gsw"},
["allemand"] = { "الألمانية", "de"},
["amharic"] = { "الأمهرية", "am"},
["amharique"] = { "الأمهرية", "am"},
["anglais"] = { "الإنجليزية", "en"},
["arabe"] = { "العربية", "ar"},
["arabic"] = { "العربية", "ar"},
["aragonais"] = { "الأراغونية", "an"},
["aragonese"] = { "الأراغونية", "an"},
["armenian"] = { "الأرمنية", "hy"},
["arménien"] = { "الأرمنية", "hy"},
["assamais"] = { "الآسامية", "as"},
["assamese"] = { "الآسامية", "as"},
["avar"] = { "الأوارية", "av"},
["avaric"] = { "الأوارية", "av"},
["avestan"] = { "الأفستية", "ae"},
["avestique"] = { "الأفستية", "ae"},
["aymara"] = { "الأيمارا", "ay"},
["azerbaijani"] = { "الأذرية", "az"},
["azéri"] = { "الأذرية", "az"},
["bachkir"] = { "الباشقيرية", "ba"},
["bambara"] = { "البمبرية", "bm"},
["bangla"] = { "البنغالية", "bn"},
["bashkir"] = { "الباشقيرية", "ba"},
["basque"] = { "البشكنشية", "eu"},
["belarusian"] = { "البيلاروسية", "be"},
["bengali"] = { "البنغالية", "bn"},
["bhojpuri"] = { "البوجبورية", "bho"},
["bichelamar"] = { "البيسلامية", "bi"},
["biélorusse"] = { "البيلاروسية", "be"},
["bihari"] = { "البهارية", "bh"},
["birman"] = { "البورمية", "my"},
["bislama"] = { "البيسلامية", "bi"},
["blackfoot"] = { "النيتسيتابية", "bla"},
["bosnian"] = { "البوسنية", "bs"},
["bosniaque"] = { "البوسنية", "bs"},
["breton"] = { "البريتونية", "br"},
["bulgare"] = { "البلغارية", "bg"},
["bulgarian"] = { "البلغارية", "bg"},
["burmese"] = { "البورمية", "my"},
["cachemiri"] = { "الكشميرية", "ks"},
["catalan"] = { "القطلونية", "ca"},
["chamorro"] = { "التسمورية", "ch"},
["chechen"] = { "الشيشانية", "ce"},
["chewa"] = { "النيانجا", "ny"},
["chinese"] = { "الصينية", "zh"},
["chinois"] = { "الصينية", "zh"},
["church slavic"] = { "سلافية الكنسية", "cu"},
["chuvash"] = { "التشوفاشية", "cv"},
["cingalais"] = { "السنهالية", "si"},
["colognian"] = { "الكولونيانية", "ksh-x-colog"},
["coréen"] = { "الكورية", "ko"},
["cornique"] = { "الكورنية", "kw"},
["cornish"] = { "الكورنية", "kw"},
["corse"] = { "الكورسية", "co"},
["corsican"] = { "الكورسية", "co"},
["cree"] = { "الكرية", "cr"},
["créole haïtien"] = { "الكريولية الهايتية", "ht"},
["créole seychellois"] = { "كريولية سيشيل", "crs"},
["crimean tatar"] = { "تتارية القرم", "crh"},
["croate"] = { "الكرواتية", "hr"},
["croatian"] = { "الكرواتية", "hr"},
["czech"] = { "التشيكية", "cs"},
["danish"] = { "الدنماركية", "da"},
["danois"] = { "الدنماركية", "da"},
["divehi"] = { "المالديفية", "dv"},
["dutch"] = { "الهولندية", "nl"},
["dzongkha"] = { "الدزونكية", "dz"},
["english"] = { "الإنجليزية", "en"},
["espagnol"] = { "الإسبانية", "es"},
["esperanto"] = { "الإسبرانتو", "eo"},
["espéranto"] = { "الإسبرانتو", "eo"},
["estonian"] = { "الإستونية", "et"},
["estonien"] = { "الإستونية", "et"},
["ewe"] = { "الإوية", "ee"},
["éwé"] = { "الإوية", "ee"},
["faroese"] = { "الفاروية", "fo"},
["féroïen"] = { "الفاروية", "fo"},
["fidjien"] = { "الفيجية", "fj"},
["fijian"] = { "الفيجية", "fj"},
["finnish"] = { "الفنلندية", "fi"},
["finnois"] = { "الفنلندية", "fi"},
["français"] = { "الفرنسية", "fr"},
["french"] = { "الفرنسية", "fr"},
["frison occidental"] = { "الفريزية", "fy"},
["fulah"] = { "الفولانية", "ff"},
["gaélique écossais"] = { "غيلية إسكتنلدا", "gd"},
["galician"] = { "الجليقية", "gl"},
["galicien"] = { "الجليقية", "gl"},
["gallois"] = { "الويلزية", "cy"},
["ganda"] = { "الجاندية", "lg"},
["georgian"] = { "الجورجية", "ka"},
["géorgien"] = { "الجورجية", "ka"},
["german"] = { "الألمانية", "de"},
["goudjerati"] = { "الكجراتية", "gu"},
["grec"] = { "اليونانية", "el"},
["greek"] = { "اليونانية", "el"},
["groenlandais"] = { "الغرينية", "kl"},
["guarani"] = { "الغوارانية", "gn"},
["gujarati"] = { "الكجراتية", "gu"},
["haitian creole"] = { "الكريولية الهايتية", "ht"},
["haoussa"] = { "الهوسية", "ha"},
["hausa"] = { "الهوسية", "ha"},
["hébre"] = { "العبرية", "he"},
["hebrew"] = { "العبرية", "he"},
["herero"] = { "الهيريرو", "hz"},
["héréro"] = { "الهيريرو", "hz"},
["hindi"] = { "الهندية", "hi"},
["hiri mot"] = { "الهيرية", "ho"},
["hongrois"] = { "المجرية", "hu"},
["hungarian"] = { "المجرية", "hu"},
["icelandic"] = { "الآيسلندية", "is"},
["ido"] = { "الإيدو", "io"},
["igbo"] = { "الإيجبو", "ig"},
["ilocano"] = { "الإيلوكانوية", "ilo"},
["indonesian"] = { "الإندونيسية", "id"},
["indonésien"] = { "الإندونيسية", "id"},
["interlingua"] = { "لغة وسيطة", "ia"},
["interlingue"] = { "الإنترلينج", "ie"},
["inuktitut"] = { "الإنكتيتوتية", "iu"},
["inupiaq"] = { "الإينبياك", "ik"},
["irish"] = { "الأيرلندية", "ga"},
["irlandais"] = { "الأيرلندية", "ga"},
["islandais"] = { "الآيسلندية", "is"},
["italian"] = { "الإيطالية", "it"},
["italien"] = { "الإيطالية", "it"},
["japanese"] = { "اليابانية", "ja"},
["japonais"] = { "اليابانية", "ja"},
["javanais"] = { "الجاوية", "jv"},
["javanese"] = { "الجاوية", "jv"},
["kalaallisut"] = { "الغرينية", "kl"},
["kannada"] = { "الكنادية", "kn"},
["kanouri"] = { "الكانورية", "kr"},
["kanuri"] = { "الكانورية", "kr"},
["kashmiri"] = { "الكشميرية", "ks"},
["kazakh"] = { "القازاقية", "kk"},
["khmer"] = { "الخميرية", "km"},
["kikongo"] = { "الكونغو", "kg"},
["kikuy"] = { "الكيكيو", "ki"},
["kinyarwanda"] = { "الروندية", "rw"},
["kirghize"] = { "القرغيزية", "ky"},
["kolsch"] = { "الكولشية", "ksh"},
["kölsch"] = { "الكولشية", "ksh"},
["komi"] = { "الكومية", "kv"},
["kongo"] = { "الكونغو", "kg"},
["korean"] = { "الكورية", "ko"},
["kuanyama"] = { "الكيونياما", "kj"},
["kurde"] = { "الكردية", "ku"},
["kurdish"] = { "الكردية", "ku"},
["Kven"] = { "Kven", "fkv"},
["kvensk"] = { "Kven", "fkv"},
["kyrgyz"] = { "القرغيزية", "ky"},
["lao"] = { "اللاوية", "lo"},
["latin"] = { "اللاتينية", "la"},
["latvian"] = { "اللاتفية", "lv"},
["letton"] = { "اللاتفية", "lv"},
["limbourgeois"] = { "الليمبورغية", "li"},
["limburgish"] = { "الليمبورغية", "li"},
["lingala"] = { "اللينغالية", "ln"},
["lithuanian"] = { "الليتوانية", "lt"},
["lituanien"] = { "الليتوانية", "lt"},
["luba-katanga (kiluba)"] = { "التشيلوبا", "lu"},
["luba-katanga"] = { "التشيلوبا", "lu"},
["luxembourgeois"] = { "اللوكسمبورغية", "lb"},
["luxembourgish"] = { "اللوكسمبورغية", "lb"},
["macedonian"] = { "المقدونية", "mk"},
["macédonien"] = { "المقدونية", "mk"},
["malagasy"] = { "الملغاشية", "mg"},
["malais"] = { "الملايوية", "ms"},
["malay"] = { "الملايوية", "ms"},
["malayalam"] = { "الماليالامية", "ml"},
["maldivien"] = { "المالديفية", "dv"},
["malgache"] = { "الملغاشية", "mg"},
["maltais"] = { "المالطية", "mt"},
["maltese"] = { "المالطية", "mt"},
["mannois"] = { "المنكية", "gv"},
["manx"] = { "المنكية", "gv"},
["maori"] = { "الماورية", "mi"},
["marathi"] = { "المراثية", "mr"},
["marshallais"] = { "المارشالية", "mh"},
["marshallese"] = { "المارشالية", "mh"},
["moldovan"] = { "المولدوفية", "mo"},
["mongol"] = { "المنغولية", "mn"},
["mongolian"] = { "المنغولية", "mn"},
["naur"] = { "الناوروية", "na"},
["nauruan"] = { "الناوروية", "na"},
["navajo"] = { "النافاجو", "nv"},
["ndébélé du nord"] = { "النديبيل الشمالية", "nd"},
["ndébélé du sud"] = { "نديبلي الجنوبية", "nr"},
["ndonga"] = { "الندونجا", "ng"},
["néerlandais"] = { "الهولندية", "nl"},
["népalais"] = { "النيبالية", "ne"},
["nepali"] = { "النيبالية", "ne"},
["north ndebele"] = { "النديبيل الشمالية", "nd"},
["northern sami"] = { "سامية الشمال", "se"},
["norvégien bokmål"] = { "النرويجية البوكمول", "nb"},
["norvégien nynorsk"] = { "النرويجية النينوشك", "nn"},
["norvégien"] = { "النرويجية", "no"},
["norwegian bokmål"] = { "النرويجية البوكمول", "nb"},
["norwegian nynorsk"] = { "النرويجية النينوشك", "nn"},
["norwegian"] = { "النرويجية", "no"},
["nyanja"] = { "النيانجا", "ny"},
["occitan"] = { "القسطانية", "oc"},
["odia"] = { "الأورية", "or"},
["ojibwa"] = { "الأوجيبوا", "oj"},
["oromo"] = { "الأورومية", "om"},
["ossète"] = { "الأوسيتية", "os"},
["ossetic"] = { "الأوسيتية", "os"},
["ouïghour"] = { "الأويغورية", "ug"},
["ourdo"] = { "الأردية", "ur"},
["ouzbek"] = { "الأوزبكية", "uz"},
["pachto"] = { "البشتوية", "ps"},
["pali"] = { "البالية", "pi"},
["pashto"] = { "البشتوية", "ps"},
["pendjabi"] = { "البنجابية", "pa"},
["persan"] = { "الفارسية", "fa"},
["persian"] = { "الفارسية", "fa"},
["peul"] = { "الفولانية", "ff"},
["polish"] = { "البولندية", "pl"},
["polonais"] = { "البولندية", "pl"},
["portugais"] = { "البرتغالية", "pt"},
["portuguese"] = { "البرتغالية", "pt"},
["punjabi"] = { "البنجابية", "pa"},
["quechua"] = { "الكتشوية", "qu"},
["ripuarian"] = { "الريبوارية", "mis-x-ripuar"},
["romanche"] = { "الرومانشية", "rm"},
["romanian"] = { "الرومانية", "ro"},
["romansh"] = { "الرومانشية", "rm"},
["roumain"] = { "الرومانية", "ro"},
["roundi"] = { "الكيروندية", "rn"},
["rundi"] = { "الكيروندية", "rn"},
["russe"] = { "الروسية", "ru"},
["russian"] = { "الروسية", "ru"},
["same du nord"] = { "سامية الشمال", "se"},
["samoan"] = { "الساموية", "sm"},
["sango"] = { "السانغوية", "sg"},
["sanskrit"] = { "السنسكريتية", "sa"},
["sarde"] = { "السردينية", "sc"},
["sardinian"] = { "السردينية", "sc"},
["scottish gaelic"] = { "غيلية إسكتنلدا", "gd"},
["serbe"] = { "الصربية", "sr"},
["serbian"] = { "الصربية", "sr"},
["serbo-croate"] = { "كرواتية صربيا", "sh"},
["serbo-croatian"] = { "كرواتية صربيا", "sh"},
["seselwa creole french"] = { "كريولية سيشيل", "crs"},
["shona"] = { "الشونا", "sn"},
["sichuan yi"] = { "النؤوسوية", "ii"},
["sindhi"] = { "السندية", "sd"},
["sinhala"] = { "السنهالية", "si"},
["slavon d’église"] = { "سلافية الكنسية", "cu"},
["slovak"] = { "السلوفاكية", "sk"},
["slovaque"] = { "السلوفاكية", "sk"},
["slovène"] = { "السلوفينية", "sl"},
["slovenian"] = { "السلوفينية", "sl"},
["somali"] = { "الصومالية", "so"},
["sotho du sud"] = { "السوتية", "st"},
["soundanais"] = { "الصندية", "su"},
["sundanese"] = { "الصندية", "su"},
["south ndebele"] = { "نديبلي الجنوبية", "nr"},
["southern sotho"] = { "السوتية", "st"},
["spanish"] = { "الإسبانية", "es"},
["suédois"] = { "السويدية", "sv"},
["swahili"] = { "السواحلية", "sw"},
["swati"] = { "السوازية", "ss"},
["swedish"] = { "السويدية", "sv"},
["swiss high german"] = { "الألمانية السويسرية الموحدة", "de-ch"},
["tadjik"] = { "الطاجيكية", "tg"},
["tagalog"] = { "التاغالوغية", "tl"},
["tahitian"] = { "التاهيتية", "ty"},
["tahitien"] = { "التاهيتية", "ty"},
["taiwanese hokkien"] = { "هوكينية تايوان", "nan-tw"},
["tajik"] = { "الطاجيكية", "tg"},
["tamil"] = { "التاميلية", "ta"},
["tamoul"] = { "التاميلية", "ta"},
["tatar"] = { "التترية", "tt"},
["tchèque"] = { "التشيكية", "cs"},
["tchétchène"] = { "الشيشانية", "ce"},
["tchouvache"] = { "التشوفاشية", "cv"},
["télougo"] = { "التيلوغوية", "te"},
["telug"] = { "التيلوغوية", "te"},
["thai"] = { "التايلندية", "th"},
["thaï"] = { "التايلندية", "th"},
["tibétain"] = { "التبتية", "bo"},
["tibetan"] = { "التبتية", "bo"},
["tigrigna"] = { "التغرينية", "ti"},
["tigrinya"] = { "التغرينية", "ti"},
["tongan"] = { "التونغية", "to"},
["tongien"] = { "التونغية", "to"},
["tosk albanian"] = { "توسكية ألبانيا", "als"},
["tsonga"] = { "التسونجية", "ts"},
["tswana"] = { "التسوانية", "tn"},
["turc"] = { "التركية", "tr"},
["turkish"] = { "التركية", "tr"},
["turkmen"] = { "التركمانية", "tk"},
["turkmène"] = { "التركمانية", "tk"},
["twi"] = { "التوي", "tw"},
["ukrainian"] = { "الأوكرانية", "uk"},
["ukrainien"] = { "الأوكرانية", "uk"},
["urd"] = { "الأردية", "ur"},
["uyghur"] = { "الأويغورية", "ug"},
["uzbek"] = { "الأوزبكية", "uz"},
["valencian"] = { "القطلونية", "ca"},
["venda"] = { "الفيندية", "ve"},
["vietnamese"] = { "الفيتنامية", "vi"},
["vietnamien"] = { "الفيتنامية", "vi"},
["volapük"] = { "الفولابوكية", "vo"},
["wallon"] = { "الوالونية", "wa"},
["walloon"] = { "الوالونية", "wa"},
["welsh"] = { "الويلزية", "cy"},
["western frisian"] = { "الفريزية", "fy"},
["wolof"] = { "الولوفية", "wo"},
["xhosa"] = { "الخوسية", "xh"},
["yi du sichuan"] = { "النؤوسوية", "ii"},
["yiddish"] = { "اليديشية", "yi"},
["yoruba"] = { "يوروبية", "yo"},
["zhuang"] = { "الزهيونج", "za"},
["zoulo"] = { "الزولوية", "zu"},
["zul"] = { "الزولوية", "zu"},
["أذرية الجنوب"] = { "أذرية الجنوب", "azb"},
["إسبانية أمريكا اللاتينية"] = { "إسبانية أمريكا اللاتينية", "es_419"},
["إسبانية المكسيك"] = { "إسبانية المكسيك", "es_mx"},
["الآسامية"] = { "الآسامية", "as"},
["الآيسلندية"] = { "الآيسلندية", "is"},
["الآيكية"] = { "الآيكية", "ike"},
["الأبخازية"] = { "الأبخازية", "ab"},
["الأديغية"] = { "الأديغية", "ady"},
["الأذرية الجنوبية"] = { "أذرية الجنوب", "azb"},
["الأذرية"] = { "الأذرية", "az"},
["الأراغونية"] = { "الأراغونية", "an"},
["الأردوية"] = { "الأردية", "ur"},
["الأردية"] = { "الأردية", "ur"},
["الأرمنية"] = { "الأرمنية", "hy"},
["الأستورية"] = { "الأستورية", "ast"},
["الأفريقانية"] = { "الأفريقانية", "af"},
["الأفستية"] = { "الأفستية", "ae"},
["الأكانية"] = { "الأكانية", "ak"},
["الألبانية"] = { "الألبانية", "sq"},
["الألمانية"] = { "الألمانية", "de"},
["الألمانية السويسرية الموحدة"] = { "الألمانية السويسرية الموحدة", "de-ch"},
["الأمهرية"] = { "الأمهرية", "am"},
["الأوارية"] = { "الأوارية", "av"},
["الأوجيبوا"] = { "الأوجيبوا", "oj"},
["الأوردية"] = { "الأردية", "ur"},
["الأورومية"] = { "الأورومية", "om"},
["الأوريا"] = { "الأورية", "or"},
["الأورية"] = { "الأورية", "or"},
["الأوزبكية"] = { "الأوزبكية", "uz"},
["الأوسيتية"] = { "الأوسيتية", "os"},
["الأوكرانية"] = { "الأوكرانية", "uk"},
["الأويغورية"] = { "الأويغورية", "ug"},
["الأيرلندية"] = { "الأيرلندية", "ga"},
["الأيمارا"] = { "الأيمارا", "ay"},
["الإسبانية الأمريكية اللاتينية"] = { "إسبانية أمريكا اللاتينية", "es_419"},
["الإسبانية المكسيكية"] = { "إسبانية المكسيك", "es_mx"},
["الإسبانية"] = { "الإسبانية", "es"},
["الإسبرانتو"] = { "الإسبرانتو", "eo"},
["الإستونية"] = { "الإستونية", "et"},
["الإسكتلندية"] = { "الإسكتلندية", "sco"},
["الإسكندنافية القديمة"] = { "النوردية القديمة", "non"},
["الإسمبية"] = { "الإسمبية", "ags"},
["الإغريقية"] = { "الإغريقية", "grc"},
["الإنترلنغوا"] = { "لغة وسيطة", "ia"},
["الإنترلينج"] = { "الإنترلينج", "ie"},
["الإنجليزية"] = { "الإنجليزية", "en"},
["الإنجليزية الأسترالية"] = { "الإنجليزية الأسترالية", "en-au"},
["الإنجليزية الكندية"] = { "الإنجليزية الكندية", "en-ca"},
["الإنجليزية البريطانية"] = {"الإنجليزية البريطانية", "en-gb"},
["الإنجليزية البريطانية"] = {"الإنجليزية البريطانية", "en-uk"},
["الإنجليزية الهندية"] = {"الإنجليزية الهندية", "en-in"},
["الإنجليزية النيوزيلندية"] = {"الإنجليزية النيوزيلندية", "en-nz"},
["الإنجليزية الأمريكية"] = { "الإنجليزية الأمريكية", "en-us"},
["الإندونيسية"] = { "الإندونيسية", "id"},
["الإنكتيتوتية"] = { "الإنكتيتوتية", "iu"},
["الإوية"] = { "الإوية", "ee"},
["الإيجبو"] = { "الإيجبو", "ig"},
["الإيدو"] = { "الإيدو", "io"},
["الإيطالية"] = { "الإيطالية", "it"},
["الإيلوكانوية"] = { "الإيلوكانوية", "ilo"},
["الإينبياك"] = { "الإينبياك", "ik"},
["الاسكتلندية"] = { "الإسكتلندية", "sco"},
["الباتاك التوبا"] = { "الباتاكية", "bbc"},
["الباتاكية"] = { "الباتاكية", "bbc"},
["الباشقيرية"] = { "الباشقيرية", "ba"},
["البافارية"] = { "البافارية", "bar"},
["البالية"] = { "البالية", "pi"},
["البرتغالية البرازيلية"] = { "البرتغالية البرازيلية", "pt-br"},
["البرتغالية"] = { "البرتغالية", "pt"},
["البريتانية"] = { "البريتونية", "br"},
["البريتونية"] = { "البريتونية", "br"},
["البسلاما"] = { "البيسلامية", "bi"},
["البشتوية"] = { "البشتوية", "ps"},
["البشكنشية"] = { "البشكنشية", "eu"},
["البلغارية"] = { "البلغارية", "bg"},
["البلنسية"] = { "البلنسية", "ca-valencia"},
["البمبرية"] = { "البمبرية", "bm"},
["البنجابية"] = { "البنجابية", "pa"},
["البنطسية"] = { "البنطسية", "pnt"},
["البنغالية"] = { "البنغالية", "bn"},
["البهارية"] = { "البهارية", "bh"},
["البوجبورية"] = { "البوجبورية", "bho"},
["البورمية"] = { "البورمية", "my"},
["البوسنوية"] = { "البوسنية", "bs"},
["البوسنية"] = { "البوسنية", "bs"},
["البولندية"] = { "البولندية", "pl"},
["البونيقية"] = { "البونيقية", "xpu"},
["البيسلامية"] = { "البيسلامية", "bi"},
["البيكولية الوسطى"] = { "البيكولية الوسطى", "bcl"},
["البيلاروسية"] = { "البيلاروسية", "be"},
["التاغالوغية"] = { "التاغالوغية", "tl"},
["التاميلية"] = { "التاميلية", "ta"},
["التاهيتية"] = { "التاهيتية", "ty"},
["التايلندية"] = { "التايلندية", "th"},
["التبتية"] = { "التبتية", "bo"},
["التتارية القرمية"] = { "تتارية القرم", "crh"},
["التترية"] = { "التترية", "tt"},
["التركمانية"] = { "التركمانية", "tk"},
["التركية"] = { "التركية", "tr"},
["التسمورية"] = { "التسمورية", "ch"},
["التسوانية"] = { "التسوانية", "tn"},
["التسونجا"] = { "التسونجية", "ts"},
["التسونجية"] = { "التسونجية", "ts"},
["التشكتاوية"] = { "التشكتاوية", "cho"},
["التشكطوية"] = { "التشكتاوية", "cho"},
["التشوفاش"] = { "التشوفاشية", "cv"},
["التشوفاشية"] = { "التشوفاشية", "cv"},
["التشيكية"] = { "التشيكية", "cs"},
["التشيلوبا"] = { "التشيلوبا", "lu"},
["التغرينية"] = { "التغرينية", "ti"},
["التوسك الألبانية"] = { "توسكية ألبانيا", "als"},
["التولو"] = { "التولو", "tulu"},
["التونغية"] = { "التونغية", "to"},
["التوي"] = { "التوي", "tw"},
["التيلوغوية"] = { "التيلوغوية", "te"},
["الجاندا"] = { "الجاندية", "lg"},
["الجاندية"] = { "الجاندية", "lg"},
["الجاوية"] = { "الجاوية", "jv"},
["الجسرية"] = { "البنطسية", "pnt"},
["الجليقية"] = { "الجليقية", "gl"},
["الجنوبية البولشية"] = { "بلوشية الجنوب", "bcc"},
["الجواني الكونكانية"] = { "الكونكانية", "gom"},
["الجورجية"] = { "الجورجية", "ka"},
["الخميرية"] = { "الخميرية", "km"},
["الخوسية"] = { "الخوسية", "xh"},
["الدزونكا"] = { "الدزونكية", "dz"},
["الدزونكية"] = { "الدزونكية", "dz"},
["الدنماركية"] = { "الدنماركية", "da"},
["الديفهي"] = { "المالديفية", "dv"},
["الروسية"] = { "الروسية", "ru"},
["الرومانشية"] = { "الرومانشية", "rm"},
["الرومانية"] = { "الرومانية", "ro"},
["الروندية"] = { "الروندية", "rw"},
["الريبوارية"] = { "الريبوارية", "mis-x-ripuar"},
["الزهيونج"] = { "الزهيونج", "za"},
["الزولوية"] = { "الزولوية", "zu"},
["الساخية"] = { "الساخية", "sah"},
["الساموية"] = { "الساموية", "sm"},
["السامي الشمالية"] = { "سامية الشمال", "se"},
["السامية الجنوبية"] = { "سامية الجنوب", "sma"},
["السانغوية"] = { "السانغوية", "sg"},
["السردينية"] = { "السردينية", "sc"},
["السريانية"] = { "السريانية", "syc"},
["السلافونية الكنسية القديمة"] = { "سلافية الكنسية", "cu"},
["السلوفاكية"] = { "السلوفاكية", "sk"},
["السلوفينية"] = { "السلوفينية", "sl"},
["السندية"] = { "السندية", "sd"},
["السنسكريتية"] = { "السنسكريتية", "sa"},
["السنهالية"] = { "السنهالية", "si"},
["السواحلية"] = { "السواحلية", "sw"},
["السوازي"] = { "السوازية", "ss"},
["السوازية"] = { "السوازية", "ss"},
["السوتية"] = { "السوتية", "st"},
["السوندية"] = { "الصندية", "su"},
["السويدية"] = { "السويدية", "sv"},
["السيبونية"] = { "السيبيوانية", "ceb"},
["الشونا"] = { "الشونا", "sn"},
["الشيشانية"] = { "الشيشانية", "ce"},
["الصربوكرواتية"] = { "كرواتية صربيا", "sh"},
["الصربية (بالحرف السيريلي)"] = { "الصربية (بالحرف السيريلي)", "sr-ec"},
["الصربية (بالحرف اللاتيني)"] = { "الصربية (بالحرف اللاتيني)", "sr-el"},
["الصربية السيريلية"] = { "الصربية (بالحرف السيريلي)", "sr-ec"},
["الصربية اللاتينية"] = { "الصربية (بالحرف اللاتيني)", "sr-el"},
["الصربية"] = { "الصربية", "sr"},
["الصندية"] = { "الصندية", "su"},
["الصوربية السفلى"] = { "الصوربية السفلى", "dsb"},
["الصومالية"] = { "الصومالية", "so"},
["الصينية التقليدية"] = { "الصينية التقليدية", "zh-hant"},
["الصينية المبسطة"] = { "الصينية المبسطة", "zh-hans"},
["الصينية"] = { "الصينية", "zh"},
["الطاجيكية"] = { "الطاجيكية", "tg"},
["الطبرية"] = { "الطبرية", "mzn"},
["العبرية"] = { "العبرية", "he"},
["العربية الشحية"] = { "اللهجة الشحية", "ssh"},
["العربية الكريولية السودانية"] = { "اللهجة الكريولية", "pga"},
["العربية"] = { "العربية", "ar"},
["العفارية"] = { "العفارية", "aa"},
["الغاليسية"] = { "الجليقية", "gl"},
["الغرينلاندية"] = { "الغرينية", "kl"},
["الغرينية"] = { "الغرينية", "kl"},
["الغوارانية"] = { "الغوارانية", "gn"},
["الغيرنزية"] = { "الغيرنزية", "nrf"},
["الغيلية الاسكتلندية"] = { "غيلية إسكتنلدا", "gd"},
["الفارسية"] = { "الفارسية", "fa"},
["الفاروية"] = { "الفاروية", "fo"},
["الفرنسية السويسرية"] = { "فرنسية سويسرا", "fr_ch"},
["الفرنسية الكندية"] = { "فرنسية كندا", "fr_ca"},
["الفرنسية"] = { "الفرنسية", "fr"},
["الفريزية الغربية"] = { "الفريزية", "fy"},
["الفريزية"] = { "الفريزية", "fy"},
["الفلمنكية"] = { "الفلمنكية", "nl_be"},
["الفنلندية"] = { "الفنلندية", "fi"},
["الفولابوكية"] = { "الفولابوكية", "vo"},
["الفولانية"] = { "الفولانية", "ff"},
["الفيتنامية"] = { "الفيتنامية", "vi"},
["الفيجي الهندية"] = { "هندية فيجي", "hif"},
["الفيجية"] = { "الفيجية", "fj"},
["الفيندية"] = { "الفيندية", "ve"},
["القازاقية"] = { "القازاقية", "kk"},
["القبائلية (الجزائرية)"] = { "القبيلية", "kab"},
["القبائلية ال(جزائرية)"] = { "القبيلية", "kab"},
["القسطانية"] = { "القسطانية", "oc"},
["القطلونية"] = { "القطلونية", "ca"},
["القرغيزية"] = { "القرغيزية", "ky"},
["الكانتونية"] = { "الكانتونية", "zh-yue"},
["الكانورية"] = { "الكانورية", "kr"},
["الكتشوا"] = { "الكتشوية", "qu"},
["الكتشوية"] = { "الكتشوية", "qu"},
["الكجراتية"] = { "الكجراتية", "gu"},
["الكردية"] = { "الكردية", "ku"},
["الكرواتية"] = { "الكرواتية", "hr"},
["الكرية"] = { "الكرية", "cr"},
["الكريولية السيشيلية"] = { "كريولية سيشيل", "crs"},
["الكريولية الموريشية"] = { "كريولية موريشوس", "mfe"},
["الكريولية الهايتية"] = { "الكريولية الهايتية", "ht"},
["الكشميرية الديفنغارية"] = { "ديفنغارية كشمير", "ks-deva"},
["الكشميرية"] = { "الكشميرية", "ks"},
["الكلاسيكية الصينية"] = { "الصينية التقليدية", "zh-classical"},
["الكنادية"] = { "الكنادية", "kn"},
["الكنتونية"] = { "الكنتونية", "yue"},
["الكهوار"] = { "الكهوارية", "khw"},
["الكهوارية"] = { "الكهوارية", "khw"},
["الكورسية"] = { "الكورسية", "co"},
["الكورنية"] = { "الكورنية", "kw"},
["الكورية"] = { "الكورية", "ko"},
["الكولشية"] = { "الكولشية", "ksh"},
["الكولونيانية"] = { "الكولونيانية", "ksh-x-colog"},
["الكومية"] = { "الكومية", "kv"},
["الكونغو"] = { "الكونغو", "kg"},
["الكونكانية"] = { "الكونكانية", "gom"},
["الكيروندية"] = { "الكيروندية", "rn"},
["الكيكيو"] = { "الكيكيو", "ki"},
["الكيونياما"] = { "الكيونياما", "kj"},
["اللاتفية"] = { "اللاتفية", "lv"},
["اللاتينية"] = { "اللاتينية", "la"},
["اللاوية"] = { "اللاوية", "lo"},
["اللغات المتعددة"] = { "اللغات المتعددة", "mul"},
["اللهجة الشحية"] = { "اللهجة الشحية", "ssh"},
["اللهجة الكريولية"] = { "اللهجة الكريولية", "pga"},
["اللوكسمبورغية"] = { "اللوكسمبورغية", "lb"},
["اللومباردية"] = { "اللومباردية", "lmo"},
["الليتوانية"] = { "الليتوانية", "lt"},
["الليمبورغية"] = { "الليمبورغية", "li"},
["اللينغالا"] = { "اللينغالية", "ln"},
["اللينغالية"] = { "اللينغالية", "ln"},
["المابوتشية"] = { "المابوتشية", "arn"},
["المارشالية"] = { "المارشالية", "mh"},
["المالديفية"] = { "المالديفية", "dv"},
["المالطية"] = { "المالطية", "mt"},
["الماليالامية"] = { "الماليالامية", "ml"},
["الماورية"] = { "الماورية", "mi"},
["المجرية"] = { "المجرية", "hu"},
["المراثية"] = { "المراثية", "mr"},
["المقدونية"] = { "المقدونية", "mk"},
["الملايوية"] = { "الملايوية", "ms"},
["الملغاشية"] = { "الملغاشية", "mg"},
["المنغريلية"] = { "المنغريلية", "xmf"},
["المنغولية"] = { "المنغولية", "mn"},
["المنكية"] = { "المنكية", "gv"},
["المولدوفية"] = { "المولدوفية", "mo"},
["المين-نان الصينية"] = { "مينانية الجنوب", "nan"},
["النؤوسوية"] = { "النؤوسوية", "ii"},
["النافاجو"] = { "النافاجو", "nv"},
["الناورونية"] = { "الناوروية", "na"},
["الناوروية"] = { "الناوروية", "na"},
["الندونجا"] = { "الندونجا", "ng"},
["النديبلي الجنوبية"] = { "نديبلي الجنوبية", "nr"},
["النديبيل الشمالية"] = { "النديبيل الشمالية", "nd"},
["النرويجية البوكمول"] = { "النرويجية البوكمول", "nb"},
["النرويجية النينوشك"] = { "النرويجية النينوشك", "nn"},
["النرويجية"] = { "النرويجية", "no"},
["النوردية القديمة"] = { "النوردية القديمة", "non"},
["النورمندية"] = { "الغيرنزية", "nrf"},
["النيانجا"] = { "النيانجا", "ny"},
["النيبالية"] = { "النيبالية", "ne"},
["الهندية"] = { "الهندية", "hi"},
["الهوسية"] = { "الهوسية", "ha"},
["الهوكينة التايوانية"] = { "هوكينية تايوان", "nan-tw"},
["الهولندية"] = { "الهولندية", "nl"},
["الهيري الموتو"] = { "الهيرية", "ho"},
["الهيرية"] = { "الهيرية", "ho"},
["الهيريرو"] = { "الهيريرو", "hz"},
["الوالونية"] = { "الوالونية", "wa"},
["الولوفية"] = { "الولوفية", "wo"},
["الويلزية الوسطى"] = { "الويلزية الوسطى", "wlm"},
["الويلزية"] = { "الويلزية", "cy"},
["اليابانية"] = { "اليابانية", "ja"},
["اليديشية"] = { "اليديشية", "yi"},
["اليوربا"] = { "يوروبية", "yo"},
["اليونانية"] = { "اليونانية", "el"},
["بلوشية الجنوب"] = { "بلوشية الجنوب", "bcc"},
["تتارية القرم"] = { "تتارية القرم", "crh"},
["توسكية ألبانيا"] = { "توسكية ألبانيا", "als"},
["ديفنغارية كشمير"] = { "ديفنغارية كشمير", "ks-deva"},
["سامية الجنوب"] = { "سامية الجنوب", "sma"},
["سامية الشمال"] = { "سامية الشمال", "se"},
["سلافية الكنسية"] = { "سلافية الكنسية", "cu"},
["غير المعروفة"] = { "لغة غير معروفة", "und"},
["غير معروفة"] = { "لغة غير معروفة", "und"},
["غيلية إسكتنلدا"] = { "غيلية إسكتنلدا", "gd"},
["فرنسية سويسرا"] = { "فرنسية سويسرا", "fr_ch"},
["فرنسية كندا"] = { "فرنسية كندا", "fr_ca"},
["كرواتية صربيا"] = { "كرواتية صربيا", "sh"},
["كريولية سيشيل"] = { "كريولية سيشيل", "crs"},
["كريولية موريشوس"] = { "كريولية موريشوس", "mfe"},
["كوسية"] = { "الخوسية", "xh"},
["لغة وسيطة"] = { "لغة وسيطة", "ia"},
["مينانية الجنوب"] = { "مينانية الجنوب", "nan"},
["نديبلي الجنوبية"] = { "نديبلي الجنوبية", "nr"},
["هندية فيجي"] = { "هندية فيجي", "hif"},
["هوكينية تايوان"] = { "هوكينية تايوان", "nan-tw"},
["يوروبية"] = { "يوروبية", "yo"},
}
--[[---------------< P R O P E R T I E S _ C A T E G O R I E S >----------------
Properties categories. These are used for investigating qualities of citations.
]]
local prop_cats = {
['foreign-lang-source'] = 'الاستشهاد بمصادر باللغة $1 ($2)', -- |language= categories; $1 is foreign-language name, $2 is ISO639-1 code
['foreign-lang-source-2'] = 'الاستشهاد بمصادر بلغة أجنبية (أيزو 639-2)|$1', -- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code used as a sort key
['interproj-linked-name'] = 'الاستشهاد: أسماء بروابط مشاريع شقيقة interproject-linked names|$1', -- any author, editor, etc that has an interproject link; $1 is interproject tag used as a sort key
['interwiki-linked-name'] = 'الاستشهاد:وصلات إنترويكي للأسماء|$1', -- any author, editor, etc that has an interwiki link; $1 is interwiki tag used as a sort key; yeilds to interproject
['local-lang-source'] = 'الاستشهاد بمصادر باللغة $1 ($2)', -- |language= categories; $1 is local-language name, $2 is ISO639-1 code; not emitted when local_lang_cat_enable is false
['location-test'] = 'اختبار مكان الاستشهاد',
['long-vol'] = 'الاستشهاد: قيمة المجلد طويلة', -- probably temporary cat to identify scope of |volume= values longer than 4 characters
['script'] = 'الاستشهاد بمصادر بخط اللغة $1 ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
['tracked-param'] = 'وسيط استشهاد متتبع: $1', -- $1 is base (enumerators removed) parameter name
['unfit'] = 'الاستشهاد:رابط غير مناسب', -- |url-status=unfit or |url-status=usurped; used to be a maint cat
['vanc-accept'] = 'الاستشهاد:أسماء فانكوفر مع تمرير الترميز', -- for |vauthors=/|veditors= with accept-as-written markup
['year-range-abbreviated'] = "الاستشهاد: نطاق السنة المختصرة", -- probably temporary cat to identify scope of |date=, |year= values using YYYY–YY form
--#Added
['no_archive'] = 'صيانة الاستشهاد: استشهادات بمسارات غير مؤرشفة'
}
--[[-------------------< T I T L E _ T Y P E S >--------------------------------
Here we map a template's CitationClass to TitleType (default values for |type= parameter)
]]
local title_types = {
['AV-media-notes'] = 'تقارير إعلامية',
['document'] = 'وثيقة',
['interview'] = 'مقابلة',
['mailinglist'] = 'قائمة بريد',
['map'] = 'خريطة',
['podcast'] = 'بث صوتي',
['pressrelease'] = 'بيان صحفي',
['report'] = 'تقرير',
['speech'] = 'خطاب',
['techreport'] = 'تقرير فني',
['thesis'] = 'أطروحة',
}
--[[--------------------------< B U I L D _ K N O W N _ F R E E _ D O I _ R E G I S T R A N T S _ T A B L E >--
build a table of doi registrants known to be free-to-read In a doi, the registrant ID is the series of digits
between the '10.' and the first '/': in doi 10.1100/sommat, 1100 is the registrant ID
see §3.2.2 DOI prefix of the Doi Handbook p. 43
https://www.doi.org/doi-handbook/DOI_Handbook_Final.pdf#page=43
]]
local function build_free_doi_registrants_table()
local registrants_t = {};
for _, v in ipairs ({
'1045', '1074', '1096', '1100', '1155', '1186', '1194', '1371', '1613', '1629', '1989', '1999', '2147', '2196', '3285', '3389', '3390', '3906',
'3748', '3814', '3847', '3897', '4061', '4089', '4103', '4172', '4175', '4230', '4236', '4239', '4240', '4249', '4251',
'4252', '4253', '4254', '4291', '4292', '4329', '4330', '4331', '5086', '5194', '5210', '5306', '5312', '5313', '5314',
'5315', '5316', '5317', '5318', '5319', '5320', '5321', '5334', '5402', '5409', '5410', '5411', '5412',
'5492', '5493', '5494', '5495', '5496', '5497', '5498', '5499', '5500', '5501', '5527', '5528', '5662',
'6064', '6219', '7167', '7217', '7287', '7482', '7490', '7554', '7717', '7759', '7766', '9778', '11131', '11569', '11647',
'11648', '12688', '12703', '12715', '12942', '12998', '13105', '14256', '14293', '14303', '15215', '15347', '15412', '15560', '16995',
'17645', '18637', '19080', '19173', '20944', '21037', '21105', '21468', '21767', '21425', '22261', '22323', '22459', '24105', '24196', '24966',
'26775', '30845', '32545', '35711', '35712', '35713', '35995', '36648', '37126', '37532', '37871', '47128',
'47622', '47959', '52437', '52975', '53288', '53347', '54081', '54947', '55667', '55914', '57009', '58647', '59081',
}) do
registrants_t[v] = true; -- build a k/v table of known free-to-read doi registrants
end
return registrants_t;
end
-- known free registrants identifiable by the doi suffix incipit
local extended_registrants_t = { -- doi suffix incipits are evaluated as lua patterns
['1002'] = {'aelm', 'leap', 'loe2%.', 'lol2%.'}, -- Advanced Electronic Materials, Learned Publishing, L&O e-Lectures, L&O Letters
['1016'] = {'j%.aace', 'j%.aed', 'j%.aiopen', 'j%.animal', 'j%.apsb', 'j%.addicn', -- AACE Endocrinology and Diabetes, AACE Endocrinology and Diabetes, AI Open, Animal, Acta Pharmaceutica Sinica B, Addiction Neuroscience
'j%.abrep', 'j%.gpb', 'j%.heliyon', 'j%.nlp', 'j%.patter', 'j%.proche', -- Addictive Behaviors Reports, Genomics, Proteomics & Bioinformatics after 2015, Heliyon, Natural Language Processing, Patterns, Procedia Chemistry
'j%.vgie', 'S1672-0229'}, -- VideoGIE, Genomics, Proteomics & Bioinformatics before 2015
['1017'] = {'apj%.', 'nlp', 'mdh', 'S15574660'}, -- Natural Language Processing Journal, Medical History, Asia Pacific Journal
['1046'] = {'j%.1365-8711', 'j%.1365-246x'}, -- MNRAS, GJI
['1021'] = {'acscentsci', 'acsomega'}, -- ACS Central Science, ACS Omega
['1093'] = {'mnras', 'mnrasl', 'gji', 'pnasnexus', 'rasti'}, -- MNRAS, MNRAS Letters, GJI, PNAS Nexus, RASTI
['1098'] = {'rsbm', 'rsob', 'rsos'}, -- Biographical Memoirs of Fellows of the Royal Society, Open Biology, Royal Society Open Science
['1099'] = {'acmi', 'mic', '00221287', 'mgen'}, -- Access Microbiology, Microbiology, Journal of General Microbiology, Microbial Genomics
['1107'] = {'S20569890', 'S20522525', 'S16005775', 'S24143146'}, -- Acta Crystallographica E, IUCrJ, Journal of Synchrotron Radiation, IUCrData
['1109'] = {'oa', 'oj'}, -- IEEE Open Access..., IEEE Open Journal...
['1111'] = {'aogs', 'j%.1365-2966', 'j%.1745-3933', 'j%.1365-246X'}, -- Acta Obstetricia et Gynecologica Scandinavica, MNRAS, MNRAS Letters, GJI
['1128'] = {'asmcr', 'jmbe', 'mbio', 'mra', 'spectrum', 'msphere', 'msystems'}, --ASM Case Reports, Journal of Microbiology & Biology Education, mBio, Microbiology Resource Announcements, Microbiology Spectrum, mSphere, mSystems
['1136'] = {'bmjopen'}, -- BMJ Open
['1140'] = {'epjc'}, -- European Physical Journal C
['1192'] = {'bjo'}, -- BJPsych Open
['1210'] = {'jendso','jcemcr'}, -- Journal of the Endocrine Society, JCEM Case Reports
['1215'] = {'21573689', '21573698'}, -- L&O Fluids
['1590'] = {'0102-3306'}, -- Acta Botanica Brasilica
['4171'] = {'dm','mag'}, -- Documenta Mathematica, EMS Magazine
['4319'] = {'lo%.', 'lol%.', 'lom%.'}, -- L&O, L&O e-Lectures, L&O Methods
['5852'] = {'ejt'}, -- European Journal of Taxonomy
['7155'] = {'jgaa'}, -- Journal of Graph Algorithms and Applications
['11158'] = {'saasp'}, -- Systematic and Applied Acarology Special Publications
['11646'] = {'megataxa', 'mesozoic'}, -- Megataxa, Mesozoic
['14231'] = {'ag'}, -- Algebraic Geometry
['15446'] = {'abc'}, -- Acta Biológica Colombiana
['17239'] = {'jowr'}, -- Journal of Writing Research
['22073'] = {'pja'}, -- Persian Journal of Acarology
['24310'] = {'abm'}, -- Acta Botanica Malacitana
['24425'] = {'agp'}, -- Acta Geologica Polonica
['35249'] = {'rche'}, -- Revista Chilena de Entomología
['37520'] = {'fi'}, -- Fossil Imprint
['53562'] = {'ajcb'} -- Asian Journal of Conservation Biology
}
--[[===================<< E R R O R M E S S A G I N G >>======================
]]
--[[----------< E R R O R M E S S A G E S U P P L E M E N T S >-------------
I18N for those messages that are supplemented with additional specific text that
describes the reason for the error
TODO: merge this with special_case_translations{}?
]]
local err_msg_supl = {
['char'] = 'حرف غير صالح', -- |isbn=, |sbn=
['check'] = 'checksum', -- |isbn=, |sbn=
empty_str = '(نص فارغ)', -- empty unknown parameter check when cite has |=
['flag'] = 'علامة', -- |archive-url=
['form'] = 'تقديم غير صالح', -- |isbn=, |sbn=
['group'] = 'معرف مجموعة غير صالح', -- |isbn=
['initials'] = 'بادئات', -- Vancouver
['invalid language code'] = 'كود لغة غير صالح', -- |script-<param>=
['journal'] = 'دورية محكمة', -- |bibcode=
['length'] = 'طول', -- |isbn=, |bibcode=, |sbn=
['liveweb'] = 'liveweb', -- |archive-url=
['missing comma'] = 'فاصلة مفقودة', -- Vancouver
['missing prefix'] = 'بادئة مفقودة', -- |script-<param>=
['missing title part'] = 'قسم العنوان مفقود', -- |script-<param>=
['name'] = 'اسم', -- Vancouver
['non-Latin char'] = 'حرف غير لاتيني', -- Vancouver
['path'] = 'مسار', -- |archive-url=
['prefix'] = 'بادئة غير صالحة', -- |isbn=
['punctuation'] = 'علامة ترقيم', -- Vancouver
['save'] = 'أمر حفظ', -- |archive-url=
['suffix'] = 'لاحقة', -- Vancouver
['timestamp'] = 'تاريخ', -- |archive-url=
['unknown language code'] = 'كود لغة مجهول', -- |script-<param>=
['value'] = 'قيمة', -- |bibcode=
['year'] = 'سنة', -- |bibcode=
}
--[[--------------< E R R O R _ C O N D I T I O N S >---------------------------
جدول شروط الأخطاء. يتكون هذا الجدول من قسمين: أخطاء في الأعلى ، صيانة في الأسفل.
Maint 'messaging' does not have a 'message' (message=nil)
The following contains a list of IDs for various error conditions defined in the
code. For each ID, we specify a text message to display, an error category to
include, and whether the error message should be wrapped as a hidden comment.
Anchor changes require identical changes to matching anchor in Help:CS1 errors
TODO: rename error_conditions{} to something more generic; create separate error
and maint tables inside that?
]]
local error_conditions = {
err_accessdate_missing_url = {
message = 'الوسيط <code class="cs1-code">|$1</code> بحاجة لـ <code class="cs1-code">|مسار=</code>',
anchor = 'accessdate_missing_url',
category = 'أخطاء الاستشهاد: صفحات تحتوي مراجع ويب بتاريخ وصول وبدون مسار',
hidden = false
},
err_apostrophe_markup = {
message = 'استعمال الخط المائل أو الغليظ غير مسموح: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'apostrophe_markup',
category = 'أخطاء الاستشهاد: ترميز',
hidden = false
},
err_archive_date_missing_url = {
message = '<code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|مسار-الأرشيف=</code>',
anchor = 'archive_date_missing_url',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_date_url_ts_mismatch = {
message = '<code class="cs1-code">|تاريخ-الأرشيف=</code> / <code class="cs1-code">|مسار-الأرشيف=</code> لا يتطابقان في الوقت، المقترح $1',
anchor = 'archive_date_url_ts_mismatch',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_missing_date = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|تاريخ أرشيف=</code>', -- $1 is |archive-url=
anchor = 'archive_missing_date',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_missing_url = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|مسار=</code>', -- $1 is |archive-url=
anchor = 'archive_missing_url',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_archive_url = {
message = 'الوسيط <code class="cs1-code">|مسار-الأرشيف=</code> غير صحيح: $1', -- a $1 is error message detail
anchor = 'archive_url',
category = 'أخطاء الاستشهاد: مسار الأرشيف',
hidden = false
},
err_arxiv_missing = {
message = 'الوسيط <code class="cs1-code">|arxiv=</code> مطلوب',
anchor = 'arxiv_missing',
category = 'أخطاء الاستشهاد: أرخايف',
hidden = false
},
err_asintld_missing_asin = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|asin=</code>', -- $1 is parameter name
anchor = 'asintld_missing_asin',
category = 'أخطاء الاستشهاد: ASIN TLD',
hidden = false
},
err_bad_arxiv = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|arxiv=</code>',
anchor = 'bad_arxiv',
category = 'أخطاء الاستشهاد: أرخايف',
hidden = false
},
err_bad_asin = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|asin=</code>',
anchor = 'bad_asin',
category = 'أخطاء الاستشهاد: الوسيط ASIN',
hidden = false
},
err_bad_asin_tld = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|asin-tld=</code>',
anchor = 'bad_asin_tld',
category = 'أخطاء الاستشهاد: ASIN TLD',
hidden = false
},
err_bad_bibcode = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|bibcode=</code> $1', -- $1 is error message detail
anchor = 'bad_bibcode',
category = 'أخطاء الاستشهاد: بيب كود',
hidden = false
},
err_bad_biorxiv = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|biorxiv=</code> ',
anchor = 'bad_biorxiv',
category = 'أخطاء الاستشهاد: bioRxiv',
hidden = false
},
err_bad_citeseerx = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|citeseerx=</code>',
anchor = 'bad_citeseerx',
category = 'أخطاء الاستشهاد: الوسيط citeseerx',
hidden = false
},
err_bad_date = {
message = 'تحقق من التاريخ في: $1', --the $1 is a parameter name list
anchor = 'bad_date',
category = 'أخطاء الاستشهاد: التاريخ',
hidden = true
},
err_bad_doi = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|doi=</code>',
anchor = 'bad_doi',
category = 'أخطاء الاستشهاد: دوي',
hidden = false
},
err_bad_hdl = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|hdl=</code>',
anchor = 'bad_hdl',
category = 'أخطاء الاستشهاد: الوسيط HDL',
hidden = false
},
err_bad_isbn = {
message = 'تأكد من صحة <code class="cs1-code">|isbn=</code> القيمة: $1', -- $1 is error message detail
anchor = 'bad_isbn',
category = 'أخطاء الاستشهاد: ردمك',
hidden = false
},
err_bad_ismn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|ismn=</code>',
anchor = 'bad_ismn',
category = 'أخطاء الاستشهاد: الوسيط ISMN',
hidden = false
},
err_bad_issn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|$1issn=</code>', -- $1 is 'e' or '' for eissn or issn
anchor = 'bad_issn',
category = 'أخطاء الاستشهاد: الوسيط ISSN',
hidden = false
},
err_bad_jfm = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|jfm=</code>',
anchor = 'bad_jfm',
category = 'أخطاء الاستشهاد: JFM',
hidden = false
},
err_bad_jstor = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|jstor=</code>',
anchor = 'bad_jstor',
category = 'أخطاء الاستشهاد: JSTOR',
hidden = false
},
err_bad_lccn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|lccn=</code>',
anchor = 'bad_lccn',
category = 'أخطاء الاستشهاد: كونغرس',
hidden = false
},
err_bad_medrxiv = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|medrxiv=</code>',
anchor = 'bad_medrxiv',
category = 'أخطاء الاستشهاد: medRxiv',
hidden = false
},
err_bad_mr = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|mr=</code>',
anchor = 'bad_mr',
category = 'أخطاء الاستشهاد: MR',
hidden = false
},
err_bad_oclc = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|oclc=</code>',
anchor = 'bad_oclc',
category = 'أخطاء الاستشهاد: أكلس',
hidden = false
},
err_bad_ol = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|ol=</code>',
anchor = 'bad_ol',
category = 'أخطاء الاستشهاد: المكتبة المفتوحة',
hidden = false
},
err_bad_osti = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|osti=</code>',
anchor = 'bad_osti',
category = 'أخطاء الاستشهاد: OSTI',
hidden = false
},
err_bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=
message = 'تأكد من صحة قيمة <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'bad_paramlink',
category = 'أخطاء الاستشهاد: وصلة',
hidden = false
},
err_bad_pmc = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|pmc=</code>',
anchor = 'bad_pmc',
category = 'أخطاء الاستشهاد: ببمد سنترال',
hidden = false
},
err_bad_pmid = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|pmid=</code>',
anchor = 'bad_pmid',
category = 'أخطاء الاستشهاد: ببمد',
hidden = false
},
err_bad_rfc = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|rfc=</code>',
anchor = 'bad_rfc',
category = 'أخطاء الاستشهاد: RFC',
hidden = false
},
err_bad_s2cid = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|s2cid=</code>',
anchor = 'bad_s2cid',
category = 'أخطاء الاستشهاد: S2CID',
hidden = false
},
err_bad_sbn = {
message = 'تأكد من قيمة <code class="cs1-code">|sbn=</code>: $1', -- $1 is error message detail
anchor = 'bad_sbn',
category = 'أخطاء الاستشهاد: SBN',
hidden = false
},
err_bad_ssrn = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|ssrn=</code>',
anchor = 'bad_ssrn',
category = 'أخطاء الاستشهاد: SSRN',
hidden = false
},
err_bad_url = {
message = 'تحقق من قيمة $1',
anchor = 'bad_url',
category = 'أخطاء الاستشهاد: المسار',
hidden = false
},
err_bad_usenet_id = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|message-id=</code>',
anchor = 'bad_message_id',
category = 'أخطاء الاستشهاد: معرف الرسالة',
hidden = false
},
err_bad_zbl = {
message = 'تأكد من صحة قيمة <code class="cs1-code">|zbl=</code>',
anchor = 'bad_zbl',
category = 'أخطاء الاستشهاد: Zbl',
hidden = false
},
err_bare_url_missing_title = {
message = '$1 بحاجة لعنوان', -- a $1 is parameter name
anchor = 'bare_url_missing_title',
category = 'أخطاء الاستشهاد: قصور في مسار ',
hidden = false
},
--#Added
err_wikidata_bare_url_missing_title = {
message = '$1 بحاجة لعنوان', -- a $1 is parameter name
anchor = 'bare_url_missing_title',
category = 'أخطاء الاستشهاد: من ويكي بيانات: قصور في مسار',
hidden = true
},
err_biorxiv_missing = {
message = 'الوسيط <code class="cs1-code">|biorxiv=</code> مطلوب',
anchor = 'biorxiv_missing',
category = 'أخطاء الاستشهاد: bioRxiv', -- same as bad bioRxiv
hidden = false
},
err_chapter_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'chapter_ignored',
category = 'أخطاء الاستشهاد: الفصل تم تجاهله',
hidden = false
},
err_citation_missing_title = {
message = 'الوسيط <code class="cs1-code">|$1=</code> غير موجود أو فارغ', --a $1 is parameter name 'مفقود أو فارغ <code class="cs1-code">|$1=</code>'
anchor = 'citation_missing_title',
category = 'أخطاء الاستشهاد: الافتقار إلى عنوان',
hidden = false
},
--#Added
err_wikidata_citation_missing_title = {
message = 'الوسيط <code class="cs1-code">|$1=</code> غير موجود أو فارغ (من ويكي بيانات)', --a $1 is parameter name 'مفقود أو فارغ <code class="cs1-code">|$1=</code>'
anchor = 'citation_missing_title',
category = 'أخطاء الاستشهاد: من ويكي بيانات: الافتقار إلى عنوان',
hidden = true
},
err_citeseerx_missing = {
message = 'الوسيط <code class="cs1-code">|citeseerx=</code> مطلوب',
anchor = 'citeseerx_missing',
category = 'أخطاء الاستشهاد: الوسيط citeseerx', -- same as bad citeseerx
hidden = false
},
err_cite_web_url = { -- this error applies to cite web and to cite podcast
message = 'الوسيط <code class="cs1-code">|مسار=</code> غير موجود أو فارع', --a 'مفقود أو فارغ <code class="cs1-code">|url=</code>',
anchor = 'cite_web_url',
category = 'أخطاء الاستشهاد: يتطلب مسار',
hidden = false
},
err_class_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|class=</code>',
anchor = 'class_ignored',
category = 'أخطاء الاستشهاد: class',
hidden = false
},
err_contributor_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|contributor=</code>',
anchor = 'contributor_ignored',
category = 'أخطاء الاستشهاد: مشاركون',
hidden = false
},
err_contributor_missing_required_param = {
message = 'الوسيط <code class="cs1-code">|contributor=</code> بحاجة لـ <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'contributor_missing_required_param',
category = 'أخطاء الاستشهاد: مشاركون',
hidden = false
},
--#Added
err_date_in_hijri_date_param = {
message = 'تاريخ ميلادي في <code class="cs1-code">|$1=</code>، استعمل وسيط <code class="cs1-code">|تاريخ=</code>', -- $1 is parameter name
anchor = 'date_in_hijri_date_param',
category = 'أخطاء الاستشهاد: تاريخ ميلادي في وسيط تاريخ هجري',
hidden = false
},
--#Added
err_date_hijri_and_gregorian_not_corresponded = {
message = 'تاريخ ميلادي لا يتوافق مع التاريخ الهجري',
anchor = 'hijri_and_gregorian_not_corresponded',
category = 'أخطاء الاستشهاد: التاريخ الميلادي لا يتوافق مع التاريخ الهجري',
hidden = false
},
err_deprecated_params = {
message = 'الاستشهاد يستخدم وسيط مهمل <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'deprecated_params',
category = 'أخطاء الاستشهاد: وسائط مستغى عنها', -- CS1 errors:
hidden = false
},
err_disp_name = {
message = 'الوسيط <code class="cs1-code">|$1=$2</code> غير صالح', -- $1 is parameter name; $2 is the assigned value
anchor = 'إظهار-الأسماء',
category = 'أخطاء الاستشهاد: إظهار الأسماء', --display-names
hidden = false
},
err_doibroken_missing_doi = {
message = '<code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|doi=</code>', -- $1 is parameter name
anchor = 'doibroken_missing_doi',
category = 'أخطاء الاستشهاد: دوي',
hidden = false
},
err_embargo_missing_pmc = {
message = 'الوسيط <code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|pmc=</code>', -- $1 is parameter name
anchor = 'embargo_missing_pmc',
category = 'أخطاء الاستشهاد: PMC embargo',
hidden = false
},
err_empty_citation = {
message = 'استشهاد فارغ!',
anchor = 'empty_citation',
category = 'أخطاء الاستشهاد: استشهاد فارغ',
hidden = false
},
err_etal = {
message = 'Explicit use of et al. in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'explicit_et_al',
category = 'أخطاء الاستشهاد: استخدام (وآخرون - et al.)', -- CS1 errors: Explicit use of et al.
hidden = false
},
err_extra_text_edition = {
message = '<code class="cs1-code">|طبعة=</code> يحوي نصًّا زائدًا',
anchor = 'extra_text_edition',
category = 'أخطاء الاستشهاد: نص زائد: طبعة',
hidden = false
},
err_extra_text_issue = {
message = '<code class="cs1-code">|$1=</code> يحوي نصًّا زائدًا', -- $1 is parameter name
anchor = 'extra_text_issue',
category = 'أخطاء الاستشهاد: نص زائد: العدد',
hidden = false
},
err_extra_text_pages = {
message = '<code class="cs1-code">|$1=</code> يحوي نصًّا زائدًا', -- $1 is parameter name
anchor = 'extra_text_pages',
category = 'أخطاء الاستشهاد: نص زائد: الصفحات',
hidden = false
},
err_extra_text_volume = {
message = '<code class="cs1-code">|$1=</code> يحوي نصًّا زائدًا', -- $1 is parameter name
anchor = 'extra_text_volume',
category = 'أخطاء الاستشهاد: نص زائد: المجلد',
hidden = true
},
err_first_missing_last = {
message = 'الوسيط <code class="cs1-code">|$1=</code> يفتقد <code class="cs1-code">|$2=</code>', -- $1 is first alias, $2 is matching last alias
anchor = 'first_missing_last',
category = 'أخطاء الاستشهاد: اسم مفقود', --- author, contributor, editor, interviewer, translator
hidden = false
},
err_format_missing_url = {
message = '<code class="cs1-code">|$1=</code> بحاجة لـ <code class="cs1-code">|$2=</code>', -- $1 is format parameter $2 is url parameter
anchor = 'format_missing_url',
category = 'أخطاء الاستشهاد: صيغة المسار ذكرت دون المسار',
hidden = false
},
err_generic_name = {
message = '<code class="cs1-code">|$1=</code> باسم عام', -- $1 is parameter name
anchor = 'generic_name',
category = 'أخطاء الاستشهاد: اسم عام',
hidden = false
},
err_generic_title = {
message = 'الاستشهاد يستخدم عنوان عام',
anchor = 'generic_title',
category = 'أخطاء الاستشهاد: عنوان عام',
hidden = false
},
--#Added
err_hijri_date_in_date_param = {
message = 'تاريخ هجري في <code class="cs1-code">|$1=</code>، استعمل وسيط <code class="cs1-code">تاريخ هجري=</code>', -- $1 is parameter name
anchor = 'hijri_date_in_date_param',
category = 'أخطاء الاستشهاد: تاريخ هجري في حقل تاريخ ميلادي', -- CS1 errors: param-access
hidden = false
},
err_invalid_isbn_date = {
message = 'لا توافق بين ردمك والتاريخ',
anchor = 'invalid_isbn_date',
category = 'أخطاء الاستشهاد:تاريخ ردمك',
hidden = true
},
err_invalid_param_val = {
message = 'الوسيط <code class="cs1-code">|$1=$2</code> غير صالح', -- $1 is parameter name $2 is parameter value
anchor = 'invalid_param_val',
category = 'أخطاء الاستشهاد: قيمة غير صالحة لوسيط',
hidden = false
},
err_invisible_char = {
message = '$1 في $2 في مكان $3', -- $1 is invisible char $2 is parameter name $3 is position number
anchor = 'invisible_char',
category = 'أخطاء الاستشهاد: حروف غير مرئية',
hidden = false
},
err_medrxiv_missing = {
message = '<code class="cs1-code">|medrxiv=</code> مطلوب',
anchor = 'medrxiv_missing',
category = 'أخطاء الاستشهاد: medRxiv', -- same as bad medRxiv
hidden = false
},
err_missing_name = {
message = 'الوسيط <code class="cs1-code">|$1$2=</code> مفقود', -- $1 is modified NameList; $2 is enumerator
anchor = 'missing_name',
category = 'أخطاء الاستشهاد: اسم مفقود', -- author, contributor, editor, interviewer, translator
hidden = false
},
err_missing_periodical = {
message = 'الاستشهاد ب$1 يطلب <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical periodical parameter name for cite $1
anchor = 'missing_periodical',
category = 'أخطاء الاستشهاد: دورية مفقودة',
hidden = true
},
err_missing_pipe = {
message = 'عمود مفقود في: <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'missing_pipe',
category = 'أخطاء الاستشهاد: عمود مفقود',
hidden = false
},
err_missing_publisher = {
message = 'استشهاد $1 يتطلب <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical publisher parameter name for cite $1
anchor = 'missing_publisher',
category = 'أخطاء الاستشهاد: الناشر مفقود',
hidden = false
},
err_numeric_names = {
message = 'الوسيط <code class="cs1-code">|$1=</code> يحوي أسماء رقمية', -- $1 is parameter name',
anchor = 'numeric_names',
category = 'أخطاء الاستشهاد: أسماء رقمية',
hidden = false,
},
err_param_access_requires_param = {
message = 'الوسيط <code class="cs1-code">|$1-access=</code> بحاجة لـ <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'param_access_requires_param',
category = 'أخطاء الاستشهاد: تاريخ الوصول', -- CS1 errors: param-access
hidden = false
},
err_param_has_ext_link = {
message = 'روابط خارجية في <code class="cs1-code">$1</code>', -- $1 is parameter name
anchor = 'param_has_ext_link',
category = 'أخطاء الاستشهاد: روابط خارجية',
hidden = false
},
err_param_has_twl_url = {
message = 'وصلة مكتبة ويكيبيديا في <code class="cs1-code">$1</code>', -- $1 is parameter name
anchor = 'param_has_twl_url',
category = 'أخطاء الاستشهاد: المسار',
hidden = false
},
err_parameter_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code> لأنه غير معروف', -- $1 is parameter name
anchor = 'parameter_ignored',
category = 'أخطاء الاستشهاد: وسائط غير مدعومة',
hidden = false
},
err_parameter_ignored_suggest = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code> لأنه غير معروف، ويقترح استخدام <code class="cs1-code">|$2=</code>', -- $1 is unknown parameter $2 is suggested parameter name
anchor = 'parameter_ignored_suggest',
category = 'أخطاء الاستشهاد: وسائط غير مدعومة',
hidden = false
},
err_periodical_ignored = {
message = 'تجاهل المحلل الوسيط <code class="cs1-code">|$1=</code>', -- $1 is parameter name
anchor = 'periodical_ignored',
category = 'أخطاء الاستشهاد: تجاهل الدورية',
hidden = false
},
err_redundant_parameters = {
message = 'الوسيط $1 تكرر أكثر من مرة', -- $1 is error message detail
anchor = 'redundant_parameters',
category = 'أخطاء الاستشهاد: وسائط مكررة',
hidden = false
},
err_script_parameter = {
message = 'الوسيط غير صالح <code class="cs1-code">|$1=</code>: $2', -- $1 is parameter name $2 is script language code or error detail
anchor = 'script_parameter',
category = 'أخطاء الاستشهاد: script parameters',
hidden = false
},
err_ssrn_missing = {
message = 'الوسيط <code class="cs1-code">|ssrn=</code> مطلوب',
anchor = 'ssrn_missing',
category = 'أخطاء الاستشهاد: SSRN',
hidden = false
},
err_text_ignored = {
message = 'تجاهل المحلل النص "$1"', -- $1 is ignored text
anchor = 'text_ignored',
category = 'أخطاء الاستشهاد: وسائط غير مسماه',
hidden = false
},
err_trans_missing_title = {
message = '<code class="cs1-code">|trans-$1=</code> بحاجة لـ <code class="cs1-code">|$1=</code> أو <code class="cs1-code">|script-$1=</code>', -- $1 is base parameter name
anchor = 'trans_missing_title',
category = 'أخطاء الاستشهاد: عنوان مترجم دون العنوان الأصلي',
hidden = false
},
err_param_unknown_empty = {
message = 'يحتوي الاستشهاد على وسيط غير معروف وفارغ$1: $2', --a $1 is 's' or empty space; $2 is emty unknown param list
anchor = 'param_unknown_empty',
category = 'أخطاء الاستشهاد: وسائط غير معروفة فارغة',
hidden = false
},
err_vancouver = {
message = 'Vancouver style error: $1 in name $2', -- $1 is error detail, $2 is the nth name
anchor = 'vancouver',
category = 'أخطاء الاستشهاد: أسلوب فانكوفر',
hidden = false
},
err_wikilink_in_url = {
message = 'تعارض مسار مع وصلة', -- uses ndash
anchor = 'wikilink_in_url',
category = 'أخطاء الاستشهاد: تعارض مسار مع وصلة', -- uses ndash
hidden = false
},
--[[--------------------------< M A I N T >-------------------------------------
maint messages do not have a message (message = nil); otherwise the structure
is the same as error messages
]]
maint_archive_origin = {
message = nil,
anchor = 'archive_origin',
category = 'صيانة الاستشهاد: مصدر الأرشيف',
hidden = true,
},
maint_archived_copy = {
message = nil,
anchor = 'archived_copy',
category = 'صيانة الاستشهاد: الأرشيف كعنوان',
hidden = true,
},
maint_bibcode = {
message = nil,
anchor = 'bibcode',
category = 'صيانة الاستشهاد: bibcode',
hidden = true,
},
maint_location_no_publisher = { -- cite book, conference, encyclopedia; citation as book cite or encyclopedia cite
message = nil,
anchor = 'location_no_publisher',
category = 'صيانة الاستشهاد: مكان بدون ناشر',
hidden = true,
},
maint_bot_unknown = {
message = nil,
anchor = 'bot:_unknown',
category = 'صيانة الاستشهاد: BOT: original URL status unknown',
hidden = true,
},
maint_date_auto_xlated = { -- date auto-translation not supported by en.wiki
message = nil,
anchor = 'date_auto_xlated',
category = 'صيانة الاستشهاد: date auto-translated',
hidden = true,
},
maint_date_format = {
message = nil,
anchor = 'date_format',
category = 'صيانة الاستشهاد: تنسيق التاريخ',
hidden = true
},
maint_date_year = {
message = nil,
anchor = 'date_year',
category = 'صيانة الاستشهاد: التاريخ والسنة',
hidden = true
},
maint_deprecated_archive = {
message = nil,
anchor = 'deprecated_archive',
category = 'صيانة الأرشيف:خدمة أرشيف مستغنى عنها',
hidden = true,
},
maint_doi_ignore = {
message = nil,
anchor = 'doi_ignore',
category = 'صيانة الاستشهاد: تجاهل خطأ دوي',
hidden = true,
},
maint_doi_inactive = {
message = nil,
anchor = 'doi_inactive',
category = 'صيانة الاستشهاد: وصلة دوي غير نشطة',
hidden = true,
},
maint_doi_inactive_dated = {
message = nil,
anchor = 'doi_inactive_dated',
category = 'صيانة الاستشهاد: وصلة دوي غير نشطة منذ $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string
hidden = true,
},
maint_doi_unflagged_free = {
message = nil,
anchor = 'doi_unflagged_free',
category = 'صيانة الاستشهاد: دوي مجاني غير معلم',
hidden = true,
},
maint_extra_punct = {
message = nil,
anchor = 'extra_punct',
category = 'صيانة الاستشهاد: علامات ترقيم زائدة',
hidden = true,
},
maint_id_limit_load_fail = { -- applies to all cs1|2 templates on a page;
message = nil, -- maint message (category link) never emitted
anchor = 'id_limit_load_fail',
category = 'صيانة الاستشهاد:فشل في تحميل حد المعرف',
hidden = true,
},
maint_isbn_ignore = {
message = nil,
anchor = 'ignore_isbn_err',
category = 'صيانة الاستشهاد: تجاهل خطأ ردمك',
hidden = true,
},
maint_issn_ignore = {
message = nil,
anchor = 'ignore_issn',
category = 'صيانة الاستشهاد: تجاهل خطأ ISSN',
hidden = true,
},
maint_jfm_format = {
message = nil,
anchor = 'jfm_format',
category = 'صيانة الاستشهاد: JFM format',
hidden = true,
},
maint_location = {
message = nil,
anchor = 'location',
category = 'صيانة الاستشهاد: مكان',
hidden = true,
},
maint_missing_class = {
message = nil,
anchor = 'missing_class',
category = 'صيانة الاستشهاد:تصنيف مفقود',
hidden = true,
},
maint_mr_format = {
message = nil,
anchor = 'mr_format',
category = 'صيانة الاستشهاد: MR format',
hidden = true,
},
maint_mult_names = {
message = nil,
anchor = 'mult_names',
category = 'صيانة الاستشهاد: أسماء متعددة: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_numeric_names = {
message = nil,
anchor = 'numeric_names',
category = 'صيانة الاستشهاد: أسماء عددية: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_others = {
message = nil,
anchor = 'others',
category = 'صيانة الاستشهاد: آخرون',
hidden = true,
},
maint_others_avm = {
message = nil,
anchor = 'others_avm',
category = 'صيانة الاستشهاد: others in cite AV media (notes)',
hidden = true
},
maint_overridden_setting = {
message = nil,
anchor = 'overridden',
category = 'صيانة الاستشهاد: overridden setting',
hidden = true,
},
maint_page_art_num = {
message = nil,
anchor = 'page_art_num',
category = 'صيانة الاستشهاد: رقم المقال على أنه رقم صفحة',
hidden = true,
},
maint_pmc_embargo = {
message = nil,
anchor = 'embargo',
category = 'صيانة الاستشهاد: PMC embargo expired',
hidden = true,
},
maint_pmc_format = {
message = nil,
anchor = 'pmc_format',
category = 'صيانة الاستشهاد: تنسيق PMC',
hidden = true,
},
maint_postscript = {
message = nil,
anchor = 'postscript',
category = 'صيانة الاستشهاد: postscript',
hidden = true,
},
maint_publisher_location = {
message = nil,
anchor = 'publisher_location',
category = 'صيانة الاستشهاد: مكان الناشر',
hidden = true,
},
maint_ref_duplicates_default = {
message = nil,
anchor = 'ref_default',
category = 'صيانة الاستشهاد: ref duplicates default',
hidden = true,
},
maint_shortened_archive_url = {
message = nil,
anchor = 'shortened_archive_url',
category = 'صيانة الاستشهاد: مسار أرشيف مختصر',
hidden = true,
},
maint_unknown_lang = {
message = nil,
anchor = 'unknown_lang',
category = 'صيانة الاستشهاد: لغة غير مدعومة',
hidden = true,
},
maint_untitled = {
message = nil,
anchor = 'untitled',
category = 'صيانة الاستشهاد: دورية دون عنوان',
hidden = true,
},
maint_url_status = {
message = nil,
anchor = 'url_status',
category = 'صيانة الاستشهاد: url-status',
hidden = true,
},
maint_work_isbn = {
message = nil,
anchor = 'work_isbn',
category = 'صيانة الاستشهاد: وسيط العمل ردمك',
hidden = true,
},
maint_year= {
message = nil,
anchor = 'year',
category = 'صيانة الاستشهاد:السنة',
hidden = true,
},
maint_zbl = {
message = nil,
anchor = 'zbl',
category = 'صيانة الاستشهاد: Zbl',
hidden = true,
},
}
--[[--------------------------< I D _ L I M I T S _ D A T A _ T >----------------------------------------------
fetch id limits for certain identifiers from c:Data:CS1/Identifier limits.tab. This source is a json tabular
data file maintained at wikipedia commons. Convert the json format to a table of k/v pairs.
The values from <id_limits_data_t> are used to set handle.id_limit.
From 2025-02-21, MediaWiki is broken. Use this link to edit the tablular data file:
https://commons.wikimedia.org/w/index.php?title=Data:CS1/Identifier_limits.tab&action=edit
See Phab:T389105
]]
local id_limits_data_t = {};
local use_commons_data = true; -- set to false if your wiki does not have access to mediawiki commons; then,
if false == use_commons_data then -- update this table from https://commons.wikimedia.org/wiki/Data:CS1/Identifier_limits.tab; last update: 2025-02-21
id_limits_data_t = {['OCLC'] = 10450000000, ['OSTI'] = 23010000, ['PMC'] = 11900000, ['PMID'] = 40400000, ['RFC'] = 9300, ['SSRN'] = 5200000, ['S2CID'] = 276000000}; -- this table must be maintained locally
else -- here for wikis that do have access to mediawiki commons
local load_fail_limit = 99999999999; -- very high number to avoid error messages on load failure
id_limits_data_t = {['OCLC'] = load_fail_limit, ['OSTI'] = load_fail_limit, ['PMC'] = load_fail_limit, ['PMID'] = load_fail_limit, ['RFC'] = load_fail_limit, ['SSRN'] = load_fail_limit, ['S2CID'] = load_fail_limit};
local id_limits_data_load_fail = false; -- flag; assume that we will be successful when loading json id limit tabular data
if mw.ext.data == nil then
id_limits_data_load_fail = true; -- safeguard against Lua errors if mw.ext.data is not available for some reason
else
local tab_data_t = mw.ext.data.get ('CS1/Identifier limits.tab'); -- attempt to load the tabular data from commons into <tab_data_t>
if false == tab_data_t then -- undocumented 'feature': mw.ext.data.get() sometimes returns false
id_limits_data_load_fail = true; -- set the flag so that Module:Citation/CS1 can create an unannotated maint category
else
for _, limit_t in ipairs (tab_data_t.data) do -- overwrite default <load_fail_limit> values from the data table in the tabular data
id_limits_data_t[limit_t[1]] = limit_t[2]; -- <limit[1]> is identifier; <limit[2]> is upper limit for that identifier
end
end
end
end
--[[--------------------------< I D _ H A N D L E R S >--------------------------------------------------------
The following contains a list of values for various defined identifiers. For each
identifier we specify a variety of information necessary to properly render the
identifier in the citation.
parameters: a list of parameter aliases for this identifier; first in the list is the canonical form
link: Wikipedia article name
redirect: a local redirect to a local Wikipedia article name; at en.wiki, 'ISBN (identifier)' is a redirect to 'International Standard Book Number'
q: Wikidata q number for the identifier
label: the label preceding the identifier; label is linked to a Wikipedia article (in this order):
redirect from id_handlers['<id>'].redirect when use_identifier_redirects is true
Wikidata-supplied article name for the local wiki from id_handlers['<id>'].q
local article name from id_handlers['<id>'].link
prefix: the first part of a URL that will be concatenated with a second part which usually contains the identifier
suffix: optional third part to be added after the identifier
encode: true if URI should be percent-encoded; otherwise false
COinS: identifier link or keyword for use in COinS:
for identifiers registered at info-uri.info use: info:.... where '...' is the appropriate identifier label
for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn
for |asin= and |ol=, which require assembly, use the keyword: url
for others make a URL using the value in prefix/suffix and #label, use the keyword: pre (not checked; any text other than 'info', 'rft', or 'url' works here)
set to nil to leave the identifier out of the COinS
separator: character or text between label and the identifier in the rendered citation
id_limit: for those identifiers with established limits, this property holds the upper limit
access: use this parameter to set the access level for all instances of this identifier.
the value must be a valid access level for an identifier (see ['id-access'] in this file).
custom_access: to enable custom access level for an identifier, set this parameter
to the parameter that should control it (normally 'id-access')
]]
local id_handlers = {
['ARXIV'] = {
parameters = {'أرخايف', 'arxiv', 'eprint'},
link = 'أرخايف',
redirect = 'أرخايف',
q = 'Q118398',
label = 'arXiv',
prefix = 'https://arxiv.org/abs/', -- protocol-relative tested 2013-09-04
encode = false,
COinS = 'info:arxiv',
separator = ':',
access = 'free', -- free to read
},
['ASIN'] = {
parameters = {'asin', 'ASIN'},
link = 'رقم_تعريف_أمازون_القياسي',
redirect = 'ASIN (identifier)',
q = 'Q1753278',
label = 'ASIN',
prefix = 'https://www.amazon.',
COinS = 'url',
separator = ':',
encode = false
},
['BIBCODE'] = {
parameters = {'بيب_كود', 'bibcode'},
link = 'بيب_كود',
redirect = 'بيب كود',
q = 'Q25754',
label = 'Bibcode',
prefix = 'https://ui.adsabs.harvard.edu/abs/',
encode = false,
COinS = 'info:bibcode',
separator = ':',
custom_access = 'bibcode-access',
},
['BIORXIV'] = {
parameters = {'biorxiv'},
link = 'بيوركسيف',
redirect = 'بيوركسيف',
q = 'Q19835482',
label = 'bioRxiv',
prefix = 'https://doi.org/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = ':'
},
['CITESEERX'] = {
parameters = {'citeseerx'},
link = 'CiteSeerX',
redirect = 'سايت سير إكس',
q = 'Q2715061',
label = 'CiteSeerX',
prefix = 'https://citeseerx.ist.psu.edu/viewdoc/summary?doi=',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = ':'
},
['DOI'] = { -- Used by InternetArchiveBot
parameters = {'دوي', 'doi', 'DOI'},
link = 'معرف الغرض الرقمي',
redirect = 'معرف الغرض الرقمي',
q = 'Q25670',
label = 'DOI',
prefix = 'https://doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
custom_access = 'doi-access',
},
['EISSN'] = {
parameters = {'eissn', 'EISSN'},
link = 'الرقم الدولي الموحد للدوريات',
redirect = 'رقم الدوريات المعياري الدولي',
q = 'Q46339674',
label = 'eISSN',
prefix = 'https://portal.issn.org/resource/ISSN/',
COinS = 'rft.eissn',
encode = false,
separator = ':',
},
['HDL'] = {
parameters = {'hdl', 'HDL'},
link = 'نظام المقبض',
redirect = 'نظام المقبض',
q = 'Q3126718',
label = 'hdl',
prefix = 'https://hdl.handle.net/',
COinS = 'info:hdl',
separator = ':',
encode = true,
custom_access = 'hdl-access',
},
['ISBN'] = { -- Used by InternetArchiveBot
parameters = {'isbn', 'ISBN', 'ردمك'},
link = 'النظام القياسي الدولي لترقيم الكتب',
redirect = 'النظام القياسي الدولي لترقيم الكتب',
q = 'Q33057',
label = 'ISBN',
prefix = 'Special:BookSources/',
COinS = 'rft.isbn',
separator = ':',
},
['ISMN'] = {
parameters = {'اسمن', 'ismn', 'ISMN'},
link = 'رقم دولي معياري للموسيقى',
redirect = 'رقم دولي معياري للموسيقى',
q = 'Q1666938',
label = 'ISMN',
prefix = '', -- not currently used;
COinS = nil, -- nil because we can't use pre or rft or info:
separator = ':'
},
['ISSN'] = {
parameters = {'issn', 'ISSN'},
link = 'الرقم التسلسلي القياسي الدولي',
redirect = 'الرقم التسلسلي القياسي الدولي',
q = 'Q131276',
label = 'ISSN',
prefix = 'https://portal.issn.org/resource/ISSN/',
COinS = 'rft.issn',
encode = false,
separator = ':'
},
['JFM'] = {
parameters = {'jfm', 'JFM'},
link = 'دورية الرياضيات المركزية',
redirect = 'دورية الرياضيات المركزية',
q = '',
label = 'JFM',
prefix = 'https://zbmath.org/?format=complete&q=an:',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':'
},
['JSTOR'] = {
parameters = {'جايستور', 'jstor', 'JSTOR'},
link = 'جايستور',
redirect = 'جايستور',
q = 'Q1420342',
label = 'JSTOR',
prefix = 'https://www.jstor.org/stable/',
COinS = 'pre', -- use prefix value
encode = false,
separator = ':',
custom_access = 'jstor-access',
},
['LCCN'] = {
parameters = {'كونغرس', 'LCCN', 'lccn'},
link = 'رقم الضبط في مكتبة الكونغرس',
redirect = 'رقم الضبط في مكتبة الكونغرس',
q = 'Q620946',
label = 'LCCN',
prefix = 'https://lccn.loc.gov/', -- protocol-relative tested 2015-12-28
COinS = 'info:lccn',
encode = false,
separator = ':',
},
['MEDRXIV'] = {
parameters = {'medrxiv'},
link = 'medRxiv',
redirect = 'medRxiv (identifier)',
q = 'Q58465838',
label = 'medRxiv',
prefix = 'https://www.medrxiv.org/content/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = false,
separator = ':',
},
['MR'] = {
parameters = {'mr', 'MR'},
link = 'المراجعات_الرياضياتية',
redirect = 'المراجعات الرياضياتية',
q = 'Q211172',
label = 'MR',
prefix = 'https://mathscinet.ams.org/mathscinet-getitem?mr=',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':'
},
['OCLC'] = {
parameters = {'أكلس', 'OCLC', 'oclc'},
link = 'مركز_المكتبة_الرقمية_على_الإنترنت',
redirect = 'مركز المكتبة الرقمية على الإنترنت',
q = 'Q190593',
label = 'OCLC',
prefix = 'https://search.worldcat.org/oclc/',
COinS = 'info:oclcnum',
encode = true,
separator = ':',
id_limit = id_limits_data_t.OCLC or 0,
},
['OL'] = {
parameters = {'المكتبة_المفتوحة', 'ol', 'OL'},
link = 'المكتبة_المفتوحة',
redirect = 'المكتبة المفتوحة',
q = 'Q1201876',
label = 'OL',
prefix = 'https://openlibrary.org/',
COinS = 'url',
separator = ':',
encode = true,
custom_access = 'ol-access',
},
['OSTI'] = {
parameters = {'osti', 'OSTI'},
link = 'Office of Scientific and Technical Information',
redirect = 'OSTI (identifier)',
q = 'Q2015776',
label = 'OSTI',
prefix = 'https://www.osti.gov/biblio/',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
id_limit = id_limits_data_t.OSTI or 0,
custom_access = 'osti-access',
},
['PMC'] = {
parameters = {'ببمد_سنترال', 'PMC', 'pmc'},
link = 'ببمد_سنترال',
redirect = 'ببمد سنترال',
q = 'Q229883',
label = 'PMC',
prefix = 'https://www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = '',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
id_limit = id_limits_data_t.PMC or 0,
access = 'free', -- free to read
},
['PMID'] = {
parameters = {'pmid', 'PMID'},
link = 'ببمد',
redirect = 'ببمد',
q = 'Q2082879',
label = 'PMID',
prefix = 'https://pubmed.ncbi.nlm.nih.gov/',
COinS = 'info:pmid',
encode = false,
separator = ':',
id_limit = id_limits_data_t.PMID or 0,
},
['RFC'] = {
parameters = {'طلب_تعليقات', 'RFC', 'rfc'},
link = 'طلب_تعليقات',
redirect = 'طلب تعليقات',
q = 'Q212971',
label = 'RFC',
prefix = 'https://tools.ietf.org/html/rfc',
COinS = 'pre', -- use prefix value
encode = false,
separator = ':',
id_limit = id_limits_data_t.RFC or 0,
access = 'free', -- free to read
},
['SBN'] = {
parameters = {'sbn', 'SBN'},
link = 'رقم الكتاب المعياري الدولي', -- redirect to International_Standard_Book_Number#History
redirect = 'رقم الكتاب المعياري الدولي',
label = 'SBN',
prefix = 'Special:BookSources/0-', -- prefix has leading zero necessary to make 9-digit sbn a 10-digit isbn
COinS = nil, -- nil because we can't use pre or rft or info:
separator = ':'
},
['SSRN'] = {
parameters = {'ssrn', 'SSRN'},
link = 'شبكة أبحاث العلوم الاجتماعية',
redirect = 'شبكة أبحاث العلوم الاجتماعية',
q = 'Q7550801',
label = 'SSRN',
prefix = 'https://papers.ssrn.com/sol3/papers.cfm?abstract_id=',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
id_limit = id_limits_data_t.SSRN or 0,
custom_access = 'ssrn-access',
},
['S2CID'] = {
parameters = {'s2cid', 'S2CID'},
link = 'سيمانتك سكولر',
redirect = 'سيمانتك سكولر',
q = 'Q22908627',
label = 'S2CID',
prefix = 'https://api.semanticscholar.org/CorpusID:',
COinS = 'pre', -- use prefix value
encode = false,
separator = ':',
id_limit = id_limits_data_t.S2CID or 0,
custom_access = 's2cid-access',
},
['USENETID'] = {
parameters = {'message-id'},
link = 'يوزنت',
redirect = 'يوزنت',
q = 'Q193162',
label = 'Usenet:',
prefix = 'news:',
encode = false,
COinS = 'pre', -- use prefix value
separator = ':',
},
['ZBL'] = {
parameters = {'zbl', 'ZBL'},
link = 'دورية الرياضيات المركزية',
redirect = 'دورية الرياضيات المركزية',
q = 'Q190269',
label = 'Zbl',
prefix = 'https://zbmath.org/?format=complete&q=an:',
COinS = 'pre', -- use prefix value
encode = true,
separator = ':',
},
}
--[[--------------------------< E X P O R T S >---------------------------------
]]
return {
use_identifier_redirects = false, -- booleans defined in the settings at the top of this module
local_lang_cat_enable = false,
date_name_auto_xlate_enable = false,
date_digit_auto_xlate_enable = false,
enable_sort_keys = enable_sort_keys,
suppress_archive_today_urls = suppress_archive_today_urls,
-- tables and variables created when this module is loaded
dependencies_t = dependencies_t, -- used to suppress parameters dependent on url-holding parameters holding archive.today urls
enum_needs_xlation = '1' ~= date_names.xlate_digits['1'], -- to avoid unnecessary enumerator translation
--#Modified
global_df = 'dmy-ly',--get_date_format(), -- tables and variables created when this module is loaded
global_cs1_config_t = global_cs1_config_t, -- global settings from {{cs1 config}}
id_limits_data_load_fail = id_limits_data_load_fail, -- true when commons tabular identifier-limit data fails to load
known_free_doi_registrants_t = build_free_doi_registrants_table(),
punct_skip = build_skip_table (punct_skip, punct_meta_params),
url_skip = build_skip_table (url_skip, url_meta_params),
archive_today_tlds_t = {['today'] = true, ['ph'] = true, ['is'] = true, ['md'] = true, ['li'] = true, ['fo'] = true, ['vn'] = true}; -- used by is_archive_today_url()
name_space_sort_keys = name_space_sort_keys,
aliases = aliases,
special_case_translation = special_case_translation,
date_names = date_names,
err_msg_supl = err_msg_supl,
error_conditions = error_conditions,
editor_markup_patterns = editor_markup_patterns,
et_al_patterns = et_al_patterns,
extended_registrants_t = extended_registrants_t,
id_handlers = id_handlers,
keywords_lists = keywords_lists,
keywords_xlate = keywords_xlate,
stripmarkers = stripmarkers,
invisible_chars = invisible_chars,
invisible_defs = invisible_defs,
indic_script = indic_script,
emoji_t = emoji_t,
maint_cats = maint_cats,
messages = messages,
presentation = presentation,
prop_cats = prop_cats,
script_lang_codes = script_lang_codes,
lang_tag_remap = lang_tag_remap,
lang_name_remap = lang_name_remap,
this_wiki_code = this_wiki_code,
title_types = title_types,
uncategorized_namespaces = uncategorized_namespaces_t,
uncategorized_subpages = uncategorized_subpages,
templates_using_volume = templates_using_volume,
templates_using_issue = templates_using_issue,
templates_not_using_page = templates_not_using_page,
vol_iss_pg_patterns = vol_iss_pg_patterns,
single_letter_2nd_lvl_domains_t = single_letter_2nd_lvl_domains_t,
url_access_map_t = url_access_map_t,
inter_wiki_map = inter_wiki_map,
mw_languages_by_tag_t = mw_languages_by_tag_t,
mw_languages_by_name_t = mw_languages_by_name_t,
citation_class_map_t = citation_class_map_t,
citation_issue_t = citation_issue_t,
citation_no_volume_t = citation_no_volume_t,
}
ow2wvkwoar4sizi651rvj8uz47i2x8p
وحدة:Citation/CS1/Configuration ltr
828
63174
275396
2026-09-15T08:57:06Z
حبيشان
29714
استيراد من ar.wiktionary.org
275396
Scribunto
text/plain
--[[-------------------LEFT to RIGHT configurations------------------------]]
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
local messages = {
['agency'] = '$1 $2', -- $1 is sepc, $2 is agency
['archived-dead'] = 'Archived from $1 on $2',
['archived-live'] = '$1 from the original on $2',
['archived-unfit'] = 'Archived from the original on ',
['archived'] = 'Archived',
['by'] = 'By', -- contributions to authored works: introduction, foreword, afterword
['cartography'] = 'Cartography by $1',
['editor'] = 'ed.',
['editors'] = 'eds.',
['edition'] = '($1 ed.)',
['episode'] = 'Episode $1',
['et al'] = 'et al.',
['in'] = 'In', -- edited works
['inactive'] = ' (inactive $1)', -- $1 is date which the doi was found to be broken in
['inset'] = '$1 inset',
['interview'] = 'Interviewed by $1',
invisible_1 = '$1 $2', -- $1 stripmarker name; $2 is text from <invisible_chars[1]>
invisible_2 = '$1 character', -- $1 character name from <invisible_chars[1]>
['mismatch'] = '<code class="cs1-code">|$1=</code> / <code class="cs1-code">|$2=</code> mismatch', -- $1 is year param name; $2 is date param name
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
['notitle'] = 'No title', -- for |title=(()) and (in the future) |title=none
['original'] = 'the original',
['origdate'] = ' [$1]',
['published'] = ' (published $1)',
['retrieved'] = 'Retrieved $1',
['season'] = 'Season $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
['series'] = '$1 $2', -- $1 is sepc, $2 is series
['seriesnum'] = 'Series $1',
['translated'] = 'Translated by $1',
['type'] = ' ($1)', -- for titletype
wikidata = 'Wikidata', -- these used for interwikilinked author/editor/... names
wikipedia = 'Wikipedia',
wikisource = 'Wikisource',
['written'] = 'Written at $1',
['vol'] = '$1 Vol. $2', -- $1 is sepc; bold journal style volume is in presentation{}
['vol-no'] = '$1 Vol. $2, no. $3', -- sepc, volume, issue (alternatively insert $1 after $2, but then we'd also have to change capitalization)
['issue'] = '$1 No. $2', -- $1 is sepc
['art'] = '$1 Art. $2', -- $1 is sepc; for {{cite conference}} only
['vol-art'] = '$1 Vol. $2, art. $3', -- sepc, volume, article-number; for {{cite conference}} only
['j-vol'] = '$1 $2', -- sepc, volume; bold journal volume is in presentation{}
['j-issue'] = ' ($1)',
['j-article-num'] = ' $1', -- TODO: any punctuation here? static text?
['nopp'] = '$1 $2'; -- page(s) without prefix; $1 is sepc
['p-prefix'] = "$1 p. $2", -- $1 is sepc
['pp-prefix'] = "$1 pp. $2", -- $1 is sepc
['j-page(s)'] = ': $1', -- same for page and pages
['sheet'] = '$1 Sheet $2', -- $1 is sepc
['sheets'] = '$1 Sheets $2', -- $1 is sepc
['j-sheet'] = ': Sheet $1',
['j-sheets'] = ': Sheets $1',
['language'] = '(ب$1)',
['via'] = " – via $1",
['event'] = 'Event occurs at',
['minutes'] = ' $1 minutes in', -- $1 is the number of minutes
-- Determines the location of the help page
['help page link'] = 'Help:CS1 errors',
['help page label'] = 'help',
-- categories
['cat wikilink'] = '[[تصنيف:$1]]', -- $1 is the category name
['cat wikilink sk'] = '[[تصنيف:$1|$2]]', -- $1 is the category name; $2 is namespace sort key
[':cat wikilink'] = '[[:تصنيف:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'Called with an undefined error condition',
['unknown_ID_key'] = 'Unrecognized ID key: ', -- an ID key in id_handlers not found in ~/Identifiers func_map{}
['unknown_ID_access'] = 'Unrecognized ID access keyword: ', -- an ID access keyword in id_handlers not found in keywords_lists['id-access']{}
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] به أخطاء</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).', -- $1 is template link; $2 is anchor ID
['warning_msg_m'] = '<span style="color:#085"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] بحاجة لصيانة</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).' -- $1 is template link; $2 is anchor ID
}
--[[--------------------------< P R E S E N T A T I O N >------------------------
Fixed presentation markup. Originally part of citation_config.messages it has
been moved into its own, more semantically correct place.
]]
local presentation =
{
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
['hidden-error'] = '<span class="cs1-hidden-error citation-comment">$1</span>',
['visible-error'] = '<span class="cs1-visible-error citation-comment">$1</span>',
['hidden-maint'] = '<span class="cs1-maint citation-comment">$1</span>',
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal CSS
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['cite'] = '<cite class="$1">$2</cite>'; -- for use when citation does not have a namelist and |ref= not set so no id="..." attribute
['cite-id'] = '<cite id="$1" class="$2">$3</cite>'; -- for use when when |ref= is set or when citation has a namelist
['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['interwiki'] = ' <span class="cs1-format">[ب$1]</span>', -- for interwiki-language-linked author, editor, etc
['interproj'] = ' <span class="cs1-format">[في $1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- narrow no-break space   may work better than nowrap CSS. Or not? Browser support?
['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon
['free'] = {class='id-lock-free', title='Freely accessible'}, -- classes defined in Module:Citation/CS1/styles.css
['registration'] = {class='id-lock-registration', title='Free registration required'},
['limited'] = {class='id-lock-limited', title='Free access subject to limited trial, subscription normally required'},
['subscription'] = {class='id-lock-subscription', title='Paid subscription required'},
['interwiki-icon'] = '<span class="$1" title="$2">$3</span>',
['class-wikisource'] = 'cs1-ws-icon',
['italic-title'] = "''$1''",
['kern-left'] = '<span class="cs1-kern-left"></span>$1', -- spacing to use when title contains leading single or double quote mark
['kern-right'] = '$1<span class="cs1-kern-right"></span>', -- spacing to use when title contains trailing single or double quote mark
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)
['ocins'] = '<span title="$1" class="Z3988"></span>',
['parameter'] = '<code class="cs1-code">|$1=</code>',
['ps_cs1'] = '.'; -- CS1 style postscript (terminal) character
['ps_cs2'] = ''; -- CS2 style postscript (terminal) character (empty string)
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content
['quoted-title'] = '"$1"',
['sep_cs1'] = '.', -- CS1 element separator
['sep_cs2'] = ',', -- CS2 separator
['sep_nl'] = ';', -- CS1|2 style name-list separator between names is a semicolon
['sep_nl_and'] = ' and ', -- used as last nl sep when |name-list-style=and and list has 2 items
['sep_nl_end'] = '; and ', -- used as last nl sep when |name-list-style=and and list has 3+ names
['sep_name'] = ', ', -- CS1|2 style last/first separator is <comma><space>
['sep_nl_vanc'] = ',', -- Vancouver style name-list separator between authors is a comma
['sep_name_vanc'] = ' ', -- Vancouver style last/first separator is a space
['sep_list'] = ', ', -- used for |language= when list has 3+ items except for last sep which uses sep_list_end
['sep_list_pair'] = ' and ', -- used for |language= when list has 2 items
['sep_list_end'] = ', and ', -- used as last list sep for |language= when list has 3+ items
['trans-italic-title'] = "[''$1'']",
['trans-quoted-title'] = "[$1]", -- for |trans-title= and |trans-quote=
['vol-bold'] = '$1 <b>$2</b>', -- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}
['thesis-degree'] = '$1 $2', -- $1 is degree, $2 is thesis
}
--[[-------------------< T I T L E _ T Y P E S >--------------------------------
Here we map a template's CitationClass to TitleType (default values for |type= parameter)
]]
local title_types = {
['AV-media-notes'] = 'Media notes',
['document'] = 'Document',
['interview'] = 'Interview',
['mailinglist'] = 'Mailing list',
['map'] = 'Map',
['podcast'] = 'Podcast',
['pressrelease'] = 'Press release',
['report'] = 'Report',
['speech'] = 'Speech',
['techreport'] = 'Technical report',
['thesis'] = 'Thesis',
}
return {
messages = messages,
presentation = presentation,
title_types = title_types,
global_df = 'dmy-sy'
}
j1s8osty4e5nb6nuduiy13tin7wupn5
وحدة:Citation/CS1/Configuration ltr/شرح
828
63175
275397
2026-09-15T08:57:08Z
حبيشان
29714
استيراد من ar.wiktionary.org
275397
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
oy17t2cumwnrd0mbvyjn7zb9bmsgvfd
وحدة:Citation/CS1/Configuration ltr/ملعب
828
63176
275398
2026-09-15T08:57:09Z
حبيشان
29714
استيراد من ar.wiktionary.org
275398
Scribunto
text/plain
--[[-------------------LEFT to RIGHT configurations------------------------]]
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
local messages = {
['agency'] = '$1 $2', -- $1 is sepc, $2 is agency
['archived-dead'] = 'Archived from $1 on $2',
['archived-live'] = '$1 from the original on $2',
['archived-unfit'] = 'Archived from the original on ',
['archived'] = 'Archived',
['by'] = 'By', -- contributions to authored works: introduction, foreword, afterword
['cartography'] = 'Cartography by $1',
['editor'] = 'ed.',
['editors'] = 'eds.',
['edition'] = '($1 ed.)',
['episode'] = 'Episode $1',
['et al'] = 'et al.',
['in'] = 'In', -- edited works
['inactive'] = ' (inactive $1)', -- $1 is date which the doi was found to be broken in
['inset'] = '$1 inset',
['interview'] = 'Interviewed by $1',
invisible_1 = '$1 $2', -- $1 stripmarker name; $2 is text from <invisible_chars[1]>
invisible_2 = '$1 character', -- $1 character name from <invisible_chars[1]>
['mismatch'] = '<code class="cs1-code">|$1=</code> / <code class="cs1-code">|$2=</code> mismatch', -- $1 is year param name; $2 is date param name
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
['notitle'] = 'No title', -- for |title=(()) and (in the future) |title=none
['original'] = 'the original',
['origdate'] = ' [$1]',
['published'] = ' (published $1)',
['retrieved'] = 'Retrieved $1',
['season'] = 'Season $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
['series'] = '$1 $2', -- $1 is sepc, $2 is series
['seriesnum'] = 'Series $1',
['translated'] = 'Translated by $1',
['type'] = ' ($1)', -- for titletype
wikidata = 'Wikidata', -- these used for interwikilinked author/editor/... names
wikipedia = 'Wikipedia',
wikisource = 'Wikisource',
['written'] = 'Written at $1',
['vol'] = '$1 Vol. $2', -- $1 is sepc; bold journal style volume is in presentation{}
['vol-no'] = '$1 Vol. $2, no. $3', -- sepc, volume, issue (alternatively insert $1 after $2, but then we'd also have to change capitalization)
['issue'] = '$1 No. $2', -- $1 is sepc
['art'] = '$1 Art. $2', -- $1 is sepc; for {{cite conference}} only
['vol-art'] = '$1 Vol. $2, art. $3', -- sepc, volume, article-number; for {{cite conference}} only
['j-vol'] = '$1 $2', -- sepc, volume; bold journal volume is in presentation{}
['j-issue'] = ' ($1)',
['j-article-num'] = ' $1', -- TODO: any punctuation here? static text?
['nopp'] = '$1 $2'; -- page(s) without prefix; $1 is sepc
['p-prefix'] = "$1 p. $2", -- $1 is sepc
['pp-prefix'] = "$1 pp. $2", -- $1 is sepc
['j-page(s)'] = ': $1', -- same for page and pages
['sheet'] = '$1 Sheet $2', -- $1 is sepc
['sheets'] = '$1 Sheets $2', -- $1 is sepc
['j-sheet'] = ': Sheet $1',
['j-sheets'] = ': Sheets $1',
['language'] = '(ب$1)',
['via'] = " – via $1",
['event'] = 'Event occurs at',
['minutes'] = ' $1 minutes in', -- $1 is the number of minutes
-- Determines the location of the help page
['help page link'] = 'Help:CS1 errors',
['help page label'] = 'help',
-- categories
['cat wikilink'] = '[[تصنيف:$1]]', -- $1 is the category name
['cat wikilink sk'] = '[[تصنيف:$1|$2]]', -- $1 is the category name; $2 is namespace sort key
[':cat wikilink'] = '[[:تصنيف:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'Called with an undefined error condition',
['unknown_ID_key'] = 'Unrecognized ID key: ', -- an ID key in id_handlers not found in ~/Identifiers func_map{}
['unknown_ID_access'] = 'Unrecognized ID access keyword: ', -- an ID access keyword in id_handlers not found in keywords_lists['id-access']{}
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] به أخطاء</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).', -- $1 is template link; $2 is anchor ID
['warning_msg_m'] = '<span style="color:#085"><code style="color: inherit; background: inherit; border: none; padding: inherit;">{{$1}}</code> هذا [[#$2|المرجع]] بحاجة لصيانة</span>؛ قد تكون الرسائل مخفية ولا تظهر في القالب ([[Help:CS1_errors#Controlling_error_message_display|مساعدة]]).' -- $1 is template link; $2 is anchor ID
}
--[[--------------------------< P R E S E N T A T I O N >------------------------
Fixed presentation markup. Originally part of citation_config.messages it has
been moved into its own, more semantically correct place.
]]
local presentation =
{
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
['hidden-error'] = '<span class="cs1-hidden-error citation-comment">$1</span>',
['visible-error'] = '<span class="cs1-visible-error citation-comment">$1</span>',
['hidden-maint'] = '<span class="cs1-maint citation-comment">$1</span>',
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal CSS
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['cite'] = '<cite class="$1">$2</cite>'; -- for use when citation does not have a namelist and |ref= not set so no id="..." attribute
['cite-id'] = '<cite id="$1" class="$2">$3</cite>'; -- for use when when |ref= is set or when citation has a namelist
['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['interwiki'] = ' <span class="cs1-format">[ب$1]</span>', -- for interwiki-language-linked author, editor, etc
['interproj'] = ' <span class="cs1-format">[في $1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- narrow no-break space   may work better than nowrap CSS. Or not? Browser support?
['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon
['free'] = {class='id-lock-free', title='Freely accessible'}, -- classes defined in Module:Citation/CS1/styles.css
['registration'] = {class='id-lock-registration', title='Free registration required'},
['limited'] = {class='id-lock-limited', title='Free access subject to limited trial, subscription normally required'},
['subscription'] = {class='id-lock-subscription', title='Paid subscription required'},
['interwiki-icon'] = '<span class="$1" title="$2">$3</span>',
['class-wikisource'] = 'cs1-ws-icon',
['italic-title'] = "''$1''",
['kern-left'] = '<span class="cs1-kern-left"></span>$1', -- spacing to use when title contains leading single or double quote mark
['kern-right'] = '$1<span class="cs1-kern-right"></span>', -- spacing to use when title contains trailing single or double quote mark
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)
['ocins'] = '<span title="$1" class="Z3988"></span>',
['parameter'] = '<code class="cs1-code">|$1=</code>',
['ps_cs1'] = '.'; -- CS1 style postscript (terminal) character
['ps_cs2'] = ''; -- CS2 style postscript (terminal) character (empty string)
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content
['quoted-title'] = '"$1"',
['sep_cs1'] = '.', -- CS1 element separator
['sep_cs2'] = ',', -- CS2 separator
['sep_nl'] = ';', -- CS1|2 style name-list separator between names is a semicolon
['sep_nl_and'] = ' and ', -- used as last nl sep when |name-list-style=and and list has 2 items
['sep_nl_end'] = '; and ', -- used as last nl sep when |name-list-style=and and list has 3+ names
['sep_name'] = ', ', -- CS1|2 style last/first separator is <comma><space>
['sep_nl_vanc'] = ',', -- Vancouver style name-list separator between authors is a comma
['sep_name_vanc'] = ' ', -- Vancouver style last/first separator is a space
['sep_list'] = ', ', -- used for |language= when list has 3+ items except for last sep which uses sep_list_end
['sep_list_pair'] = ' and ', -- used for |language= when list has 2 items
['sep_list_end'] = ', and ', -- used as last list sep for |language= when list has 3+ items
['trans-italic-title'] = "[''$1'']",
['trans-quoted-title'] = "[$1]", -- for |trans-title= and |trans-quote=
['vol-bold'] = '$1 <b>$2</b>', -- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}
['thesis-degree'] = '$1 $2', -- $1 is degree, $2 is thesis
}
--[[-------------------< T I T L E _ T Y P E S >--------------------------------
Here we map a template's CitationClass to TitleType (default values for |type= parameter)
]]
local title_types = {
['AV-media-notes'] = 'Media notes',
['document'] = 'Document',
['interview'] = 'Interview',
['mailinglist'] = 'Mailing list',
['map'] = 'Map',
['podcast'] = 'Podcast',
['pressrelease'] = 'Press release',
['report'] = 'Report',
['speech'] = 'Speech',
['techreport'] = 'Technical report',
['thesis'] = 'Thesis',
}
return {
messages = messages,
presentation = presentation,
title_types = title_types,
global_df = 'dmy-sy'
}
j1s8osty4e5nb6nuduiy13tin7wupn5
وحدة:Citation/CS1/Date validation/شرح
828
63177
275400
2026-09-15T08:57:14Z
حبيشان
29714
استيراد من ar.wiktionary.org
275400
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
oy17t2cumwnrd0mbvyjn7zb9bmsgvfd
وحدة:Citation/CS1/Date validation/ملعب
828
63178
275401
2026-09-15T08:57:17Z
حبيشان
29714
استيراد من ar.wiktionary.org
275401
Scribunto
text/plain
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local add_prop_cat, is_set, in_array, set_message, substitute, wrap_style; -- imported functions from selected Module:Citation/CS1/Utilities
local cfg; -- table of tables imported from selected Module:Citation/CS1/Configuration
--#Added
local hijricore;
--[[--------------------------< F I L E - S C O P E D E C L A R A T I O N S >--------------------------------
File-scope variables are declared here
]]
local lang_object = mw.getContentLanguage(); -- used by is_valid_accessdate(), is_valid_year(), date_name_xlate(); TODO: move to ~/Configuration?
local year_limit; -- used by is_valid_year()
--#Added
local hijri_year_limit; -- used by is_valid_year()
--[=[-------------------------< I S _ V A L I D _ A C C E S S D A T E >----------------------------------------
returns true if:
Wikipedia start date <= accessdate < today + 2 days
Wikipedia start date is 2001-01-15T00:00:00 UTC which is 979516800 seconds after 1970-01-01T00:00:00 UTC (the start of Unix time)
accessdate is the date provided in |access-date= at time 00:00:00 UTC
today is the current date at time 00:00:00 UTC plus 48 hours
if today is 2015-01-01T00:00:00 then
adding 24 hours gives 2015-01-02T00:00:00 – one second more than today
adding 24 hours gives 2015-01-03T00:00:00 – one second more than tomorrow
This function does not work if it is fed month names for languages other than English. Wikimedia #time: parser
apparently doesn't understand non-English date month names. This function will always return false when the date
contains a non-English month name because good1 is false after the call to lang.formatDate(). To get around that
call this function with YYYY-MM-DD format dates.
]=]
local function is_valid_accessdate (accessdate)
local good1, good2;
local access_ts, tomorrow_ts; -- to hold Unix time stamps representing the dates
good1, access_ts = pcall (lang_object.formatDate, lang_object, 'U', accessdate ); -- convert accessdate value to Unix timestamp
good2, tomorrow_ts = pcall (lang_object.formatDate, lang_object, 'U', 'today + 2 days' ); -- today midnight + 2 days is one second more than all day tomorrow
if good1 and good2 then -- lang.formatDate() returns a timestamp in the local script which which tonumber() may not understand
access_ts = tonumber (access_ts) or lang_object:parseFormattedNumber (access_ts); -- convert to numbers for the comparison;
tomorrow_ts = tonumber (tomorrow_ts) or lang_object:parseFormattedNumber (tomorrow_ts);
else
return false; -- one or both failed to convert to Unix time stamp
end
if 979516800 <= access_ts and access_ts < tomorrow_ts then -- Wikipedia start date <= accessdate < tomorrow's date
return true;
else
return false; -- accessdate out of range
end
end
--[[--------------------------< G E T _ M O N T H _ N U M B E R >----------------------------------------------
returns a number according to the month in a date: 1 for January, etc. Capitalization and spelling must be correct.
If not a valid month, returns 0
]]
local function get_month_number (month, ishijri)
--#Midifed to get syrain months
if ishijri then
return cfg.date_names['local']['hijri'][month] or 0;
end
return cfg.date_names['local'].long[month] or cfg.date_names['local'].short[month] or -- look for local names first
cfg.date_names['local']['alt-long'][month] or
cfg.date_names['en'].long[month] or cfg.date_names['en'].short[month] or -- failing that, look for English names
0; -- not a recognized month name
end
--[[--------------------------< G E T _ M O N T H _ N U M B E R and cal >----------------------------------------------
##Adeed function
returns a number according to the month in a date: 1 for January, etc. Capitalization and spelling must be correct.
If not a valid month, returns 0
]]
local function get_month_number_and_cal (month)
local ret = get_month_number (month, true)
if ret > 0 then
return ret, true;
else
return get_month_number (month, false), false;
end
end
--[[--------------------------< G E T _ S E A S O N _ N U M B E R >--------------------------------------------
returns a number according to the sequence of seasons in a year: 21 for Spring, etc. Capitalization and spelling
must be correct. If not a valid season, returns 0.
21-24 = Spring, Summer, Autumn, Winter, independent of “Hemisphere”
returns 0 when <param> is not |date=
Season numbering is defined by Extended Date/Time Format (EDTF) specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard defines various divisions using
numbers 21-41. cs1|2 only supports generic seasons. EDTF does support the distinction between north and south
hemisphere seasons but cs1|2 has no way to make that distinction.
These additional divisions not currently supported:
25-28 = Spring - Northern Hemisphere, Summer- Northern Hemisphere, Autumn - Northern Hemisphere, Winter - Northern Hemisphere
29-32 = Spring – Southern Hemisphere, Summer– Southern Hemisphere, Autumn – Southern Hemisphere, Winter - Southern Hemisphere
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
37-39 = Quadrimester 1, Quadrimester 2, Quadrimester 3 (4 months each)
40-41 = Semestral 1, Semestral-2 (6 months each)
]]
local function get_season_number (season, param)
if 'date' ~= param then
return 0; -- season dates only supported by |date=
end
return cfg.date_names['local'].season[season] or -- look for local names first
cfg.date_names['en'].season[season] or -- failing that, look for English names
0; -- not a recognized season name
end
--[[--------------------------< G E T _ Q U A R T E R _ N U M B E R >------------------------------------------
returns a number according to the sequence of quarters in a year: 33 for first quarter, etc. Capitalization and spelling
must be correct. If not a valid quarter, returns 0.
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
returns 0 when <param> is not |date=
Quarter numbering is defined by Extended Date/Time Format (EDTF) specification (https://www.loc.gov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard defines various divisions using
numbers 21-41. cs1|2 only supports generic seasons and quarters.
These additional divisions not currently supported:
37-39 = Quadrimester 1, Quadrimester 2, Quadrimester 3 (4 months each)
40-41 = Semestral 1, Semestral-2 (6 months each)
]]
local function get_quarter_number (quarter, param)
if 'date' ~= param then
return 0; -- quarter dates only supported by |date=
end
quarter = mw.ustring.gsub (quarter, ' +', ' '); -- special case replace multiple space chars with a single space char
return cfg.date_names['local'].quarter[quarter] or -- look for local names first
cfg.date_names['en'].quarter[quarter] or -- failing that, look for English names
0; -- not a recognized quarter name
end
--[[--------------------------< G E T _ P R O P E R _ N A M E _ N U M B E R >----------------------------------
returns a non-zero number if date contains a recognized proper-name. Capitalization and spelling must be correct.
returns 0 when <param> is not |date=
]]
local function get_proper_name_number (name, param)
if 'date' ~= param then
return 0; -- proper-name dates only supported by |date=
end
return cfg.date_names['local'].named[name] or -- look for local names dates first
cfg.date_names['en'].named[name] or -- failing that, look for English names
0; -- not a recognized named date
end
--[[--------------------------< G E T _ E L E M E N T _ N U M B E R <------------------------------------------
returns true if month or season or quarter or proper name is valid (properly spelled, capitalized, abbreviated)
]]
local function get_element_number (element, ishijri, param)
local num;
--##Added block
num = get_month_number (element, ishijri, param); -- first check for month
if 0 ~= num then -- non-zero when valid month season quarter
return num; -- return that number
end
local funcs = {get_season_number, get_quarter_number, get_proper_name_number}; -- list of functions to execute in order
for _, func in ipairs (funcs) do -- spin through the function list
num = func (element, param); -- call the function and get the returned number
if 0 ~= num then -- non-zero when valid month season quarter
return num; -- return that number
end
end
return nil; -- not valid
end
--[[--------------------------< I S _ V A L I D _ H I J R I _ Y E A R >----------------------------------------------------
##Added function
Function gets current year from the server and compares it to year from a citation parameter. Years more than one
year in the future are not acceptable.
]]
local function is_valid_hijri_year (year)
if hijricore == nil then
hijricore = require('Module:Hijri/core');
end
if not is_set (hijri_year_limit) then
hijri_year_limit = hijricore.gregorian2hijri(tonumber(os.date('%Y')),12,31); -- global variable so we only have to fetch it once
hijri_year_limit = hijri_year_limit + 1;
end
year = tonumber (year) or lang_object:parseFormattedNumber (year); -- convert to number for the comparison
if year and (0 > year) then -- years less than 100 not supported
return false;
end
return year and (year <= hijri_year_limit) or false;
end
--[[--------------------------< I S _ V A L I D _ Y E A R >----------------------------------------------------
Function gets current year from the server and compares it to year from a citation parameter. Years more than one
year in the future are not acceptable.
Special case for |pmc-embargo-date=: years more than two years in the future are not acceptable
]]
local function is_valid_year (year, is_hijri, param)
--#Added block
if is_hijri then
return is_valid_hijri_year (year);
end
if not is_set (year_limit) then
year_limit = tonumber(os.date("%Y"))+1; -- global variable so we only have to fetch it once
end
year = tonumber (year) or lang_object:parseFormattedNumber (year); -- convert to number for the comparison
if year and (100 > year) then -- years less than 100 not supported
return false;
end
if 'pmc-embargo-date' == param then -- special case for |pmc-embargo-date=
return year and (year <= tonumber(os.date("%Y"))+2) or false; -- years more than two years in the future are not accepted
end
return year and (year <= year_limit) or false;
end
--[[--------------------------< I S _ V A L I D _ H I J R I _ D A T E >----------------------------------------------------
##Added function
Returns true if day is less than or equal to the number of days in month and year is no farther into the future
than next year; else returns false.
]]
local function is_valid_hijri_date (year, month, day)
if not is_valid_hijri_year (tonumber(year)) then -- no farther into the future than next year except |pmc-embargo-date= no more than two years in the future
return false;
end
month = tonumber (month); -- required for YYYY-MM-DD dates
day = tonumber(day);
if month>12 or month<1 then
return false;
elseif day > 30 or day<1 then
return false;
end
return true;
end
--[[--------------------------< I S _ V A L I D _ D A T E >----------------------------------------------------
Returns true if day is less than or equal to the number of days in month and year is no farther into the future
than next year; else returns false.
Assumes Julian calendar prior to year 1582 and Gregorian calendar thereafter. Accounts for Julian calendar leap
years before 1582 and Gregorian leap years after 1582. Where the two calendars overlap (1582 to approximately
1923) dates are assumed to be Gregorian.
]]
local function is_valid_date (year, month, day, param, ishijri)
--#added block
if ishijri then
return is_valid_hijri_date (year, month, day, param);
end
local days_in_month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
local month_length;
--#modified
if not is_valid_year (year, false, param) then -- no farther into the future than next year except |pmc-embargo-date= no more than two years in the future
return false;
end
month = tonumber (month); -- required for YYYY-MM-DD dates
if (2 == month) then -- if February
month_length = 28; -- then 28 days unless
if 1582 > tonumber(year) then -- Julian calendar
if 0 == (year%4) then -- is a leap year?
month_length = 29; -- if leap year then 29 days in February
end
else -- Gregorian calendar
if (0 == (year%4) and (0 ~= (year%100) or 0 == (year%400))) then -- is a leap year?
month_length = 29; -- if leap year then 29 days in February
end
end
else
month_length = days_in_month[month] or 0; -- invalid month number is nil so default <month_length> to 0
end
if tonumber (day) > month_length then
return false;
end
return true;
end
--[[--------------------------< hijri_and_gregorian_corresponded >----------------------------------------------------
#Added function
]]
local function hijri_and_gregorian_corresponded(hijri, gregorian)
if hijricore == nil then
hijricore = require('Module:Hijri/core');
end
local function western2jd(year, month, day)
local func = (year < 1583) and hijricore.julian2jd or hijricore.gregorian2jd
return func(year, month, day)
end
local function set_period_jd(period_t, isHijri)
local seasons = {
[33] = {{day=1,month=1},{day=31,month=3}},
[34] = {{day=1,month=4},{day=30,month=6}},
[35] = {{day=1,month=7},{day=30,month=9}},
[36] = {{day=1,month=10},{day=31,month=12}},
}
local days_in_month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
local func = isHijri and hijricore.hijri2jd or western2jd
if period_t[1].day == 0 then
if period_t[1].month > 0 and period_t[1].month < 13 then
period_t[1].day = 1
if period_t[2] then
period_t[2].day = isHijri and 30 or days_in_month[period_t[2].month]
else
period_t[2] = {day=isHijri and 30 or days_in_month[period_t[1].month],month=period_t[1].month,year=period_t[1].year}
end
elseif seasons[period_t[1].month] then
local periodmonth = period_t[1].month
period_t[1].day = seasons[periodmonth][1].day
period_t[1].month = seasons[periodmonth][1].month
if period_t[2] then
period_t[2].day = seasons[period_t[2].month][2].day
period_t[2].month = seasons[period_t[2].month][2].month
else
period_t[2] = {day = seasons[periodmonth][2].day, month = seasons[periodmonth][2].month, year = period_t[1].year}
end
else
period_t[1].day = 1
period_t[1].month = 1
if period_t[2] then
period_t[2].day = isHijri and 30 or 31
period_t[2].month = 12
else
period_t[2] = {day = isHijri and 30 or 31, month = 12, year=period_t[1].year}
end
end
end
for i, period in ipairs(period_t) do
period_t[i].jd = func(tonumber(period.year), tonumber(period.month), tonumber(period.day))
end
return period_t
end
hijri = set_period_jd(hijri, true);
gregorian = set_period_jd(gregorian, false);
local h1, h2 = hijri[1].jd, hijri[2] and hijri[2].jd or hijri[1].jd
local g1, g2 = gregorian[1].jd, gregorian[2] and gregorian[2].jd or gregorian[1].jd
if (h2 + 3 < g1) or (h1 - 3 > g2) then
set_message ('err_date_hijri_and_gregorian_not_corresponded');
return false
end
return true
end
--[[--------------------------< I S _ V A L I D _ M O N T H _ R A N G E _ S T Y L E >--------------------------
Months in a range are expected to have the same style: Jan–Mar or October–December but not February–Mar or Jul–August.
This function looks in cfg.date_names{} to see if both month names are listed in the long subtable or both are
listed in the short subtable. When both have the same style (both are listed in the same table), returns true; false else
]]
local function is_valid_month_range_style (month1, month2)
--#modified
if (cfg.date_names.en.long[month1] and cfg.date_names.en.long[month2]) or -- are both English names listed in the long subtable?
(cfg.date_names.en.short[month1] and cfg.date_names.en.short[month2]) or -- are both English names listed in the short subtable?
(cfg.date_names['local'].long[month1] and cfg.date_names['local'].long[month2]) or -- are both local names listed in the long subtable?
(cfg.date_names['local'].hijri[month1] and cfg.date_names['local'].hijri[month2]) or -- are both local names listed in the long subtable?
(cfg.date_names['local']['alt-long'][month1] and cfg.date_names['local']['alt-long'][month2]) or -- are both local names listed in the long subtable?
(cfg.date_names['local'].short[month1] and cfg.date_names['local'].short[month2]) then -- are both local names listed in the short subtable?
return true;
end
return false; -- names are mixed
end
--[[--------------------------< I S _ V A L I D _ M O N T H _ S E A S O N _ R A N G E >------------------------
Check a pair of months or seasons to see if both are valid members of a month or season pair.
Month pairs are expected to be left to right, earliest to latest in time.
All season ranges are accepted as valid because there are publishers out there who have published a Summer–Spring YYYY issue, hence treat as ok
]]
local function is_valid_month_season_range(range_start, range_end, param)
--#Modified
local range_start_number, ishijri = get_month_number_and_cal (range_start);
local range_end_number;
if 0 == range_start_number then -- is this a month range?
range_start_number = get_season_number (range_start, param); -- not a month; is it a season? get start season number
range_end_number = get_season_number (range_end, param); -- get end season number
if (0 ~= range_start_number) and (0 ~= range_end_number) and (range_start_number ~= range_end_number) then
return true; -- any season pairing is accepted except when both are the same
end
return false; -- range_start and/or range_end is not a season
end
-- here when range_start is a month
--#Modified
range_end_number = get_month_number (range_end, ishijri); -- get end month number
if range_start_number < range_end_number and -- range_start is a month; does range_start precede range_end?
is_valid_month_range_style (range_start, range_end) then -- do months have the same style?
return true; -- proper order and same style
end
return false; -- range_start month number is greater than or equal to range end number; or range end isn't a month
end
--[[--------------------------< M A K E _ C O I N S _ D A T E >------------------------------------------------
This function receives a table of date parts for one or two dates and an empty table reference declared in
Module:Citation/CS1. The function is called only for |date= parameters and only if the |date=<value> is
determined to be a valid date format. The question of what to do with invalid date formats is not answered here.
The date parts in the input table are converted to an ISO 8601 conforming date string:
single whole dates: yyyy-mm-dd
month and year dates: yyyy-mm
year dates: yyyy
ranges: yyyy-mm-dd/yyyy-mm-dd
yyyy-mm/yyyy-mm
yyyy/yyyy
Dates in the Julian calendar are reduced to year or year/year so that we don't have to do calendar conversion from
Julian to Proleptic Gregorian.
The input table has:
year, year2 – always present; if before 1582, ignore months and days if present
month, month2 – 0 if not provided, 1-12 for months, 21-24 for seasons; 99 Christmas
day, day2 – 0 if not provided, 1-31 for days
the output table receives:
rftdate: an ISO 8601 formatted date
rftchron: a free-form version of the date, usually without year which is in rftdate (season ranges and proper-name dates)
rftssn: one of four season keywords: winter, spring, summer, fall (lowercase)
rftquarter: one of four values: 1, 2, 3, 4
]]
local function make_COinS_date (input, tCOinS_date)
local date; -- one date or first date in a range
local date2 = ''; -- end of range date
input.year = tonumber (input.year) or lang_object:parseFormattedNumber (input.year); -- language-aware tonumber()
input.year2 = tonumber (input.year2) or lang_object:parseFormattedNumber (input.year2); -- COinS dates are pseudo-ISO 8601 so convert to Arabic numerals
if ((1582 == input.year) and (10 > tonumber(input.month))) or (1582 > input.year) then -- if a Julian calendar date
tCOinS_date.rftdate = tostring (input.year); -- &rft.date gets year only
return; -- done
end
-- here for all forms of Gregorian dates
if 20 < tonumber (input.month) then -- if season, quarter, or proper-name date
date = input.year; -- &rft.date gets year only
if 0 ~= input.year2 and input.year ~= input.year2 then -- if a range, only the second year portion when not the same as range start year
date = string.format ('%.4d/%.4d', input.year, input.year2) -- assemble the date range
end
local season = {[24] = 'winter', [21] = 'spring', [22] = 'summer', [23] = 'fall', [33] = '1', [34] = '2', [35] = '3', [36] = '4', [98] = 'Easter', [99] = 'Christmas'}; -- seasons lowercase, no autumn; proper-names use title case
if 0 == input.month2 then -- single season, quarter, or proper-name date
if 40 < tonumber(input.month) then
tCOinS_date.rftchron = season[input.month]; -- proper-name date; used in journal metadata only
elseif 30 < tonumber(input.month) then
tCOinS_date.rftquarter = season[input.month]; -- quarter date; used in journal metadata only
else
tCOinS_date.rftssn = season[input.month]; -- season date; used in journal metadata only
end
else -- season ranges are lumped into &rft.chron; &rft.ssn and &rft.quarter are left blank
if input.year ~= input.year2 then -- season year – season year range or season year–year
if 0 ~= input.month2 then
tCOinS_date.rftchron = string.format ('%s %s – %s %s', season[input.month], input.year, season[input.month2], input.year2); -- used in journal metadata only
end
else -- season–season year range
tCOinS_date.rftchron = season[input.month] .. '–' .. season[input.month2]; -- season–season year range; used in journal metadata only
end
end
tCOinS_date.rftdate = tostring (date);
return; -- done
end
-- here for gregorian calendar dates
if 0 ~= input.day then
date = string.format ('%s-%.2d-%.2d', input.year, tonumber(input.month), tonumber(input.day)); -- whole date
elseif 0 ~= input.month then
date = string.format ('%s-%.2d', input.year, tonumber(input.month)); -- year and month
else
date = string.format ('%s', input.year); -- just year
end
if 0 ~= input.year2 then
if 0 ~= input.day2 then
date2 = string.format ('/%s-%.2d-%.2d', input.year2, tonumber(input.month2), tonumber(input.day2)); -- whole date
elseif 0 ~= input.month2 then
date2 = string.format ('/%s-%.2d', input.year2, tonumber(input.month2)); -- year and month
else
date2 = string.format ('/%s', input.year2); -- just year
end
end
tCOinS_date.rftdate = date .. date2; -- date2 has the '/' separator
return;
end
--[[--------------------------< P A T T E R N S _ T >----------------------------------------------------------
this is the list of patterns for date formats that this module recognizes. Approximately the first half of these
patterns represent formats that might be reformatted into another format. Those that might be reformatted have
'indicator' letters that identify the content of the matching capture: 'd' (day), 'm' (month), 'a' (anchor year),
'y' (year); second day, month, year have a '2' suffix.
These patterns are used for both date validation and for reformatting. This table should not be moved to ~/Configuration
because changes to this table require changes to check_date() and to reformatter() and reformat_date()
]]
local patterns_t = {
--#Added block: for Hijri dates
['H-dMy'] = {'^([0-3]?%d) +(%D-) +((%d%d%d%d?)ه[ـ]?)$', 'd', 'm', 'a', 'y'},
['H-dmy'] = {'^([0-3]?%d)[%-/]([0-1]?%d)[%-/]((%d%d%d%d)ه[ـ]?)$', 'd', 'm', 'a', 'y'},
['H-My'] = {'^([^%d–]+)[ %-]+((%d%d%d%d)ه[ـ]?)$', 'm', 'a', 'y'},
['H-y'] = {'^((%d%d%d%d?)ه[ـ]?)$', 'a','y'},
--#Added END
--#modified تساهل في الأصفار الدليلية -- year-initial numerical year-month-day
['ymd'] = {'^(%d%d%d%d)%-([0-1]?%d)%-([0-3]?%d)$', 'y', 'm', 'd'},
--#Added مستعملة في اللغات العربية 15-10-2022 -- year-initial numerical year-month-day
['dmy'] = {'^([0-3]?%d)%-([0-1]?%d)%-([1-9]%d%d%d)$', 'd', 'm', 'y'},
-- month-initial: month day, year
['Mdy'] = {'^(%D-) +([1-9]%d?), +(([1-9]%d%d%d?)%a?)$', 'm', 'd', 'a', 'y'},
-- month-initial day range: month day–day, year; days are separated by endash
['Md-dy'] = {'^(%D-) +([1-9]%d?)[%-–]([1-9]%d?), +(([1-9]%d%d%d?)%a?)$', 'm', 'd', 'd2', 'a', 'y'},
--#Mdofied to allow 01 يناير -- day-initial: day month year
['dMy'] = {'^(%d%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'm', 'a', 'y'},
-- year-initial: year month day; day: 1 or 2 two digits, leading zero allowed; not supported at en.wiki
['yMd'] = {'^(([1-9]%d%d%d?)%a?) +(%D-) +(%d%d?)$', 'a', 'y', 'm', 'd'},
-- day-range-initial: day–day month year; days are separated by endash
['d-dMy'] = {'^([1-9]%d?)[%-–]([1-9]%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'd2', 'm', 'a', 'y'},
-- day initial month-day-range: day month - day month year; uses spaced endash
['dM-dMy'] = {'^([1-9]%d?) +(%D-) +[%-–] +([1-9]%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'm', 'd2', 'm2', 'a', 'y'},
-- month initial month-day-range: month day – month day, year; uses spaced endash
['Md-Mdy'] = {'^(%D-) +([1-9]%d?) +[%-–] +(%D-) +([1-9]%d?), +(([1-9]%d%d%d?)%a?)$','m', 'd', 'm2', 'd2', 'a', 'y'},
-- day initial month-day-year-range: day month year - day month year; uses spaced endash
['dMy-dMy'] = {'^([1-9]%d?) +(%D-) +([1-9]%d%d%d?) +[%-–] +([1-9]%d?) +(%D-) +(([1-9]%d%d%d?)%a?)$', 'd', 'm', 'y', 'd2', 'm2', 'a', 'y2'},
-- month initial month-day-year-range: month day, year – month day, year; uses spaced endash
['Mdy-Mdy'] = {'^(%D-) +([1-9]%d?), +([1-9]%d%d%d?) +[%-–] +(%D-) +([1-9]%d?), +(([1-9]%d%d%d?)%a?)$', 'm', 'd', 'y', 'm2', 'd2', 'a', 'y2'},
-- these date formats cannot be converted, per se, but month name can be rendered short or long
-- month/season year - month/season year; separated by spaced endash
['My-My'] = {'^(%D-) +([1-9]%d%d%d?) +[%-–] +(%D-) +(([1-9]%d%d%d?)%a?)$', 'm', 'y', 'm2', 'a', 'y2'},
-- month/season range year; months separated by endash
['M-My'] = {'^(%D-)[%-–](%D-) +(([1-9]%d%d%d?)%a?)$', 'm', 'm2', 'a', 'y'},
-- month/season year or proper-name year; quarter year when First Quarter YYYY etc.
['My'] = {'^([^%d–]-) +(([1-9]%d%d%d?)%a?)$', 'm', 'a', 'y'}, -- this way because endash is a member of %D; %D- will match January–March 2019 when it shouldn't
-- these date formats cannot be converted
['Sy4-y2'] = {'^(%D-) +(([1-9]%d)%d%d)[%-–]((%d%d)%a?)$'}, -- special case Winter/Summer year-year (YYYY-YY); year separated with unspaced endash
['Sy-y'] = {'^(%D-) +([1-9]%d%d%d?)[%-–](([1-9]%d%d%d?)%a?)$'}, -- special case Winter/Summer year-year; year separated with unspaced endash
['y-y'] = {'^([1-9]%d%d%d?)[%-–](([1-9]%d%d%d?)%a?)$'}, -- year range: YYY-YYY or YYY-YYYY or YYYY–YYYY; separated by unspaced endash; 100-9999
['y4-y2'] = {'^(([1-9]%d)%d%d)[%-–]((%d%d)%a?)$'}, -- year range: YYYY–YY; separated by unspaced endash
['y'] = {'^(([1-9]%d%d%d?)%a?)$'}, -- year; here accept either YYY or YYYY
}
--[[--------------------------< I S _ V A L I D _ E M B A R G O _ D A T E >------------------------------------
returns true and date value if that value has proper dmy, mdy, ymd format.
returns false and 9999 (embargoed forever) when date value is not proper format; assumes that when |pmc-embargo-date= is
set, the editor intended to embargo a PMC but |pmc-embargo-date= does not hold a single date.
]]
local function is_valid_embargo_date (v)
if v:match (patterns_t['ymd'][1]) or -- ymd
v:match (patterns_t['Mdy'][1]) or -- dmy
v:match (patterns_t['dMy'][1]) then -- mdy
return true, v;
end
return false, '9999'; -- if here not good date so return false and set embargo date to long time in future
end
--[[--------------------------< C H E C K _ D A T E >----------------------------------------------------------
Check date format to see that it is one of the formats approved by WP:DATESNO or WP:DATERANGE. Exception: only
allowed range separator is endash. Additionally, check the date to see that it is a real date: no 31 in 30-day
months; no 29 February when not a leap year. Months, both long-form and three character abbreviations, and seasons
must be spelled correctly. Future years beyond next year are not allowed.
If the date fails the format tests, this function returns false and does not return values for anchor_year and
COinS_date. When this happens, the date parameter is (DEBUG: not?) used in the COinS metadata and the CITEREF identifier gets
its year from the year parameter if present otherwise CITEREF does not get a date value.
Inputs:
date_string - date string from date-holding parameters (date, year, publication-date, access-date, pmc-embargo-date, archive-date, lay-date)
Returns:
false if date string is not a real date; else
true, anchor_year, COinS_date
anchor_year can be used in CITEREF anchors
COinS_date is ISO 8601 format date; see make_COInS_date()
]]
local function check_date (date_string, param, tCOinS_date)
--#hardly modified
local year; -- assume that year2, months, and days are not used;
local year2 = 0; -- second year in a year range
local month = 0;
local month2 = 0; -- second month in a month range
local day = 0;
local day2 = 0; -- second day in a day range
local anchor_year;
local coins_date;
--#Added flag for hijri date
local hijri_date;
local hijri_param = ('hijri-date' == param);
--#Added Hijri Date Validtion
if mw.ustring.match (date_string, patterns_t['H-dmy'][1]) then
day, month, year = mw.ustring.match (date_string, patterns_t['H-dmy'][1]);
if 12 < tonumber(month) or 1 > tonumber(month) or 0 == tonumber(day) then return false; end
anchor_year = year;
hijri_date = true;
elseif mw.ustring.match (date_string, patterns_t['H-dMy'][1]) then
day, month, anchor_year, year = mw.ustring.match(date_string, patterns_t['H-dMy'][1]);
month = get_month_number (month, true);
if 0 == month then return false; end
hijri_date = true;
elseif mw.ustring.match (date_string, patterns_t['H-My'][1]) then
month, anchor_year, year = mw.ustring.match(date_string, patterns_t['H-My'][1]);
month = get_month_number (month, true);
hijri_date = true;
if not is_valid_year(year,hijri_date) then return false; end
elseif mw.ustring.match (date_string, patterns_t['H-y'][1]) then
anchor_year, year = mw.ustring.match(date_string, patterns_t['H-y'][1]);
hijri_date = true;
if not is_valid_year(year,hijri_date) then return false; end
--#Added END
elseif date_string:match (patterns_t['ymd'][1]) then -- year-initial numerical year month day format
year, month, day = date_string:match (patterns_t['ymd'][1]);
if 12 < tonumber(month) or 1 > tonumber(month) or 1582 > tonumber(year) or 0 == tonumber(day) then return false; end -- month or day number not valid or not Gregorian calendar
anchor_year = year;
--#Added used in Arabic
elseif date_string:match (patterns_t['dmy'][1]) then
day, month, year = date_string:match (patterns_t['dmy'][1]);
if not is_valid_date(year, month, day, param, hijri_param) then return false; end
hijri_date = hijri_param;
anchor_year = year;
elseif mw.ustring.match(date_string, patterns_t['Mdy'][1]) then -- month-initial: month day, year
month, day, anchor_year, year = mw.ustring.match(date_string, patterns_t['Mdy'][1]);
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
elseif mw.ustring.match(date_string, patterns_t['Md-dy'][1]) then -- month-initial day range: month day–day, year; days are separated by endash
month, day, day2, anchor_year, year = mw.ustring.match(date_string, patterns_t['Md-dy'][1]);
if tonumber(day) >= tonumber(day2) then return false; end -- date range order is left to right: earlier to later; dates may not be the same;
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
month2=month; -- for metadata
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['dMy'][1]) then -- day-initial: day month year
day, month, anchor_year, year = mw.ustring.match(date_string, patterns_t['dMy'][1]);
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
--[[ NOT supported at en.wiki
elseif mw.ustring.match(date_string, patterns_t['yMd'][1]) then -- year-initial: year month day; day: 1 or 2 two digits, leading zero allowed
anchor_year, year, month, day = mw.ustring.match(date_string, patterns_t['yMd'][1]);
month = get_month_number (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
-- end NOT supported at en.wiki ]]
elseif mw.ustring.match(date_string, patterns_t['d-dMy'][1]) then -- day-range-initial: day–day month year; days are separated by endash
day, day2, month, anchor_year, year = mw.ustring.match(date_string, patterns_t['d-dMy'][1]);
if tonumber(day) >= tonumber(day2) then return false; end -- date range order is left to right: earlier to later; dates may not be the same;
month, hijri_date = get_month_number_and_cal (month);
if 0 == month then return false; end -- return false if month text isn't one of the twelve months
month2 = month; -- for metadata
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['dM-dMy'][1]) then -- day initial month-day-range: day month - day month year; uses spaced endash
day, month, day2, month2, anchor_year, year = mw.ustring.match(date_string, patterns_t['dM-dMy'][1]);
hijri_date = (get_month_number(month, true) > 0);
if (not is_valid_month_season_range(month, month2)) or not is_valid_year(year, hijri_date) then return false; end -- date range order is left to right: earlier to later;
month = get_month_number (month,hijri_date); -- for metadata
month2 = get_month_number (month2,hijri_date);
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['Md-Mdy'][1]) then -- month initial month-day-range: month day – month day, year; uses spaced endash
month, day, month2, day2, anchor_year, year = mw.ustring.match(date_string, patterns_t['Md-Mdy'][1]);
hijri_date = (get_month_number(month, true) > 0);
if (not is_valid_month_season_range(month, month2, param)) or not is_valid_year(year, hijri_date) then return false; end
month = get_month_number (month, hijri_date); -- for metadata
month2 = get_month_number (month2, hijri_date);
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['dMy-dMy'][1]) then -- day initial month-day-year-range: day month year - day month year; uses spaced endash
day, month, year, day2, month2, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['dMy-dMy'][1]);
if tonumber(year2) <= tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
hijri_date = (get_month_number(month, true) > 0);
if not is_valid_year(year2, hijri_date) or not is_valid_month_range_style(month, month2) then return false; end -- year2 no more than one year in the future; months same style
month = get_month_number (month, hijri_date); -- for metadata
month2 = get_month_number (month2, hijri_date);
if 0 == month or 0 == month2 then return false; end -- both must be valid
elseif mw.ustring.match(date_string, patterns_t['Mdy-Mdy'][1]) then -- month initial month-day-year-range: month day, year – month day, year; uses spaced endash
month, day, year, month2, day2, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['Mdy-Mdy'][1]);
hijri_date = (get_month_number(month, true) > 0);
if tonumber(year2) <= tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
if not is_valid_year(year2, hijri_date) or not is_valid_month_range_style(month, month2) then return false; end -- year2 no more than one year in the future; months same style
month = get_month_number (month, hijri_date); -- for metadata
month2 = get_month_number(month2, hijri_date);
if 0 == month or 0 == month2 then return false; end -- both must be valid
elseif mw.ustring.match(date_string, patterns_t['Sy4-y2'][1]) then -- special case Winter/Summer year-year (YYYY-YY); year separated with unspaced endash
local century;
month, year, century, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['Sy4-y2'][1]);
if 'Winter' ~= month and 'Summer' ~= month then return false end; -- 'month' can only be Winter or Summer
anchor_year = year .. '–' .. anchor_year; -- assemble anchor_year from both years
year2 = century..year2; -- add the century to year2 for comparisons
if 1 ~= tonumber(year2) - tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
if not is_valid_year(year2) then return false; end -- no year farther in the future than next year
month = get_season_number(month, param);
elseif mw.ustring.match(date_string, patterns_t['Sy-y'][1]) then -- special case Winter/Summer year-year; year separated with unspaced endash
month, year, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['Sy-y'][1]);
month = get_season_number (month, param); -- <month> can only be winter or summer; also for metadata
if (month ~= cfg.date_names['en'].season['Winter']) and (month ~= cfg.date_names['en'].season['Summer']) then
return false; -- not Summer or Winter; abandon
end
anchor_year = year .. '–' .. anchor_year; -- assemble anchor_year from both years
if 1 ~= tonumber(year2) - tonumber(year) then return false; end -- must be sequential years, left to right, earlier to later
if not is_valid_year(year2) then return false; end -- no year farther in the future than next year
elseif mw.ustring.match(date_string, patterns_t['My-My'][1]) then -- month/season year - month/season year; separated by spaced endash
month, year, month2, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['My-My'][1]);
anchor_year = year .. '–' .. anchor_year; -- assemble anchor_year from both years
if tonumber(year) >= tonumber(year2) then return false; end -- left to right, earlier to later, not the same
hijri_date = (get_month_number(month, true) > 0);
if not is_valid_year(year2, hijri_date) then return false; end -- no year farther in the future than next year
if 0 ~= get_month_number(month, hijri_date) and 0 ~= get_month_number(month2, hijri_date) and is_valid_month_range_style(month, month2) then -- both must be month year, same month style
month = get_month_number(month, hijri_date);
month2 = get_month_number(month2, hijri_date);
elseif 0 ~= get_season_number(month, param) and 0 ~= get_season_number(month2, param) then -- both must be season year, not mixed
month = get_season_number(month, param);
month2 = get_season_number(month2, param);
else
return false;
end
elseif mw.ustring.match(date_string, patterns_t['M-My'][1]) then -- month/season range year; months separated by endash
month, month2, anchor_year, year = mw.ustring.match(date_string, patterns_t['M-My'][1]);
hijri_date = (get_month_number(month, true) > 0);
if (not is_valid_month_season_range(month, month2, param)) or (not is_valid_year(year, hijri_date)) then return false; end
if 0 ~= get_month_number(month, hijri_date) then -- determined to be a valid range so just check this one to know if month or season
month = get_month_number(month, hijri_date);
month2 = get_month_number(month2, hijri_date);
if 0 == month or 0 == month2 then return false; end
else
month = get_season_number(month, param);
month2 = get_season_number(month2, param);
end
year2 = year;
elseif mw.ustring.match(date_string, patterns_t['My'][1]) then -- month/season/quarter/proper-name year
month, anchor_year, year = mw.ustring.match(date_string, patterns_t['My'][1]);
hijri_date = (get_month_number(month, true) > 0);
if not is_valid_year(year, hijri_date) then return false; end
month = get_element_number(month, hijri_date, param); -- get month season quarter proper-name number or nil
if not month then return false; end -- not valid whatever it is
elseif mw.ustring.match(date_string, patterns_t['y-y'][1]) then -- Year range: YYY-YYY or YYY-YYYY or YYYY–YYYY; separated by unspaced endash; 100-9999
year, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['y-y'][1]);
anchor_year = year .. '–' .. anchor_year; -- assemble anchor year from both years
if tonumber(year) >= tonumber(year2) then return false; end -- left to right, earlier to later, not the same
if not is_valid_year(year2, hijri_param) then return false; end -- no year farther in the future than next year
hijri_date = hijri_param; -- year range is valid so set hijri_date to true when |hijri-date= is set
elseif mw.ustring.match(date_string, patterns_t['y4-y2'][1]) then -- Year range: YYYY–YY; separated by unspaced endash
local century;
year, century, anchor_year, year2 = mw.ustring.match(date_string, patterns_t['y4-y2'][1]);
anchor_year = year .. '–' .. anchor_year; -- assemble anchor year from both years
if 13 > tonumber(year2) then return false; end -- don't allow 2003-05 which might be May 2003
year2 = century .. year2; -- add the century to year2 for comparisons
if tonumber(year) >= tonumber(year2) then return false; end -- left to right, earlier to later, not the same
if not is_valid_year(year2, hijri_param) then return false; end -- no year farther in the future than next year
hijri_date = hijri_param; -- year range is valid so set hijri_date to true when |hijri-date= is set
if in_array (param, {'date', 'publication-date', 'year'}) then -- here when 'valid' abbreviated year range; if one of these parameters
add_prop_cat ('year-range-abbreviated'); -- add properties cat
end
elseif mw.ustring.match(date_string, patterns_t['y'][1]) then -- year; here accept either YYY or YYYY
anchor_year, year = mw.ustring.match(date_string, patterns_t['y'][1]);
if false == is_valid_year(year, hijri_param) then
return false;
end
hijri_date = hijri_param;
else
return false; -- date format not one of the MOS:DATE approved formats
end
if param ~= 'date' then -- CITEREF disambiguation only allowed in |date=; |year= & |publication-date= promote to date
if anchor_year:match ('%l$') then
return false;
end
end
if 'access-date' == param then -- test access-date here because we have numerical date parts
if 0 ~= year and 0 ~= month and 0 ~= day and -- all parts of a single date required
0 == year2 and 0 == month2 and 0 == day2 then -- none of these; access-date must not be a range
if not is_valid_accessdate(year .. '-' .. month .. '-' .. day) then
return false; -- return false when access-date out of bounds
end
else
return false; -- return false when access-date is a range of two dates
end
end
if 'archive-date' == param then -- test archive-date here because we have numerical date parts
if not (0 ~= year and 0 ~= month and 0 ~= day and -- all parts of a single date required
0 == year2 and 0 == month2 and 0 == day2) then -- none of these; archive-date must not be a range
return false; -- return false when archive-date is a range of two dates
end
end
local result=true; -- check whole dates for validity; assume true because not all dates will go through this test
if 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 == month2 and 0 == day2 then -- YMD (simple whole date)
result = is_valid_date (year, month, day, param, hijri_date); -- <param> for |pmc-embargo-date=
elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 == month2 and 0 ~= day2 then -- YMD-d (day range)
result = is_valid_date (year, month, day, param, hijri_date);
result = result and is_valid_date (year, month, day2, param, hijri_date);
elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 ~= month2 and 0 ~= day2 then -- YMD-md (day month range)
result = is_valid_date (year, month, day, param, hijri_date);
result = result and is_valid_date (year, month2, day2, param, hijri_date);
elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 ~= year2 and 0 ~= month2 and 0 ~= day2 then -- YMD-ymd (day month year range)
result = is_valid_date(year, month, day, param, hijri_date);
result = result and is_valid_date(year2, month2, day2, param, hijri_date);
end
if false == result then return false; end
--#Modified check Hijri Date
if nil ~= tCOinS_date and not (hijri_date or hijri_param) then -- this table only passed into this function when testing |date= parameter values
make_COinS_date ({year = year, month = month, day = day, year2 = year2, month2 = month2, day2 = day2}, tCOinS_date); -- make an ISO 8601 date string for COinS
end
local tt = {{year=year, month=month, day=day}}; -- return table of date parts
if 0 ~= year2 or 0 ~= month2 or 0 ~= day2 then
table.insert(tt, {year=year2, month=month2, day=day2});
end
return true, anchor_year, hijri_date, tt; -- format is good and date string represents a real date
end
--[[--------------------------< D A T E S >--------------------------------------------------------------------
Cycle the date-holding parameters in passed table date_parameters_list through check_date() to check compliance with MOS:DATE. For all valid dates, check_date() returns
true. The |date= parameter test is unique, it is the only date holding parameter from which values for anchor_year (used in CITEREF identifiers) and COinS_date (used in
the COinS metadata) are derived. The |date= parameter is the only date-holding parameter that is allowed to contain the no-date keywords "n.d." or "nd" (without quotes).
Unlike most error messages created in this module, only one error message is created by this function. Because all of the date holding parameters are processed serially,
parameters with errors are added to the <error_list> sequence table as the dates are tested.
]]
local function dates(date_parameters_list, tCOinS_date, error_list)
local anchor_year; -- will return as nil if the date being tested is not |date=
local COinS_date; -- will return as nil if the date being tested is not |date=
local embargo_date; -- if embargo date is a good dmy, mdy, ymd date then holds original value else reset to 9999
for k, v in pairs(date_parameters_list) do -- for each date-holding parameter in the list
local good_date = false;
if is_set(v.val) then -- if the parameter has a value
v.val = mw.ustring.gsub(v.val, '%d', cfg.date_names.local_digits); -- translate 'local' digits to Western 0-9
v.val = mw.ustring.gsub(v.val, '(%d) ?هـ?$', '%1');
if v.val:match("^c%. [1-9]%d%d%d?%a?$") then -- special case for c. year or with or without CITEREF disambiguator - only |date= and |year=
local year = v.val:match("c%. ([1-9]%d%d%d?)%a?"); -- get the year portion so it can be tested
if 'date' == k then
anchor_year, COinS_date = v.val:match("((c%. [1-9]%d%d%d?)%a?)"); -- anchor year and COinS_date only from |date= parameter
good_date = is_valid_year(year);
elseif 'year' == k then
good_date = is_valid_year(year);
else
good_date = false;
end
elseif 'date' == k then -- if the parameter is |date=
--#Modified block
for _,nd_pattern in ipairs(cfg.date_names.nd_patterns) do
if v.val:match(nd_pattern[1]) then
good_date, anchor_year, COinS_date = true, v.val:match(nd_pattern[2]);
date_parameters_list[k].val = "nd"
break;
end
end
if not good_date then
good_date, anchor_year, date_parameters_list[k].isHijri, date_parameters_list[k].tt = check_date (v.val, k, tCOinS_date); -- go test the date
end
--#Added block for Hijri Date
elseif 'hijri-date' == k then -- if the parameter is |date=
good_date, anchor_year, date_parameters_list[k].isHijri, date_parameters_list[k].tt = check_date (v.val, k); -- go test the date
if good_date and not date_parameters_list[k].isHijri then
set_message ('err_date_in_hijri_date_param', v.name);
good_date = false;
end
elseif 'year' == k then -- if the parameter is |year= it should hold only a year value
if v.val:match("^[1-9]%d%d%d?%a?$") then -- if |year = 3 or 4 digits only with or without a CITEREF disambiguator
good_date, anchor_year, COinS_date = true, v.val:match("((%d+)%a?)");
else
good_date = false;
end
elseif 'pmc-embargo-date' == k then -- if the parameter is |pmc-embargo-date=
good_date = check_date (v.val, k); -- go test the date
if true == good_date then -- if the date is a valid date
good_date, embargo_date = is_valid_embargo_date (v.val); -- is |pmc-embargo-date= date a single dmy, mdy, or ymd formatted date? yes: returns embargo date; no: returns 9999
end
else -- any other date-holding parameter
--#Modified
local _
good_date, _, date_parameters_list[k].isHijri, date_parameters_list[k].tt = check_date (v.val, k); -- go test the date
end
if false == good_date then -- assemble one error message so we don't add the tracking category multiple times
table.insert (error_list, wrap_style ('parameter', v.name)); -- make parameter name suitable for error message list
end
--#Added block
if date_parameters_list[k].isHijri and 'hijri-date' ~= k then
set_message ('err_hijri_date_in_date_param', v.name);
end
end
end
return anchor_year, embargo_date; -- and done
end
--[[--------------------------< Y E A R _ C H E C K >----------------------------------------------------------
Temporary function to test |year= for acceptable values:
YYY, YYYY, year-only ranges, their circa forms, with or without CITEREF disambiguators.
When |year= holds some form of date that is not one of these year-only dates, emit a maintenance message.
This function necessary because many non-cs1|2 templates have a |year= parameter so cirrus searches are more-or-
less useless
]]
local function year_check (year)
year = year:gsub ('c%. *', ''); -- remove circa annotation (if present) before testing <year>
for _, index in ipairs ({'y-y', 'y4-y2', 'y'}) do -- spin through these indexes into patterns_t
if mw.ustring.match (year, patterns_t[index][1]) then
return; -- if a match then |year= holds a valid 'year'
end
end
set_message ('maint_year'); -- if here, |year= value is not an accepted value; add a maint cat
end
--[[--------------------------< Y E A R _ D A T E _ C H E C K >------------------------------------------------
Compare the value provided in |year= with the year value(s) provided in |date=. This function sets a local numeric value:
0 - year value does not match the year value in date
1 - (default) year value matches the year value in date or one of the year values when date contains two years
2 - year value matches the year value in date when date is in the form YYYY-MM-DD and year is disambiguated (|year=YYYYx)
the numeric value in <result> determines the 'output' if any from this function:
0 – adds error message to error_list sequence table
1 – adds maint cat
2 – does nothing
]]
local function year_date_check (year_string, year_origin, date_string, date_origin, error_list)
local year;
local date1;
local date2;
local result = 1; -- result of the test; assume that the test passes
year = year_string:match ('(%d%d%d%d?)');
if date_string:match ('%d%d%d%d%-%d%d%-%d%d') then --special case where both date and year are required YYYY-MM-DD and YYYYx
date1 = date_string:match ('(%d%d%d%d)');
year = year_string:match ('(%d%d%d%d)');
if year ~= date1 then
result = 0; -- years don't match
elseif year_string:match ('%d%d%d%d%a') then
result = 2; -- years match; but because disambiguated, don't add to maint cat
end
elseif date_string:match ("%d%d%d%d?.-%d%d%d%d?") then -- any of the standard range formats of date with two three- or four-digit years
date1, date2 = date_string:match ("(%d%d%d%d?).-(%d%d%d%d?)");
if year ~= date1 and year ~= date2 then
result = 0;
end
elseif mw.ustring.match(date_string, "%d%d%d%d[%-–]%d%d") then -- YYYY-YY date ranges
local century;
date1, century, date2 = mw.ustring.match(date_string, "((%d%d)%d%d)[%-–]+(%d%d)");
date2 = century..date2; -- convert YY to YYYY
if year ~= date1 and year ~= date2 then
result = 0;
end
elseif date_string:match ("%d%d%d%d?") then -- any of the standard formats of date with one year
date1 = date_string:match ("(%d%d%d%d?)");
if year ~= date1 then
result = 0;
end
else -- should never get here; this function called only when no other date errors
result = 0; -- no recognizable year in date
end
if 0 == result then -- year / date mismatch
table.insert (error_list, substitute (cfg.messages['mismatch'], {year_origin, date_origin})); -- add error message to error_list sequence table
elseif 1 == result then -- redundant year / date
set_message ('maint_date_year'); -- add a maint cat
end
end
--[[--------------------------< R E F O R M A T T E R >--------------------------------------------------------
reformat 'date' into new format specified by format_param if pattern_idx (the current format of 'date') can be
reformatted. Does the grunt work for reformat_dates().
The table re_formats maps pattern_idx (current format) and format_param (desired format) to a table that holds:
format string used by string.format()
identifier letters ('d', 'm', 'y', 'd2', 'm2', 'y2') that serve as indexes into a table t{} that holds captures
from mw.ustring.match() for the various date parts specified by patterns_t[pattern_idx][1]
Items in patterns_t{} have the general form:
['ymd'] = {'^(%d%d%d%d)%-(%d%d)%-(%d%d)$', 'y', 'm', 'd'}, where:
['ymd'] is pattern_idx
patterns_t['ymd'][1] is the match pattern with captures for mw.ustring.match()
patterns_t['ymd'][2] is an indicator letter identifying the content of the first capture
patterns_t['ymd'][3] ... the second capture etc.
when a pattern matches a date, the captures are loaded into table t{} in capture order using the idemtifier
characters as indexes into t{} For the above, a ymd date is in t{} as:
t.y = first capture (year), t.m = second capture (month), t.d = third capture (day)
To reformat, this function is called with the pattern_idx that matches the current format of the date and with
format_param set to the desired format. This function loads table t{} as described and then calls string.format()
with the format string specified by re_format[pattern_idx][format_param][1] using values taken from t{} according
to the capture identifier letters specified by patterns_t[pattern_idx][format_param][n] where n is 2..
]]
local re_formats = {
['ymd'] = { -- date format is ymd; reformat to:
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
},
['dmy'] = { -- date format is ymd; reformat to:
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
},
['Mdy'] = { -- date format is Mdy; reformat to:
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- for long/short reformatting
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
},
['dMy'] = { -- date format is dMy; reformat to:
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- for long/short reformatting
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
['yMd'] = {'%s %s %s', 'y', 'm', 'd'}, -- |df=yMd; not supported at en.wiki
},
['Md-dy'] = { -- date format is Md-dy; reformat to:
['mdy'] = {'%s %s–%s, %s', 'm', 'd', 'd2', 'y'}, -- for long/short reformatting
['dmy'] = {'%s–%s %s %s', 'd', 'd2', 'm', 'y'}, -- |df=dmy -> d-dMy
},
['d-dMy'] = { -- date format is d-d>y; reformat to:
['dmy'] = {'%s–%s %s %s', 'd', 'd2', 'm', 'y'}, -- for long/short reformatting
['mdy'] = {'%s %s–%s, %s', 'm', 'd', 'd2', 'y'}, -- |df=mdy -> Md-dy
},
['dM-dMy'] = { -- date format is dM-dMy; reformat to:
['dmy'] = {'%s %s – %s %s %s', 'd', 'm', 'd2', 'm2', 'y'}, -- for long/short reformatting
['mdy'] = {'%s %s – %s %s, %s', 'm', 'd', 'm2', 'd2', 'y'}, -- |df=mdy -> Md-Mdy
},
['Md-Mdy'] = { -- date format is Md-Mdy; reformat to:
['mdy'] = {'%s %s – %s %s, %s', 'm', 'd', 'm2', 'd2', 'y'}, -- for long/short reformatting
['dmy'] = {'%s %s – %s %s %s', 'd', 'm', 'd2', 'm2', 'y'}, -- |df=dmy -> dM-dMy
},
['dMy-dMy'] = { -- date format is dMy-dMy; reformat to:
['dmy'] = {'%s %s %s – %s %s %s', 'd', 'm', 'y', 'd2', 'm2', 'y2'}, -- for long/short reformatting
['mdy'] = {'%s %s, %s – %s %s, %s', 'm', 'd', 'y', 'm2', 'd2', 'y2'}, -- |df=mdy -> Mdy-Mdy
},
['Mdy-Mdy'] = { -- date format is Mdy-Mdy; reformat to:
['mdy'] = {'%s %s, %s – %s %s, %s', 'm', 'd', 'y', 'm2', 'd2', 'y2'}, -- for long/short reformatting
['dmy'] = {'%s %s %s – %s %s %s', 'd', 'm', 'y', 'd2', 'm2', 'y2'}, -- |df=dmy -> dMy-dMy
},
['My-My'] = { -- these for long/short reformatting
['any'] = {'%s %s – %s %s', 'm', 'y', 'm2', 'y2'}, -- dmy/mdy agnostic
},
['M-My'] = { -- these for long/short reformatting
['any'] = {'%s–%s %s', 'm', 'm2', 'y'}, -- dmy/mdy agnostic
},
['My'] = { -- these for long/short reformatting
['any'] = {'%s %s', 'm', 'y'}, -- dmy/mdy agnostic
},
['yMd'] = { -- not supported at en.wiki
['mdy'] = {'%s %s, %s', 'm', 'd', 'y'}, -- |df=mdy
['dmy'] = {'%s %s %s', 'd', 'm', 'y'}, -- |df=dmy
['ymd'] = {'%s-%s-%s', 'y', 'm', 'd'}, -- |df=ymd
},
}
local function reformatter (date, pattern_idx, format_param, mon_len, isHijri)
if not in_array (pattern_idx, {'ymd', 'dmy', 'Mdy', 'Md-dy', 'dMy', 'yMd', 'd-dMy', 'dM-dMy', 'Md-Mdy', 'dMy-dMy', 'Mdy-Mdy', 'My-My', 'M-My', 'My'}) then
return; -- not in this set of date format patterns_t then not a reformattable date
end
if 'ymd' == format_param and in_array (pattern_idx, {'ymd', 'Md-dy', 'd-dMy', 'dM-dMy', 'Md-Mdy', 'dMy-dMy', 'Mdy-Mdy', 'My-My', 'M-My', 'My'}) then
return; -- ymd date ranges not supported at en.wiki; no point in reformatting ymd to ymd
end
if in_array (pattern_idx, {'My', 'M-My', 'My-My'}) then -- these are not dmy/mdy so can't be 'reformatted' into either
format_param = 'any'; -- so format-agnostic
end
-- yMd is not supported at en.wiki; when yMd is supported at your wiki, uncomment the next line
if 'yMd' == format_param and in_array (pattern_idx, {'yMd', 'Md-dy', 'd-dMy', 'dM-dMy', 'Md-Mdy', 'dMy-dMy', 'Mdy-Mdy'}) then -- these formats not convertable; yMd not supported at en.wiki
--if 'yMd' == format_param then -- yMd not supported at en.wiki; when yMd is supported at your wiki, remove or comment-out this line
return; -- not a reformattable date
end
local c1, c2, c3, c4, c5, c6, c7; -- these hold the captures specified in patterns_t[pattern_idx][1]
c1, c2, c3, c4, c5, c6, c7 = mw.ustring.match (date, patterns_t[pattern_idx][1]); -- get the captures
local t = { -- table that holds k/v pairs of date parts from the captures and patterns_t[pattern_idx][2..]
[patterns_t[pattern_idx][2]] = c1; -- at minimum there is always one capture with a matching indicator letter
[patterns_t[pattern_idx][3] or 'x'] = c2; -- patterns_t can have a variable number of captures; each capture requires an indicator letter;
[patterns_t[pattern_idx][4] or 'x'] = c3; -- where there is no capture, there is no indicator letter so n in patterns_t[pattern_idx][n] will be nil;
[patterns_t[pattern_idx][5] or 'x'] = c4; -- the 'x' here spoofs an indicator letter to prevent 'table index is nil' error
[patterns_t[pattern_idx][6] or 'x'] = c5;
[patterns_t[pattern_idx][7] or 'x'] = c6;
[patterns_t[pattern_idx][8] or 'x'] = c7;
};
if t.a then -- if this date has an anchor year capture (all convertable date formats except ymd)
if t.y2 then -- for year range date formats
t.y2 = t.a; -- use the anchor year capture when reassembling the date
else -- here for single date formats (except ymd)
t.y = t.a; -- use the anchor year capture when reassembling the date
end
end
--#Modified
if 'ymd' == format_param then -- when converting to ymd
t.y = mw.ustring.gsub(t.y,'%a', ''); -- strip CITREF disambiguator if present; anchor year already known so process can proceed; TODO: maint message?
if 1582 > tonumber (t.y) then -- ymd format dates not allowed before 1582
return;
end
if tonumber(t.m) then
t.m = string.format ('%02d', tonumber(t.m))
else
t.m = string.format ('%02d', get_month_number (t.m, isHijri)); -- make sure that month and day are two digits
end
t.d = string.format ('%02d', t.d);
elseif tonumber(t.m) then -- if raw month is a number (converting from ymd)
if isHijri then
t.m = cfg.date_names['inv_local_hijri'][tonumber(t.m)]; -- convert it to a month name
elseif 's' == mon_len then -- if we are to use abbreviated month names
t.m = cfg.date_names['inv_local_short'][tonumber(t.m)]; -- convert it to a month name
else
t.m = cfg.date_names['inv_local_long'][tonumber(t.m)]; -- convert it to a month name
end
t.d = t.d:gsub ('0(%d)', '%1'); -- strip leading '0' from day if present
elseif mon_len then -- if mon_len is set to either 'short' or 'long'
for _, mon in ipairs ({'m', 'm2'}) do -- because there can be two month names, check both
--#Modified Block
if t[mon] then
local isHijri;
t[mon], isHijri = get_month_number_and_cal (t[mon]); -- get the month number for this month (is length agnostic)
if 0 == t[mon] then return; end -- seasons and named dates can't be converted
t[mon] = isHijri and cfg.date_names['inv_local_hijri'][t[mon]] or ((('s' == mon_len) and cfg.date_names['inv_local_short'][t[mon]]) or cfg.date_names['inv_local_long'][t[mon]]); -- fetch month name according to length
end
end
end
local new_date = string.format (re_formats[pattern_idx][format_param][1], -- format string
t[re_formats[pattern_idx][format_param][2]], -- named captures from t{}
t[re_formats[pattern_idx][format_param][3]],
t[re_formats[pattern_idx][format_param][4]],
t[re_formats[pattern_idx][format_param][5]],
t[re_formats[pattern_idx][format_param][6]],
t[re_formats[pattern_idx][format_param][7]],
t[re_formats[pattern_idx][format_param][8]]
);
return new_date;
end
--[[-------------------------< R E F O R M A T _ D A T E S >--------------------------------------------------
Reformats existing dates into the format specified by format.
format is one of several manual keywords: dmy, dmy-all, mdy, mdy-all, ymd, ymd-all. The -all version includes
access- and archive-dates; otherwise these dates are not reformatted.
This function allows automatic date formatting. In ~/Configuration, the article source is searched for one of
the {{use xxx dates}} templates. If found, xxx becomes the global date format as xxx-all. If |cs1-dates= in
{{use xxx dates}} has legitimate value then that value determines how cs1|2 dates will be rendered. Legitimate
values for |cs1-dates= are:
l - all dates are rendered with long month names
ls - publication dates use long month names; access-/archive-dates use abbreviated month names
ly - publication dates use long month names; access-/archive-dates rendered in ymd format
s - all dates are rendered with abbreviated (short) month names
sy - publication dates use abbreviated month names; access-/archive-dates rendered in ymd format
y - all dates are rendered in ymd format
the format argument for automatic date formatting will be the format specified by {{use xxx dates}} with the
value supplied by |cs1-dates so one of: xxx-l, xxx-ls, xxx-ly, xxx-s, xxx-sy, xxx-y, or simply xxx (|cs1-dates=
empty, omitted, or invalid) where xxx shall be either of dmy or mdy.
dates are extracted from date_parameters_list, reformatted (if appropriate), and then written back into the
list in the new format. Dates in date_parameters_list are presumed here to be valid (no errors). This function
returns true when a date has been reformatted, false else. Actual reformatting is done by reformatter().
]]
local function reformat_dates (date_parameters_list, format)
local all = false; -- set to false to skip access- and archive-dates
local len_p = 'l'; -- default publication date length shall be long
local len_a = 'l'; -- default access-/archive-date length shall be long
local result = false;
local new_date;
if format:match('%a+%-all') then -- manual df keyword; auto df keyword when length not specified in {{use xxx dates}};
format = format:match('(%a+)%-all'); -- extract the format
all = true; -- all dates are long format dates because this keyword doesn't specify length
elseif format:match('%a+%-[lsy][sy]?') then -- auto df keywords; internal only
all = true; -- auto df applies to all dates; use length specified by capture len_p for all dates
format, len_p, len_a = format:match('(%a+)%-([lsy])([sy]?)'); -- extract the format and length keywords
if 'y' == len_p then -- because allowed by MOS:DATEUNIFY (sort of) range dates and My dates not reformatted
format = 'ymd'; -- override {{use xxx dates}}
elseif (not is_set(len_a)) or (len_p == len_a) then -- no access-/archive-date length specified or same length as publication dates then
len_a = len_p; -- in case len_a not set
end
end -- else only publication dates and they are long
for param_name, param_val in pairs (date_parameters_list) do -- for each date-holding parameter in the list
if is_set (param_val.val) then -- if the parameter has a value
if not (not all and in_array (param_name, {'access-date', 'archive-date'})) then -- skip access- or archive-date unless format is xxx-all; yeah, ugly; TODO: find a better way
for pattern_idx, pattern in pairs (patterns_t) do
if mw.ustring.match (param_val.val, pattern[1]) then
if all and in_array (param_name, {'access-date', 'archive-date'}) then -- if this date is an access- or archive-date
new_date = reformatter (param_val.val, pattern_idx, (('y' == len_a) and 'ymd') or format, len_a); -- choose ymd or dmy/mdy according to len_a setting
else -- all other dates
new_date = reformatter (param_val.val, pattern_idx, format, len_p, param_val.isHijri);
end
if new_date then -- set when date was reformatted
date_parameters_list[param_name].val = new_date; -- update date in date list
result = true; -- and announce that changes have been made
break;
end
end -- if
end -- for
end -- if
end -- if
end -- for
return result; -- declare boolean result and done
end
--[[--------------------------< D A T E _ H Y P H E N _ T O _ D A S H >----------------------------------------
Loops through the list of date-holding parameters and converts any hyphen to an ndash. Not called if the cs1|2
template has any date errors.
Modifies the date_parameters_list and returns true if hyphens are replaced, else returns false.
]]
local function date_hyphen_to_dash (date_parameters_list)
local result = false;
local n;
for param_name, param_val in pairs(date_parameters_list) do -- for each date-holding parameter in the list
if is_set (param_val.val) and
not mw.ustring.match (param_val.val, patterns_t.ymd[1]) then -- for those that are not ymd dates (ustring because here digits may not be Western)
param_val.val, n = param_val.val:gsub ('%-', '–'); -- replace any hyphen with ndash
if 0 ~= n then
date_parameters_list[param_name].val = param_val.val; -- update the list
result = true;
end
end
end
return result; -- so we know if any hyphens were replaced
end
--[[-------------------------< D A T E _ N A M E _ X L A T E >------------------------------------------------
Attempts to translate English date names to local-language date names using names supplied by MediaWiki's
date parser function. This is simple name-for-name replacement and may not work for all languages.
if xlat_dig is true, this function will also translate Western (English) digits to the local language's digits.
This will also translate ymd dates.
]]
local function date_name_xlate (date_parameters_list, xlt_dig)
local xlate;
local mode; -- long or short month names
local modified = false;
local date;
local sources_t = {
{cfg.date_names.en.long, cfg.date_names.inv_local_long}, -- for translating long English month names to long local month names
{cfg.date_names.en.short, cfg.date_names.inv_local_short}, -- short month names
{cfg.date_names.en.quarter, cfg.date_names.inv_local_quarter}, -- quarter date names
{cfg.date_names.en.season, cfg.date_names.inv_local_season}, -- season date nam
{cfg.date_names.en.named, cfg.date_names.inv_local_named}, -- named dates
}
local function is_xlateable (month) -- local function to get local date name that replaces existing English-language date name
for _, date_names_t in ipairs (sources_t) do -- for each sequence table in date_names_t
if date_names_t[1][month] then -- if date name is English month (long or short), quarter, season or named and
if date_names_t[2][date_names_t[1][month]] then -- if there is a matching local date name
return date_names_t[2][date_names_t[1][month]]; -- return the local date name
end
end
end
end
for param_name, param_val in pairs(date_parameters_list) do -- for each date-holding parameter in the list
if is_set(param_val.val) then -- if the parameter has a value
date = param_val.val;
for month in mw.ustring.gmatch (date, '[%a ]+') do -- iterate through all date names in the date (single date or date range)
month = mw.text.trim (month); -- this because quarterly dates contain whitespace
xlate = is_xlateable (month); -- get translate <month>; returns translation or nil
if xlate then
date = mw.ustring.gsub (date, month, xlate); -- replace the English with the translation
date_parameters_list[param_name].val = date; -- save the translated date
modified = true;
end
end
if xlt_dig then -- shall we also translate digits?
date = date:gsub ('%d', cfg.date_names.xlate_digits); -- translate digits from Western to 'local digits'
date_parameters_list[param_name].val = date; -- save the translated date
modified = true;
end
end
end
return modified;
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local imported functions table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)
add_prop_cat = utilities_page_ptr.add_prop_cat ; -- import functions from selected Module:Citation/CS1/Utilities module
is_set = utilities_page_ptr.is_set;
in_array = utilities_page_ptr.in_array;
set_message = utilities_page_ptr.set_message;
substitute = utilities_page_ptr.substitute;
wrap_style = utilities_page_ptr.wrap_style;
cfg = cfg_table_ptr; -- import tables from selected Module:Citation/CS1/Configuration
end
--[[--------------------------< A R C H I V E _ D A T E _ C H E C K >------------------------------------------
Compare value in |archive-date= with the timestamp in Wayback machine urls. Emits an error message with suggested
date from the |archive-url= timestamp in an appropriate format when the value in |archive-date= does not match
the timestamp.
this function never called when any date in a cs1|2 template has errors
error message suggests new |archive-date= value in an appropriate format specified by <df>. <df> is either
|df= or cfg.global_df in that order. If <df> is nil, suggested date has format from |archive-date=. There is
a caveat: when |df=dmy or |df=mdy, the reformatter leaves |access-date= and |archive-date= formats as they are.
The error message suggested date is passed to the formatter as YYYY-MM-DD so when |df=dmy or |df=mdy, the format
is not changed.
]]
local function archive_date_check (archive_date, archive_url_timestamp, df)
local archive_date_format = 'dmy-y'; -- holds the date format of date in |archive-date; default to ymd; 'dmy' used here to spoof reformat_dates()
for _, v_t in ipairs ({{'dMy', 'dmy-all'}, {'Mdy', 'mdy-all'}}) do -- is |archive-date= format dmy or mdy?
if archive_date:match (patterns_t[v_t[1]][1]) then -- does the pattern match?
archive_date_format = cfg.keywords_xlate[v_t[2]]; -- get appropriate |df= supported keyword from the i18n translator table
break;
end
end
local dates_t = {};
dates_t['archive-date'] = {val=archive_date, name=''}; -- setup to call reformat_dates(); never called when errors so <name> unset as not needed
reformat_dates (dates_t, 'dmy-y'); -- reformat |archive-date= to ymd; 'dmy' used here to spoof reformat_dates()
local archive_url_date = archive_url_timestamp:gsub ('(%d%d%d%d)(%d%d)(%d%d)%d*', '%1-%2-%3'); -- make ymd format date from timestamp
if dates_t['archive-date'].val == archive_url_date then -- are the two dates the same
return; -- yes, done
else
dates_t['archive-date'] = {val=archive_url_date, name=''}; -- setup to call reformat_dates() with the timestamp date
reformat_dates (dates_t, df or archive_date_format); -- reformat timestamp to format specified by <df> or format used in |archive-date=
archive_url_date = dates_t['archive-date'].val;
set_message ('err_archive_date_url_ts_mismatch', archive_url_date); -- emit an error message
end
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return { -- return exported functions
archive_date_check = archive_date_check,
date_hyphen_to_dash = date_hyphen_to_dash,
date_name_xlate = date_name_xlate,
dates = dates,
is_valid_date = is_valid_date,
reformat_dates = reformat_dates,
set_selected_modules = set_selected_modules,
year_check = year_check,
year_date_check = year_date_check,
hijri_and_gregorian_corresponded = hijri_and_gregorian_corresponded,
}
mqm21z3v22fsp1rj59dweobldza96tb
وحدة:Citation/CS1/Identifiers/شرح
828
63179
275403
2026-09-15T08:57:26Z
حبيشان
29714
استيراد من ar.wiktionary.org
275403
wikitext
text/x-wiki
{{استخدام واسع|+977874}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
hkn4rllwyhob56al93dvu23g3fcr591
وحدة:Citation/CS1/Identifiers/ملعب
828
63180
275404
2026-09-15T08:57:29Z
حبيشان
29714
استيراد من ar.wiktionary.org
275404
Scribunto
text/plain
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local has_accept_as_written, is_set, in_array, set_message, select_one, -- functions in Module:Citation/CS1/Utilities
substitute, make_wikilink;
local z; -- table of tables defined in Module:Citation/CS1/Utilities
local cfg; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
--[[--------------------------< P A G E S C O P E V A R I A B L E S >--------------------------------------
declare variables here that have page-wide scope that are not brought in from other modules; that are created here and used here
]]
local auto_link_urls = {}; -- holds identifier URLs for those identifiers that can auto-link |title=
--============================<< H E L P E R F U N C T I O N S >>============================================
--[[--------------------------< W I K I D A T A _ A R T I C L E _ N A M E _ G E T >----------------------------
as an aid to internationalizing identifier-label wikilinks, gets identifier article names from Wikidata.
returns w:<lang code>:<article title> when <q> has an <article title> for <lang code>; nil else. 'w:<lang code>'
ensures that sister project (like wiktionary) will link to the <lang code>.wikipedia article.
for identifiers that do not have <q>, returns nil
for wikis that do not have mw.wikibase installed, returns nil
]]
local function wikidata_article_name_get (q)
if not is_set (q) or (q and not mw.wikibase) then -- when no q number or when a q number but mw.wikibase not installed on this wiki
return nil; -- abandon
end
local wd_article;
local this_wiki_code = cfg.this_wiki_code; -- Wikipedia subdomain; 'en' for en.wikipedia.org
wd_article = mw.wikibase.getSitelink (q, this_wiki_code .. 'wiki'); -- fetch article title from WD; nil when no title available at this wiki
if wd_article then
wd_article = table.concat ({'w:', this_wiki_code, ':', wd_article}); -- interwiki-style link without brackets if taken from WD; leading 'w:' required
end
return wd_article; -- article title from WD; nil else
end
--[[--------------------------< L A B E L _ L I N K _ M A K E >------------------------------------------------
common function to create a link for an identifier label from handler table or from Wikidata
returns the first available of:
1. redirect from local wiki's handler table (if enabled)
2. Wikidata sitelink to the local language wikipedia article (if there is a Wikidata entry for this identifier in the local language)
3. link to wikipedia article specified in the local wiki's handler table
]]
local function label_link_make (handler)
local wd_article;
if not (cfg.use_identifier_redirects and is_set (handler.redirect)) then -- redirect has priority so if enabled and available don't fetch from Wikidata because expensive
wd_article = wikidata_article_name_get (handler.q); -- if Wikidata has an article title for this wiki, get it;
end
return (cfg.use_identifier_redirects and is_set (handler.redirect) and handler.redirect) or wd_article or handler.link;
end
--[[--------------------------< E X T E R N A L _ L I N K _ I D >----------------------------------------------
Formats a wiki-style external link
]]
local function external_link_id (options)
local url_string = options.id;
local ext_link;
local this_wiki_code = cfg.this_wiki_code; -- Wikipedia subdomain; 'en' for en.wikipedia.org
local wd_article; -- article title from Wikidata
if options.encode == true or options.encode == nil then
url_string = mw.uri.encode (url_string, 'PATH');
end
if options.auto_link and is_set (options.access) then
auto_link_urls[options.auto_link] = table.concat ({options.prefix, url_string, options.suffix});
end
ext_link = mw.ustring.format ('[%s%s%s %s]', options.prefix, url_string, options.suffix or "", mw.text.nowiki (options.id));
if is_set (options.access) then
ext_link = substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[options.access].class, cfg.presentation[options.access].title, ext_link}); -- add the free-to-read / paywall lock
end
return table.concat ({
make_wikilink (label_link_make (options), options.label), -- redirect, Wikidata link, or locally specified link (in that order)
options.separator or ' ',
ext_link
});
end
--[[--------------------------< I N T E R N A L _ L I N K _ I D >----------------------------------------------
Formats a wiki-style internal link
TODO: Does not currently need to support options.access, options.encode, auto-linking and COinS (as in external_link_id),
but may be needed in the future for :m:Interwiki_map custom-prefixes like :arxiv:, :bibcode:, :DOI:, :hdl:, :ISSN:,
:JSTOR:, :Openlibrary:, :PMID:, :RFC:.
]]
local function internal_link_id (options)
local id = mw.ustring.gsub (options.id, '%d', cfg.date_names.local_digits); -- translate 'local' digits to Western 0-9
return table.concat (
{
make_wikilink (label_link_make (options), options.label), -- wiki-link the identifier label
options.separator or ' ', -- add the separator
make_wikilink (
table.concat (
{
options.prefix,
id, -- translated to Western digits
options.suffix or ''
}),
substitute (cfg.presentation['bdi'], {'', mw.text.nowiki (options.id)}) -- bdi tags to prevent Latin script identifiers from being reversed at RTL language wikis
); -- nowiki because MediaWiki still has magic links for ISBN and the like; TODO: is it really required?
});
end
--[[--------------------------< I S _ E M B A R G O E D >------------------------------------------------------
Determines if a PMC identifier's online version is embargoed. Compares the date in |pmc-embargo-date= against
today's date. If embargo date is in the future, returns the content of |pmc-embargo-date=; otherwise, returns
an empty string because the embargo has expired or because |pmc-embargo-date= was not set in this cite.
]]
local function is_embargoed (embargo)
if is_set (embargo) then
local lang = mw.getContentLanguage();
local good1, embargo_date, todays_date;
good1, embargo_date = pcall (lang.formatDate, lang, 'U', embargo);
todays_date = lang:formatDate ('U');
if good1 then -- if embargo date is a good date
if tonumber (embargo_date) >= tonumber (todays_date) then -- is embargo date is in the future?
return embargo; -- still embargoed
else
set_message ('maint_pmc_embargo'); -- embargo has expired; add main cat
return ''; -- unset because embargo has expired
end
end
end
return ''; -- |pmc-embargo-date= not set return empty string
end
--[=[-------------------------< I S _ V A L I D _ R X I V _ D A T E >------------------------------------------
for biorxiv, returns true if:
2019-12-11T00:00Z <= biorxiv_date < today + 2 days
for medrxiv, returns true if:
2020-01-01T00:00Z <= medrxiv_date < today + 2 days
The dated form of biorxiv identifier has a start date of 2019-12-11. The Unix timestamp for that date is {{#time:U|2019-12-11}} = 1576022400
The medrxiv identifier has a start date of 2020-01-01. The Unix timestamp for that date is {{#time:U|2020-01-01}} = 1577836800
<rxiv_date> is the date provided in those |biorxiv= parameter values that are dated and in |medrxiv= parameter values at time 00:00:00 UTC
<today> is the current date at time 00:00:00 UTC plus 48 hours
if today's date is 2023-01-01T00:00:00 then
adding 24 hours gives 2023-01-02T00:00:00 – one second more than today
adding 24 hours gives 2023-01-03T00:00:00 – one second more than tomorrow
inputs:
<y>, <m>, <d> – year, month, day parts of the date from the birxiv or medrxiv identifier
<select> 'b' for biorxiv, 'm' for medrxiv; defaults to 'b'
]=]
local function is_valid_rxiv_date (y, m, d, select)
if 0 == tonumber (m) and 12 < tonumber (m) then -- <m> must be a number 1–12
return false;
end
if 0 == tonumber (d) and 31 < tonumber (d) then -- <d> must be a number 1–31; TODO: account for month length and leap yer?
return false;
end
local rxiv_date = table.concat ({y, m, d}, '-'); -- make ymd date string
local good1, good2;
local rxiv_ts, tomorrow_ts; -- to hold Unix timestamps representing the dates
local lang_object = mw.getContentLanguage();
good1, rxiv_ts = pcall (lang_object.formatDate, lang_object, 'U', rxiv_date); -- convert rxiv_date value to Unix timestamp
good2, tomorrow_ts = pcall (lang_object.formatDate, lang_object, 'U', 'today + 2 days' ); -- today midnight + 2 days is one second more than all day tomorrow
if good1 and good2 then -- lang.formatDate() returns a timestamp in the local script which tonumber() may not understand
rxiv_ts = tonumber (rxiv_ts) or lang_object:parseFormattedNumber (rxiv_ts); -- convert to numbers for the comparison;
tomorrow_ts = tonumber (tomorrow_ts) or lang_object:parseFormattedNumber (tomorrow_ts);
else
return false; -- one or both failed to convert to Unix timestamp
end
local limit_ts = ((select and ('m' == select)) and 1577836800) or 1576022400; -- choose the appropriate limit timesatmp
return ((limit_ts <= rxiv_ts) and (rxiv_ts < tomorrow_ts)) -- limit_ts <= rxiv_date < tomorrow's date
end
--[[--------------------------< IS _ V A L I D _ I S X N >-----------------------------------------------------
ISBN-10 and ISSN validator code calculates checksum across all ISBN/ISSN digits including the check digit.
ISBN-13 is checked in isbn().
If the number is valid the result will be 0. Before calling this function, ISBN/ISSN must be checked for length
and stripped of dashes, spaces and other non-ISxN characters.
]]
local function is_valid_isxn (isxn_str, len)
local temp = 0;
isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values '0' → 0x30 .. '9' → 0x39, 'X' → 0x58
len = len + 1; -- adjust to be a loop counter
for i, v in ipairs (isxn_str) do -- loop through all of the bytes and calculate the checksum
if v == string.byte ("X" ) then -- if checkdigit is X (compares the byte value of 'X' which is 0x58)
temp = temp + 10 * (len - i); -- it represents 10 decimal
else
temp = temp + tonumber (string.char (v) )*(len-i);
end
end
return temp % 11 == 0; -- returns true if calculation result is zero
end
--[[--------------------------< IS _ V A L I D _ I S X N _ 1 3 >-----------------------------------------------
ISBN-13 and ISMN validator code calculates checksum across all 13 ISBN/ISMN digits including the check digit.
If the number is valid, the result will be 0. Before calling this function, ISBN-13/ISMN must be checked for length
and stripped of dashes, spaces and other non-ISxN-13 characters.
]]
local function is_valid_isxn_13 (isxn_str)
local temp=0;
isxn_str = { isxn_str:byte(1, 13) }; -- make a table of byte values '0' → 0x30 .. '9' → 0x39
for i, v in ipairs (isxn_str) do
temp = temp + (3 - 2*(i % 2)) * tonumber (string.char (v) ); -- multiply odd index digits by 1, even index digits by 3 and sum; includes check digit
end
return temp % 10 == 0; -- sum modulo 10 is zero when ISBN-13/ISMN is correct
end
--[[--------------------------< N O R M A L I Z E _ L C C N >--------------------------------------------------
LCCN normalization (https://www.loc.gov/marc/lccn-namespace.html#normalization)
1. Remove all blanks.
2. If there is a forward slash (/) in the string, remove it, and remove all characters to the right of the forward slash.
3. If there is a hyphen in the string:
a. Remove it.
b. Inspect the substring following (to the right of) the (removed) hyphen. Then (and assuming that steps 1 and 2 have been carried out):
1. All these characters should be digits, and there should be six or less. (not done in this function)
2. If the length of the substring is less than 6, left-fill the substring with zeroes until the length is six.
Returns a normalized LCCN for lccn() to validate. There is no error checking (step 3.b.1) performed in this function.
]]
local function normalize_lccn (lccn)
lccn = lccn:gsub ("%s", ""); -- 1. strip whitespace
if nil ~= string.find (lccn, '/') then
lccn = lccn:match ("(.-)/"); -- 2. remove forward slash and all character to the right of it
end
local prefix
local suffix
prefix, suffix = lccn:match ("(.+)%-(.+)"); -- 3.a remove hyphen by splitting the string into prefix and suffix
if nil ~= suffix then -- if there was a hyphen
suffix = string.rep("0", 6-string.len (suffix)) .. suffix; -- 3.b.2 left fill the suffix with 0s if suffix length less than 6
lccn = prefix..suffix; -- reassemble the LCCN
end
return lccn;
end
--============================<< I D E N T I F I E R F U N C T I O N S >>====================================
--[[--------------------------< A R X I V >--------------------------------------------------------------------
See: https://arxiv.org/help/arxiv_identifier
format and error check arXiv identifier. There are three valid forms of the identifier:
the first form, valid only between date codes 9107 and 0703, is:
arXiv:<archive>.<class>/<date code><number><version>
where:
<archive> is a string of alpha characters - may be hyphenated; no other punctuation
<class> is a string of alpha characters - may be hyphenated; no other punctuation; not the same as |class= parameter which is not supported in this form
<date code> is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01
first digit of YY for this form can only 9 and 0
<number> is a three-digit number
<version> is a 1 or more digit number preceded with a lowercase v; no spaces (undocumented)
the second form, valid from April 2007 through December 2014 is:
arXiv:<date code>.<number><version>
where:
<date code> is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01
<number> is a four-digit number
<version> is a 1 or more digit number preceded with a lowercase v; no spaces
the third form, valid from January 2015 is:
arXiv:<date code>.<number><version>
where:
<date code> and <version> are as defined for 0704-1412
<number> is a five-digit number
]]
local function arxiv (options)
local id = options.id;
local class = options.Class; -- TODO: lowercase?
local handler = options.handler;
local year, month, version;
local err_msg = false; -- assume no error message
local text; -- output text
if id:match("^%a[%a%.%-]+/[90]%d[01]%d%d%d%d$") or id:match("^%a[%a%.%-]+/[90]%d[01]%d%d%d%dv%d+$") then -- test for the 9107-0703 format with or without version
year, month = id:match("^%a[%a%.%-]+/([90]%d)([01]%d)%d%d%d[v%d]*$");
year = tonumber (year);
month = tonumber (month);
if ((not (90 < year or 8 > year)) or (1 > month or 12 < month)) or -- if invalid year or invalid month
((91 == year and 7 > month) or (7 == year and 3 < month)) then -- if years ok, are starting and ending months ok?
err_msg = true; -- flag for error message
end
elseif id:match("^%d%d[01]%d%.%d%d%d%d$") or id:match("^%d%d[01]%d%.%d%d%d%dv%d+$") then -- test for the 0704-1412 with or without version
year, month = id:match("^(%d%d)([01]%d)%.%d%d%d%d[v%d]*$");
year = tonumber (year);
month = tonumber (month);
if ((7 > year) or (14 < year) or (1 > month or 12 < month)) or -- is year invalid or is month invalid? (doesn't test for future years)
((7 == year) and (4 > month)) then -- when year is 07, is month invalid (before April)?
err_msg = true; -- flag for error message
end
elseif id:match("^%d%d[01]%d%.%d%d%d%d%d$") or id:match("^%d%d[01]%d%.%d%d%d%d%dv%d+$") then -- test for the 1501- format with or without version
year, month = id:match("^(%d%d)([01]%d)%.%d%d%d%d%d[v%d]*$");
year = tonumber (year);
month = tonumber (month);
if ((15 > year) or (1 > month or 12 < month)) then -- is year invalid or is month invalid? (doesn't test for future years)
err_msg = true; -- flag for error message
end
else
err_msg = true; -- not a recognized format; flag for error message
end
if err_msg then
options.coins_list_t['ARXIV'] = nil; -- when error, unset so not included in COinS
end
local err_msg_t = {};
if err_msg then
set_message ('err_bad_arxiv');
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = handler.access});
if is_set (class) then
if id:match ('^%d+') then
text = table.concat ({text, ' [[https://arxiv.org/archive/', class, ' ', class, ']]'}); -- external link within square brackets, not wikilink
else
set_message ('err_class_ignored');
end
else -- class not set
if id:match ('^%d+') and options.CitationClass == 'arxiv' then -- new (post 2007) format; {{cite arxiv}} only
set_message ('maint_missing_class'); -- add maint cat
end
end
return text;
end
--[[--------------------------< B I B C O D E >--------------------------------------------------------------------
Validates (sort of) and formats a bibcode ID.
Format for bibcodes is specified here: https://adsabs.harvard.edu/abs_doc/help_pages/data.html#bibcodes
But, this: 2015arXiv151206696F is apparently valid so apparently, the only things that really matter are length, 19 characters
and first four digits must be a year. This function makes these tests:
length must be 19 characters
characters in position
1–4 must be digits and must represent a year in the range of 1000 – next year
5 must be a letter
6–8 must be letter, digit, ampersand, or dot (ampersand cannot directly precede a dot; &. )
9–18 must be letter, digit, or dot
19 must be a letter or dot
]]
local function bibcode (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local ignore_invalid = options.accept;
local err_type;
local err_msg = '';
local year;
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode,
access = access});
if 19 ~= id:len() then
err_type = cfg.err_msg_supl.length;
else
year = id:match ("^(%d%d%d%d)[%a][%w&%.][%w&%.][%w&%.][%w.]+[%a%.]$");
if not year then -- if nil then no pattern match
err_type = cfg.err_msg_supl.value; -- so value error
else
local next_year = tonumber (os.date ('%Y')) + 1; -- get the current year as a number and add one for next year
year = tonumber (year); -- convert year portion of bibcode to a number
if (1000 > year) or (year > next_year) then
err_type = cfg.err_msg_supl.year; -- year out of bounds
end
if id:find('&%.') then
err_type = cfg.err_msg_supl.journal; -- journal abbreviation must not have '&.' (if it does it's missing a letter)
end
if id:match ('.........%.tmp%.') then -- temporary bibcodes when positions 10–14 are '.tmp.'
set_message ('maint_bibcode');
end
end
end
if is_set (err_type) and not ignore_invalid then -- if there was an error detected and accept-as-written markup not used
set_message ('err_bad_bibcode', {err_type});
options.coins_list_t['BIBCODE'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< B I O R X I V >-----------------------------------------------------------------
Format bioRxiv ID and do simple error checking. Before 2019-12-11, biorXiv IDs were 10.1101/ followed by exactly
6 digits. After 2019-12-11, biorXiv IDs retained the six-digit identifier but prefixed that with a yyyy.mm.dd.
date and suffixed with an optional version identifier.
From December 2025 biorxiv added a new 'doi' prefix: 10.64898:
10.64898/2025.12.10.693067
The bioRxiv ID is the string of characters:
https://doi.org/10.1101/078733 -> 10.1101/078733
or a date followed by a six-digit number followed by an optional version indicator 'v' and one or more digits:
https://www.biorxiv.org/content/10.1101/2019.12.11.123456v2 -> 10.1101/2019.12.11.123456v2
see https://www.biorxiv.org/about-biorxiv
]]
local function biorxiv (options)
local id = options.id;
local handler = options.handler;
local err_msg = true; -- flag; assume that there will be an error
local patterns = {
'^10%.1101/%d%d%d%d%d%d$', -- simple 6-digit identifier (before 2019-12-11)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%dv%d+$', -- y.m.d. date + 6-digit identifier + version (after 2019-12-11)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d$', -- y.m.d. date + 6-digit identifier (after 2019-12-11)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%dv%d+$', -- y.m.d. date + 6-digit identifier + version (from December 2025)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d$', -- y.m.d. date + 6-digit identifier (from December 2025)
}
for _, pattern in ipairs (patterns) do -- spin through the patterns looking for a match
if id:match (pattern) then
local y, m, d = id:match (pattern); -- found a match, attempt to get year, month and date from the identifier
if m then -- m is nil when id is the six-digit form
if not is_valid_rxiv_date (y, m, d, 'b') then -- validate the encoded date; 'b' for biorxiv limit
break; -- date fail; break out early so we don't unset the error message
end
end
err_msg = nil; -- we found a match so unset the error message
break; -- and done
end
end -- err_cat remains set here when no match
if err_msg then
options.coins_list_t['BIORXIV'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_biorxiv'); -- and set the error message
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator,
encode = handler.encode, access = handler.access});
end
--[[--------------------------< C I T E S E E R X >------------------------------------------------------------
CiteSeerX use their own notion of "doi" (not to be confused with the identifiers resolved via doi.org).
The description of the structure of this identifier can be found at Help_talk:Citation_Style_1/Archive_26#CiteSeerX_id_structure
]]
local function citeseerx (options)
local id = options.id;
local handler = options.handler;
local matched;
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode,
access = handler.access});
matched = id:match ("^10%.1%.1%.[1-9]%d?%d?%d?%.[1-9]%d?%d?%d?$");
if not matched then
set_message ('err_bad_citeseerx' );
options.coins_list_t['CITESEERX'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< D O I >------------------------------------------------------------------------
Formats a DOI and checks for DOI errors.
DOI names contain two parts: prefix and suffix separated by a forward slash.
Prefix: directory indicator '10.' followed by a registrant code
Suffix: character string of any length chosen by the registrant
This function checks a DOI name for: prefix/suffix. If the DOI name contains spaces or endashes, or, if it ends
with a period or a comma, this function will emit a bad_doi error message.
DOI names are case-insensitive and can incorporate any printable Unicode characters so the test for spaces, endash,
and terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely
if ever used in DOI names.
https://www.doi.org/doi_handbook/2_Numbering.html -- 2.2 Syntax of a DOI name
https://www.doi.org/doi_handbook/2_Numbering.html#2.2.2 -- 2.2.2 DOI prefix
]]
local function doi (options)
local id = options.id;
local inactive = options.DoiBroken
local access = options.access;
local ignore_invalid = options.accept;
local handler = options.handler;
local err_flag;
local function is_extended_free (registrant, suffix) -- local function to check those few registrants that are mixed; identifiable by the doi suffix <incipit>
suffix = suffix:lower(); -- ascii [a-z] same as [A-Z] in doi names; see §3.4.4 Case Insensitivity of the Doi Name
if cfg.extended_registrants_t[registrant] then -- if this registrant has known free-to-read extentions
for _, incipit in ipairs (cfg.extended_registrants_t[registrant]) do -- loop through the registrant's incipits
if mw.ustring.find (suffix, '^' .. incipit:lower()) then -- ascii [a-z] same as [A-Z] in doi names
return true; -- if foundm done
end
end
end
end
local text;
if is_set (inactive) then
local inactive_year = inactive:match("%d%d%d%d"); -- try to get the year portion from the inactive date
local inactive_month, good;
if is_set (inactive_year) then
if 4 < inactive:len() then -- inactive date has more than just a year (could be anything)
local lang_obj = mw.getContentLanguage(); -- get a language object for this wiki
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, 'F', inactive); -- try to get the month name from the inactive date
if not good then
inactive_month = nil; -- something went wrong so make sure this is unset
end
end
end -- otherwise, |doi-broken-date= has something but it isn't a date
if is_set (inactive_year) and is_set (inactive_month) then
set_message ('maint_doi_inactive_dated', {inactive_year, inactive_month, ' '});
elseif is_set (inactive_year) then
set_message ('maint_doi_inactive_dated', {inactive_year, '', ''});
else
set_message ('maint_doi_inactive');
end
inactive = substitute (cfg.messages['inactive'], inactive );
end
local suffix;
local registrant, suffix = mw.ustring.match (id, '^10%.([^/]+)/([^%s–]-[^%.,])$'); -- registrant and suffix set when DOI has the proper basic form; both nil else
local registrant_err_patterns = { -- these patterns are for code ranges that are not supported
'^[^1-3]%d%d%d%d%.%d+$', -- 5 digits with subcode (reject 0xxxx, 40000+); accepts: 10000–39999
'^[^1-8]%d%d%d%d$', -- 5 digits without subcode (reject 0xxxx, 90000+); accepts: 10000–89999
'^[^1-9]%d%d%d%.%d+$', -- 4 digits with subcode (reject 0xxx); accepts: 1000–9999
'^[^1-9]%d%d%d$', -- 4 digits without subcode (reject 0xxx); accepts: 1000–9999
'^%d%d%d%d%d%d+', -- 6 or more digits
'^%d%d?%d?$', -- less than 4 digits without subcode (3 digits with subcode is legitimate)
'^%d%d?%.[%d%.]+', -- 1 or 2 digits with subcode
'^5555$', -- test registrant will never resolve
'[^%d%.]', -- any character that isn't a digit or a dot
}
if not ignore_invalid then
if registrant then -- when DOI has proper form
for i, pattern in ipairs (registrant_err_patterns) do -- spin through error patterns
if registrant:match (pattern) then -- to validate registrant codes
err_flag = set_message ('err_bad_doi'); -- when found, mark this DOI as bad
break; -- and done
end
end
else
err_flag = set_message ('err_bad_doi'); -- invalid directory or malformed
end
else
set_message ('maint_doi_ignore');
end
if err_flag then
options.coins_list_t['DOI'] = nil; -- when error, unset so not included in COinS
else -- here when doi has no errors or has been wrapped in accept-as-written markup
suffix = mw.ustring.match (id, '^10%.[^/]+/(.+)'); -- refetch suffix because doi may have been wrapped in accept-as-written markup
if not access and (cfg.known_free_doi_registrants_t[registrant] or is_extended_free (registrant, suffix)) then -- |doi-access=free not set and <registrant> is known to be free
set_message ('maint_doi_unflagged_free'); -- set a maint cat
end
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access,
auto_link = not (err_flag or is_set (inactive) or ignore_invalid) and 'doi' or nil -- do not auto-link when |doi-broken-date= has a value or when there is a DOI error or (to play it safe, after all, auto-linking is not essential) when invalid DOIs are ignored
}) .. (inactive or '');
return text;
end
--[[--------------------------< H D L >------------------------------------------------------------------------
Formats an HDL with minor error checking.
HDL names contain two parts: prefix and suffix separated by a forward slash.
Prefix: character string using any character in the UCS-2 character set except '/'
Suffix: character string of any length using any character in the UCS-2 character set chosen by the registrant
This function checks a HDL name for: prefix/suffix. If the HDL name contains spaces, endashes, or, if it ends
with a period or a comma, this function will emit a bad_hdl error message.
HDL names are case-insensitive and can incorporate any printable Unicode characters so the test for endashes and
terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely
if ever used in HDLs.
Query string parameters are named here: https://www.handle.net/proxy_servlet.html. query strings are not displayed
but since '?' is an allowed character in an HDL, '?' followed by one of the query parameters is the only way we
have to detect the query string so that it isn't URL-encoded with the rest of the identifier.
]]
local function hdl (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local query_params = { -- list of known query parameters from https://www.handle.net/proxy_servlet.html
'noredirect',
'ignore_aliases',
'auth',
'cert',
'index',
'type',
'urlappend',
'locatt',
'action',
}
local hdl, suffix, param = id:match ('(.-)(%?(%a+).+)$'); -- look for query string
local found;
if hdl then -- when there are query strings, this is the handle identifier portion
for _, q in ipairs (query_params) do -- spin through the list of query parameters
if param:match ('^' .. q) then -- if the query string begins with one of the parameters
found = true; -- announce a find
break; -- and stop looking
end
end
end
if found then
id = hdl; -- found so replace id with the handle portion; this will be URL-encoded, suffix will not
else
suffix = ''; -- make sure suffix is empty string for concatenation else
end
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, suffix = suffix, separator = handler.separator, encode = handler.encode, access = access})
if nil == id:match("^[^%s–]-/[^%s–]-[^%.,]$") then -- HDL must contain a forward slash, must not contain spaces, endashes, and must not end with period or comma
set_message ('err_bad_hdl' );
options.coins_list_t['HDL'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< I S B N >----------------------------------------------------------------------
Determines whether an ISBN string is valid
]]
local function isbn (options_t)
local isbn_str = options_t.id;
local ignore_invalid = options_t.accept;
local handler = options_t.handler;
local year = options_t.Year; -- when set, valid anchor_year; may have a disambiguator which must be removed
local function return_result (check, err_type) -- local function to handle the various returns
local ISBN = internal_link_id ({link = handler.link, label = handler.label, redirect = handler.redirect,
prefix = handler.prefix, id = isbn_str, separator = handler.separator});
if ignore_invalid then -- if ignoring ISBN errors
set_message ('maint_isbn_ignore'); -- add a maint category even when there is no error
else -- here when not ignoring
if not check then -- and there is an error
options_t.coins_list_t['ISBN'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_isbn', err_type); -- set an error message
return ISBN; -- return id text
end
end
return ISBN; -- return id text
end
if year and not ignore_invalid then --
year = year:match ('%d%d%d%d?'); -- strip disambiguator if present
if year and (1965 > tonumber(year)) then -- <year> will be nil here when |year=n.d. or |year=nd
set_message ('err_invalid_isbn_date'); -- set an error message
return internal_link_id ({link = handler.link, label = handler.label, redirect = handler.redirect,
prefix = handler.prefix, id = isbn_str, separator = handler.separator});
end
end
if nil ~= isbn_str:match ('[^%s-0-9X]') then
return return_result (false, cfg.err_msg_supl.char); -- fail if isbn_str contains anything but digits, hyphens, or the uppercase X
end
local id = isbn_str:gsub ('[%s-]', ''); -- remove hyphens and whitespace
local len = id:len();
if len ~= 10 and len ~= 13 then
return return_result (false, cfg.err_msg_supl.length); -- fail if incorrect length
end
if len == 10 then
if id:match ('^%d*X?$') == nil then -- fail if isbn_str has 'X' anywhere but last position
return return_result (false, cfg.err_msg_supl.form);
end
if not is_valid_isxn (id, 10) then -- test isbn-10 for numerical validity
return return_result (false, cfg.err_msg_supl.check); -- fail if isbn-10 is not numerically valid
end
if id:find ('^63[01]') then -- 630xxxxxxx and 631xxxxxxx are (apparently) not valid isbn group ids but are used by amazon as numeric identifiers (asin)
return return_result (false, cfg.err_msg_supl.group); -- fail if isbn-10 begins with 630/1
end
return return_result (true, cfg.err_msg_supl.check); -- pass if isbn-10 is numerically valid
else
if id:match ('^%d+$') == nil then
return return_result (false, cfg.err_msg_supl.char); -- fail if ISBN-13 is not all digits
end
if id:match ('^97[89]%d*$') == nil then
return return_result (false, cfg.err_msg_supl.prefix); -- fail when ISBN-13 does not begin with 978 or 979
end
if id:match ('^9790') then
return return_result (false, cfg.err_msg_supl.group); -- group identifier '0' is reserved to ISMN
end
return return_result (is_valid_isxn_13 (id), cfg.err_msg_supl.check);
end
end
--[[--------------------------< A S I N >----------------------------------------------------------------------
Formats a link to Amazon. Do simple error checking: ASIN must be mix of 10 numeric or uppercase alpha
characters. If a mix, first character must be uppercase alpha; if all numeric, ASINs must be 10-digit
ISBN. If 10-digit ISBN, add a maintenance category so a bot or AWB script can replace |asin= with |isbn=.
Error message if not 10 characters, if not ISBN-10, if mixed and first character is a digit.
|asin=630....... and |asin=631....... are (apparently) not a legitimate ISBN though it checksums as one; these
do not cause this function to emit the maint_asin message
This function is positioned here because it calls isbn()
]]
local function asin (options)
local id = options.id;
local domain = options.ASINTLD;
local err_flag;
if not id:match("^[%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u]$") then
err_flag = set_message ('err_bad_asin'); -- ASIN is not a mix of 10 uppercase alpha and numeric characters
else
if id:match("^%d%d%d%d%d%d%d%d%d[%dX]$") then -- if 10-digit numeric (or 9 digits with terminal X)
if is_valid_isxn (id, 10) then -- see if ASIN value is or validates as ISBN-10
elseif not id:find ('^63[01]') then -- 630xxxxxxx and 631xxxxxxx are (apparently) not a valid isbn prefixes but are used by amazon as a numeric identifier
err_flag = set_message ('err_bad_asin'); -- ASIN has ISBN-10 form but begins with something other than 630/1 so probably an isbn
elseif not is_set (err_flag) then
err_flag = set_message ('err_bad_asin'); -- ASIN is not ISBN-10
end
elseif not id:match("^%u[%d%u]+$") then
err_flag = set_message ('err_bad_asin'); -- asin doesn't begin with uppercase alpha
end
end
if (not is_set (domain)) or in_array (domain, {'us'}) then -- default: United States
domain = "com";
elseif in_array (domain, {'jp', 'uk'}) then -- Japan, United Kingdom
domain = "co." .. domain;
elseif in_array (domain, {'z.cn'}) then -- China
domain = "cn";
elseif in_array (domain, {'au', 'br', 'mx', 'sg', 'tr'}) then -- Australia, Brazil, Mexico, Singapore, Turkey
domain = "com." .. domain;
elseif not in_array (domain, {'ae', 'ca', 'cn', 'de', 'es', 'fr', 'in', 'it', 'nl', 'pl', 'sa', 'se', 'co.jp', 'co.uk', 'com', 'com.au', 'com.br', 'com.mx', 'com.sg', 'com.tr'}) then -- Arabic Emirates, Canada, China, Germany, Spain, France, Indonesia, Italy, Netherlands, Poland, Saudi Arabia, Sweden (as of 2021-03 Austria (.at), Liechtenstein (.li) and Switzerland (.ch) still redirect to the German site (.de) with special settings, so don't maintain local ASINs for them)
err_flag = set_message ('err_bad_asin_tld'); -- unsupported asin-tld value
end
local handler = options.handler;
if not is_set (err_flag) then
options.coins_list_t['ASIN'] = handler.prefix .. domain .. "/dp/" .. id; -- asin for coins
else
options.coins_list_t['ASIN'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix .. domain .. "/dp/",
id = id, encode = handler.encode, separator = handler.separator})
end
--[[--------------------------< I S M N >----------------------------------------------------------------------
Determines whether an ISMN string is valid. Similar to ISBN-13, ISMN is 13 digits beginning 979-0-... and uses the
same check digit calculations. See https://www.ismn-international.org/download/Web_ISMN_Users_Manual_2008-6.pdf
section 2, pages 9–12.
ismn value not made part of COinS metadata because we don't have a url or isn't a COinS-defined identifier (rft.xxx)
or an identifier registered at info-uri.info (info:)
]]
local function ismn (options)
local id = options.id;
local handler = options.handler;
local text;
local valid_ismn = true;
local id_copy;
id_copy = id; -- save a copy because this testing is destructive
id = id:gsub ('[%s-]', ''); -- remove hyphens and white space
if 13 ~= id:len() or id:match ("^9790%d*$" ) == nil then -- ISMN must be 13 digits and begin with 9790
valid_ismn = false;
else
valid_ismn=is_valid_isxn_13 (id); -- validate ISMN
end
-- text = internal_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect, -- use this (or external version) when there is some place to link to
-- prefix = handler.prefix, id = id_copy, separator = handler.separator, encode = handler.encode})
text = table.concat ( -- because no place to link to yet
{
make_wikilink (label_link_make (handler), handler.label),
handler.separator,
id_copy
});
if false == valid_ismn then
options.coins_list_t['ISMN'] = nil; -- when error, unset so not included in COinS; not really necessary here because ismn not made part of COinS
set_message ('err_bad_ismn'); -- create an error message if the ISMN is invalid
end
return text;
end
--[[--------------------------< I S S N >----------------------------------------------------------------------
Validate and format an ISSN. This code fixes the case where an editor has included an ISSN in the citation but
has separated the two groups of four digits with a space. When that condition occurred, the resulting link looked
like this:
|issn=0819 4327 gives: [https://www.worldcat.org/issn/0819 4327 0819 4327] -- can't have spaces in an external link
This code now prevents that by inserting a hyphen at the ISSN midpoint. It also validates the ISSN for length
and makes sure that the checkdigit agrees with the calculated value. Incorrect length (8 digits), characters
other than 0-9 and X, or checkdigit / calculated value mismatch will all cause a check ISSN error message. The
ISSN is always displayed with a hyphen, even if the ISSN was given as a single group of 8 digits.
]]
local function issn (options)
local id = options.id;
local handler = options.handler;
local ignore_invalid = options.accept;
local issn_copy = id; -- save a copy of unadulterated ISSN; use this version for display if ISSN does not validate
local text;
local valid_issn = true;
id = id:gsub ('[%s-]', ''); -- remove hyphens and whitespace
if 8 ~= id:len() or nil == id:match ("^%d*X?$" ) then -- validate the ISSN: 8 digits long, containing only 0-9 or X in the last position
valid_issn = false; -- wrong length or improper character
else
valid_issn = is_valid_isxn (id, 8); -- validate ISSN
end
if true == valid_issn then
id = string.sub (id, 1, 4 ) .. "-" .. string.sub (id, 5 ); -- if valid, display correctly formatted version
else
id = issn_copy; -- if not valid, show the invalid ISSN with error message
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode})
if ignore_invalid then
set_message ('maint_issn_ignore');
else
if false == valid_issn then
options.coins_list_t['ISSN'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_issn', (options.hkey == 'EISSN') and 'e' or ''); -- create an error message if the ISSN is invalid
end
end
return text;
end
--[[--------------------------< J F M >-----------------------------------------------------------------------
A numerical identifier in the form nn.nnnn.nn
]]
local function jfm (options)
local id = options.id;
local handler = options.handler;
local id_num;
id_num = id:match ('^[Jj][Ff][Mm](.*)$'); -- identifier with jfm prefix; extract identifier
if is_set (id_num) then
set_message ('maint_jfm_format');
else -- plain number without JFM prefix
id_num = id; -- if here id does not have prefix
end
if id_num and id_num:match('^%d%d%.%d%d%d%d%.%d%d$') then
id = id_num; -- jfm matches pattern
else
set_message ('err_bad_jfm' ); -- set an error message
options.coins_list_t['JFM'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< J S T O R >--------------------------------------------------------------------
Format a JSTOR with some error checking
]]
local function jstor (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
if id:find ('[Jj][Ss][Tt][Oo][Rr]') or id:find ('^https?://') or id:find ('%s') then
set_message ('err_bad_jstor'); -- set an error message
options.coins_list_t['JSTOR'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access});
end
--[[--------------------------< L C C N >----------------------------------------------------------------------
Format LCCN link and do simple error checking. LCCN is a character string 8-12 characters long. The length of
the LCCN dictates the character type of the first 1-3 characters; the rightmost eight are always digits.
https://oclc-research.github.io/infoURI-Frozen/info-uri.info/info:lccn/reg.html
length = 8 then all digits
length = 9 then lccn[1] is lowercase alpha
length = 10 then lccn[1] and lccn[2] are both lowercase alpha or both digits
length = 11 then lccn[1] is lower case alpha, lccn[2] and lccn[3] are both lowercase alpha or both digits
length = 12 then lccn[1] and lccn[2] are both lowercase alpha
]]
local function lccn (options)
local lccn = options.id;
local handler = options.handler;
local err_flag; -- presume that LCCN is valid
local id = lccn; -- local copy of the LCCN
id = normalize_lccn (id); -- get canonical form (no whitespace, hyphens, forward slashes)
local len = id:len(); -- get the length of the LCCN
if 8 == len then
if id:match("[^%d]") then -- if LCCN has anything but digits (nil if only digits)
err_flag = set_message ('err_bad_lccn'); -- set an error message
end
elseif 9 == len then -- LCCN should be adddddddd
if nil == id:match("%l%d%d%d%d%d%d%d%d") then -- does it match our pattern?
err_flag = set_message ('err_bad_lccn'); -- set an error message
end
elseif 10 == len then -- LCCN should be aadddddddd or dddddddddd
if id:match("[^%d]") then -- if LCCN has anything but digits (nil if only digits) ...
if nil == id:match("^%l%l%d%d%d%d%d%d%d%d") then -- ... see if it matches our pattern
err_flag = set_message ('err_bad_lccn'); -- no match, set an error message
end
end
elseif 11 == len then -- LCCN should be aaadddddddd or adddddddddd
if not (id:match("^%l%l%l%d%d%d%d%d%d%d%d") or id:match("^%l%d%d%d%d%d%d%d%d%d%d")) then -- see if it matches one of our patterns
err_flag = set_message ('err_bad_lccn'); -- no match, set an error message
end
elseif 12 == len then -- LCCN should be aadddddddddd
if not id:match("^%l%l%d%d%d%d%d%d%d%d%d%d") then -- see if it matches our pattern
err_flag = set_message ('err_bad_lccn'); -- no match, set an error message
end
else
err_flag = set_message ('err_bad_lccn'); -- wrong length, set an error message
end
if not is_set (err_flag) and nil ~= lccn:find ('%s') then
err_flag = set_message ('err_bad_lccn'); -- lccn contains a space, set an error message
end
if is_set (err_flag) then
options.coins_list_t['LCCN'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = lccn, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< M E D R X I V >-----------------------------------------------------------------
Format medRxiv ID and do simple error checking. Similar to later bioRxiv IDs, medRxiv IDs are prefixed with a
yyyy.mm.dd. date and suffixed with an optional version identifier. Ealiest date accepted is 2020.01.01
The medRxiv ID is a date followed by an eight-digit number followed by an optional version indicator 'v' and one or more digits:
https://www.medrxiv.org/content/10.1101/2020.11.16.20232009v2 -> 10.1101/2020.11.16.20232009v2
]]
local function medrxiv (options)
local id = options.id;
local handler = options.handler;
local err_msg_flag = true; -- flag; assume that there will be an error
local patterns = {
'^%d%d%d%d%d%d%d%d$', -- simple 8-digit identifier; these should be relatively rare
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%dv%d+$', -- y.m.d. date + 8-digit identifier + version (2020-01-01 and later)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%d$', -- y.m.d. date + 8-digit identifier (2020-01-01 and later)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%dv%d+$', -- y.m.d. date + 8-digit identifier + version (2025-12-01 and later)
'^10%.64898/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%d$', -- y.m.d. date + 8-digit identifier (2025-12-01 and later)
}
for _, pattern in ipairs (patterns) do -- spin through the patterns looking for a match
if id:match (pattern) then
local y, m, d = id:match (pattern); -- found a match, attempt to get year, month and date from the identifier
if m then -- m is nil when id is the 8-digit form
if not is_valid_rxiv_date (y, m, d, 'b') then -- validate the encoded date; 'b' for medrxiv limit
break; -- date fail; break out early so we don't unset the error message
end
end
err_msg_flag = nil; -- we found a match so unset the error message
break; -- and done
end
end -- <err_msg_flag> remains set here when no match
if err_msg_flag then
options.coins_list_t['MEDRXIV'] = nil; -- when error, unset so not included in COinS
set_message ('err_bad_medrxiv'); -- and set the error message
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator,
encode = handler.encode, access = handler.access});
end
--[[--------------------------< M R >--------------------------------------------------------------------------
A seven digit number; if not seven digits, zero-fill leading digits to make seven digits.
]]
local function mr (options)
local id = options.id;
local handler = options.handler;
local id_num;
local id_len;
id_num = id:match ('^[Mm][Rr](%d+)$'); -- identifier with mr prefix
if is_set (id_num) then
set_message ('maint_mr_format'); -- add maint cat
else -- plain number without mr prefix
id_num = id:match ('^%d+$'); -- if here id is all digits
end
id_len = id_num and id_num:len() or 0;
if (7 >= id_len) and (0 ~= id_len) then
id = string.rep ('0', 7-id_len) .. id_num; -- zero-fill leading digits
else
set_message ('err_bad_mr'); -- set an error message
options.coins_list_t['MR'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< O C L C >----------------------------------------------------------------------
Validate and format an OCLC ID. https://www.oclc.org/batchload/controlnumber.en.html {{dead link}}
archived at: https://web.archive.org/web/20161228233804/https://www.oclc.org/batchload/controlnumber.en.html
]]
local function oclc (options)
local id = options.id;
local handler = options.handler;
local number;
if id:match('^ocm%d%d%d%d%d%d%d%d$') then -- ocm prefix and 8 digits; 001 field (12 characters)
number = id:match('ocm(%d+)'); -- get the number
elseif id:match('^ocn%d%d%d%d%d%d%d%d%d$') then -- ocn prefix and 9 digits; 001 field (12 characters)
number = id:match('ocn(%d+)'); -- get the number
elseif id:match('^on%d%d%d%d%d%d%d%d%d%d+$') then -- on prefix and 10 or more digits; 001 field (12 characters)
number = id:match('^on(%d%d%d%d%d%d%d%d%d%d+)$'); -- get the number
elseif id:match('^%(OCoLC%)[1-9]%d*$') then -- (OCoLC) prefix and variable number digits; no leading zeros; 035 field
number = id:match('%(OCoLC%)([1-9]%d*)'); -- get the number
if 9 < number:len() then
number = nil; -- constrain to 1 to 9 digits; change this when OCLC issues 10-digit numbers
end
elseif id:match('^%d+$') then -- no prefix
number = id; -- get the number
if tonumber (id) > handler.id_limit then
number = nil; -- unset when id value exceeds the limit
end
end
if number then -- proper format
id = number; -- exclude prefix, if any, from external link
else
set_message ('err_bad_oclc') -- add an error message if the id is malformed
options.coins_list_t['OCLC'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< O P E N L I B R A R Y >--------------------------------------------------------
Formats an OpenLibrary link, and checks for associated errors.
]]
local function openlibrary (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local ident, code = id:gsub('^OL', ''):match("^(%d+([AMW]))$"); -- strip optional OL prefix followed immediately by digits followed by 'A', 'M', or 'W';
local err_flag;
local prefix = { -- these are appended to the handler.prefix according to code
['A']='authors/OL',
['M']='books/OL',
['W']='works/OL',
['X']='OL' -- not a code; spoof when 'code' in id is invalid
};
if not ident then
code = 'X'; -- no code or id completely invalid
ident = id; -- copy id to ident so that we display the flawed identifier
err_flag = set_message ('err_bad_ol');
end
if not is_set (err_flag) then
options.coins_list_t['OL'] = handler.prefix .. prefix[code] .. ident; -- experiment for ol coins
else
options.coins_list_t['OL'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix .. prefix[code],
id = ident, separator = handler.separator, encode = handler.encode,
access = access});
end
--[[--------------------------< O S T I >----------------------------------------------------------------------
Format OSTI and do simple error checking. OSTIs are sequential numbers beginning at 1 and counting up. This
code checks the OSTI to see that it contains only digits and is less than test_limit specified in the configuration;
the value in test_limit will need to be updated periodically as more OSTIs are issued.
NB. 1018 is the lowest OSTI number found in the wild (so far) and resolving OK on the OSTI site
]]
local function osti (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
if id:match("[^%d]") then -- if OSTI has anything but digits
set_message ('err_bad_osti'); -- set an error message
options.coins_list_t['OSTI'] = nil; -- when error, unset so not included in COinS
else -- OSTI is only digits
local id_num = tonumber (id); -- convert id to a number for range testing
if 1018 > id_num or handler.id_limit < id_num then -- if OSTI is outside test limit boundaries
set_message ('err_bad_osti'); -- set an error message
options.coins_list_t['OSTI'] = nil; -- when error, unset so not included in COinS
end
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access});
end
--[[--------------------------< P M C >------------------------------------------------------------------------
Format a PMC, do simple error checking, and check for embargoed articles.
The embargo parameter takes a date for a value. If the embargo date is in the future the PMC identifier will not
be linked to the article. If the embargo date is today or in the past, or if it is empty or omitted, then the
PMC identifier is linked to the article through the link at cfg.id_handlers['PMC'].prefix.
PMC embargo date testing is done in function is_embargoed () which is called earlier because when the citation
has |pmc=<value> but does not have a |url= then |title= is linked with the PMC link. Function is_embargoed ()
returns the embargo date if the PMC article is still embargoed, otherwise it returns an empty string.
PMCs are sequential numbers beginning at 1 and counting up. This code checks the PMC to see that it contains only digits and is less
than test_limit; the value in local variable test_limit will need to be updated periodically as more PMCs are issued.
]]
local function pmc (options)
local id = options.id;
local embargo = options.Embargo; -- TODO: lowercase?
local handler = options.handler;
local err_flag;
local id_num;
local text;
id_num = id:match ('^[Pp][Mm][Cc](%d+)$'); -- identifier with PMC prefix
if is_set (id_num) then
set_message ('maint_pmc_format');
else -- plain number without PMC prefix
id_num = id:match ('^%d+$'); -- if here id is all digits
end
if is_set (id_num) then -- id_num has a value so test it
id_num = tonumber (id_num); -- convert id_num to a number for range testing
if 1 > id_num or handler.id_limit < id_num then -- if PMC is outside test limit boundaries
err_flag = set_message ('err_bad_pmc'); -- set an error message
else
id = tostring (id_num); -- make sure id is a string
end
else -- when id format incorrect
err_flag = set_message ('err_bad_pmc'); -- set an error message
end
if is_set (embargo) and is_set (is_embargoed (embargo)) then -- is PMC is still embargoed?
text = table.concat ( -- still embargoed so no external link
{
make_wikilink (label_link_make (handler), handler.label),
handler.separator,
id,
});
else
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect, -- no embargo date or embargo has expired, ok to link to article
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = handler.access,
auto_link = not err_flag and 'pmc' or nil -- do not auto-link when PMC has error
});
end
if err_flag then
options.coins_list_t['PMC'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< P M I D >----------------------------------------------------------------------
Format PMID and do simple error checking. PMIDs are sequential numbers beginning at 1 and counting up. This
code checks the PMID to see that it contains only digits and is less than test_limit; the value in local variable
test_limit will need to be updated periodically as more PMIDs are issued.
]]
local function pmid (options)
local id = options.id;
local handler = options.handler;
if id:match("[^%d]") then -- if PMID has anything but digits
set_message ('err_bad_pmid'); -- set an error message
options.coins_list_t['PMID'] = nil; -- when error, unset so not included in COinS
else -- PMID is only digits
local id_num = tonumber (id); -- convert id to a number for range testing
if 1 > id_num or handler.id_limit < id_num then -- if PMID is outside test limit boundaries
set_message ('err_bad_pmid'); -- set an error message
options.coins_list_t['PMID'] = nil; -- when error, unset so not included in COinS
end
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--[[--------------------------< R F C >------------------------------------------------------------------------
Format RFC and do simple error checking. RFCs are sequential numbers beginning at 1 and counting up. This
code checks the RFC to see that it contains only digits and is less than test_limit specified in the configuration;
the value in test_limit will need to be updated periodically as more RFCs are issued.
An index of all RFCs is here: https://tools.ietf.org/rfc/
]]
local function rfc (options)
local id = options.id;
local handler = options.handler;
if id:match("[^%d]") then -- if RFC has anything but digits
set_message ('err_bad_rfc'); -- set an error message
options.coins_list_t['RFC'] = nil; -- when error, unset so not included in COinS
else -- RFC is only digits
local id_num = tonumber (id); -- convert id to a number for range testing
if 1 > id_num or handler.id_limit < id_num then -- if RFC is outside test limit boundaries
set_message ('err_bad_rfc'); -- set an error message
options.coins_list_t['RFC'] = nil; -- when error, unset so not included in COinS
end
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = handler.access});
end
--[[--------------------------< S 2 C I D >--------------------------------------------------------------------
Format an S2CID, do simple error checking
S2CIDs are sequential numbers beginning at 1 and counting up. This code checks the S2CID to see that it is only
digits and is less than test_limit; the value in local variable test_limit will need to be updated periodically
as more S2CIDs are issued.
]]
local function s2cid (options)
local id = options.id;
local access = options.access;
local handler = options.handler;
local id_num;
local text;
id_num = id:match ('^[1-9]%d*$'); -- id must be all digits; must not begin with 0; no open access flag
if is_set (id_num) then -- id_num has a value so test it
id_num = tonumber (id_num); -- convert id_num to a number for range testing
if handler.id_limit < id_num then -- if S2CID is outside test limit boundaries
set_message ('err_bad_s2cid'); -- set an error message
options.coins_list_t['S2CID'] = nil; -- when error, unset so not included in COinS
end
else -- when id format incorrect
set_message ('err_bad_s2cid'); -- set an error message
options.coins_list_t['S2CID'] = nil; -- when error, unset so not included in COinS
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = access});
return text;
end
--[[--------------------------< S B N >------------------------------------------------------------------------
9-digit form of ISBN-10; uses same check-digit validation when SBN is prefixed with an additional '0' to make 10 digits
sbn value not made part of COinS metadata because we don't have a url or isn't a COinS-defined identifier (rft.xxx)
or an identifier registered at info-uri.info (info:)
]]
local function sbn (options)
local id = options.id;
local ignore_invalid = options.accept;
local handler = options.handler;
local function return_result (check, err_type) -- local function to handle the various returns
local SBN = internal_link_id ({link = handler.link, label = handler.label, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator});
if not ignore_invalid then -- if not ignoring SBN errors
if not check then
options.coins_list_t['SBN'] = nil; -- when error, unset so not included in COinS; not really necessary here because sbn not made part of COinS
set_message ('err_bad_sbn', {err_type}); -- display an error message
return SBN;
end
else
set_message ('maint_isbn_ignore'); -- add a maint category even when there is no error (ToDo: Possibly switch to separate message for SBNs only)
end
return SBN;
end
if id:match ('[^%s-0-9X]') then
return return_result (false, cfg.err_msg_supl.char); -- fail if SBN contains anything but digits, hyphens, or the uppercase X
end
local ident = id:gsub ('[%s-]', ''); -- remove hyphens and whitespace; they interfere with the rest of the tests
if 9 ~= ident:len() then
return return_result (false, cfg.err_msg_supl.length); -- fail if incorrect length
end
if ident:match ('^%d*X?$') == nil then
return return_result (false, cfg.err_msg_supl.form); -- fail if SBN has 'X' anywhere but last position
end
return return_result (is_valid_isxn ('0' .. ident, 10), cfg.err_msg_supl.check);
end
--[[--------------------------< S S R N >----------------------------------------------------------------------
Format an SSRN, do simple error checking
SSRNs are sequential numbers beginning at 100? and counting up. This code checks the SSRN to see that it is
only digits and is greater than 99 and less than test_limit; the value in local variable test_limit will need
to be updated periodically as more SSRNs are issued.
]]
local function ssrn (options)
local id = options.id;
local handler = options.handler;
local id_num;
local text;
id_num = id:match ('^%d+$'); -- id must be all digits
if is_set (id_num) then -- id_num has a value so test it
id_num = tonumber (id_num); -- convert id_num to a number for range testing
if 100 > id_num or handler.id_limit < id_num then -- if SSRN is outside test limit boundaries
set_message ('err_bad_ssrn'); -- set an error message
options.coins_list_t['SSRN'] = nil; -- when error, unset so not included in COinS
end
else -- when id format incorrect
set_message ('err_bad_ssrn'); -- set an error message
options.coins_list_t['SSRN'] = nil; -- when error, unset so not included in COinS
end
text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode, access = options.access});
return text;
end
--[[--------------------------< U S E N E T _ I D >------------------------------------------------------------
Validate and format a usenet message id. Simple error checking, looks for 'id-left@id-right' not enclosed in
'<' and/or '>' angle brackets.
]]
local function usenet_id (options)
local id = options.id;
local handler = options.handler;
local text = external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode})
if not id:match('^.+@.+$') or not id:match('^[^<].*[^>]$') then -- doesn't have '@' or has one or first or last character is '< or '>'
set_message ('err_bad_usenet_id') -- add an error message if the message id is invalid
options.coins_list_t['USENETID'] = nil; -- when error, unset so not included in COinS
end
return text;
end
--[[--------------------------< Z B L >-----------------------------------------------------------------------
A numerical identifier in the form nnnn.nnnnn - leading zeros in the first quartet optional
format described here: http://emis.mi.sanu.ac.rs/ZMATH/zmath/en/help/search/
temporary format is apparently eight digits. Anything else is an error
]]
local function zbl (options)
local id = options.id;
local handler = options.handler;
if id:match('^%d%d%d%d%d%d%d%d$') then -- is this identifier using temporary format?
set_message ('maint_zbl'); -- yes, add maint cat
elseif not id:match('^%d?%d?%d?%d%.%d%d%d%d%d$') then -- not temporary, is it normal format?
set_message ('err_bad_zbl'); -- no, set an error message
options.coins_list_t['ZBL'] = nil; -- when error, unset so not included in COinS
end
return external_link_id ({link = handler.link, label = handler.label, q = handler.q, redirect = handler.redirect,
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
end
--============================<< I N T E R F A C E F U N C T I O N S >>==========================================
--[[--------------------------< E X T R A C T _ I D S >------------------------------------------------------------
Populates ID table from arguments using configuration settings. Loops through cfg.id_handlers and searches args for
any of the parameters listed in each cfg.id_handlers['...'].parameters. If found, adds the parameter and value to
the identifier list. Emits redundant error message if more than one alias exists in args
]]
local function extract_ids (args)
local id_list = {}; -- list of identifiers found in args
for k, v in pairs (cfg.id_handlers) do -- k is uppercase identifier name as index to cfg.id_handlers; e.g. cfg.id_handlers['ISBN'], v is a table
v = select_one (args, v.parameters, 'err_redundant_parameters' ); -- v.parameters is a table of aliases for k; here we pick one from args if present
if is_set (v) then id_list[k] = v; end -- if found in args, add identifier to our list
end
return id_list;
end
--[[--------------------------< E X T R A C T _ I D _ A C C E S S _ L E V E L S >--------------------------------------
Fetches custom id access levels from arguments using configuration settings. Parameters which have a predefined access
level (e.g. arxiv) do not use this function as they are directly rendered as free without using an additional parameter.
returns a table of k/v pairs where k is same as the identifier's key in cfg.id_handlers and v is the assigned (valid) keyword
access-level values must match the case used in cfg.keywords_lists['id-access'] (lowercase unless there is some special reason for something else)
]]
local function extract_id_access_levels (args, id_list)
local id_accesses_list = {};
for k, v in pairs (cfg.id_handlers) do
local access_param = v.custom_access; -- name of identifier's access-level parameter
if is_set (access_param) then
local access_level = args[access_param]; -- get the assigned value if there is one
if is_set (access_level) then
if not in_array (access_level, cfg.keywords_lists['id-access']) then -- exact match required
set_message ('err_invalid_param_val', {access_param, access_level});
access_level = nil; -- invalid so unset
end
if not is_set (id_list[k]) then -- identifier access-level must have a matching identifier
set_message ('err_param_access_requires_param', {k:lower()}); -- parameter name is uppercase in cfg.id_handlers (k); lowercase for error message
end
id_accesses_list[k] = cfg.keywords_xlate[access_level]; -- get translated keyword
end
end
end
return id_accesses_list;
end
--[[--------------------------< B U I L D _ I D _ L I S T >----------------------------------------------------
render the identifiers into a sorted sequence table
<ID_list_coins_t> is a table of k/v pairs where k is same as key in cfg.id_handlers and v is the assigned value
<options_t> is a table of various k/v option pairs provided in the call to new_build_id_list();
modified by this function and passed to all identifier rendering functions
<access_levels_t> is a table of k/v pairs where k is same as key in cfg.id_handlers and v is the assigned value (if valid)
returns a sequence table of sorted (by hkey - 'handler' key) rendered identifier strings
]]
local function build_id_list (ID_list_coins_t, options_t, access_levels_t)
local ID_list_t = {};
local accept;
local func_map = { --function map points to functions associated with hkey identifier
['ARXIV'] = arxiv,
['ASIN'] = asin,
['BIBCODE'] = bibcode,
['BIORXIV'] = biorxiv,
['CITESEERX'] = citeseerx,
['DOI'] = doi,
['EISSN'] = issn,
['HDL'] = hdl,
['ISBN'] = isbn,
['ISMN'] = ismn,
['ISSN'] = issn,
['JFM'] = jfm,
['JSTOR'] = jstor,
['LCCN'] = lccn,
['MEDRXIV'] = medrxiv,
['MR'] = mr,
['OCLC'] = oclc,
['OL'] = openlibrary,
['OSTI'] = osti,
['PMC'] = pmc,
['PMID'] = pmid,
['RFC'] = rfc,
['S2CID'] = s2cid,
['SBN'] = sbn,
['SSRN'] = ssrn,
['USENETID'] = usenet_id,
['ZBL'] = zbl,
}
for hkey, v in pairs (ID_list_coins_t) do
v, accept = has_accept_as_written (v); -- remove accept-as-written markup if present; accept is boolean true when markup removed; false else
-- every function gets the options table with value v and accept boolean
options_t.hkey = hkey; -- ~/Configuration handler key
options_t.id = v; -- add that identifier value to the options table
options_t.accept = accept; -- add the accept boolean flag
options_t.access = access_levels_t[hkey]; -- add the access level for those that have an |<identifier-access= parameter
options_t.handler = cfg.id_handlers[hkey];
options_t.coins_list_t = ID_list_coins_t; -- pointer to ID_list_coins_t; for |asin= and |ol=; also to keep erroneous values out of the citation's metadata
options_t.coins_list_t[hkey] = v; -- id value without accept-as-written markup for metadata
if options_t.handler.access and not in_array (options_t.handler.access, cfg.keywords_lists['id-access']) then
error (cfg.messages['unknown_ID_access'] .. options_t.handler.access); -- here when handler access key set to a value not listed in list of allowed id access keywords
end
if func_map[hkey] then
local id_text = func_map[hkey] (options_t); -- call the function to get identifier text and any error message
table.insert (ID_list_t, {hkey, id_text}); -- add identifier text to the output sequence table
else
error (cfg.messages['unknown_ID_key'] .. hkey); -- here when func_map doesn't have a function for hkey
end
end
local function comp (a, b) -- used by following table.sort()
return a[1]:lower() < b[1]:lower(); -- sort by hkey
end
table.sort (ID_list_t, comp); -- sequence table of tables sort
for k, v in ipairs (ID_list_t) do -- convert sequence table of tables to simple sequence table of strings
ID_list_t[k] = v[2]; -- v[2] is the identifier rendering from the call to the various functions in func_map{}
end
return ID_list_t;
end
--[[--------------------------< O P T I O N S _ C H E C K >----------------------------------------------------
check that certain option parameters have their associated identifier parameters with values
<ID_list_coins_t> is a table of k/v pairs where k is same as key in cfg.id_handlers and v is the assigned value
<ID_support_t> is a sequence table of tables created in citation0() where each subtable has four elements:
[1] is the support parameter's assigned value; empty string if not set
[2] is a text string same as key in cfg.id_handlers
[3] is cfg.error_conditions key used to create error message
[4] is original ID support parameter name used to create error message
returns nothing; on error emits an appropriate error message
]]
local function options_check (ID_list_coins_t, ID_support_t)
for _, v in ipairs (ID_support_t) do
if is_set (v[1]) and not ID_list_coins_t[v[2]] then -- when support parameter has a value but matching identifier parameter is missing or empty
set_message (v[3], (v[4])); -- emit the appropriate error message
end
end
end
--[[--------------------------< I D E N T I F I E R _ L I S T S _ G E T >--------------------------------------
Creates two identifier lists: a k/v table of identifiers and their values to be used locally and for use in the
COinS metadata, and a sequence table of the rendered identifier strings that will be included in the rendered
citation.
]]
local function identifier_lists_get (args_t, options_t, ID_support_t)
local ID_list_coins_t = extract_ids (args_t); -- get a table of identifiers and their values for use locally and for use in COinS
options_check (ID_list_coins_t, ID_support_t); -- ID support parameters must have matching identifier parameters
local ID_access_levels_t = extract_id_access_levels (args_t, ID_list_coins_t); -- get a table of identifier access levels
local ID_list_t = build_id_list (ID_list_coins_t, options_t, ID_access_levels_t); -- get a sequence table of rendered identifier strings
return ID_list_t, ID_list_coins_t; -- return the tables
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)
cfg = cfg_table_ptr;
has_accept_as_written = utilities_page_ptr.has_accept_as_written; -- import functions from select Module:Citation/CS1/Utilities module
is_set = utilities_page_ptr.is_set;
in_array = utilities_page_ptr.in_array;
set_message = utilities_page_ptr.set_message;
select_one = utilities_page_ptr.select_one;
substitute = utilities_page_ptr.substitute;
make_wikilink = utilities_page_ptr.make_wikilink;
z = utilities_page_ptr.z; -- table of tables in Module:Citation/CS1/Utilities
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
auto_link_urls = auto_link_urls, -- table of identifier URLs to be used when auto-linking |title=
identifier_lists_get = identifier_lists_get, -- experiment to replace individual calls to build_id_list(), extract_ids, extract_id_access_levels
is_embargoed = is_embargoed;
set_selected_modules = set_selected_modules;
}
50sayqj1hqox1azjfoh3py84edt8r29
وحدة:Citation/CS1/Suggestions/شرح
828
63181
275406
2026-09-15T08:57:36Z
حبيشان
29714
استيراد من ar.wiktionary.org
275406
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
oy17t2cumwnrd0mbvyjn7zb9bmsgvfd
وحدة:Citation/CS1/Suggestions/ملعب
828
63182
275407
2026-09-15T08:57:41Z
حبيشان
29714
استيراد من ar.wiktionary.org
275407
Scribunto
text/plain
-- Please insert new suggestions in alphabetical order
-- The form is ['incorrect'] = 'correct',
local suggestions = {
['ASIN-TLD'] = 'asin-tld', -- old parameter name
['BIBCODE'] = 'bibcode',
['ISBN13'] = 'ردمك',
['abruf'] = 'access-date', -- German
['abruf-verborgen'] = 'access-date', -- German
['accessmonth'] = 'access-date',
['accesso'] = 'access-date', -- Italian
['accessyear'] = 'access-date',
['acessodata'] = 'access-date', -- Brazilian Portuguese
['ad'] = 'first', -- Turkish
['address'] = 'location',
['anno'] = 'date', -- Italian
['annoaccesso'] = 'access-date', -- Italian
['annodiaccesso'] = 'access-date', -- Italian
['annooriginale'] = 'orig-date', -- Italian
['année'] = 'date', -- French
['apellido'] = 'last', -- Spanish
['apellidos'] = 'last', -- Spanish
['archiv-datum'] = 'archive-date', -- German
['archiv-url'] = 'archive-url', -- German
['archive date'] = 'archive-date',
['archive url'] = 'archive-url', -- Spanish
['archive-link'] = 'archive-url',
['artikelnr'] = 'id', -- German (as 'id=Article No. ...')
['artist'] = 'others',
['arşiv-tarihi'] = 'archive-date', -- Turkish
['arşiv-url'] = 'archive-url', -- Turkish
['arşivtarihi'] = 'archive-date', -- Turkish
['arşivurl'] = 'archive-url', -- Turkish
['auflage'] = 'edition', -- German
['auteur'] = 'author', -- French
['auteur1'] = 'author1',
['auther'] = 'author',
['author link'] = 'author-link', -- Polish
['authorfirst'] = 'author-first', -- old parameter name
['authorgiven'] = 'author-given', -- old parameter name
['authorlast'] = 'author-last', -- old parameter name
['authormask'] = 'author-mask', -- old parameter name
['authorsurname'] = 'author-surname', -- old parameter name
['autor'] = 'author', -- Spanish, German (singular and plural)
['autore'] = 'author', -- Italian
['autthor'] = 'author',
['ay'] = 'month', -- Turkish
['año'] = 'date', -- Spanish
['año-original'] = 'orig-date', -- Spanish
['añoacceso'] = 'access-date', -- Spanish
['añooriginal'] = 'orig-date', -- Spanish
['band'] = 'volume', -- German
['bandreihe'] = 'volume', -- German
['baskı'] = 'edition', -- Turkish
['başlık'] = 'title', -- Turkish
['began'] = 'date', -- old parameter name (cite serial only); or orig-date=
['ch'] = 'language', -- German (as 'language=de-CH')
['chapter_title'] = 'chapter',
['chapterurl'] = 'مسار الفصل',
['cid'] = 'ref', -- Italian
['cilt'] = 'volume', -- Turkish
['cita'] = 'quote', -- Spanish
['citazione'] = 'quote', -- Italian
['città'] = 'location', -- Italian
['city'] = 'location', -- old parameter name (cite serial only)
['coauthor'] = 'author',
['coauthors'] = 'author',
['coautores'] = 'author', -- Spanish
['coautori'] = 'author', -- Italian
['cognome'] = 'last', -- Italian
['conferenceurl'] = 'مسار المؤتمر',
['consulté le'] = 'access-date', -- French
['curatore'] = 'publisher', -- Italian
['czasopismo'] = 'journal', -- Polish
['data dostępu'] = 'access-date', -- Polish
['data'] = 'date', -- Polish, Italian
['dataaccesso'] = 'access-date', -- Italian
['dataarchivio'] = 'archive-date', -- Italian
['datum'] = 'date', -- German
['deadlink'] = 'url-status',
['dergi'] = 'work', -- Turkish
['dil'] = 'language', -- Turkish
['displayauthors'] = 'إظهار المؤلفين',
['displayeditors'] = 'إظهار المحررين' ,
['distributor'] = 'publisher',
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}')
['doi-broken'] = 'doi-broken-date',
['doi-inactive'] = 'doi-broken-date', -- invalid name found in mainspace
['doi-inactive-date'] = 'doi-broken-date',
['doi_brokendate'] = 'doi-broken-date',
['doi_inactivedate'] = 'doi-inactive-date',
['doibroken'] = 'doi-broken-date', -- invalid name found in mainspace
['doiinactive'] = 'doi-broken-date', -- invalid name found in mainspace
['e-print'] = 'eprint', -- misspelling
['eEditor-first'] = 'editor-first',
['editoin'] = 'edition', -- misspelling
['editon'] = 'edition', -- misspelling
['editore'] = 'agency', -- can be either publisher or agency
['editorfirst'] = 'editor-first', -- old parameter name
['editorgiven'] = 'editor-given', -- old parameter name
['editorial'] = 'publisher', -- can be either publisher or work
['editorlast'] = 'editor-last', -- old parameter name
['editorlink'] = 'editor-link', -- old parameter name
['editormask'] = 'editor-mask', -- old parameter name
['editorsurname'] = 'editor-surname', -- old parameter name
['edizione'] = 'edition', -- Italian
['embargo'] = 'pmc-embargo-date', -- old parameter name
['en ligne le'] = 'archive-date', -- French
['encyclopædia'] = 'encyclopedia',
['ended'] = 'date', -- old parameter name (cite serial only)
['enlaceautor'] = 'author-link', -- Spanish
['enlaceroto'] = 'url-status', -- Spanish
['episodelink'] = 'وصلة الحلقة',
['erişimtarihi'] = 'access-date', -- Turkish
['eser'] = 'work', -- Turkish
['event'] = 'اسم المؤتمر',
['event-format'] = 'conference-format',
['event-url'] = 'مسار المؤتمر',
['eventurl'] = 'مسار المؤتمر',
['family'] = 'surname', -- misguess
['fecha'] = 'date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['foramt'] = 'format', -- misspelling
['fore-name'] = 'given', -- misguess/misspelling
['forename'] = 'given', -- misguess
['formato'] = 'format', -- Spanish, Italian, Polish
['frist'] = 'first', -- misspelling
['fundstelle'] = 'at', -- German
['gazete'] = 'work', -- Turkish
['giornale'] = 'journal', -- Italian
['herausgeber'] = 'editor', -- German (singular and plural)
['hrsg'] = 'publisher', -- German
['hrsgreihe'] = 'editor', -- German
['idioma'] = 'language', -- Spanish
['imię'] = 'first', -- Polish
['in'] = 'لغة',
['in-set'] = 'inset', -- misspelling
['interviewerlink'] = 'interviewer-link', -- old parameter alias
['interviewermask'] = 'interviewer-mask', -- old parameter alias
['isbn13'] = 'ردمك',
['isbndefekt'] = 'ردمك', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnformalfalsch'] = 'ردمك', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnistformalfalsch'] = 'ردمك', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isnb'] = 'ردمك', -- misspelling
['issnformalfalsch'] = 'issn', -- German (can be fully emulated using ((syntax)))
['jahr'] = 'date', -- German
['jahrea'] = 'orig-date', -- German (not a direct replacement, but can be emulated)
['kapitel'] = 'chapter', -- German
['langauge'] = 'language', -- misspelling
['langue'] = 'language', -- French
['last-author-amp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lastauthoramp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lieu'] = 'location', -- French
['lingua'] = 'language', -- Italian
['lire en ligne'] = 'url', -- French
['lizenznummer'] = 'id', -- German (as 'id=License No. ...')
['loaction'] = 'location', -- misspelling
['local'] = 'location', -- Brazilian Portuguese
['locatoin'] = 'location', -- misspelling
['lugar'] = 'location', -- Spanish
['mailinglist'] = 'القائمة البريدية',
['mapurl'] = 'مسار الخريطة',
['mes'] = 'date', -- Spanish (not a direct replacement)
['mese'] = 'date', -- Italian (not a direct replacement)
['miejsce'] = 'location', -- Polish
['miesiąc'] = 'date', -- Polish
['mois'] = 'date', -- French
['monat'] = 'date', -- German
['name-list-format'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['nazwisko'] = 'last', -- Polish
['nespaper'] = 'newspaper', -- misspelling
['net-work'] = 'network', -- misspelling
['newpaper'] = 'newspaper', -- misspelling
['news'] = 'newspaper',
['news-group'] = 'newsgroup', -- misspelling
['news-paper'] = 'newspaper', -- misspelling
['no-cat'] = 'no-tracking', -- old parameter
['nocat'] = 'no-tracking', -- old parameter
['nom'] = 'last', -- French
['nombre'] = 'first', -- Spanish
['nome'] = 'first', -- Italian
['nopp'] = 'no-pp', -- old parameter name
['notracking'] = 'no-tracking', -- old parameter
['numero'] = 'number', -- Italian, Spanish
['nummer'] = 'number', -- German
['nummerreihe'] = 'number', -- German
['obra'] = 'work', -- Spanish
['odpowiedzialność'] = 'agency', -- Polish
['offline'] = 'url-status', -- German (as 'url-status=dead')
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
['opera'] = 'work', -- Italian
['opublikowany'] = 'agency', -- Polish
['origdate'] = 'orig-date', -- misspelling
['originaljahr'] = 'orig-date', -- German
['originalort'] = 'publication-place', -- German
['originalsprache'] = 'language', -- German
['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
['ort'] = 'publication-place', -- German
['ortea'] = 'publication-place', -- German (not a direct replacement, but can be emulated)
['other'] = 'others',
['oznaczenie'] = 'agency', -- Polish
['pagees'] = 'pages', -- misspelling
['pages totales'] = 'pages',
['pagina'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['passage'] = 'pages', -- French
['periodico'] = 'magazine', -- Spanish
['plublisher'] = 'publisher', -- misspelling
['pmcid'] = 'pmc',
['post-script'] = 'postscript', -- misspelling
['praca'] = 'work', -- Polish
['primero'] = 'first', -- Spanish
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['ps'] = 'postscript',
['pub'] = 'publisher',
['publicationdate'] = 'تاريخ النشر',
['publicationplace'] = 'مكان النشر',
['pulbication-place'] = 'publication-place', -- misspelling
['página'] = 'page', -- Spanish
['páginas'] = 'pages', -- Spanish
['périodique'] = 'publisher', -- French
['reihe'] = 'series', -- German
['retrieved'] = 'access-date',
['richiestasottoscrizione'] = 'url-access', -- Italian (as |url-access=subscription)
['rok'] = 'date', -- Polish
['sammelwerk'] = 'work', -- German
['sayfa'] = 'page', -- Turkish
['sayfalar'] = 'pages', -- Turkish
['sayı'] = 'issue', -- Turkish
['script-post'] = 'postscript', -- misspelling
['script-trans'] = 'transcript', -- misspelling
['season'] = 'date', -- old parameter name (cite serial only)
['sectionurl'] = 'مسار الفصل',
['seiten'] = 'pages', -- German
['seria'] = 'series', -- Spanish, Polish
['serie'] = 'series', -- Italian
['serieslink'] = 'وصلة سلسلة',
['seriesno'] = 'رقم السلسلة',
['seriesnumber'] = 'رقم السلسلة',
['service'] = 'agency',
['site'] = 'website',
['sitioweb'] = 'website', -- Spanish
['sito'] = 'website', -- Italian
['soyadı'] = 'last', -- Turkish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
['stron'] = 'page', -- Polish
['strony'] = 'pages', -- Polish
['subjectlink'] = 'subject-link', -- old parameter name
['subscription'] = 'url-access', -- old parameter name (emulated as |url-access=subscription)
['sur-name'] = 'surname', -- misspelling
['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription)
['série'] = 'series', -- French
['tag'] = 'date', -- German
['tarih'] = 'date', -- Turkish
['template doc demo'] = 'no-tracking', -- old parameter alias
['tidning'] = 'work', -- Swedish
['tile'] = 'title', -- misspelling
['timecaption'] = 'time-caption', -- old parameter name
['tipo'] = 'type', -- Italian
['tite'] = 'title', -- misspelling
['titel'] = 'title', -- German
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['titled'] = 'title', -- Brazilian Portuguese
['titlelink'] = 'وصلة العنوان',
['titolo'] = 'title', -- Italian
['titre'] = 'title', -- French
['trans-script'] = 'transcript', -- misspelling
['trans_chapter'] = 'trans-chapter', -- old parameter alias
['trans_title'] = 'عنوان مترجم',
['transchapter'] = 'trans-chapter',
['transcripturl'] = 'transcript-url', -- old parameter name
['transscript'] = 'transcript', -- misspelling
['transscript-format'] = 'transcript-format', -- misspelling
['transscript-url'] = 'transcript-url', -- misspelling
['transscripturl'] = 'transcript-url', -- misspelling
['transtitle'] = 'trans-title',
['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
['tytuł'] = 'title', -- Polish
['títle'] = 'title',
['ubicación'] = 'location', -- Spanish
['urlarchivio'] = 'archive-url', -- Italian
['urlarchivo'] = 'archive-url', -- Spanish
['urlmorto'] = 'url-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['v-authors'] = 'vauthors', -- misspelling
['v-editors'] = 'veditors', -- misspelling
['verlag'] = 'publisher', -- German
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
['vol'] = 'volume',
['volumen'] = 'volume', -- Spanish
['werk'] = 'work', -- German
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['wkautore'] = 'author-link', -- Italian
['wolumin'] = 'volume', -- Polish
['wydanie'] = 'number', -- Polish
['wydawca'] = 'publisher', -- French
['yardımcıyazarlar'] = 'author', -- Turkish
['yayımcı'] = 'publisher', -- Turkish
['yayıncı'] = 'publisher', -- Turkish
['yazar'] = 'author', -- Turkish
['yazarbağı'] = 'author-link', -- Turkish
['yer'] = 'location', -- Turkish
['yıl'] = 'date', -- Turkish
['zaprezentowany'] = 'publisher', -- French
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}')
['zitat'] = 'quote', -- German
['zugriff'] = 'access-date', -- German
['éditeur'] = 'editor', -- French
['ölüurl'] = 'url-status', -- Turkish
['übersetzer'] = 'translator', -- German (singular and plural)
['آخر'] = 'others',
['أخير'] = 'last',
['العنوان باللغة العربية'] = 'عنوان مترجم',
['أقسام'] = 'sections',
['أول'] = 'first',
['إظهار المؤلفون'] = 'display-authors',
['اخير'] = 'last',
['اسم الدورية'] = 'دورية',
['اسم الصحيفة'] = 'جريدة',
['اسم القائمة البريدية'] = 'القائمة البريدية',
['اسم الموقع'] = 'موقع',
['الأخير'] = 'last',
['الأول'] = 'first',
['الاول'] = 'first',
['الرقم المعياري'] = 'ردمك',
['الصحيفة'] = 'journal',
['المؤلف'] = 'author',
['المؤلفين المشاركين'] = 'authors',
['المترجم'] = 'translator',
['المحطة'] = 'station',
['المدينة'] = 'location',
['المناسبة'] = 'conference',
['الموقع الرسمي'] = 'website',
['النظام القياسي الدولي لترقيم الكتب'] = 'ردمك',
['الوكالة'] = 'agency',
['بواسطة'] = 'عبر',
['تاريخ وصلة مكسورة'] = 'dead-date',
['تنسيق أرشيف'] = 'archive-format',
['تنسيق الأرشيف'] = 'صيغة الأرشيف',
['تنسيق الخريطة'] = 'صيغة الخريطة',
['تنسيق المؤتمر'] = 'conference-format',
['تنسيق-الأرشيف'] = 'صيغة-الأرشيف',
['حالة المسار'] = 'url-status',
['حالة مسار'] = 'url-status',
['حلقة'] = 'episode',
['دوي'] = 'doi',
['رقم معياري'] = 'ردمك',
['سنة النشر'] = 'publication-date',
['سنة الوصول'] = 'date',
['شهر'] = 'تاريخ',
['صنف الأرشيف'] = 'صنف',
['عام'] = 'date',
['عدة مؤلفين'] = 'vauthors',
['عدة محررين'] = 'veditors',
['عدد'] = 'issue',
['مؤلف'] = 'author',
['مؤلفون'] = 'authors',
['مؤلفين مشاركين'] = 'authors',
['مترجم'] = 'translator',
['مجلد'] = 'volume',
['محرر الأخير'] = 'editor-last',
['محرر الأول'] = 'editor-first',
['محرر-الأخير'] = 'editor-last',
['محرر-الأول'] = 'editor-first',
['مناسبة'] = 'اسم المؤتمر',
['وصلة المؤلف'] = 'author-link',
['وصلة مؤلف'] = 'author-link',
['وقت الوقوع'] = 'الوقت',
}
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
Here we use Lua patterns to make suggestions. The form is
['pattern'] = 'correct',
Lua patterns are not REGEX though they are similar. The escape character is '%', not '\'.
For more information about Lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial
match from incorrectly suggesting the wrong parameter name. For instance, the pattern 'a[utho]+r'
matches 'author' in the no-longer-supported parameter |author-separator= so the code suggests
'|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator')
so again, the code suggests '|author='.
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.)
The value from the capture replaces $1 in the 'correct' value.
]]
local patterns = {
['^الاخير(%d+)$'] = 'last$1',
['^مؤلف(%d+)-الأول$'] = 'author$1',
['^ac+es+ ?d?a?t?e?$'] = 'access-date', -- misspelling
['^apellido[s]?(%d+)$'] = 'last$1', -- Spanish, enumerated
['^a[utho]+r$'] = 'author', -- misspelling
['^a[utho]+r(%d+)$'] = 'author$1', -- misspelling, enumerated
['^author link(%d+)$'] = 'author-link$1', -- Polish, enumerated
['^autor[e]?(%d+)$'] = 'author$1', -- Italian/Spanish/German, enumerated
['^authorfirst(%d+)$'] = 'author-first$1', -- old parameter name, enumerated
['^author(%d+)first$'] = 'author-first$1', -- old parameter name, enumerated
['^authorgiven(%d+)$'] = 'author-given$1', -- old parameter name, enumerated
['^author(%d+)given$'] = 'author-given$1', -- old parameter name, enumerated
['^authorlast(%d+)$'] = 'author-last$1', -- old parameter name, enumerated
['^author(%d+)last$'] = 'author-last$1', -- old parameter name, enumerated
['^authormask(%d+)$'] = 'author-mask$1', -- old parameter name, enumerated
['^author(%d+)mask$'] = 'author-mask$1', -- old parameter name, enumerated
['^authorsurname(%d+)$'] = 'author-surname$1', -- old parameter name, enumerated
['^author(%d+)surname$'] = 'author-surname$1', -- old parameter name, enumerated
['^cognome(%d+)$'] = 'last$1', -- Italian, enumerated
['^editorfirst(%d+)$'] = 'editor-first$1', -- old parameter name, enumerated
['^editor(%d+)first$'] = 'editor-first$1', -- old parameter name, enumerated
['^editorgiven(%d+)$'] = 'editor-given$1', -- old parameter name, enumerated
['^editor(%d+)given$'] = 'editor-given$1', -- old parameter name, enumerated
['^editorlast(%d+)$'] = 'editor-last$1', -- old parameter name, enumerated
['^editor(%d+)last$'] = 'editor-last$1', -- old parameter name, enumerated
['^editorlink(%d+)$'] = 'editor-link$1', -- old parameter name, enumerated
['^editor(%d+)link$'] = 'editor-link$1', -- old parameter name, enumerated
['^editormask(%d+)$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editor(%d+)mask$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editorsurname(%d+)$'] = 'editor-surname$1', -- old parameter name, enumerated
['^editor(%d+)surname$'] = 'editor-surname$1', -- old parameter name, enumerated
['^enlaceautore(%d+)$'] = 'author-link$1', -- Spanish, enumerated
['^first (%d+)$'] = 'first$1', -- enumerated
['^last (%d+)$'] = 'last$1', -- enumerated
['^nom[e]?(%d+)$'] = 'last$1', -- Italian/French, enumerated
['^nombre(%d+)$'] = 'first$1', -- Spanish, enumerated
['^primero(%d+)$'] = 'first$1', -- Spanish, enumerated
['^pu[blish]+ers?$'] = 'publisher', -- misspelling
['^subjectlink(%d+)$'] = 'subject-link$1', -- old parameter name, enumerated
['^subject(%d+)link$'] = 'subject-link$1', -- old parameter name, enumerated
['^wkautore(%d+)$'] = 'author-link$1', -- Italian, enumerated
}
return {suggestions = suggestions, patterns=patterns};
d8xmkuon9y2izkyhhet1vwzkmqg8yot
وحدة:Citation/CS1/Utilities/شرح
828
63183
275409
2026-09-15T08:57:49Z
حبيشان
29714
استيراد من ar.wiktionary.org
275409
wikitext
text/x-wiki
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
3nfap8cv3p50e73it34tpa3p38g4h5p
وحدة:Citation/CS1/Utilities/ملعب
828
63184
275410
2026-09-15T08:57:52Z
حبيشان
29714
استيراد من ar.wiktionary.org
275410
Scribunto
text/plain
local z = {
error_cats_t = {}; -- for categorizing citations that contain errors
error_ids_t = {}; -- list of error identifiers; used to prevent duplication of certain errors; local to this module
error_msgs_t = {}; -- sequence table of error messages
maint_cats_t = {}; -- for categorizing citations that aren't erroneous per se, but could use a little work
prop_cats_t = {}; -- for categorizing citations based on certain properties, language of source for instance
prop_keys_t = {}; -- for adding classes to the citation's <cite> tag
};
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
]]
local cfg; -- table of tables imported from selected Module:Citation/CS1/Configuration
--[[--------------------------< I S _ S E T >------------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
local function is_set (var)
return not (var == nil or var == '');
end
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------
Whether needle is in haystack
]]
local function in_array (needle, haystack)
if needle == nil then
return false;
end
for n, v in ipairs (haystack) do
if v == needle then
return n;
end
end
return false;
end
--[[--------------------------< H A S _ A C C E P T _ A S _ W R I T T E N >------------------------------------
When <str> is wholly wrapped in accept-as-written markup, return <str> without markup and true; return <str> and false else
with allow_empty = false, <str> must have at least one character inside the markup
with allow_empty = true, <str> the markup frame can be empty like (()) to distinguish an empty template parameter from the specific condition "has no applicable value" in citation-context.
After further evaluation the two cases might be merged at a later stage, but should be kept separated for now.
]]
local function has_accept_as_written (str, allow_empty)
if not is_set (str) then
return str, false;
end
local count;
if true == allow_empty then
str, count = str:gsub ('^%(%((.*)%)%)$', '%1'); -- allows (()) to be an empty set
else
str, count = str:gsub ('^%(%((.+)%)%)$', '%1');
end
return str, 0 ~= count;
end
--[[--------------------------< S U B S T I T U T E >----------------------------------------------------------
Populates numbered arguments in a message string using an argument table. <args> may be a single string or a
sequence table of multiple strings.
]]
local function substitute (msg, args)
return args and mw.message.newRawMessage (msg, args):plain() or msg;
end
--[[--------------------------< E R R O R _ C O M M E N T >----------------------------------------------------
Wraps error messages with CSS markup according to the state of hidden. <content> may be a single string or a
sequence table of multiple strings.
]]
local function error_comment (content, hidden)
return substitute (hidden and cfg.presentation['hidden-error'] or cfg.presentation['visible-error'], content);
end
--[[--------------------------< H Y P H E N _ T O _ D A S H >--------------------------------------------------
Converts a hyphen, endash, emdash to endash under certain conditions. The hyphen/en/em must separate
like items; unlike items are returned unmodified. These forms are modified:
letter - letter (A-B)
digit - digit (4-5)
digit separator digit - digit separator digit (4.1-4.5 or 4-1-4-5)
letterdigit - letterdigit (A1-A5) (an optional separator between letter and
digit is supported – a.1-a.5 or a-1-a-5)
digitletter - digitletter (5a-5d) (an optional separator between letter and
digit is supported – 5.a-5.d or 5-a-5-d)
any other forms are returned unmodified.
str may be a comma- or semicolon-separated list of page ranges with/without single pages
]]
local function hyphen_to_dash (str)
if not is_set (str) then
return str;
end
str = str:gsub ("(%(%(.-%)%))", function(m) return m:gsub(",", ","):gsub(";", ";") end) -- replace commas and semicolons in accept-as-written markup with similar unicode characters so they'll be ignored during the split
str = str:gsub ('&[nm]dash;', {['–'] = '–', ['—'] = '—'}); -- replace — and – entities with their characters; semicolon mucks up the text.split
str = str:gsub ('-', '-'); -- replace HTML numeric entity with hyphen character
str = str:gsub (' ', ' '); -- replace entity with generic keyboard space character
local out = {};
local list = mw.text.split (str, '%s*[,;]%s*'); -- split str at comma or semicolon separators if there are any
local accept; -- boolean
for _, item in ipairs (list) do -- for each item in the list
item, accept = has_accept_as_written (item); -- remove accept-this-as-written markup when it wraps all of item
if not accept and mw.ustring.match (item, '^%w*[%.%-]?%w+%s*[—–-]%s*%w*[%.%-]?%w+$') then -- if pagination uses <hyphen|dot> separators with hyphen/endash/emdash <range separator>
if mw.ustring.match (item, '^%a+[%.%-]%d+%s*[—–-]%s*%a+[%.%-]%d+$') or -- letter<hyphen|dot>digit <range separator> letter<hyphen|dot>digit (requires <hyphen|dot> separator between letter and digit)
mw.ustring.match (item, '^%d+[%.%-]%a+%s*[—–-]%s*%d+[%.%-]%a+$') or -- digit<hyphen|dot>letter <range separator> digit<hyphen|dot>letter (requires <hyphen|dot> separator between digit and letter)
mw.ustring.match (item, '^%d+[%.%-]%d+%s*[—–-]%s*%d+[%.%-]%d+$') then -- digit<hyphen|dot>digit <range separator> digit<hyphen|dot>digit (requires <hyphen|dot> separator between digit and digit)
item = mw.ustring.gsub (item, '(%w*[%.%-]%w+)%s*[—–-]%s*(%w*[%.%-]%w+)', '<span class="nowrap">%1 –</span> <span class="nowrap">%2</span>'); -- replace <range separator>, with spaced endash
elseif mw.ustring.match (item, '^%d+%a+%s*[—–-]%s*%d+%a+$') or -- digitletter <range separator> digitletter
mw.ustring.match (item, '^%a+%d+%s*[—–-]%s*%a+%d+$') or -- letterdigit <range separator> letterdigit
mw.ustring.match (item, '^%d+%s*[—–-]%s*%d+$') or -- digit <range separator> digit
mw.ustring.match (item, '^%a+%s*[—–-]%s*%a+$') then -- letter<range separator> letter
item = mw.ustring.gsub (item, '(%w+)%s*[—–-]%s*(%w+)', '<span class="nowrap">%1–</span>%2'); -- replace <range separator> with endash, remove extraneous space characters
else
-- item = mw.ustring.gsub (item, '%s*[—–-]%s*', '–'); -- disabled; here when 'unlike' items so return <item> as is
end
end
table.insert (out, item); -- add the (possibly modified) item to the output table
end
local temp_str = ''; -- concatenate the output table into a comma separated string
temp_str, accept = has_accept_as_written (table.concat (out, ', ')); -- remove accept-this-as-written markup when it wraps all of concatenated out
if accept then
temp_str = has_accept_as_written (str); -- when global markup removed, return original str; do it this way to suppress boolean second return value
return temp_str:gsub(",", ","):gsub(";", ";");
else
return temp_str:gsub(",", ","):gsub(";", ";"); -- else, return assembled temp_str
end
end
--[=[-------------------------< M A K E _ W I K I L I N K >----------------------------------------------------
Makes a wikilink; when both link and display text is provided, returns a wikilink in the form [[L|D]]; if only
link is provided (or link and display are the same), returns a wikilink in the form [[L]]; if neither are
provided or link is omitted, returns an empty string.
]=]
local function make_wikilink (link, display)
if not is_set (link) then return '' end
if is_set (display) and link ~= display then
return table.concat ({'[[', link, '|', display, ']]'});
else
return table.concat ({'[[', link, ']]'});
end
end
--[[--------------------------< S E T _ M E S S A G E >----------------------------------------------------------
Sets an error message using the ~/Configuration error_conditions{} table along with arguments supplied in the function
call, inserts the resulting message in z.error_msgs_t{} sequence table, and returns the error message.
<error_id> – key value for appropriate error handler in ~/Configuration error_conditions{} table
<arguments> – may be a single string or a sequence table of multiple strings to be subsititued into error_conditions[error_id].message
<raw> – boolean
true – causes this function to return the error message not wrapped in visible-error, hidden-error span tag;
returns error_conditions[error_id].hidden as a second return value
does not add message to z.error_msgs_t sequence table
false, nil – adds message wrapped in visible-error, hidden-error span tag to z.error_msgs_t
returns the error message wrapped in visible-error, hidden-error span tag; there is no second return value
<prefix> – string to be prepended to <message> -- TODO: remove support for these unused(?) arguments?
<suffix> – string to be appended to <message>
TODO: change z.error_cats_t and z.maint_cats_t to have the form cat_name = true? this to avoid dups without having to have an extra table
]]
local added_maint_cats = {} -- list of maintenance categories that have been added to z.maint_cats_t; TODO: figure out how to delete this table
local function set_message (error_id, arguments, raw, prefix, suffix)
local error_state = cfg.error_conditions[error_id];
prefix = prefix or '';
suffix = suffix or '';
if error_state == nil then
error (cfg.messages['undefined_error'] .. ': ' .. error_id); -- because missing error handler in Module:Citation/CS1/Configuration
elseif is_set (error_state.category) then
if error_state.message then -- when error_state.message defined, this is an error message
table.insert (z.error_cats_t, error_state.category);
else
if not added_maint_cats[error_id] then
added_maint_cats[error_id] = true; -- note that we've added this category
table.insert (z.maint_cats_t, substitute (error_state.category, arguments)); -- make cat name then add to table
end
return; -- because no message, nothing more to do
end
end
local message = substitute (error_state.message, arguments);
message = table.concat (
{
message,
' (',
make_wikilink (
table.concat (
{
cfg.messages['help page link'],
'#',
error_state.anchor
}),
cfg.messages['help page label']),
')'
});
z.error_ids_t[error_id] = true;
if z.error_ids_t['err_citation_missing_title'] and -- if missing-title error already noted
in_array (error_id, {'err_bare_url_missing_title', 'err_trans_missing_title'}) then -- and this error is one of these
return '', false; -- don't bother because one flavor of missing title is sufficient
end
message = table.concat ({prefix, message, suffix});
if true == raw then
return message, error_state.hidden; -- return message not wrapped in visible-error, hidden-error span tag
end
message = error_comment (message, error_state.hidden); -- wrap message in visible-error, hidden-error span tag
table.insert (z.error_msgs_t, message); -- add it to the messages sequence table
return message; -- and done; return value generally not used but is used as a flag in various functions of ~/Identifiers
end
--[[-------------------------< I S _ A L I A S _ U S E D >-----------------------------------------------------
This function is used by select_one() to determine if one of a list of alias parameters is in the argument list
provided by the template.
Input:
args – pointer to the arguments table from calling template
alias – one of the list of possible aliases in the aliases lists from Module:Citation/CS1/Configuration
index – for enumerated parameters, identifies which one
enumerated – true/false flag used to choose how enumerated aliases are examined
value – value associated with an alias that has previously been selected; nil if not yet selected
selected – the alias that has previously been selected; nil if not yet selected
error_list – list of aliases that are duplicates of the alias already selected
Returns:
value – value associated with alias we selected or that was previously selected or nil if an alias not yet selected
selected – the alias we selected or the alias that was previously selected or nil if an alias not yet selected
]]
local function is_alias_used (args, alias, index, enumerated, value, selected, error_list)
if enumerated then -- is this a test for an enumerated parameters?
alias = alias:gsub ('#', index); -- replace '#' with the value in index
else
alias = alias:gsub ('#', ''); -- remove '#' if it exists
end
if is_set (args[alias]) then -- alias is in the template's argument list
if value ~= nil and selected ~= alias then -- if we have already selected one of the aliases
local skip;
for _, v in ipairs (error_list) do -- spin through the error list to see if we've added this alias
if v == alias then
skip = true;
break; -- has been added so stop looking
end
end
if not skip then -- has not been added so
table.insert (error_list, alias); -- add error alias to the error list
end
else
value = args[alias]; -- not yet selected an alias, so select this one
selected = alias;
end
end
return value, selected; -- return newly selected alias, or previously selected alias
end
--[[--------------------------< A D D _ M A I N T _ C A T >------------------------------------------------------
Adds a category to z.maint_cats_t using names from the configuration file with additional text if any.
To prevent duplication, the added_maint_cats table lists the categories by key that have been added to z.maint_cats_t.
]]
local function add_maint_cat (key, arguments)
if not added_maint_cats [key] then
added_maint_cats [key] = true; -- note that we've added this category
table.insert (z.maint_cats_t, substitute (cfg.maint_cats [key], arguments)); -- make name then add to table
end
end
--[[--------------------------< A D D _ P R O P _ C A T >--------------------------------------------------------
Adds a category to z.prop_cats_t using names from the configuration file with additional text if any.
foreign_lang_source and foreign_lang_source_2 keys have a language code appended to them so that multiple languages
may be categorized but multiples of the same language are not categorized.
added_prop_cats is a table declared in page scope variables above
]]
local added_prop_cats = {}; -- list of property categories that have been added to z.prop_cats_t
local function add_prop_cat (key, arguments, key_modifier)
local key_modified = key .. ((key_modifier and key_modifier) or ''); -- modify <key> with <key_modifier> if present and not nil
if not added_prop_cats [key_modified] then
added_prop_cats [key_modified] = true; -- note that we've added this category
table.insert (z.prop_cats_t, substitute (cfg.prop_cats [key], arguments)); -- make name then add to table
table.insert (z.prop_keys_t, 'cs1-prop-' .. key); -- convert key to class for use in the citation's <cite> tag
end
end
--[[--------------------------< S A F E _ F O R _ I T A L I C S >----------------------------------------------
Protects a string that will be wrapped in wiki italic markup '' ... ''
Note: We cannot use <i> for italics, as the expected behavior for italics specified by ''...'' in the title is that
they will be inverted (i.e. unitalicized) in the resulting references. In addition, <i> and '' tend to interact
poorly under Mediawiki's HTML tidy.
]]
local function safe_for_italics (str)
if not is_set (str) then return str end
if str:sub (1, 1) == "'" then str = "<span></span>" .. str; end
if str:sub (-1, -1) == "'" then str = str .. "<span></span>"; end
return str:gsub ('\n', ' '); -- Remove newlines as they break italics.
end
--[[--------------------------< W R A P _ S T Y L E >----------------------------------------------------------
Applies styling to various parameters. Supplied string is wrapped using a message_list configuration taking one
argument; protects italic styled parameters. Additional text taken from citation_config.presentation - the reason
this function is similar to but separate from wrap_msg().
]]
local function wrap_style (key, str)
if not is_set (str) then
return "";
elseif in_array (key, {'italic-title', 'trans-italic-title'}) then
str = safe_for_italics (str);
end
return substitute (cfg.presentation[key], {str});
end
--[[--------------------------< M A K E _ S E P _ L I S T >------------------------------------------------------------
make a separated list of items using provided separators.
<sep_list> - typically '<comma><space>'
<sep_list_pair> - typically '<space>and<space>'
<sep_list_end> - typically '<comma><space>and<space>' or '<comma><space>&<space>'
defaults to cfg.presentation['sep_list'], cfg.presentation['sep_list_pair'], and cfg.presentation['sep_list_end']
if <sep_list_end> is specified, <sep_list> and <sep_list_pair> must also be supplied
]]
local function make_sep_list (count, list_seq, sep_list, sep_list_pair, sep_list_end)
local list = '';
if not sep_list then -- set the defaults
sep_list = cfg.presentation['sep_list'];
sep_list_pair = cfg.presentation['sep_list_pair'];
sep_list_end = cfg.presentation['sep_list_end'];
end
if 2 >= count then
list = table.concat (list_seq, sep_list_pair); -- insert separator between two items; returns list_seq[1] then only one item
elseif 2 < count then
list = table.concat (list_seq, sep_list, 1, count - 1); -- concatenate all but last item with plain list separator
list = table.concat ({list, list_seq[count]}, sep_list_end); -- concatenate last item onto end of <list> with final separator
end
return list;
end
local function make_sep_error_list (count, list_seq, sep_list, sep_list_pair, sep_list_end)
local list = '';
local i; local rep_count;
local function append_string(str1,str2)
local ret_str='';
local rep_count;
ret_str, rep_count = mw.ustring.gsub(str1, "</span>$", str2 .. "</span>")
if rep_count==0 then
ret_str = str1 .. str2;
end
return ret_str;
end
if not sep_list then -- set the defaults
sep_list = cfg.presentation['sep_list'];
sep_list_pair = cfg.presentation['sep_list_pair'];
sep_list_end = cfg.presentation['sep_list_end'];
end
if 1==count then
list = list_seq[1]
elseif 2 == count then
list = append_string(list_seq[1], sep_list_pair) .. list_seq[2]
elseif 2 < count then
for i = 1, count-2, 1 do
list = list .. append_string(list_seq[i], sep_list)
end
list = list .. append_string(list_seq[count-1], sep_list_end) .. list_seq[count]
end
return list;
end
--[[--------------------------< S E L E C T _ O N E >----------------------------------------------------------
Chooses one matching parameter from a list of parameters to consider. The list of parameters to consider is just
names. For parameters that may be enumerated, the position of the numerator in the parameter name is identified
by the '#' so |author-last1= and |author1-last= are represented as 'author-last#' and 'author#-last'.
Because enumerated parameter |<param>1= is an alias of |<param>= we must test for both possibilities.
Generates an error if more than one match is present.
]]
local function select_one (args, aliases_list, error_condition, index)
local value = nil; -- the value assigned to the selected parameter
local selected = ''; -- the name of the parameter we have chosen
local error_list = {};
if index ~= nil then index = tostring(index); end
for _, alias in ipairs (aliases_list) do -- for each alias in the aliases list
if alias:match ('#') then -- if this alias can be enumerated
if '1' == index then -- when index is 1 test for enumerated and non-enumerated aliases
value, selected = is_alias_used (args, alias, index, false, value, selected, error_list); -- first test for non-enumerated alias
end
value, selected = is_alias_used (args, alias, index, true, value, selected, error_list); -- test for enumerated alias
else
value, selected = is_alias_used (args, alias, index, false, value, selected, error_list); -- test for non-enumerated alias
end
end
if #error_list > 0 and 'none' ~= error_condition then -- for cases where this code is used outside of extract_names()
for i, v in ipairs (error_list) do
error_list[i] = wrap_style ('parameter', v);
end
table.insert (error_list, wrap_style ('parameter', selected));
set_message (error_condition, {make_sep_list (#error_list, error_list)});
end
return value, selected;
end
--[=[-------------------------< R E M O V E _ W I K I _ L I N K >----------------------------------------------
Gets the display text from a wikilink like [[A|B]] or [[B]] gives B
The str:gsub() returns either A|B froma [[A|B]] or B from [[B]] or B from B (no wikilink markup).
In l(), l:gsub() removes the link and pipe (if they exist); the second :gsub() trims whitespace from the label
if str was wrapped in wikilink markup. Presumably, this is because without wikimarkup in str, there is no match
in the initial gsub, the replacement function l() doesn't get called.
]=]
local function remove_wiki_link (str)
return (str:gsub ("%[%[([^%[%]]*)%]%]", function(l)
return l:gsub ("^[^|]*|(.*)$", "%1" ):gsub ("^%s*(.-)%s*$", "%1");
end));
end
--[=[-------------------------< I S _ W I K I L I N K >--------------------------------------------------------
Determines if str is a wikilink, extracts, and returns the wikilink type, link text, and display text parts.
If str is a complex wikilink ([[L|D]]):
returns wl_type 2 and D and L from [[L|D]];
if str is a simple wikilink ([[D]])
returns wl_type 1 and D from [[D]] and L as empty string;
if not a wikilink:
returns wl_type 0, str as D, and L as empty string.
trims leading and trailing whitespace and pipes from L and D ([[L|]] and [[|D]] are accepted by MediaWiki and
treated like [[D]]; while [[|D|]] is not accepted by MediaWiki, here, we accept it and return D without the pipes).
]=]
local function is_wikilink (str)
local D, L
local wl_type = 2; -- assume that str is a complex wikilink [[L|D]]
if not str:match ('^%[%[[^%]]+%]%]$') then -- is str some sort of a wikilink (must have some sort of content)
return 0, str, ''; -- not a wikilink; return wl_type as 0, str as D, and empty string as L
end
L, D = str:match ('^%[%[([^|]+)|([^%]]+)%]%]$'); -- get L and D from [[L|D]]
if not is_set (D) then -- if no separate display
D = str:match ('^%[%[([^%]]*)|*%]%]$'); -- get D from [[D]] or [[D|]]
wl_type = 1;
end
D = mw.text.trim (D, '%s|'); -- trim white space and pipe characters
return wl_type, D, L or '';
end
--[[--------------------------< S T R I P _ A P O S T R O P H E _ M A R K U P >--------------------------------
Strip wiki italic and bold markup from argument so that it doesn't contaminate COinS metadata.
This function strips common patterns of apostrophe markup. We presume that editors who have taken the time to
markup a title have, as a result, provided valid markup. When they don't, some single apostrophes are left behind.
Returns the argument without wiki markup and a number; the number is more-or-less meaningless except as a flag
to indicate that markup was replaced; do not rely on it as an indicator of how many of any kind of markup was
removed; returns the argument and nil when no markup removed
]]
local function strip_apostrophe_markup (argument)
if not is_set (argument) then
return argument, nil; -- no argument, nothing to do
end
if nil == argument:find ( "''", 1, true ) then -- Is there at least one double apostrophe? If not, exit.
return argument, nil;
end
local flag;
while true do
if argument:find ("'''''", 1, true) then -- bold italic (5)
argument, flag = argument:gsub ("%'%'%'%'%'", ""); -- remove all instances of it
elseif argument:find ("''''", 1, true) then -- italic start and end without content (4)
argument, flag=argument:gsub ("%'%'%'%'", "");
elseif argument:find ("'''", 1, true) then -- bold (3)
argument, flag=argument:gsub ("%'%'%'", "");
elseif argument:find ("''", 1, true) then -- italic (2)
argument, flag = argument:gsub ("%'%'", "");
else
break;
end
end
return argument, flag; -- done
end
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------
Sets local cfg table to same (live or sandbox) as that used by the other modules.
]]
local function set_selected_modules (cfg_table_ptr)
cfg = cfg_table_ptr;
end
--[[--------------------------< E X P O R T S >----------------------------------------------------------------
]]
return {
add_maint_cat = add_maint_cat, -- exported functions
add_prop_cat = add_prop_cat,
error_comment = error_comment,
has_accept_as_written = has_accept_as_written,
hyphen_to_dash = hyphen_to_dash,
in_array = in_array,
is_set = is_set,
is_wikilink = is_wikilink,
make_sep_list = make_sep_list,
make_wikilink = make_wikilink,
remove_wiki_link = remove_wiki_link,
safe_for_italics = safe_for_italics,
select_one = select_one,
set_message = set_message,
set_selected_modules = set_selected_modules,
strip_apostrophe_markup = strip_apostrophe_markup,
substitute = substitute,
wrap_style = wrap_style,
make_sep_error_list = make_sep_error_list,
z = z, -- exported table
}
iaow6eqa3ggpwjfsqt0ohhhlzzci2jj
وحدة:Citation/CS1/Whitelist/شرح
828
63185
275412
2026-09-15T08:57:59Z
حبيشان
29714
استيراد من ar.wiktionary.org
275412
wikitext
text/x-wiki
{{استخدام واسع|+971388}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
{{وحدات CS1}}
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
p6xz9imj1wa6wn7t42fasr4n637cp73
وحدة:Citation/CS1/Whitelist/ملعب
828
63186
275413
2026-09-15T08:58:02Z
حبيشان
29714
استيراد من ar.wiktionary.org
275413
Scribunto
text/plain
--[[--------------------------< S U P P O R T E D P A R A M E T E R S >--------------------------------------
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:
true - these parameters are valid and supported parameters
false - these parameters are deprecated but still supported
tracked - these parameters are valid and supported parameters tracked in an eponymous properties category
nil - these parameters are no longer supported. remove entirely
]]
local basic_arguments_t = {
['noltr'] = true, --# Added by Mr. Ibrahem to stop ltr formatting
['access-date'] = true,
['accessdate'] = true,
['agency'] = true,
['archive-date'] = true,
['archive-format'] = true,
['archive-url'] = true,
['archivedate'] = true,
['archiveurl'] = true,
['article-format'] = true,
['article-number'] = true, -- {{cite journal}}, {{cite conference}}; {{citation}} when |journal= has a value
['article-url-access'] = true,
['article-url'] = true,
['article'] = true,
['arxiv'] = true, -- cite arxiv; here because allowed in cite ... as identifier
['asin-tld'] = true,
['asin'] = true,
['ASIN'] = true,
['at'] = true,
['author-first'] = true,
['author-given'] = true,
['author-last'] = true,
['author-link'] = true,
['author-mask'] = true,
['author-surname'] = true,
['author'] = true,
['authorlink'] = true,
['authors'] = true,
['bibcode-access'] = true,
['bibcode'] = true,
['biorxiv'] = true, -- cite biorxiv; here because allowed in cite ... as identifier
['chapter-format'] = true,
['chapter-url-access'] = true,
['chapter-url'] = true,
['chapter'] = true,
['citeseerx'] = true, -- cite citeseerx; here because allowed in cite ... as identifier
['collaboration'] = true,
['contribution-format'] = true,
['contribution-url-access'] = true,
['contribution-url'] = true,
['contribution'] = true,
['contributor-first'] = true,
['contributor-given'] = true,
['contributor-last'] = true,
['contributor-link'] = true,
['contributor-mask'] = true,
['contributor-surname'] = true,
['contributor'] = true,
['date'] = true,
['department'] = true,
['df'] = true,
['dictionary'] = true,
['display-authors'] = true,
['display-contributors'] = true,
['display-editors'] = true,
['display-interviewers'] = true,
['display-subjects'] = true,
['display-translators'] = true,
['doi-access'] = true,
['doi-broken-date'] = true,
['doi'] = true,
['DOI'] = true,
['edition'] = true,
['editor-first'] = true,
['editor-given'] = true,
['editor-last'] = true,
['editor-link'] = true,
['editor-mask'] = true,
['editor-surname'] = true,
['editor'] = true,
['eissn'] = true,
['EISSN'] = true,
['encyclopaedia'] = true,
['encyclopedia'] = true,
['entry-format'] = true,
['entry-url-access'] = true,
['entry-url'] = true,
['entry'] = true,
['eprint'] = true, -- cite arxiv; here because allowed in cite ... as identifier
['first'] = true,
['format'] = true,
['given'] = true,
['hdl-access'] = true,
['hdl'] = true,
['HDL'] = true,
['hijri-date'] = true,
['host'] = true, -- unique to certain templates?
['id'] = true,
['ID'] = true,
['institution'] = true, -- constrain to cite thesis?
['interviewer-first'] = true,
['interviewer-given'] = true,
['interviewer-last'] = true,
['interviewer-link'] = true,
['interviewer-mask'] = true,
['interviewer-surname'] = true,
['interviewer'] = true,
['isbn'] = true,
['ISBN'] = true,
['ismn'] = true,
['ISMN'] = true,
['issn'] = true,
['ISSN'] = true,
['issue'] = true,
['jfm'] = true,
['JFM'] = true,
['journal'] = true,
['jstor-access'] = true,
['jstor'] = true,
['JSTOR'] = true,
['lang'] = true,
['language'] = true,
['last'] = true,
['lccn'] = true,
['LCCN'] = true,
['location'] = true,
['magazine'] = true,
['medium'] = true,
['medrxiv'] = true, -- cite medrxiv; here because allowed in cite ... as identifier
['minutes'] = true, -- constrain to cite AV media and podcast?
['mode'] = true,
['mr'] = true,
['MR'] = true,
['name-list-style'] = true,
['newspaper'] = true,
['no-pp'] = true,
['no-tracking'] = true,
['number'] = true,
['oclc'] = true,
['OCLC'] = true,
['ol-access'] = true,
['ol'] = true,
['OL'] = true,
['orig-date'] = true,
['orig-year'] = true,
['origyear'] = true,
['osti-access'] = true,
['osti'] = true,
['OSTI'] = true,
['others'] = true,
['p'] = true,
['page'] = true,
['pages'] = true,
['people'] = true,
['periodical'] = true,
['place'] = true,
['pmc-embargo-date'] = true,
['pmc'] = true,
['PMC'] = true,
['pmid'] = true,
['PMID'] = true,
['postscript'] = true,
['pp'] = true,
['publication-date'] = true,
['publication-place'] = true,
['publisher'] = true,
['quotation'] = true,
['quote-page'] = true,
['quote-pages'] = true,
['quote'] = true,
['ref'] = true,
['rfc'] = true,
['RFC'] = true,
['s2cid-access'] = true,
['s2cid'] = true,
['S2CID'] = true,
['sbn'] = true,
['SBN'] = true,
['scale'] = true,
['script-article'] = true,
['script-chapter'] = true,
['script-contribution'] = true,
['script-encyclopaedia'] = true,
['script-encyclopedia'] = true,
['script-entry'] = true,
['script-journal'] = true,
['script-magazine'] = true,
['script-newspaper'] = true,
['script-periodical'] = true,
['script-quote'] = true,
['script-section'] = true,
['script-title'] = true,
['script-website'] = true,
['script-work'] = true,
['section-format'] = true,
['section-url-access'] = true,
['section-url'] = true,
['section'] = true,
['series'] = true,
['ssrn-access'] = true,
['SSRN'] = true,
['ssrn'] = true, -- cite ssrn; these three here because allowed in cite ... as identifier
['subject-link'] = true,
['subject-mask'] = true,
['subject'] = true,
['surname'] = true,
['template-doc-demo'] = true,
['time-caption'] = true, -- constrain to cite av media and podcast?
['time'] = true, -- constrain to cite av media and podcast?
['title-link'] = true,
['title-note'] = true,
['title'] = true,
['trans-article'] = true,
['trans-chapter'] = true,
['trans-contribution'] = true,
['trans-encyclopaedia'] = true,
['trans-encyclopedia'] = true,
['trans-entry'] = true,
['trans-journal'] = true,
['trans-magazine'] = true,
['trans-newspaper'] = true,
['trans-periodical'] = true,
['trans-quote'] = true,
['trans-section'] = true,
['trans-title'] = true,
['trans-website'] = true,
['trans-work'] = true,
['translator-first'] = true,
['translator-given'] = true,
['translator-last'] = true,
['translator-link'] = true,
['translator-mask'] = true,
['translator-surname'] = true,
['translator'] = true,
['type'] = true,
['url-access'] = true,
['url-status'] = true,
['url'] = true,
['URL'] = true,
['vauthors'] = true,
['veditors'] = true,
['version'] = true,
['via'] = true,
['volume'] = true,
['website'] = true,
['wikidatacite'] = true,
['work'] = true,
['year'] = true,
['zbl'] = true,
['ZBL'] = true,
["air-date"] = true,
["airdate"] = true,
["credits"] = true,
["episode-link"] = true,
["mailing-list"] = true,
["nopp"] = true,
["آخرون"] = true,
["أخير"] = true,
["أرخايف"] = true,
["أرقام الصفحات"] = true,
["أرقم صفحات"] = true,
["أشخاص"] = true,
["أكلس"] = true,
["أول"] = true,
["إصدار"] = true,
["إظهار المؤلفين"] = true,
["إظهار المحررين"] = true,
["إظهار-المؤلفين"] = true,
["إظهار-المحررين"] = true,
["اخير"] = true,
["اسم الصحيفة"] = true,
["اسم المجلة"] = true,
["اسم المعجم"] = true,
["اسم الموسوعة"] = true,
["اسمن"] = true,
["اصدار"] = true,
["اقتباس"] = true,
["الأخير"] = true,
["الأول"] = true,
["الإصدار"] = true,
["الاصدار"] = true,
["الاول"] = true,
["التاريخ"] = true,
["التاريخ الهجري"] = true,
["التسجيل"] = true,
["التنسيق"] = true,
["الجزء"] = true,
["السنة"] = true,
["الصفحات"] = true,
["الصفحة"] = true,
["الصيغة"] = true,
["الطبعة"] = true,
["العدد"] = true,
["العمل"] = true,
["العنوان الأجنبي"] = true,
["العنوان المترجم"] = true,
["العنوان بالعربي"] = true,
["العنوان"] = true,
["الفصل"] = true,
["القائمة البريدية"] = true,
["اللغة"] = true,
["المؤسسة"] = true,
["المؤلف"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["المترجم-الأخير"] = true,
["المترجم-الأول"] = true,
["المترجم-وصلة"] = true,
["المترجم"] = true,
["المجلد"] = true,
["المحاور"] = true,
["المحاورون"] = true,
["المحرر"] = true,
["المحقق"] = true,
["المسار"] = true,
["المصدر"] = true,
["المعرف"] = true,
["المقر"] = true,
["المقياس"] = true,
["المكان"] = true,
["المكتبة_المفتوحة"] = true,
["الموزع"] = true,
["الموضوع"] = true,
["الموقع"] = true,
["الناشر"] = true,
["النوع"] = true,
["الوقت"] = true,
["اول"] = true,
["ببمد_سنترال"] = true,
["بيب_كود"] = true,
["تاريخ أرشيف"] = true,
["تاريخ الأرشيف"] = true,
["تاريخ النشر"] = true,
["تاريخ الوصول"] = true,
["تاريخ هجري"] = true,
["تاريخ وصول"] = true,
["تاريخ-الأرشيف"] = true,
["تاريخ-النشر"] = true,
["تاريخ-الوصول"] = true,
["تاريخ"] = true,
["تنسيق الفصل"] = true,
["تنسيق"] = true,
["ج"] = true,
["جايستور"] = true,
["جريدة"] = true,
["حالة المسار"] = true,
["دقيقة"] = true,
["دورية محكمة"] = true,
["دورية"] = true,
["دوي"] = true,
["ردمك"] = true,
["رقم الصفحة"] = true,
["رقم الطبعة"] = true,
["رقم صفحة"] = true,
["رقم-المقالة"] = true,
["سلسلة"] = true,
["سنة النشر الأصلية"] = true,
["سنة"] = true,
["ص"] = true,
["صحيفة"] = true,
["صفحات"] = true,
["صفحة"] = true,
["صيغة الأرشيف"] = true,
["صيغة الفصل"] = true,
["صيغة-الأرشيف"] = true,
["صيغة-الفصل"] = true,
["صيغة"] = true,
["طبعة"] = true,
["طلب_تعليقات"] = true,
["عبر"] = true,
["عدة مؤلفين"] = true,
["عدة محررين"] = true,
["عمل"] = true,
["عنوان أجنبي"] = true,
["عنوان مترجم"] = true,
["عنوان"] = true,
["في"] = true,
["كونغرس"] = true,
["لغة"] = true,
["مؤلف الأخير"] = true,
["مؤلف الأول"] = true,
["مؤلف وصلة"] = true,
["مؤلف-الأخير"] = true,
["مؤلف-الأول"] = true,
["مؤلف-قناع"] = true,
["مؤلف-وصلة"] = true,
["مؤلف"] = true,
["مترجم الأخير"] = true,
["مترجم الأول"] = true,
["مترجم وصلة"] = true,
["مترجم-الأخير"] = true,
["مترجم-الأول"] = true,
["مترجم-قناع"] = true,
["مترجم-وصلة"] = true,
["مترجم"] = true,
["مجلة"] = true,
["محرر الأخير"] = true,
["محرر الأول"] = true,
["محرر وصلة"] = true,
["محرر-الأخير"] = true,
["محرر-الأول"] = true,
["محرر-قناع"] = true,
["محرر-وصلة"] = true,
["محرر"] = true,
["مرجع"] = true,
["مسار أرشيف"] = true,
["مسار الأرشيف"] = true,
["مسار الفصل"] = true,
["مسار-الأرشيف"] = true,
["مسار-الفصل"] = true,
["مسار"] = true,
["مشارك-الأخير"] = true,
["مشارك-الأول"] = true,
["مشارك-قناع"] = true,
["مشارك-وصلة"] = true,
["مشارك"] = true,
["مصدر"] = true,
["مقر"] = true,
["مكان النشر"] = true,
["مكان-النشر"] = true,
["مكان"] = true,
["من عمل"] = true,
["موسوعة"] = true,
["موقع"] = true,
["ناشر"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة المؤلف"] = true,
["وصلة المترجم"] = true,
["وصلة المحرر"] = true,
["وصلة مؤلف"] = true,
["وصلة مترجم"] = true,
["وصلة محرر"] = true,
["وصلة-العنوان"] = true,
["وصلة-المؤلف"] = true,
["وصلة-المترجم"] = true,
["وصلة-المحرر"] = true,
["وصلة-مؤلف"] = true,
["وصلة-مترجم"] = true,
["وصلة-محرر"] = true,
["وصلة"] = true,
["وكالة"] = true,
}
local numbered_arguments_t = {
['author#'] = true,
['author-first#'] = true,
['author#-first'] = true,
['author-given#'] = true,
['author#-given'] = true,
['author-last#'] = true,
['author#-last'] = true,
['author-surname#'] = true,
['author#-surname'] = true,
['author-link#'] = true,
['author#-link'] = true,
['authorlink#'] = true,
['author#link'] = true,
['author-mask#'] = true,
['author#-mask'] = true,
['contributor#'] = true,
['contributor-first#'] = true,
['contributor#-first'] = true,
['contributor-given#'] = true,
['contributor#-given'] = true,
['contributor-last#'] = true,
['contributor#-last'] = true,
['contributor-surname#'] = true,
['contributor#-surname'] = true,
['contributor-link#'] = true,
['contributor#-link'] = true,
['contributor-mask#'] = true,
['contributor#-mask'] = true,
['editor#'] = true,
['editor-first#'] = true,
['editor#-first'] = true,
['editor-given#'] = true,
['editor#-given'] = true,
['editor-last#'] = true,
['editor#-last'] = true,
['editor-surname#'] = true,
['editor#-surname'] = true,
['editor-link#'] = true,
['editor#-link'] = true,
['editor-mask#'] = true,
['editor#-mask'] = true,
['first#'] = true,
['given#'] = true,
['host#'] = true,
['interviewer#'] = true,
['interviewer-first#'] = true,
['interviewer#-first'] = true,
['interviewer-given#'] = true,
['interviewer#-given'] = true,
['interviewer-last#'] = true,
['interviewer#-last'] = true,
['interviewer-surname#'] = true,
['interviewer#-surname'] = true,
['interviewer-link#'] = true,
['interviewer#-link'] = true,
['interviewer-mask#'] = true,
['interviewer#-mask'] = true,
['last#'] = true,
['subject#'] = true,
['subject-link#'] = true,
['subject#-link'] = true,
['subject-mask#'] = true,
['subject#-mask'] = true,
['surname#'] = true,
['translator#'] = true,
['translator-first#'] = true,
['translator#-first'] = true,
['translator-given#'] = true,
['translator#-given'] = true,
['translator-last#'] = true,
['translator#-last'] = true,
['translator-surname#'] = true,
['translator#-surname'] = true,
['translator-link#'] = true,
['translator#-link'] = true,
['translator-mask#'] = true,
['translator#-mask'] = true,
["أخير#"] = true,
["أول#"] = true,
["اخير#"] = true,
["الأخير#"] = true,
["الأول#"] = true,
["الاول#"] = true,
["المؤلف#"] = true,
["المترجم#"] = true,
["المترجم#-الأخير"] = true,
["المترجم#-الأول"] = true,
["المترجم#-وصلة"] = true,
["المترجم-الأخير#"] = true,
["المترجم-الأول#"] = true,
["المحرر#"] = true,
["الموضوع"] = true,
["اول#"] = true,
["مؤلف الأخير#"] = true,
["مؤلف الأول#"] = true,
["مؤلف#"] = true,
["مؤلف# الأخير"] = true,
["مؤلف# الأول"] = true,
["مؤلف# وصلة"] = true,
["مؤلف#-الأخير"] = true,
["مؤلف#-الأول"] = true,
["مؤلف#-قناع"] = true,
["مؤلف#-وصلة"] = true,
["مؤلف-الأخير#"] = true,
["مؤلف-الأول#"] = true,
["مترجم الأخير#"] = true,
["مترجم الأول#"] = true,
["مترجم#"] = true,
["مترجم# الأخير"] = true,
["مترجم# الأول"] = true,
["مترجم# وصلة"] = true,
["مترجم#-الأخير"] = true,
["مترجم#-الأول"] = true,
["مترجم#-قناع"] = true,
["مترجم#-وصلة"] = true,
["مترجم-الأخير#"] = true,
["مترجم-الأول#"] = true,
["محرر الأخير#"] = true,
["محرر الأول#"] = true,
["محرر#"] = true,
["محرر# الأخير"] = true,
["محرر# الأول"] = true,
["محرر# وصلة"] = true,
["محرر#-الأخير"] = true,
["محرر#-الأول"] = true,
["محرر#-قناع"] = true,
["محرر#-وصلة"] = true,
["محرر-الأخير#"] = true,
["محرر-الأول#"] = true,
["محرر-وصلة#"] = true,
["مشارك#"] = true,
["مشارك#-الأخير"] = true,
["مشارك#-الأول"] = true,
["مشارك#-قناع"] = true,
["مشارك#-وصلة"] = true,
["مشارك-الأخير#"] = true,
["مشارك-الأول#"] = true,
["وصلة المؤلف#"] = true,
["وصلة المترجم#"] = true,
["وصلة المحرر#"] = true,
["وصلة مؤلف#"] = true,
["وصلة مترجم#"] = true,
["وصلة محرر#"] = true,
["وصلة-المؤلف#"] = true,
["وصلة-المترجم#"] = true,
["وصلة-المحرر#"] = true,
["وصلة-مؤلف#"] = true,
["وصلة-مترجم#"] = true,
["وصلة-محرر#"] = true,
}
--[[--------------------------< P R E P R I N T S U P P O R T E D P A R A M E T E R S >--------------------
Cite arXiv, cite biorxiv, cite citeseerx, cite medrxiv, and cite ssrn are preprint templates that use the limited
set of parameters defined in the limited_basic_arguments and limited_numbered_arguments tables. Those lists are
supplemented with a template-specific list of parameters that are required by the particular template and may be
exclusive to one of the preprint templates. Some of these parameters may also be available to the general cs1|2
templates.
Same conventions for true/false/tracked/nil as above.
]]
local preprint_arguments_t = {
arxiv = {
['arxiv'] = true, -- cite arxiv and arxiv identifiers
['class'] = true,
['eprint'] = true, -- cite arxiv and arxiv identifiers
["أرخايف"] = true,
["صنف"] = true,
["صنف الأرشيف"] = true,
},
biorxiv = {
['biorxiv'] = true,
},
citeseerx = {
['citeseerx'] = true,
},
medrxiv = {
['medrxiv'] = true,
},
ssrn = {
['ssrn'] = true,
['SSRN'] = true,
['ssrn-access'] = true,
},
}
--[[--------------------------< L I M I T E D S U P P O R T E D P A R A M E T E R S >----------------------
cite arxiv, cite biorxiv, cite citeseerx, cite medrxiv, and cite ssrn templates are preprint templates so are
allowed only a limited subset of parameters allowed to all other cs1|2 templates. The limited subset is defined
here.
This list of parameters also used by {{cite document}}
Same conventions for true/false/tracked/nil as above.
]]
local limited_basic_arguments_t = {
['at'] = true,
['author-first'] = true,
['author-given'] = true,
['author-last'] = true,
['author-link'] = true,
['author-mask'] = true,
['author-surname'] = true,
['author'] = true,
['authorlink'] = true,
['authors'] = true,
['collaboration'] = true,
['date'] = true,
['df'] = true,
['display-authors'] = true,
['first'] = true,
['given'] = true,
['language'] = true,
['last'] = true,
['mode'] = true,
['name-list-style'] = true,
['no-tracking'] = true,
['p'] = true,
['page'] = true,
['pages'] = true,
['postscript'] = true,
['pp'] = true,
['quotation'] = true,
['quote'] = true,
['ref'] = true,
['surname'] = true,
['template-doc-demo'] = true,
['title'] = true,
['trans-title'] = true,
['vauthors'] = true,
['year'] = true,
["air-date"] = true,
["airdate"] = true,
["credits"] = true,
["display-subjects"] = true,
["host"] = true,
["lang"] = true,
["people"] = true,
["subject-link"] = true,
["subject-mask"] = true,
["subject"] = true,
["أخير"] = true,
["أرقام الصفحات"] = true,
["أرقم صفحات"] = true,
["أشخاص"] = true,
["أول"] = true,
["إظهار المؤلفين"] = true,
["إظهار-المؤلفين"] = true,
["اخير"] = true,
["اقتباس"] = true,
["الأخير"] = true,
["الأول"] = true,
["الاول"] = true,
["التاريخ"] = true,
["السنة"] = true,
["الصفحات"] = true,
["الصفحة"] = true,
["العنوان الأجنبي"] = true,
["العنوان المترجم"] = true,
["العنوان بالعربي"] = true,
["العنوان"] = true,
["اللغة"] = true,
["المؤلف"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["الموضوع"] = true,
["اول"] = true,
["تاريخ"] = true,
["رقم الصفحة"] = true,
["رقم صفحة"] = true,
["سنة"] = true,
["ص"] = true,
["صفحات"] = true,
["صفحة"] = true,
["عدة مؤلفين"] = true,
["عنوان أجنبي"] = true,
["عنوان مترجم"] = true,
["عنوان"] = true,
["في"] = true,
["لغة"] = true,
["مؤلف الأخير"] = true,
["مؤلف الأول"] = true,
["مؤلف وصلة"] = true,
["مؤلف-الأخير"] = true,
["مؤلف-الأول"] = true,
["مؤلف-قناع"] = true,
["مؤلف-وصلة"] = true,
["مؤلف"] = true,
["مرجع"] = true,
["وصلة المؤلف"] = true,
["وصلة مؤلف"] = true,
["وصلة-المؤلف"] = true,
["وصلة-مؤلف"] = true,
}
local limited_numbered_arguments_t = {
['author-first#'] = true,
['author-given#'] = true,
['author-last#'] = true,
['author-link#'] = true,
['author-mask#'] = true,
['author-surname#'] = true,
['author#-first'] = true,
['author#-given'] = true,
['author#-last'] = true,
['author#-link'] = true,
['author#-mask'] = true,
['author#-surname'] = true,
['author#'] = true,
['author#link'] = true,
['authorlink#'] = true,
['first#'] = true,
['given#'] = true,
['last#'] = true,
['surname#'] = true,
["host#"] = true,
["subject-link#"] = true,
["subject-mask#"] = true,
["subject#-link"] = true,
["subject#-mask"] = true,
["subject#"] = true,
["أخير#"] = true,
["أول#"] = true,
["اخير#"] = true,
["الأخير#"] = true,
["الأول#"] = true,
["الاول#"] = true,
["المؤلف#"] = true,
["الموضوع"] = true,
["اول#"] = true,
["مؤلف الأخير#"] = true,
["مؤلف الأول#"] = true,
["مؤلف-الأخير#"] = true,
["مؤلف-الأول#"] = true,
["مؤلف# الأخير"] = true,
["مؤلف# الأول"] = true,
["مؤلف# وصلة"] = true,
["مؤلف#-الأخير"] = true,
["مؤلف#-الأول"] = true,
["مؤلف#-قناع"] = true,
["مؤلف#-وصلة"] = true,
["مؤلف#"] = true,
["وصلة المؤلف#"] = true,
["وصلة مؤلف#"] = true,
["وصلة-المؤلف#"] = true,
["وصلة-مؤلف#"] = true,
}
--[[--------------------------< U N I Q U E _ A R G U M E N T S >----------------------------------------------
Some templates have unique parameters. Those templates and their unique parameters are listed here. Keys in this
table are the template's CitationClass parameter value
Same conventions for true/false/tracked/nil as above.
]]
local unique_arguments_t = {
['audio-visual'] = {
['transcript'] = true,
['transcript-format'] = true,
['transcript-url'] = true,
},
conference = {
['book-title'] = true,
['conference-format'] = true,
['conference-url'] = true,
['conference'] = true,
["booktitle"] = true,
["اسم المؤتمر"] = true,
["اسم-المؤتمر"] = true,
["عنوان الكتاب"] = true,
["عنوان المؤتمر"] = true,
["مسار المؤتمر"] = true,
["مسار-المؤتمر"] = true,
},
episode = {
['air-date'] = true,
['airdate'] = true,
['credits'] = true,
['episode-link'] = true, -- alias of |title-link=
['network'] = true,
['season'] = true,
['series-link'] = true,
['series-no'] = true,
['series-number'] = true,
['station'] = true,
['transcript-format'] = true,
['transcript-url'] = true,
['transcript'] = true,
["authors"] = true,
["date"] = true,
["host"] = true,
["people"] = true,
["title-link"] = true,
["أشخاص"] = true,
["التاريخ"] = true,
["الشبكة"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["الموسم"] = true,
["تاريخ"] = true,
["رقم سلسلة"] = true,
["رقم-سلسلة"] = true,
["محطة"] = true,
["مسار المسلسل"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة سلسلة"] = true,
["وصلة-العنوان"] = true,
["وصلة-سلسلة"] = true,
["author"] = true,
["author-last"] = true,
["author-surname"] = true,
["last"] = true,
["subject"] = true,
["surname"] = true,
["أخير"] = true,
["اخير"] = true,
["الأخير"] = true,
["المؤلف"] = true,
["الموضوع"] = true,
["مؤلف"] = true,
["مؤلف الأخير"] = true,
["مؤلف-الأخير"] = true,
},
mailinglist = {
['mailing-list'] = true,
["القائمة البريدية"] = true,
},
map = {
['cartography'] = true,
['inset'] = true,
['map'] = true,
['map-format'] = true,
['map-url'] = true,
['map-url-access'] = true,
['script-map'] = true,
['sections'] = true,
['sheet'] = true,
['sheets'] = true,
['trans-map'] = true,
["أوراق"] = true,
["الأقسام"] = true,
["الخريطة"] = true,
["صيغة الخريطة"] = true,
["مجموعة"] = true,
["مسار الخريطة"] = true,
["ورقة"] = true,
},
newsgroup = {
['message-id'] = true,
['newsgroup'] = true,
["اسم المجموعة"] = true,
},
report = {
['docket'] = true,
},
serial = {
['air-date'] = true,
['airdate'] = true,
['credits'] = true,
['episode-link'] = true, -- alias of |title-link=
['episode'] = true, -- cite serial only TODO: make available to cite episode?
['network'] = true,
['series-link'] = true,
['station'] = true,
["authors"] = true,
["date"] = true,
["host"] = true,
["people"] = true,
["title-link"] = true,
["أشخاص"] = true,
["التاريخ"] = true,
["الحلقة"] = true,
["الشبكة"] = true,
["المؤلفون"] = true,
["المؤلفين"] = true,
["تاريخ"] = true,
["محطة"] = true,
["مسار المسلسل"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة سلسلة"] = true,
["وصلة-العنوان"] = true,
["وصلة-سلسلة"] = true,
["author"] = true,
["author-last"] = true,
["author-surname"] = true,
["last"] = true,
["subject"] = true,
["surname"] = true,
["أخير"] = true,
["اخير"] = true,
["الأخير"] = true,
["المؤلف"] = true,
["الموضوع"] = true,
["مؤلف"] = true,
["مؤلف الأخير"] = true,
["مؤلف-الأخير"] = true,
},
speech = {
['conference'] = true,
['conference-format'] = true,
['conference-url'] = true,
["اسم المؤتمر"] = true,
["مسار المؤتمر"] = true,
["اسم-المؤتمر"] = true,
["مسار-المؤتمر"] = true,
},
thesis = {
['degree'] = true,
['docket'] = true,
["الدرجة"] = true,
},
}
--[[--------------------------< C I T E _ D O C U M E N T >----------------------------------------------------
Special case for cite document. This template takes the limited basic and limited enumerated parameters plus
others that are apply only to standalone published sources that cannot be cited any other way; no url, book,
periodical, etc parameters; limited support for name lists and named identifiers.
when validating parameters in {{cite document}} templates, the basic and
]]
local document_arguments_t = {
['bibcode-access'] = true,
['bibcode'] = true,
['doi-access'] = true,
['doi-broken-date'] = true,
['doi'] = true,
['DOI'] = true,
['hdl-access'] = true,
['hdl'] = true,
['HDL'] = true,
['id'] = true,
['ID'] = true,
['jfm'] = true,
['JFM'] = true,
['lang'] = true,
['location'] = true,
['mr'] = true,
['MR'] = true,
['no-pp'] = true,
['orig-date'] = true,
['orig-year'] = true,
['origyear'] = true,
['osti-access'] = true,
['osti'] = true,
['OSTI'] = true,
['place'] = true,
['publisher'] = true,
['quote-page'] = true,
['quote-pages'] = true,
['script-quote'] = true,
['script-title'] = true,
['title-link'] = true,
['trans-quote'] = true,
['translator-first'] = true,
['translator-given'] = true,
['translator-last'] = true,
['translator-link'] = true,
['translator-mask'] = true,
['translator-surname'] = true,
['translator'] = true,
['type'] = true,
['zbl'] = true,
['ZBL'] = true,
["episode-link"] = true,
["institution"] = true,
["language"] = true,
["medium"] = true,
["nopp"] = true,
["اللغة"] = true,
["المؤسسة"] = true,
["المترجم-الأخير"] = true,
["المترجم-الأول"] = true,
["المترجم-وصلة"] = true,
["المترجم"] = true,
["المصدر"] = true,
["المعرف"] = true,
["المقر"] = true,
["المكان"] = true,
["الموزع"] = true,
["الناشر"] = true,
["النوع"] = true,
["بيب_كود"] = true,
["دوي"] = true,
["سنة النشر الأصلية"] = true,
["لغة"] = true,
["مترجم الأخير"] = true,
["مترجم الأول"] = true,
["مترجم وصلة"] = true,
["مترجم-الأخير"] = true,
["مترجم-الأول"] = true,
["مترجم-قناع"] = true,
["مترجم-وصلة"] = true,
["مترجم"] = true,
["مصدر"] = true,
["مقر"] = true,
["مكان"] = true,
["ناشر"] = true,
["وصلة الحلقة"] = true,
["وصلة العنوان"] = true,
["وصلة المترجم"] = true,
["وصلة مترجم"] = true,
["وصلة-العنوان"] = true,
["وصلة-المترجم"] = true,
["وصلة-مترجم"] = true,
}
local document_numbered_arguments_t = {
['translator#'] = true,
['translator-first#'] = true,
['translator#-first'] = true,
['translator-given#'] = true,
['translator#-given'] = true,
['translator-last#'] = true,
['translator#-last'] = true,
['translator-surname#'] = true,
['translator#-surname'] = true,
['translator-link#'] = true,
['translator#-link'] = true,
['translator-mask#'] = true,
['translator#-mask'] = true,
["المترجم#"] = true,
["المترجم#-الأخير"] = true,
["المترجم#-الأول"] = true,
["المترجم#-وصلة"] = true,
["المترجم-الأخير#"] = true,
["المترجم-الأول#"] = true,
["مترجم الأخير#"] = true,
["مترجم الأول#"] = true,
["مترجم#"] = true,
["مترجم# الأخير"] = true,
["مترجم# الأول"] = true,
["مترجم# وصلة"] = true,
["مترجم#-الأخير"] = true,
["مترجم#-الأول"] = true,
["مترجم#-قناع"] = true,
["مترجم#-وصلة"] = true,
["مترجم-الأخير#"] = true,
["مترجم-الأول#"] = true,
["وصلة المترجم#"] = true,
["وصلة مترجم#"] = true,
["وصلة-المترجم#"] = true,
["وصلة-مترجم#"] = true,
}
--[[--------------------------< L I S T _ C O M B I N E >------------------------------------------------------
makes one table from a list of tables. <lists_t> is a sequence of tables to be combined
]]
local function list_combine (lists_t)
local out_t = {};
for _, list_t in ipairs (lists_t) do -- for each list in <lists_t>
for k, v in pairs (list_t) do -- extract each k/v pair
out_t[k] = v; -- add to <out_t>
end
end
return out_t; -- and done
end
--[[--------------------------< T E M P L A T E _ L I S T _ G E T >--------------------------------------------
gets a list of the templates from table t
]]
local function template_list_get (t)
local out_t = {}; -- a table for output
for k, _ in pairs (t) do -- spin through the table and collect the keys
table.insert (out_t, k) -- add each key to the output table
end
return out_t; -- and done
end
--[[--------------------------< E X P O R T E D T A B L E S >------------------------------------------------
]]
return {
preprint_arguments_t = preprint_arguments_t,
preprint_template_list_t = template_list_get (preprint_arguments_t), -- make a template list from preprint_arguments{} table
unique_arguments_t = unique_arguments_t,
unique_param_template_list_t = template_list_get (unique_arguments_t), -- make a template list from unique_arguments{} table
document_parameters_t = list_combine ({limited_basic_arguments_t, limited_numbered_arguments_t, document_arguments_t, document_numbered_arguments_t});
common_parameters_t = list_combine ({basic_arguments_t, numbered_arguments_t});
limited_parameters_t = list_combine ({limited_basic_arguments_t, limited_numbered_arguments_t});
};
a3attzzau1uv7r9zyewj5msvzziswc8
وحدة:Citation/CS1/dates/شرح
828
63187
275415
2026-09-15T08:58:10Z
حبيشان
29714
استيراد من ar.wiktionary.org
275415
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع}}
* 2018-03-17 ينتج ← {{#invoke:Citation/CS1/dates|check|2018-03-17}}
* 19-2-2015 ينتج ← {{#invoke:Citation/CS1/dates|check|19-2-2015}}
* 19-02-2015 ينتج ← {{#invoke:Citation/CS1/dates|check|19-02-2015}}
* 19 may 2015 ينتج ← {{#invoke:Citation/CS1/dates|check|19 may 2015}}
* 10 may 2015 ينتج ← {{#invoke:Citation/CS1/dates|check|10 may 2015}}
* May 12, 2009 ينتج ← {{#invoke:Citation/CS1/dates|check|May 12, 2009}}
* 19 مايو 2015 ينتج ← {{#invoke:Citation/CS1/dates|check|19 مايو 2015}}
* 10 مايو 2015 ينتج ← {{#invoke:Citation/CS1/dates|check|10 مايو 2015}}
== جديد ==
* {{مونو|26 Mars 2020}} ينتج ← {{#invoke:Citation/CS1/dates|check|26 Mars 2020}}
* {{مونو|July–August 2003}} ينتج ← {{#invoke:Citation/CS1/dates|check|July–August 2003}}
* {{مونو|March 2010 - April 2020}} ينتج ← {{#invoke:Citation/CS1/dates|check|March 2010 - April 2020}}
* {{مونو|}} ينتج ← {{#invoke:Citation/CS1/dates|check|}}
* {{مونو|}} ينتج ← {{#invoke:Citation/CS1/dates|check|}}
cea15ccjxh3rn2dsjemkr5zh0huo9zs
وحدة:Citation/CS1/dates/ملعب
828
63188
275416
2026-09-15T08:58:13Z
حبيشان
29714
استيراد من ar.wiktionary.org
275416
Scribunto
text/plain
local p = {}
local match_tab_n = {
["^%a+ %d%d%, %d%d%d%d$"] ="(%a+) (%d%d)%, (%d%d%d%d)",
}
local match_tab = {
--["^[1-9]%d? +%a+ +[1-9]%d%d%d%a?$"] ="(%d%d*)%s*(%a+)%s*((%d%d%d%d)%a?)",
["^%d %a+ %d%d%d%d$"] ="(%d) (%a+) (%d%d%d%d)",
["^%d%d %a+ %d%d%d%d$"] ="(%d%d) (%a+) (%d%d%d%d)",
['^%d %d %d%d%d%d$']= '(%d) (%d) (%d%d%d%d)',
['^%d %d%d %d%d%d%d$']= '(%d) (%d%d) (%d%d%d%d)',
['^%d%d %d %d%d%d%d$']= '(%d%d) (%d) (%d%d%d%d)',
['^%d%d %d%d %d%d%d%d$']= '(%d%d) (%d%d) (%d%d%d%d)',
['^%d%-%d%-%d%d%d%d$']= '(%d)%-(%d)%-(%d%d%d%d)',
['^%d%-%d%d%-%d%d%d%d$']= '(%d)%-(%d%d)%-(%d%d%d%d)',
['^%d%d%-%d%-%d%d%d%d$']= '(%d%d)%-(%d)%-(%d%d%d%d)',
['^%d%d%-%d%d%-%d%d%d%d$']= '(%d%d)%-(%d%d)%-(%d%d%d%d)',
}
local match_tab_en = {
['^%d%d%d%d %d %d$']= '(%d%d%d%d) (%d) (%d)$',
['^%d%d%d%d %d %d%d$']= '(%d%d%d%d) (%d) (%d%d)$',
['^%d%d%d%d %d%d %d$']= '(%d%d%d%d) (%d%d) (%d)$',
['^%d%d%d%d %d%d %d%d$']= '(%d%d%d%d) (%d%d) (%d%d)$',
['^%d%d%d%d%-%d%-%d$']= '(%d%d%d%d)%-(%d)%-(%d)$',
['^%d%d%d%d%-%d%-%d%d$']= '(%d%d%d%d)%-(%d)%-(%d%d)$',
['^%d%d%d%d%-%d%d%-%d$']= '(%d%d%d%d)%-(%d%d)%-(%d)$',
['^%d%d%d%d%-%d%d%-%d%d$']= '(%d%d%d%d)%-(%d%d)%-(%d%d)$',
}
--[[
tato = {"%d" , "%d%d"}
spaces = {" " , "%-"}
for _p, space in pairs(spaces) do
for o, k1 in ipairs(tato) do
for _, k2 in ipairs(tato) do
s_k = "^" .. k1 .. space .. k2 .. space .. "%d%d%d%d$"
s_v = "(" .. k1 .. ")".. space .. "(" .. k2 .. ")".. space .. "(" .. "%d%d%d%d)"
match_tab[s_k] = s_v
--mw.log("['" .. s_k .. "']= '" .. s_v .. "'")
s_k1 = "^%d%d%d%d" .. space .. k1 .. space .. k2 .. "$"
s_v1 = "(%d%d%d%d)" .. space .. "(" .. k1 .. ")".. space .. "(" .. k2 .. ")$"
match_tab_en[s_k1] = s_v1
--mw.log("['" .. s_k1 .. "']= '" .. s_v1 .. "'")
end
end
end
]]
local function get_month_number(month)
local month2 = month:lower()
local long_months = {['january']=1, ['february']=2, ['march']=3, ['april']=4, ['may']=5, ['june']=6, ['july']=7, ['august']=8, ['september']=9, ['october']=10, ['november']=11, ['december']=12,
['يناير']=1, ['فبراير']=2, ['مارس']=3, ['أبريل']=4, ['مايو']=5, ['يونيو']=6, ['يوليو']=7, ['أغسطس']=8, ['سبتمبر']=9, ['أكتوبر']=10, ['نوفمبر']=11, ['ديسمبر']=12 };
local short_months = {['jan']=1, ['feb']=2, ['mar']=3, ['apr']=4, ['may']=5, ['jun']=6, ['jul']=7, ['aug']=8, ['sep']=9, ['oct']=10, ['nov']=11, ['dec']=12};
return long_months[month2] or -- if month is the long-form name
short_months[month2] or -- if month is the short-form name
0; -- misspelled, improper case, or not a month name
end
function p.check_date (date_string)
local year;
local month=0;
local day=0;
local faild = true;
local date_string2 = date_string
local day , month , year
--match_tab_en
date_string = date_string:gsub('Mars' , 'march')
if string.find(date_string,"[ا|أ|ب|ت|ث|ج|ح|خ|د|ذ|ر|ز|س|ش|ص|ض|ط|ظ|ع|غ|ف|ق|ك|ل|م|ن|ه|و|ي]")
--then date_string2 = date_string
then return date_string
else
for key, v in pairs(match_tab_n) do
if date_string:match( key ) and faild then
faild = false
month, day, year = string.match(date_string, v );
end
end
for key, v in pairs(match_tab) do
if date_string:match( key ) and faild then
faild = false
day, month, year = string.match(date_string, v );
end
end
for key, v in pairs(match_tab_en) do
if date_string:match( key ) and faild then
faild = false
year, month, day = string.match(date_string, v );
end
end
end
local fa = date_string2
--if faild then
--mw.log(date_string .. " faild")
if not faild then
if month:match("%a+") then
month = get_month_number(month)
end
date_string2 = day .. "-" .. month .. "-" .. year
--mw.log("day" .. day .. ", month" .. month .. ", year" .. year)
if 12 < tonumber(month) or 31 < tonumber(month) or 1 > tonumber(month) or 1582 > tonumber(year) or 0 == tonumber(day)
then
--mw.log(date_string .. " false")
return date_string
end
--fa = '{{#time:d F Y|' .. date_string .. '}}'
fa = mw.getCurrentFrame():callParserFunction( '#time:d F Y', '' .. date_string2 .. '' )
end
--cp = "* " .. date_string .. " : \n**" .. fa
return fa
end
function p.check (frame)
return p.check_date(frame.args[1])
end
return p
juqnpigjwskje66l472cue0x97x6sid
وحدة:Citation/CS1/lang
828
63189
275417
2026-09-15T08:58:18Z
حبيشان
29714
استيراد من ar.wiktionary.org
275417
Scribunto
text/plain
local p = {
["norwegian"] = "النرويجية" ,
["afar"] = "العفارية",
["abkhazian"] = "الأبخازية",
["abkhaze"] = "الأبخازية",
["avestan"] = "الأوستية",
["avestique"] = "الأفستية",
["afrikaans"] = "الأفريقانية",
["akan"] = "الأكانية",
["amharic"] = "الأمهرية",
["amharique"] = "الأمهرية",
["aragonese"] = "الأراغونية",
["aragonais"] = "الأراغونية",
["arabic"] = "العربية",
["arabe"] = "العربية",
["assamese"] = "الآسامية",
["assamais"] = "الآسامية",
["avaric"] = "الأوارية",
["avar"] = "الأوارية",
["aymara"] = "الأيمارا",
["azerbaijani"] = "الأذرية",
["azéri"] = "الأذرية",
["bashkir"] = "الباشقير",
["bachkir"] = "الباشقير",
["belarusian"] = "البيلاروسية",
["biélorusse"] = "البيلاروسية",
["bulgarian"] = "البلغارية",
["bulgare"] = "البلغارية",
["bhojpuri"] = "البهارية",
["bislama"] = "البسلاما",
["bichelamar"] = "البسلاما",
["bambara"] = "البمبرية",
["bangla"] = "البنغالية",
["bengali"] = "البنغالية",
["tibetan"] = "التبتية",
["tibétain"] = "التبتية",
["breton"] = "البريتانية",
["bosnian"] = "البوسنوية",
["bosniaque"] = "البوسنوية",
["catalan"] = "الكتالونية",
["chechen"] = "الشيشانية",
["tchétchène"] = "الشيشانية",
["chamorro"] = "التسمورية",
["corsican"] = "الكورسية",
["corse"] = "الكورسية",
["cree"] = "الكرية",
["seselwa creole french"] = "الكريولية السيشيلية",
["créole seychellois"] = "الكريولية السيشيلية",
["czech"] = "التشيكية",
["tchèque"] = "التشيكية",
["church slavic"] = "السلافونية الكنسية القديمة",
["slavon d’église"] = "السلافونية الكنسية القديمة",
["chuvash"] = "التشوفاش",
["tchouvache"] = "التشوفاش",
["welsh"] = "الويلزية",
["gallois"] = "الويلزية",
["danish"] = "الدنماركية",
["danois"] = "الدنماركية",
["german"] = "الألمانية",
["allemand"] = "الألمانية",
["divehi"] = "الديفهي",
["maldivien"] = "الديفهي",
["dzongkha"] = "الدزونكا",
["ewe"] = "الإوية",
["éwé"] = "الإوية",
["greek"] = "اليونانية",
["grec"] = "اليونانية",
["english"] = "الإنجليزية",
["anglais"] = "الإنجليزية",
["esperanto"] = "الإسبرانتو",
["espéranto"] = "الإسبرانتو",
["spanish"] = "الإسبانية",
["espagnol"] = "الإسبانية",
["estonian"] = "الإستونية",
["estonien"] = "الإستونية",
["basque"] = "البشكنشية",
["persian"] = "الفارسية",
["persan"] = "الفارسية",
["fulah"] = "الفولانية",
["peul"] = "الفولانية",
["finnish"] = "الفنلندية",
["finnois"] = "الفنلندية",
["fijian"] = "الفيجية",
["fidjien"] = "الفيجية",
["faroese"] = "الفاروية",
["féroïen"] = "الفاروية",
["french"] = "الفرنسية",
["français"] = "الفرنسية",
["western frisian"] = "الفريزية الغربية",
["frison occidental"] = "الفريزية الغربية",
["irish"] = "الأيرلندية",
["irlandais"] = "الأيرلندية",
["scottish gaelic"] = "الغيلية الإسكتلندية",
["gaélique écossais"] = "الغيلية الإسكتلندية",
["galician"] = "الغاليسية",
["galicien"] = "الغاليسية",
["guarani"] = "الغوارانية",
["gujarati"] = "الكجراتية",
["goudjerati"] = "الكجراتية",
["manx"] = "المنكية",
["mannois"] = "المنكية",
["hausa"] = "الهوسية",
["haoussa"] = "الهوسية",
["hebrew"] = "العبرية",
["hébre"] = "العبرية",
["hindi"] = "الهندية",
["hiri mot"] = "الهيري الموتو",
["croatian"] = "الكرواتية",
["croate"] = "الكرواتية",
["haitian creole"] = "الكريولية الهايتية",
["créole haïtien"] = "الكريولية الهايتية",
["hungarian"] = "المجرية",
["hongrois"] = "المجرية",
["armenian"] = "الأرمنية",
["arménien"] = "الأرمنية",
["herero"] = "الهيريرو",
["héréro"] = "الهيريرو",
["interlingua"] = "الإنترلنغوا",
["indonesian"] = "الإندونيسية",
["indonésien"] = "الإندونيسية",
["interlingue"] = "الإنترلينج",
["igbo"] = "الإيجبو",
["sichuan yi"] = "النؤوسوية",
["yi du sichuan"] = "النؤوسوية",
["inupiaq"] = "الإينبياك",
["ido"] = "الإيدو",
["icelandic"] = "الآيسلندية",
["islandais"] = "الآيسلندية",
["italian"] = "الإيطالية",
["italien"] = "الإيطالية",
["inuktitut"] = "الإنكتيتوتية",
["japanese"] = "اليابانية",
["japonais"] = "اليابانية",
["javanese"] = "الجاوية",
["javanais"] = "الجاوية",
["georgian"] = "الجورجية",
["géorgien"] = "الجورجية",
["kongo"] = "الكونغو",
["kikongo"] = "الكونغو",
["kikuy"] = "الكيكيو",
["kuanyama"] = "الكيونياما",
["kazakh"] = "القازاقية",
["kalaallisut"] = "الغرينلاندية",
["groenlandais"] = "الغرينلاندية",
["khmer"] = "الخميرية",
["kannada"] = "الكنادية",
["korean"] = "الكورية",
["coréen"] = "الكورية",
["kanuri"] = "الكانورية",
["kanouri"] = "الكانورية",
["kashmiri"] = "الكشميرية",
["cachemiri"] = "الكشميرية",
["kurdish"] = "الكردية",
["kurde"] = "الكردية",
["komi"] = "الكومية",
["cornish"] = "الكورنية",
["cornique"] = "الكورنية",
["kyrgyz"] = "القيرغيزية",
["kirghize"] = "القيرغيزية",
["latin"] = "اللاتينية",
["luxembourgish"] = "اللوكسمبورغية",
["luxembourgeois"] = "اللوكسمبورغية",
["ganda"] = "الجاندا",
["limburgish"] = "الليمبورغية",
["limbourgeois"] = "الليمبورغية",
["lingala"] = "اللينغالا",
["lao"] = "اللاوية",
["lithuanian"] = "الليتوانية",
["lituanien"] = "الليتوانية",
["luba-katanga"] = "التشيلوبا",
["luba-katanga (kiluba)"] = "التشيلوبا",
["latvian"] = "اللاتفية",
["letton"] = "اللاتفية",
["malagasy"] = "الملغاشية",
["malgache"] = "الملغاشية",
["marshallese"] = "المارشالية",
["marshallais"] = "المارشالية",
["maori"] = "الماورية",
["macedonian"] = "المقدونية",
["macédonien"] = "المقدونية",
["malayalam"] = "الماليالامية",
["mongolian"] = "المنغولية",
["mongol"] = "المنغولية",
["moldovan"] = "المولدوفية",
["marathi"] = "المراثية",
["malay"] = "الملايوية",
["malais"] = "الملايوية",
["maltese"] = "المالطية",
["maltais"] = "المالطية",
["burmese"] = "البورمية",
["birman"] = "البورمية",
["naur"] = "الناوروية",
["nauruan"] = "الناوروية",
["norwegian bokmål"] = "النرويجية البوكمول",
["norvégien bokmål"] = "النرويجية البوكمول",
["north ndebele"] = "النديبيل الشمالية",
["ndébélé du nord"] = "النديبيل الشمالية",
["nepali"] = "النيبالية",
["népalais"] = "النيبالية",
["ndonga"] = "الندونجا",
["dutch"] = "الهولندية",
["néerlandais"] = "الهولندية",
["norwegian nynorsk"] = "النرويجية النينوشك",
["norvégien nynorsk"] = "النرويجية النينوشك",
["norwegian"] = "النرويجية",
["norvégien"] = "النرويجية",
["south ndebele"] = "النديبلي الجنوبية",
["ndébélé du sud"] = "النديبلي الجنوبية",
["navajo"] = "النافاجو",
["nyanja"] = "النيانجا",
["chewa"] = "النيانجا",
["occitan"] = "القسطانية",
["ojibwa"] = "الأوجيبوا",
["oromo"] = "الأورومية",
["odia"] = "الأوريا",
["ossetic"] = "الأوسيتية",
["ossète"] = "الأوسيتية",
["punjabi"] = "البنجابية",
["pendjabi"] = "البنجابية",
["pali"] = "البالية",
["polish"] = "البولندية",
["polonais"] = "البولندية",
["pashto"] = "البشتوية",
["pachto"] = "البشتوية",
["portuguese"] = "البرتغالية",
["portugais"] = "البرتغالية",
["quechua"] = "الكتشوا",
["romansh"] = "الرومانشية",
["romanche"] = "الرومانشية",
["rundi"] = "الكيروندية",
["roundi"] = "الكيروندية",
["romanian"] = "الرومانية",
["roumain"] = "الرومانية",
["russian"] = "الروسية",
["russe"] = "الروسية",
["kinyarwanda"] = "الروندية",
["sanskrit"] = "السنسكريتية",
["sardinian"] = "السردينية",
["sarde"] = "السردينية",
["sindhi"] = "السندية",
["northern sami"] = "السامي الشمالية",
["same du nord"] = "السامي الشمالية",
["sango"] = "السانغوية",
["serbo-croatian"] = "الصربوكرواتية",
["serbo-croate"] = "الصربوكرواتية",
["sinhala"] = "السنهالية",
["cingalais"] = "السنهالية",
["slovak"] = "السلوفاكية",
["slovaque"] = "السلوفاكية",
["slovenian"] = "السلوفينية",
["slovène"] = "السلوفينية",
["samoan"] = "الساموية",
["shona"] = "الشونا",
["somali"] = "الصومالية",
["albanian"] = "الألبانية",
["albanais"] = "الألبانية",
["serbian"] = "الصربية",
["serbe"] = "الصربية",
["swati"] = "السوازي",
["southern sotho"] = "السوتية",
["sotho du sud"] = "السوتية",
["sundanese"] = "السوندية",
["soundanais"] = "السوندية",
["swedish"] = "السويدية",
["suédois"] = "السويدية",
["swahili"] = "السواحلية",
["tamil"] = "التاميلية",
["tamoul"] = "التاميلية",
["telug"] = "التيلوغوية",
["télougo"] = "التيلوغوية",
["tajik"] = "الطاجيكية",
["tadjik"] = "الطاجيكية",
["thai"] = "التايلندية",
["thaï"] = "التايلندية",
["tigrinya"] = "التغرينية",
["tigrigna"] = "التغرينية",
["turkmen"] = "التركمانية",
["turkmène"] = "التركمانية",
["tagalog"] = "التاغالوغية",
["tswana"] = "التسوانية",
["tongan"] = "التونغية",
["tongien"] = "التونغية",
["turkish"] = "التركية",
["turc"] = "التركية",
["tsonga"] = "التسونجا",
["tatar"] = "التترية",
["twi"] = "التوي",
["tahitian"] = "التاهيتية",
["tahitien"] = "التاهيتية",
["uyghur"] = "الأويغورية",
["ouïghour"] = "الأويغورية",
["ukrainian"] = "الأوكرانية",
["ukrainien"] = "الأوكرانية",
["urd"] = "الأردوية",
["ourdo"] = "الأردوية",
["uzbek"] = "الأوزبكية",
["ouzbek"] = "الأوزبكية",
["venda"] = "الفيندية",
["vietnamese"] = "الفيتنامية",
["vietnamien"] = "الفيتنامية",
["volapük"] = "الفولابوكية",
["walloon"] = "الوالونية",
["wallon"] = "الوالونية",
["wolof"] = "الولوفية",
["xhosa"] = "الخوسية",
["yiddish"] = "اليديشية",
["yoruba"] = "اليوربا",
["zhuang"] = "الزهيونج",
["chinese"] = "الصينية",
["chinois"] = "الصينية",
["zul"] = "الزولوية",
["zoulo"] = "الزولوية",
}
return p
ky978kmiceuwsxpsgszm77y3tf1z1t5
وحدة:Citation/CS1/lang/شرح
828
63190
275418
2026-09-15T08:58:21Z
حبيشان
29714
استيراد من ar.wiktionary.org
275418
wikitext
text/x-wiki
{{استخدام واسع|+2}}
{{وحدات CS1}}
عدد الصفحات في [[:تصنيف:صيانة CS1: لغة غير مدعومة]] 20٬376 قبل بدء استخدام هذه الوحدة.
عدد الصفحات حالياً: {{سطر تصنيف وصفحاته|صيانة CS1: لغة غير مدعومة}}.
jz254d74dv34ycoqtg04aerbziqwrwx
وحدة:Citation/CS1/sandbox
828
63191
275419
2026-09-15T08:58:26Z
حبيشان
29714
استيراد من ar.wiktionary.org
275419
Scribunto
text/plain
--require("strict")
local languagescode = require("وحدة:Citation/CS1/lang")
local fetchName = require("وحدة:لغات").getname
local check_date_n = require("وحدة:Citation/CS1/dates").check_date
local validation
local utilities
local z = {}
local identifiers
local metadata
local cfg = {}
local whitelist = {}
local added_deprecated_cat
local added_vanc_errs
local added_generic_name_errs
local Frame
local is_preview_mode
local is_sandbox
local function first_set(list, count)
local i = 1
while i <= count do
if utilities.is_set(list[i]) then
return list[i]
end
i = i + 1
end
end
local function add_vanc_error(source, position)
if added_vanc_errs then
return
end
added_vanc_errs = true
utilities.set_message("err_vancouver", {source, position})
end
local function is_scheme(scheme)
return scheme and scheme:match("^%a[%a%d%+%.%-]*:")
end
local function is_domain_name(domain)
if not domain then
return false
end
domain = domain:gsub("^//", "")
if not domain:match("^[%w]") then
return false
end
if domain:match("^%a+:") then
return false
end
local patterns = {
"%f[%w][%w][%w%-]+[%w]%.%a%a+$",
"%f[%w][%w][%w%-]+[%w]%.xn%-%-[%w]+$",
"%f[%a][qxz]%.com$",
"%f[%a][iq]%.net$",
"%f[%w][%w]%.%a%a$",
"%f[%w][%w][%w]%.%a%a+$",
"^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?"
}
for _, pattern in ipairs(patterns) do
if domain:match(pattern) then
return true
end
end
for _, d in ipairs({"cash", "company", "today", "org"}) do
if domain:match("%f[%w][%w]%." .. d) then
return true
end
end
return false
end
local function is_url(scheme, domain)
if utilities.is_set(scheme) then
return is_scheme(scheme) and is_domain_name(domain)
else
return is_domain_name(domain)
end
end
local function split_url(url_str)
local scheme, authority, domain
url_str = url_str:gsub("([%a%d])%.?[/%?#].*$", "%1")
if url_str:match("^//%S*") then
domain = url_str:match("^//(%S*)")
elseif url_str:match("%S-:/*%S+") then
scheme, authority, domain = url_str:match("(%S-:)(/*)(%S+)")
if utilities.is_set(authority) then
authority = authority:gsub("//", "", 1)
if utilities.is_set(authority) then
return scheme
end
else
if not scheme:match("^news:") then
return scheme
end
end
domain = domain:gsub("(%a):%d+", "%1")
end
return scheme, domain
end
local function link_param_ok(value)
local scheme, domain
if value:find("[<>%[%]|{}]") then
return false
end
scheme, domain = split_url(value)
return not is_url(scheme, domain)
end
local function link_title_ok(link, lorig, title, torig)
local orig
if utilities.is_set(link) then
if not link_param_ok(link) then
orig = lorig
elseif title:find("%[%[") then
orig = torig
elseif link:match("^%a+:") then
local prefix = link:match("^(%a+):"):lower()
if cfg.inter_wiki_map[prefix] then
orig = lorig
end
end
end
if utilities.is_set(orig) then
link = ""
utilities.set_message("err_bad_paramlink", orig)
end
return link
end
local function check_url(url_str)
if nil == url_str:match("^%S+$") then
return false
end
local scheme, domain
scheme, domain = split_url(url_str)
if "news:" == scheme then
return domain:match("^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$")
end
return is_url(scheme, domain)
end
local function is_parameter_ext_wikilink(value)
local scheme, domain
if value:match("%f[%[]%[%a%S*:%S+.*%]") then
scheme, domain = split_url(value:match("%f[%[]%[(%a%S*:%S+).*%]"))
elseif value:match("%f[%[]%[//%S+.*%]") then
scheme, domain = split_url(value:match("%f[%[]%[(//%S+).*%]"))
elseif value:match("%a%S*:%S+") then
scheme, domain = split_url(value:match("(%a%S*:%S+)"))
elseif value:match("//%S+") then
scheme, domain = split_url(value:match("(//%S+)"))
else
return false
end
return is_url(scheme, domain)
end
local function check_for_url(parameter_list, error_list)
for k, v in pairs(parameter_list) do
if is_parameter_ext_wikilink(v) then
table.insert(error_list, utilities.wrap_style("parameter", k))
end
end
end
local function safe_for_url(str)
if str:match("%[%[.-%]%]") ~= nil then
utilities.set_message("err_wikilink_in_url", {})
end
return str:gsub(
"[%[%]\n]",
{
["["] = "[",
["]"] = "]",
["\n"] = " "
}
)
end
local function external_link(URL, label, source, access)
local err_msg = ""
local domain
local path
local base_url
if not utilities.is_set(label) then
label = URL
if utilities.is_set(source) then
utilities.set_message("err_bare_url_missing_title", {utilities.wrap_style("parameter", source)})
else
error(cfg.messages["bare_url_no_origin"])
end
end
if not check_url(URL) then
utilities.set_message("err_bad_url", {utilities.wrap_style("parameter", source)})
end
domain, path = URL:match("^([/%.%-%+:%a%d]+)([/%?#].*)$")
if path then
path = path:gsub("[%[%]]", {["["] = "%5b", ["]"] = "%5d"})
URL = table.concat({domain, path})
end
base_url = table.concat({"[", URL, " ", safe_for_url(label), "]"})
if utilities.is_set(access) then
base_url =
utilities.substitute(
cfg.presentation["ext-link-access-signal"],
{cfg.presentation[access].class, cfg.presentation[access].title, base_url}
)
end
return base_url
end
local function deprecated_parameter(name)
if not added_deprecated_cat then
added_deprecated_cat = true
utilities.set_message("err_deprecated_params", {name})
end
end
local function kern_quotes(str)
local cap = ""
local wl_type, label, link
wl_type, label, link = utilities.is_wikilink(str)
if 1 == wl_type then
if mw.ustring.match(str, '%[%[["“”\'‘’].+["“”\'‘’]%]%]') then
str = utilities.substitute(cfg.presentation["kern-left"], str)
str = utilities.substitute(cfg.presentation["kern-right"], str)
elseif mw.ustring.match(str, '%[%[["“”\'‘’].+%]%]') then
str = utilities.substitute(cfg.presentation["kern-left"], str)
elseif mw.ustring.match(str, '%[%[.+["“”\'‘’]%]%]') then
str = utilities.substitute(cfg.presentation["kern-right"], str)
end
else
label = mw.ustring.gsub(label, "[“”]", '"')
label = mw.ustring.gsub(label, "[‘’]", "'")
cap = mw.ustring.match(label, '^(["\'][^\'].+)')
if utilities.is_set(cap) then
label = utilities.substitute(cfg.presentation["kern-left"], cap)
end
cap = mw.ustring.match(label, '^(.+[^\']["\'])$')
if utilities.is_set(cap) then
label = utilities.substitute(cfg.presentation["kern-right"], cap)
end
if 2 == wl_type then
str = utilities.make_wikilink(link, label)
else
str = label
end
end
return str
end
local function format_script_value(script_value, script_param)
local lang = ""
local name
if script_value:match("^%l%l%l?%s*:") then
lang = script_value:match("^(%l%l%l?)%s*:%s*%S.*")
if not utilities.is_set(lang) then
utilities.set_message("err_script_parameter", {script_param, "missing title part"})
return ""
end
name = fetchName(lang, "al")
if name == lang then
name = cfg.lang_code_remap[lang] or mw.language.fetchLanguageName(lang, cfg.this_wiki_code)
end
if utilities.is_set(name) then
script_value = script_value:gsub("^%l+%s*:%s*", "")
if utilities.in_array(lang, cfg.script_lang_codes) then
utilities.add_prop_cat("script", {name, lang})
else
utilities.set_message("err_script_parameter", {script_param, "unknown language code"})
end
lang = ' lang="' .. lang .. '" '
else
utilities.set_message("err_script_parameter", {script_param, "invalid language code"})
lang = ""
end
else
utilities.set_message("err_script_parameter", {script_param, "missing prefix"})
end
script_value = utilities.substitute(cfg.presentation["bdi"], {lang, script_value})
return script_value
end
local function script_concatenate(title, script, script_param)
if utilities.is_set(script) then
script = format_script_value(script, script_param)
if utilities.is_set(script) then
title = title .. " " .. script
end
end
return title
end
local function wrap_msg(key, str, lower)
if not utilities.is_set(str) then
return ""
end
if true == lower then
local msg
msg = cfg.messages[key]:lower()
return utilities.substitute(msg, str)
else
return utilities.substitute(cfg.messages[key], str)
end
end
local function wikisource_url_make(str)
local wl_type, D, L
local ws_url, ws_label
local wikisource_prefix = table.concat({"https://", cfg.this_wiki_code, ".wikisource.org/wiki/"})
wl_type, D, L = utilities.is_wikilink(str)
if 0 == wl_type then
str = D:match("^[Ww]ikisource:(.+)") or D:match("^[Ss]:(.+)")
if utilities.is_set(str) then
ws_url =
table.concat(
{
wikisource_prefix,
str
}
)
ws_label = str
end
elseif 1 == wl_type then
str = D:match("^[Ww]ikisource:(.+)") or D:match("^[Ss]:(.+)")
if utilities.is_set(str) then
ws_url =
table.concat(
{
wikisource_prefix,
str
}
)
ws_label = str
end
elseif 2 == wl_type then
str = L:match("^[Ww]ikisource:(.+)") or L:match("^[Ss]:(.+)")
if utilities.is_set(str) then
ws_label = D
ws_url =
table.concat(
{
wikisource_prefix,
str
}
)
end
end
if ws_url then
ws_url = mw.uri.encode(ws_url, "WIKI")
ws_url = ws_url:gsub("%%23", "#")
end
return ws_url, ws_label, L or D
end
local function format_periodical(script_periodical, script_periodical_source, periodical, trans_periodical)
if not utilities.is_set(periodical) then
periodical = ""
else
periodical = utilities.wrap_style("italic-title", periodical)
end
periodical = script_concatenate(periodical, script_periodical, script_periodical_source)
if utilities.is_set(trans_periodical) then
trans_periodical = utilities.wrap_style("trans-italic-title", trans_periodical)
if utilities.is_set(periodical) then
periodical = periodical .. " " .. trans_periodical
else
periodical = trans_periodical
utilities.set_message("err_trans_missing_title", {"periodical"})
end
end
return periodical
end
local function format_chapter_title(
script_chapter,
script_chapter_source,
chapter,
chapter_source,
trans_chapter,
trans_chapter_source,
chapter_url,
chapter_url_source,
no_quotes,
access)
local ws_url, ws_label, L = wikisource_url_make(chapter)
if ws_url then
ws_label = ws_label:gsub("_", " ")
chapter = ws_label
end
if not utilities.is_set(chapter) then
chapter = ""
else
if false == no_quotes then
chapter = kern_quotes(chapter)
chapter = utilities.wrap_style("quoted-title", chapter)
end
end
chapter = script_concatenate(chapter, script_chapter, script_chapter_source)
if utilities.is_set(chapter_url) then
chapter = external_link(chapter_url, chapter, chapter_url_source, access)
elseif ws_url then
chapter = external_link(ws_url, chapter .. " ", "ws link in chapter")
chapter =
utilities.substitute(cfg.presentation["interwiki-icon"], {cfg.presentation["class-wikisource"], L, chapter})
end
if utilities.is_set(trans_chapter) then
trans_chapter = utilities.wrap_style("trans-quoted-title", trans_chapter)
if utilities.is_set(chapter) then
chapter = chapter .. " " .. trans_chapter
else
chapter = trans_chapter
chapter_source = trans_chapter_source:match("trans%-?(.+)")
utilities.set_message("err_trans_missing_title", {chapter_source})
end
end
return chapter
end
local function has_invisible_chars(param, v)
local position = ""
local capture
local stripmarker
capture = string.match(v, "[%w%p ]*")
if capture == v then
return
end
for _, invisible_char in ipairs(cfg.invisible_chars) do
local char_name = invisible_char[1]
local pattern = invisible_char[2]
position, _, capture = mw.ustring.find(v, pattern)
if position and (cfg.invisible_defs.zwj == capture) then
if mw.ustring.find(v, cfg.indic_script) then
position = nil
elseif cfg.emoji[mw.ustring.codepoint(v, position + 1)] then
position = nil
end
end
if position then
if
"nowiki" == capture or "math" == capture or
("templatestyles" == capture and utilities.in_array(param, {"id", "quote"}))
then
stripmarker = true
elseif true == stripmarker and cfg.invisible_defs.del == capture then
position = nil
else
local err_msg
if capture and not (cfg.invisible_defs.del == capture or cfg.invisible_defs.zwj == capture) then
err_msg = capture .. " " .. char_name
else
err_msg = char_name .. " " .. "character"
end
utilities.set_message(
"err_invisible_char",
{err_msg, utilities.wrap_style("parameter", param), position}
)
return
end
end
end
end
local function argument_wrapper(args)
local origin = {}
return setmetatable(
{
ORIGIN = function(self, k)
local dummy = self[k]
return origin[k]
end
},
{
__index = function(tbl, k)
if origin[k] ~= nil then
return nil
end
local args, list, v = args, cfg.aliases[k]
if type(list) == "table" then
v, origin[k] = utilities.select_one(args, list, "err_redundant_parameters")
if origin[k] == nil then
origin[k] = ""
end
elseif list ~= nil then
v, origin[k] = args[list], list
else
error(cfg.messages["unknown_argument_map"] .. ": " .. k)
end
if v == nil then
v = ""
origin[k] = ""
end
tbl = rawset(tbl, k, v)
return v
end
}
)
end
local function nowrap_date(date)
local cap = ""
local cap2 = ""
if date:match("^%d%d%d%d%-%d%d%-%d%d$") then
date = utilities.substitute(cfg.presentation["nowrap1"], date)
elseif date:match("^%a+%s*%d%d?,%s+%d%d%d%d$") or date:match("^%d%d?%s*%a+%s+%d%d%d%d$") then
cap, cap2 = string.match(date, "^(.*)%s+(%d%d%d%d)$")
date = utilities.substitute(cfg.presentation["nowrap2"], {cap, cap2})
end
return date
end
local function set_titletype(cite_class, title_type)
if utilities.is_set(title_type) then
if "none" == cfg.keywords_xlate[title_type] then
title_type = ""
end
return title_type
end
return cfg.title_types[cite_class] or ""
end
local function safe_join(tbl, duplicate_char)
local f = {}
if 1 == #duplicate_char then
f.gsub = string.gsub
f.match = string.match
f.sub = string.sub
else
f.gsub = mw.ustring.gsub
f.match = mw.ustring.match
f.sub = mw.ustring.sub
end
local str = ""
local comp = ""
local end_chr = ""
local trim
for _, value in ipairs(tbl) do
if value == nil then
value = ""
end
if str == "" then
str = value
elseif value ~= "" then
if value:sub(1, 1) == "<" then
comp = value:gsub("%b<>", "")
else
comp = value
end
if f.sub(comp, 1, 1) == duplicate_char then
trim = false
end_chr = f.sub(str, -1, -1)
if end_chr == duplicate_char then
str = f.sub(str, 1, -2)
elseif end_chr == "'" then
if f.sub(str, -3, -1) == duplicate_char .. "''" then
str = f.sub(str, 1, -4) .. "''"
elseif f.sub(str, -5, -1) == duplicate_char .. "]]''" then
trim = true
elseif f.sub(str, -4, -1) == duplicate_char .. "]''" then
trim = true
end
elseif end_chr == "]" then
if f.sub(str, -3, -1) == duplicate_char .. "]]" then
trim = true
elseif f.sub(str, -3, -1) == duplicate_char .. '"]' then
trim = true
elseif f.sub(str, -2, -1) == duplicate_char .. "]" then
trim = true
elseif f.sub(str, -4, -1) == duplicate_char .. "'']" then
trim = true
end
elseif end_chr == " " then
if f.sub(str, -2, -1) == duplicate_char .. " " then
str = f.sub(str, 1, -3)
end
end
if trim then
if value ~= comp then
local dup2 = duplicate_char
if f.match(dup2, "%A") then
dup2 = "%" .. dup2
end
value = f.gsub(value, "(%b<>)" .. dup2, "%1", 1)
else
value = f.sub(value, 2, -1)
end
end
end
str = str .. value
end
end
return str
end
local function is_suffix(suffix)
if utilities.in_array(suffix, {"Jr", "Sr", "Jnr", "Snr", "1st", "2nd", "3rd"}) or suffix:match("^%dth$") then
return true
end
return false
end
local function is_good_vanc_name(last, first, suffix, position)
if not suffix then
if first:find("[,%s]") then
first = first:match("(.-)[,%s]+")
suffix = first:match("[,%s]+(.+)$")
end
end
if utilities.is_set(suffix) then
if not is_suffix(suffix) then
add_vanc_error(cfg.err_msg_supl.suffix, position)
return false
end
end
if
nil ==
mw.ustring.find(
last,
"^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%']*$"
) or
nil ==
mw.ustring.find(
first,
"^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%'%.]*$"
)
then
add_vanc_error(cfg.err_msg_supl["non-Latin char"], position)
return false
end
return true
end
local function reduce_to_initials(first, position)
local name, suffix = mw.ustring.match(first, "^(%u+) ([%dJS][%drndth]+)$")
if not name then
name = mw.ustring.match(first, "^(%u+)$")
end
if name then
if 3 > mw.ustring.len(name) then
if suffix then
if is_suffix(suffix) then
return first
else
add_vanc_error(cfg.err_msg_supl.suffix, position)
return first
end
else
return first
end
end
end
local initials, names = {}, {}
local i = 1
names = mw.text.split(first, "[%s,]+")
while names[i] do
if 1 < i and names[i]:match("[%dJS][%drndth]+%.?$") then
names[i] = names[i]:gsub("%.", "")
if is_suffix(names[i]) then
table.insert(initials, " " .. names[i])
break
end
end
if 3 > i then
table.insert(initials, mw.ustring.sub(names[i], 1, 1))
end
i = i + 1
end
return table.concat(initials)
end
local function list_people(control, people, etal)
local sep
local namesep
local format = control.format
local maximum = control.maximum
local name_list = {}
if "vanc" == format then
sep = cfg.presentation["sep_nl_vanc"]
namesep = cfg.presentation["sep_name_vanc"]
else
sep = cfg.presentation["sep_nl"]
namesep = cfg.presentation["sep_name"]
end
if sep:sub(-1, -1) ~= " " then
sep = sep .. " "
end
if utilities.is_set(maximum) and maximum < 1 then
return "", 0
end
for i, person in ipairs(people) do
if utilities.is_set(person.last) then
local mask = person.mask
local one
local sep_one = sep
if utilities.is_set(maximum) and i > maximum then
etal = true
break
end
if mask then
local n = tonumber(mask)
if n then
one = 0 ~= n and string.rep("—", n) or nil
person.link = nil
else
one = mask
sep_one = " "
end
else
one = person.last
local first = person.first
if utilities.is_set(first) then
if ("vanc" == format) then
one = one:gsub("%.", "")
if not person.corporate and is_good_vanc_name(one, first, nil, i) then
first = reduce_to_initials(first, i)
end
end
one = one .. namesep .. first
end
end
if utilities.is_set(person.link) then
one = utilities.make_wikilink(person.link, one)
end
if one then
table.insert(name_list, one)
table.insert(name_list, sep_one)
end
end
end
local count = #name_list / 2
if 0 < count then
if 1 < count and not etal then
if "amp" == format then
name_list[#name_list - 2] = " & "
elseif "and" == format then
if 2 == count then
name_list[#name_list - 2] = cfg.presentation.sep_nl_and
else
name_list[#name_list - 2] = cfg.presentation.sep_nl_end
end
end
end
name_list[#name_list] = nil
end
local result = table.concat(name_list)
if etal and utilities.is_set(result) then
result = result .. sep .. " " .. cfg.messages["et al"]
end
return result, count
end
local function make_citeref_id(namelist, year)
local names = {}
for i, v in ipairs(namelist) do
names[i] = v.last
if i == 4 then
break
end
end
table.insert(names, year)
local id = table.concat(names)
if utilities.is_set(id) then
return "CITEREF" .. id
else
return ""
end
end
local function cite_class_attribute_make(cite_class, mode)
local class_t = {}
table.insert(class_t, "citation")
if "citation" ~= cite_class then
table.insert(class_t, cite_class)
table.insert(class_t, utilities.is_set(mode) and mode or "cs1")
else
table.insert(class_t, utilities.is_set(mode) and mode or "cs2")
end
for _, prop_key in ipairs(z.prop_keys_t) do
table.insert(class_t, prop_key)
end
return table.concat(class_t, " ")
end
local function name_has_etal(name, etal, nocat, param)
if utilities.is_set(name) then
local patterns = cfg.et_al_patterns
for _, pattern in ipairs(patterns) do
if name:match(pattern) then
name = name:gsub(pattern, "")
etal = true
if not nocat then
utilities.set_message("err_etal", {param})
end
end
end
end
return name, etal
end
local function name_is_numeric(name, list_name)
if utilities.is_set(name) then
if mw.ustring.match(name, "^[%A]+$") then
utilities.set_message("maint_numeric_names", cfg.special_case_translation[list_name])
end
end
end
local function name_has_mult_names(name, list_name)
local _, commas, semicolons, nbsps
if utilities.is_set(name) then
_, commas = name:gsub(",", "")
_, semicolons = name:gsub(";", "")
_, nbsps = name:gsub(" ", "")
if 1 < commas or 0 < (semicolons - nbsps) then
utilities.set_message("maint_mult_names", cfg.special_case_translation[list_name])
end
end
end
local function is_generic(item, value)
local test_val
for _, generic_value in ipairs(cfg.special_case_translation[item]) do
test_val = generic_value["en"][2] and value:lower() or value
if test_val:find(generic_value["en"][1], 1, generic_value["en"][2]) then
return true
elseif generic_value["local"] then
test_val = generic_value["local"][2] and mw.ustring.lower(value) or value
if mw.ustring.find(test_val, generic_value["local"][1], 1, generic_value["local"][2]) then
return true
end
end
end
end
local function name_is_generic(name, name_alias)
if not added_generic_name_errs and is_generic("generic_names", name) then
utilities.set_message("err_generic_name", name_alias)
added_generic_name_errs = true
end
end
local function name_checks(last, first, list_name, last_alias, first_alias)
local accept_name
if utilities.is_set(last) then
last, accept_name = utilities.has_accept_as_written(last)
if not accept_name then
name_has_mult_names(last, list_name)
name_is_numeric(last, list_name)
name_is_generic(last, last_alias)
end
end
if utilities.is_set(first) then
first, accept_name = utilities.has_accept_as_written(first)
if not accept_name then
name_is_numeric(first, list_name)
name_is_generic(first, first_alias)
end
local wl_type, D = utilities.is_wikilink(first)
if 0 ~= wl_type then
first = D
utilities.set_message("err_bad_paramlink", first_alias)
end
end
return last, first
end
local function extract_names(args, list_name)
local names = {}
local last
local first
local link
local mask
local i = 1
local n = 1
local count = 0
local etal = false
local last_alias, first_alias, link_alias
while true do
last, last_alias = utilities.select_one(args, cfg.aliases[list_name .. "-Last"], "err_redundant_parameters", i)
first, first_alias =
utilities.select_one(args, cfg.aliases[list_name .. "-First"], "err_redundant_parameters", i)
link, link_alias = utilities.select_one(args, cfg.aliases[list_name .. "-Link"], "err_redundant_parameters", i)
mask = utilities.select_one(args, cfg.aliases[list_name .. "-Mask"], "err_redundant_parameters", i)
last, etal = name_has_etal(last, etal, false, last_alias)
first, etal = name_has_etal(first, etal, false, first_alias)
last, first = name_checks(last, first, list_name, last_alias, first_alias)
if first and not last then
local alias = first_alias:find("given", 1, true) and "given" or "first"
utilities.set_message(
"err_first_missing_last",
{
first_alias,
first_alias:gsub(alias, {["first"] = "last", ["given"] = "surname"})
}
)
elseif not first and not last then
count = count + 1
if 2 <= count then
break
end
else
local result
link = link_title_ok(link, link_alias, last, last_alias)
if first then
link = link_title_ok(link, link_alias, first, first_alias)
end
names[n] = {last = last, first = first, link = link, mask = mask, corporate = false}
n = n + 1
if 1 == count then
utilities.set_message("err_missing_name", {list_name:match("(%w+)List"):lower(), i - 1})
end
count = 0
end
i = i + 1
end
return names, etal
end
local function name_tag_get(lang_param)
local lang_param_lc = mw.ustring.lower(lang_param)
local name
local tag
--name = cfg.lang_code_remap[lang_param_lc]
name = fetchName(lang_param_lc, "al")
if name ~= lang_param_lc then
return name, lang_param
end
tag = lang_param_lc:match("^(%a%a%a?)%-.*")
--name = cfg.lang_code_remap[tag]
if name then
return name, tag
end
if cfg.lang_name_remap[lang_param_lc] then
return cfg.lang_name_remap[lang_param_lc][1], cfg.lang_name_remap[lang_param_lc][2]
end
tag = cfg.mw_languages_by_name_t[lang_param_lc]
if tag then
return cfg.mw_languages_by_tag_t[tag], tag
end
name = cfg.mw_languages_by_tag_t[lang_param_lc]
if name then
return name, lang_param
end
tag = lang_param_lc:match("^(%a%a%a?)%-.*")
if tag then
name = cfg.mw_languages_by_tag_t[tag]
if name then
return name, tag
end
end
end
local function language_parameter(lang)
local tag
local lang_subtag
local name
local language_list = {}
local names_t = {}
local this_wiki_name = mw.language.fetchLanguageName(cfg.this_wiki_code, cfg.this_wiki_code)
names_t = mw.text.split(lang, "%s*,%s*")
for _, lang in ipairs(names_t) do
name, tag = name_tag_get(lang)
if utilities.is_set(tag) then
lang_subtag = tag:lower():gsub("^(%a%a%a?)%-.*", "%1")
lang_subtag = languagescode[lang_subtag:lower()] or lang_subtag
if cfg.this_wiki_code ~= lang_subtag then
if 2 == lang_subtag:len() then
utilities.add_prop_cat("foreign-lang-source", {name, lang_subtag}, lang_subtag)
else
utilities.add_prop_cat("foreign-lang-source-2", {lang_subtag}, lang_subtag)
end
elseif cfg.local_lang_cat_enable then
utilities.add_prop_cat("local-lang-source", {name, lang_subtag})
end
else
name = lang
utilities.set_message("maint_unknown_lang")
end
table.insert(language_list, name)
name = ""
end
name = utilities.make_sep_list(#language_list, language_list)
if (1 == #language_list) and (lang_subtag == cfg.this_wiki_code) then
return ""
end
return (" " .. wrap_msg("language", name))
end
local function set_cs_style(postscript, mode)
if utilities.is_set(postscript) then
if mode == "cs1" and postscript == cfg.presentation["ps_" .. mode] then
utilities.set_message("maint_postscript")
end
else
postscript = cfg.presentation["ps_" .. mode]
end
return cfg.presentation["sep_" .. mode], postscript
end
local function set_style(mode, postscript, cite_class)
local sep
if "cs2" == mode then
sep, postscript = set_cs_style(postscript, "cs2")
elseif "cs1" == mode then
sep, postscript = set_cs_style(postscript, "cs1")
elseif "citation" == cite_class then
sep, postscript = set_cs_style(postscript, "cs2")
else
sep, postscript = set_cs_style(postscript, "cs1")
end
if cfg.keywords_xlate[postscript:lower()] == "none" then
if "cs2" == mode or "citation" == cite_class then
utilities.set_message("maint_postscript")
end
postscript = ""
end
return sep, postscript
end
local function is_pdf(url)
return url:match("%.pdf$") or url:match("%.PDF$") or url:match("%.pdf[%?#]") or url:match("%.PDF[%?#]") or
url:match("%.PDF#") or
url:match("%.pdf#")
end
local function style_format(format, url, fmt_param, url_param)
if utilities.is_set(format) then
format = utilities.wrap_style("format", format)
if not utilities.is_set(url) then
utilities.set_message("err_format_missing_url", {fmt_param, url_param})
end
elseif is_pdf(url) then
format = utilities.wrap_style("format", "PDF")
else
format = ""
end
return format
end
local function get_display_names(max, count, list_name, etal, param)
if utilities.is_set(max) then
if "etal" == max:lower():gsub("[ '%.]", "") then
max = count + 1
etal = true
elseif max:match("^%d+$") then
max = tonumber(max)
if max >= count then
utilities.set_message("err_disp_name", {param, max})
max = nil
end
else
utilities.set_message("err_disp_name", {param, max})
max = nil
end
end
return max, etal
end
local function extra_text_in_page_check(val, name)
if not val:match(cfg.vol_iss_pg_patterns.good_ppattern) then
for _, pattern in ipairs(cfg.vol_iss_pg_patterns.bad_ppatterns) do
if val:match(pattern) then
utilities.set_message("err_extra_text_pages", name)
return
end
end
end
end
local function extra_text_in_vol_iss_check(val, name, selector)
if not utilities.is_set(val) then
return
end
local patterns = "v" == selector and cfg.vol_iss_pg_patterns.vpatterns or cfg.vol_iss_pg_patterns.ipatterns
local handler = "v" == selector and "err_extra_text_volume" or "err_extra_text_issue"
val = val:lower()
for _, pattern in ipairs(patterns) do
if val:match(pattern) then
utilities.set_message(handler, name)
return
end
end
end
local function get_v_name_table(vparam, output_table, output_link_table)
local name_table = mw.text.split(vparam or "", "%s*,%s*")
local wl_type, label, link
local i = 1
while name_table[i] do
if name_table[i]:match("^%(%(.*[^%)][^%)]$") then
local name = name_table[i]
i = i + 1
while name_table[i] do
name = name .. ", " .. name_table[i]
if name_table[i]:match("^.*%)%)$") then
break
end
i = i + 1
end
table.insert(output_table, name)
table.insert(output_link_table, "")
else
wl_type, label, link = utilities.is_wikilink(name_table[i])
table.insert(output_table, label)
if 1 == wl_type then
table.insert(output_link_table, label)
else
table.insert(output_link_table, link)
end
end
i = i + 1
end
return output_table
end
local function parse_vauthors_veditors(args, vparam, list_name)
local names = {}
local v_name_table = {}
local v_link_table = {}
local etal = false
local last, first, link, mask, suffix
local corporate = false
vparam, etal = name_has_etal(vparam, etal, true)
v_name_table = get_v_name_table(vparam, v_name_table, v_link_table)
for i, v_name in ipairs(v_name_table) do
first = ""
local accept_name
v_name, accept_name = utilities.has_accept_as_written(v_name)
if accept_name then
last = v_name
corporate = true
elseif string.find(v_name, "%s") then
if v_name:find("[;%.]") then
add_vanc_error(cfg.err_msg_supl.punctuation, i)
end
local lastfirstTable = {}
lastfirstTable = mw.text.split(v_name, "%s+")
first = table.remove(lastfirstTable)
if not mw.ustring.match(first, "^%u+$") then
suffix = first
first = table.remove(lastfirstTable)
end
last = table.concat(lastfirstTable, " ")
if not utilities.is_set(last) then
first = ""
last = v_name
add_vanc_error(cfg.err_msg_supl.name, i)
end
if mw.ustring.match(last, "%a+%s+%u+%s+%a+") then
add_vanc_error(cfg.err_msg_supl["missing comma"], i)
end
if mw.ustring.match(v_name, " %u %u$") then
add_vanc_error(cfg.err_msg_supl.initials, i)
end
else
last = v_name
end
if utilities.is_set(first) then
if not mw.ustring.match(first, "^%u?%u$") then
add_vanc_error(cfg.err_msg_supl.initials, i)
end
is_good_vanc_name(last, first, suffix, i)
if utilities.is_set(suffix) then
first = first .. " " .. suffix
suffix = ""
end
else
if not corporate then
is_good_vanc_name(last, "", nil, i)
end
end
link =
utilities.select_one(args, cfg.aliases[list_name .. "-Link"], "err_redundant_parameters", i) or
v_link_table[i]
mask = utilities.select_one(args, cfg.aliases[list_name .. "-Mask"], "err_redundant_parameters", i)
names[i] = {last = last, first = first, link = link, mask = mask, corporate = corporate}
end
return names, etal
end
local function select_author_editor_source(vxxxxors, xxxxors, args, list_name)
local lastfirst = false
if
utilities.select_one(args, cfg.aliases[list_name .. "-Last"], "none", 1) or
utilities.select_one(args, cfg.aliases[list_name .. "-First"], "none", 1) or
utilities.select_one(args, cfg.aliases[list_name .. "-Last"], "none", 2) or
utilities.select_one(args, cfg.aliases[list_name .. "-First"], "none", 2)
then
lastfirst = true
end
if
(utilities.is_set(vxxxxors) and true == lastfirst) or (utilities.is_set(vxxxxors) and utilities.is_set(xxxxors)) or
(true == lastfirst and utilities.is_set(xxxxors))
then
local err_name
if "AuthorList" == list_name then
err_name = "author"
else
err_name = "editor"
end
utilities.set_message("err_redundant_parameters", err_name .. "-name-list parameters")
end
if true == lastfirst then
return 1
end
if utilities.is_set(vxxxxors) then
return 2
end
if utilities.is_set(xxxxors) then
return 3
end
return 1
end
local function is_valid_parameter_value(value, name, possible, ret_val, invert)
if not utilities.is_set(value) then
return ret_val
end
if (not invert and utilities.in_array(value, possible)) then
return cfg.keywords_xlate[value]
elseif invert and not utilities.in_array(value, possible) then
return value
else
utilities.set_message("err_invalid_param_val", {name, value})
return ret_val
end
end
local function terminate_name_list(name_list, sepc)
if (string.sub(name_list, -3, -1) == sepc .. ". ") then
return name_list
elseif (string.sub(name_list, -1, -1) == sepc) or (string.sub(name_list, -3, -1) == sepc .. "]]") then
return name_list .. " "
else
return name_list .. sepc .. " "
end
end
local function format_volume_issue(volume, issue, cite_class, origin, sepc, lower)
if not utilities.is_set(volume) and not utilities.is_set(issue) then
return ""
end
local is_journal =
"journal" == cite_class or
(utilities.in_array(cite_class, {"citation", "map", "interview"}) and "journal" == origin)
local is_numeric_vol = volume and (volume:match("^[MDCLXVI]+$") or volume:match("^%d+$"))
local is_long_vol = volume and (4 < mw.ustring.len(volume))
if volume and (not is_numeric_vol and is_long_vol) then
utilities.add_prop_cat("long-vol")
end
if is_journal then
local vol = ""
if utilities.is_set(volume) then
if is_numeric_vol then
vol = utilities.substitute(cfg.presentation["vol-bold"], {sepc, volume})
elseif is_long_vol then
vol = utilities.substitute(cfg.messages["j-vol"], {sepc, utilities.hyphen_to_dash(volume)})
else
vol = utilities.substitute(cfg.presentation["vol-bold"], {sepc, utilities.hyphen_to_dash(volume)})
end
end
if utilities.is_set(issue) then
return vol .. utilities.substitute(cfg.messages["j-issue"], issue)
end
return vol
end
if "podcast" == cite_class and utilities.is_set(issue) then
return wrap_msg("issue", {sepc, issue}, lower)
end
if utilities.is_set(volume) and utilities.is_set(issue) then
return wrap_msg("vol-no", {sepc, utilities.hyphen_to_dash(volume), issue}, lower)
elseif utilities.is_set(volume) then
return wrap_msg("vol", {sepc, utilities.hyphen_to_dash(volume)}, lower)
else
return wrap_msg("issue", {sepc, issue}, lower)
end
end
local function format_pages_sheets(page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)
if "map" == cite_class then
if utilities.is_set(sheet) then
if "journal" == origin then
return "", "", wrap_msg("j-sheet", sheet, lower), ""
else
return "", "", wrap_msg("sheet", {sepc, sheet}, lower), ""
end
elseif utilities.is_set(sheets) then
if "journal" == origin then
return "", "", "", wrap_msg("j-sheets", sheets, lower)
else
return "", "", "", wrap_msg("sheets", {sepc, sheets}, lower)
end
end
end
local is_journal =
"journal" == cite_class or
(utilities.in_array(cite_class, {"citation", "map", "interview"}) and "journal" == origin)
if utilities.is_set(page) then
if is_journal then
return utilities.substitute(cfg.messages["j-page(s)"], page), "", "", ""
elseif not nopp then
return utilities.substitute(cfg.messages["p-prefix"], {sepc, page}), "", "", ""
else
return utilities.substitute(cfg.messages["nopp"], {sepc, page}), "", "", ""
end
elseif utilities.is_set(pages) then
if is_journal then
return utilities.substitute(cfg.messages["j-page(s)"], pages), "", "", ""
elseif tonumber(pages) ~= nil and not nopp then
return "", utilities.substitute(cfg.messages["p-prefix"], {sepc, pages}), "", ""
elseif not nopp then
return "", utilities.substitute(cfg.messages["pp-prefix"], {sepc, pages}), "", ""
else
return "", utilities.substitute(cfg.messages["nopp"], {sepc, pages}), "", ""
end
end
return "", "", "", ""
end
local function insource_loc_get(page, page_orig, pages, pages_orig, at)
local ws_url, ws_label, coins_pages, L
if utilities.is_set(page) then
if utilities.is_set(pages) or utilities.is_set(at) then
pages = ""
at = ""
end
extra_text_in_page_check(page, page_orig)
ws_url, ws_label, L = wikisource_url_make(page)
if ws_url then
page = external_link(ws_url, ws_label .. " ", "ws link in page")
page =
utilities.substitute(
cfg.presentation["interwiki-icon"],
{cfg.presentation["class-wikisource"], L, page}
)
coins_pages = ws_label
end
elseif utilities.is_set(pages) then
if utilities.is_set(at) then
at = ""
end
extra_text_in_page_check(pages, pages_orig)
ws_url, ws_label, L = wikisource_url_make(pages)
if ws_url then
pages = external_link(ws_url, ws_label .. " ", "ws link in pages")
pages =
utilities.substitute(
cfg.presentation["interwiki-icon"],
{cfg.presentation["class-wikisource"], L, pages}
)
coins_pages = ws_label
end
elseif utilities.is_set(at) then
ws_url, ws_label, L = wikisource_url_make(at)
if ws_url then
at = external_link(ws_url, ws_label .. " ", "ws link in at")
at = utilities.substitute(cfg.presentation["interwiki-icon"], {cfg.presentation["class-wikisource"], L, at})
coins_pages = ws_label
end
end
return page, pages, at, coins_pages
end
local function is_unique_archive_url(archive, url, c_url, source, date)
if utilities.is_set(archive) then
if archive == url or archive == c_url then
utilities.set_message("err_bad_url", {utilities.wrap_style("parameter", source)})
return "", ""
end
end
return archive, date
end
local function archive_url_check(url, date)
local err_msg = ""
local path, timestamp, flag
if (not url:match("//web%.archive%.org/")) and (not url:match("//liveweb%.archive%.org/")) then
return url, date
end
if url:match("//web%.archive%.org/save/") then
err_msg = cfg.err_msg_supl.save
url = url:gsub("(//web%.archive%.org)/save/", "%1/*/", 1)
elseif url:match("//liveweb%.archive%.org/") then
err_msg = cfg.err_msg_supl.liveweb
else
path, timestamp, flag = url:match("//web%.archive%.org/([^%d]*)(%d+)([^/]*)/")
if not path then
err_msg = cfg.err_msg_supl.timestamp
elseif 14 ~= timestamp:len() then
err_msg = cfg.err_msg_supl.timestamp
if "*" ~= flag then
local replacement = timestamp:match("^%d%d%d%d%d%d") or timestamp:match("^%d%d%d%d")
if replacement then
replacement = replacement .. string.rep("0", 14 - replacement:len())
url = url:gsub("(//web%.archive%.org/[^%d]*)%d[^/]*", "%1" .. replacement .. "*", 1)
end
end
elseif utilities.is_set(path) and "web/" ~= path then
err_msg = cfg.err_msg_supl.path
elseif utilities.is_set(flag) and not utilities.is_set(path) then
err_msg = cfg.err_msg_supl.flag
elseif utilities.is_set(flag) and not flag:match("%a%a_") then
err_msg = cfg.err_msg_supl.flag
else
return url, date
end
end
utilities.set_message("err_archive_url", {err_msg})
if is_preview_mode then
return url, date
else
return "", ""
end
end
local function place_check(param_val)
if not utilities.is_set(param_val) then
return param_val
end
if mw.ustring.find(param_val, "%d") then
utilities.set_message("maint_location")
end
return param_val
end
local function is_archived_copy(title)
title = mw.ustring.lower(title)
if title:find(cfg.special_case_translation.archived_copy.en) then
return true
elseif cfg.special_case_translation.archived_copy["local"] then
if mw.ustring.find(title, cfg.special_case_translation.archived_copy["local"]) then
return true
end
end
end
local function citation0(CitationClass, args)
local A = argument_wrapper(args)
local i
local author_etal
local a = {}
local Authors
local NameListStyle =
is_valid_parameter_value(
A["NameListStyle"],
A:ORIGIN("NameListStyle"),
cfg.keywords_lists["name-list-style"],
""
)
local Collaboration = A["Collaboration"]
do
local selected = select_author_editor_source(A["Vauthors"], A["Authors"], args, "AuthorList")
if 1 == selected then
a, author_etal = extract_names(args, "AuthorList")
elseif 2 == selected then
NameListStyle = "vanc"
a, author_etal = parse_vauthors_veditors(args, args.vauthors, "AuthorList")
elseif 3 == selected then
Authors = A["Authors"]
if "authors" == A:ORIGIN("Authors") then
utilities.set_message("maint_authors")
end
end
if utilities.is_set(Collaboration) then
author_etal = true
end
end
local editor_etal
local e = {}
do
local selected = select_author_editor_source(A["Veditors"], nil, args, "EditorList")
if 1 == selected then
e, editor_etal = extract_names(args, "EditorList")
elseif 2 == selected then
NameListStyle = "vanc"
e, editor_etal = parse_vauthors_veditors(args, args.veditors, "EditorList")
end
end
local Chapter = A["Chapter"]
local Chapter_origin = A:ORIGIN("Chapter")
local Contribution
if "contribution" == Chapter_origin then
Contribution = Chapter
end
local c = {}
if utilities.in_array(CitationClass, {"book", "citation"}) and not utilities.is_set(A["Periodical"]) then
c = extract_names(args, "ContributorList")
if 0 < #c then
if not utilities.is_set(Contribution) then
utilities.set_message("err_contributor_missing_required_param", "contribution")
c = {}
end
if 0 == #a then
utilities.set_message("err_contributor_missing_required_param", "author")
c = {}
end
end
else
if utilities.select_one(args, cfg.aliases["ContributorList-Last"], "err_redundant_parameters", 1) then
utilities.set_message("err_contributor_ignored")
end
Contribution = nil
end
local Title = A["Title"]
local TitleLink = A["TitleLink"]
local auto_select = ""
local accept_link
TitleLink, accept_link = utilities.has_accept_as_written(TitleLink, true)
if (not accept_link) and utilities.in_array(TitleLink, {"none", "pmc", "doi"}) then
auto_select = TitleLink
TitleLink = ""
end
TitleLink = link_title_ok(TitleLink, A:ORIGIN("TitleLink"), Title, "title")
local Section = ""
if "map" == CitationClass and "section" == Chapter_origin then
Section = A["Chapter"]
Chapter = ""
end
local Periodical = A["Periodical"]
local Periodical_origin = ""
if utilities.is_set(Periodical) then
Periodical_origin = A:ORIGIN("Periodical")
local i
Periodical, i = utilities.strip_apostrophe_markup(Periodical)
if i then
utilities.set_message("err_apostrophe_markup", {Periodical_origin})
end
end
if "mailinglist" == CitationClass then
if utilities.is_set(Periodical) and utilities.is_set(A["MailingList"]) then
utilities.set_message(
"err_redundant_parameters",
{
utilities.wrap_style("parameter", Periodical_origin) ..
" و " .. utilities.wrap_style("parameter", "mailinglist")
}
)
end
Periodical = A["MailingList"]
Periodical_origin = A:ORIGIN("MailingList")
end
local ScriptPeriodical = A["ScriptPeriodical"]
if not (utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical)) then
local p = {["journal"] = "journal", ["magazine"] = "magazine"}
if p[CitationClass] then
utilities.set_message("err_missing_periodical", {CitationClass, p[CitationClass]})
end
end
local Volume
local ScriptPeriodical_origin = A:ORIGIN("ScriptPeriodical")
if "citation" == CitationClass then
if utilities.is_set(Periodical) then
if not utilities.in_array(Periodical_origin, {"website", "mailinglist"}) then
Volume = A["Volume"]
end
elseif utilities.is_set(ScriptPeriodical) then
if "script-website" ~= ScriptPeriodical_origin then
Volume = A["Volume"]
end
else
Volume = A["Volume"]
end
elseif utilities.in_array(CitationClass, cfg.templates_using_volume) then
Volume = A["Volume"]
end
extra_text_in_vol_iss_check(Volume, A:ORIGIN("Volume"), "v")
local Issue
if "citation" == CitationClass then
if
utilities.is_set(Periodical) and
utilities.in_array(Periodical_origin, {"journal", "magazine", "newspaper", "periodical", "work"}) or
utilities.is_set(ScriptPeriodical) and
utilities.in_array(
ScriptPeriodical_origin,
{"script-journal", "script-magazine", "script-newspaper", "script-periodical", "script-work"}
)
then
Issue = utilities.hyphen_to_dash(A["Issue"])
end
elseif utilities.in_array(CitationClass, cfg.templates_using_issue) then
if
not (utilities.in_array(CitationClass, {"conference", "map", "citation"}) and
not (utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical)))
then
Issue = utilities.hyphen_to_dash(A["Issue"])
end
end
extra_text_in_vol_iss_check(Issue, A:ORIGIN("Issue"), "i")
local Page
local Pages
local At
if not utilities.in_array(CitationClass, cfg.templates_not_using_page) then
Page = A["Page"]
Pages = utilities.hyphen_to_dash(A["Pages"])
At = A["At"]
end
local Edition = A["Edition"]
local PublicationPlace = place_check(A["PublicationPlace"], A:ORIGIN("PublicationPlace"))
local Place = place_check(A["Place"], A:ORIGIN("Place"))
local PublisherName = A["PublisherName"]
local PublisherName_origin = A:ORIGIN("PublisherName")
if utilities.is_set(PublisherName) then
local i = 0
PublisherName, i = utilities.strip_apostrophe_markup(PublisherName)
if i then
utilities.set_message("err_apostrophe_markup", {PublisherName_origin})
end
end
local Newsgroup = A["Newsgroup"]
local Newsgroup_origin = A:ORIGIN("Newsgroup")
if "newsgroup" == CitationClass then
if utilities.is_set(PublisherName) then
utilities.set_message("err_parameter_ignored", {PublisherName_origin})
end
PublisherName = nil
end
local URL = A["URL"]
local UrlAccess =
is_valid_parameter_value(A["UrlAccess"], A:ORIGIN("UrlAccess"), cfg.keywords_lists["url-access"], nil)
if not utilities.is_set(URL) and utilities.is_set(UrlAccess) then
UrlAccess = nil
utilities.set_message("err_param_access_requires_param", "url")
end
local ChapterURL = A["ChapterURL"]
local ChapterUrlAccess =
is_valid_parameter_value(
A["ChapterUrlAccess"],
A:ORIGIN("ChapterUrlAccess"),
cfg.keywords_lists["url-access"],
nil
)
if not utilities.is_set(ChapterURL) and utilities.is_set(ChapterUrlAccess) then
ChapterUrlAccess = nil
utilities.set_message("err_param_access_requires_param", {A:ORIGIN("ChapterUrlAccess"):gsub("%-access", "")})
end
local MapUrlAccess =
is_valid_parameter_value(A["MapUrlAccess"], A:ORIGIN("MapUrlAccess"), cfg.keywords_lists["url-access"], nil)
if not utilities.is_set(A["MapURL"]) and utilities.is_set(MapUrlAccess) then
MapUrlAccess = nil
utilities.set_message("err_param_access_requires_param", {"map-url"})
end
local this_page = mw.title.getCurrentTitle()
local no_tracking_cats =
is_valid_parameter_value(A["NoTracking"], A:ORIGIN("NoTracking"), cfg.keywords_lists["yes_true_y"], nil)
if not utilities.is_set(no_tracking_cats) then
if utilities.in_array(this_page.nsText, cfg.uncategorized_namespaces) then
no_tracking_cats = "true"
end
for _, v in ipairs(cfg.uncategorized_subpages) do
if this_page.text:match(v) then
no_tracking_cats = "true"
break
end
end
end
utilities.select_one(args, {"page", "p", "pp", "pages", "at", "sheet", "sheets"}, "err_redundant_parameters")
local coins_pages
Page, Pages, At, coins_pages = insource_loc_get(Page, A:ORIGIN("Page"), Pages, A:ORIGIN("Pages"), At)
local NoPP = is_valid_parameter_value(A["NoPP"], A:ORIGIN("NoPP"), cfg.keywords_lists["yes_true_y"], nil)
if utilities.is_set(PublicationPlace) and utilities.is_set(Place) then
utilities.add_prop_cat("location-test")
if PublicationPlace == Place then
Place = ""
end
elseif not utilities.is_set(PublicationPlace) and utilities.is_set(Place) then
PublicationPlace = Place
end
if PublicationPlace == Place then
Place = ""
end
local URL_origin = A:ORIGIN("URL")
local ChapterURL_origin = A:ORIGIN("ChapterURL")
local ScriptChapter = A["ScriptChapter"]
local ScriptChapter_origin = A:ORIGIN("ScriptChapter")
local Format = A["Format"]
local ChapterFormat = A["ChapterFormat"]
local TransChapter = A["TransChapter"]
local TransChapter_origin = A:ORIGIN("TransChapter")
local TransTitle = A["TransTitle"]
local ScriptTitle = A["ScriptTitle"]
local Encyclopedia = A["Encyclopedia"]
if utilities.is_set(Encyclopedia) then
if "encyclopaedia" ~= CitationClass and "citation" ~= CitationClass then
utilities.set_message("err_parameter_ignored", {A:ORIGIN("Encyclopedia")})
Encyclopedia = nil
end
end
if
("encyclopaedia" == CitationClass) or
("citation" == CitationClass and utilities.is_set(Encyclopedia))
then
if utilities.is_set(Periodical) and utilities.is_set(Encyclopedia) then
utilities.set_message(
"err_redundant_parameters",
{
utilities.wrap_style("parameter", A:ORIGIN("Encyclopedia")) ..
" و " .. utilities.wrap_style("parameter", Periodical_origin)
}
)
end
if utilities.is_set(Encyclopedia) then
Periodical = Encyclopedia
Periodical_origin = A:ORIGIN("Encyclopedia")
end
if utilities.is_set(Periodical) then
if utilities.is_set(Title) or utilities.is_set(ScriptTitle) then
if not utilities.is_set(Chapter) then
Chapter = Title
ScriptChapter = ScriptTitle
ScriptChapter_origin = A:ORIGIN("ScriptTitle")
TransChapter = TransTitle
ChapterURL = URL
ChapterURL_origin = URL_origin
ChapterUrlAccess = UrlAccess
if not utilities.is_set(ChapterURL) and utilities.is_set(TitleLink) then
Chapter = utilities.make_wikilink(TitleLink, Chapter)
end
Title = Periodical
ChapterFormat = Format
Periodical = ""
TransTitle = ""
URL = ""
Format = ""
TitleLink = ""
ScriptTitle = ""
end
elseif utilities.is_set(Chapter) or utilities.is_set(ScriptChapter) then
Title = Periodical
Periodical = ""
end
end
end
local ID = A["ID"]
if (CitationClass == "techreport") then
if utilities.is_set(A["Number"]) then
if not utilities.is_set(ID) then
ID = A["Number"]
else
utilities.set_message(
"err_redundant_parameters",
{utilities.wrap_style("parameter", "id") .. " و " .. utilities.wrap_style("parameter", "number")}
)
end
end
end
local ChapterLink
local Conference = A["Conference"]
local BookTitle = A["BookTitle"]
local TransTitle_origin = A:ORIGIN("TransTitle")
if "conference" == CitationClass then
if utilities.is_set(BookTitle) then
Chapter = Title
Chapter_origin = "title"
ChapterURL = URL
ChapterUrlAccess = UrlAccess
ChapterURL_origin = URL_origin
URL_origin = ""
ChapterFormat = Format
TransChapter = TransTitle
TransChapter_origin = TransTitle_origin
Title = BookTitle
Format = ""
TransTitle = ""
URL = ""
end
elseif "speech" ~= CitationClass then
Conference = ""
end
local Mode = is_valid_parameter_value(A["Mode"], A:ORIGIN("Mode"), cfg.keywords_lists["mode"], "")
local sepc, PostScript = set_style(Mode:lower(), A["PostScript"], CitationClass)
local use_lowercase = (sepc == ",")
local Cartography = ""
local Scale = ""
local Sheet = A["Sheet"] or ""
local Sheets = A["Sheets"] or ""
if CitationClass == "map" then
if utilities.is_set(Chapter) then
utilities.set_message(
"err_redundant_parameters",
{
utilities.wrap_style("parameter", "map") ..
" و " .. utilities.wrap_style("parameter", Chapter_origin)
}
)
end
Chapter = A["Map"]
Chapter_origin = A:ORIGIN("Map")
ChapterURL = A["MapURL"]
ChapterURL_origin = A:ORIGIN("MapURL")
TransChapter = A["TransMap"]
ScriptChapter = A["ScriptMap"]
ScriptChapter_origin = A:ORIGIN("ScriptMap")
ChapterUrlAccess = MapUrlAccess
ChapterFormat = A["MapFormat"]
Cartography = A["Cartography"]
if utilities.is_set(Cartography) then
Cartography = sepc .. " " .. wrap_msg("cartography", Cartography, use_lowercase)
end
Scale = A["Scale"]
if utilities.is_set(Scale) then
Scale = sepc .. " " .. Scale
end
end
local Series = A["Series"]
if "episode" == CitationClass or "serial" == CitationClass then
local SeriesLink = A["SeriesLink"]
SeriesLink = link_title_ok(SeriesLink, A:ORIGIN("SeriesLink"), Series, "series")
local Network = A["Network"]
local Station = A["Station"]
local s, n = {}, {}
if utilities.is_set(Network) then
table.insert(n, Network)
end
if utilities.is_set(Station) then
table.insert(n, Station)
end
ID = table.concat(n, sepc .. " ")
if "episode" == CitationClass then
local Season = A["Season"]
local SeriesNumber = A["SeriesNumber"]
if utilities.is_set(Season) and utilities.is_set(SeriesNumber) then
utilities.set_message(
"err_redundant_parameters",
{
utilities.wrap_style("parameter", "season") ..
" و " .. utilities.wrap_style("parameter", "seriesno")
}
)
SeriesNumber = ""
end
if utilities.is_set(Season) then
table.insert(s, wrap_msg("season", Season, use_lowercase))
end
if utilities.is_set(SeriesNumber) then
table.insert(s, wrap_msg("seriesnum", SeriesNumber, use_lowercase))
end
if utilities.is_set(Issue) then
table.insert(s, wrap_msg("episode", Issue, use_lowercase))
end
Issue = ""
Chapter = Title
ScriptChapter = ScriptTitle
ScriptChapter_origin = A:ORIGIN("ScriptTitle")
ChapterLink = TitleLink
TransChapter = TransTitle
ChapterURL = URL
ChapterUrlAccess = UrlAccess
ChapterURL_origin = URL_origin
Title = Series
TitleLink = SeriesLink
Series = table.concat(s, sepc .. " ")
if utilities.is_set(ChapterLink) and not utilities.is_set(ChapterURL) then
Chapter = utilities.make_wikilink(ChapterLink, Chapter)
elseif utilities.is_set(ChapterLink) and utilities.is_set(ChapterURL) then
Series = utilities.make_wikilink(ChapterLink, Series)
end
URL = ""
TransTitle = ""
ScriptTitle = ""
else
Issue = ""
Chapter = A["Episode"]
if utilities.is_set(Series) and utilities.is_set(SeriesLink) then
Series = utilities.make_wikilink(SeriesLink, Series)
end
Series = utilities.wrap_style("italic-title", Series)
end
end
local TitleType = A["TitleType"]
local Degree = A["Degree"]
if
utilities.in_array(
CitationClass,
{
"AV-media-notes",
"interview",
"mailinglist",
"map",
"podcast",
"pressrelease",
"report",
"speech",
"techreport",
"thesis"
}
)
then
TitleType = set_titletype(CitationClass, TitleType)
if utilities.is_set(Degree) and "Thesis" == TitleType then
TitleType = Degree .. " " .. cfg.title_types["thesis"]:lower()
end
end
if utilities.is_set(TitleType) then
TitleType = utilities.substitute(cfg.messages["type"], TitleType)
end
local Date = A["Date"]
local Date_origin
local PublicationDate = A["PublicationDate"]
local Year = A["Year"]
if not utilities.is_set(Date) then
Date = Year
Year = nil
if not utilities.is_set(Date) and utilities.is_set(PublicationDate) then
Date = PublicationDate
PublicationDate = ""
Date_origin = A:ORIGIN("PublicationDate")
else
Date_origin = A:ORIGIN("Year")
end
else
Date_origin = A:ORIGIN("Date")
end
if PublicationDate == Date then
PublicationDate = ""
end
local DF = is_valid_parameter_value(A["DF"], A:ORIGIN("DF"), cfg.keywords_lists["df"], "")
if not utilities.is_set(DF) then
DF = cfg.global_df
end
local ArchiveURL
local ArchiveDate
local ArchiveFormat = A["ArchiveFormat"]
ArchiveURL, ArchiveDate = archive_url_check(A["ArchiveURL"], A["ArchiveDate"])
ArchiveFormat = style_format(ArchiveFormat, ArchiveURL, "archive-format", "archive-url")
ArchiveURL, ArchiveDate = is_unique_archive_url(ArchiveURL, URL, ChapterURL, A:ORIGIN("ArchiveURL"), ArchiveDate)
local AccessDate = A["AccessDate"]
local LayDate = A["LayDate"]
local COinS_date = {}
local DoiBroken = A["DoiBroken"]
local Embargo = A["Embargo"]
local anchor_year
do
local error_message = ""
if utilities.is_set(AccessDate) then AccessDate = check_date_n(AccessDate) end
if utilities.is_set(ArchiveDate) then ArchiveDate = check_date_n(ArchiveDate) end
if utilities.is_set(Date) then Date = check_date_n(Date) end
if utilities.is_set(LayDate) then LayDate = check_date_n(LayDate) end
if utilities.is_set(PublicationDate) then PublicationDate = check_date_n(PublicationDate) end
local date_parameters_list = {
["access-date"] = {val = AccessDate, name = A:ORIGIN("AccessDate")},
["archive-date"] = {val = ArchiveDate, name = A:ORIGIN("ArchiveDate")},
["date"] = {val = Date, name = Date_origin},
["doi-broken-date"] = {val = DoiBroken, name = A:ORIGIN("DoiBroken")},
["pmc-embargo-date"] = {val = Embargo, name = A:ORIGIN("Embargo")},
["lay-date"] = {val = LayDate, name = A:ORIGIN("LayDate")},
["publication-date"] = {val = PublicationDate, name = A:ORIGIN("PublicationDate")},
["year"] = {val = Year, name = A:ORIGIN("Year")}
}
--mw.log("AccessDate: " .. AccessDate)
local error_list = {}
anchor_year, Embargo = validation.dates(date_parameters_list, COinS_date, error_list)
if COinS_date.inter_cal_cat then
utilities.add_prop_cat("jul-greg-uncertainty")
end
if utilities.is_set(Year) and utilities.is_set(Date) then
validation.year_date_check(Year, A:ORIGIN("Year"), Date, A:ORIGIN("Date"), error_list)
end
if 0 == #error_list then
mw.log(" 0 == #error_list" )
local modified = false
if utilities.is_set(DF) then
mw.log(" start reformat_dates" )
modified = validation.reformat_dates(date_parameters_list, DF)
end
if true == validation.date_hyphen_to_dash(date_parameters_list) then
modified = true
utilities.set_message("maint_date_format")
end
if
cfg.date_name_auto_xlate_enable and
validation.date_name_xlate(date_parameters_list, cfg.date_digit_auto_xlate_enable)
then
utilities.set_message("maint_date_auto_xlated")
modified = true
end
if modified then
AccessDate = date_parameters_list["access-date"].val
ArchiveDate = date_parameters_list["archive-date"].val
Date = date_parameters_list["date"].val
DoiBroken = date_parameters_list["doi-broken-date"].val
LayDate = date_parameters_list["lay-date"].val
PublicationDate = date_parameters_list["publication-date"].val
end
else
utilities.set_message("err_bad_date", {utilities.make_sep_list(#error_list, error_list)})
end
end
local ID_list = {}
local ID_list_coins = {}
local Class = A["Class"]
local ID_support = {
{A["ASINTLD"], "ASIN", "err_asintld_missing_asin", A:ORIGIN("ASINTLD")},
{DoiBroken, "DOI", "err_doibroken_missing_doi", A:ORIGIN("DoiBroken")},
{Embargo, "PMC", "err_embargo_missing_pmc", A:ORIGIN("Embargo")}
}
ID_list, ID_list_coins =
identifiers.identifier_lists_get(
args,
{DoiBroken = DoiBroken, ASINTLD = A["ASINTLD"], Embargo = Embargo, Class = Class},
ID_support
)
if utilities.in_array(CitationClass, whitelist.preprint_template_list) then
if not utilities.is_set(ID_list_coins[CitationClass:upper()]) then
utilities.set_message("err_" .. CitationClass .. "_missing")
end
Periodical =
({
["arxiv"] = "arXiv",
["biorxiv"] = "bioRxiv",
["citeseerx"] = "CiteSeerX",
["ssrn"] = "Social Science Research Network"
})[CitationClass]
end
if
CitationClass == "journal" and not utilities.is_set(URL) and not utilities.is_set(TitleLink) and
not utilities.in_array(cfg.keywords_xlate[Title], {"off", "none"})
then
if "none" ~= cfg.keywords_xlate[auto_select] then
if identifiers.auto_link_urls[auto_select] then
URL = identifiers.auto_link_urls[auto_select]
URL_origin = cfg.id_handlers[auto_select:upper()].parameters[1]
elseif identifiers.auto_link_urls["pmc"] then
URL = identifiers.auto_link_urls["pmc"]
URL_origin = cfg.id_handlers["PMC"].parameters[1]
elseif identifiers.auto_link_urls["doi"] then
URL = identifiers.auto_link_urls["doi"]
URL_origin = cfg.id_handlers["DOI"].parameters[1]
end
end
if utilities.is_set(URL) and utilities.is_set(AccessDate) then
utilities.set_message("err_accessdate_missing_url")
AccessDate = ""
end
end
if not utilities.is_set(Title) and not utilities.is_set(TransTitle) and not utilities.is_set(ScriptTitle) then
utilities.set_message("err_citation_missing_title", {"episode" == CitationClass and "series" or "title"})
end
if
utilities.in_array(cfg.keywords_xlate[Title], {"off", "none"}) and
utilities.in_array(CitationClass, {"journal", "citation"}) and
(utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical)) and
("journal" == Periodical_origin or "script-journal" == ScriptPeriodical_origin)
then
Title = ""
utilities.set_message("maint_untitled")
end
local coins_chapter = Chapter
local coins_title = Title
if
"encyclopaedia" == CitationClass or
("citation" == CitationClass and utilities.is_set(Encyclopedia))
then
if utilities.is_set(Chapter) and utilities.is_set(Title) and utilities.is_set(Periodical) then
coins_chapter = Title
coins_title = Periodical
end
end
local coins_author = a
if 0 < #c then
coins_author = c
end
local QuotePage = A["QuotePage"]
local QuotePages = utilities.hyphen_to_dash(A["QuotePages"])
local OCinSoutput =
metadata.COinS(
{
["Periodical"] = utilities.strip_apostrophe_markup(Periodical),
["Encyclopedia"] = Encyclopedia,
["Chapter"] = metadata.make_coins_title(coins_chapter, ScriptChapter),
["Degree"] = Degree,
["Title"] = metadata.make_coins_title(coins_title, ScriptTitle),
["PublicationPlace"] = PublicationPlace,
["Date"] = COinS_date.rftdate,
["Season"] = COinS_date.rftssn,
["Quarter"] = COinS_date.rftquarter,
["Chron"] = COinS_date.rftchron or (not COinS_date.rftdate and Date) or "",
["Series"] = Series,
["Volume"] = Volume,
["Issue"] = Issue,
["Pages"] = coins_pages or
metadata.get_coins_pages(first_set({Sheet, Sheets, Page, Pages, At, QuotePage, QuotePages}, 7)),
["Edition"] = Edition,
["PublisherName"] = PublisherName or Newsgroup,
["URL"] = first_set({ChapterURL, URL}, 2),
["Authors"] = coins_author,
["ID_list"] = ID_list_coins,
["RawPage"] = this_page.prefixedText
},
CitationClass
)
if utilities.in_array(CitationClass, whitelist.preprint_template_list) then
Periodical = ""
end
if "newsgroup" == CitationClass and utilities.is_set(Newsgroup) then
PublisherName =
utilities.substitute(
cfg.messages["newsgroup"],
external_link("news:" .. Newsgroup, Newsgroup, Newsgroup_origin, nil)
)
end
local Editors
local EditorCount
local Contributors
local contributor_etal
local Translators
local translator_etal
local t = {}
t = extract_names(args, "TranslatorList")
local Interviewers
local interviewers_list = {}
interviewers_list = extract_names(args, "InterviewerList")
local interviewer_etal
do
local last_first_list
local control = {
format = NameListStyle,
maximum = nil,
mode = Mode
}
do
control.maximum, editor_etal =
get_display_names(A["DisplayEditors"], #e, "editors", editor_etal, A:ORIGIN("DisplayEditors"))
Editors, EditorCount = list_people(control, e, editor_etal)
if 1 == EditorCount and (true == editor_etal or 1 < #e) then
EditorCount = 2
end
end
do
control.maximum, interviewer_etal =
get_display_names(
A["DisplayInterviewers"],
#interviewers_list,
"interviewers",
interviewer_etal,
A:ORIGIN("DisplayInterviewers")
)
Interviewers = list_people(control, interviewers_list, interviewer_etal)
end
do
control.maximum, translator_etal =
get_display_names(
A["DisplayTranslators"],
#t,
"translators",
translator_etal,
A:ORIGIN("DisplayTranslators")
)
Translators = list_people(control, t, translator_etal)
end
do
control.maximum, contributor_etal =
get_display_names(
A["DisplayContributors"],
#c,
"contributors",
contributor_etal,
A:ORIGIN("DisplayContributors")
)
Contributors = list_people(control, c, contributor_etal)
end
do
control.maximum, author_etal =
get_display_names(A["DisplayAuthors"], #a, "authors", author_etal, A:ORIGIN("DisplayAuthors"))
last_first_list = list_people(control, a, author_etal)
if utilities.is_set(Authors) then
Authors, author_etal = name_has_etal(Authors, author_etal, false, "authors")
if author_etal then
Authors = Authors .. " " .. cfg.messages["et al"]
end
else
Authors = last_first_list
end
end
if utilities.is_set(Authors) and utilities.is_set(Collaboration) then
Authors = Authors .. " (" .. Collaboration .. ")"
end
end
local ConferenceFormat = A["ConferenceFormat"]
local ConferenceURL = A["ConferenceURL"]
ConferenceFormat = style_format(ConferenceFormat, ConferenceURL, "conference-format", "conference-url")
Format = style_format(Format, URL, "format", "url")
if
not (utilities.in_array(
CitationClass,
{
"web",
"news",
"journal",
"magazine",
"pressrelease",
"podcast",
"newsgroup",
"arxiv",
"biorxiv",
"citeseerx",
"ssrn"
}
) or
("citation" == CitationClass and (utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical)) and
not utilities.is_set(Encyclopedia)))
then
ChapterFormat = style_format(ChapterFormat, ChapterURL, "chapter-format", "chapter-url")
end
if not utilities.is_set(URL) then
if
utilities.in_array(CitationClass, {"web", "podcast", "mailinglist"}) or
("citation" == CitationClass and
("website" == Periodical_origin or "script-website" == ScriptPeriodical_origin))
then
utilities.set_message("err_cite_web_url")
end
if utilities.is_set(AccessDate) and not utilities.is_set(ChapterURL) then
utilities.set_message("err_accessdate_missing_url")
AccessDate = ""
end
end
local UrlStatus =
is_valid_parameter_value(A["UrlStatus"], A:ORIGIN("UrlStatus"), cfg.keywords_lists["url-status"], "")
local OriginalURL
local OriginalURL_origin
local OriginalFormat
local OriginalAccess
UrlStatus = UrlStatus:lower()
if utilities.is_set(ArchiveURL) then
if utilities.is_set(ChapterURL) then
OriginalURL = ChapterURL
OriginalURL_origin = ChapterURL_origin
OriginalFormat = ChapterFormat
if "live" ~= UrlStatus then
ChapterURL = ArchiveURL
ChapterURL_origin = A:ORIGIN("ArchiveURL")
ChapterFormat = ArchiveFormat or ""
ChapterUrlAccess = nil
end
elseif utilities.is_set(URL) then
OriginalURL = URL
OriginalURL_origin = URL_origin
OriginalFormat = Format
OriginalAccess = UrlAccess
if "live" ~= UrlStatus then
URL = ArchiveURL
URL_origin = A:ORIGIN("ArchiveURL")
Format = ArchiveFormat or ""
UrlAccess = nil
end
end
elseif utilities.is_set(UrlStatus) then
utilities.set_message("maint_url_status")
end
if
utilities.in_array(
CitationClass,
{
"web",
"news",
"journal",
"magazine",
"pressrelease",
"podcast",
"newsgroup",
"arxiv",
"biorxiv",
"citeseerx",
"ssrn"
}
) or
("citation" == CitationClass and (utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical)) and
not utilities.is_set(Encyclopedia))
then
local chap_param
if utilities.is_set(Chapter) then
chap_param = A:ORIGIN("Chapter")
elseif utilities.is_set(TransChapter) then
chap_param = A:ORIGIN("TransChapter")
elseif utilities.is_set(ChapterURL) then
chap_param = A:ORIGIN("ChapterURL")
elseif utilities.is_set(ScriptChapter) then
chap_param = ScriptChapter_origin
else
utilities.is_set(ChapterFormat)
chap_param = A:ORIGIN("ChapterFormat")
end
if utilities.is_set(chap_param) then
utilities.set_message("err_chapter_ignored", {chap_param})
Chapter = ""
TransChapter = ""
ChapterURL = ""
ScriptChapter = ""
ChapterFormat = ""
end
else
local no_quotes = false
if utilities.is_set(Contribution) and 0 < #c then
if utilities.in_array(Contribution:lower(), cfg.keywords_lists.contribution) then
no_quotes = true
end
end
Chapter =
format_chapter_title(
ScriptChapter,
ScriptChapter_origin,
Chapter,
Chapter_origin,
TransChapter,
TransChapter_origin,
ChapterURL,
ChapterURL_origin,
no_quotes,
ChapterUrlAccess
)
if utilities.is_set(Chapter) then
Chapter = Chapter .. ChapterFormat
if "map" == CitationClass and utilities.is_set(TitleType) then
Chapter = Chapter .. " " .. TitleType
end
Chapter = Chapter .. sepc .. " "
elseif utilities.is_set(ChapterFormat) then
Chapter = ChapterFormat .. sepc .. " "
end
end
local plain_title = false
local accept_title
Title, accept_title = utilities.has_accept_as_written(Title, true)
if accept_title and ("" == Title) then
Title = cfg.messages["notitle"]
ScriptTitle = ""
TransTitle = ""
plain_title = true
utilities.set_message("maint_untitled")
end
if not accept_title then
if "..." == Title:sub(-3) then
Title = Title:gsub("(%.%.%.)%.+$", "%1")
elseif not mw.ustring.find(Title, "%.%s*%a%.$") and not mw.ustring.find(Title, "%s+%a%.$") then
Title = mw.ustring.gsub(Title, "%" .. sepc .. "$", "")
end
if utilities.is_set(ArchiveURL) and is_archived_copy(Title) then
utilities.set_message("maint_archived_copy")
end
if is_generic("generic_titles", Title) then
utilities.set_message("err_generic_title")
end
end
if
(not plain_title) and
(utilities.in_array(
CitationClass,
{
"web",
"news",
"journal",
"magazine",
"pressrelease",
"podcast",
"newsgroup",
"mailinglist",
"interview",
"arxiv",
"biorxiv",
"citeseerx",
"ssrn"
}
) or
("citation" == CitationClass and
(utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical)) and
not utilities.is_set(Encyclopedia)) or
("map" == CitationClass and (utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical))))
then
Title = kern_quotes(Title)
Title = utilities.wrap_style("quoted-title", Title)
Title = script_concatenate(Title, ScriptTitle, "script-title")
TransTitle = utilities.wrap_style("trans-quoted-title", TransTitle)
elseif plain_title or ("report" == CitationClass) then
Title = script_concatenate(Title, ScriptTitle, "script-title")
TransTitle = utilities.wrap_style("trans-quoted-title", TransTitle)
else
Title = utilities.wrap_style("italic-title", Title)
Title = script_concatenate(Title, ScriptTitle, "script-title")
TransTitle = utilities.wrap_style("trans-italic-title", TransTitle)
end
if utilities.is_set(TransTitle) then
if utilities.is_set(Title) then
TransTitle = " " .. TransTitle
else
utilities.set_message("err_trans_missing_title", {"title"})
end
end
if utilities.is_set(Title) then
if utilities.is_set(TitleLink) and utilities.is_set(URL) then
utilities.set_message("err_wikilink_in_url")
TitleLink = ""
end
if not utilities.is_set(TitleLink) and utilities.is_set(URL) then
Title = external_link(URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format
URL = ""
Format = ""
elseif utilities.is_set(TitleLink) and not utilities.is_set(URL) then
local ws_url
ws_url = wikisource_url_make(TitleLink)
if ws_url then
Title = external_link(ws_url, Title .. " ", "ws link in title-link")
Title =
utilities.substitute(
cfg.presentation["interwiki-icon"],
{cfg.presentation["class-wikisource"], TitleLink, Title}
)
Title = Title .. TransTitle
else
Title = utilities.make_wikilink(TitleLink, Title) .. TransTitle
end
else
local ws_url, ws_label, L
ws_url, ws_label, L = wikisource_url_make(Title:gsub('^[\'"]*(.-)[\'"]*$', "%1"))
if ws_url then
Title = Title:gsub("%b[]", ws_label)
Title = external_link(ws_url, Title .. " ", "ws link in title")
Title =
utilities.substitute(
cfg.presentation["interwiki-icon"],
{cfg.presentation["class-wikisource"], L, Title}
)
Title = Title .. TransTitle
else
Title = Title .. TransTitle
end
end
else
Title = TransTitle
end
if utilities.is_set(Place) then
Place = " " .. wrap_msg("written", Place, use_lowercase) .. sepc .. " "
end
local ConferenceURL_origin = A:ORIGIN("ConferenceURL")
if utilities.is_set(Conference) then
if utilities.is_set(ConferenceURL) then
Conference = external_link(ConferenceURL, Conference, ConferenceURL_origin, nil)
end
Conference = sepc .. " " .. Conference .. ConferenceFormat
elseif utilities.is_set(ConferenceURL) then
Conference = sepc .. " " .. external_link(ConferenceURL, nil, ConferenceURL_origin, nil)
end
local Position = ""
if not utilities.is_set(Position) then
local Minutes = A["Minutes"]
local Time = A["Time"]
if utilities.is_set(Minutes) then
if utilities.is_set(Time) then
utilities.set_message(
"err_redundant_parameters",
{
utilities.wrap_style("parameter", "minutes") ..
" و " .. utilities.wrap_style("parameter", "time")
}
)
end
Position = " " .. Minutes .. " " .. cfg.messages["minutes"]
else
if utilities.is_set(Time) then
local TimeCaption = A["TimeCaption"]
if not utilities.is_set(TimeCaption) then
TimeCaption = cfg.messages["event"]
--if sepc ~= "." then TimeCaption = TimeCaption:lower() end
end
Position = " " .. TimeCaption .. " " .. Time
end
end
else
Position = " " .. Position
At = ""
end
Page, Pages, Sheet, Sheets =
format_pages_sheets(
Page,
Pages,
Sheet,
Sheets,
CitationClass,
Periodical_origin,
sepc,
NoPP,
use_lowercase
)
At = utilities.is_set(At) and (sepc .. " " .. At) or ""
Position = utilities.is_set(Position) and (sepc .. " " .. Position) or ""
if CitationClass == "map" then
local Sections = A["Sections"]
local Inset = A["Inset"]
if utilities.is_set(Inset) then
Inset = sepc .. " " .. wrap_msg("inset", Inset, use_lowercase)
end
if utilities.is_set(Sections) then
Section = sepc .. " " .. wrap_msg("sections", Sections, use_lowercase)
elseif utilities.is_set(Section) then
Section = sepc .. " " .. wrap_msg("section", Section, use_lowercase)
end
At = At .. Inset .. Section
end
local Others = A["Others"]
if utilities.is_set(Others) and 0 == #a and 0 == #e then
if CitationClass == "AV-media-notes" or CitationClass == "audio-visual" then
utilities.set_message("maint_others_avm")
else
utilities.set_message("maint_others")
end
end
Others = utilities.is_set(Others) and (sepc .. " " .. Others) or ""
if utilities.is_set(Translators) then
Others = safe_join({sepc .. " ", wrap_msg("translated", Translators, use_lowercase), Others}, sepc)
end
if utilities.is_set(Interviewers) then
Others = safe_join({sepc .. " ", wrap_msg("interview", Interviewers, use_lowercase), Others}, sepc)
end
local TitleNote = A["TitleNote"]
TitleNote = utilities.is_set(TitleNote) and (sepc .. " " .. TitleNote) or ""
if utilities.is_set(Edition) then
if Edition:match("%f[%a][Ee]d%n?%.?$") or Edition:match("%f[%a][Ee]dition$") then
utilities.set_message("err_extra_text_edition")
end
Edition = " " .. wrap_msg("edition", Edition)
else
Edition = ""
end
Series = utilities.is_set(Series) and wrap_msg("series", {sepc, Series}) or ""
local Agency = A["Agency"]
Agency = utilities.is_set(Agency) and wrap_msg("agency", {sepc, Agency}) or ""
Volume = format_volume_issue(Volume, Issue, CitationClass, Periodical_origin, sepc, use_lowercase)
if utilities.is_set(AccessDate) then
local retrv_text = " " .. cfg.messages["retrieved"]
--AccessDate = check_date_n(AccessDate)
AccessDate = nowrap_date(AccessDate)
--if (sepc ~= ".") then retrv_text = retrv_text:lower() end
AccessDate = utilities.substitute(retrv_text, AccessDate)
AccessDate = utilities.substitute(cfg.presentation["accessdate"], {sepc, AccessDate})
end
if utilities.is_set(ID) then
ID = sepc .. " " .. ID
end
local Docket = A["Docket"]
if "thesis" == CitationClass and utilities.is_set(Docket) then
ID = sepc .. " Docket " .. Docket .. ID
end
if "report" == CitationClass and utilities.is_set(Docket) then
ID = sepc .. " " .. Docket
end
if utilities.is_set(URL) then
URL = " " .. external_link(URL, nil, URL_origin, UrlAccess)
end
local Quote = A["Quote"]
local TransQuote = A["TransQuote"]
local ScriptQuote = A["ScriptQuote"]
if utilities.is_set(Quote) or utilities.is_set(TransQuote) or utilities.is_set(ScriptQuote) then
if utilities.is_set(Quote) then
if Quote:sub(1, 1) == '"' and Quote:sub(-1, -1) == '"' then
Quote = Quote:sub(2, -2)
end
end
Quote = utilities.wrap_style("quoted-text", Quote)
if utilities.is_set(ScriptQuote) then
Quote = script_concatenate(Quote, ScriptQuote, "script-quote")
end
if utilities.is_set(TransQuote) then
if TransQuote:sub(1, 1) == '"' and TransQuote:sub(-1, -1) == '"' then
TransQuote = TransQuote:sub(2, -2)
end
Quote = Quote .. " " .. utilities.wrap_style("trans-quoted-title", TransQuote)
end
if utilities.is_set(QuotePage) or utilities.is_set(QuotePages) then
local quote_prefix = ""
if utilities.is_set(QuotePage) then
extra_text_in_page_check(QuotePage, "quote-page")
if not NoPP then
quote_prefix = utilities.substitute(cfg.messages["p-prefix"], {sepc, QuotePage}), "", "", ""
else
quote_prefix = utilities.substitute(cfg.messages["nopp"], {sepc, QuotePage}), "", "", ""
end
elseif utilities.is_set(QuotePages) then
extra_text_in_page_check(QuotePages, "quote-pages")
if tonumber(QuotePages) ~= nil and not NoPP then
quote_prefix = utilities.substitute(cfg.messages["p-prefix"], {sepc, QuotePages}), "", ""
elseif not NoPP then
quote_prefix = utilities.substitute(cfg.messages["pp-prefix"], {sepc, QuotePages}), "", ""
else
quote_prefix = utilities.substitute(cfg.messages["nopp"], {sepc, QuotePages}), "", ""
end
end
Quote = quote_prefix .. ": " .. Quote
else
Quote = sepc .. " " .. Quote
end
PostScript = ""
end
if utilities.is_set(PostScript) and mw.ustring.len(PostScript) > 1 then
utilities.set_message("maint_postscript")
end
local Archived
if utilities.is_set(ArchiveURL) then
local arch_text
if not utilities.is_set(ArchiveDate) then
utilities.set_message("err_archive_missing_date")
ArchiveDate = ""
--else
--ArchiveDate = check_date_n(ArchiveDate)
end
if "live" == UrlStatus then
arch_text = cfg.messages["archived"]
--if sepc ~= "." then arch_text = arch_text:lower() end
if utilities.is_set(ArchiveDate) then
Archived =
sepc ..
" " ..
utilities.substitute(
cfg.messages["archived-live"],
{
external_link(ArchiveURL, arch_text, A:ORIGIN("ArchiveURL"), nil) .. ArchiveFormat,
ArchiveDate
}
)
else
Archived = ""
end
if not utilities.is_set(OriginalURL) then
utilities.set_message("err_archive_missing_url")
Archived = ""
end
elseif utilities.is_set(OriginalURL) then
if utilities.in_array(UrlStatus, {"unfit", "usurped", "bot: unknown"}) then
arch_text = cfg.messages["archived-unfit"]
--if sepc ~= "." then arch_text = arch_text:lower() end
Archived = sepc .. " " .. arch_text .. ArchiveDate
if "bot: unknown" == UrlStatus then
utilities.set_message("maint_bot_unknown")
else
utilities.set_message("maint_unfit")
end
else
arch_text = cfg.messages["archived-dead"]
--if sepc ~= "." then arch_text = arch_text:lower() end
if utilities.is_set(ArchiveDate) then
Archived =
sepc ..
" " ..
utilities.substitute(
arch_text,
{
external_link(
OriginalURL,
cfg.messages["original"],
OriginalURL_origin,
OriginalAccess
) .. OriginalFormat,
ArchiveDate
}
)
else
Archived = ""
end
end
else
arch_text = cfg.messages["archived-missing"]
--if sepc ~= "." then arch_text = arch_text:lower() end
utilities.set_message("err_archive_missing_url")
Archived = ""
end
elseif utilities.is_set(ArchiveFormat) then
Archived = ArchiveFormat
else
Archived = ""
end
local Lay = ""
local LaySource = A["LaySource"]
local LayURL = A["LayURL"]
local LayFormat = A["LayFormat"]
LayFormat = style_format(LayFormat, LayURL, "lay-format", "lay-url")
if utilities.is_set(LayURL) then
if utilities.is_set(LayDate) then
LayDate = " (" .. LayDate .. ")"
end
if utilities.is_set(LaySource) then
LaySource = " – ''" .. utilities.safe_for_italics(LaySource) .. "''"
else
LaySource = ""
end
if sepc == "." then
Lay =
sepc ..
" " ..
external_link(LayURL, cfg.messages["lay summary"], A:ORIGIN("LayURL"), nil) ..
LayFormat .. LaySource .. LayDate
else
Lay =
sepc ..
" " ..
external_link(LayURL, cfg.messages["lay summary"]:lower(), A:ORIGIN("LayURL"), nil) ..
LayFormat .. LaySource .. LayDate
end
elseif utilities.is_set(LayFormat) then
Lay = sepc .. LayFormat
end
local TranscriptURL = A["TranscriptURL"]
local TranscriptFormat = A["TranscriptFormat"]
TranscriptFormat = style_format(TranscriptFormat, TranscriptURL, "transcript-format", "transcripturl")
local Transcript = A["Transcript"]
local TranscriptURL_origin = A:ORIGIN("TranscriptURL")
if utilities.is_set(Transcript) then
if utilities.is_set(TranscriptURL) then
Transcript = external_link(TranscriptURL, Transcript, TranscriptURL_origin, nil)
end
Transcript = sepc .. " " .. Transcript .. TranscriptFormat
elseif utilities.is_set(TranscriptURL) then
Transcript = external_link(TranscriptURL, nil, TranscriptURL_origin, nil)
end
local Publisher
if utilities.is_set(PublicationDate) then
-- PublicationDate = wrap_msg("published", PublicationDate)
PublicationDate = "تاريخ النشر: ".. PublicationDate
end
if utilities.is_set(PublisherName) then
if utilities.is_set(PublicationPlace) then
Publisher = sepc .. " " .. PublicationPlace .. ": " .. PublisherName .. "، " .. PublicationDate
else
Publisher = sepc .. " " .. PublisherName .. "، " .. PublicationDate
end
elseif utilities.is_set(PublicationPlace) then
Publisher = sepc .. " " .. PublicationPlace .. "، " .. PublicationDate
else
Publisher = PublicationDate
end
local TransPeriodical = A["TransPeriodical"]
local TransPeriodical_origin = A:ORIGIN("TransPeriodical")
if (utilities.is_set(Periodical) or utilities.is_set(ScriptPeriodical) or utilities.is_set(TransPeriodical)) then
if utilities.is_set(Title) or utilities.is_set(TitleNote) then
Periodical =
sepc ..
" " ..
format_periodical(
ScriptPeriodical,
ScriptPeriodical_origin,
Periodical,
TransPeriodical,
TransPeriodical_origin
)
else
Periodical =
format_periodical(
ScriptPeriodical,
ScriptPeriodical_origin,
Periodical,
TransPeriodical,
TransPeriodical_origin
)
end
end
local Language = A["Language"]
if utilities.is_set(Language) then
Language = language_parameter(Language)
else
Language = ""
end
if "speech" == CitationClass then
TitleNote = TitleType
TitleType = ""
if utilities.is_set(Periodical) then
if utilities.is_set(Conference) then
Conference = Conference .. sepc .. " "
end
end
end
local tcommon
local tcommon2
if utilities.in_array(CitationClass, {"journal", "citation"}) and utilities.is_set(Periodical) then
if utilities.is_set(Others) then
Others = safe_join({Others, sepc .. " "}, sepc)
end
tcommon =
safe_join(
{
Others,
Title,
TitleNote,
Conference,
Periodical,
Format,
TitleType,
Series,
Language,
Edition,
Publisher,
Agency,
Volume
},
sepc
)
elseif utilities.in_array(CitationClass, {"book", "citation"}) and not utilities.is_set(Periodical) then
if utilities.is_set(Contributors) then
tcommon = safe_join({Title, TitleNote}, sepc)
tcommon2 =
safe_join(
{
Conference,
Periodical,
Format,
TitleType,
Series,
Language,
Others,
Edition,
Publisher,
Agency,
Volume
},
sepc
)
else
tcommon =
safe_join(
{
Title,
TitleNote,
Conference,
Periodical,
Format,
TitleType,
Series,
Language,
Others,
Edition,
Publisher,
Agency,
Volume
},
sepc
)
end
elseif "map" == CitationClass then
if utilities.is_set(Chapter) then
tcommon =
safe_join(
{Title, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume},
sepc
)
elseif utilities.is_set(Periodical) then
tcommon =
safe_join(
{Title, TitleType, Format, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume},
sepc
)
else
tcommon =
safe_join(
{Title, TitleType, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher},
sepc
)
end
elseif "episode" == CitationClass then
tcommon = safe_join({Title, TitleNote, TitleType, Series, Language, Edition, Publisher}, sepc)
else
tcommon =
safe_join(
{
Title,
TitleNote,
Conference,
Periodical,
Format,
TitleType,
Series,
Language,
Volume,
Others,
Edition,
Publisher,
Agency
},
sepc
)
end
if #ID_list > 0 then
ID_list = safe_join({sepc .. " ", table.concat(ID_list, sepc .. " "), ID}, sepc)
else
ID_list = ID
end
local Via = A["Via"]
Via = utilities.is_set(Via) and wrap_msg("via", Via) or ""
local idcommon
if "audio-visual" == CitationClass or "episode" == CitationClass then
idcommon = safe_join({ID_list, URL, Archived, Transcript, AccessDate, Via, Lay, Quote}, sepc)
else
idcommon = safe_join({ID_list, URL, Archived, AccessDate, Via, Lay, Quote}, sepc)
end
local text
local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At
local OrigDate = A["OrigDate"]
OrigDate = utilities.is_set(OrigDate) and wrap_msg("origdate", OrigDate) or ""
if utilities.is_set(Date) then
if utilities.is_set(Authors) or utilities.is_set(Editors) then
Date = " (" .. Date .. ")" .. OrigDate .. sepc .. " "
else
if (string.sub(tcommon, -1, -1) == sepc) then
Date = " " .. Date .. OrigDate
else
Date = sepc .. " " .. Date .. OrigDate
end
end
end
if utilities.is_set(Authors) then
if (not utilities.is_set(Date)) then
Authors = terminate_name_list(Authors, sepc)
end
if utilities.is_set(Editors) then
local in_text = " "
local post_text = ""
if utilities.is_set(Chapter) and 0 == #c then
in_text = in_text .. cfg.messages["in"] .. " "
--if (sepc ~= ".") then in_text = in_text:lower() end
end
if EditorCount <= 1 then
post_text = " (" .. cfg.messages["editor"] .. ")"
else
post_text = " (" .. cfg.messages["editors"] .. ")"
end
Editors = terminate_name_list(in_text .. Editors .. post_text, sepc)
end
if utilities.is_set(Contributors) then
local by_text = sepc .. " " .. cfg.messages["by"] .. " "
--if (sepc ~= ".") then by_text = by_text:lower() end
Authors = by_text .. Authors
if utilities.is_set(Editors) and utilities.is_set(Date) then
Authors = terminate_name_list(Authors, sepc)
end
if (not utilities.is_set(Date)) then
Contributors = terminate_name_list(Contributors, sepc)
end
text =
safe_join(
{Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon},
sepc
)
else
text = safe_join({Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon}, sepc)
end
elseif utilities.is_set(Editors) then
if utilities.is_set(Date) then
if EditorCount <= 1 then
Editors = Editors .. ", " .. cfg.messages["editor"]
else
Editors = Editors .. ", " .. cfg.messages["editors"]
end
else
if EditorCount <= 1 then
Editors = Editors .. " (" .. cfg.messages["editor"] .. ")" .. sepc .. " "
else
Editors = Editors .. " (" .. cfg.messages["editors"] .. ")" .. sepc .. " "
end
end
text = safe_join({Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc)
else
if utilities.in_array(CitationClass, {"journal", "citation"}) and utilities.is_set(Periodical) then
text = safe_join({Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc)
else
text = safe_join({Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc)
end
end
if utilities.is_set(PostScript) and PostScript ~= sepc then
text = safe_join({text, sepc}, sepc)
text = text:sub(1, -sepc:len() - 1)
end
text = safe_join({text, PostScript}, sepc)
local options_t = {}
options_t.class = cite_class_attribute_make(CitationClass, Mode)
local Ref = is_valid_parameter_value(A["Ref"], A:ORIGIN("Ref"), cfg.keywords_lists["ref"], nil, true)
if "none" ~= cfg.keywords_xlate[(Ref and Ref:lower()) or ""] then
local namelist_t = {}
local year = first_set({Year, anchor_year}, 2)
if #c > 0 then
namelist_t = c
elseif #a > 0 then
namelist_t = a
elseif #e > 0 then
namelist_t = e
end
local citeref_id
if #namelist_t > 0 then
citeref_id = make_citeref_id(namelist_t, year)
if mw.uri.anchorEncode(citeref_id) == ((Ref and mw.uri.anchorEncode(Ref)) or "") then
utilities.set_message("maint_ref_duplicates_default")
end
else
citeref_id = ""
end
options_t.id = Ref or citeref_id
end
if string.len(text:gsub("%b<>", "")) <= 2 then
z.error_cats_t = {}
z.error_msgs_t = {}
OCinSoutput = nil
text = ""
utilities.set_message("err_empty_citation")
end
local render_t = {}
if utilities.is_set(options_t.id) then
table.insert(
render_t,
utilities.substitute(
cfg.presentation["cite-id"],
{mw.uri.anchorEncode(options_t.id), mw.text.nowiki(options_t.class), text}
)
)
else
table.insert(render_t, utilities.substitute(cfg.presentation["cite"], {mw.text.nowiki(options_t.class), text}))
end
if OCinSoutput then
table.insert(render_t, utilities.substitute(cfg.presentation["ocins"], OCinSoutput))
end
local template_name =
("citation" == CitationClass) and "citation" or
"cite " .. (cfg.citation_class_map_t[CitationClass] or CitationClass)
template_name = cfg.ar_temps_names[template_name:lower()] or template_name
local template_link = "[[Template:" .. template_name .. "|" .. template_name .. "]]"
local msg_prefix = '<code class="cs1-code">{{' .. template_link .. "}}</code>: "
if 0 ~= #z.error_msgs_t then
mw.addWarning(utilities.substitute(cfg.messages.warning_msg_e, template_link))
table.insert(render_t, " ")
table.sort(z.error_msgs_t)
local hidden = true
for _, v in ipairs(z.error_msgs_t) do
if v:find("cs1-visible-error", 1, true) then
hidden = false
break
end
end
z.error_msgs_t[1] = table.concat({utilities.error_comment(msg_prefix, hidden), z.error_msgs_t[1]})
table.insert(render_t, table.concat(z.error_msgs_t, "، "))
end
if 0 ~= #z.maint_cats_t then
mw.addWarning(utilities.substitute(cfg.messages.warning_msg_m, template_link))
table.sort(z.maint_cats_t)
local maint_msgs_t = {}
if 0 == #z.error_msgs_t then
table.insert(maint_msgs_t, msg_prefix)
end
for _, v in ipairs(z.maint_cats_t) do
table.insert(
maint_msgs_t,
table.concat({v, " (", utilities.substitute(cfg.messages[":cat wikilink"], v), ")"})
)
end
table.insert(render_t, utilities.substitute(cfg.presentation["hidden-maint"], table.concat(maint_msgs_t, " ")))
end
if not no_tracking_cats then
for _, v in ipairs(z.error_cats_t) do
table.insert(render_t, utilities.substitute(cfg.messages["cat wikilink"], v))
end
for _, v in ipairs(z.maint_cats_t) do
table.insert(render_t, utilities.substitute(cfg.messages["cat wikilink"], v))
end
for _, v in ipairs(z.prop_cats_t) do
table.insert(render_t, utilities.substitute(cfg.messages["cat wikilink"], v))
end
end
return table.concat(render_t)
end
local function validate(name, cite_class, empty)
local name = tostring(name)
local enum_name
local state
local function state_test(state, name)
if true == state then
return true
end
if false == state then
if empty then
return nil
end
deprecated_parameter(name)
return true
end
if "tracked" == state then
local base_name = name:gsub("%d", "")
utilities.add_prop_cat("tracked-param", {base_name}, base_name)
return true
end
return nil
end
if name:find("#") then
return nil
end
if utilities.in_array(cite_class, whitelist.preprint_template_list) then
state = whitelist.limited_basic_arguments[name]
if true == state_test(state, name) then
return true
end
state = whitelist.preprint_arguments[cite_class][name]
if true == state_test(state, name) then
return true
end
enum_name = name:gsub("%d+", "#")
state = whitelist.limited_numbered_arguments[enum_name]
if true == state_test(state, name) then
return true
end
return false
end
if utilities.in_array(cite_class, whitelist.unique_param_template_list) then
state = whitelist.unique_arguments[cite_class][name]
if true == state_test(state, name) then
return true
end
end
state = whitelist.basic_arguments[name]
if true == state_test(state, name) then
return true
end
enum_name = name:gsub("%d+", "#")
state = whitelist.numbered_arguments[enum_name]
if true == state_test(state, name) then
return true
end
--mw.log('validate(' .. name .. ', cite_class, empty) == false')
return false
end
local function inter_wiki_check(parameter, value)
local prefix = value:match("%[%[(%a+):")
local _
if prefix and cfg.inter_wiki_map[prefix:lower()] then
utilities.set_message("err_bad_paramlink", parameter)
_, value, _ = utilities.is_wikilink(value)
end
return value
end
local function missing_pipe_check(parameter, value)
local capture
value = value:gsub("%b<>", "")
capture = value:match("%s+(%a[%w%-]+)%s*=") or value:match("^(%a[%w%-]+)%s*=")
if capture and validate(capture) then
utilities.set_message("err_missing_pipe", parameter)
end
end
local function has_extraneous_punc(param, value)
if "number" == type(param) then
return
end
param = param:gsub("%d+", "#")
if cfg.punct_skip[param] then
return
end
if value:match("[,;:]$") then
utilities.set_message("maint_extra_punct")
end
if value:match("^=") then
utilities.set_message("maint_extra_punct")
end
end
local function has_extraneous_url(url_param_t)
local url_error_t = {}
check_for_url(url_param_t, url_error_t)
if 0 ~= #url_error_t then
table.sort(url_error_t)
utilities.set_message("err_param_has_ext_link", {utilities.make_sep_list(#url_error_t, url_error_t)})
end
end
local function citation(frame)
Frame = frame; -- save a copy in case we need to display an error message in preview mode
is_sandbox = nil ~= string.find (frame:getTitle(), 'sandbox', 1, true);
local pframe = frame:getParent()
local styles;
if is_sandbox then -- did the {{#invoke:}} use sandbox version?
--mw.log('sandbox')
cfg = mw.loadData ('Module:Citation/CS1/Configuration/sandbox'); -- load sandbox versions of support modules
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist/sandbox');
utilities = require ('Module:Citation/CS1/Utilities/sandbox');
validation = require ('Module:Citation/CS1/Date_validation/sandbox');
identifiers = require ('Module:Citation/CS1/Identifiers/sandbox');
metadata = require ('Module:Citation/CS1/COinS/sandbox');
styles = 'Module:Citation/CS1/sandbox/styles.css';
else -- otherwise
cfg = mw.loadData ('Module:Citation/CS1/Configuration'); -- load live versions of support modules
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist');
utilities = require ('Module:Citation/CS1/Utilities');
validation = require ('Module:Citation/CS1/Date_validation');
identifiers = require ('Module:Citation/CS1/Identifiers');
metadata = require ('Module:Citation/CS1/COinS');
styles = 'Module:Citation/CS1/styles.css';
end
utilities.set_selected_modules (cfg); -- so that functions in Utilities can see the selected cfg tables
identifiers.set_selected_modules (cfg, utilities); -- so that functions in Identifiers can see the selected cfg tables and selected Utilities module
validation.set_selected_modules (cfg, utilities); -- so that functions in Date validataion can see selected cfg tables and the selected Utilities module
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module
z = utilities.z; -- table of error and category tables in Module:Citation/CS1/Utilities
is_preview_mode = not utilities.is_set (frame:preprocess ('{{REVISIONID}}'));
local allargs = {}; -- table where we store all of the template's arguments
local args = {}; -- table where we store all of the template's arguments
local suggestions = {}; -- table where we store suggestions if we need to loadData them
local error_text; -- used as a flag
if is_sandbox then -- did the {{#invoke:}} use sandbox version?
suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions/sandbox' ); -- use the sandbox version
else
suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions' ); -- use the live version
end
local config = {}; -- table to store parameters from the module {{#invoke:}}
for k, v in pairs( frame.args ) do -- get parameters from the {{#invoke}} frame
if k == "CitationClass"
then
config[k] = v;
else
--k = suggestions.suggestions[k] or k
allargs[k] = v;
end
end -- table to store parameters from the module {{#invoke:}}
for yk, vy in pairs( pframe.args ) do
if yk ~= "وصلة مكسورة" then
--yk = suggestions.suggestions[yk] or yk
args[yk] = vy;
allargs[yk] = vy;
end
end
local CitationClass = config.CitationClass
local capture; -- the single supported capture when matching unknown parameters using patterns
local empty_unknowns = {}; -- sequence table to hold empty unknown params for error message listing
for k, v in pairs( allargs ) do -- get parameters from the parent (template) frame
v = mw.ustring.gsub (v, '^%s*(.-)%s*$', '%1'); -- trim leading/trailing whitespace; when v is only whitespace, becomes empty string
if v ~= '' then
if ('string' == type (k)) then
k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- for enumerated parameters, translate 'local' digits to Western 0-9
end
if not validate( k, CitationClass ) then
--mw.log('not validate( k, CitationClass )' .. k )
if type (k) ~= 'string' then -- exclude empty numbered parameters
if v:match("%S+") ~= nil then
error_text = utilities.set_message ('err_text_ignored', {v});
end
elseif validate(k:lower(), CitationClass) then
--error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, k:lower()}); -- suggest the lowercase version of the parameter
else
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter
capture = k:match(pattern); -- the whole match if no capture in pattern else the capture if a match
if capture then -- if the pattern matches
param = utilities.substitute (param, capture); -- add the capture to the suggested parameter (typically the enumerator)
if validate(param, CitationClass) then -- validate the suggestion to make sure that the suggestion is supported by this template (necessary for limited parameter lists)
--error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, param}); -- set the suggestion error message
else
error_text = utilities.set_message ('err_parameter_ignored', {k}); -- suggested param not supported by this template
v = ''; -- unset
end
end
end
if not utilities.is_set (error_text) then -- couldn't match with a pattern, is there an explicit suggestion?
if (suggestions.suggestions[ k:lower() ] ~= nil) and validate(suggestions.suggestions[ k:lower() ], CitationClass)
then
--utilities.set_message ('err_parameter_ignored_suggest', {k, suggestions.suggestions[ k:lower() ]});
else
utilities.set_message ('err_parameter_ignored', {k});
v = ''; -- unset value assigned to unrecognized parameters (this for the limited parameter lists)
end
end
end
end
args[k] = v; -- save this parameter and its value
elseif not utilities.is_set (v) then -- for empty parameters
if not validate(k, CitationClass, true) then -- is this empty parameter a valid parameter
local valid = false
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter
capture = k:match(pattern); -- the whole match if no capture in pattern else the capture if a match
if capture then -- if the pattern matches
param = utilities.substitute (param, capture); -- add the capture to the suggested parameter (typically the enumerator)
if validate(param, CitationClass) then -- validate the suggestion to make sure that the suggestion is supported by this template (necessary for limited parameter lists)
valid = true
break
end
end
end
if valid == false then -- user:Mr. Ibrahem
if (suggestions.suggestions[ k:lower() ] ~= nil) and validate(suggestions.suggestions[ k:lower() ], CitationClass)
then
else
k = ('' == k) and '(empty string)' or k; -- when k is empty string (or was space(s) trimmed to empty string), replace with descriptive text
table.insert (empty_unknowns, k);
end
end
end
end
end
if 0 ~= #empty_unknowns then -- create empty unknown error message
utilities.set_message ('err_param_unknown_empty',
empty_unknowns
--{ 1 == #empty_unknowns and '' or 's',utilities.make_sep_list (#empty_unknowns, empty_unknowns)}
);
end
local url_param_t = {};
for k, v in pairs( args ) do
if 'string' == type (k) then -- don't evaluate positional parameters
has_invisible_chars (k, v); -- look for invisible characters
end
has_extraneous_punc (k, v); -- look for extraneous terminal punctuation in parameter values
missing_pipe_check (k, v); -- do we think that there is a parameter that is missing a pipe?
args[k] = inter_wiki_check (k, v); -- when language interwiki-linked parameter missing leading colon replace with wiki-link label
if 'string' == type (k) and not cfg.url_skip[k] then -- when parameter k is not positional and not in url skip table
url_param_t[k] = v; -- make a parameter/value list for extraneous url check
end
end
has_extraneous_url (url_param_t); -- look for url in parameter values where a url does not belong
return table.concat ({
frame:extensionTag ('templatestyles', '', {src=styles}),
citation0( CitationClass, args)
});
end
return {citation = citation}
1rle64x5dz8047vkyacv1vc9g2scc53
وحدة:Citation/CS1/styles.css
828
63192
275420
2026-09-15T08:58:30Z
حبيشان
29714
استيراد من ar.wiktionary.org
275420
sanitized-css
text/css
/* Protection icon
the following line controls the page-protection icon in the upper right corner
it must remain within this comment
{{ملعب آخر||{{حماية قالب}}}}
*/
/* Overrides
Some wikis do not override user agent default styles for HTML <cite> and <q>,
unlike en.wp. On en.wp, keep these the same as [[MediaWiki:Common.css]].
The word-wrap and :target styles were moved here from Common.css.
On en.wp, keep these the same as [[قالب:Citation/styles.css]].
*/
cite.citation {
font-style: inherit; /* Remove italics for <cite> */
/* Break long urls, etc., rather than overflowing box */
word-wrap: break-word;
}
.citation q {
quotes: '"' '"' "'" "'"; /* Straight quote marks for <q> */
}
/* Highlight linked elements (such as clicked references) in blue */
.citation:target {
/* ignore the linter - all browsers of interest implement this */
background-color: rgba(0, 127, 255, 0.133);
}
/* ID and URL access
Both core and Common.css have selector .mw-parser-output a[href$=".pdf"].external
for PDF pages. All TemplateStyles pages are hoisted to .mw-parser-output. We need
to have specificity equal to a[href$=".pdf"].external for locks to override PDF icon.
That's essentially 2 classes and 1 element.
the .id-lock-... selectors are for use by non-citation templates like
{{Catalog lookup link}}
bg-size `contain` in Minerva and Timeless is too large, so we set a size for them
and then exclude them later
*/
.id-lock-free.id-lock-free a {
background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg)
right 0.1em center/9px no-repeat;
}
.id-lock-limited.id-lock-limited a,
.id-lock-registration.id-lock-registration a {
background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg)
right 0.1em center/9px no-repeat;
}
.id-lock-subscription.id-lock-subscription a {
background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg)
right 0.1em center/9px no-repeat;
}
/* Wikisource
Wikisource icon when |chapter= or |title= is wikilinked to Wikisource
as in cite wikisource
*/
.cs1-ws-icon a {
background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg)
left 0.1em center/12px no-repeat;
}
body:not(.skin-timeless):not(.skin-minerva) .id-lock-free a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-limited a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-registration a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-subscription a,
body:not(.skin-timeless):not(.skin-minerva) .cs1-ws-icon a {
background-size: contain;
/* Common.css has a padding set for PDF URLs. bg-contain expands to the
* size of the padding which makes the icons very large. we "reset" the
* padding here. 1em picked out of a hat based on console having a similar
* rule from elsewhere
*/
padding: 0 1em 0 0;
}
/* Errors and maintenance */
.cs1-code {
/* <code>...</code> style override: mediawiki's css definition is specified here:
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/
69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199
*/
color: inherit;
background: inherit;
border: none;
padding: inherit;
}
.cs1-hidden-error {
display: none;
color: var(--color-error, #d33);
}
.cs1-visible-error {
color: var(--color-error, #d33);
}
.cs1-maint {
display: none;
color: #085;
margin-left: 0.3em;
}
/* kerning */
.cs1-kern-left {
padding-left: 0.2em;
}
.cs1-kern-right {
padding-right: 0.2em;
}
/* selflinks – avoid bold font style when cs1|2 template links to the current page */
.citation .mw-selflink {
font-weight: inherit;
}
@media screen {
/* Small text size
Set small text size in one place. 0.95 (here) * 0.9 (from references list) is
~0.85, which is the lower bound for size for accessibility. Old styling for this
was just 0.85. We could write the rule so that when this template is inside
references/reflist, only then does it multiply by 0.95; else multiply by 0.85 */
.cs1-format {
font-size: 95%;
}
html.skin-theme-clientpref-night .cs1-maint {
color: #18911f;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cs1-maint {
color: #18911f;
}
}
qcyy0vslaltsnq0hq2ipj1yzz5gwbth
وحدة:Citation/CS1/td.json
828
63193
275421
2026-09-15T08:58:34Z
حبيشان
29714
استيراد من ar.wiktionary.org
275421
json
application/json
{
"maps": {
"citoid": {
"web": {
"date": "Date",
"publicationTitle": "Periodical",
"oclc": "OCLC",
"series": "Series",
"DOI": "DOI",
"contributor": "Others",
"forumTitle": "Periodical",
"seriesTitle": "Periodical",
"editor": "",
"subject": "Title",
"author": "",
"PMID": "PMID",
"publisher": "PublisherName",
"title": "Title",
"accessDate": "AccessDate",
"websiteTitle": "Periodical",
"pages": "Pages",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"PMCID": "PMC",
"blogTitle": "Periodical",
"language": "Language",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"encyclopedia": {
"place": "Place",
"author": "",
"ISSN": [
"ISSN"
],
"series": "Series",
"language": "Language",
"contributor": "Others",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"dictionaryTitle": "Encyclopedia",
"DOI": "DOI",
"PMCID": "PMC",
"PMID": "PMID",
"encyclopediaTitle": "Encyclopedia",
"publicationTitle": "Encyclopedia",
"date": "Date",
"oclc": "OCLC",
"edition": "Edition",
"pages": "Pages",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"volume": "Volume",
"ISBN": [
"ISBN"
],
"bookTitle": "Encyclopedia",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"newsgroup": {
"translator": "",
"author": "",
"language": "Language",
"publicationTitle": "Newsgroup",
"location": "Place",
"contributor": "Others",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"DOI": "DOI",
"date": "Date",
"accessDate": "AccessDate",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"PMID": "PMID",
"PMCID": "PMC",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"magazine": {
"place": "Place",
"volume": "Volume",
"ISSN": [
"ISSN"
],
"publicationTitle": "Periodical",
"proceedingsTitle": "Periodical",
"DOI": "DOI",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"seriesNumber": "Volume",
"PMID": "PMID",
"author": "",
"language": "Language",
"date": "Date",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"pages": "Pages",
"issue": "Issue",
"PMCID": "PMC",
"ISBN": [
"ISBN"
],
"bookTitle": "Periodical",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"journal": {
"place": "Place",
"author": "",
"oclc": "OCLC",
"series": "Series",
"ISSN": [
"ISSN"
],
"contributor": "Others",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"issue": "Issue",
"seriesNumber": "Volume",
"DOI": "DOI",
"PMID": "PMID",
"encyclopediaTitle": "Periodical",
"proceedingsTitle": "Periodical",
"volume": "Volume",
"publicationTitle": "Periodical",
"dictionaryTitle": "Periodical",
"pages": "Pages",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"date": "Date",
"PMCID": "PMC",
"ISBN": [
"ISBN"
],
"language": "Language",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"book": {
"translator": "",
"PMCID": "PMC",
"volume": "Volume",
"series": "Series",
"ISSN": [
"ISSN"
],
"contributor": "Others",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"DOI": "DOI",
"author": "",
"place": "Place",
"publicationTitle": "Title",
"date": "Date",
"language": "Language",
"edition": "Edition",
"pages": "Pages",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"oclc": "OCLC",
"ISBN": [
"ISBN"
],
"PMID": "PMID",
"bookTitle": "Title",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"conference": {
"place": "Place",
"issue": "Issue",
"language": "Language",
"series": "Series",
"DOI": "DOI",
"contributor": "Others",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"seriesNumber": "Volume",
"PMID": "PMID",
"author": "",
"ISSN": [
"ISSN"
],
"date": "Date",
"volume": "Volume",
"pages": "Pages",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"oclc": "OCLC",
"ISBN": [
"ISBN"
],
"PMCID": "PMC",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"news": {
"date": "Date",
"DOI": "DOI",
"language": "Language",
"publicationTitle": "Periodical",
"location": "Place",
"contributor": "Others",
"title": "Title",
"publisher": "PublisherName",
"editor": "",
"ISSN": [
"ISSN"
],
"PMID": "PMID",
"author": "",
"issue": "Issue",
"volume": "Volume",
"accessDate": "AccessDate",
"pages": "Pages",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"oclc": "OCLC",
"ISBN": [
"ISBN"
],
"PMCID": "PMC",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
},
"report": {
"number": "Issue",
"date": "Date",
"place": "Place",
"PMID": "PMID",
"pages": "Pages",
"reportNumber": "Issue",
"PMCID": "PMC",
"publisher": "PublisherName",
"title": "Title",
"DOI": "DOI",
"institution": "PublisherName",
"url": "URL",
"archiveUrl": "ArchiveURL",
"archiveDate": "ArchiveDate",
"language": "Language",
"author": "",
"archiveID": "ID",
"identifier": "ID",
"repository": "PublisherName",
"repositoryLocation": "Place"
}
}
},
"paramOrder": {
"web": [
"Title",
"URL",
"PublisherName",
"AccessDate",
"Periodical",
"Series",
"Place",
"Date",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Link",
"AuthorList-Mask",
"Language",
"Year",
"OrigDate",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"ScriptTitle",
"TransTitle",
"ArchiveURL",
"ArchiveDate",
"ArchiveFormat",
"TitleType",
"Format",
"PublicationPlace",
"PublicationDate",
"Via",
"NoPP",
"Ref",
"Edition",
"Agency",
"ID"
],
"audio-visual": [
"URL",
"Title",
"Date",
"AuthorList-Last",
"AuthorList-First",
"TitleType",
"Language",
"PublisherName",
"Year",
"TransTitle",
"AuthorList-Link",
"Others",
"Place",
"OrigDate",
"PublicationPlace",
"Edition",
"Series",
"Volume",
"Minutes",
"Time",
"TimeCaption",
"Page",
"At",
"AccessDate",
"ArchiveURL",
"ArchiveDate",
"UrlStatus",
"Format",
"Ref",
"ID",
"ARXIV",
"ASIN",
"BIBCODE",
"DOI",
"ISBN",
"ISSN",
"JFM",
"JSTOR",
"LCCN",
"MR",
"OCLC",
"OL",
"OSTI",
"PMC",
"PMID",
"RFC",
"SSRN",
"ZBL",
"Quote",
"Via",
"Authors"
],
"biorxiv": [
"BIORXIV",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Last",
"AuthorList-First2",
"AuthorList-Last2",
"AuthorList-Last2",
"AuthorList-Link",
"AuthorList-Link2",
"Authors",
"Title",
"TranslatorList-Last",
"TranslatorList-Last",
"TranslatorList-First",
"TranslatorList-Link",
"TranslatorList-First2",
"TranslatorList-Last2",
"TranslatorList-Last2",
"TranslatorList-Link2",
"Collaboration",
"Date",
"DF",
"TransTitle",
"Language"
],
"encyclopaedia": [
"Year",
"Title",
"Encyclopedia",
"PublisherName",
"Place",
"ID",
"URL",
"AccessDate",
"AuthorList-Last",
"AuthorList-First",
"Date",
"AuthorList-Link",
"Others",
"OrigDate",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"PublicationPlace",
"PublicationDate",
"Edition",
"Series",
"Volume",
"Page",
"Pages",
"NoPP",
"At",
"Language",
"TransTitle",
"TitleType",
"Format",
"ARXIV",
"ASIN",
"ASINTLD",
"BIBCODE",
"DOI",
"DoiBroken",
"ISBN",
"ISSN",
"JFM",
"JSTOR",
"LCCN",
"MR",
"OCLC",
"OL",
"OSTI",
"PMC",
"PMID",
"RFC",
"SSRN",
"ZBL",
"ArchiveURL",
"ArchiveDate",
"Quote",
"Ref",
"PostScript",
"AuthorList-Mask",
"DisplayAuthors",
"AuthorList-Last2",
"AuthorList-First2",
"AuthorList-Last3",
"AuthorList-First3",
"AuthorList-Last4",
"AuthorList-First4",
"AuthorList-Last5",
"AuthorList-First5",
"AuthorList-Last6",
"AuthorList-First6",
"AuthorList-Last7",
"AuthorList-First7",
"AuthorList-Last8",
"AuthorList-First8",
"AuthorList-Last9",
"AuthorList-First9",
"NameListStyle"
],
"journal": [
"Title",
"ScriptTitle",
"TransTitle",
"Periodical",
"URL",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Link",
"Format",
"TitleNote",
"Chapter",
"DisplayAuthors",
"AuthorList-Mask",
"NameListStyle",
"Vauthors",
"Date",
"Year",
"OrigDate",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"Others",
"TitleType",
"Series",
"Language",
"Edition",
"Place",
"PublisherName",
"PublicationPlace",
"PublicationDate",
"Volume",
"Issue",
"Page",
"Pages",
"At",
"NoPP",
"ASINTLD",
"DoiBroken",
"OCLC",
"ID",
"UrlAccess",
"ArchiveURL",
"ArchiveDate",
"AccessDate",
"Quote",
"PostScript",
"Ref",
"Via"
],
"news": [
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Link",
"DisplayAuthors",
"AuthorList-Mask",
"NameListStyle",
"Others",
"Date",
"Year",
"OrigDate",
"Title",
"ScriptTitle",
"Language",
"TransTitle",
"Edition",
"Volume",
"Page",
"Pages",
"NoPP",
"At",
"Periodical",
"PublisherName",
"Agency",
"Issue",
"TitleNote",
"Place",
"PublicationPlace",
"PublicationDate",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"TitleType",
"Format",
"URL",
"UrlStatus",
"UrlAccess",
"AccessDate",
"ArchiveURL",
"ArchiveDate",
"ASINTLD",
"DoiBroken",
"OCLC",
"ID",
"Quote",
"Ref",
"PostScript",
"Via"
],
"report": [
"URL",
"Title",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Last2",
"AuthorList-First2",
"Date",
"PublisherName",
"Issue",
"DOI",
"DoiBroken",
"Place",
"PublicationDate",
"Edition",
"Volume",
"Page",
"Pages",
"Language",
"ARXIV",
"ASIN",
"ASINTLD",
"BIBCODE",
"BIORXIV",
"CITESEERX",
"ISBN",
"ISSN",
"JFM",
"JSTOR",
"LCCN",
"MR",
"OCLC",
"OL",
"OSTI",
"PMC",
"PMID",
"ID",
"Docket",
"Quote",
"AuthorList-Last3",
"AuthorList-First3",
"AuthorList-Last4",
"AuthorList-First4",
"AuthorList-Last5",
"AuthorList-First5",
"AuthorList-Last6",
"AuthorList-First6",
"AuthorList-Last7",
"AuthorList-First7",
"AuthorList-Last8",
"AuthorList-First8",
"AuthorList-Last9",
"AuthorList-First9",
"AuthorList-Link",
"AuthorList-Link2",
"AccessDate",
"ArchiveURL",
"ArchiveDate",
"AuthorList-Link3",
"AuthorList-Link4",
"AuthorList-Link5",
"AuthorList-Link6",
"AuthorList-Link7",
"AuthorList-Link8",
"AuthorList-Link9",
"Format",
"UrlStatus",
"UrlAccess",
"bibcode-access",
"doi-access",
"hdl-access",
"jstor-access",
"ol-access",
"osti-access"
],
"default": [
"AuthorList-Last",
"AuthorList-First",
"URL",
"Title",
"TitleLink",
"Vauthors",
"Collaboration",
"Date",
"Periodical",
"PublisherName",
"Others",
"Year",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"EditorList-Mask",
"Veditors",
"Edition",
"Series",
"Volume",
"Place",
"PublicationPlace",
"PublicationDate",
"Page",
"Pages",
"At",
"Language",
"TranslatorList-Last",
"TranslatorList-First",
"ScriptTitle",
"TransTitle",
"Chapter",
"ScriptChapter",
"TransChapter",
"TitleType",
"Format",
"ASINTLD",
"OCLC",
"ID",
"Quote",
"Ref",
"Mode",
"PostScript",
"AuthorList-Mask",
"AuthorList-Mask2",
"AuthorList-Mask3",
"AuthorList-Mask4",
"AuthorList-Mask5",
"AuthorList-Mask6",
"AuthorList-Mask7",
"AuthorList-Mask8",
"AuthorList-Mask9",
"DisplayAuthors",
"AuthorList-Link",
"AuthorList-Link2",
"AuthorList-Link3",
"AuthorList-Link4",
"AuthorList-Link5",
"AuthorList-Link6",
"AuthorList-Link7",
"AuthorList-Link8",
"AuthorList-Link9",
"AccessDate",
"OrigDate",
"ChapterURL",
"ChapterFormat",
"DoiBroken",
"UrlAccess",
"ArchiveURL",
"ArchiveFormat",
"ArchiveDate",
"UrlStatus",
"NameListStyle",
"Via",
"Issue",
"Authors",
"Agency",
"TitleNote",
"DF"
],
"arxiv": [
"ARXIV",
"Class",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-First2",
"AuthorList-Last2",
"AuthorList-Link",
"AuthorList-Link2",
"Authors",
"Title",
"TranslatorList-Last",
"TranslatorList-First",
"TranslatorList-Link",
"TranslatorList-First2",
"TranslatorList-Last2",
"TranslatorList-Link2",
"Collaboration",
"Date",
"DF",
"TransTitle",
"Language"
],
"medrxiv": [
"MEDRXIV",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Last",
"AuthorList-First2",
"AuthorList-Last2",
"AuthorList-Last2",
"AuthorList-Link",
"AuthorList-Link2",
"Authors",
"Title",
"TranslatorList-Last",
"TranslatorList-Last",
"TranslatorList-First",
"TranslatorList-Link",
"TranslatorList-First2",
"TranslatorList-Last2",
"TranslatorList-Last2",
"TranslatorList-Link2",
"Collaboration",
"Date",
"DF",
"TransTitle",
"Language"
],
"conference": [
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Link",
"AuthorList-Last2",
"AuthorList-First2",
"AuthorList-Link2",
"AuthorList-Last3",
"AuthorList-First3",
"AuthorList-Link3",
"AuthorList-Last4",
"AuthorList-First4",
"AuthorList-Link4",
"AuthorList-Last5",
"AuthorList-First5",
"AuthorList-Link5",
"AuthorList-Last6",
"AuthorList-First6",
"AuthorList-Link6",
"AuthorList-Last7",
"AuthorList-First7",
"AuthorList-Link7",
"AuthorList-Last8",
"AuthorList-First8",
"AuthorList-Link8",
"AuthorList-Last9",
"AuthorList-First9",
"AuthorList-Link9",
"DisplayAuthors",
"AuthorList-Mask",
"Date",
"Year",
"OrigDate",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"Others",
"Title",
"ScriptTitle",
"TransTitle",
"URL",
"Format",
"Conference",
"TitleType",
"Series",
"Language",
"Edition",
"Place",
"PublisherName",
"PublicationPlace",
"PublicationDate",
"Volume",
"Issue",
"Page",
"Pages",
"At",
"NoPP",
"ARXIV",
"ASIN",
"ASINTLD",
"BIBCODE",
"BIORXIV",
"CITESEERX",
"DOI",
"DoiBroken",
"ISBN",
"ISSN",
"JFM",
"JSTOR",
"LCCN",
"MR",
"OCLC",
"OL",
"OSTI",
"PMC",
"PMID",
"RFC",
"SSRN",
"ZBL",
"ID",
"UrlAccess",
"ArchiveURL",
"ArchiveDate",
"AccessDate",
"Quote",
"PostScript",
"Ref",
"Via",
"bibcode-access",
"doi-access",
"hdl-access",
"jstor-access",
"ol-access",
"osti-access",
"ConferenceURL"
],
"citeseerx": [
"CITESEERX",
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Last",
"AuthorList-First2",
"AuthorList-Last2",
"AuthorList-Last2",
"AuthorList-Link",
"AuthorList-Link2",
"Authors",
"Title",
"TranslatorList-Last",
"TranslatorList-Last",
"TranslatorList-First",
"TranslatorList-Link",
"TranslatorList-First2",
"TranslatorList-Last2",
"TranslatorList-Last2",
"TranslatorList-Link2",
"Collaboration",
"Date",
"DF",
"TransTitle",
"Language"
],
"interview": [
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Link",
"InterviewerList-Last",
"Title",
"TitleType",
"AuthorList-Last2",
"AuthorList-First2",
"AuthorList-Last3",
"AuthorList-First3",
"AuthorList-Last4",
"AuthorList-First4",
"AuthorList-Last5",
"AuthorList-First5",
"AuthorList-Last6",
"AuthorList-First6",
"AuthorList-Last7",
"AuthorList-First7",
"AuthorList-Last8",
"AuthorList-First8",
"AuthorList-Last9",
"AuthorList-First9",
"URL",
"AccessDate",
"ArchiveURL",
"ArchiveDate",
"UrlStatus",
"Format",
"Periodical",
"Issue",
"PublisherName",
"Place",
"Date",
"Year",
"Page",
"Pages",
"Quote",
"ID"
],
"magazine": [
"AuthorList-Last",
"AuthorList-First",
"AuthorList-Link",
"AuthorList-Last2",
"AuthorList-First2",
"AuthorList-Link2",
"AuthorList-Last3",
"AuthorList-First3",
"AuthorList-Link3",
"AuthorList-Last4",
"AuthorList-First4",
"AuthorList-Link4",
"AuthorList-Last5",
"AuthorList-First5",
"AuthorList-Link5",
"AuthorList-Last6",
"AuthorList-First6",
"AuthorList-Link6",
"AuthorList-Last7",
"AuthorList-First7",
"AuthorList-Link7",
"AuthorList-Last8",
"AuthorList-First8",
"AuthorList-Link8",
"AuthorList-Last9",
"AuthorList-First9",
"AuthorList-Link9",
"DisplayAuthors",
"AuthorList-Mask",
"NameListStyle",
"Date",
"Year",
"OrigDate",
"EditorList-Last",
"EditorList-First",
"EditorList-Link",
"Others",
"Title",
"ScriptTitle",
"TransTitle",
"URL",
"UrlStatus",
"Format",
"TitleNote",
"Periodical",
"Chapter",
"TitleType",
"Language",
"Edition",
"Place",
"PublisherName",
"PublicationPlace",
"PublicationDate",
"Volume",
"Issue",
"Page",
"Pages",
"At",
"NoPP",
"ASINTLD",
"DoiBroken",
"OCLC",
"ID",
"ArchiveURL",
"ArchiveDate",
"AccessDate",
"Quote",
"PostScript",
"Ref",
"Via",
"UrlAccess"
]
},
"description": {
"web": {
"en": "Formats a citation to a website using the provided information such as URL and title. Used only for sources that are not correctly described by the specific citation templates for books, journals, news sources, etc.",
"ar": "ينسق استشهادًا بموقع ويب باستعمال المعلومات المعطاة مثل المسار والعنوان، يستعمل فقط للمصادر التي لا توصف صحيحةً باستخدام قوالب الاسشتهاد المختصة كالكتب والدوريات إلخ."
},
"interview": {
"en": "CS1 template for Interviews",
"ar": "قالب استشهاد للمقابلات"
},
"magazine": {
"en": "This template formats a citation to an article in a magazine, using the provided source information (e.g. magazine name, author, title, issue, URL) and various formatting options.",
"ar": "ينسق هذا القالب استشهادًا بمقالة في مجلة"
},
"arxiv": {
"en": "Formats a citation to a paper with an arXiv id",
"ar": "ينسق هذا القالب استشهادًا بأوراق بحثية له معرف أرخايف"
},
"sign": {
"en": "This template is used to create citations for signs, plaques, and other non-video visuals, using the provided source information (e.g. author, publication, date) and various formatting options.",
"ar": "قالب للاستشهاد بالعلامات واللوحات وغيرها من المرئيات غير الفيديو "
},
"medrxiv": {
"en": "Formats a citation to a paper with a medRxiv id",
"ar": "ينسق هذا القالب استشهادًا بأوراق بحثية له معرف medRxiv"
},
"default": {
"ar": "قالب استشهاد لل"
},
"podcast": {
"en": "This Citation Style 1 template is used to create citations for audio or video podcasts. ",
"ar": "قالب للاستشهاد ببودكاست صوتي أو مرئي"
},
"book": {
"en": "This template formats a citation to a book using the provided bibliographic information (such as author and title) as well as various formatting options.",
"ar": "يستخدم لإضافة المراجع من الكتب سواءً كانت متوفرة أو غير متوفرة على شبكة الويب."
},
"journal": {
"en": "This template formats a citation to an article in a magazine or journal, using the provided source information (e.g. journal name, author, title, issue, URL) and various formatting options.",
"ar": "قالب للاستشهاد بدورية محكمة أو مجلة"
},
"biorxiv": {
"en": "Formats a citation to a paper with a bioRxiv id",
"ar": "ينسق هذا القالب استشهادًا بأوراق بحثية له معرف أرخايف"
},
"pressrelease": {
"en": "This Citation Style 1 template is used to create citations to press releases. N.B. Parameters have been provided for up to 3 authors; however, additional parameters up to 'last9', 'first9' and 'author-link9' can be added manually as parameters.",
"ar": "قالب للاستشهاد ببيان صحفي"
},
"mailinglist": {
"en": "Citation for information found in a mailing list post",
"ar": "قالب للاستشهاد بمنشور قائمة بريدية"
},
"report": {
"en": "This template formats a citation to create citations for reports by government departments, instrumentalities, operated companies, etc.. ",
"ar": "يُستعمل هذا القالب من أجل الاستشهاد بتقرير وفق أسلوب الاستشهاد 1 المعتمد في موسوعة ويكيبيديا. من الأمثلة عن التقارير التي يمكن الاستشهاد بها: التقارير الحكومية وتقارير الشركات المالية و تقارير المنظمات الحقوقية ذات الملحوظية."
},
"newsgroup": {
"en": "Formats citation of the Newsgroup Template",
"ar": "قالب للاستشهاد بمجموعة إخبارية"
},
"map": {
"en": "This template formats a citation to a map using the provided bibliographic information (such as author and title) as well as various formatting options.",
"ar": "قالب للاستشهاد بخريطة"
},
"conference": {
"en": "This template formats a citation to published conference proceedings.",
"ar": "قالب للاستشهاد بوقائع المؤتمر المنشورة"
},
"thesis": {
"en": "A Citation Style 1 template used to create citations for theses or dissertations submitted to and approved by an educational institution recognized as capable of awarding higher degrees.",
"ar": "قالب للاستشهاد بالأطروحات أو الأطروحات المقدمة والمعتمدة من قبل مؤسسة تعليمية معترف بها على أنها قادرة على منح درجات أعلى"
},
"encyclopaedia": {
"en": "This template formats a citation to an article or chapter in an edited collection such as an encyclopedia or dictionary, but more generally to any book or book series containing individual sections or chapters written by various authors, and put together by one or more editors.",
"ar": "قالب للاستشهاد بمقال أو فصل في مجموع محرر مثل الموسوعات والمعاجم، بعامة بكل كتاب أو سلسلة كتب تحوي أقسامًا وفصولًا كتبت من كتاب مختلفين، ثم حررت لتصدر شئيا واحدًا"
},
"citeseerx": {
"en": "Formats a citation to a paper with a CiteSeerX id",
"ar": "ينسق هذا القالب استشهادًا بأوراق بحثية له معرف CiteSeerX"
},
"episode": {
"en": "This template formats citations for television or radio programs and episodes.",
"ar": "قالب للاستشهاد بالبرامج التلفزيونية والإذاعية"
},
"audio-visual": {
"en": "This template formats a citation to audiovisual media sources.",
"ar": "قالب للاستشهاد بمصادر الوسائط الصوتية أو المرئية"
},
"news": {
"en": "This template formats a citation to a news article in print, video, audio or web using the provided source information (e.g. author, publication, date) and various formatting options.",
"ar": "قالب للاستشهاد بمقالة أخبارية في مطبوعة أو فيديو أو صوتية"
}
},
"params": {
"Number": {
"suggested": {
"episode": true
},
"type": "string",
"description": {
"en": {
"default": "Many episodic shows are identified by separate season and episode numbers. Alternately, some shows prefer the format of a single episode number that includes the season within it; this format can be used by omitting the season field."
}
},
"label": {
"en": {
"default": "Episode number"
}
}
},
"ISBN": {
"suggested": {
"book": true
},
"type": "string",
"description": {
"en": {
"default": "International Standard Book Number; use the 13-digit ISBN where possible",
"audio-visual": " International Standard Book Number; for example: 978-0-8126-9593-9. Dashes in the ISBN are optional, but preferred. Use the ISBN actually printed on or in the book. Use the 13-digit ISBN – beginning with 978 or 979 – when it is available."
},
"ar": {
"default": "الرقم الدولي الموحد للكتب؛ استخدم (ISBN - ردمك) المكون من 13 رقمًا إذا كان ممكنًا"
}
},
"label": {
"en": {
"default": "ISBN"
},
"ar": {
"default": "ردمك"
}
},
"required": {
"sign": false
}
},
"ScriptQuote": {
"type": "string",
"description": {
"en": {
"default": "Original quotation for languages that do not use a Latin-based script. Must be prefixed with one of the supported language codes"
}
},
"label": {
"en": {
"default": "Script quote"
}
}
},
"Cartography": {
"type": "string",
"description": {
"en": {
"default": "Person or entity that did the cartography, if this needs to be differentiated from general authorship of the map. Displays preceded by \"Cartography by\"."
}
},
"label": {
"en": {
"default": "Cartographer"
}
}
},
"TranscriptURL": {
"type": "url",
"description": {
"en": {
"default": "URL of the transcript."
}
},
"label": {
"en": {
"default": "Transcript URL"
}
}
},
"TransChapter": {
"type": "string",
"description": {
"en": {
"default": "An English language chapter heading, if the source cited is in a foreign language; 'language' is recommended"
}
},
"label": {
"en": {
"default": "Translated chapter"
}
}
},
"USENETID": {
"suggested": {
"default": false,
"newsgroup": true
},
"type": "string",
"description": {
"en": {
"default": "the newsgroup's message identifier; the value in the message header between angle-brackets \u003C and \u003E; do not include the angle-brackets in |message-id=; must include @"
}
},
"label": {
"en": {
"default": "Message ID"
}
}
},
"ZBL": {
"description": {
"en": {
"default": "Zentralblatt MATH journal identifier"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"encyclopaedia": "ZBL",
"audio-visual": "Identifier: ZBL",
"default": "Zbl"
}
}
},
"ISSN": {
"description": {
"en": {
"default": "International Standard Serial Number; 8 characters; may be split into two groups of four using a hyphen",
"journal": "International Standard Serial Number (print); 8 characters; usually split into two groups of four using a hyphen",
"audio-visual": "International Standard Serial Number; eight characters may be split into two groups of four using a hyphen, but not an en dash or a space."
},
"ar": {
"default": "الرقم الدولي الموحد للمجلات الدورية؛ 8 أحرف؛ يمكن تقسيمه إلى مجموعتين من أربعة بواسطة إشارة ناقص"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "ISSN",
"audio-visual": "Identifier: ISSN"
}
}
},
"ArchiveURL": {
"type": "url",
"suggested": {
"web": true
},
"description": {
"en": {
"web": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'",
"pressrelease": "The URL of an archived copy of a web page, if or in case the url becomes unavailable. Requires parameter 'archive-date'. ",
"audio-visual": "The URL of an archived copy of a web page, if or in case the url becomes unavailable. ",
"interview": "URL of an archived snapshot, such as from Internet Archive, WebCite or Archive.is",
"journal": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'",
"podcast": "The URL of an archived snapshot of a web page.",
"default": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archivedate'",
"encyclopaedia": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'",
"news": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'"
},
"ar": {
"default": "عنوان الرابط لنسخة مؤرشفة من صفحة الويب، إذا كان الرابط الأصلي غير متاح؛ يتطلب وجود 'تاريخ الأرشيف'"
}
},
"label": {
"en": {
"default": "Archive URL",
"audio-visual": "URL: Archive URL"
},
"ar": {
"default": "مسار الأرشيف"
}
},
"example": {
"ar": {
"default": "https://web.archive.org/web/*/https://example.com"
}
},
"required": {
"sign": false
}
},
"ID": {
"description": {
"en": {
"default": "A unique identifier used where none of the specialized ones are applicable",
"audio-visual": "A unique identifier, used where none of the specialized identifiers are applicable"
},
"ar": {
"default": "معرف فريد يُستخدم عند عدم توفر أي من المعرفات المتخصصة"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"encyclopaedia": "ID",
"audio-visual": "Identifier",
"default": "id"
}
}
},
"Encyclopedia": {
"suggested": {
"encyclopaedia": true
},
"type": "string",
"description": {
"en": {
"default": "Title of the source; may be wikilinked; displays in italics; alias of 'work'"
}
},
"label": {
"en": {
"default": "Encyclopedia"
},
"ar": {
"default": "الموسوعة"
}
}
},
"TitleNote": {
"description": {
"en": {
"default": "Unusual in cite book.",
"newsgroup": "Department within the periodical",
"sign": "Department within the periodical",
"magazine": "Department within the periodical",
"journal": "Department (section) within the periodical",
"news": "Department within the periodical"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "Department"
}
}
},
"NoPP": {
"description": {
"en": {
"default": "Set to 'y' to suppress the 'p.' or 'pp.' display with 'page' or 'pages' when inappropriate (such as 'Front cover')"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "No pp"
}
}
},
"OL": {
"description": {
"en": {
"web": "Open Library identifier",
"audio-visual": "Open Library identifier; do not include \"OL\" in the value.",
"newsgroup": "Open Library identifier",
"news": "Open Library identifier",
"journal": "Open Library identifier",
"default": "Open Library identifier; do not include \"OL\" at beginning of identifier",
"encyclopaedia": "Open Library identifier",
"sign": "Open Library identifier",
"magazine": "Open Library identifier",
"report": "Open Library identifier",
"conference": "Open Library identifier"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "OL",
"audio-visual": "Identifier: Open Library"
}
}
},
"PostScript": {
"type": "string",
"default": {
"en": {
"default": "."
}
},
"label": {
"en": {
"default": "Postscript"
}
},
"description": {
"en": {
"web": "The closing punctuation for the citation; ignored if 'quote' is defined",
"encyclopaedia": "The closing punctuation for the citation; ignored if 'quote' is defined",
"default": "The closing punctuation for the citation; ignored if 'quote' is defined; to suppress use reserved keyword 'none'",
"sign": "The closing punctuation for the citation; ignored if 'quote' is defined"
}
},
"required": {
"sign": false
}
},
"Ref": {
"description": {
"en": {
"pressrelease": "ID for anchor, overrides the default anchor. A nonempty value |ref=ID generates an anchor with the given ID; such a linkable reference can be made the target of wikilinks to full references, especially useful in short citations like shortened notes and parenthetical referencing. See anchors for Harvard referencing templates.",
"default": "An anchor identifier; can be made the target of wikilinks to full references; special value 'harv' generates an anchor suitable for the harv and sfn templates",
"sign": "An anchor identifier; can be made the target of wikilinks to full references; special value 'harv' generates an anchor suitable for the harv template",
"encyclopaedia": "An anchor identifier; can be made the target of wikilinks to full references; special value 'harv' generates an anchor suitable for the harv template",
"audio-visual": "Generates anchor with the given ID, allowing it to be made the target of wikilinks to full references. The special value 'harv' generates an anchor suitable for the harv template."
},
"ar": {
"default": "معرف مرساة؛ يمكن أن يكون هدفا لروابط الويكي إلى المراجع الكاملة وفي حالة استعمال قالب «استشهاد مختصر» ، استعمل قيمة«harv» لتولد مرساة مناسبة لقوالب harv و sfn"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"pressrelease": "Anchor ID",
"audio-visual": "Anchor ID",
"default": "Ref"
},
"ar": {
"default": "المرجع"
}
}
},
"Collaboration": {
"type": "string",
"description": {
"en": {
"default": "Name of a group of authors or collaborators; requires author, last, or vauthors which list one or more primary authors; follows author name-list; appends 'et al.' to author name-list.",
"medrxiv": "Name of a group of authors, in addition to the ones listed in the Author parameters",
"citeseerx": "Name of a group of authors, in addition to the ones listed in the Author parameters",
"arxiv": "Name of a group of authors, in addition to the ones listed in the Author parameters",
"biorxiv": "Name of a group of authors, in addition to the ones listed in the Author parameters"
}
},
"label": {
"en": {
"default": "Collaboration"
}
}
},
"Veditors": {
"type": "string",
"example": {
"en": {
"default": "Smythe JB, ((Megabux Corporation))"
}
},
"description": {
"en": {
"default": "Comma separated list of editor names in Vancouver style; enclose corporate or institutional names in doubled parentheses"
}
},
"label": {
"en": {
"default": "Vancouver style editor list"
}
}
},
"SSRN": {
"description": {
"en": {
"default": "Social Science Research Network"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "SSRN",
"audio-visual": "Identifier: SSRN"
}
}
},
"DisplayTranslators": {
"type": "number",
"description": {
"en": {
"default": "number of translators to display before 'et al.' is used"
}
},
"label": {
"en": {
"default": "Display translators"
}
}
},
"ISMN": {
"type": "string",
"example": {
"en": {
"default": "979-0-9016791-7-7"
}
},
"description": {
"en": {
"default": "International Standard Music Number; Use the ISMN actually printed on or in the work. Hyphens or spaces in the ISMN are optional."
}
},
"label": {
"en": {
"default": "ISMN"
}
}
},
"ol-access": {
"autovalue": {
"default": "free"
},
"type": "string",
"description": {
"en": {
"default": "If the full text is free to read on OpenLibrary, type 'free'."
}
},
"label": {
"en": {
"default": "OpenLibrary access level"
}
}
},
"osti-access": {
"autovalue": {
"default": "free"
},
"type": "string",
"description": {
"en": {
"default": "If the full text is free to read on OSTI, type 'free'."
}
},
"label": {
"en": {
"default": "OSTI access level"
}
}
},
"Conference": {
"description": {
"en": {
"default": "Name of the conference, may include location if different from location and date if different from date or year."
}
},
"type": "content",
"required": {
"conference": true
},
"label": {
"en": {
"default": "Conference",
"speech": "Event"
},
"ar": {
"default": "اسم المؤتمر"
}
}
},
"TransTitle": {
"description": {
"en": {
"pressrelease": "English translation of the title if the source cited is in a foreign language. Displays in square brackets after title. Use of the language parameter is recommended.",
"default": "An English language title, if the source cited is in a foreign language; 'language' is recommended",
"medrxiv": "English translation of title",
"citeseerx": "English translation of title",
"audio-visual": "The English translation of the title if the source cited is in a foreign language. Displays in square brackets after title. Use with the language parameter.",
"biorxiv": "English translation of title",
"arxiv": "English translation of title"
},
"ar": {
"default": "العنوان الأعجمي مترجمًا بالعربية"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"pressrelease": "English translation of source title",
"audio-visual": "English translation of title",
"default": "Translated title"
},
"ar": {
"default": "العنوان المترجم بالعربية"
}
}
},
"PMID": {
"suggested": {
"report": true
},
"type": "string",
"description": {
"en": {
"default": "PubMed Unique Identifier",
"audio-visual": "PubMed; use unique identifier"
}
},
"label": {
"en": {
"default": "PMID",
"audio-visual": "Identifier: PMID"
}
},
"required": {
"sign": false
}
},
"Place": {
"suggested": {
"book": true
},
"type": "string",
"description": {
"en": {
"map": "The place where the map was made, if different from the place of publication",
"pressrelease": "Geographical place of publication. Displays after the title.",
"audio-visual": "Geographical place of publication; generally not wikilinked; omit when the name of the work includes the location.",
"newsgroup": "Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of 'place'",
"encyclopaedia": "Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of 'place'",
"default": "Geographical place of publication; usually not wikilinked; omit when the publication name includes place",
"conference": "Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of 'place'",
"interview": "Geographical place of publication; generally not wikilinked; omit when the name of the work includes the location",
"report": "Geographical place of publication; usually not wikilinked.",
"web": "For news stories with a dateline, the location where the story was written; will be treated as the publication place if publication place is absent; alias of 'location'"
},
"ar": {
"web": "بالنسبة للقصص الإخبارية التي تحتوي على خط تاريخ، الموقع الذي كتبت فيه القصة؛ سيتم التعامل معه على أنه مكان النشر في حالة عدم وجود مكان النشر",
"default": "مكان كتابة المرجع أو مكان النشر، ليس وصلة ويكي غالبا، لا تذكره إذا كان اسم المنشورة يتضمن المكان"
}
},
"label": {
"en": {
"map": "Location of Creation",
"default": "Location of publication"
},
"ar": {
"default": "المكان"
}
},
"required": {
"sign": false
}
},
"Transcript": {
"type": "string",
"description": {
"en": {
"default": "Transcript of the original source."
}
},
"label": {
"en": {
"default": "Transcript "
}
}
},
"TitleType": {
"suggested": {
"audio-visual": true
},
"type": "string",
"description": {
"en": {
"map": "Additional information about the media type of the source; format in sentence case. The reserved keyword none can be used to disable the display of a type. Defaults to Map.",
"interview": "Displays in parentheses following title",
"default": "Additional information about the media type of the source; format in sentence case",
"audio-visual": "Media type of the source; format in sentence case. Displays in parentheses following the title. Use one of the following as applicable: Motion picture, Television production, Videotape, DVD, Trailer, Video game, CD, Radio broadcast, Podcast."
}
},
"label": {
"en": {
"interview": "Media type",
"audio-visual": "Media type",
"default": "Type"
}
},
"suggestedvalues": [
"Motion picture",
"Podcast",
"Radio broadcast",
"CD",
"Video game",
"Trailer",
"DVD",
"Videotape",
"Television production"
],
"required": {
"sign": false
}
},
"TimeCaption": {
"type": "string",
"description": {
"en": {
"default": "Changes the default text displayed before time",
"podcast": "Changes the default text displayed before time."
}
},
"label": {
"en": {
"default": "In-source location: Time caption",
"podcast": "Time caption"
}
}
},
"ChapterURL": {
"type": "url",
"description": {
"en": {
"default": "The URL of the online location where the text of the chapter can be found"
}
},
"label": {
"en": {
"default": "Chapter URL"
},
"ar": {
"default": "مسار الفصل"
}
}
},
"QuotePages": {
"type": "string",
"description": {
"en": {
"default": "A list or range of pages quoted in \"quote\". Use either \"quote-page\" or \"quote-pages\", but not both. Separate non-sequential pages with a comma (,)."
}
},
"label": {
"en": {
"default": "Pages of quote"
}
}
},
"Periodical": {
"suggested": {
"mailinglist": true,
"podcast": true,
"web": true
},
"type": "string",
"description": {
"en": {
"web": "Title (name) of the website (or its short URL if no plain-language title is discernible); may be wikilinked; will display in italics. Having both 'publisher' and 'website' is redundant in many cases.",
"mailinglist": "List where post was made",
"news": "Name of the newspaper, magazine or periodical; displays after title",
"journal": "Name of the source journal; may be wikilinked; displays in italics; alias of 'work'",
"podcast": "Title of the podcast",
"default": "Name of the work in which the cited book text is found",
"sign": "Name of the newspaper; displays after title",
"interview": "Name of the source periodical, may be wikilinked if relevant",
"magazine": "Name of the source magazine; may be wikilinked; displays in italics"
},
"ar": {
"web": "عنوان (اسم الموقع) (أوو الرابط المختصر إذا تعذر الاسم)، يمكن أن يكون وصلة ويكي",
"default": " إذا كان هذا العنصر جزءا من عمل أكبر، اسم هذا العمل يشمل هذا أسماء المواقع والمجلات والموسوعات التي يعد المستشهد به جزءًا منها",
"magazine": "اسم المجلة، يمكن أن يكون وصلة ويكي",
"journal": "اسم الدورية المحكمة، يمكن أن يكون وصلة ويكي",
"news": "اسم الجريدة أو المجلة أو الدورية"
}
},
"label": {
"en": {
"web": "Name of the website",
"podcast": "Podcast",
"default": "Work",
"mailinglist": "Mailing list",
"sign": "Newspaper",
"magazine": "Magazine",
"journal": "Journal",
"news": "Name of publication"
},
"ar": {
"web": "اسم الموقع",
"default": "العمل الأشمل",
"magazine": "المجلة",
"journal": "الدورية",
"news": "اسم المنشورة"
}
},
"example": {
"en": {
"news": "[[The Wall Street Journal]]",
"journal": "[[American Journal of Sociology]]",
"default": "[[Rotten Tomatoes]]"
},
"ar": {
"news": "[[وول ستريت جورنال]]",
"default": "[[روتن توميتوز]]"
}
},
"required": {
"journal": true
}
},
"Season": {
"suggested": {
"episode": true
},
"type": "number",
"description": {
"en": {
"default": "Season number, usually for US shows."
}
},
"label": {
"en": {
"default": "Season number"
}
}
},
"AccessDate": {
"suggested": {
"report": true,
"podcast": true,
"newsgroup": true,
"web": true,
"journal": true
},
"type": "date",
"description": {
"en": {
"podcast": "Full date when the content pointed to by url was last verified to support the text in the article.",
"default": "The full date when the original URL was accessed; do not wikilink",
"mailinglist": "Date you accessed the post",
"interview": "Date when url was accessed.",
"audio-visual": "Full date when the contents pointed to by url was last verified to support the text in the article; do not wikilink",
"pressrelease": "Full date when original URL was accessed; use the same format as other access and archive dates in the citations; do not wikilink. Not required for web pages or linked documents that do not change; mainly of use for web pages that change frequently or have no publication date. "
},
"ar": {
"default": "التاريخ الكامل عند الوصول إلى الرابط الأصلي؛ لا تصله إلى ويكيبيديا"
}
},
"label": {
"en": {
"podcast": "Access date",
"audio-visual": "URL: Access date",
"mailinglist": "Access date",
"default": "URL access date",
"speech": "Access date"
},
"ar": {
"default": "تاريخ الوصول للمسار"
}
},
"example": {
"ar": {
"default": "01-01-2019"
}
},
"required": {
"sign": false
}
},
"Chapter": {
"type": "string",
"description": {
"en": {
"default": "The chapter heading of the source; may be wikilinked or with 'chapter-url' but not both. For the contribution alias, see contributor-last",
"map": "The map section(s) of the feature referenced; example: A6, B9, L11, etc; overridden by at."
},
"ar": {
"default": "عنوان الفصل الخاص بالمصدر؛ قد يكون مرتبطا بويكي أو مع 'مسار الفصل' ولكن ليس كلاهما معًا. للحصول على الاسم المستعار للمساهمة، راجع المساهم الأخير"
}
},
"label": {
"en": {
"default": "Chapter",
"map": "Section of map"
},
"ar": {
"default": "الفصل"
}
}
},
"Series": {
"required": {
"episode": true
},
"type": "string",
"description": {
"en": {
"map": "Title of map series.",
"audio-visual": "When the source is part of a series, such as a book series or a journal where the issue numbering has restarted",
"episode": "The name of the series the episode belongs to.",
"conference": "Series identifier when the source is part of a series, such as a book series or a journal; alias of 'version'",
"encyclopaedia": "When the source is part of a series, such as a book series where the issue numbering has restarted; alias of 'version'",
"journal": "Series identifier when the source is part of a series, such as a book series or a journal; alias of 'version'",
"default": "Series identifier when the source is part of a series, such as a book series or a journal"
},
"ar": {
"default": "السلسة عندما يكون المصدر جزءا من سلسة كتب أو دوريات"
}
},
"label": {
"en": {
"map": "Series",
"audio-visual": "Series",
"episode": "Series",
"conference": "Series",
"encyclopaedia": "Series",
"journal": "Series",
"default": "Series identifier"
},
"ar": {
"default": "السلسلة"
}
}
},
"DisplayEditors": {
"type": "string",
"description": {
"en": {
"default": "Controls the number of editor names that are displayed when a citation is published. To change the displayed number of editors, set display-editors to the desired number. For example, |display-editors=2 will display only the first two editors in a citation. By default, all editors are displayed. |display-editors=etal displays all editors in the list followed by et al.",
"map": "number of editors to display before 'et al.' is used"
}
},
"label": {
"en": {
"default": "Display Editors",
"map": "Display editors"
}
}
},
"DOI": {
"suggested": {
"report": true,
"thesis": true
},
"type": "string",
"description": {
"en": {
"default": "Digital Object Identifier; begins with '10.'",
"audio-visual": "Digital object identifier; for example: 10.1038/news070508-7. It is checked to ensure it begins with 10."
},
"ar": {
"default": "مُعرف الكائن الرقمي؛ يبدأ بـ '10.'"
}
},
"label": {
"en": {
"default": "DOI",
"audio-visual": "Identifier: DOI"
}
},
"required": {
"sign": false
}
},
"Degree": {
"suggested": {
"thesis": true
},
"type": "string",
"default": {
"en": {
"default": "Thesis"
}
},
"label": {
"en": {
"default": "Degree"
}
},
"example": {
"en": {
"default": "PhD"
}
},
"description": {
"en": {
"default": "The degree qualification received for the given thesis or dissertation."
}
}
},
"OrigDate": {
"description": {
"en": {
"encyclopaedia": "Original year of publication; provide specifics",
"audio-visual": "Original publication date; displays after the date or year. For clarity, please supply specifics - such as 'First published 1859'.",
"default": "Original date of publication; provide specifics"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"map": "Original Date",
"default": "Original date",
"audio-visual": "Original publication date"
},
"ar": {
"default": "تاريخ النشر الأصلي"
}
}
},
"PMC": {
"description": {
"en": {
"default": "PubMed Center article number",
"audio-visual": "PubMed Central; use article number for full-text free repository of a journal article, e.g. 345678. Do not include \"PMC\" in the value"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "PMC",
"audio-visual": "Identifier: PMC"
}
}
},
"SBN": {
"suggested": {
"book": true
},
"type": "string",
"description": {
"en": {
"default": "Identifier parameter for Standard Book Numbers",
"map": "Standard Book Number, use ISBN when possible"
}
},
"label": {
"en": {
"default": "SBN"
}
}
},
"AuthorList-Last": {
"suggested": {
"map": true,
"audio-visual": true,
"newsgroup": true,
"biorxiv": true,
"encyclopaedia": true,
"interview": true,
"book": true,
"citeseerx": true,
"podcast": true,
"thesis": true,
"medrxiv": true,
"conference": true,
"report": true,
"arxiv": true,
"mailinglist": true,
"default": true
},
"type": "string",
"description": {
"en": {
"medrxiv": "Complete name of the first author",
"arxiv": "Complete name of the first author",
"podcast": "Last name of a host",
"interview": "Last name of the first interviewee",
"default": "The surname of the author; don't wikilink, use 'author-link' instead; can suffix with a numeral to add additional authors"
},
"ar": {
"default": "الاسم الكامل أو اسم الشهرة للمؤلف$1، لا تستعمل وصلات الويكي، استعمل «وصلة-مؤلف» بدلا من ذلك."
}
},
"label": {
"en": {
"default": "Author last name"
},
"ar": {
"default": "اسم المؤلف$1"
}
},
"numbered": true
},
"LCCN": {
"description": {
"en": {
"default": "Library of Congress Control Number",
"audio-visual": "Library of Congress Control Number. When present, alphabetic prefix characters are to be lower case."
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "LCCN",
"audio-visual": "Identifier: LCCN"
}
}
},
"ContributorList-Mask": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "Replaces the name of the first contributor with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing contributor separator; for example, 'with' instead",
"map": "Replaces the name(s) listed in 'others' with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing translator separator; for example, 'with' instead"
}
},
"label": {
"en": {
"default": "Contributor mask",
"map": "Others mask"
},
"ar": {
"default": "قناع المشارك$1"
}
}
},
"Newsgroup": {
"suggested": {
"newsgroup": true
},
"type": "string",
"label": {
"en": {
"default": "News Group"
}
},
"description": {
"en": {
"default": "Name of newsgroup; a link is automatically created; do not wikilink."
}
}
},
"Issue": {
"suggested": {
"report": true,
"magazine": true,
"journal": true
},
"type": "string",
"description": {
"en": {
"report": "Issue identifier when the source is part of a series that is published periodically",
"newsgroup": "Issue identifier when the source is part of a series that is published periodically",
"default": "Issue number of the periodical, if appropriate",
"journal": "Issue identifier when the source is part of a series that is published periodically, usually a number. Do not prepend with no.",
"book": "Issue number. This parameter is not supported by and should generally not be used with cite book. Consider that a different cite template may be more appropriate, such as cite magazine or cite journal. See Help:Citation_Style_1#Pages.",
"sign": "Issue identifier when the source is part of a series that is published periodically",
"magazine": "Issue identifier when the source is part of a series that is published periodically",
"news": "Issue identifier when the source is part of a series that is published periodically. Usually a number. Do not prepend with no. ",
"conference": "Issue identifier when the source is part of a series that is published periodically"
},
"ar": {
"default": "رقم العدد في حالة كان المصدر جزءًا من سلسلة تصدر دوريًّا، رقم عادة."
}
},
"label": {
"en": {
"default": "Issue"
},
"ar": {
"default": "العدد"
}
},
"example": {
"en": {
"default": "3"
}
},
"required": {
"sign": false
}
},
"ConferenceURL": {
"type": "url",
"description": {
"en": {
"default": "URL of conference proceedings, if different from url."
}
},
"label": {
"en": {
"default": "Conference URL"
}
}
},
"bibcode-access": {
"autovalue": {
"default": "free"
},
"type": "string",
"description": {
"en": {
"default": "If the full text is available from ADS via this Bibcode, type 'free'.",
"journal": "If the full text is available from ADS via this Bibcode, type 'free'"
}
},
"label": {
"en": {
"default": "Bibcode access level"
}
}
},
"OCLC": {
"type": "string",
"description": {
"en": {
"default": "Online Computer Library Center number",
"audio-visual": "Online Computer Library Center",
"thesis": "The OCLC code of the thesis"
}
},
"label": {
"en": {
"default": "OCLC"
},
"ar": {
"default": "أكلس"
}
}
},
"InterviewerList-Link": {
"numbered": true,
"type": "wiki-page-name",
"description": {
"en": {
"default": "Title of existing Wikipedia article about the interviewer; can suffix with a numeral to add additional interviewers."
},
"ar": {
"default": "عنوان مقالة ويكيبيديا الحالية للمحاور$1."
}
},
"label": {
"en": {
"default": "Interviewer link"
},
"ar": {
"default": "وصلة المحاور$1"
}
}
},
"HDL": {
"type": "string",
"description": {
"en": {
"default": "Handle System identifier for digital objects and other resources on the Internet"
}
},
"label": {
"en": {
"default": " Handle System identifier",
"map": "Handle System identifier"
}
}
},
"MR": {
"description": {
"en": {
"default": "Mathematical Reviews identifier"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "MR",
"audio-visual": "Identifier: Mathematical Reviews"
}
}
},
"PublicationPlace": {
"suggested": {
"map": true
},
"type": "string",
"description": {
"en": {
"default": "Publication place shows after title; if 'place' or 'location' are also given, they are displayed before the title prefixed with 'written at'",
"audio-visual": "If any one of publication-place, place or location are defined, then the location shows after the title; if publication-place and place or location are defined, then place or location are shown before the title prefixed with \"written at\" and publication-place is shown after the title."
},
"ar": {
"default": "يظهر مكان النشر بعد العنوان. إذا تم إعطاء 'مكان' أو 'موقع' أيضا ، عرضهما قبل العنوان مسبوقا ب 'كتب في'"
}
},
"label": {
"en": {
"default": "Place of publication",
"audio-visual": "Place of publication (Alternate)"
},
"ar": {
"default": "مكان النشر"
}
},
"required": {
"sign": false
}
},
"ASINTLD": {
"description": {
"en": {
"default": "ASIN top-level domain for Amazon sites other than the US"
},
"ar": {
"default": "نطاق ASIN لمواقع أمازون خارج الولايات المتحدة"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "ASIN TLD"
}
}
},
"Date": {
"suggested": {
"map": true,
"audio-visual": true,
"newsgroup": true,
"interview": true,
"podcast": true,
"thesis": true,
"conference": true,
"mailinglist": true,
"episode": true,
"default": true
},
"type": "date",
"description": {
"en": {
"web": "Full date when the source was published; if unknown, use access-date instead; do not wikilink",
"pressrelease": "Full date of source being referenced in the same format as other publication dates in the citations. Do not wikilink. Displays after the authors and enclosed in parentheses. If there is no author, then displays after publisher.",
"episode": "Full date when the source was published; if unknown, use access-date instead; do not wikilink",
"citeseerx": "Date of the source being cited. Use n.d. for no date, and c. for inexact dated.",
"interview": "Date of source being referenced",
"biorxiv": "Date of the source being cited. Use n.d. for no date, and c. for inexact dated.",
"podcast": "Date of the source being referenced.",
"arxiv": "Date of the source being cited. Use n.d. for no date, and c. for inexact dated.",
"medrxiv": "Date of the source being cited. Use n.d. for no date, and c. for inexact dated.",
"conference": "Date of the source; do not wikilink. As listed in the publication",
"default": "Full date of the source; do not wikilink",
"mailinglist": "Original date of post",
"thesis": "Date of source being referenced. Can be full date (day, month, and year) or partial date (month and year, season and year, or year). Use same format as other publication dates in the citations."
},
"ar": {
"web": "التاريخ الكامل لنشر المحتوى، إذا لم يكون معلومًا استعمل «تاريخ الوصول»، لا تستعمل الوصلات",
"default": "تاريخ الكتابة أو تاريخ النشر ، لا تستعمل الوصلات",
"report": "تاريخ كامل للمصدر؛ لا تقم بوصل ويكيبيديا"
}
},
"label": {
"en": {
"default": "Date"
},
"ar": {
"default": "تاريخ المصدر",
"book": "التاريخ"
}
},
"example": {
"en": {
"default": "Summer 2017"
},
"ar": {
"default": "01-01-2019"
}
},
"required": {
"report": true,
"sign": true
}
},
"ContributorList-Link": {
"numbered": true,
"type": "wiki-page-name",
"description": {
"en": {
"default": "Title of existing Wikipedia article about the contributor; can suffix with a numeral to add additional contributors."
},
"ar": {
"default": "عنوان مقالة ويكيبيديا الحالية للمشارك$1."
}
},
"label": {
"en": {
"default": "Contributor link"
},
"ar": {
"default": "وصلة المشارك$1"
}
}
},
"ArchiveFormat": {
"type": "string",
"description": {
"en": {
"default": "Format of the archived copy; examples: PDF, DOC, XLS; do not specify HTML",
"map": "Format of the Archive"
},
"ar": {
"default": "صيغة النسخة المؤرشفة مثلا pdf، doc، xls لا تحدد الصيغة إذا كانت html"
}
},
"label": {
"en": {
"default": "Archive Format"
},
"ar": {
"default": "صيغة الأرشيف"
}
}
},
"Pages": {
"suggested": {
"conference": true,
"book": true,
"journal": true
},
"type": "string",
"description": {
"en": {
"report": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'",
"newsgroup": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'",
"encyclopaedia": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'",
"journal": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.')",
"interview": "A range of pages in the source that supports the content. Use either |page= or |pages=, but not both. Separate using an en dash (–); separate non-sequential pages with a comma (,); do not use to indicate the total number of pages in the source. Displays preceded by pp. unless |no-pp=y. Hyphens are automatically converted to en dashes; if hyphens are appropriate",
"default": "A range of pages in the source that support the content (not an indication of the number of pages in the source); displays after 'pp.'; use either page= or pages=, but not both",
"magazine": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'",
"sign": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'",
"news": "Pages in the source that support the content (not an indication of the number of pages in the source); displays after 'pp.'",
"web": "Pages in the source that support the content (not an indication of the number of pages in the source); displays after 'pp.'",
"conference": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'"
}
},
"label": {
"en": {
"report": "Pages",
"newsgroup": "Pages",
"encyclopaedia": "Pages",
"journal": "Pages",
"interview": "Pages",
"default": "Page(s) cited",
"magazine": "Pages",
"sign": "Pages",
"news": "Pages",
"web": "Pages",
"conference": "Pages"
},
"ar": {
"default": "الصفحات"
}
},
"example": {
"en": {
"map": "5-11",
"news": "2–3",
"default": "5–11"
}
},
"required": {
"sign": false
}
},
"TranslatorList-Last": {
"type": "string",
"description": {
"en": {
"map": "The surname of the translator; don't wikilink, use 'translator-link'; can suffix with a numeral to add additional translators",
"default": "The surname of the translator; don't wikilink, use 'translator-link'; can suffix with a numeral to add additional translators.",
"medrxiv": "Translator's last name",
"biorxiv": "Translator's last name",
"citeseerx": "Translator's last name",
"arxiv": "Translator's last name",
"newsgroup": "Surname of translator. Do not wikilink"
},
"ar": {
"default": "اسم المترجم$1 (أو اسمه الأخير)، لا تستخدم وصلات ويكي"
}
},
"label": {
"en": {
"default": "Translator's last name"
},
"ar": {
"default": "الاسم الأخير للمترجم$1"
}
},
"numbered": true
},
"Minutes": {
"type": "number",
"description": {
"en": {
"default": "Time the event occurs in the source; followed by \"minutes in\".",
"audio-visual": "Time the event occurs in the source; followed by \"minutes in\". ",
"episode": "Time the event occurs in the source. When rendered, followed by \"minutes in\"."
}
},
"label": {
"en": {
"default": "Minutes",
"audio-visual": "In-source location: Minutes",
"episode": "Minutes into episode."
},
"ar": {
"default": "الدقائق",
"audio-visual": "مكان الاستشهاد في المصدر بالدقائق",
"episode": "مكان الاستشهاد في المصدر بالدقائق"
}
}
},
"OSTI": {
"description": {
"en": {
"default": "Office of Scientific and Technical Information identifier",
"audio-visual": "Office of Scientific and Technical Information"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "OSTI",
"audio-visual": "Identifier: OSTI"
}
}
},
"BIBCODE": {
"description": {
"en": {
"default": "Bibliographic Reference Code (REFCODE); 19 characters",
"audio-visual": "Bibcode; used by a number of astronomical data systems; for example: 1974AJ.....79..819H"
},
"ar": {
"default": "رمز المرجع الببليوغرافي (REFCODE)؛ 19 حرفًا"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "Bibcode",
"audio-visual": "Identifier: Bibcode"
}
}
},
"EISSN": {
"type": "string",
"example": {
"en": {
"default": "2009-0048"
}
},
"description": {
"en": {
"default": "International Standard Serial Number for the electronic media of a serial publication; eight characters may be split into two groups of four using a hyphen, but not an en dash or a space.",
"journal": "International Standard Serial Number (online); 8 characters; usually split into two groups of four using a hyphen"
}
},
"label": {
"en": {
"default": "EISSN",
"journal": "eISSN"
}
}
},
"UrlStatus": {
"suggested": {
"report": true,
"web": true
},
"type": "string",
"description": {
"en": {
"interview": "If live, the display order is changed to show the archive link at the end",
"pressrelease": "When the URL is still live, but preemptively archived, then set |url-status=live. This changes the display order with the title retaining the original link and the archive linked at the end.",
"audio-visual": "The status of the URL- live, dead, usurped/unfit (inappropriate content) or deviated (different content)",
"newsgroup": "If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live",
"magazine": "If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live",
"news": "If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live. Set to 'dead' if the original URL is broken. If the original URL is 'live' but no longer supports the article text, set to 'deviated'. Set to 'unfit' or 'usurped' if the original URL is no longer suitable (spam, advertising, etc.) which will make the original link not appear at all.",
"journal": "If set to 'live', the title displays with the URL linked; if set to 'dead', the title displays with the archive URL linked",
"default": "If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live. Set to \"dead\" or 'usurped' for broken links. Entering 'unfit' or 'usurped' makes the original link not appear at all."
},
"ar": {
"default": "إذا تم تعيينها على 'live'، يتم تعديل عرض العنوان؛ مفيد عندما يتم أرشفة الرابط مسبقًا ولكنه ما زال حيًا. قم بتعيينها على 'dead' أو 'usurped' للروابط المعطلة. إدخال 'unfit' أو 'usurped' يجعل الرابط الأصلي لا يظهر على الإطلاق."
}
},
"label": {
"en": {
"default": "URL status"
},
"ar": {
"default": "حالة المسار"
}
},
"default": {
"en": {
"default": "dead"
}
},
"example": {
"en": {
"default": "'dead' or 'live'"
}
},
"suggestedvalues": [
"dead",
"live",
"unfit",
"usurped"
]
},
"DoiBroken": {
"description": {
"en": {
"default": "The date that the DOI was determined to be broken",
"map": "Date a valid DOI was found to be non-working/inactive"
}
},
"type": "date",
"required": {
"sign": false
},
"label": {
"en": {
"default": "DOI broken date",
"map": "DOI Broken Date"
}
}
},
"Title": {
"suggested": {
"arxiv": true,
"mailinglist": true,
"citeseerx": true,
"biorxiv": true,
"episode": true,
"medrxiv": true
},
"type": "string",
"required": {
"report": true,
"pressrelease": true,
"audio-visual": true,
"newsgroup": true,
"interview": true,
"book": true,
"podcast": true,
"thesis": true,
"conference": true,
"encyclopaedia": true,
"map": true,
"sign": true,
"web": true,
"journal": true
},
"label": {
"en": {
"audio-visual": "Source title",
"newsgroup": "Source title",
"news": "Source title",
"podcast": "Episode Title",
"default": "Title",
"encyclopaedia": "Source title",
"sign": "Source title",
"interview": "Source title",
"thesis": "Title of source",
"episode": "Episode title"
},
"ar": {
"default": "العنوان"
}
},
"description": {
"en": {
"web": "The title of the source page on the website; will display with quotation marks added. Usually found at the top of your web browser. Not the name of the website.",
"journal": "The title of the article; can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in quotes.",
"map": "Title of source. Can be wikilinked to an existing Wikipedia article or 'url' field may be used to add an external link, but not both. Displays in italics.",
"newsgroup": "The title of the source page on the website; displays in quotes",
"sign": "The title of the source page on the website; displays in quotes",
"medrxiv": "Title of the paper cited",
"arxiv": "Title of the paper cited",
"podcast": "Title of the podcast episode.",
"encyclopaedia": "The title of the article or entry in the encyclopedia; displays in quotes",
"magazine": "The title of the article; can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in quotes.",
"interview": "Title of the source. May be wiki-linked, or use url to add an external link, but no both.",
"pressrelease": "Title of source. Displays in quotes.",
"biorxiv": "Title of the paper cited",
"mailinglist": "Title of post",
"report": "The title of the article; can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in quotes.",
"conference": "The title of the article; can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in quotes.",
"thesis": "Title of source. Can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in italics. If script-title is defined, title holds romanized transliteration of title in script-title. ",
"news": "The title of the article as it appears in the source; displays in quotes",
"citeseerx": "Title of the paper cited",
"episode": "Title of the episode",
"audio-visual": "The title of the source page on the website; displays in italics",
"default": "The title of the book; displays in italics"
},
"ar": {
"book": "عنوان الكتاب",
"default": "عنوان المصدر",
"report": "عنوان المقالة؛ يمكن ربطه بمقالة موجودة في ويكيبيديا باستخدام الوصلة الويكي أو يمكن استخدام رابط خارجي، ولكن ليس الاثنين معًا. يعرض بين علامتي الاقتباس."
}
}
},
"ASIN": {
"description": {
"en": {
"default": "Amazon Standard Identification Number; 10 characters",
"audio-visual": "Amazon Standard Identification Number; if first character of asin value is a digit, use isbn. "
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "ASIN",
"audio-visual": "Identifier: ASIN"
}
}
},
"jstor-access": {
"autovalue": {
"default": "free"
},
"type": "string",
"description": {
"en": {
"default": "If the full text is free to read on Jstor, type 'free'.",
"journal": "If the full text is free to read on JSTOR, type 'free'"
}
},
"label": {
"en": {
"default": "Jstor access level",
"journal": "JSTOR access level"
}
}
},
"SeriesNumber": {
"type": "number",
"description": {
"en": {
"default": "Series number, usually for British shows."
}
},
"label": {
"en": {
"default": "Series number"
}
}
},
"PublicationDate": {
"type": "date",
"description": {
"en": {
"default": "Date of publication when different from the date the work was written; do not wikilink",
"map": "Date of publication when different from the date the work was created; do not wikilink"
},
"ar": {
"default": "تاريخ المنشورة (وسيلة النشر) عندما يختلف عن وقت كتابة العمل، لا تستخدم وصلة ويكي"
}
},
"label": {
"en": {
"default": "Publication date"
},
"ar": {
"default": "تاريخ النشر"
}
},
"example": {
"ar": {
"default": "01-01-2011"
}
},
"required": {
"sign": false
}
},
"InterviewerList-Mask": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "Replaces the name of the first interviewer with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing interviewer separator; for example, 'with' instead"
}
},
"label": {
"en": {
"default": "Interviewer mask"
},
"ar": {
"default": "قناع المحاور$1"
}
}
},
"Network": {
"suggested": {
"episode": true
},
"type": "string",
"description": {
"en": {
"default": "The network the episode was aired on."
}
},
"label": {
"en": {
"default": "Network"
},
"ar": {
"default": "الشبكة"
}
}
},
"JFM": {
"description": {
"en": {
"default": "Jahrbuch über die Fortschritte der Mathematik classification code",
"audio-visual": "Jahrbuch über die Fortschritte der Mathematik"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "jfm code",
"audio-visual": "Identifier: JFM"
}
}
},
"DisplayContributors": {
"type": "number",
"description": {
"en": {
"default": "number of contributors to display before 'et al.' is used"
}
},
"label": {
"en": {
"default": "Display contributors"
}
}
},
"Volume": {
"suggested": {
"conference": true,
"report": true,
"book": true,
"journal": true
},
"type": "string",
"description": {
"en": {
"report": "For one publication published in several volumes",
"default": "For one publication published in several volumes, usually a number. Do not prepend with v. or vol.",
"newsgroup": "For one publication published in several volumes",
"conference": "For one publication published in several volumes",
"encyclopaedia": "For one publication published in several volumes",
"audio-visual": "For one publication published in several volumes. Displays after the title and series fields; displays in bold",
"sign": "For one publication published in several volumes"
},
"ar": {
"default": "تعيين المجلد في حالة كون المنشور له عدة مجلدات أو أجزاء"
}
},
"label": {
"en": {
"default": "Volume"
},
"ar": {
"default": "المجلد أو الجزء"
}
},
"example": {
"en": {
"default": "3"
}
},
"required": {
"sign": false
}
},
"Time": {
"suggested": {
"podcast": true
},
"type": "string",
"description": {
"en": {
"default": "Time the event occurs in the source, preceded by default text \"Event occurs at\". ",
"audio-visual": "Time the event occurs in the source; preceded by default text \"Event occurs at time\". ",
"episode": "Alternate to minutes. Time the event occurs in the source. When rendered, preceded by default text \"Event occurs at time\"."
}
},
"label": {
"en": {
"default": "Time",
"audio-visual": "In-source location: Time",
"episode": "Time within episode."
}
}
},
"TranslatorList-First": {
"type": "string",
"description": {
"en": {
"default": "Given or first name, middle names, or initials of the translator; don't wikilink, use 'translator-link'; can suffix with a numeral to add additional translators."
},
"ar": {
"default": "الاسم الأول أو الأوسط للمترجم$1، لا تستخدم وصلات ويكي، استخدم وصلة-مترجم للوصلات"
}
},
"label": {
"en": {
"map": "First Name of the Translator",
"default": "Translator first name",
"medrxiv": "Translator's first name",
"biorxiv": "Translator's first name",
"citeseerx": "Translator's first name",
"arxiv": "Translator's first name",
"newsgroup": "Translator First Name"
},
"ar": {
"default": "اسم الأول للمترجم$1"
}
},
"numbered": true
},
"EditorList-Last": {
"type": "string",
"description": {
"en": {
"default": "The surname of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors"
},
"ar": {
"default": "الاسم الكامل أو اسم الشهرة للمحرر$1، لا تستعمل وصلات الويكي، استعمل «وصلة-محرر» بدلا من ذلك."
}
},
"label": {
"en": {
"default": "Editor last name",
"map": "Editor Last Name"
},
"ar": {
"default": "الاسم الكامل أو اسم الشهرة للمحرر$1 "
}
},
"required": {
"sign": false
},
"numbered": true
},
"DisplayAuthors": {
"type": "number",
"default": {
"en": {
"default": "8"
}
},
"label": {
"en": {
"default": "Display authors",
"map": "Display subjects"
},
"ar": {
"default": "عدد المؤلفين الذي سيظهر"
}
},
"description": {
"en": {
"map": "number of subjects to display before 'et al.' is used",
"newsgroup": "number of authors to display before 'et al.' is used;",
"news": "number of authors to display before 'et al.' is used;",
"journal": "number of authors to display before 'et al.' is used;",
"default": "number of authors to display before 'et al.' is used",
"encyclopaedia": "number of authors to display before 'et al.' is used; default is to do so after 8 of 9 are listed; alias of 'displayauthors'",
"conference": "number of authors to display before 'et al.' is used;",
"magazine": "number of authors to display before 'et al.' is used;",
"web": "Number of authors to display before 'et al.' is used. By default, all authors are displayed. Examples: |display-authors=2 will display only the first two authors in a citation followed by et al. |display-authors=etal displays all authors in the list followed by et al.",
"sign": "number of authors to display before 'et al.' is used; default is to do so after 8 of 9 are listed"
}
},
"required": {
"sign": false
}
},
"UrlAccess": {
"suggestedvalues": [
"registration",
"subscription",
"limited"
],
"type": "string",
"description": {
"en": {
"default": "Classification of the access restrictions on the URL ('registration', 'subscription' or 'limited')",
"podcast": "Used to indicate when the cited work is not free-to-access. Allowed keywords are \"registration\", \"limited\", and \"subscription\"."
}
},
"label": {
"en": {
"default": "URL access level",
"podcast": "URL access"
},
"ar": {
"default": "متطلبات فتح المسار"
}
}
},
"Station": {
"type": "string",
"description": {
"en": {
"default": "Call letters of the local station (if any)."
}
},
"label": {
"en": {
"default": "Station"
}
}
},
"Year": {
"suggested": {
"book": true
},
"type": "string",
"description": {
"en": {
"web": "Year of the source being referenced; deprecated in favor of 'date', except for the special case of ISO dates with disambiguating letter",
"audio-visual": "Year of source being referenced. Do not use in combination with 'Source date'.",
"magazine": "Year of the source being referenced; use 'date' instead, if month or season is also known",
"conference": "Year of the source being referenced; recommended only when date parameter format is YYYY-MM-DD and a CITEREF disambiguator is needed",
"interview": "Year of source being referenced. Use of |date= is recommended",
"journal": "Year of the source being referenced; recommended only when date parameter format is YYYY-MM-DD and a CITEREF disambiguator is needed",
"default": "Year of the source being referenced; use 'date' instead, if month and day are also known"
}
},
"label": {
"en": {
"interview": "Year",
"audio-visual": "Year",
"default": "Year of publication"
},
"ar": {
"default": "سنة النشر"
}
},
"example": {
"ar": {
"default": "2019"
}
},
"required": {
"sign": false
}
},
"ChapterFormat": {
"type": "string",
"example": {
"en": {
"default": "PDF, DOC, or XLS"
}
},
"description": {
"en": {
"default": "Format of the work referred to by chapter-url; displayed in parentheses after chapter. HTML is implied and should not be specified."
}
},
"label": {
"en": {
"default": "Format of Chapter URL"
},
"ar": {
"default": "صيغة مسار الفصل"
}
}
},
"DF": {
"type": "string",
"example": {
"en": {
"default": "dmy"
}
},
"description": {
"en": {
"default": "Sets rendered dates to the specified format",
"medrxiv": "Either ymd (Year-Month-Day), dmy (Day-Month-Year), or mdy (Month-Day-Year) add -all at end to also affect access and archive dates",
"citeseerx": "Either ymd (Year-Month-Day), dmy (Day-Month-Year), or mdy (Month-Day-Year) add -all at end to also affect access and archive dates",
"arxiv": "Either ymd (Year-Month-Day), dmy (Day-Month-Year), or mdy (Month-Day-Year) add -all at end to also affect access and archive dates",
"biorxiv": "Either ymd (Year-Month-Day), dmy (Day-Month-Year), or mdy (Month-Day-Year) add -all at end to also affect access and archive dates"
}
},
"label": {
"en": {
"default": "Date format",
"medrxiv": "Date format for publication dates",
"citeseerx": "Date format for publication dates",
"arxiv": "Date format for publication dates",
"biorxiv": "Date format for publication dates"
},
"ar": {
"default": "صيغة التاريخ"
}
}
},
"ScriptTitle": {
"type": "string",
"description": {
"en": {
"map": "For titles in languages that do not use a Latin-based alphabet (Arabic, Bengali, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"magazine": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Hebrew, Japanese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"default": "For titles in languages that do not use a Latin-based alphabet (Arabic, Bengali, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"newsgroup": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"conference": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"news": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"journal": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"web": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:..."
},
"ar": {
"default": "للعناوين المكتوبة بغير العربية أو اللاتينية (Bengali, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). سابقة بحرفين لرمز اللغة في ISO639-1 يتلوها نقطتان رأسيتان فالعنوان مثال اليابانية: |script-title=ja:..."
}
},
"label": {
"en": {
"default": "Script title"
},
"ar": {
"default": "العنوان مع الترميز"
}
}
},
"ScriptChapter": {
"type": "string",
"example": {
"en": {
"default": "ja:東京タワー"
}
},
"description": {
"en": {
"default": "Chapter heading for languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc); follows transliteration defined in chapter. Should be prefixed with an ISO 639-1 two-character code to help browsers properly display the script"
}
},
"label": {
"en": {
"default": "Script Chapter"
},
"ar": {
"default": "فصل مع الترميز"
}
}
},
"SeriesLink": {
"suggested": {
"episode": true
},
"type": "wiki-page-name",
"description": {
"en": {
"default": "Wikilink to an existing Wikipedia article for this series."
}
},
"label": {
"en": {
"default": "Series article in Wikipedia."
},
"ar": {
"default": "مقالة السلسلة في ويكيبيديا."
}
}
},
"Mode": {
"suggestedvalues": [
"cs1",
"cs2"
],
"type": "string",
"description": {
"en": {
"default": "Sets separator and terminal punctuation to the style named in the assigned value; allowable values are: 'cs1' or 'cs2'"
}
},
"label": {
"en": {
"default": "Mode"
}
}
},
"EditorList-Mask": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "Replaces the name of the first editor with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing editor separator; for example, 'with' instead"
}
},
"label": {
"en": {
"default": "Editor mask",
"map": "Editor Mask"
},
"ar": {
"default": "قناع المحرر$1"
}
}
},
"JSTOR": {
"description": {
"en": {
"default": "JSTOR identifier",
"audio-visual": "JSTOR abstract; for example: \"3793107\""
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "JSTOR",
"audio-visual": "Identifier: JSTOR"
}
}
},
"BIORXIV": {
"type": "line",
"description": {
"en": {
"biorxiv": "bioRxiv identifier without the \"bioRxiv:\" prefix",
"journal": "biorXiv identifier; full doi",
"default": "biorXiv identifier; 6 digits"
}
},
"label": {
"en": {
"default": "biorXiv",
"biorxiv": "bioRxiv"
}
},
"example": {
"en": {
"default": "108712"
}
},
"required": {
"biorxiv": true
}
},
"EditorList-Link": {
"type": "wiki-page-name",
"description": {
"en": {
"default": "Title of existing Wikipedia article about the editor"
},
"ar": {
"default": "عنوان مقالة ويكيبيديا الحالية للمحرر$1."
}
},
"label": {
"en": {
"default": "Editor link"
},
"ar": {
"default": "وصلة المحرر$1"
}
},
"required": {
"sign": false
},
"numbered": true
},
"Agency": {
"description": {
"en": {
"default": "The news agency (wire service) that provided the content; examples: Associated Press, Reuters, Agence France-Presse",
"book": "Unusual in cite book. Use if an agency is needed in addition to publisher, etc."
},
"ar": {
"default": "وكالة الأنباء التي قدمت المحتوى",
"book": "لا يستعمل عادة في الكتب، استخدمه عندما تكون هناك حاجة للوكالة بجانب الناشر"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "Agency"
},
"ar": {
"default": "وكالة"
}
}
},
"TransQuote": {
"type": "string",
"description": {
"en": {
"default": "English translation of the quotation if the source quoted is in a foreign language."
}
},
"label": {
"en": {
"default": "Translation of quote"
}
}
},
"ContributorList-Last": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "The surname of the contributor; don't wikilink, use 'contributor-link'; can suffix with a numeral to add additional contributors."
},
"ar": {
"default": "اسم المشارك$1 (أو اسمه الأخير)، لا تستخدم وصلات ويكي"
}
},
"label": {
"en": {
"default": "Contributor last name"
},
"ar": {
"default": "الاسم الأخير للمشارك$1"
}
}
},
"Class": {
"type": "string",
"description": {
"en": {
"default": "arXiv classification, for post-2007 ids "
}
},
"label": {
"en": {
"default": "arXiv class"
}
}
},
"AuthorList-Link": {
"type": "wiki-page-name",
"description": {
"en": {
"interview": "Wikipedia link to Subject (Interviewee)",
"audio-visual": "Title of existing Wikipedia article about the author — not the author's website.",
"default": "Title of existing Wikipedia article about the author; can suffix with a numeral to add additional authors"
},
"ar": {
"default": "عنوان مقالة ويكيبيديا الحالية عن المؤلف$1."
}
},
"label": {
"en": {
"map": "Author Link",
"pressrelease": "First author link",
"audio-visual": "Author article title",
"biorxiv": "Author's article",
"interview": "Subject link",
"default": "Author link",
"medrxiv": "Author's article",
"citeseerx": "Author's article",
"arxiv": "Author's article"
},
"ar": {
"default": "وصلة المؤلف$1"
}
},
"required": {
"sign": false
},
"numbered": true
},
"hdl-access": {
"autovalue": {
"default": "free"
},
"type": "string",
"description": {
"en": {
"default": "If the full text is free to read via the HDL, type 'free'.",
"journal": "If the full text is free to read via the HDL, type 'free'"
}
},
"label": {
"en": {
"default": "HDL access level"
}
}
},
"doi-access": {
"autovalue": {
"default": "free"
},
"type": "string",
"description": {
"en": {
"default": "If the full text is free to read via the DOI, type 'free'.",
"journal": "If the full text is free to read via the DOI, type 'free'"
}
},
"label": {
"en": {
"default": "DOI access level"
}
}
},
"AuthorList-First": {
"suggested": {
"map": true,
"audio-visual": true,
"newsgroup": true,
"biorxiv": true,
"encyclopaedia": true,
"interview": true,
"book": true,
"citeseerx": true,
"podcast": true,
"thesis": true,
"medrxiv": true,
"conference": true,
"report": true,
"arxiv": true,
"mailinglist": true,
"default": true
},
"type": "string",
"description": {
"en": {
"default": "Given or first name, middle names, or initials of the author; don't wikilink, use 'author-link' instead; can suffix with a numeral to add additional authors"
},
"ar": {
"default": "الاسم الأول أو الأوسط للمؤلف$1، لا تستخدم وصلات ويكي، استخدم وصلة-مؤلف للوصلات"
}
},
"label": {
"en": {
"map": "First Name",
"pressrelease": "First name 1",
"thesis": "First name of author",
"default": "First name",
"speech": "First",
"audio-visual": "Author first name"
},
"ar": {
"default": "الاسم الأول للمؤلف$1"
}
},
"example": {
"en": {
"default": "Firstname Middlename or Firstname M. or Dr. Firstname M., Sr."
}
},
"numbered": true
},
"Vauthors": {
"type": "string",
"description": {
"en": {
"default": "If using Vancouver style, comma separated list of author names; enclose corporate or institutional author names in doubled parentheses",
"journal": "comma-separated list of author names in Vancouver style; enclose corporate or institutional author names in doubled parentheses",
"newsgroup": " comma separated list of author names in Vancouver style; enclose corporate or institutional author names in doubled parentheses"
}
},
"label": {
"en": {
"default": "Vancouver style author list",
"newsgroup": "Vauthors"
},
"ar": {
"default": "قائمة مؤلفين بأسلوب فانكوفر"
}
},
"deprecated": {
"newsgroup": false
},
"example": {
"en": {
"default": "Smythe JB, ((Megabux Corporation))",
"map": "Mercator G, ((Rand McNally))"
}
},
"required": {
"newsgroup": false
}
},
"S2CID": {
"type": "string",
"description": {
"en": {
"default": "identifier parameter for Semantic Scholar corpus ID"
}
},
"label": {
"en": {
"default": "S2CID"
}
}
},
"Authors": {
"suggested": {
"podcast": true
},
"type": "string",
"description": {
"en": {
"map": "List of authors as a free form list. Use of this parameter is discouraged, 'lastn' to 'firstn' are preferable. Warning: do not use if last or any of its aliases are used.",
"podcast": "Name of a host",
"default": "List of authors as a free form list. Use of this parameter is discouraged, \"lastn\" to \"firstn\" are preferable. Warning: do not use if last or any of its aliases are used.",
"medrxiv": "Full list of all authors",
"biorxiv": "Full list of all authors",
"citeseerx": "Full list of all authors",
"audio-visual": "Names of the authors",
"arxiv": "Full list of all authors"
},
"ar": {
"default": "قائمة كلمة منسقة بالمؤلفين، والأفضل استخدام وسائط (الأخير، الأول) ولا تستخدم في حالة تعيين وسائط (الأخير، الأول) أو بدائلها."
}
},
"label": {
"en": {
"podcast": "Host",
"default": "Authors list",
"medrxiv": "Authors",
"citeseerx": "Authors",
"audio-visual": "People",
"biorxiv": "Authors",
"arxiv": "Authors"
},
"ar": {
"default": "قائمة المؤلفين"
}
}
},
"RFC": {
"description": {
"en": {
"default": "Request for Comments number",
"audio-visual": "Request for Comments"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "RFC",
"audio-visual": "Identifier: RFC"
}
}
},
"EditorList-First": {
"type": "string",
"description": {
"en": {
"default": "Given or first name, middle names, or initials of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors"
},
"ar": {
"default": "الاسم الأول أو الأوسط للمحرر$1، لا تستخدم وصلات ويكي، استخدم وصلة-محرر للوصلات"
}
},
"label": {
"en": {
"default": "Editor first name",
"map": "First Name of the Editor"
},
"ar": {
"default": "الاسم الأول للمحرر$1"
}
},
"required": {
"sign": false
},
"numbered": true
},
"TranslatorList-Link": {
"type": "wiki-page-name",
"description": {
"en": {
"default": "Title of existing Wikipedia article about the translator; can suffix with a numeral to add additional translators."
},
"ar": {
"default": "عنوان مقالة ويكيبيديا الحالية للمترجم$1."
}
},
"label": {
"en": {
"map": "Link for Translator",
"default": "Translator link",
"medrxiv": "Translator's article",
"biorxiv": "Translator's article",
"citeseerx": "Translator's article",
"arxiv": "Translator's article",
"newsgroup": "Translator Link"
},
"ar": {
"default": "وصلة المترجم$1"
}
},
"deprecated": {
"newsgroup": false
},
"required": {
"newsgroup": false
},
"numbered": true
},
"ArchiveDate": {
"type": "string",
"description": {
"en": {
"report": "Date the url in the field 'archive-url' was archived.",
"podcast": "Archive-service snapshot-date; preceded in display by default text \"archived from the original on\".",
"default": "Date when the original URL was archived; do not wikilink",
"interview": "Date of snapshot on archive service",
"audio-visual": "Date when the original URL was archived; preceded by default text \"archived from the original on\". Use the same format as other access and archive dates in the citations.",
"pressrelease": "Date when the original URL was archived. Use the same format as other access and archive dates in the citations; do not wikilink. Displays preceded by 'archived from the original on'. "
},
"ar": {
"default": "تاريخ الرابط في حقل 'رابط الأرشيف'."
}
},
"label": {
"en": {
"map": "Archive Date",
"default": "Archive date",
"audio-visual": "URL: Archive date"
},
"ar": {
"default": "تاريخ الأرشيف"
}
},
"example": {
"en": {
"default": "2018-01-24"
},
"ar": {
"default": "01-01-2020"
}
},
"required": {
"sign": false
}
},
"Map": {
"type": "string",
"description": {
"en": {
"default": "The title of the map, if published in an atlas, book, or journal. May be wikilinked or may use map-url, but not both. Displays in quotes."
}
},
"label": {
"en": {
"default": "Map Title"
}
}
},
"Format": {
"type": "string",
"description": {
"en": {
"map": "Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML",
"encyclopaedia": "Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML",
"thesis": "Format of the work referred to by url; for example: PDF, DOC, or XLS; displayed in parentheses after title. HTML is implied and should not be specified. Automatically added when a PDF icon is displayed.",
"newsgroup": "Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML",
"sign": "Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML",
"interview": "Format of the work referred to by url; for example: PDF, DOC, or XLS; displayed in parentheses after title",
"default": "Format of the work referred to by 'url' ('url' is required when using 'format'); examples: PDF, DOC, XLS; do not specify HTML",
"audio-visual": "Format of the work referred to by url; for example: PDF, DOC, or XLS; displayed in parentheses after title. HTML is implied and should not be specified. Does not change the external link icon."
},
"ar": {
"default": "صيغة العمل المشار إليه بالمسار («المسار» مطلوب لاستعمال «الصيغة») لا يستعمل مع HTML"
}
},
"label": {
"en": {
"default": "Format",
"interview": "URL format"
},
"ar": {
"default": "الصيغة"
}
},
"example": {
"en": {
"default": "PDF, DOC, or XLS"
},
"ar": {
"default": "PDF، DOC، XLS، DOCX"
}
},
"required": {
"sign": false
}
},
"Quote": {
"description": {
"en": {
"web": "Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation",
"pressrelease": "Relevant text quoted from the source. Displays enclosed in quotes. When supplied, the citation terminator (a period by default) is suppressed, so the quote needs to include terminating punctuation.",
"default": "Relevant text quoted from the source; displays last, enclosed in quotes; needs to include terminating punctuation",
"episode": "Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation",
"interview": "Relevant text quoted from the source. Displays enclosed in quotes. When supplied, the citation terminator (a period by default) is suppressed, so the quote must include terminating punctuation.",
"journal": "Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation",
"audio-visual": "Relevant text quoted from the source. Displays enclosed in quotes. When supplied, the citation terminator (a period by default) is suppressed, so the quote needs to include terminating punctuation."
},
"ar": {
"default": "النص ذو الصلة المقتبس من المصدر؛ يتم عرضه في النهاية ويُحاط بعلامتي اقتباس؛ يجب أن يتضمن علامة ترقيم تنتهي به الجملة"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "Quote"
},
"ar": {
"default": "اقتباس"
}
}
},
"PublisherName": {
"suggested": {
"map": true,
"podcast": true,
"thesis": true,
"book": true
},
"type": "string",
"description": {
"en": {
"web": "Name of the publisher; may be wikilinked. Having both 'publisher' and 'website' (a.k.a. 'work') is redundant in many cases.",
"pressrelease": "Name of publisher. Not normally included for periodicals. Corporate designations such as 'Ltd', 'Inc' or 'GmbH' are not usually included. Displays after title.",
"default": "Name of the publisher; displays after title",
"interview": "Name of publisher; may be wikilinked if relevant",
"thesis": "Name of awarding institution, e.g. university; may be wikilinked if relevant.",
"news": "Name of the parent institution or company that publishes the newspaper, magazine, or periodical; displays after name of the publication",
"journal": "Name of the publisher; may be wikilinked; displays after title",
"podcast": "Name of publisher or podcast network; may be wikilinked if relevant."
},
"ar": {
"book": "ناشر الكتاب",
"report": "اسم الناشر؛ يظهر بعد العنوان",
"default": "اسم الناشر؛ يظهر بعد العنوان"
}
},
"label": {
"en": {
"default": "Publisher",
"thesis": "Publisher (likely university)"
},
"ar": {
"default": "الناشر"
}
},
"example": {
"en": {
"web": "Fandom, Inc. (which owns \"Metacritic.com\")",
"thesis": "Texas A \u0026 M University",
"map": "[[HarperCollins]]",
"news": "Gannett",
"journal": "University of Chicago Press",
"default": "HarperCollins"
},
"ar": {
"default": "دار ابن حزم"
}
},
"required": {
"sign": false
}
},
"Via": {
"suggested": {
"conference": true,
"newsgroup": true,
"journal": true
},
"type": "string",
"description": {
"en": {
"map": "Aggregate or database provider, when different from the Publisher. Typically used when maps are republished on the internet.",
"audio-visual": "Name of the content deliverer, if different from publisher",
"newsgroup": "Identify the aggregator of the resource that provided the digital version (usually a database provider), when it differs from the publisher (e.g., for The Wikipedia Library)",
"news": "Identify the aggregator of the resource that provided the digital version (usually a database provider), when it differs from the publisher (e.g., for The Wikipedia Library)",
"journal": "Provider of the article (not the publisher), usually an aggregator of journal articles or a repository",
"default": "Aggregate or database provider, when different from the Publisher. Typically used for Ebooks.",
"conference": "Provider of the article (not the publisher), usually an aggregator of journal articles or a repository",
"magazine": "Name of the content deliverer (if different from publisher).",
"web": "Name of the entity hosting the original copy of the work, if different from the publisher. This entity is committed not to alter the work."
}
},
"label": {
"en": {
"web": "Published via",
"audio-visual": "Via",
"conference": "Content deliverer (i.e. Database)",
"magazine": "Via",
"journal": "Content deliverer (i.e. Database)",
"default": "via"
}
},
"example": {
"ar": {
"map": "[[مجموعة الخرائط التاريخية لديفيد رامسي]]"
},
"en": {
"map": "[[David Rumsey Historical Map Collection]]",
"audio-visual": "YouTube",
"newsgroup": "EBSCOHost , Proquest, Newspapers.com",
"news": "EBSCOHost, Proquest, Newspapers.com",
"journal": "JSTOR, Project MUSE, Elsevier Science Direct",
"default": "Open Edition, JSTOR",
"conference": "JSTOR, Project MUSE, Elsevier Science Direct",
"magazine": "NewsBank",
"web": "GitHub, SourceForge, CodePlex, YouTube, Vimeo, Dailymotion, Netflix, Archive.org, Wikimedia Commons, grc.com"
}
}
},
"InterviewerList-Last": {
"suggested": {
"interview": true
},
"type": "string",
"description": {
"en": {
"default": "The surname of the interviewer; don't wikilink, use 'interviewer-link'; can suffix with a numeral to add additional interviewers.",
"interview": "Full name of interviewer(s); separate interviewers with a semicolon (;); wikilink as desired."
},
"ar": {
"default": "الاسم الكامل أو اسم الشهرة للمحاور$1، لا تستعمل وصلات الويكي، استعمل «interviewer-link» بدلا من ذلك."
}
},
"label": {
"en": {
"default": "Interviewer last name",
"interview": "Interviewer"
},
"ar": {
"default": "الاسم الأخير للمحاور$1"
}
},
"numbered": true
},
"MEDRXIV": {
"type": "string",
"description": {
"en": {
"default": "medRxiv DOI identifier. That is use |medrxiv=10.1101/YYYY.MM.DD.######## from the medRxiv or doi url where\nYYYY.MM.DD. is a date not earlier than 1 January 2020\n######## is an eight-digit medRxiv identifier – may have a version suffix: ########v#",
"medrxiv": "medRxiv identifier"
}
},
"label": {
"en": {
"default": "medRxiv DOI identifier",
"medrxiv": "medrxiv"
}
},
"example": {
"en": {
"default": "10.1101/2020.11.16.20232009v2"
}
},
"required": {
"medrxiv": true
}
},
"URL": {
"suggested": {
"report": true,
"audio-visual": true,
"newsgroup": true,
"conference": true,
"interview": true,
"thesis": true,
"journal": true
},
"type": "url",
"description": {
"en": {
"web": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"https://...\" or maybe even the protocol relative scheme \"//...\"",
"journal": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"http://...\" or maybe even the protocol-relative scheme \"//...\"",
"news": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"http://...\" or maybe even the protocol relative scheme \"//...\"",
"newsgroup": "The URL of the online location where the text of the publication can be found",
"sign": "The URL of the online location where the text of the publication can be found",
"interview": "URL of publication.",
"default": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"http://...\" or maybe even the protocol relative scheme \"//...\"",
"podcast": " URL of an online location where the podcast episode can be found.",
"magazine": "The URL of the online location where the text of the publication can be found",
"pressrelease": "URL of an online location where the text of the publication can be found. Use of the access-date parameter is recommended.",
"mailinglist": "URL of post",
"report": "The URL of the online location where the text of the publication can be found",
"conference": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"http://...\" or maybe even the \u0026nbsp;protocol relative scheme \"//...\"",
"thesis": "URL of an online location where the text of the publication can be found. Cannot be used if title is wikilinked.",
"encyclopaedia": "The URL of the online location where the text of the publication can be found",
"episode": "The URL of the online location where the text of the publication can be found",
"audio-visual": "The URL of the online location where the media can be found",
"map": "The URL of the online location where the map can be found. Requires schemes of the type \"http://...\" or maybe even the protocol relative scheme \"//...\""
},
"ar": {
"report": "رابط الموقع الإلكتروني حيث يمكن العثور على نص النشرة.",
"default": "رابط الموقع الإلكتروني حيث يمكن العثور على نص النشرة."
}
},
"label": {
"en": {
"default": "URL"
},
"ar": {
"default": "المسار"
}
},
"example": {
"en": {
"web": "https://www.metacritic.com//...",
"default": "https://books.google.com/books?id=...",
"conference": "https://www.nytimes.com/...",
"news": "https://www.nytimes.com/...",
"journal": "https://www.nytimes.com/...",
"map": "https://www.davidrumsey.com/luna/servlet/detail/…"
},
"ar": {
"default": "https://example.com"
}
},
"required": {
"sign": false,
"podcast": true,
"mailinglist": true,
"web": true
}
},
"Others": {
"type": "string",
"description": {
"en": {
"web": "Used to record other (non-author) contributions to the work, such as 'Illustrated by John Smith' or 'Translated by John Smith'. Only one others parameter is allowed: e.g., 'Illustrated by Jane Doe; Translated by John Smith'",
"encyclopaedia": "Used to record other contributions to the work, such as 'Illustrated by John Smith', 'Revised by John Smith' or 'Translated by John Smith'",
"default": "Used to record other contributions to the work, such as 'Illustrated by John Smith' or 'Translated by John Smith'",
"audio-visual": "Other contributors to the work, such as 'Illustrated by John Smith' or 'Translated by John Smith'."
},
"ar": {
"default": "مشاركون آخرون في العمل كالمحققين"
}
},
"label": {
"en": {
"default": "Others",
"audio-visual": "Other contributors"
},
"ar": {
"default": "آخرون"
}
},
"example": {
"ar": {
"default": "تحقيق: محمد ناصر الدين الألباني"
}
},
"required": {
"sign": false
}
},
"QuotePage": {
"type": "string",
"description": {
"en": {
"default": "The number of a single page quoted in \"quote\". Use either \"quote-page\" or \"quote-pages\", but not both."
}
},
"label": {
"en": {
"default": "Page of quote"
}
}
},
"At": {
"description": {
"en": {
"map": "May be used instead of 'page', 'pages', or similar fields, when these are inappropriate or insufficient to describe the in-source location(s)",
"default": "May be used instead of 'page' or 'pages' where a page number is inappropriate or insufficient",
"audio-visual": "For when other in-source locations are inappropriate or insufficient."
},
"ar": {
"default": "يمكن استخدامها بدلا من (صفحة) أو (صفحات) حيث يكون رقم الصفحة غير مناسب أو غير كاف"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "At",
"audio-visual": "In-source location: At"
},
"ar": {
"default": "في"
}
}
},
"NameListStyle": {
"suggestedvalues": [
"amp",
"and",
"vanc"
],
"type": "string",
"description": {
"en": {
"default": "Set to 'amp' or 'and' to change the separator between the last two names of the name list to ' \u0026 ' or ' and ', respectively. Set to 'vanc' to display name lists in Vancouver style."
}
},
"label": {
"en": {
"default": "Name list style",
"map": "Namelist style"
}
}
},
"InterviewerList-First": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "Given or first name, middle names, or initials of the interviewer; don't wikilink, use 'interviewer-link'; can suffix with a numeral to add additional interviewers."
},
"ar": {
"default": "الاسم الأول أو الأوسط للمحاور$1، لا تستخدم وصلات ويكي، استخدم interviewer-link للوصلات"
}
},
"label": {
"en": {
"default": "Interviewer first name"
},
"ar": {
"default": "الاسم الأول للمحاور$1"
}
}
},
"TranslatorList-Mask": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "Replaces the name of the first translator with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing translator separator; for example, 'with' instead"
}
},
"label": {
"en": {
"default": "Translator mask",
"map": "Translator Mask"
},
"ar": {
"default": "قناع المترجم$1"
}
}
},
"ARXIV": {
"type": "string",
"description": {
"en": {
"audio-visual": "arXiv identifier; for example: arxiv=hep-th/9205027 (before April 2007) or arxiv=0706.0001 (since April 2007). Do not include extraneous file extensions like \".pdf\" or \".html\".",
"journal": "An identifier for arXiv electronic preprints of scientific papers",
"default": "An identifier for arXive electronic preprints of scientific papers",
"arxiv": "arXiv identifier without the \"arXiv:\" prefix; can include version number",
"map": "Do not include extraneous file extensions like \".pdf\" or \".html\"."
}
},
"label": {
"en": {
"audio-visual": "Identifier: arXiv",
"default": "arXiv identifier",
"arxiv": "arXiv ",
"map": "Arxiv Identifier"
}
},
"example": {
"en": {
"default": "1501.00001",
"arxiv": "1612.00008v1"
}
},
"required": {
"arxiv": true,
"sign": false
}
},
"TitleLink": {
"suggested": {
"episode": true
},
"type": "wiki-page-name",
"description": {
"en": {
"default": "Title of existing Wikipedia article about the source named in title – do not use a web address; do not wikilink.",
"episode": " Wikilink to an existing Wikipedia article for this one episode."
}
},
"label": {
"en": {
"default": "Title link",
"episode": "Episode article in Wikipedia."
}
}
},
"Language": {
"suggested": {
"audio-visual": true,
"book": true
},
"type": "string",
"description": {
"en": {
"web": "The language in which the source is written, if not English; use a two-letter language code or the full language name. Do not use icons or templates. Separate multiple languages with commas",
"biorxiv": "Language(s) the source is written in. Separate by commas, and do not include 'and'.",
"map": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"arxiv": "Language(s) the source is written in. Separate by commas, and do not include 'and'.",
"sign": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"medrxiv": "Language(s) the source is written in. Separate by commas, and do not include 'and'.",
"default": "The language in which the source is written. Do not use the full language name; use ISO 639-1. Do not use icons or templates",
"journal": "The language in which the source is written, if not English; use a two-letter language code or the full language name. Do not use icons or templates",
"magazine": "The language in which the source is written, if not English; use a two-letter language code or the full language name. Do not use icons or templates",
"newsgroup": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"pressrelease": "If not English, the language the source is written in. Displays in parentheses with 'in' before the language name. Use the full language name; do not use icons or templates.",
"report": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"conference": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"thesis": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"encyclopaedia": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"citeseerx": "Language(s) the source is written in. Separate by commas, and do not include 'and'.",
"episode": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"audio-visual": "The language the source is written in, if not English. Displays in parentheses with \"in\" before the language name. Use the full language name or ISO 639-1 code.",
"news": "The language in which the source is written, if not English; use a two-letter language code or the full language name. Do not use icons or templates"
},
"ar": {
"default": "لغة النشر. اكتب رمز أيزو للغة المطلوبة، مثلاً: «fr» للفرنسية، «en» للإنكليزية، إلخ. أما إذا كانت لغة المصدر عربية فلا تستخدم هذا الحقل."
}
},
"label": {
"en": {
"default": "Language",
"medrxiv": "Language(s)",
"citeseerx": "Language(s)",
"arxiv": "Language(s)",
"biorxiv": "Language(s)"
},
"ar": {
"default": "اللغة"
}
},
"example": {
"en": {
"default": "de, fr, es"
}
},
"required": {
"sign": false
}
},
"Edition": {
"suggested": {
"book": true
},
"type": "line",
"description": {
"en": {
"web": "Specify the edition or revision of the source, when applicable. For example: '2nd' or '5.1'. What you supply here is suffixed by ' ed.'",
"audio-visual": "When the publication has more than one edition; for example: \"2nd\", \"Revised\", and so forth. Appends \" ed.\" after the field.",
"newsgroup": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"news": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"journal": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"default": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed by ' ed.'",
"encyclopaedia": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"sign": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"magazine": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"report": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'",
"conference": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'"
},
"ar": {
"default": "رقم الطبعة"
}
},
"label": {
"en": {
"default": "Edition"
},
"ar": {
"default": "الطبعة"
}
},
"example": {
"en": {
"default": "2nd"
}
},
"required": {
"sign": false
}
},
"Docket": {
"type": "line",
"description": {
"en": {
"default": "Docket number"
}
},
"label": {
"en": {
"default": "docket"
}
}
},
"Sections": {
"type": "string",
"description": {
"en": {
"default": "Sections of Map"
}
},
"label": {
"en": {
"default": "Sections of Map"
}
}
},
"Page": {
"description": {
"en": {
"report": "Page in the source that supports the content; displays after 'p.'",
"audio-visual": "The number of a single page in the source that supports the content. Use 'pages' instead for a range of pages.",
"newsgroup": "Page in the source that supports the content; displays after 'p.'",
"magazine": "Page in the source that supports the content; displays after 'p.'",
"journal": "Page in the source that supports the content; displays after 'p.'",
"interview": "The number of a single page in the source that supports the content. Use either |page= or |pages=, but not both. Displays preceded by p. unless |no-pp=y.",
"default": "The number of a single page in the source that supports the content; displays after 'p.'; use either page= or pages=, but not both",
"encyclopaedia": "Page in the source that supports the content; displays after 'p.'",
"sign": "Page in the source that supports the content; displays after 'p.'",
"news": "Page in the source that supports the content; displays after 'p.'",
"conference": "Page in the source that supports the content; displays after 'p.'",
"web": "Page in the source that supports the content; displays after 'p.'"
}
},
"type": "string",
"required": {
"sign": false
},
"label": {
"en": {
"default": "Page",
"audio-visual": "In-source location: Page"
},
"ar": {
"default": "الصفحة"
}
}
},
"Scale": {
"type": "string",
"description": {
"en": {
"default": "Scale of map"
}
},
"label": {
"en": {
"default": "Scale"
}
}
},
"Embargo": {
"type": "date",
"description": {
"en": {
"default": "Date that pmc goes live; if this date is in the future, then pmc is not linked until that date"
}
},
"label": {
"en": {
"default": "PMC Embargo Date"
}
}
},
"AuthorList-Mask": {
"type": "string",
"description": {
"en": {
"default": "Replaces the name of the first author with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing author separator; for example, 'with' instead",
"map": "Replaces the name of the subject with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing translator separator; for example, 'with' instead"
}
},
"label": {
"en": {
"default": "Author mask",
"map": "Subject"
},
"ar": {
"default": "قناع المؤلف$1"
}
},
"required": {
"sign": false
},
"numbered": true
},
"Inset": {
"type": "string",
"description": {
"en": {
"default": "The name of the focused inset referenced; example: Downtown Fooburg. Output appends \"inset\" after the input; overridden by at."
}
},
"label": {
"en": {
"default": "Inset"
}
}
},
"CITESEERX": {
"type": "line",
"description": {
"en": {
"default": "CiteSeerX identifier; found after the 'doi=' query parameter",
"citeseerx": "CiteSeerX identifier without the \"CiteSeerX:\" prefix"
},
"ar": {
"default": "معرف CiteSeerX؛ يمكن العثور عليه بعد معلم الاستعلام 'doi='"
}
},
"label": {
"en": {
"default": "CiteSeerX"
}
},
"example": {
"en": {
"default": "10.1.1.513.2976"
}
},
"required": {
"citeseerx": true
}
},
"ContributorList-First": {
"numbered": true,
"type": "string",
"description": {
"en": {
"default": "Given or first name, middle names, or initials of the contributor; don't wikilink, use 'contributor-link'; can suffix with a numeral to add additional contributors."
},
"ar": {
"default": "الاسم الأول أو الأوسط للمشارك$1، لا تستخدم وصلات ويكي، استخدم وصلة-مشارك للوصلات"
}
},
"label": {
"en": {
"default": "Contributor first name"
},
"ar": {
"default": "الاسم الأول للمشارك$1"
}
}
}
}
}
5kz2isog7z2xy1so5udoqkr7i04ke5r
وحدة:Citation/CS1/شرح
828
63194
275422
2026-09-15T08:58:38Z
حبيشان
29714
استيراد من ar.wiktionary.org
275422
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
{{وحدات CS1}}
* [[وحدة:Citation/CS1/Arguments]]
<div style="height:350px; width:100%; overflow:auto; padding:3px; border:solid 1px;">
{{تصانيف تتبع CS1}}
</div>
<section end=module_components_table />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|ملعب||
[[تصنيف:وحدات تضيف تصنيف تتبع]]
}}</includeonly>
incfgla35gsqyywxile0ybbpik3s876
وحدة:Citation/CS1/مختبر
828
63195
275423
2026-09-15T08:58:41Z
حبيشان
29714
استيراد من ar.wiktionary.org
275423
Scribunto
text/plain
-- Unit tests for [[وحدة:Citation/CS1]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_encyclopedia()
self:preprocess_equals_preprocess_many('{{cite encyclopedia/new|', '}}', '{{استشهاد بموسوعة|', '}}', {
{
[==[
last= LAST
|first= FIRST
|author-link= author-link
|editor-first= EDITOR-FIRST
|editor-last= EDITOR-LAST
|editor-link= EDITOR-LINK
|encyclopedia= ENCYCLOPEDIA
|title= TITLE
|trans-title= TRANS-TITLE
|url=https://en.wikipedia.org/Main_Page
|access-date= access-date
|language= LANGUAGE
|edition= EDITION
|date= DATE
|year= YEAR
|publisher= PUBLISHER
|volume= VOLUME
|location= LOCATION
|id= ID
|isbn= ISBN
|oclc= OCLC
|doi= 10.DOI
|pages= PAGES
|quote= QUOTE
|ref= REF
]==]
},{
[==[
last =Golden
|first = Peter B.
|author-link =Peter Benjamin Golden
|editor1-last = Golden
|editor1-first = Peter B.
|editor1-link = Peter Benjamin Golden
|editor2-last = Ben-Shammai,
|editor2-first = Haggai
|editor3-last = Róna-Tas
|editor3-first = András
|editor3-link = András Róna-Tas
|encyclopedia = The World of the Khazars: New Perspectives
|title = Khazar Studies: Achievements and Perspectives
|series = Handbook of Oriental Studies
|volume = 17
|publisher = BRILL
|year = 2007a
|pages = 7–57
|isbn = 978-9-004-16042-2
|url = http://books.google.com/books?id=3ZzXjdyK-CEC&pg=PR2#v=onepage&p=123
|access-date = February 13, 2013
]==]
}, {
[==[
title=Idaho – MSN Encarta <!-- BOT GENERATED TITLE -->|url=http://encarta.msn.com/encyclopedia_761565515/Idaho.html | archive-url=https://www.webcitation.org/5kwpoRl6A?url=http://encarta.msn.com/encyclopedia_761565515/Idaho.html | archive-date=2009-11-01|url-status=dead
]==]
}, {
[==[
url= http://encarta.msn.com/encyclopedia_761594679/martina_hingis.html | title=Martina Hingis | publisher=[[إنكارتا]] | access-date=31 October 2008 | archive-url=https://www.webcitation.org/5kx7RAO3G?url=http://encarta.msn.com/encyclopedia_761594679/martina_hingis.html | archive-date=1 November 2009|url-status=dead
]==]
}, {
[==[
archive-url=https://www.webcitation.org/5kwbxqnne?url=http://encarta.msn.com/encyclopedia_761570768/Europe.html | url-status=dead | archive-date=31 October 2009 | title=Europe | last=Microsoft Encarta Online Encyclopaedia 2007 | url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html | access-date=27 December 2007
]==]
}, {
[==[
last=Seberg |first=Ole |year=2007 |editor-last=Heywood |editor-first=Vernon H. |editor2-last=Brummitt |editor2-first=Richard K. |editor3-last=Culham |editor3-first=Alastair |contribution=Alliaceae |title=Flowering Plant Families of the World |pages=340–341 |publication-place=Richmond Hill, Ontario |publisher=Firefly Books |isbn=978-1-55407-206-4 |name-list-style=amp
]==]
}, {
[==[
chapter=Lewinsky scandal |title=The Columbia Encyclopedia, Sixth Edition |publisher=Columbia University Press |year=2008 |url=http://www.encyclopedia.com/topic/Lewinsky_scandal.aspx |access-date=February 9, 2010
]==]
}, {
[==[
last = Gerish | first = Deborah | title = Aimery of Lusignan | editor = Alan V. Murray | encyclopedia = The Crusades: An Encyclopedia | volume = 1 | pages = 24 | publisher = [[أي بي سي-كليو]] | location = [[سانتا باربارا (كاليفورنيا)|Santa Barbara]] | year = 2006 | url = http://books.google.com/books?id=6cSXSgAACAAJ | oclc = 70122512
]==]
}, {
[==[
author=Skousen, Royal | author-link=Royal Skousen | title=Book of Mormon Editions (1830-1981) | encyclopedia=[[Encyclopedia of Mormonism]] | year=1992 | volume=1 | pages=175–6 | publisher=[[Macmillan Publishers (United States)|Macmillan]] | url=http://eom.byu.edu/index.php/Book_of_Mormon_Editions_(1830-1981) | access-date=2009-02-12
]==]
}, {
[==[
last = Morère
| first = J. E.
| title = Aguilon, François d'
| encyclopedia = [[Dictionary of Scientific Biography]]
| volume = 1
| pages = 81
| publisher = Charles Scribner's Sons
| location = New York
| year = 1970
| isbn = 0-684-10114-9
]==]
}, {
[==[
title = Clipper
| encyclopedia = New International Encyclopaedia
| volume = 5
| pages = 39
| publisher = Dodd Mead and Company
| year = 1909
| quote = Clipper ... probably connected with Dutch ''klepper'', fast horse
| url = http://books.google.com/?id=qycVAAAAYAAJ&dq=%22clipper%20ship%22&pg=PA39#v=onepage
| access-date =6 Mar. 2010
]==]
}, {
[==[
last= Smith |first= Peter |encyclopedia= A concise encyclopedia of the Bahá'í Faith |title= satan |year= 2000 |publisher=Oneworld Publications |location= Oxford |isbn= 1-85168-184-1 |pages= 304
]==]
}, {
[==[
chapter=Ethanol|title=[[#Encyc Chem|Encyclopedia of chemical technology]]|year=1991|page=813|volume=9
]==]
}, {
[==[
first = William A.
| last = Wallace
| title = Albertus Magnus, Saint
| url = http://www.u.arizona.edu/~aversa/scholastic/Dictionary of%20Scientific%20Biography/Albertus%20Magnus%20(Wallace).pdf
| publisher = Scribner & American Council of Learned Societies
| isbn = 978-0-684-10114-9
| editor-last = Gillispie
| editor-first = Charles
| encyclopedia = [[Dictionary of Scientific Biography]]
| volume=1
| pages=99-103
| location = New York
| year = 1970
]==]
}, {
[==[
last=Kukathas |first=Chandran |author-link=Chandran Kukathas |year=1998 |title=Rand, Ayn (1905–82) |editor-last=Craig |editor-first=Edward (ed) |encyclopedia=[[Routledge Encyclopedia of Philosophy]] |location=New York |publisher=Routledge |volume=8 |pages=55–56 |isbn=0-415-07310-3 |oclc=318280731
]==]
}, {
[==[
last=Morse |first=Stephen J. |encyclopedia=Law Library - American Law and Legal Information |title=Psychopathy - What Is Psychopathy? |url=http://law.jrank.org/pages/1884/Psychopathy-What-psychopathy.html |access-date=2008-09-25 |volume=Crime and Justice Vol 3|archive-url=https://www.webcitation.org/5b5vnGYP0?url=http://law.jrank.org/pages/1884/Psychopathy-What-psychopathy.html |archive-date=2008-09-25
]==]
}, {
[==[
last= Smith|first= Peter |encyclopedia= A concise encyclopedia of the Bahá'í Faith|title= burial, "death and afterlife", evil, evil spirits, sin |year= 2000|publisher=Oneworld Publications|location= Oxford |isbn= 1-85168-184-1|pages= 96–97, 118–119, 135–136, 322–323
]==]
}, {
[==[
last=Hodges |first=Andrew |editor=Edward N. Zalta |encyclopedia=[[موسوعة ستانفورد للفلسفة]] |title=Alan Turing |url=http://plato.stanford.edu/entries/turing/ |access-date=10 January 2011 |edition=Winter 2009 |date=27 August 2007 |publisher=[[جامعة ستانفورد]]
]==]
}, {
[==[
editor=[[بيت بالمر]] and Gary Gillette|encyclopedia=The 2005 ESPN Baseball Encyclopedia|title=Introduction|edition=1st Edition|year=2005|publisher=Sterling|location=New York|isbn=1-4027-2568-X
]==]
}, {
[==[
first = Ernan
| last = McMullin
| title = Robert Bellarmine
| url = http://www.encyclopedia.com/topic/Robert_Bellarmine.aspx#1
| publisher = Scribner & American Council of Learned Societies
| editor-last = Gillispie
| editor-first = Charles
| encyclopedia = [[Dictionary of Scientific Biography]]
| year = 2008
]==]
}, {
[==[
last= |first= | author-link= | title=Islam |year=2007| encyclopedia=Encyclopædia Britannica Online | access-date=2007-11-27|location=|publisher=|url=http://www.britannica.com/eb/article-69190/Islam
]==]
}, {
[==[
author=Bliss, Michael |year=2002 |title=Macleod, John James Rickard |url=http://www.thecanadianencyclopedia.com/articles/john-james-rickard-macleod |encyclopedia=Canadian Encyclopedia
]==]
}, {
[==[
title=Penderecki, Krzysztof|last=Thomas|first=Adrian|editor-last=Sadie|editor-first=Stanley|location=London, England|year=1992|encyclopedia=[[New Grove Dictionary of Opera]]|ISBN=0-333-73432-7
]==]
}, {
[==[
encyclopedia=[[Encyclopedia of Arkansas History & Culture]]|title=Louisiana Purchase|first=Lea Flowers|last=Baker|access-date=2010-09-18|url=http://encyclopediaofarkansas.net/encyclopedia/entry-detail.aspx?entryID=2383
]==]
}, {
[==[
title=Cervantes, Miguel de|encyclopedia=The Encyclopedia Americana|year=1994
]==]
}, {
[==[
editor=Robert M. Besançon | encyclopedia=The Encyclopedia of Physics | edition=3rd | year=1990 | publisher=Van Nostrand Reinhold, New York | isbn = 0-442-00522-9 | pages = 1278–1284 | article=Vacuum Techniques
]==]
}, {
[==[
last = McFarlane | first = Ian | author-link = Ian McFarlane | encyclopedia = [[Encyclopedia of Australian Rock and Pop]] | title = Whammo Homepage | url = http://web.archive.org/web/20040405231007/http://www.whammo.com.au/index.asp | access-date =4 December 2010 | year = 1999 | publisher=[[Allen & Unwin]] | location = [[St Leonards, New South Wales|St Leonards, NSW]] | isbn = 1-86508-072-1
]==]
}, {
[==[
last = Campbell
| first = J.
| author-link =
| title = Rædwald
| url = http://www.oxforddnb.com/view/article/23265?docPos=1
| encyclopedia = [[قاموس السير الوطنية]]
| year = 2004
| editor-last =
| editor-first =
| editor-link =
| volume =
| location =
| doi = 10.1093/ref:odnb/23265
| publisher = Oxford University Press
]==]
}, {
[==[
title=Avicenna | encyclopedia=Encyclopaedia of Islam Online
]==]
}, {
[==[
title=Islam|encyclopedia=Encyclopaedia of Islam Online|author=L. Gardet|author2=J. Jomier
]==]
}, {
[==[
first=Ted |last=Honderich |author-link=Ted Honderich |year=2005 |title=theodicy |encyclopedia=The Oxford Companion to Philosophy |isbn=0-19-926479-1 |quote=[[جون هيك]], for example, proposes a theodicy, while [[ألفين بلانتينغا]] formulates a defence. The idea of human free will often appears in a both of these strategies, but in different ways.
]==]
}, {
[==[
title=AskOxford Search Results – terrorist |encyclopedia=AskOxford |publisher=AskOxford |access-date=2008-07-11 | no-tracking=true
]==]
}, {
[==[
title = Virus.VBS.Redlof.a | encyclopedia = Virus Encyclopedia | publisher = Viruslist.com | date = January 15, 2004 | url = http://www.viruslist.com/viruses/encyclopedia?virusid=25409 | access-date =August 26, 2007
]==]
}, {
[==[
title=Matthew, Tobie (1544?–1628)
|last=Sheils
|first=William Joseph
|encyclopedia=Oxford Dictionary of National Biography
|publisher=Oxford University Press
|year=2004
]==]
}, {
[==[
editor = Thomas Hockey et al. | last = Dalen | first = Benno van | title=Ulugh Beg: Muḥammad Ṭaraghāy ibn Shāhrukh ibn Tīmūr | encyclopedia = The Biographical Encyclopedia of Astronomers | publisher=Springer | year = 2007 | location = New York | pages = 1157–9 | url=http://islamsci.mcgill.ca/RASI/BEA/Ulugh_Beg_BEA.htm | isbn=978-0-387-31022-0
]==]
}, {
[==[
author=Lawson, M. K. |encyclopedia= The Medieval State: Essays Presented to James Campbell |title=Observations Upon a Scene in the Bayeux Tapestry |publisher=Hambledon Press |location=London |pages=73–92 |year=2000
]==]
}, {
[==[
last=Waugh|first=Scott L.|title=Thomas, 1st Earl of Norfolk (1300–1338)|encyclopedia=Oxford Dictionary of National Biography|publisher=Oxford University Press|location=Oxford|year=2004|doi=10.1093/ref:odnb/27196
]==]
}, {
[==[
author=Yorke, Philip Chesney|encyclopedia=Encyclopædia Britannica|title=Anne (1665–1714)|publisher=University Press|location=Cambridge|edition=11th|year=1911
]==]
}, {
[==[
editor-last = Lewis| editor-first = M. Paul| encyclopedia = Ethnologue: Languages of the World| edition = 16 | publisher = SIL International | location = Dallas, Texas| year = 2009| url = http://www.ethnologue.com/show_language.asp?code=deu
]==]
}
}, {nowiki=false, templatestyles=true})
end
function p:test_news()
self:preprocess_equals_preprocess_many('{{cite news/new|', '}}', '{{استشهاد بخبر|', '}}', {
{
[==[
title = TITLE
| author = AUTHOR
| first = FIRST
| last = LAST
| author-link = author-link
| author-link2 = author-link2
| author2 = AUTHOR2
| author3 = AUTHOR3
| author4 = AUTHOR4
| author5 = AUTHOR5
| author6 = AUTHOR6
| author7 = AUTHOR7
| url = https://en.wikipedia.org/Main_Page
| format = FORMAT
| agency = AGENCY
| newspaper = NEWSPAPER
| publisher = PUBLISHER
| location = LOCATION
| isbn = ISBN
| issn = ISSN
| oclc = OCLC
| pmid = PMID
| pmc = PMC
| bibcode = BIBCODE
| doi = 10.DOI
| id = ID
| date = DATE
| page = PAGE
| pages = PAGES
| at = AT
| access-date = access-date
| language = LANGUAGE
| trans-title = TRANS-TITLE
| quote = QUOTE
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = archive-date
| url-status = URLSTATUS
| ref = REF
| no-tracking=true
]==] }, {
[==[ postscript= | title=Auction Record for an Original 'Alice' | url=http://www.nytimes.com/1998/12/11/nyregion/auction-record-for-an-original-alice.html | date=11 December 1998 | periodical=The New York Times | page=B30
]==] }, {
[==[ last=Rabil | title=New York Times Starts Selling Ad Space on Front Page | url=http://www.bloomberg.com/apps/news?pid=20601103&sid=amsJuEA115pI&refer=us | date=January 5, 2009 | first=Sarah | work=Bloomberg L.P.
]==] }, {
[==[
title=Drugs: Chips trader gets 15 years, 10 strokes
|url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
|work=Daily Express |location=Kota Kinabalu, Malaysia
|date=29 March 2007 |agency=Bernama
]==] }, {
[==[title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|access-date=14 October 2010|newspaper=[[وكالة أنباء نوفوستي]]|date=30 March 2009|language=Russian
]==] }, {
[==[ publisher=Apple Inc. | title=Statement by Apple's Board of Directors | url=http://www.apple.com/pr/library/2011/10/05Statement-by-Apples-Board-of-Directors.html | access-date=October 6, 2011
]==] }, {
[==[ last=Stella | date=14 March 2013 | first=Gian Antonio | title=Tango e battesimo, fidanzata e vangelo l'alfabeto misto di Papa Francesco | newspaper=Corriere della Sera | quote=Mio padre era di Portacomaro (Asti, ndr) e mia madre di Buenos Aires, con sangue piemontese e genovese | url=http://www.corriere.it/esteri/speciali/2013/conclave/notizie/14-mar-papa-tango-fidanzata_1069e952-8c70-11e2-ab2c-711cc67f5f67.shtml | language=Italian | access-date=14 March 2013
]==] }, {
[==[ archive-url=http://web.archive.org/web/20051001062114/http://www.cnn.com/2005/WORLD/europe/09/23/ | date=23 September 2005 | publisher=CNN | title=Cardinal breaks conclave vow of secrecy | archive-date=1 October 2005 | agency=Associated Press | url=http://www.cnn.com/2005/WORLD/europe/09/23/conclave.diary.ap/index.html | access-date=13 March 2013
]==] }, {
[==[ date=17 March 2013 | author=Miroff, Nick | page=27 | title=Pope's activity in Dirty War Draws Scrutiny | location=Sec. 1 | agency=Washington Post | work=Chicago Tribune | access-date=17 March 2013|
no-tracking=true ]==] }, {
[==[ date=916 | title=Mahdia founded |last=El Fatimi]==] }, {
[==[ author=[[بنديكت أندرسون]]|title=In the World-Shadow of Bismarck and Nobel|publisher=[[New Left Review]]|date=July–August 2004|url=http://newleftreview.org/II/28/benedict-anderson-in-the-world-shadow-of-bismarck-and-nobel]==] }, {
[==[ url=http://findarticles.com/p/articles/mi_qa3884/is_200603/ai_n17181949/pg_1?tag=artBody;col1|title=City infrastructures and city dwellers: Accommodating the automobile in twentieth-century Paris|access-date=3 August 2008|author=Mathieu Flonneau|publisher=The Journal of Transport History | year=2006]==] }, {
[==[ url=http://news.bbc.co.uk/1/hi/in_depth/4417096.stm|title=Special Report: Riots in France|date=9 November 2005|access-date=17 November 2007|publisher=BBC News ]==] }, {
[==[ url=http://hn.wenweipo.com/news/zhuanti/2012-11-16/23713.html | title=本报独家探访河南邓州习营村 | date=2012-11-16 | publisher=[[Wen Wei Po]] |access-date=2012-11-156]==] }, {
[==[ url=http://www.nytimes.com/2012/11/16/world/asia/new-chinese-leader-offers-few-hints-of-a-shift-in-direction.html|title=New Chinese Leader Offers Few Hints of a Shift in Direction|first=Ian|last=Johnson|date=2012-11-15|work=The New York Times|access-date=2012-11-15]==] }, {
[==[ first=Jonathan | last=Watts | url=http://www.guardian.co.uk/world/2007/oct/26/china.uknews4 |title=Most corrupt officials are from poor families but Chinese royals have a spirit that is not dominated by money | access-date=11 June 2008 |work=The Guardian |location=London |date= 26 October 2007]==] }, {
[==[ last=Bazar|first=Emily|title=Immigrants Make Pilgrimage to Pope | work=USA Today | date=16 April 2008 | url=http://www.usatoday.com/news/religion/2008-04-15-popeimmigrants_N.htm | access-date=3 May 2008]==] }, {
[==[ author=David Willey |url=http://www.bbc.co.uk/news/world-europe-10645748 |title=Vatican 'speeds up' abuse cases |work=BBC News |date=15 July 2010 |access-date=28 October 2010]==] }, {
[==[ title=The economy of heat |publisher=The Economist |date=2007-04-12 |url=http://www.economist.com/node/8952496?story_id=8952496 |access-date=2008-06-06]==] }, {
[==[ last=Alves |first=Fabio |last2=Caminada |first2=Carlos |title=Brazilian Debt Raised to Investment Grade by S&P |publisher=Reuters |date=2008-04-30 |url=http://www.bloomberg.com/apps/news?pid=newsarchive&sid=a86v4f6_W2Jg |access-date=2008-06-09]==] }, {
[==[ author= | title=Gwynne Shotwell: Executive Profile & Biography | url=http://investing.businessweek.com/research/stocks/private/person.asp?personId=39083380& privcapId=7702894& previousCapId=7702894& previousTitle=Space%20Exploration%20Technologies%20Corp | newspaper=Business Week| publisher=Bloomburg | location=New York | date=2011-12-01| access-date=2011-12-01 | archive-url=https://www.webcitation.org/63bzdtgbl?url=http://investing.businessweek.com/research/stocks/private/person.asp?personId=39083380&privcapId=7702894&previousCapId=7702894&previousTitle=Space%20Exploration%20Technologies%20Corp | url-status=live | archive-date=2011-12-01]==] }, {
[==[ first= Irene | last= Klotz | title= SpaceX's Dragon Capsule Returns Safely To Earth|newspaper=Discovery News|publisher=Discovery Communications | location= Silver Spring, Maryland | date=2010-12-08 | url=http://news.discovery.com/space/spacexs-dragon-capsule-returns-safely-to-earth.html |access-date=2010-12-08|archive-url=https://www.webcitation.org/63c6KAVeX?url=http://news.discovery.com/space/spacexs-dragon-capsule-returns-safely-to-earth.html| archive-date=2011-12-01]==] }, {
[==[ last=Engel|first=Max |title=Launch Market on Cusp of Change |url=http://www.satellitetoday.com/via/satellitegetspersonal/Launch-Market-on-Cusp-of-Change_40648.html |access-date=2013-02-15 |newspaper=Satellite Today |date=2013-03-01<!-- this is the PUBLICATION date of the newsstand issue; it came online on the internet by 15 Feb, but its stated date is 1 March 2013 --> |quote=''SpaceX is not the first private company to try to break through the commercial space launch market. The company, however, appears to be the real thing. Privately funded, it had a vehicle before it got money from NASA, and while NASA’s space station resupply funds are a tremendous boost, SpaceX would have existed without it.'' ]==] }, {
[==[title=Bird flu has jumped to baby seals, scientists discover|url=http://edition.cnn.com/2012/07/31/health/baby-seals-avian-flu/index.html?hpt=hp_c4|access-date=31 July 2012|newspaper=[[سي إن إن]]|date=31 July 2012]==] }, {
[==[url=http://www.guardian.co.uk/film/2010/mar/10/oscars-farrah-fawcett|title=Farrah Fawcett:Oscars director apologises for 'In Memoriam' omission|work=The Guardian |access-date=March 8, 2010 | location=London | first=Ben | last=Child | date=March 10, 2010| archive-url= http://web.archive.org/web/20100414020632/http://www.guardian.co.uk/film/2010/mar/10/oscars-farrah-fawcett| archive-date= April 14, 2010 <!--DASHBot-->| url-status=live]==] }, {
[==[url=http://latimesblogs.latimes.com/files/2009/02/being-a-member.html |title=Being an Oscar voter *doesn't* mean never having to say you're sorry |access-date=October 4, 2009 | work=The Los Angeles Times |url-status=dead]==] }, {
[==[author=[[دونالد ماكنيل جونيور]] |title=Precursor to H.I.V. Was in Monkeys for Millennia |url=http://www.nytimes.com/2010/09/17/health/17aids.html?_r=1&src=me&ref=general |quote=Dr. Marx believes that the crucial event was the introduction into Africa of millions of inexpensive, mass-produced syringes in the 1950s. ... suspect that the growth of colonial cities is to blame. Before 1910, no Central African town had more than 10,000 people. But urban migration rose, increasing sexual contacts and leading to red-light districts.|work=[[نيويورك تايمز]] |date=September 16, 2010 |access-date=2010-09-17 ]==] }, {
[==[ url=http://news.bbc.co.uk/2/hi/technology/7091190.stm|title=BBC News: History of Technology|date=November 15, 2007]==] }, {
[==[ url = http://findarticles.com/p/articles/mi_hb197/is_200401/ai_n5556112| title = The Story Behind Apple's '1984' TV commercial: Big Brother at 20| access-date =May 9, 2008| last = Cellini| first = Adelia | date=January 2004| work = [[Macworld]] 21.1, page 18| archive-url = http://web.archive.org/web/20080626112220/| archive-date = June 26, 2008]==] }, {
[==[ last = Spector| first = G| title = Apple's Jobs Starts New Firm, Targets Education Market| work = [[PC Week]]| page = 109| date = September 24, 1985]==] }, {
[==[ url=http://www.cnn.com/2010/TECH/mobile/06/07/apple.wwdc.preview/index.html | title=Apple unveils iPhone 4, 'biggest leap we've taken' since first model | work=CNN | first1=Brandon |last1=Griggs | first2=John D. |last2= Sutter | date=June 8, 2010 | access-date=July 5, 2010| archive-url= http://web.archive.org/web/20100708063056/| archive-date= July 8, 2010 <!--DASHBot-->| url-status=live]==] }, {
[==[ last=Nichols | date=26 March 2010 | first=Vincent | title=The Church is not trying to cover anything up | url=http://www.timesonline.co.uk/tol/comment/columnists/guest_contributors/article7076344.ece | work=The Times | location=London | access-date=22 May 2010 ]==] }
}, {nowiki=false, templatestyles=true})
end
function p:test_journal()
self:preprocess_equals_preprocess_many('{{cite journal/new|', '}}', '{{استشهاد بدورية محكمة|', '}}', {
{
[==[
last1 = LAST1
| first1 = FIRST1
| author-link1 = author-link1
| last2 = LAST2
| first2 = FIRST2
| author-link2 = author-link2
| editor-last = EDITOR-LAST
| editor-first = EDITOR-FIRST
| editor-link = EDITOR-LINK
| date = DATE
| year = YEAR
| title = TITLE
| trans-title = TRANS-TITLE
| journal = JOURNAL
| volume = VOLUME
| issue = ISSUE
| series = SERIES
| pages = PAGES
| location = LOCATION
| publisher = PUBLISHER
| language = LANGUAGE
| format = FORMAT
| type = TYPE
| arxiv = ARXIV
| id = ID
| isbn = ISBN
| issn = ISSN
| oclc = OCLC
| pmid = PMID
| pmc = PMC
| bibcode = BIBCODE
| doi = 10.DOI
| access-date = access-date
| url = https://en.wikipedia.org/Main_Page
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = 1 January 2010
| lay-source = LAYSOURCE
| lay-url = https://en.wikipedia.org/Wikipedia
| lay-date = 2010-01-01
| quote = QUOTE
| ref = REF
| postscript = POSTSCRIPT
|no-tracking = true
]==] }, {
[==[
type=Type | title=Article | format=Format | author=Author | journal=Journal | no-tracking=true
]==] }, {
[==[
department=Bryan on Scouting | last=Wendell | title=Calendar of New Merit Badges | url=http://blog.scoutingmagazine.org/merit-badge-calendar/ | journal=Scouting | first=Bryan ]==] },{
[==[
archive-url=http://wikiwix.com/cache/?url=http%3A%2F%2Fphysics.aps.org%2Farticles%2Fv3%2F98 | date=November 22, 2010 | doi=10.1103/Physics.3.98 | first1=Paul | volume=3 | editor-first=Gene D. | editor-last=Sprouse | url=http://physics.aps.org/articles/v3/98 | issue=98 | journal=Physics | title=Meet a superpartner at the LHC | issn=1943-2879 | publisher=American Physical Society | archive-date=2011-02-22 | oclc=233971234 | location=New York | bibcode=2010PhyOJ...3...98L | last1=Langacker | access-date=21 February 2011
]==] }, {
[==[
archive-url=http://wikiwix.com/cache/?url=http%3A%2F%2Fphysics.aps.org%2Farticles%2Fv3%2F98 | date=November 22, 2010 | doi=10.1103/Physics.3.98 | doi-access=free | first1=Paul | volume=3 | editor-first=Gene D. | editor-last=Sprouse | url=http://physics.aps.org/articles/v3/98 | issue=98 | journal=Physics | title=Meet a superpartner at the LHC | issn=1943-2879 | publisher=American Physical Society | archive-date=2011-02-22 | oclc=233971234 | location=New York | bibcode=2010PhyOJ...3...98L | last1=Langacker | access-date=21 February 2011
]==] }, {
[==[ author=Sammy De Grave, N. Dean Pentcheff, Shane T. Ahyong ''et al.'' |year=2009 |title=A classification of living and fossil genera of decapod crustaceans |journal=[[Raffles Bulletin of Zoology]] |volume=Suppl. 21 |pages=1–109 |url=http://rmbr.nus.edu.sg/rbz/biblio/s21/s21rbz1-109.pdf |format=[[PDF|PDF]]
]==] }, {
[==[ author=Tin-Yam Chan |year=2010 |chapter=Annotated checklist of the world's marine lobsters (Crustacea: Decapoda: Astacidea, Glypheidea, Achelata, Polychelida) |editor=Martyn E. Y. Low and S. H. Tan |title=Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea) and marine lobsters of the world |journal=[[Zootaxa]] |volume=Suppl. 23 |pages=153–181 |url=http://rmbr.nus.edu.sg/rbz/biblio/s23/s23rbz153-181.pdf |format=[[PDF|PDF]]
]==] }, {
[==[ last=Frątczak|first=Sławomir Z.|language=Polish | url=http://www.glos.com.pl/Archiwum_nowe/Rok+2005/032/strona/Cud.html | archive-url=http://web.archive.org/web/20070708173639/ | archive-date=2007-07-08 | journal=[[Głos (1991)|Głos]]|issue=32/2005 | year=2005 | title=Cud nad Wisłą|access-date=June 18, 2006
]==] }, {
[==[ author= |title=The fourth report on the diagnosis, evaluation, and treatment of high blood pressure in children and adolescents |journal=Pediatrics |volume=114 |issue=2 Suppl 4th Report |pages=555–76 |date=August 2004|pmid=15286277 |doi= 10.1542/peds.114.2.S2.555|url= |author1= National High Blood Pressure Education Program Working Group on High Blood Pressure in Children and Adolescents
]==] }, {
[==[ author= |title=The fourth report on the diagnosis, evaluation, and treatment of high blood pressure in children and adolescents |journal=Pediatrics |volume=114 |issue=2 Suppl 4th Report |pages=555–76 |date=August 2004|pmid=15286277 |doi= 10.1542/peds.114.2.S2.555|hdl=2027/uc1.c095473177|hdl-access=free|url= |author1= National High Blood Pressure Education Program Working Group on High Blood Pressure in Children and Adolescents
]==] }, {
[==[ author=Milazzo S, Ernst E, Lejeune S, Schmidt K |title=Laetrile treatment for cancer |journal=Cochrane Database Syst Rev |issue=2 |pages=CD005476 |year=2006 |pmid=16625640 |doi=10.1002/14651858.CD005476.pub2 |editor1-last=Milazzo |editor1-first=Stefania
]==] }, {
[==[ author=M. F. Land |title=Superposition images are formed by reflection in the eyes of some oceanic decapod Crustacea |journal=[[نيتشر (مجلة)|Nature]] |year=1976 |volume=263 |pages=764–765 |doi=10.1038/263764a0 |pmid=995187 |issue=5580
]==] }, {
[==[ author=Dale Tshudy & Loren E. Babcock |year=1997 |title=Morphology-based phylogenetic analysis of the clawed lobsters (family Nephropidae and the new family Chilenophoberidae) |journal=[[Journal of Crustacean Biology]] |volume=17 |issue=2 |pages=253–263 |jstor=1549275
]==] }, {
[==[ author=M. Kottek|author2=J. Grieser|author3=C. Beck|author4=B. Rudolf|author5=F. Rubel|title=World Map of the Köppen-Geiger climate classification updated|journal=Meteorol. Z.|volume=15|pages=259–263|url=http://koeppen-geiger.vu-wien.ac.at/pics/kottek_et_al_2006.gif|doi=10.1127/0941-2948/2006/0130|access-date=April 22, 2009|year=2006
]==] }, {
[==[ last = Boddington | first = Ann | title = Sejanus. Whose Conspiracy? | journal = The American Journal of Philology | volume = 84 | issue = 1 | pages = 1–16 | date = January 1963 | doi = 10.2307/293155 | jstor = 293155
]==] }, {
[==[ vauthors=Zubcevic J, Waki H, Raizada MK, Paton JF |title=Autonomic-immune-vascular interaction: an emerging concept for neurogenic hypertension |journal=Hypertension |volume=57 |issue=6 |pages=1026–33 |date=June 2011 |pmid=21536990 |pmc=3105900 |doi=10.1161/HYPERTENSIONAHA.111.169748 |url=http://hyper.ahajournals.org/content/57/6/1026.long
]==] }, {
[==[ author = Whelton PK |name-list-style=vanc | year = 2002 |title = Primary prevention of hypertension:Clinical and public health advisory from The National High Blood Pressure Education Program | url = | journal = JAMA | volume = 288 | issue = 15| pages = 1882–8 |doi = 10.1001/jama.288.15.1882 | pmid = 12377087 | author2 = He J | author3 = Appel LJ | author4 = Cutler JA | author5 = Havas S | author6 = Kotchen TA | display-authors = 6 | last7 = Roccella | first7 = EJ | last8 = Stout | first8 = R | last9 = Vallbona | first9 = C
|no-tracking=true ]==] }, {
[==[ vauthors=Alcocer L, Cueto L |title=Hypertension, a health economics perspective |journal=Therapeutic Advances in Cardiovascular Disease |volume=2 |issue=3 |pages=147–55 |date=June 2008 |pmid=19124418 |doi=10.1177/1753944708090572 |url=http://tak.sagepub.com/cgi/pmidlookup?view=long&pmid=19124418 |access-date=2009-06-20
]==] }, {
[==[ title = Are EU Trade Sanctions On Burma Compatible With WTO Law? | journal=Are EU Trade Sanctions on Burma Compatible with WTO Law? | first = Robert | last = Howse | author2 = Jared M. Genser | pages = 166+| id = | url = http://students.law.umich.edu/mjil/article-pdfs/v29n2-howse-genser.pdf | access-date =7 November 2010 | quote = repressive and abusive military regime
]==] }, {
[==[ journal = [[ساينس|Science]] | last1 = Wodinsky | first1 = Jerome | title = Hormonal Inhibition of Feeding and Death in Octopus: Control by Optic Gland Secretion | date = 2 December 1977 | volume = 198 | issue = 4320| pages = 948–951 | url = http://www.sciencemag.org/content/198/4320/948.abstract | access-date= 27 November 2011 | doi = 10.1126/science.198.4320.948
]==] }, {
[==[ vauthors=Karakurt F |title=Comparison of the clinical efficacy of flutamide and spironolactone plus ethinyloestradiol/cyproterone acetate in the treatment of hirsutism: a randomised controlled study |journal=Adv Ther |volume=25 |issue=4 |pages=321–8 |date=April 2008 |isbn=1232500800395
]==] }, {
[==[ title = Mr. Mackintosh's New God | first = George Jacob | last = Holyoake | author-link = George Holyoake | magazine = [[w:The Oracle of Reason|The Oracle of Reason, Or, Philosophy Vindicated]] | volume = 1 | issue = 23 | year = 1842 | page = 186 | url = http://books.google.com/books?id=BFY9AAAAYAAJ&pg=PA186 | quote = On the contrary, I, as an Atheist, simply profess that I do not see sufficient reason to ''believe'' that there is a god. I do not pretend to ''know'' that there is no god. The whole question of god's existence, ''belief'' or ''disbelief'', a question of probability or of improbability, not knowledge.
]==] }, {
[==[ last1 = Arenillas | first1 = Miguel | last2 = Castillo | first2 = Juan C. | title = Dams from the Roman Era in Spain. Analysis of Design Forms (with Appendix) | journal = 1st International Congress on Construction History [20th–24th January] | publication-place = Madrid | year = 2003 | url = http://www.traianvs.net/textos/presas_in.htm#_ednref4
]==] }, {
[==[ author=International Union of Crystallography |year=1992 |title=Report of the Executive Committee for 1991 |journal=Acta Crystallogr. A |volume=48 |issue= 6|pages=922 |doi=10.1107/S0108767392008328
]==] }, {
[==[ author=International Union of Crystallography |year=1992 |title=Report of the Executive Committee for 1991 |journal=Acta Crystallogr. A |volume=48 |issue= 6|pages=922 |doi=10.1107/S0108767392008328|pmc=1438678
]==] }, {
[==[ url = http://www.minsocam.org/ammin/AM66/AM66_885.pdf|journal = American Mineralogist|volume = 66|page=885|year= 1981|title= The largest crystals|author = Rickwood, P. C.
]==] }, {
[==[ last=Watling|first=H. R.|title=The bioleaching of sulphide minerals with emphasis on copper sulphides — A review | journal=Hydrometallurgy | year=2006 | volume=84 | issue=1, 2 | pages=81–108 | url=http://infolib.hua.edu.vn/Fulltext/ChuyenDe/ChuyenDe07/CDe53/59.pdf | format=PDF | doi=10.1016/j.hydromet.2006.05.001
]==] }, {
[==[ vauthors=Richmond SJ, Brown SR, Campion PD, Porter AJ, Moffett JA, Jackson DA, Featherstone VA, Taylor AJ |title=Therapeutic effects of magnetic and copper bracelets in osteoarthritis: a randomised placebo-controlled crossover trial|journal=Complement Ther Med.|year=2009|volume=17|issue=5-6|pages=249–256|pmid=19942103|doi=10.1016/j.ctim.2009.07.002
]==] }, {
[==[ author=Kivelson G. M., Russell, C. T. |title=Introduction to Space Physics |publisher=Cambridge University Press |year=1995|isbn=0-521-45714-9
]==] }, {
[==[ last=Quigg| first=Catherine T.| title=Tritium Warning| journal=Bulletin of the Atomic Scientists| volume=40|issue=3| pages=56–57|date=March 1984
]==] }, {
[==[ last1 = Ralston | first1 = NVC | last2 = Raymond | first2 = LJ | year = 2010 | title = Dietary selenium's protective effects against methylmercury toxicity | url = | journal = Toxicology | volume = 278 | issue = | pages = 112–123
]==] }, {
[==[ author=Aller TA, Wildsoet C |title=Bifocal soft contact lenses as a possible myopia control treatment: a case report involving identical twins |journal=Clin Exp Optom |volume=91 |issue=4 |pages=394–9 |date=July 2008 |pmid=18601670 |doi=10.1111/j.1444-0938.2007.00230.x |url=
]==] }, {
[==[ pmid=17742735|year=1969|last1=Gorman|first1=CF|title=Hoabinhian: A pebble-tool complex with early plant associations in southeast Asia|volume=163|issue=3868|pages=671–3|doi=10.1126/science.163.3868.671|journal=Science
]==] }, {
[==[ last1 = Tormmsdof | first1 = V. | year = 1966 | title = Progressive metamorphose kieseliger karbonatgesteine in den Zentralalpen zwischen Bernina und Simplon | url = | journal = Schweizerische Mineralogische und Petrographische Mitteilungen = Bulletin Suisse de Mineralogie et Petrographie | volume = 46 | issue = | pages = 431–460
]==] }, {
[==[ author=Kivelson G. M., Russell, C. T. |title=Introduction to Space Physics |publisher=Cambridge University Press |year=1995|isbn=0-521-45714-9
]==] }, {
[==[ author=Ellenberger, C. Leroy|date=Winter 1984 |author-link=C. Leroy Ellenberger |title=Worlds in Collision in Macmillan's Catalogues |journal=Kronos | volume=9 | issue=2 | url=http://www.catastrophism.com/cdrom/pubs/journals/kronos/vol0902/index.htm |access-date=2009-05-16
]==] }, {
[==[ author = Zapolski TC, Cyders MA, Smith GT | title = Positive urgency predicts illegal drug use and risky sexual behavior | journal = Psychol Addict Behav | volume = 23 | issue = 2 | pages = 348–54 | date = June 2009 | pmid = 19586152 | pmc = 2709762 | doi = 10.1037/a0014684
]==] }, {
[==[ first=J. | last=Blackwell | author2 =M.R. Nagarajan |author3= T.B. Hoitink | title=The Structure of the Hard Segments in MDI/diol/PTMA Polyurethane Elastomers | publisher=American Chemical Society | location=Washington, D.C. | year=1981 | issn=0097-6156/81/0172-0179
]==] }, {
[==[ author=Ehret GB |name-list-style=vanc |title=Genetic variants in novel pathways influence blood pressure and cardiovascular disease risk |journal=Nature |volume=478 |issue=7367 |pages=103–9 |date=October 2011 |pmid=21909115 |doi=10.1038/nature10405 |author2=Munroe PB |author3=Rice KM|display-authors=3 |last4=Bochud |first4=Murielle |last5=Johnson |first5=Andrew D. |last6=Chasman|first6=Daniel I. |last7=Smith |first7=Albert V. |last8=Tobin |first8=Martin D. |last9=Verwoert|first9=Germaine C. |pmc=3340926
]==] }, {
[==[ author=Lewington S, Clarke R, Qizilbash N, Peto R, Collins R |title=Age-specific relevance of usual blood pressure to vascular mortality: a meta-analysis of individual data for one million adults in 61 prospective studies |journal=Lancet |volume=360 |issue=9349 |pages=1903–13 |date=December 2002 |pmid=12493255 |doi= 10.1016/S0140-6736(02)11911-8|url=
]==] }, {
[==[ author = Steiner DF, Oyer PE | title = The biosynthesis of insulin and a probable precursor of insulin by a human islet cell adenoma | journal = Proc. Natl. Acad. Sci. U.S.A. | volume = 57 | issue = 2 | pages = 473–480 | date = February 1967 | pmid = 16591494 | pmc = 335530 | doi = 10.1073/pnas.57.2.473| url =
]==] }, {
[==[ author = Menting JG, Whittaker J, Margetts MB, Whittaker LJ, Kong GK-W, Smith BJ, Watson CJ, Žáková L, Kletvíková E, JJ, Chan SJ, Steiner DF, Dodson GG, Brzozowski AM, Weiss MA, Ward CW, Lawrence MC | title = How insulin engages its primary binding site on the insulin receptor | journal = Nature | year = 2013 | volume = 493 | issue = 7431 | pages = 241–245 | doi = 10.1038/nature11781 | lay-url = http://www.abc.net.au/news/2013-01-10/australian-researchers-crack-insulin-mechanism/4458974 | lay-source = Australian Broadcasting Commission
]==] }, {
[==[ author=J Clemens, PG Jones, NH Gilbert|date=|year=1977 |title=Effect of seed treatments on germination in Acacia|journal=Australian Journal of Botany |volume=25 |issue=3 |pages=269–267 |pmid=|doi=10.1071/BT9770269|url=http://www.publish.csiro.au/nid/65/paper/BT9770269.htm
]==] }, {
[==[ title=Martinez Beavers |author=Aleta George |url=http://baynature.org/articles/jan-mar-2008/ear-to-the-ground/martinez-beavers |year=2008 |magazine=Bay Nature |publisher=Bay Nature Institute |access-date=November 6, 2009
]==] }, {
[==[ author = Weissman KJ, Müller R |title = Protein-protein interactions in multienzyme megasynthetases |journal = ChemBioChem |volume = 9 |issue = 6 |pages = 826–48 |year = 2008 |pmid = 18357594 |doi = 10.1002/cbic.200700751
]==] }, {
[==[ last1 = Coyne | first1 = Jerry A. | author2 = Barton, Turelli | title = Perspective: A Critique of Sewall Wright's Shifting Balance Theory of Evolution | journal = Evolution | year = 1997 | volume = 51 | issue = 3 | series = 3 | pages = 643–671 | doi = 10.2307/2411143
]==] }, {
[==[ doi = 10.1086/377226 |title = First-Year Wilkinson Microwave Anisotropy Probe (WMAP) Observations: Determination of Cosmological Parameters |first = D. N. |last = Spergel |journal = The Astrophysical Journal Supplement Series |volume = 148 |year = 2003 |issue = 1 |pages = 175–94 |last2 = Verde |first2 = L. |last3 = Peiris |first3 = H. V. |last4 = Komatsu |first4 = E. |last5 = Nolta |first5 = M. R. |last6 = Bennett |first6 = C. L. |last7 = Halpern |first7 = M. |last8 = Hinshaw |first8 = G. |last9 = Jarosik |first9 = N. |bibcode = 2003ApJS..148..175S |arxiv = astro-ph/0302209
| no-tracking = true
]==] }
}, {nowiki=false, templatestyles=true})
end
function p:test_book()
self:preprocess_equals_preprocess_many('{{cite book/new|', '}}', '{{استشهاد بكتاب|', '}}', {
{
[==[
last = LAST
| first = FIRST
| author-link = author-link
| last2 = LAST2
| first2 = FIRST2
| author-link2 = author-link2
| editor-last = EDITOR-LAST
| editor-first = EDITOR-FIRST
| editor-link = EDITOR-LINK
| editor2-last = EDITOR2-LAST
| editor2-first = EDITOR2-FIRST
| editor2-link = EDITOR2-LINK
| others = OTHERS
| title = TITLE
| trans-title = TRANS-TITLE
| url = https://en.wikipedia.org/Main_Page
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = January 1, 2010
| format = FORMAT
| access-date = 1 January, 2010
| type = TYPE
| edition = EDITION
| series = SERIES
| volume = VOLUME
| date = DATE
| origyear = ORIGYEAR
| year = YEAR
| publisher = PUBLISHER
| location = LOCATION
| language = LANGUAGE
| isbn = ISBN
| oclc = OCLC
| lccn = LCCN
| doi = 10.DOI
| bibcode = BIBCODE
| id = ID
| page = PAGE
| pages = PAGES
| nopp = NOPP
| at = AT
| chapter = CHAPTER
| trans-chapter = TRANS-CHAPTER
| chapterurl = https://en.wikipedia.org/Main_Page#top
| quote = QUOTE
| ref = REF
| lay-url = https://en.wikipedia.org/Wikipedia
| lay-date = 2010-01-01
| author-mask = AUTHOR-MASK
| display-authors = 10
| postscript = POSTSCRIPT
| no-tracking = true
]==] }, {
[==[ last=Rabinovich|first=Viktor Abramovich |author2=Vasserman, A. A.|author3=Nedostup, V. I. |author4=Veksler, L. S.|title=Thermophysical properties of neon, argon, krypton, and xenon|year=1988|edition=English-language |publisher=Hemisphere Publishing Corp. |location=Washington, DC|isbn=0-89116-675-0 |url=http://adsabs.harvard.edu/abs/1988wdch...10.....R |access-date=2009-04-02
]==] }, {
[==[ author=Anonymous|editor=Daniel Coit Gilman |editor2=Harry Thurston Peck |editor3=Frank Moore Colby |year=1904|title=The New International Encyclopædia |publisher=Dodd, Mead and Company|page=906
]==] }, {
[==[ pages=1328–1334|title=Linus Pauling: Selected Scientific Papers|volume=2|editor=Pauling, Linus |editor2=Kamb, Barclay |place=River Edge, New Jersey|publisher=World Scientific |year=2001|isbn=981-02-2940-2|url=http://books.google.com/?id=2QduA19d_X8C&pg=PA1329
]==] }, {
[==[ title=Soedirman: Bapak Tentara Indonesia |trans-title=Soedirman: Father of the Indonesian Military |language=Indonesian |last=Adi |first=A. Kresna |publisher=Mata Padi Pressindo |isbn=978-602-95337-1-2 |location=Yogyakarta |year=2011
]==] }, {
[==[ url=http://books.google.ca/books?id=WrkzPcxBnLMC |title=Takhta untuk Rakyat: Celah-celah Kehidupan Sultan Hamengku Buwono IX |trans-title=Serving the People: The Life Story of Sultan Hamengku Buwono IX |language=Indonesian |isbn=978-979-22-6767-9 |editor1-first=Mohamad |editor1-last=Roem |editor1-link=Mohamad Roem |editor2-first=Mochtar |editor2-last=Lubis |editor2-link=Mochtar Lubis |editor3-first=Kustiniyati |editor3-last=Mochtar |editor4-first=Maimoen |editor4-last=S. |last=Nasution |first=A. H. |author-link=Abdul Haris Nasution |publisher=Gramedia Pustaka Utama |location=Jakarta |year=2011 |origyear=1982 |edition=Revised
|no-tracking=true ]==] }, {
[==[ author=Luhmann J. G., Russell C. T. |editor=J. H. Shirley and R. W. Fainbridge |title=Venus: Magnetic Field and Magnetosphere |work=Encyclopedia of Planetary Sciences |publisher=Chapman and Hall, New York|year=1997 |url=http://www-spc.igpp.ucla.edu/personnel/russell/papers/venus_mag/ |access-date=2009-06-28|isbn=978-1-4020-4520-2
]==] }, {
[==[ author=Feldman, M. S.; Ferrara, L. A.; Havenstein, P. L.; Volonte, J. E.; Whipple, P. H. |title=Manned Venus Flyby, February 1, 1967 |publisher=Bellcomm, Inc |url=http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19790072165_1979072165.pdf |format=PDF|year=1967
]==] }, {
[==[ last=Rose |first=Herbert Jennings |author-link=H.J. Rose |title=A Handbook of Greek Mythology |edition=1st |year=1959 |publisher=E.P. Dutton & Co. |location=New York |language= |isbn=0-525-47041-7 |pages=173
]==] }, {
[==[ url=http://www.ethnologue.com/show_country.asp?name=AR|title=Languages of Argentina|work=Ethnologue: Languages of the World|edition=16th|editor=Lewis, M. Paul|publisher=SIL International|place=Dallas|year=2009
]==] }, {
[==[ editor=Jean Chrétien Ferdinand Hoefer |contribution=Labarraque, Antoine-Germain |title=Nouvelle biographie universelle |volume=28 |pages=323–324 |ol=24229911M
]==] }, {
[==[ last=Crepeau |first=Bob |title=Niels Bohr: The Atomic Model |journal=Great Scientific Minds |publisher=Great Neck Publishing |date=2006-01-01 |isbn=1-4298-0723-7
]==] }, {
[==[ last=Holderness |first=Mary |title=Journey from Riga to the Crimea, with some account of the manners and customs of the colonists of new Russia. |year=1823 |publisher=Sherwood, Jones and co. |location=London |oclc=5073195 |page=316 |lccn=04024846
]==] }, {
[==[ author=Herbst, T. M.; Rix, H.-W.|year=1999 |editor=Guenther, Eike; Stecklum, Bringfried; Klose, Sylvio|title=Star Formation and Extrasolar Planet Studies with Near-Infrared Interferometry on the LBT |book-title=Optical and Infrared Spectroscopy of Circumstellar Matter, ASP Conference Series, Vol. 188. |isbn=1-58381-014-5|pages=341–350 |bibcode=1999ASPC..188..341H |publisher=Astronomical Society of the Pacific |location=San Francisco, Calif.
]==] }, {
[==[ author = Marius Turda| title = The idea of national superiority in Central Europe, 1880-1918| year = 2004| publisher = Edwin Mellen Press| isbn = 978-0-7734-6180-2 ]==] }, {
[==[ author=Bhagavan NV|title=Medical Biochemistry |publisher=Harcourt/Academic Press |location=San Diego |year=2002 |isbn=0-12-095440-0|url=http://books.google.com/?id=vT9YttFTPi0C&printsec=frontcover]==] }, {
[==[ author=Edgar Thorpe|title=The Pearson CSAT Manual 2012|url=http://books.google.com/books?id=1cruroSVFoUC&pg=RA3-PA38|access-date=18 November 2012|year=2012|publisher=Pearson Education India|isbn=978-81-317-6734-4|page=3]==] }, {
[==[ author=Iyengar PTS |year=2001 |title=History Of The Tamils: From the Earliest Times to 600 A.D. |publisher=Asian Educational Services |isbn=81-206-0145-9 |url=http://books.google.com/books?id=ERq-OCn2cloC |pages=192–195 |access-date=29 December 2008 ]==] }, {
[==[ author=Motilal (UK) Books of India|title=Tourist Guide Kerala|url=http://books.google.com/books?id=ZYfRBcLdTNYC&pg=PA11|access-date=18 November 2012|date=1 February 2008|publisher=Sura Books|isbn=978-81-7478-164-2|page=11]==] }, {
[==[ author=S. N. Sadasivan|title=River Disputes in India: Kerala Rivers Under Siege|url=http://books.google.com/books?id=hhrRboi5kOcC&pg=PA223|access-date=18 November 2012|year=2003|publisher=Mittal Publications|isbn=978-81-7099-913-3|page=223]==] }, {
[==[ author1=Joseph Needham|author2=Gwei-Djen Lu|author3=Ling Wang|title=Science and civilisation in China, Volume 5, Part 7|year=1987|publisher=Cambridge University Press|isbn=978-0-521-30358-3|pages=48–50]==] }, {
[==[ editor=Mark W. Denny |editor2=Steven Dean Gaines |year=2007 |title=Encyclopedia of tidepools and rocky shores |publisher=[[دار نشر جامعة كاليفورنيا]] |isbn=978-0-520-25118-2 |author=Carlos Robles |chapter=Lobsters |pages=333–335 |url=http://books.google.co.uk/books?id=uufQnE7MzMkC&pg=PA333]==] }, {
[==[ first=Elena|last=Aprile|author2=Bolotnikov, Aleksey E. |author3=Doke, Tadayoshi |title=Noble Gas Detectors|publisher=Wiley-VCH|year=2006 |isbn=3-527-60963-6|url=http://books.google.com/?id=tsnHM8x6cHAC&pg=PT1|pages=8–9]==] }, {
[==[ first=Sidney F. |last=Ray |title=Applied Photographic Optics: Lenses and Optical Systems for Photography, Film, Video, Electronic and Digital Imaging |location= |publisher=Focal Press |year=2002 |isbn=0-240-51540-4 |page=40 |url=http://www.google.com/books?id=cuzYl4hx-B8C&printsec=frontcover#PPA40,M1 ]==] }, {
[==[ last = Koch | first = John | title = Tartessian: Celtic from the Southwest at the Dawn of History in Acta Palaeohispanica X Palaeohispanica 9 (2009)| publisher=Palaeohispanica | year = 2009 | pages = 339–351 | url = http://ifc.dpz.es/recursos/publicaciones/29/54/26koch.pdf | id = | issn = 1578-5386 | access-date =17 May 2010 ]==] }, {
[==[ last = Rhodes |first = Richard |year = 1986 |title = The Making of the Atomic Bomb |isbn = 0-671-65719-4 |pages = 659–660 |publisher = Simon & Schuster |location = New York]==] }, {
[==[ last = Watt | first = William Montgomery |author-link = William Montgomery Watt| title = [[محمد في مكة (كتاب)|Muhammad at Mecca]]| publisher=Oxford University Press | year = 1953 | id =]==] }, {
[==[ last=Cooper |first=J.C. |title=Symbolic and Mythological Animals |pages=25–26 |year=1992 |publisher=Aquarian Press |location=London |isbn=1-85538-118-4]==] }, {
[==[ last=Finnegan |first=Dana G. |author2 = Emily B. McNally |title=Counseling Lesbian, Gay, Bisexual, and Transgender Substance Abusers: Dual Identities |publisher=Haworth Press |date=2002|isbn= 1-56023-925-5 |url =http://books.google.com/books?id=I32nHF_gaTsC ]==] }, {
[==[ title=[[علامة حذف|Dots...]] |author=Doe, Dotty D. | publisher=[[ماكجرو هيل التعليم|Dot Corp.]] |series=Dot Books Etc. |pages=23 ''[[ff.]]'' |id=Std. ]==] }, {
[==[ last=Hume |first=David |author-link=David Hume |title=[[s:An Enquiry Concerning Human Understanding|An Enquiry Concerning Human Understanding]] |year=1748 |location=London]==] }, {
[==[ last=Köse|first=Yavuz|editor-last=Atabaki|editor-first=Touraj|editor2-last=Brockett|editor2-first=Gavin|chapter=Vertical Bazaars of Modernity: Western Department Stores and Their Staff in Istanbul (1889–1921)|title=Ottoman and Republican Turkish Labour History|publisher=Cambridge University Press|location=Cambridge, Eng.|year=2009|isbn=978-0-521-12805-6|pages=91–114]==] }, {
[==[ last=Roebuck|first=Carl|title=Ionian Trade and Colonization|year=1959|series=Monographs on Archaeology and Fine Arts|publisher=Archaeological Institute of America|location=New York|isbn=978-0-89005-528-1]==] }, {
[==[ last=Wiberg|first= Egon|author2= Wiberg, Nils |author3=Holleman, Arnold Frederick |title=Inorganic Chemistry |publisher=Academic Press|year=2001|isbn=0-12-352651-5]==] }, {
[==[ last1=Masters|first1=Bruce Alan|last2=Ágoston|first2=Gábor|year=2009|title=Encyclopedia of the Ottoman Empire|publisher=Infobase Publishing|location=New York|isbn=978-1-4381-1025-7]==] }, {
[==[ url=http://books.google.ca/books?id=LjzZ_rVv_2MC&pg=PA30 |title=Villes et organisation de l'espace en Afrique |pages=30–31 |first1=Jérôme |last1=Aloko-N'Guessan |first2=Amadou |last2=Diallo |first3=Kokou Henri |last3=Motcho |publisher=KARTHALA Editions |year=2010 |ISBN=2-8111-0339-2]==] }, {
[==[ title = Statics: Analysis and Design of Systems in Equilibrium | last = Sheppard and Tongue | publisher = Wiley and Sons | year = 2005 | page = 618 | quote = In general, for given contacting surfaces, ''μ''<sub>k</sub> < ''μ''<sub>s</sub> | isbn = 0-471-37299-4]==] }, {
[==[ title=A Concise History of Modern India |first1=Barbara D. |last1=Metcalf |first2=Thomas R. |last2=Metcalf |author-link1=Barbara D. Metcalf |author-link2=Thomas R. Metcalf |edition=Second |location=Cambridge |publisher=Cambridge University Press |year=2006 |pages=20–21 |isbn=978-0-521-86362-9]==] }, {
[==[ title=Geochemical processes in soil and groundwater: measurement—modelling—upscaling |first1=Horst D. |last1=Schulz |first2=Astrid |last2=Hadeler |author3=Deutsche Forschungsgemeinschaft |publisher=Wiley-VCH |year=2003 |isbn=3-527-27766-8 |page=67 |url=http://books.google.com/books?id=Fo1PjKW9GpUC]==] }, {
[==[ title=Normans: The History of a Dynasty|last=Crouch|first=David|year=2006|publisher=Hambledon Continuum|isbn=978-1-85285-595-6Z]==] }, {
[==[ title=Southeastern Ceremonial Complex : Chronology, Content, Context|editor=King, Adam|author1=Kelly, John E.|author2=Brown, James A.|author3=Hamlin, Jenn M.|author4=Kelly, Lucretia S.|author5=Kozuch, Laura|author6=Parker, Kathryn|author7=Van Nest, Julieann|chapter=Mound 34 : The Context for the Early Evidence of the Southeastern Ceremonial Complex at Cahokia|pages=57–87|isbn=978-0-8173-5409-1|publisher=University of Alabama Press]==] }, {
[==[ url = http://books.google.ca/books?id=0M4Pl_VCExgC | title = Forgotten Wars: Freedom and Revolution in Southeast Asia | isbn = 978-0-674-02153-2 | last1 = Bayly | first1 = Christopher Alan | last2 = Harper | first2 = Timothy Norman | year = 2007 | location = Cambridge | publisher = Belknap Press ]==] }, {
[==[ url = http://books.google.de/books?id=iX194mHFAcYC&pg=PA11 | page = 11 | title = The Correspondence of Michael Faraday | isbn = 978-0-86341-251-6 | author1 = Faraday, Michael | author2 = James, Frank A. J. L | year = 1999]==] }, {
[==[ url=http://books.google.com/?id=COcVgAtqeKkC&pg=PA473|page=473|title=Handbook of semiconductor silicon technology|first1=William C.|last1=O'Mara|first2=Robert B.|last2 =Herring| first3=Lee Philip|last3=Hunt|publisher=William Andrew|year=1990|isbn=978-0-8155-1237-0]==] }, {
[==[ last=Sedgwick |first=John |title=Popular Filmgoing In 1930s Britain: A Choice of Pleasures |publisher=[[University of Exeter Press]] |year=2000 |isbn=9780859896603 |pages=[http://books.google.com/books?id=YsUfc8Ijb-wC&pg=PA146 146]–148 ]==] }, {
[==[ chapter=Naturalism and Physicalism | last=Fales | postscript=, | first=Evan ]==] }, {
[==[ trans-title=My Book in English | last=Pan | location=Neverland | date=1965 | first=Peter | publisher=Foreign Books
|no-tracking = true ]==] }, {
[==[ trans-title=My Book in English | last=Pan | location=Neverland | date=1965 | first=Peter | publisher=Foreign Books | url = http://www.foo.com/
|no-tracking = true ]==] }, {
[==[ first5=FifthFirst | last1=FirstLast | last3=ThirdLast | last2=SecondLast | first2=SecondFirst | first4=FourthFirst | author-mask=with | last4=FourthLast | first1=FirstFirst | title=Title | last5=FifthLast | first3=ThirdFirst ]==] }
}, {nowiki=false, templatestyles=true})
end
function p:test_web()
self:preprocess_equals_preprocess_many('{{cite web/new|', '}}', '{{استشهاد بويب|', '}}', {
{
[==[
url = URL
|title = TITLE
|last1 = LAST1
|first1 = FIRST1
|author-link1 = author-link1
|last2 = LAST2
|first2 = FIRST2
|author-link2 = author-link2
|date = DATE
|year = YEAR
|editor-last = EDITOR-LAST
|editor-first = EDITOR-FIRST
|editor = EDITOR
|editor-link = EDITOR-LINK
|editor1-last = EDITOR1-LAST
|editor1-first= EDITOR1-FIRST
|editor1-link = EDITOR1-LINK
|editor2-last = EDITOR2-LAST
|editor2-first= EDITOR2-FIRST
|editor2-link = EDITOR2-LINK
|work = WORK
|series = SERIES
|publisher = PUBLISHER
|location = LOCATION
|page = PAGE
|pages = PAGES
|at = AT
|language = LANGUAGE
|trans-title = TRANS-TITLE
|type = TYPE
|format = FORMAT
|arxiv = ARXIV
|asin = ASIN
|bibcode = BIBCODE
|doi = 10.DOI
|doi-broken-date = 10 June 2015
|isbn = ISBN
|issn = ISSN
|jfm = JFM
|jstor = JSTOR
|lccn = LCCN
|mr = MR
|oclc = OCLC
|ol = OL
|osti = OSTI
|pmc = PMC
|pmid = PMID
|rfc = RFC
|ssrn = SSRN
|zbl = ZBL
|id = ID
|archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
|archive-date = archive-date
|url-status = URLSTATUS
|access-date = access-date
|quote = QUOTE
|ref = REF
|postscript = POSTSCRIPT
|no-tracking = true
]==] }, {
[==[ url= http://www.indec.mecon.ar/nuevaweb/cuadros/2/proyecciones_provinciales_vol31.pdf |title= Proyecciones provinciales de población por sexo y grupos de edad 2001–2015 |work=Gustavo Pérez |format= PDF |publisher=[[INDEC]] |page= 16 |language= español
]==] }, {
[==[ url=http://www.gamesbids.com/eng/index.php?news=1177787226 |title= Delhi To Bid For 2020 Summer Games|access-date=5 August 2007 |date=28 April 2007 |work= gamesbids.com|publisher= Menscerto Inc.
]==] }, {
[==[ author=Staff|year=2007 |url=http://www.infoplease.com/ce6/sci/A0852881.html |title=Xenon|work=Columbia Electronic Encyclopedia |edition=6th|publisher=Columbia University Press |access-date=2007-10-23
]==] }, {
[==[ url=http://shook.pragmatism.org/skepticismaboutthesupernatural.pdf | title=Skepticism about the Supernatural | author=Shook, John R. | access-date=2012-10-02
]==] }, {
[==[ title=Bintang Mahaputera Adipurna |language=Indonesian |url=http://www.setneg.go.id/index.php?option=com_tandajasa&Itemid=43&cat=2&id=6 |work=Awards of the Republic of Indonesia |publisher=Indonesian State Secretariat |access-date=17 May 2012
]==] }, {
[==[ url=http://www.fs.fed.us/r9/publications/success_story_updates/2003-05.pdf |format=PDF|title=Success Stories |access-date=2008-04-20 |author=US Forest Service |date=May 2003 |chapter=Mules Key in Accomplishing Trail Work |publisher=US Department of Agriculture |page=4
]==] }, {
[==[ url=http://www.ommbid.com/ |title= Galactosemia |chapter=72 |author=Fridovich-Keil JL, Walter JH |format= |work=The Online Metabolic and Molecular Bases of Inherited Disease |access-date=
]==] }, {
[==[ author=Vijverberg et al. | title=Similar mode of action of pyrethroids and DDT on sodium channel gating in myelinated nerves | url=http://www.nature.com/nature/journal/v295/n5850/abs/295601a0.html | journal=Nature | volume=42 | issue=295 | year=1982 | access-date=2012-04-28
]==] }, {
[==[ url= http://www.ign.gob.ar/AreaProfesional/Geografia/DatosArgentina|title= Datos de la República Argentina|language = Spanish|trans-title = Data of the Argentine Republic|author= Rubén Albanese|year= 2009|publisher= Instituto Geográfico Nacional
]==] }, {
[==[ url=http://www.cornellpress.cornell.edu/book/?GCOI=80140100965480|author=Bamber, G.J., Gittell, J.H., Kochan, T.A. & von Nordenflytch, A. |year=2009 |title=Up in the Air: How Airlines Can Improve Performance by Engaging their Employees|publisher=Cornell University Press, Ithaca |chapter=Chapter 5
]==] }, {
[==[ access-date=2007-07-21|url=http://www.roman-emperors.org/assobd.htm#t-inx|title=De Imperatoribus Romanis|work=An Online Encyclopedia of Roman Emperors|quote= Battle of Sarmizegetusa (Sarmizegetuza), A.D. 105. During Trajan's reign one of the most important Roman successes was the victory over the Dacians. The first important confrontation between the Romans and [[داقية|the Dacians]] had taken place in the year 87 and was initiated by Domitian. The [[قائد برايتوري]] Cornelius Fuscus led five or six legions across the Danube on a bridge of ships and advanced towards [[بانات]] (in [[رومانيا]]). The Romans were surprised by a Dacian attack at Tapae (near the village of [[Bucova]], in Romania). [[Legion V Alaude]] was crushed and Cornelius Fuscus was killed. The victorious [[داقية]]n general was originally known as [[ديسيبالوس]] (see Manea, p.109), but after this victory he was called [[ديسيبالوس]] (the brave one). ]==] }, {
[==[ author = Fermilab | year = 2006 | title = Jobs at Fermilab: Employer Awards | url = http://lss.fnal.gov/employ/employer_awards.html | access-date = 2006-01-06 |archive-url = http://web.archive.org/web/20070110184255/http://lss.fnal.gov/employ/employer_awards.html |archive-date = January 10, 2007]==] }, {
[==[ author=Posted 8 April 2000 by admin |url=http://www.foodfirst.org/media/opeds/2000/4-greenrev.html |title=Food First/Institute for Food and Development Policy |publisher=Foodfirst.org |date=8 April 2000 |access-date=25 August 2010]==] }, {
[==[ first=Ray P.|last=Norris|pages=1–4 |title=Searching for the Astronomy of Aboriginal Australians |work=Conference Proceedings | year=2004 |publisher=Australia Telescope National Facility | url=http://www.atnf.csiro.au/research/AboriginalAstronomy/literature/Norris2007b.pdf |format=PDF | access-date=2009-05-16]==] }, {
[==[ title =The National Revolution, 1945–50 | work =Country Studies, Indonesia | publisher =U.S. Library of Congress | date = | url =http://countrystudies.us/indonesia/16.htm | doi = | access-date = ]==] }, {
[==[ last= Smith |first= Joseph Jr |author-link= Joseph Smith Jr |title= Pearl Of Great Price |url= http://lds.org/library/display/0,4945,106-1-2-1,FF.html |postscript= <!-- Bot inserted parameter. Either remove it; or change its value to "." for the cite to end in a ".", as necessary. -->]==] }, {
[==[ last=Cooler | first=Richard M. | title=The Art and Culture of Burma | year=2002 | url=http://www.seasite.niu.edu/burmese/cooler/BurmaArt_TOC.htm | publisher=Northern Illinois University | location=DeKalb ]==] }, {
[==[ last=Food|first=BBC|title=Tapenade | url=http://www.bbc.co.uk/food/tapenade | work=BBC Food | publisher=British Broadcasting Corporation | access-date=4 July 2011]==] }, {
[==[ last=Nave| first=C. R.|title=Deuterium-Tritium Fusion| work=HyperPhysics| publisher=Georgia State University| year=2006| url=http://hyperphysics.phy-astr.gsu.edu/Hbase/nucene/fusion.html| access-date=2008-03-08]==] }, {
[==[ last=Stern|first=David P.|date=2005-02-13| url=http://www-spof.gsfc.nasa.gov/stargaze/Q7.htm| title=Wave Mechanics| publisher=NASA Goddard Space Flight Center| access-date=2008-04-16]==] }, {
[==[ publisher=[http://www.metalfromfinland.com/ MetalFromFinland.com] | title=Nightwish's 'Amaranth' Single Available As Flower-Fragrance-Shaped Picture Disc | url=http://www.metalfromfinland.com/news/2010-01-29_11:19/nightwishs_amaranth_single_available_as_flowerfragranceshaped_picture_disc | date= 2010-01-29 | access-date=2010-01-13]==] }, {
[==[ title = How Wildfires Work|author= Bonsor, Kevin| publisher = [[هاو ستف ووركس]]| url = http://science.howstuffworks.com/wildfire.htm|access-date=2007-07-23| archive-url= http://web.archive.org/web/20070714174036/http://science.howstuffworks.com/wildfire.htm| archive-date= 14 July 2007 <!--DASHBot-->| url-status=live]==] }, {
[==[ title = The real Chubby Checker, 71, was born with the name Ernest Evans. He trademarked his stage name in 1997|url = http://www.guardian.co.uk/music/2013/feb/14/chubby-checker-sues-hewlett-packard|access-date = February 14, 2013]==] }, {
[==[ title=A Long Lipid, a Long Name: Docosahexaenoic Acid|url=http://www.samuelfurse.com/2011/12/a-long-name-a-long-lipid-docosahexaenoic-acid/|work=The Lipid Chronicles|access-date=2011-12-31]==] }, {
[==[ title=California Symbols |publisher=California State Capitol Museum |url=http://www.capitolmuseum.ca.gov/VirtualTour.aspx?content1=1278&Content2=1374&Content3=1294 |access-date=2007-09-14| archive-url= http://web.archive.org/web/20071012123245/http://capitolmuseum.ca.gov/VirtualTour.aspx?content1=1278&Content2=1374&Content3=1294| archive-date= 12 October 2007 <!--DASHBot-->| url-status=live]==] }, {
[==[ title=Maternal and Neonatal Tetanus Elimination by 2005 | date = November 2000 | publisher = UNICEF | url=http://www.unicef.org/immunization/files/MNTE_strategy_paper.pdf | access-date=2007-01-26 ]==] }, {
[==[ title=Population Estimates|url=http://www.census.gov/popest/data/cities/totals/2011/files/SUB-EST2011-IP.csv|publisher={{مسار|1=http://en.wikipedia.org/wiki/United_States_Census_Bureau|2=United States Census Bureau}} ]==] }, {
[==[ title=The Structure of a Membrane|url=http://www.samuelfurse.com/2011/11/the-structure-of-a-membrane/|work=The Lipid Chronicles|access-date=2011-12-31]==] }, {
[==[ title=Unit of thermodynamic temperature (kelvin) |work=SI Brochure, 8th edition |pages=Section 2.1.1.5 |url=http://www1.bipm.org/en/si/si_brochure/chapter2/2-1/2-1-1/kelvin.html |publisher=Bureau International des Poids et Mesures |year=1967 |access-date=2008-02-06]==] }, {
[==[ url = http://pogoda.ru.net/climate/33345.htm | title = Weather and Climate - The Climate of Kiev | publisher = Weather and Climate (Погода и климат) | access-date = March 1, 2013 | language = Russian]==] }, {
[==[ url = http://www.lanl.gov/history/people/R_Schreiber.shtml |title = Raemer Schreiber |work = Staff Biographies |publisher = Los Alamos National Laboratory |location = Los Alamos (NM) |author = LANL contributors |access-date = November 16, 2008 ]==] }, {
[==[ url= http://berkleycenter.georgetown.edu/resources/countries/argentina |title=Argentina |publisher=[[Berkley Center for Religion, Peace, and World Affairs]]]==] }, {
[==[ url=http://213.253.134.43/oecd/pdfs/browseit/0406041E.PDF|format=PDF|title=Competitive Cities in the Global Economy|author=OECD|access-date=30 April 2009|author-link=Organisation for Economic Co-operation and Development]==] }, {
[==[ url=http://factfinder2.census.gov/bkmk/table/1.0/en/ACS/11_1YR/DP03/1600000US1714000| title=Selected Economic Characteristics: 2011 American Community Survey 1-Year Estimates (DP03): Chicago city, Illinois| publisher=U.S. Census Bureau, American Factfinder| access-date=February 8, 2013]==] }, {
[==[ url=http://liftoff.msfc.nasa.gov/academy/astronauts/training.html | archive-url=http://web.archive.org/web/20070910124735/http://liftoff.msfc.nasa.gov/academy/astronauts/training.html | archive-date=2007-09-10 | title=Selection and Training of Astronauts|access-date=October 4, 2007 |publisher=NASA|year=1995|author=NASA]==] }, {
[==[ url=http://quod.lib.umich.edu/cgi/t/text/text-idx?c=jii;view=text;rgn=main;idno=4750978.0016.105 |title =Environmental and Structural Inequalities in Greater Accra |access-date =22 July 2010|publisher =The Journal of the International Institute]==] }, {
[==[ url=http://users.rcn.com/jkimball.ma.ultranet/BiologyPages/T/Telomeres.html |author=John W. Kimball |date=November 25, 2008 |title=Telomeres]==] }, {
[==[ url=http://worldaerodata.com/wad.cgi?id=GH02526&sch=DGAA | title=Kotoka International Airport|publisher=World Aero Data|year=2009|access-date=29 October 2009]==] }, {
[==[ url=http://www.bbc.co.uk/wales/music/sites/big_weekend/ | title=BBC Wales – Big Weekend|access-date=23 February 2008]==] }, {
[==[ url=http://www.chem.umn.edu/class/2301/barany03f/fun/beautiful1.pdf |title=Chemistry at its Most Beautiful |access-date=2007-09-13|last=Freemantel|first=Michael |date=August 25, 2003|format=PDF |publisher=Chemical & Engineering News]==] }, {
[==[ url=http://www.dublincity.ie/RecreationandCulture/DublinCityParks/Pages/Facts%20About%20Our%20Parks.aspx |title=Dublin City Council – ''Facts About Our Parks'' |publisher=Dublincity.ie |date= |access-date=14 January 2012]==] }, {
[==[ url=http://www.fws.gov/news/NewsReleases/showNews.cfm?newsId=9191BAAD-F8E8-0097-B3670BDF3849EBF2|title=Fish and Wildlife Service Awards $800,000 in Grants to Explore Cause, Control of White-Nose Syndrome in Bats|date=2009-10-26|publisher=[[المؤسسة الأمريكية للأسماك والحياة البرية]]|access-date=2009-10-30]==] }, {
[==[ url=http://www.guinnessworldrecords.com/content_pages/record.asp?recordid=51451 |publisher=[[موسوعة غينيس للأرقام القياسية]] |title=Heaviest marine crustacean |access-date=August 3, 2006 |archive-url=http://web.archive.org/web/20060528192250/ |archive-date=May 28, 2006]==] }, {
[==[ url=http://www.hurriyetdailynews.com/default.aspx?pageid=438&n=new-card-alternative-to-akbil-raises-questions-2010-07-16|last=Songün|first=Sevim|work=Hürriyet Daily News|title=Istanbul Commuters Skeptical of Transit Change|date=16 July 2010|access-date=5 July 2012]==] }, {
[==[ url=http://www.lboro.ac.uk/gawc/world2008t.html |title=The World According to GaWC 2008 |work=Globalization and World Cities Research Network|publisher=GaWC Loughborough University |access-date=April 29, 2009]==] }, {
[==[ url=http://www.medicinenet.com/yaws/page4.htm|title=Yaws|access-date=5 August 2012|authors=Davis, Charles Patrick; Stoppler, Melissa Conrad|publisher=MedicineNet.com]==] }, {
[==[ url=http://www.autoblog.com/2010/03/29/hennessey-venom-gt-a-600k-mid-engine-cobra-for-the-21st-centur/ |title=Hennessey Venom GT: A $600k mid-engine Cobra for the 21st Century |access-date=2010-03-29 |last=Lavrinc |first=Damon |date=2010-03-29 |work=[[Autoblog.com|Autoblog]] |publisher=[[Weblogs, Inc.]] ]==] }
}, {nowiki=false, templatestyles=true})
end
function p:test_citation()
self:preprocess_equals_preprocess_many('{{citation/new|', '}}', '{{استشهاد|', '}}', { {
[==[
author = AUTHOR
| last = LAST
| first = FIRST
| author2 = AUTHOR2
| last2 = LAST2
| first2 = FIRST2
| author-link = AUTHOR-LINK
| author2-link = AUTHOR-LINK2
| author-mask = AUTHOR-MASK
| display-authors = et al
| editor = EDITOR
| editor-last = EDITOR-LAST
| editor-first = EDITOR-FIRST
| editor2 = EDITOR2
| editor2-last = EDITOR2-LAST
| editor2-first = EDITOR2-FIRST
| editor-link = EDITOR-LINK
| editor2-link = EDITOR2-LINK
| others = OTHERS
| publication-date = PUBLICATION-DATE
| date = DATE
| year = YEAR
| origyear = ORIGYEAR
| title = TITLE
| chapter = CHAPTER
| chapter-url = https://en.wikipedia.org/Main_Page#top
| contribution = CONTRIBUTION
| contribution-url = CONTRIBUTON-URL
| type = TYPE
| journal = JOURNAL
| periodical = PERIODICAL
| newspaper = NEWSPAPER
| magazine = MAGAZINE
| work = WORK
| edition = EDITION
| series = SERIES
| volume = VOLUME
| issue = ISSUE
| publisher = PUBLISHER
| publication-place = PUBLICATION-PLACE
| place = PLACE
| language = LANGUAGE
| page = PAGE
| pages = PAGES
| nopp = NOPP
| at = AT
| id = ID
| isbn = ISBN
| issn = ISSN
| oclc = OCLC
| pmid = PMID
| pmc = PMC
| bibcode = BIBCODE
| doi = 10.DOI
| doi-inactive-date = 10 June 2015
| url = https://en.wikipedia.org/Main_Page
| access-date = access-date
| format = FORMAT
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = January 1, 2010
| quote = QUOTE
| lay-url = https://en.wikipedia.org/Wikipedia
| lay-source = LAYSOURCE
| lay-date = 2010-01-01
| postscript =
| ref = REF
| no-tracking = true
]==] }, {
[==[ author=Anonymous|editor=Daniel Coit Gilman, Harry Thurston Peck, Frank Moore Colby |year=1904|title=The New International Encyclopædia |publisher=Dodd, Mead and Company|page=906
]==] }, {
[==[ pages=1328–1334|title=Linus Pauling: Selected Scientific Papers|volume=2|editor=Pauling, Linus; Kamb, Barclay |place=River Edge, New Jersey|publisher=World Scientific |year=2001|isbn=981-02-2940-2|url=http://books.google.com/?id=2QduA19d_X8C&pg=PA1329
]==] }, {
[==[ title=Soedirman: Bapak Tentara Indonesia |trans-title=Soedirman: Father of the Indonesian Military |language=Indonesian |last=Adi |first=A. Kresna |publisher=Mata Padi Pressindo |isbn=978-602-95337-1-2 |location=Yogyakarta |year=2011
]==] }, {
[==[ url=http://books.google.ca/books?id=WrkzPcxBnLMC |title=Takhta untuk Rakyat: Celah-celah Kehidupan Sultan Hamengku Buwono IX |trans-title=Serving the People: The Life Story of Sultan Hamengku Buwono IX |language=Indonesian |isbn=978-979-22-6767-9 |editor1-first=Mohamad |editor1-last=Roem |editor1-link=Mohamad Roem |editor2-first=Mochtar |editor2-last=Lubis |editor2-link=Mochtar Lubis |editor3-first=Kustiniyati |editor3-last=Mochtar |editor4-first=Maimoen |editor4-last=S. |last=Nasution |first=A. H. |author-link=Abdul Haris Nasution |publisher=Gramedia Pustaka Utama |location=Jakarta |year=2011 |origyear=1982 |edition=Revised
| no-tracking=true]==] }, {
[==[ author=Luhmann J. G., Russell C. T. |editor=J. H. Shirley and R. W. Fainbridge |title=Venus: Magnetic Field and Magnetosphere |work=Encyclopedia of Planetary Sciences |publisher=Chapman and Hall, New York|year=1997 |url=http://www-spc.igpp.ucla.edu/personnel/russell/papers/venus_mag/ |access-date=2009-06-28|isbn=978-1-4020-4520-2
]==] }, {
[==[ author=Feldman, M. S.; Ferrara, L. A.; Havenstein, P. L.; Volonte, J. E.; Whipple, P. H. |title=Manned Venus Flyby, February 1, 1967 |publisher=Bellcomm, Inc |url=http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19790072165_1979072165.pdf |format=PDF|year=1967
]==] }, {
[==[ last=Rose |first=Herbert Jennings |author-link=H.J. Rose |title=A Handbook of Greek Mythology |edition=1st |year=1959 |publisher=E.P. Dutton & Co. |location=New York |language= |isbn=0-525-47041-7 |pages=173
]==] }, {
[==[ url=http://www.ethnologue.com/show_country.asp?name=AR|title=Languages of Argentina|work=Ethnologue: Languages of the World|edition=16th|editor=Lewis, M. Paul|publisher=SIL International|place=Dallas|year=2009
]==] }, {
[==[ editor=Jean Chrétien Ferdinand Hoefer |contribution=Labarraque, Antoine-Germain |title=Nouvelle biographie universelle |volume=28 |pages=323–324 |ol=24229911M
]==] }, {
[==[ author=Herbst, T. M.; Rix, H.-W.|year=1999 |editor=Guenther, Eike; Stecklum, Bringfried; Klose, Sylvio|title=Star Formation and Extrasolar Planet Studies with Near-Infrared Interferometry on the LBT |book-title=Optical and Infrared Spectroscopy of Circumstellar Matter, ASP Conference Series, Vol. 188. |isbn=1-58381-014-5|pages=341–350 |bibcode=1999ASPC..188..341H |publisher=Astronomical Society of the Pacific |location=San Francisco, Calif.
]==] }, {
[==[ date=4 June 2007|title=The List of Wetlands of International Importance | publisher=The Secretariat of the Convention on Wetlands | page=18 | url=http://www.ramsar.org/sitelist.pdf | access-date=20 June 2007 | format=PDF | archive-url=http://web.archive.org/web/20070621011113/http://www.ramsar.org/sitelist.pdf | archive-date=21 June 2007
]==] }, {
[==[ last=Schmidt|first=Hans-Peter|chapter=Mithra i: Mithra in Old Indian and Mithra in Old Iranian|year=2006|title=Encyclopædia Iranica|volume=OT 10|location=New York|publisher=iranica.com|url=http://www.iranicaonline.org/articles/mithra-i|format=
]==] }, {
[==[ last1=Canard |first1=M. |editor1-first=P. |editor1-last=Bearman |editor2-first=Th. |editor2-last=Bianquis |editor3-first=C.E. |editor3-last=Bosworth |editor4-first=E. |editor4-last=van Donzel |editor5-first=W.P. |editor5-last=Heinrichs |editor3-link=Clifford Edmund Bosworth |title=Encyclopaedia of Islam, Second Edition |year=2011 |publisher=Brill Online |location=Leiden |chapter=al-ḎJazīra, Ḏjazīrat Aḳūr or Iḳlīm Aḳūr |oclc=624382576
]==] }, {
[==[ last=Block|first=Steven M.|title=The growing threat of biological weapons|url=http://www.americanscientist.org/issues/feature/the-growing-threat-of-biological-weapons|access-date=2009-05-22|volume=89:1|year=2001|publisher=American Scientist|doi=10.1511/2001.1.28|journal=American Scientist|page=28]==] }, {
[==[ year=2011|title=Human Development Report 2011|chapter=Table 1: Human Development Index and its Components|publisher=[[الأمم المتحدة]]|chapter-url=http://hdr.undp.org/en/media/HDR_2011_EN_Table1.pdf|format=PDF|ref=]==] }, {
[==[ author=Bhagavan NV|title=Medical Biochemistry |publisher=Harcourt/Academic Press |location=San Diego |year=2002 |isbn=0-12-095440-0|url=http://books.google.com/?id=vT9YttFTPi0C&printsec=frontcover]==] }, {
[==[ author=Motilal (UK) Books of India|title=Tourist Guide Kerala|url=http://books.google.com/books?id=ZYfRBcLdTNYC&pg=PA11|access-date=18 November 2012|date=1 February 2008|publisher=Sura Books|isbn=978-81-7478-164-2|page=11]==] }, {
[==[ author1=Joseph Needham|author2=Gwei-Djen Lu|author3=Ling Wang|title=Science and civilisation in China, Volume 5, Part 7|year=1987|publisher=Cambridge University Press|isbn=978-0-521-30358-3|pages=48–50]==] }, {
[==[ chapter=Naturalism and Physicalism | last=Fales | postscript=, | first=Evan ]==] }, {
[==[ date=5 October 2009|title=India, Russia Review Defence Ties|publisher=[[الصحيفة الهندوسية]]|url=http://www.thehindu.com/news/national/article2514142.ece|access-date=8 October 2011]==] }, {
[==[ first=Elena|last=Aprile|author2=Bolotnikov, Aleksey E. |author3=Doke, Tadayoshi |title=Noble Gas Detectors|publisher=Wiley-VCH|year=2006 |isbn=3-527-60963-6|url=http://books.google.com/?id=tsnHM8x6cHAC&pg=PT1|pages=8–9]==] }, {
[==[ first=Maurice | last=Loir | title=L'escadre de l'amiral Courbet | location=Paris | publisher=Berger-Levrault | year=1886 | postscript=. ]==] }, {
[==[ last = Bennett | first = Ralph | title = Behind the Battle: Intelligence in the War with Germany | place = London | publisher = Random House | origyear = 1994 | year = 1999 | edition = Pimlico: New and Enlarged | isbn = 0-7126-6521-8 ]==] }, {
[==[ last = Hunt | first = David | author-link = David Hunt (diplomat) | title = The raid on Coventry | newspaper = The Times | pages = 11 | date = 28 August 1976 ]==] }, {
[==[ last = Rhodes |first = Richard |year = 1986 |title = The Making of the Atomic Bomb |isbn = 0-671-65719-4 |pages = 659–660 |publisher = Simon & Schuster |location = New York]==] }, {
[==[ last = Watt | first = William Montgomery |author-link = William Montgomery Watt| title = [[محمد في مكة (كتاب)|Muhammad at Mecca]]| publisher=Oxford University Press | year = 1953 | id =]==] }, {
[==[ last=Cooper |first=J.C. |title=Symbolic and Mythological Animals |pages=25–26 |year=1992 |publisher=Aquarian Press |location=London |isbn=1-85538-118-4]==] }, {
[==[ last=Horton|first=Michael|author-link=Michael Horton (theologian)|title=For Calvinism|url=http://books.google.com/books?id=ezoDtwAACAAJ|access-date=17 January 2013|date=18 October 2011|publisher=Zondervan Books|isbn=978-0-310-32465-2|page=15]==] }, {
[==[ last=Jacobs|first=Bruno|chapter=Mithra|title=Iconography of Deities and Demons in the Ancient Near East|series=(Electronic Pre-Publication)|location=Leiden|publisher=U Zürich/Brill| year=2006|url=http://www.religionswissenschaft.unizh.ch/idd/prepublications/e_idd_mithra.pdf Iconography of Mithra]==] }, {
[==[ last=Malandra|first=William|year=1983|isbn=0-8166-1115-7|title=An Introduction to Ancient Iranian Religion|location=Minneapolis|publisher=University of Minnesota Press]==] }, {
[==[ last=Metzner|first =Paul|year=1998|title=Crescendo of the Virtuoso: Spectacle, Skill, and Self-Promotion in Paris during the Age of Revolution|publisher=University of California Press]==] }, {
[==[ last=Raichlen|first=S.|date=10 May 2011|title=A Tandoor Oven Brings India's Heat to the Backyard|publisher=The New York Times|url=http://www.nytimes.com/2011/05/11/dining/a-tandoor-oven-brings-indias-heat-to-the-backyard.html|access-date=14 June 2011]==] }, {
[==[ last=Sripati|first=V.|year=1998|title=Toward Fifty Years of Constitutionalism and Fundamental Rights in India: Looking Back to See Ahead (1950–2000)|journal=American University International Law Review|volume=14|issue=2|pages=413–496]==] }, {
[==[ last1=Ali|first1=J. R.|last2=Aitchison|first2=J. C.|year=2005|title=Greater India|journal=Earth-Science Reviews|volume=72|issue=3–4|pages=170–173|doi=10.1016/j.earscirev.2005.07.005]==] }, {
[==[ last1=Eitzen|first1=E.|last2=Takafuji|first2=E.|title=Military Medicine: Medical Aspects of Chemical and Biological Warfare|url=|year=1997|publisher=Office of the Surgeon General, Department of the Army|chapter=Historical Overview of Biological Warfare]==] }, {
[==[ last1=Heitzman|first1=J.|last2=Worden|first2=R. L.|date=August 1996|title=India: A Country Study|series=Area Handbook Series|publisher=[[مكتبة الكونغرس]]|place=Washington, D.C.|isbn=978-0-8444-0833-0]==] }, {
[==[ last1=Masters|first1=Bruce Alan|last2=Ágoston|first2=Gábor|year=2009|title=Encyclopedia of the Ottoman Empire|publisher=Infobase Publishing|location=New York|isbn=978-1-4381-1025-7]==] }, {
[==[ url=http://books.google.ca/books?id=LjzZ_rVv_2MC&pg=PA30 |title=Villes et organisation de l'espace en Afrique |pages=30–31 |first1=Jérôme |last1=Aloko-N'Guessan |first2=Amadou |last2=Diallo |first3=Kokou Henri |last3=Motcho |publisher=KARTHALA Editions |year=2010 |ISBN=2-8111-0339-2]==] }, {
[==[ title = Statics: Analysis and Design of Systems in Equilibrium | last = Sheppard and Tongue | publisher = Wiley and Sons | year = 2005 | page = 618 | quote = In general, for given contacting surfaces, ''μ''<sub>k</sub> < ''μ''<sub>s</sub> | isbn = 0-471-37299-4]==] }, {
[==[ title=Ancient Egyptian Rhetoric in the Old and Middle Kingdoms|author=David Hutto|journal=[[Rhetorica]]|date=Summer 2002|volume=20|issue=3|publisher=[[دار نشر جامعة كاليفورنيا]]|pages=213–233|doi=10.1525/rh.2002.20.3.213]==] }, {
[==[ title=Civilizations of ancient Iraq |last1=Foster |first1=Benjamin R. |last2=Polinger Foster |first2=Karen |year=2009 |publisher=Princeton University Press |location=Princeton |isbn=978-0-691-13722-3 ]==] }, {
[==[ title=India | publisher=[[صندوق النقد الدولي]] | url=http://www.imf.org/external/pubs/ft/weo/2011/02/weodata/weorept.aspx? | access-date=14 October 2011]==] }, {
[==[ title=New Interstellar Boundary Explorer data show heliosphere's long-theorized bow shock does not exist | date=May 10, 2012 | work=Phys.org | url=http://phys.org/news/2012-05-interstellar-boundary-explorer-heliosphere-long-theorized.html | access-date=2012-02-11 ]==] }, {
[==[ title=The European Flag|publisher=[[Europa (web portal)]]|url=http://europa.eu/abc/symbols/emblem/index_en.htm|access-date=4 August 2007]==] }, {
[==[ url = http://english.president.go.kr/tours/place_buildings/main_office.php | title = Cheong Wa Dae / The Blue House | quote = The Main Building and its two annexes are covered with a total of 150,000 traditional Korean blue roof tiles (hence, the name "Blue House" is also commonly used when referring to Cheongwadae). ]==] }, {
[==[ url=https://www.regione.sardegna.it/j/v/86?v=9&c=72&s=1&file=1997026 |title=Legge Regionale 15 ottobre 1997, n. 26 |year=1997 |publisher=Regione Sardegna |access-date=]==] }, {
[==[ title = Studies on Archaic Chinese
| last = Li | first = Fang-Kuei | author-link = Li Fang-Kuei
| others = Gilbert L. Mattos (trans.)
| journal = Monumenta Serica | volume = 31 | year = 1974–75
| pages = 219–287
| postscript = .
]==] }, { [==[
title = Studies on Archaic Chinese
| last = Li | first = Fang-Kuei | author-link = Li Fang-Kuei
| others = Gilbert L. Mattos (trans.)
| journal = Monumenta Serica | volume = 31 | year = 1974–1975
| pages = 219–287
| postscript = .
]==] } }, {nowiki=false, templatestyles=true})
end
function p:test_press()
self:preprocess_equals_preprocess_many('{{cite press release/new|', '}}', '{{استشهاد ببيان صحفي|', '}}', { {
[==[
| last = LAST
| first = FIRST
| title = TITLE
| trans-title = TRANS-TITLE
| language = LANGUAGE
| date = DATE
| publisher = PUBLISHER
| location = LOCATION
| url = https://en.wikipedia.org/Main_Page
| format = FORMAT
| access-date = access-date
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = archive-date
| url-status = URLSTATUS
| quote = QUOTE
| ref = REF
| docket = DOCKET
]==] }, {
[==[ title= Guerrero, Estado atractivo para la inversión turística |publisher= Secretaría de Turismo Estado de Guerrero |date=September 9, 2008 |url= http://www.presidencia.gob.mx/prensa/sectur/?contenido=38527 |language=Spanish |trans-title=Guerrero, an attractive state for tourism investments |access-date=June 24, 2004 ]==] }, {
[==[ title=Apple to Unveil Next Generation Software at Keynote Address on Monday, June 6 |url=http://www.apple.com/pr/library/2011/05/31wwdc.html |publisher=[[أبل]] |date=May 31, 2011 |access-date=May 31, 2011]==] }, {
[==[ title=DOE Seeks Applicants for Solicitation on the Employment Effects of a Transition to a Hydrogen Economy |work=Hydrogen Program |publisher=US Department of Energy |date=2006-03-22 |url=http://web.archive.org/web/20110719105413/http://www.hydrogen.energy.gov/news_transition.html |access-date=2008-03-16]==] }, {
[==[ title=Warner Bros. Consumer Products Flies High with DC's Superman at Licensing 2005 International; Franchise Set to Reach New Heights in 2005 Leading Up to Feature Film Release of Superman Returns in June 2006 |publisher=Warner Bros. |date= June 16, 2005 |url=http://www.findarticles.com/p/articles/mi_m0EIN/is_2005_June_16/ai_n13816862 | access-date=January 16, 2007 |quote=With a super hero that transcends all demographics" ... and ... "S-Shield, which continues to be a fashion symbol and hot trend ]==] }, {
[==[ first=ธารทิพย์|title=กรมการขนส่งทางบก ระบุเพียง 11 วันของการเริ่มโครงการ "ยกเครื่อง แท็กซี่ไทย"... |url=http://www.dlt.go.th/th/attachments/plan48-51/3320_%E0%B80%B8%88%E0%B8%88%B8%8B%E0%B8%B5%E0%B9%88%201-12[1].pdf|publisher=Public Relations Subdivision, Department of Land Transport|issue=94|date=14 June 2012|access-date=16 September 2012]==] }, {
[==[ title=WSTS Semiconductor Market Forecast World Release Date: 1 June 2004 - 6:00 UTC | work=Miyazaki, Japan, Spring Forecast Meeting 18–21 May 2004 | author=WSTS Board Of Directors | publisher=World Semiconductor Trade Statistics | url=http://www.wsts.org/press.html | archive-url=http://web.archive.org/web/20041207091926/http://www.wsts.org/press.html | archive-date=2004-12-07]==] }, {
[==[ url = http://electriclichen.com/linuxbierwanderung/va_release/release.html | archive-url=http://web.archive.org/web/20110718034114/http://electriclichen.com/linuxbierwanderung/va_release/release.html| archive-date=2011-07-18| url-status=dead |title = VA Research Linux Systems announces support for The Linux Beer Hike. | date = 1998-11-12 | location = Mountain View, California | publisher = VA Research Inc. | access-date = 2013-03-12 ]==] }, {
[==[ url=http://www.microsoft.com/presspass/bod/bod.aspx|title=Microsoft Board of Directors|work=PressPass|publisher=Microsoft |access-date=July 3, 2010 ]==] }, {
[==[ author= Staff |publisher= Michigan Economic Development Corporation |year= 2005 |url= http://www.globeinvestor.com/servlet/ArticleNews/print/PRNEWS/20050303/2005_03_03_12_0813_1322091 |title= Michigan#2 in the Nation for New Corporate Facilities and Expansions in 2004]==] }, {
[==[ date=2003-03-05 | title=Astronomers Peg Brightness of History’s Brightest Star | url=http://www.noao.edu/outreach/press/pr03/pr0304.html | publisher=[[National Optical Astronomy Observatory]] ]==] }, {
[==[ date=26 November 2010 |title=LHC experiments bring new insight into primordial universe |url=http://press.web.cern.ch/press/pressreleases/releases2010/PR23.10E.html |publisher=[[سيرن]] |access-date=2012-04-02 ]==] }, {
[==[ first=Edward | last=Tedesco | author2=Metcalfe, Leo | title=New study reveals twice as many asteroids as previously believed | publisher=European Space Agency | date=April 4, 2002 | url=http://www.spaceref.com/news/viewpr.html?pid=7925 | access-date=2008-02-21]==] }, {
[==[ publisher = Embrey, Bruce | date = May, 2006 | title = Sue Kunitomi Embrey Obituary | access-date = April 23, 2007 | no-tracking=true]==] }, {
[==[ publisher=[[مركز كارتر|The Carter Center]] |year=2004 |title=The Carter Center 2004 Indonesia Election Report |url=http://www.cartercenter.org/documents/2161.pdf |format=PDF|access-date=13 December 2006]==] }, {
[==[ publisher=BBC News |date=30 March 2010 |title=CERN LHC sees high-energy success |url=http://news.bbc.co.uk/2/hi/science/nature/8593780.stm |access-date=2010-03-30]==] }, {
[==[ publisher=FDA |date=October 6, 2006 |url=http://www.fda.gov/NewsEvents/Newsroom/PressAnnouncements/2006/ucm108759.htm |title=FDA approves the first drug to treat irritability associated with autism, Risperdal |access-date=2009-08-14]==] }, {
[==[ publisher=Mainland Affairs Council, ROC Executive Yuan |date=29 March 2005 |title=The Official Position of the Republic of China on China's Passing of the Anti-secession (Anti-Separation) Law |url=http://www.mac.gov.tw/ct.asp?xItem=68048&ctNode=5910&mp=3|quote=Section II-2: "'The Republic of China is an independent and sovereign state. Taiwan's sovereignty belongs to the 23 million people of Taiwan. Only the 23 million citizens of Taiwan may decide on the future of Taiwan.' This statement represents the greatest consensus within Taiwan's society today concerning the issues of national sovereignty and the future of Taiwan. It is also a common position shared by both the ruling and opposition parties in Taiwan. A recent opinion poll shows that more than 90% of the people of Taiwan agree with this position.]==] }, {
[==[ publisher=UANews | date=2001-11-09 | title=UA-Led Team's Ultra-High Resolution Camera Selected for 2005 Launch to Mars | url=http://uanews.org/cgi-bin/WebObjects/UANews.woa/4/wa/MainStoryDetails?ArticleID=4493 | access-date=2006-06-08]==] }, {
[==[ title = 2008/40 – Qantas Airbus Incident Media Conference | publisher=[[مكتب سلامة النقل الأسترالي]] | date = 8 October 2008 | url = http://www.atsb.gov.au/newsroom/2008/release/2008_40.aspx | access-date =8 October 2008 ]==] }, {
[==[ title = American Jewish Committee, Japanese American National Museum Issue Joint Statement About Ellis Island Exhibit Set To Open April 3 | publisher = Japanese American National Museum and American Jewish Committee | url = http://www.janm.org/press/release/52 | date = March 13, 1998 | access-date = December 30, 2007]==] }, {
[==[ title = Document – Jamaica: Amnesty International condemns homophobic violence | publisher = Amnesty International | date = 15 April 2007 | url = http://www.amnesty.org/en/library/asset/AMR38/004/2007/en/496206cb-d39d-11dd-a329-2f46302a8cc6/amr380042007en.html | access-date = 2009-03-19]==] }, {
[==[ title = Qantas Frequent Flyer — now bigger and better | publisher=Qantas | date = 1 July 2008 | url = http://www.qantas.com.au/regions/dyn/au/publicaffairs/details?ArticleID=2008/jul08/3777| access-date =1 July 2008]==] }, {
[==[ title = SIGA’s Smallpox Drug Candidate Administered to Critically Ill Human Patient | publisher = SIGA Technologies | date = 2007-03-17 | url = http://www.siga.com/press/031907.html| access-date = 2007-06-05 ]==] }, {
[==[ title = Starbucks Agrees to Hold the Hormones For Good | publisher=Food & Water Watch | date = August 24, 2007 | url = http://www.foodandwaterwatch.org/press/releases/starbucks-agrees-to-hold-the-hormones-for-good-article08242007 | archive-url = http://web.archive.org/web/20070913221949/http://www.foodandwaterwatch.org/press/releases/starbucks-agrees-to-hold-the-hormones-for-good-article08242007 | archive-date = September 13, 2007 | access-date =August 27, 2007]==] }, {
[==[ title =D'oh! Bugs Bunny Edges Out Homer Simpson | publisher =TV Guide | date =July 26, 2002 ]==] }, {
[==[ title =FANTAGRAPHICS BOOKS TO PUBLISH THE COMPLETE PEANUTS BY CHARLES M. SCHULZ | publisher =Fantagraphics | date =October 13, 2003 | url =http://www.snoopy.com/comics/peanuts/news/news_101303.html | access-date =2006-11-30 ]==] }, {
[==[ title =Indonesia Annual International Religious Freedom Report 2003 |publisher =Bureau of Democracy, Human Rights and Labor, Embassy of the United States |date =18 December 2003 |location =Jakarta, Indonesia |url =http://www.usembassyjakarta.org/press_rel/religious_report2003.html |access-date =25 April 2007 ]==] }, {
[==[ title= Qantas Group Restructures Fleet Plan|publisher= Qantas Corporate Communication|date= {{التاريخ|2012-8-23}}]==] }, {
[==[ title= Rinderpest eradicated, what's next?|url=http://www.fao.org/news/story/en/item/80894/icode/|publisher=[[منظمة الأغذية والزراعة]] (FAO)|date=28 June 2011 |access-date=30 June 2011]==] }, {
[==[ title=Carbon Capture Strategy Could Lead to Emission-Free Cars |publisher=Georgia Tech |date=2008-02-11 |url=http://www.gatech.edu/newsroom/release.html?id=1707 |access-date=2008-03-16]==] }, {
[==[ title=FAA selects the HAS as 2005 Airport of the Year|publisher=Houston Airport System|date=2006-03-24|url=http://www.fly2houston.com/0/8343/0/1906D1940/|access-date=2006-12-16]==] }, {
[==[ title=Gartner Says Worldwide PC Market Grew 13 Percent in 2007|publisher= Economic Times|date=January 16, 2010|url= http://economictimes.indiatimes.com/infotech/hardware/Worldwide-PC-shipments-jump-158-in-Q4-IDC/articleshow/5442476.cms|access-date=January 18, 2010]==] }, {
[==[ title=InBev Completes Acquisition of Anheuser-Busch |url=http://www.ab-inbev.com/documents/press_release.pdf |publisher=AB-InBev |date=18 November 2008 |access-date=21 June 2012]==] }, {
[==[ title=InBev dividend 2006: 0.72 euro per share—infobox: About InBev |quote=InBev is a publicly traded company ([[يورونكست]]: INB) based in [[لوفن]], Belgium. The company's origins date back to 1366, and today it is the leading global brewer by volume. |date=24 April 2007 |publisher=InBev |url=http://www.inbev.com/press_releases/20070424.1.e.cfm |access-date=31 May 2007]==] }, {
[==[ title=NASA Research Indicates Oxygen on Earth 2.5 Billion Years ago|url=http://www.nasa.gov/home/hqnews/2007/sep/HQ_07215_Timeline_of_Oxygen_on_Earth.html|publisher=[[ناسا]]|date=2007-09-27|access-date=2008-03-13]==] }, {
[==[ title=No More Deaths From Rinderpest|url=http://www.oie.int/for-the-media/press-releases/detail/article/no-more-deaths-from-rinderpest/|publisher=World Organisation for Animal Health|access-date=25 May 2011]==] }, {
[==[ title=Opinion on Stevia Rebaudiana plants and leaves |publisher=European Commission Scientific Committee on Food |date=17 June 1999 |url=http://www.bfr.bund.de/cm/208/stevia_rebaudiana_june_1999.pdf |format=PDF |access-date=27 January 2008]==] }, {
[==[ title=SAF Accredited and Candidate Forestry Degree Programs |publisher=Society of American Foresters |date=2008-05-19 |url=http://www.safnet.org/education/forestry_degree_programs.pdf |format=PDF |language= |access-date= |archive-url= |archive-date= |quote=The Society of American Foresters grants accreditation only to specific educational curricula that lead to a first professional degree in forestry at the bachelor's or master's level.]==] }, {
[==[ title=Scartel and HTC Launch World's First Integrated GSM/WiMAX Handset|url=http://www.htc.com/www/press.aspx?id=76204&lang=1033 |publisher=HTC Corporation |date=12 November 2008 |access-date=1 March 2011]==] }, {
[==[ title=Severe Pain Relief may be Possible with a Common Anesthetic Drug |publisher=[[Blackwell Publishing]] |date=1 October 2004 |url=http://blackwellpublishing.com/press/pressitem.asp?ref=180 |access-date=13 December 2009]==] }, {
[==[ title=Toshiba and Fujitsu reach HDD deal: Nikkei|publisher=Reuters|date=January 14, 2009|url= http://www.reuters.com/article/innovationNews/idUSTRE50D5LN20090114|access-date= January 14, 2009]==] }, {
[==[ title=Travel Warning: Indonesia |publisher=US Embassy, Jakarta |date=10 May 2005 |url=http://www.usembassyjakarta.org/news/trv_warning02.html |access-date=26 December 2006|archive-url = http://web.archive.org/web/20061111230327/http://www.usembassyjakarta.org/news/trv_warning02.html |archive-date = 11 November 2006|url-status=dead]==] }, {
[==[ title=U.S. Census Bureau Announces 2010 Census Population Counts – Apportionment Counts Delivered to President|url=http://2010.census.gov/news/releases/operations/cb10-cn93.html |publisher=[[مكتب تعداد الولايات المتحدة]]|date=December 21, 2010|access-date=November 23, 2012| archive-url= http://web.archive.org/web/20101224044247/http://2010.census.gov/news/releases/operations/cb10-cn93.html| archive-date= December 24, 2010 <!--DASHBot-->| url-status=live]==] }, {
[==[ url = http://nds.coi.gov.uk/environment/fullDetail.asp?ReleaseID=181549&NewsAreaID=2&NavigatedFromDepartment=False | publisher = [[Strategic Rail Authority]] | date = 29 March 1999 | access-date = 17 June 2008 | title = Sustained Passenger Growth in London ]==] }, {
[==[ url= http://www.networkrailmediacentre.co.uk/Content/Detail.asp?ReleaseID=2408&NewsAreaID=2&SearchCategoryID=2 |publisher= [[شبكة السكك الحديدية البريطانية]] |date= 18 October 2006 |access-date= 16 June 2011 |title= The £3.5bn Thameslink Project clears major hurdle |archive-url= http://web.archive.org/web/20070304113209/http://www.networkrailmediacentre.co.uk/Content/Detail.asp?ReleaseID=2408&NewsAreaID=2&SearchCategoryID=2 |archive-date =4 March 2007]==] }, {
[==[ url= http://www.thomasnelsoncorporate.com/2012/07/harpercollins-finalizes-acquisition-of-thomas-nelson/ |title=HarperCollins Finalizes Acquisition of Thomas Nelson |author=Casey Francis |publisher=Thomas Nelson, Inc. |date=July 11, 2012 |access-date=August 6, 2012]==] }, {
[==[ url=http://ir.zipcar.com/releasedetail.cfm?ReleaseID=719904 |title=Zipcar Reports 2012 Third Quarter Results |publisher=Ir.zipcar.com |date=2012-11-08 |access-date=2013-01-12]==] }, {
[==[ url=http://www.businesswire.com/news/home/20120105005547/en/Nielsen-Company-Billboard%E2%80%99s-2011-Music-Industry-Report|title=The Nielsen Company & Billboard's 2011 Music Industry Report|publisher=[[Business Wire]]|archive-url=https://www.webcitation.org/64TshZep3?url=http://www.businesswire.com/news/home/20120105005547/en/Nielsen-Company-Billboard%E2%80%99s-2011-Music-Industry-Report|archive-date=January 6, 2012]==] }, {
[==[ url=http://www.emmys.org/media/releases/2006/crtvarts2006_rel.pdf|title=The 2006 Creative Arts Emmy winners press release|publisher=Emmys.org|date=August 19, 2006|access-date=August 23, 2007|format=PDF]==] }, {
[==[ url=http://www.gu.se/english/about_the_university/current/the-university-s-new-english-name.cid778745 | publisher=University of Gothenburg | title=University of Gothenburg – the University's new English name | date=4 February 2008 | access-date=18 May 2011]==] }, {
[==[ url=http://www.newscorp.com/news/news_077.html|title=News Corporation Announces Plans To Acquire William Morrow & Company And Avon Books From The Hearst Corporation|date=June 17, 1999|publisher=News Corporation|access-date=August 6, 2012|location=New York|archive-url=http://web.archive.org/web/20061209220010/http://www.newscorp.com/news/news_077.html|archive-date=Dec 09, 2006]==] }, {
[==[ url=http://www.nxp.com/news/press-releases/2009/03/nxp-and-roku-enable-instant-enjoyment-of-new-release-movies.html |title=NXP and Roku Enable Instant Enjoyment of New Release Movies |date=2009-03-04 |access-date=2011-11-11 |quote=The Roku digital video player, powered by the PNX8935 multi-format source decoder from NXP]==] }, {
[==[ url=http://www.sony.net/SonyInfo/News/Press_Archive/200108/01-0828/|title=Sony and Ericsson complete joint venture agreement |date=28 August 2001|publisher=Sony|access-date=26 May 2012]==] }, {
[==[ date=18 April 2005 |url=http://www.bnl.gov/bnlweb/pubaf/pr/pr_display.asp?prid=05-38 |title=RHIC Scientists Serve Up "Perfect" Liquid |publisher=[[مختبر بروكهافن الوطني]] |access-date=2009-09-15 ]==] }, {
[==[ date=26 November 2010 |title=LHC experiments bring new insight into primordial universe |url=http://press.web.cern.ch/press/pressreleases/releases2010/PR23.10E.html |publisher=[[سيرن]] |access-date=2012-04-02 ]==] }, {
[==[ date=30 March 2006 |url=http://www.fnal.gov/pub/presspass/press_releases/minos_3-30-06.html |title=MINOS experiment sheds light on mystery of neutrino disappearance |access-date=2009-08-03 ]==] }
}, {nowiki=false, templatestyles=true})
end
return p
hqq7byg57ow93evjqrdlvky9pjiyygv
وحدة:Citation/CS1/مختبر/anchor
828
63196
275424
2026-09-15T08:58:44Z
حبيشان
29714
استيراد من ar.wiktionary.org
275424
Scribunto
text/plain
-- we never call cs1 directly because it doesn't have a nice implementation
-- as a module, so comment out below line
-- local myModule = require('Module:Citation/CS1') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()
-- merge keys and values into one table
local function merge(t1, t2)
local t3 = {}
for k, v in pairs(t1) do
t3[k] = v
end
for k, v in pairs(t2) do
t3[k] = v
end
return t3
end
-- Finds the citeref in an expanded CS1/2 template. Takes a test_parameters
-- table and a specific template invoke's args. The test_parameters table has
-- the following fields:
-- * base_args, a table representing the template args common to the test case.
-- * pattern, a string to find in the expanded template
-- * frame, usually from mw.getCurrentFrame()
-- * template, a string which is the name of the template to test.
-- targs is a table of the template arguments unique to the specific assertion.
local function citeref(test_parameters, targs)
local merged_args = merge(test_parameters.base_args, targs)
local expansion = test_parameters.frame:expandTemplate{
title = test_parameters.template, args = merged_args
}
local _, _, citeref_value = mw.ustring.find(expansion, test_parameters.pattern)
if not citeref_value then
citeref_value = ''
end
return citeref_value
end
-- Tests to ensure author masks don't corrupt the CITEREF
function suite:testAuthorMask()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_', year = '2020' }
}
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {chapter = 'CH'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {['author-mask'] = 'A1'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {['author-mask1'] = '2'}))
end
-- Tests what happens with various counts of contributors, authors, and editors
function suite:testCounts()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', year = '2020' }
}
self:assertEquals( '', citeref(env, {chapter = 'CH'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {author = '_A1_'}))
self:assertEquals( '', citeref(env, {contributor = 'C1'}))
self:assertEquals( '', citeref(env, {contributor = 'C1', contribution = 'CON'}))
self:assertEquals( 'CITEREF_E1_2020', citeref(env, {editor = '_E1_'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {author = '_A1_', contributor = '_C1_'}))
self:assertEquals( 'CITEREF_C1_2020', citeref(env, {author = '_A1_', contributor = '_C1_', contribution = 'CON'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {author = '_A1_', editor = '_E1_'}))
self:assertEquals( 'CITEREF_E1_2020', citeref(env, {editor = '_E1_', contributor = '_C1_'}))
self:assertEquals( 'CITEREF_E1_2020', citeref(env, {editor = '_E1_', contributor = '_C1_', contribution = 'CON'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {author = '_A1_', contributor = '_C1_', editor = '_E1_'}))
self:assertEquals( 'CITEREF_C1_2020', citeref(env, {author = '_A1_', contributor = '_C1_', editor = '_E1_', contribution = 'CON'}))
self:assertEquals( 'CITEREF_A1_A2_A3_A4_2020', citeref(env, {author = '_A1_', author2 = 'A2_', author3 = 'A3_', author4 = 'A4_'}))
self:assertEquals( 'CITEREF_A1_A2_A3_A4_2020', citeref(env, {author = '_A1_', author2 = 'A2_', author3 = 'A3_', author4 = 'A4_', author5 = 'A5_'}))
self:assertEquals( 'CITEREF_C1_C2_C3_2020', citeref(env, {author = '_A1_', contributor = '_C1_', contributor2 = 'C2_', contributor3 = 'C3_', contribution = 'CON'}))
self:assertEquals( 'CITEREF_E1_E2_2020', citeref(env, {editor = '_E1_', editor2 = 'E2_'}))
end
-- Tests date resolution code, including anchor years.
function suite:testDates()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_' }
}
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {year='2020'}))
self:assertEquals( 'CITEREF_A1_c\._2020', citeref(env, {date='c. 2020'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {date='1 January 2020'}))
self:assertEquals( 'CITEREF_A1_2020a', citeref(env, {date='1 January 2020a'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {date='1 January 2020', year='2020'}))
self:assertEquals( 'CITEREF_A1_2020a', citeref(env, {date='1 January 2020', year='2020a'}))
self:assertEquals( 'CITEREF_A1_2020', citeref(env, {date='2020-01-01', year='2020'}))
self:assertEquals( 'CITEREF_A1_2020a', citeref(env, {date='2020-01-01', year='2020a'}))
end
function suite:testDatesMaint()
local frame = mw.getCurrentFrame()
local base_args = {title = 'T', author = '_A1_', year = '2020'}
local template = 'cite book/new'
local maint = 'CS1 maint: date and year'
self:assertStringContains(maint, frame:expandTemplate{
title = template, args = merge(base_args, { date = '1 January 2020'})
})
self:assertStringContains(maint, frame:expandTemplate{
title = template, args = merge(base_args, { date = '2020-01-01'})
})
end
-- should fail: extra unexpected nd in the anchor, plus trailingauthordash below
-- TODO: Should that change? I've seen workarounds in the wild.
function suite:testDatesExtraNd()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_' }
}
self:assertEquals( 'CITEREF_A1_', citeref(env, {date='nd'}))
end
-- should fail: extra unexpected n.d. in the anchor
-- TODO: Should that change? I've seen workarounds in the wild.
function suite:testDatesExtraNdPunct()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_' }
}
self:assertEquals( 'CITEREF_A1_', citeref(env, {date='n.d.'}))
end
-- Tests to ensure display name settings don't corrupt the CITEREF
function suite:testDisplayNames()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_', author2 = 'A2_', date = '2020' }
}
self:assertEquals( 'CITEREF_A1_A2_2020', citeref(env, {chapter = 'CH'}))
self:assertEquals( 'CITEREF_A1_A2_2020', citeref(env, {['display-authors'] = '0'}))
self:assertEquals( 'CITEREF_A1_A2_2020', citeref(env, {['display-authors'] = '1'}))
self:assertEquals( 'CITEREF_A1_A2_2020', citeref(env, {['display-authors'] = 'etal'}))
end
-- Tests what happens for certain values of ref
function suite:testRef()
local env = {
frame = mw.getCurrentFrame(),
pattern = '(id=\"CITEREF%S-\")',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_', year = '2020' }
}
-- TODO test citation for equivalent value
self:assertEquals( 'id=\"CITEREF_A1_2020\"', citeref(env, {chapter = 'CH'}))
self:assertEquals( '', citeref(env, {ref = 'none'}))
self:assertEquals( 'id=\"CITEREF_A1_2020\"', citeref(env, {ref = 'CITEREF_A1_2020'}))
end
-- slightly different setup; we want to test that the input ID is the output ID
function suite:testRefREF()
local env = {
frame = mw.getCurrentFrame(),
pattern = '(id=\"REF\")',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_', year = '2020' }
}
self:assertEquals( 'id=\"REF\"', citeref(env, {ref = 'REF'}))
end
-- tests for expected presence of maintenance messages in ref
function suite:testRefMaint()
local frame = mw.getCurrentFrame()
local base_args = {title = 'T', author = '_A1_', date = '2020'}
self:assertStringContains('CS1 maint: ref duplicates default', frame:expandTemplate{
title = 'cite book/new', args = merge(base_args, { ref = 'CITEREF_A1_2020'})
})
self:assertStringContains('Invalid <code class=\"cs1%-code\">|ref=harv</code>', frame:expandTemplate{
title = 'cite book/new', args = merge(base_args, { ref = 'harv'})
})
end
-- should fail: missing trailing underscore in anchor; not sure if that's desirable
-- or if that can change
-- TODO: Ask someone.
function suite:testTrailingAuthorDash()
local env = {
frame = mw.getCurrentFrame(),
pattern = 'id=\"(CITEREF%S-)\"',
template = 'cite book/new',
base_args = { title = 'T', author = '_A1_' }
}
self:assertEquals( 'CITEREF_A1_', citeref(env, {chapter='CH'}))
end
return suite
9rxh67qbpu6gfdzut9dyh52jplmymqm
وحدة:Citation/CS1/مختبر/dates
828
63197
275425
2026-09-15T08:58:48Z
حبيشان
29714
استيراد من ar.wiktionary.org
275425
Scribunto
text/plain
--[=[
Unit tests for [[Module:Citation/CS1/Date validation]].
Click talk page to run tests.
]=]
local p = require('Module:UnitTests')
--[[--------------------------< Y M X _ D A T E S >------------------------------------------------------------
]]
function p:test_ymx_dates() -- EDTF dates
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=1500-10-XX'}, -- invalid year
{'date=5500-10-XX'}, -- invalid year
{'date=1980-00-XX'}, -- invalid month
{'date=1980-13-XX'}, -- invalid month
{'date=2000-02-XX'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< Y M D _ D A T E S >------------------------------------------------------------
]]
function p:test_ymd_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=1500-10-23'}, -- invalid year
{'date=5500-10-23'}, -- invalid year
{'date=1980-00-23'}, -- invalid month
{'date=1980-13-23'}, -- invalid month
{'date=1980-10-00'}, -- invalid day
{'date=1980-10-55'}, -- invalid day
{'date=1700-02-29'}, -- invalid date
{'date=2000-02-29'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M D Y _ D A T E S >------------------------------------------------------------
]]
function p:test_mdy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October 23, 96'}, -- invalid year
{'date=October 23, 5500'}, -- invalid year
{'date=Oktober 23, 1980'}, -- invalid month
{'date=october 23, 1980'}, -- invalid month
{'date=Sept 23, 1980'}, -- invalid month
{'date=sep 23, 1980'}, -- invalid month
{'date=October 00, 1980'}, -- invalid day
{'date=October 55, 1980'}, -- invalid day
{'date=February 29, 1700'}, -- invalid date
{'date=October 23 1980'}, -- missing comma
{'date=October, 23 1980'}, -- misplaced comma
{'date=October 23,1980'}, -- missing space
{'date=October23, 1980'}, -- missing space
{'date=February 29, 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M D D Y _ D A T E S >----------------------------------------------------------
]]
function p:test_mddy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October 23–25, 96'}, -- invalid year
{'date=October 23–25, 5500'}, -- invalid year
{'date=Oktober 23–25, 1980'}, -- invalid month
{'date=october 23–25, 1980'}, -- invalid month
{'date=Sept 23–25, 1980'}, -- invalid month
{'date=sep 23–25, 1980'}, -- invalid month
{'date=October 00–25, 1980'}, -- invalid day
{'date=October 23–55, 1980'}, -- invalid day
{'date=October 25–23, 1980'}, -- invalid day order
{'date=October 23–23, 1980'}, -- invalid 2nd day
{'date=February 25–29, 1700'}, -- invalid 2nd day
{'date=October 23–25 1980'}, -- missing comma
{'date=October, 23–25 1980'}, -- misplaced comma
{'date=October 23–25,1980'}, -- missing space
{'date=October23–25, 1980'}, -- missing space
{'date=October 23 –25, 1980'}, -- extraneous space
{'date=October 23– 25, 1980'}, -- extraneous space
{'date=October 23-25, 1980'}, -- hyphen
{'date=February 25–29, 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< D M Y _ D A T E S >------------------------------------------------------------
]]
function p:test_dmy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=23 October 96'}, -- invalid year
{'date=23 October 5500'}, -- invalid year
{'date=23 Oktober 1980'}, -- invalid month
{'date=23 october 1980'}, -- invalid month
{'date=23 Sept 1980'}, -- invalid month
{'date=23 sep 1980'}, -- invalid month
{'date=00 October 1980'}, -- invalid day
{'date=55 October 1980'}, -- invalid day
{'date=29 February 1700'}, -- invalid date
{'date=23, October 1980'}, -- extraneous comma
{'date=23 October, 1980'}, -- extraneous comma
{'date=23October 1980'}, -- missing space
{'date=23 October1980'}, -- missing space
{'date=29 February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< D D M Y _ D A T E S >----------------------------------------------------------
]]
function p:test_ddmy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=23–25 October 96'}, -- invalid year
{'date=23–25 October 5500'}, -- invalid year
{'date=23–25 Oktober 1980'}, -- invalid month
{'date=23–25 october 1980'}, -- invalid month
{'date=23–25 Sept 1980'}, -- invalid month
{'date=23–25 sep 1980'}, -- invalid month
{'date=00–25 October 1980'}, -- invalid day
{'date=23–55 October 1980'}, -- invalid day
{'date=25–23 October 1980'}, -- invalid day order
{'date=23–23 February 1700'}, -- invalid 2nd day
{'date=23–29 February 1700'}, -- invalid 2nd day
{'date=23–25, October 1980'}, -- extraneous comma
{'date=23–25 October, 1980'}, -- extraneous comma
{'date=23–25 October1980'}, -- missing space
{'date=23–25October 1980'}, -- missing space
{'date=23 –25 October 1980'}, -- extraneous space
{'date=23– 25 October 1980'}, -- extraneous space
{'date=23-25 October 1980'}, -- hyphen
{'date=23–25 February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M D M D Y _ D A T E S >--------------------------------------------------------
]]
function p:test_mdmdy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October 23 – November 25, 96'}, -- invalid year
{'date=October 23 – November 25, 5500'}, -- invalid year
{'date=Oktober 23 – November 25, 1980'}, -- invalid 1st month
{'date=October 23 – Novembre 25, 1980'}, -- invalid 2nd month
{'date=october 23 – November 25, 1980'}, -- invalid 1st month
{'date=October 23 – november 25, 1980'}, -- invalid 2nd month
{'date=Sept 23 – Oct 25, 1980'}, -- invalid 1st month
{'date=Sep 23 – Okt 25, 1980'}, -- invalid 2nd month
{'date=sep 23 – Oct 25, 1980'}, -- invalid 1st month
{'date=Sep 23 – oct 25, 1980'}, -- invalid 2nd month
{'date=October 25 – October 29, 1980'}, -- invalid 2nd month
{'date=October 00 – November 25, 1980'}, -- invalid 1st day
{'date=October 23 – November 55, 1980'}, -- invalid 2nd day
{'date=October 23 – November 25 1980'}, -- missing comma
{'date=October, 23 – November 25 1980'}, -- misplaced comma
{'date=October 23, – November 25 1980'}, -- misplaced comma
{'date=October 23 – November, 25 1980'}, -- misplaced comma
{'date=October23 – November 25, 1980'}, -- missing space
{'date=October 23– November 25, 1980'}, -- missing space
{'date=October 23 –November 25, 1980'}, -- missing space
{'date=October 23 – November25, 1980'}, -- missing space
{'date=October 23 – November 25,1980'}, -- missing space
{'date=Oct 23 – November 25, 1980'}, -- mixed style
{'date=October 23 – Nov 25, 1980'}, -- mixed style
{'date=October 23 – September 25, 1980'}, -- invalid month order
{'date=Oct 23 – Sep 25, 1980'}, -- invalid month order
{'date=October 23 – October 23, 1980'}, -- same dates
{'date=October 23 - November 25, 1980'}, -- hyphen
{'date=January 25 – February 29, 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< D M D M Y _ D A T E S >--------------------------------------------------------
]]
function p:test_dmdmy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=23 October – 25 November 96'}, -- invalid year
{'date=23 October – 25 November 5500'}, -- invalid year
{'date=23 Oktober – 25 November 1980'}, -- invalid 1st month
{'date=23 October – 25 Novembre 1980'}, -- invalid 2nd month
{'date=23 october – 25 November 1980'}, -- invalid 1st month
{'date=23 October – 25 november 1980'}, -- invalid 2nd month
{'date=23 Sept – 25 Oct 1980'}, -- invalid 1st month
{'date=23 Sep – 25 Okt 1980'}, -- invalid 2nd month
{'date=23 sep – 25 Oct 1980'}, -- invalid 1st month
{'date=23 Sep – 25 oct 1980'}, -- invalid 2nd month
{'date=23 October – 29 October 1980'}, -- invalid 2nd month
{'date=00 October – 25 November 1980'}, -- invalid 1st day
{'date=23 October – 55 November 1980'}, -- invalid 2nd day
{'date=23, October – 25 November 1980'}, -- extraneous comma
{'date=23 October, – 25 November 1980'}, -- extraneous comma
{'date=23 October – 25, November 1980'}, -- extraneous comma
{'date=23 October – 25 November, 1980'}, -- extraneous comma
{'date=23October – 25 November 1980'}, -- missing space
{'date=23 October– 25 November 1980'}, -- missing space
{'date=23 October –25 November 1980'}, -- missing space
{'date=23 October – 25November 1980'}, -- missing space
{'date=23 October – 25 November1980'}, -- missing space
{'date=23 Oct – 25 November 1980'}, -- mixed style
{'date=23 October – 25 Nov 1980'}, -- mixed style
{'date=23 October – 25 September 1980'}, -- invalid month order
{'date=23 October – 23 October 1980'}, -- same dates
{'date=23 October - 25 November 1980'}, -- hyphen
{'date=25 January – 29 February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M D Y M D Y _ D A T E S >------------------------------------------------------
]]
function p:test_mdymdy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October 23, 95 – November 25, 1996'}, -- invalid 1st year
{'date=October 23, 1995 – November 25, 96'}, -- invalid 2nd year
{'date=October 23, 5500 – November 25, 1996'}, -- invalid 1st year
{'date=October 23, 1995 – November 25, 5500'}, -- invalid 1st year
{'date=Oktober 23, 1979 – November 25, 1980'}, -- invalid 1st month
{'date=October 23, 1979 – Novembre 25, 1980'}, -- invalid 2nd month
{'date=october 23, 1979 – November 25, 1980'}, -- invalid 1st month
{'date=October 23, 1979 – november 25, 1980'}, -- invalid 2nd month
{'date=Sept 23, 1979 – Oct 25, 1980'}, -- invalid 1st month
{'date=Sep 23, 1979 – Okt 25, 1980'}, -- invalid 2nd month
{'date=sep 23, 1979 – Oct 25, 1980'}, -- invalid 1st month
{'date=October 00, 1979 – November 25, 1980'}, -- invalid 1st day
{'date=October 23, 1979 – November 55, 1980'}, -- invalid 2nd day
{'date=October 23 1979 – November 25, 1980'}, -- missing comma
{'date=October 23, 1979 – November 25 1980'}, -- missing comma
{'date=October, 23 1979 – November 25, 1980'}, -- misplaced comma
{'date=October 23 1979, – November 25, 1980'}, -- misplaced comma
{'date=October 23, 1979 – November, 25 1980'}, -- misplaced comma
{'date=October23, 1979 – November 25, 1980'}, -- missing space
{'date=October 23,1979 – November 25, 1980'}, -- missing space
{'date=October 23, 1979– November 25, 1980'}, -- missing space
{'date=October 23, 1979 –November25, 1980'}, -- missing space
{'date=October 23, 1979 – November25, 1980'}, -- missing space
{'date=October 23, 1979 – November 25,1980'}, -- missing space
{'date=Oct 23, 1979 – November 25, 1980'}, -- mixed style
{'date=October 23, 1979 – Nov 25, 1980'}, -- mixed style
{'date=September 25, 1980 – October 23, 1979'}, -- invalid year order
{'date=October 23, 1979 – October 23, 1979'}, -- same dates
{'date=October 23, 1979 - November 25, 1980'}, -- hyphen
{'date=January 25, 1979 – February 29, 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< D M Y D M Y _ D A T E S >------------------------------------------------------
]]
function p:test_dmydmy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=23 October 95 – 25 November 1996'}, -- invalid 1st year
{'date=23 October 1995 – 25 November 96'}, -- invalid 2nd year
{'date=23 October 5500 – 25 November 1996'}, -- invalid 1st year
{'date=23 October 1995 – 25 November 5500'}, -- invalid 2nd year
{'date=23 Oktober 1979 – 25 November 1980'}, -- invalid 1st month
{'date=23 October 1979 – 25 Novembre 1980'}, -- invalid 2nd month
{'date=23 october 1979 – 25 November 1980'}, -- invalid 1st month
{'date=23 October 1979 – 25 november 1980'}, -- invalid 2nd month
{'date=23 Sept 1979 – 25 Oct 1980'}, -- invalid 1st month
{'date=23 Sep 1979 – 25 Okt 1980'}, -- invalid 2nd month
{'date=23 sep 1979 – 25 Oct 1980'}, -- invalid 1st month
{'date=00 October 1979 – 25 November 1980'}, -- invalid 1st day
{'date=23 October 1979 – 55 November 1980'}, -- invalid 2nd day
{'date=23, October 1979 – 25 November 1980'}, -- extraneous comma
{'date=23 October, 1979 – 25 November 1980'}, -- extraneous comma
{'date=23 October 1979, – 25 November 1980'}, -- extraneous comma
{'date=23 October 1979 – 25, November 1980'}, -- extraneous comma
{'date=23 October 1979 – 25 November, 1980'}, -- extraneous comma
{'date=23October 1979 – 25 November 1980'}, -- missing space
{'date=23 October1979 – 25 November 1980'}, -- missing space
{'date=23 October 1979– 25 November 1980'}, -- missing space
{'date=23 October 1979 –25 November 1980'}, -- missing space
{'date=23 October 1979 – 25November 1980'}, -- missing space
{'date=23 October 1979 – 25 November1980'}, -- missing space
{'date=23 Oct 1979 – 25 November 1980'}, -- mixed month style
{'date=23 October 1979 – 25 Nov 1980'}, -- mixed month style
{'date=23 October 1979 – November 25, 1980'}, -- mixed date style
{'date=25 September 1980 – 23 October 1979'}, -- invalid year order
{'date=23 October 1979 – 23 October 1979'}, -- same dates
{'date=23 October 1979 - 25 November 1980'}, -- hyphen
{'date=25 January 1979 – 29 February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M Y _ D A T E S >--------------------------------------------------------------
]]
function p:test_my_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October 96'}, -- invalid year
{'date=October 5500'}, -- invalid year
{'date=Oktober 1980'}, -- invalid month
{'date=october 1980'}, -- invalid month
{'date=Sept 1980'}, -- invalid month
{'date=sep 1980'}, -- invalid month
{'date=October, 1980'}, -- extraneous comma
{'date=October1980'}, -- missing space
{'date=February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< S Y _ D A T E S >--------------------------------------------------------------
]]
function p:test_sy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=Spring 96'}, -- invalid year
{'date=Summer 5500'}, -- invalid year
{'date=spring 1980'}, -- invalid season
{'date=summer 1980'}, -- invalid season
{'date=autumn 1980'}, -- invalid season
{'date=fall 1980'}, -- invalid season
{'date=Winter, 1980'}, -- extraneous comma
{'date=Spring1980'}, -- missing space
{'date=Spring 2000'},
{'date=Summer 2000'},
{'date=Autumn 2000'},
{'date=Fall 2000'},
{'date=Winter 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< Q Y _ D A T E S >--------------------------------------------------------------
]]
function p:test_qy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=First Quarter 96'}, -- invalid year
{'date=First Quarter 5500'}, -- invalid year
{'date=1st Quarter 1980'}, -- invalid quarter
{'date=first Quarter 1980'}, -- invalid quarter
{'date=First quarter 1980'}, -- invalid quarter
{'date=First Quarter, 1980'}, -- extraneous comma
{'date=First Quarter1980'}, -- missing space
{'date=FirstQuarter 1980'}, -- missing space
{'date=First Quarter 2000'},
{'date=Second Quarter 2000'},
{'date=Third Quarter 2000'},
{'date=Fourth Quarter 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< P R O P E R _ N A M E _ Y E A R _ D A T E S >----------------------------------
]]
function p:test_proper_name_year_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=Christmas 96'}, -- invalid year
{'date=Christmas 5500'}, -- invalid year
{'date=Xmas 1980'}, -- invalid proper name
{'date=christmas 1980'}, -- invalid proper name
{'date=easter 1980'}, -- invalid proper name
{'date=Christmas, 1980'}, -- extraneous comma
{'date=Cristmas1980'}, -- missing space
{'date=Christmas 2000'},
{'date=Easter 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M M Y _ D A T E S >------------------------------------------------------------
]]
function p:test_mmy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October–November 96'}, -- invalid year
{'date=October–November 5500'}, -- invalid year
{'date=Oktober–November 1980'}, -- invalid 1st month
{'date=Oktober–Novembre 1980'}, -- invalid 2nd month
{'date=october–November 1980'}, -- invalid 1st month
{'date=Sept–Nov 1980'}, -- invalid 2nd month
{'date=sep–Nov 1980'}, -- invalid 1st month
{'date=Sep–nov 1980'}, -- invalid 2nd month
{'date=Oct–November 1980'}, -- mixed style
{'date=October–Nov 1980'}, -- mixed style
{'date=Summer–November 1980'}, -- mixed types
{'date=October–Winter 1980'}, -- mixed types
{'date=October–November, 1980'}, -- extraneous comma
{'date=October –November 1980'}, -- extraneous space
{'date=October– November 1980'}, -- extraneous space
{'date=October–November1980'}, -- missing space
{'date=October-October 1980'}, -- same months
{'date=October-November 1980'}, -- hyphen
{'date=January–February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< S S Y _ D A T E S >------------------------------------------------------------
]]
function p:test_ssy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=Spring–Summer 96'}, -- invalid year
{'date=Spring–Summer 5500'}, -- invalid year
{'date=spring–Summer 1980'}, -- invalid 1st season
{'date=Spring–summer 1980'}, -- invalid 2nd season
{'date=Spring–Spring 1980'}, -- same season
{'date=Autumn–Fall 1980'}, -- same season
{'date=Fall–Autumn 1980'}, -- same season
{'date=Spring–Summer, 1980'}, -- extraneous comma
{'date=Spring –Summer 1980'}, -- extraneous space
{'date=Spring– Summer 1980'}, -- extraneous space
{'date=Spring–Summer1980'}, -- missing space
{'date=Spring-Summer 1980'}, -- hyphen
{'date=Spring–Summer 2000'},
{'date=Spring–Autumn 2000'},
{'date=Spring–Fall 2000'},
{'date=Spring–Winter 2000'},
{'date=Summer–Autumn 2000'},
{'date=Summer–Fall 2000'},
{'date=Summer–Winter 2000'},
{'date=Summer–Spring 2000'},
{'date=Autumn–Winter 2000'},
{'date=Autumn–Spring 2000'},
{'date=Autumn–Summer 2000'},
{'date=Fall–Winter 2000'},
{'date=Fall–Spring 2000'},
{'date=Fall–Summer 2000'},
{'date=Winter–Spring 2000'},
{'date=Winter–Summer 2000'},
{'date=Winter–Autumn 2000'},
{'date=Winter–Fall 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< M Y M Y _ D A T E S >----------------------------------------------------------
]]
function p:test_mymy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=October 95 – November 1996'}, -- invalid 1st year
{'date=October 1995 – November 96'}, -- invalid 2nd year
{'date=October 5500 – November 1996'}, -- invalid 1st year
{'date=October 1995 – November 5500'}, -- invalid 2nd year
{'date=Oktober 1979 – November 1980'}, -- invalid 1st month
{'date=October 1979 – Novembre 1980'}, -- invalid 2nd month
{'date=october 1979 – November 1980'}, -- invalid 1st month
{'date=October 1979 – november 1980'}, -- invalid 2nd month
{'date=Sept 1979 – Oct 1980'}, -- invalid 1st month
{'date=Sep 1979 – Okt 1980'}, -- invalid 2nd month
{'date=sep 1979 – Oct 1980'}, -- invalid 1st month
{'date=October, 1979 – November 1980'}, -- extraneous comma
{'date=October 1979, – November 1980'}, -- extraneous comma
{'date=October 1979 – November, 1980'}, -- extraneous comma
{'date=October1979 – November 1980'}, -- missing space
{'date=October 1979– November 1980'}, -- missing space
{'date=October 1979 –November 1980'}, -- missing space
{'date=October 1979 – November1980'}, -- missing space
{'date=Oct 1979 – November 1980'}, -- mixed month style
{'date=October 1979 – Nov 1980'}, -- mixed month style
{'date=September 1980 – October 1979'}, -- invalid year order
{'date=October 1979 – October 1979'}, -- missing space
{'date=October 1979 - November 1980'}, -- hyphen
{'date=January 1979 – February 2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< S Y Y _ D A T E S >------------------------------------------------------------
]]
function p:test_syy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=Summer 95–96'}, -- invalid 1st year
{'date=Summer 5500–01'}, -- invalid 1st year
{'date=Summer 1995–97'}, -- invalid 2nd year
{'date=Summer 1995–1997'}, -- invalid 2nd year
{'date=Summer 1995–95'}, -- same year
{'date=Summer 1995–1995'}, -- same year
{'date=Spring 1995–96'}, -- invalid season
{'date=Spring 1995–1996'}, -- invalid season
{'date=Autumn 1995–96'}, -- invalid season
{'date=Autumn 1995–1996'}, -- invalid season
{'date=Fall 1995–96'}, -- invalid season
{'date=Fall 1995–1996'}, -- invalid season
{'date=Summer 1995–96'},
{'date=Summer 1995–1996'},
{'date=Winter 1995–96'},
{'date=Winter 1995–1996'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< Y Y _ D A T E S >--------------------------------------------------------------
]]
function p:test_yy_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=99–100'}, -- invalid 1st year
{'date=5500–100'}, -- invalid 1st year
{'date=1995–5500'}, -- invalid 2nd year
{'date=1995–997'}, -- invalid 2nd year
{'date=1995–1995'}, -- same year
{'date=100–99'}, -- invalid 2nd year
{'date=995–997'},
{'date=995–1997'},
{'date=1995–1997'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< Y 4 Y 2 _ D A T E S >----------------------------------------------------------
]]
function p:test_y4y2_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=999–00'}, -- invalid 1st year
{'date=5500–100'}, -- invalid 1st year
{'date=1995–5500'}, -- invalid 2nd year
{'date=2000–05'}, -- invalid range
{'date=1999–05'}, -- invalid range
{'date=1995–95'}, -- same year
{'date=1995–94'}, -- invalid 2nd year
{'date=1995–96'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< Y _ D A T E S >----------------------------------------------------------------
]]
function p:test_y_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=99'}, -- invalid year
{'date=5500'}, -- invalid year
{'date=995'},
{'date=2000'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< Y E A R _ D A T E _ M I S M A T C H >------------------------------------------
]]
function p:test_year_date_mismatch()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |', '}}', '{{cite book |title=Title |', '}}',
{
{'date=2020-06-13 |year=2020a'}, -- valid: year has disambiguator
{'date=2020-06-13 |year=2002a'}, -- mismatch
{'date=2020-06-13 |year=2020'}, -- redundant year match
{'date=2020-06-13 |year=2002'}, -- mismatch
{'date=13 June 2020 |year=2020'}, -- redundant year match
{'date=13 June 2020 |year=2002'}, -- mismatch
{'date=June 13, 2020 |year=2020'}, -- redundant year match
{'date=June 13, 2020 |year=2002'}, -- mismatch
{'date=13 June 2020 – 30 January 2021 |year=2020'}, -- redundant year match
{'date=13 June 2020 – 30 January 2021 |year=2021'}, -- redundant year match
{'date=13 June 2020 – 30 January 2021 |year=2002'}, -- mismatch
{'date=June 13, 2020 – January 30, 2021 |year=2020'}, -- redundant year match
{'date=June 13, 2020 – January 30, 2021 |year=2021'}, -- redundant year match
{'date=June 13, 2020 – January 30, 2021 |year=2002'}, -- mismatch
{'date=2020–2021 |year=2020'}, -- redundant year match
{'date=2020–2021 |year=2021'}, -- redundant year match
{'date=2020–2021 |year=2002'}, -- mismatch
{'date=2020–21 |year=2020'}, -- redundant year match
{'date=2020–21 |year=2021'}, -- redundant year match
{'date=2020–21 |year=2002'}, -- mismatch
{'date=2020 |year=2020'}, -- redundant year match
{'date=2020 |year=2002'}, -- mismatch
},
{nowiki=false, templatestyles=true}
)
end
--[[
=============================<< S P E C I A L C A S E T E S T I N G >>=====================================
]]
--[[--------------------------< T O D A Y _ P L U S _ O F F S E T _ G E T >------------------------------------
returns date offset from today by <offset> in <format> (#time parser function formatting)
Y - four digit year
m - two digit month
M - abbreviated month name
F - full month name
d - zero-padded day
j - day without zero-padding
<offset> must include units: days, months, years
]]
local function today_plus_offset_get (format, offset)
return mw.getContentLanguage():formatDate(format, 'today ' .. offset and ('+ ' .. offset) or '');
end
--[[--------------------------< A C C E S S - D A T E >--------------------------------------------------------
]]
function p:test_access_dates()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Title |url=//example.com |', '}}', '{{cite book |title=Title |url=//example.com |', '}}',
{
{'access-date=2001-01-14'}, -- invalid date (before Wikipedia)
{'access-date=January 14, 2001'},
{'access-date=14 January 2001'},
{'access-date=2001-01-15'}, -- valid date (Wikipedia birthday)
{'access-date=January 15, 2001'},
{'access-date=15 January 2001'},
{'access-date=' .. today_plus_offset_get('Y-m-d', '0 days')}, -- valid date (today)
{'access-date=' .. today_plus_offset_get('Y-m-d', '1 days')}, -- valid date (tomorrow)
{'access-date=' .. today_plus_offset_get('Y-m-d', '2 days')}, -- invalid date (day after tomorrow)
},
{nowiki=false, templatestyles=true}
)
end
return p
915mpyio6b83qhme3e4ndnmi7il3lgx
وحدة:Citation/CS1/مختبر/errors
828
63198
275426
2026-09-15T08:58:52Z
حبيشان
29714
استيراد من ar.wiktionary.org
275426
Scribunto
text/plain
--[=[
Unit tests for [[Module:Citation/CS1]] error messages. This is not intended to
test every possible thing that can make an error message; rather, it is to test
the creation and rendering of the messages themselves.
Tests are displayed on the talk page alphabetically by test name. By convention,
tests for errors are all lowercase, especially after "test_" e.g. test_disp_name,
which differentiates them from maintenance messages, which have an uppercase
immediately after the "_" e.g. test_Ref_maint.
Click talk page to run tests.
]=]
local p = require('Module:UnitTests')
--[[==========================<< E R R O R M E S S A G E S >>========================================
]]
--[[--------------------------< W I K I L I N K _ I N _ U R L >------------------------------------------------
]]
function p:test_wikilink_in_url()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |journal=Journal |', '}}', '{{cite journal |journal=Journal |', '}}',
{
{'title=عنوان |url=//example.com |title-link=Title'}, -- citation0()
{'pmc=12345 |title=عنوان |url=//example.com |title-link=Title'}, -- citation0()
{'title=[[Title]] |url=//example.com'}, -- safe_for_url()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ V A U T H O R S >----------------------------------------------------
]]
function p:test_vauthors()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'vauthors=Black ABC'}, -- too many initials
{'vauthors=Black A-B'}, -- hyphenated initials
{'vauthors=Black AB II'}, -- invalid generational suffix - does not show an error but it should
{'vauthors=Black AB 3d'}, -- invalid generational suffix
{'vauthors=Black, AB, Brown, CD'}, -- improper puncutation - does not show an error but it should
{'vauthors=Black AB; Brown CD'}, -- improper puncutation
{'vauthors=Вlack AВ, Вrown CD'}, -- the 'В's are Cyrillic characters
{'vauthors=Black AB, Вrown CD'}, -- the 'В's in Brown is Cyrillic
{'vauthors=Black AB Brown CD'}, -- missing comma
{'vauthors=Black A B'}, -- spaced initials
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ V A N C O U V E R >--------------------------------------------------
]]
function p:test_vancouver()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |name-list-style=vanc |', '}}',
'{{cite book |title=عنوان |name-list-style=vanc |', '}}',
{
{'last=Black |first=AB 3d'}, -- invalid generational suffix - reduce_to_initials()
{'last=Вlack |first=Alpha Вravo'}, -- the 'В's are Cyrillic characters
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ T R A N S _ M I S S I N G _ T I T L E >------------------------------
]]
function p:test_trans_missing_title()
self:preprocess_equals_preprocess_many(
'{{cite book/new |', '}}', '{{cite book |', '}}',
{
{'trans-title=Trans Title'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ T E X T _ I G N O R E D >--------------------------------------------
]]
function p:test_text_ignored()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'text to be ignored'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ S S R N _ M I S S I N G >--------------------------------------------
]]
function p:test_ssrn_missing()
self:preprocess_equals_preprocess_many(
'{{cite ssrn/new |title=عنوان', '}}', '{{cite ssrn |title=عنوان', '}}',
{
{''},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ S C R I P T _ P A R A M E T E R >------------------------------------
]]
function p:test_script_parameter()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'script-title=ja:'}, -- missing title part
{'script-title=ac:script-title'}, -- unknown language code
{'script-title=es:script-title'}, -- invalid language code
{'script-title=script-title'}, -- missing prefix
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S >----------------------------
]]
function p:test_redundant_parameters()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'type=Type |meduim=Meduim'}, -- argument_wrapper()
{'last=Last |last1=Last1'}, -- extract_names()
{'last=Last |first=First |first1=First1'}, -- extract_names()
{'last=Last |first=First |author-mask=Author-mask |author-mask1=Author-mask1'}, -- extract_names()
{'last=Last |first=First |author-link=Author |author1-link=Author'}, -- extract_names()
{'vauthors=[[Author|Author AA]] |author-link=Author'}, -- parse_vauthors_veditors()
{'vauthors=Black AB |author2=Brown CD'}, -- select_author_editor_source()
{'page=1 |pages=3, 4'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S _ 2 >------------------------
]]
function p:test_redundant_parameters_2()
self:preprocess_equals_preprocess_many(
'{{cite mailing list/new |title=عنوان |', '}}', '{{cite mailing list |title=عنوان |', '}}',
{
{'mailing-list=Mailing list |work=work'}, -- argument_wrapper()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S _ 3 >------------------------
]]
function p:test_redundant_parameters_3()
self:preprocess_equals_preprocess_many(
'{{cite encyclopedia/new |title=عنوان |', '}}', '{{cite encyclopedia |title=عنوان |', '}}',
{
{'encyclopedia=Encyclopedia |work=work'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S _ 4 >------------------------
]]
function p:test_redundant_parameters_4()
self:preprocess_equals_preprocess_many(
'{{citation/new |title=عنوان |', '}}', '{{citation |title=عنوان |', '}}',
{
{'encyclopedia=Encyclopedia |work=work'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S _ 5 >------------------------
]]
function p:test_redundant_parameters_5()
self:preprocess_equals_preprocess_many(
'{{cite techreport/new |title=عنوان |', '}}', '{{cite techreport |title=عنوان |', '}}',
{
{'number=1 |id=ID'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S _ 6 >------------------------
]]
function p:test_redundant_parameters_6()
self:preprocess_equals_preprocess_many(
'{{cite map/new |title=عنوان |', '}}', '{{cite map |title=عنوان |', '}}',
{
{'chapter=Chapter |map=Map'}, -- citation0()
{'chapter=Chapter'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E D U N D A N T _ P A R A M E T E R S _ 7 >------------------------
]]
function p:test_redundant_parameters_7()
self:preprocess_equals_preprocess_many(
'{{cite episode/new |title=عنوان |series=Series |', '}}', '{{cite episode |title=عنوان |series=Series |', '}}',
{
{'season=Season |series-number=Series number'}, -- citation0()
{'minutes=Minutes |time=Time'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M E T E R _ I G N O R E D _ S U G G E S T >------------------
]]
function p:test_parameter_ignored_suggest()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'Chapter=Chapter'}, -- citation() - case
{'pulbisher=Pulbisher'}, -- citation() – misspelled pattern matched
{'pub=Publisher'}, -- citation() – explicit match
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M E T E R _ I G N O R E D >----------------------------------
]]
function p:test_parameter_ignored()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'unknown=unknown'}, -- citation()
{'encyclopedia=Encyclopedia'}, -- citation0() – |encyclopedia= only available in {{cite encyclopdia}} and {{citation}}
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M E T E R _ I G N O R E D _ 2 >------------------------------
]]
function p:test_parameter_ignored_2()
self:preprocess_equals_preprocess_many(
'{{cite ssrn/new |title=عنوان |ssrn=123456 |', '}}', '{{cite ssrn |title=عنوان |ssrn=123456 |', '}}',
{
{'pulbisher=Pulbisher'}, -- citation() – misspelled pattern matched but suggested param not supported by this template
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M E T E R _ I G N O R E D _ 3 >------------------------------
]]
function p:test_parameter_ignored_3()
self:preprocess_equals_preprocess_many(
'{{cite newsgroup/new |title=عنوان |', '}}', '{{cite newsgroup |title=عنوان |', '}}',
{
{'newsgroup=sommat.sommat.sommat |publisher=Publisher'}, -- citation0() - |publisher= not supported by {{cite newsgroup}}
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M _ H A S _ E X T _ L I N K >--------------------------------
]]
function p:test_param_has_ext_link()
self:preprocess_equals_preprocess_many(
'{{cite book/new |', '}}', '{{cite book |', '}}',
{
{'title=عنوان //example.com'}, -- check_for_url()
{'title=عنوان http://example.com'}, -- check_for_url()
{'title=[http://example.com Title]'}, -- check_for_url()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M _ A C C E S S _ R E Q U I R E S _ P A R A M >--------------
]]
function p:test_param_access_requires_param()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'url-access=subscription'}, -- citation0()
{'doi-access=free'}, -- extract_id_access_levels() (~/Identifiers)
{'chapter-url-access=subscription'}, -- citation0()
-- {'map-url-access=subscription'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P A R A M _ A C C E S S _ R E Q U I R E S _ P A R A M _ 2 >----------
]]
function p:test_param_access_requires_param_2()
self:preprocess_equals_preprocess_many(
'{{cite map/new |title=عنوان |', '}}', '{{cite map |title=عنوان |', '}}',
{
{'map-url-access=subscription'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M I S S I N G _ P I P E >--------------------------------------------
]]
function p:test_missing_pipe()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |url=//example.com |', '}}', '{{cite book |title=عنوان |url=//example.com |', '}}',
{
{'chapter=Chapter access-date=2020-06-10'}, -- missing_pipe_check()
{'chapter=access-date=2020-06-10'}, -- missing_pipe_check()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M I S S I N G _ P E R I O D I C A L >--------------------------------
]]
function p:test_missing_periodical()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان', '}}', '{{cite journal |title=عنوان', '}}',
{
{''}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M I S S I N G _ P E R I O D I C A L _ 2 >----------------------------
]]
function p:test_missing_periodical_2()
self:preprocess_equals_preprocess_many(
'{{cite magazine/new |title=عنوان', '}}', '{{cite magazine |title=عنوان', '}}',
{
{''}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M I S S I N G _ N A M E >--------------------------------------------
]]
function p:test_missing_name()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'author=Black AB |author3=Red EF'}, -- extract_names()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ I N V I S I B L E _ C H A R >----------------------------------------
]]
function p:test_invisible_char()
self:preprocess_equals_preprocess_many(
'{{cite book/new |', '}}', '{{cite book |', '}}',
{
{'title=عنوان\239\191\189'}, -- replacement char - has_invisible_chars()
{'title=عنوان\127UNIQ--spoof-000000-QINU\127'}, -- spoof a stripmarker so that comparison compares the same thing; <spoof></spoof> does not exist so not replaced with content
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ I N V A L I D _ P A R A M _ V A L >----------------------------------
]]
function p:test_invalid_param_val()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'mode=cs3'}, -- is_valid_parameter_value()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ F O R M A T _ M I S S I N G _ U R L >--------------------------------
]]
function p:test_format_missing_url()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'format=abc'}, -- style_format()
{'archive-format=def'},
{'chapter-format=ghi'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ F I R S T _ M I S S I N G _ L A S T >--------------------------------
]]
function p:test_first_missing_last()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'first=AB'}, -- extract_names()
{'editor-first=AB'},
{'given=AB'},
{'editor-given=AB'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ E T A L >------------------------------------------------------------
]]
function p:test_etal()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'editor=Black AB; et al'}, -- name_has_etal()
{'editor=Black AB, et al'},
{'editor=Black AB et al'},
{'editor=Black AB "et al"'},
{'editor=Black AB \'et al\''},
{'editor=Black AB et. al.'},
{'editor=Black AB ET AL'},
{'editor=Black AB EtAl'},
{'editor=Black AB, \'\'et alia.\'\''},
{'editor=Black AB; and others'},
{'editor=Black AB; [[et al]]'},
{'editor=Black AB; [et al]'},
{'editor=Black AB; (et al)'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ E M P T Y _ C I T A T I O N >----------------------------------------
]]
function p:test_empty_citation()
self:preprocess_equals_preprocess_many(
'{{cite book/new', '}}', '{{cite book', '}}',
{
{''}, -- citation()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ D O I B R O K E N _ M I S S I N G _ D O I >--------------------------
]]
function p:test_doibroken_missing_doi()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'doi-broken-date=June 2020'}, -- citation()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ D E P R E C A T E D _ P A R A M S >----------------------------------
this here for completeness; can't test deprecated param error messaging without actual deprecated parameters; at
this writing, 2020-06-10 there are no deprecated parameters
]]
function p:test_deprecated_params()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'editors'}, -- citation()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C O N T R I B U T O R _ M I S S I N G _ R E Q U I R E D _ P A R A M >
]]
function p:test_contributor_missing_required_param()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |contributor=Contributor |', '}}', '{{cite book |title=عنوان |contributor=Contributor |', '}}',
{
{'contribution=Contribution'}, -- citation0()
{'author=Author'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C O N T R I B U T O R _ I G N O R E D >------------------------------
]]
function p:test_contributor_ignored()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |contributor=Contributor |journal= Journal', '}}', '{{cite journal |title=عنوان |contributor=Contributor |journal= Journal', '}}',
{
{''}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C L A S S _ I G N O R E D >------------------------------------------
]]
function p:test_class_ignored()
self:preprocess_equals_preprocess_many(
'{{cite arXiv/new |title=عنوان |author=Author |', '}}', '{{cite arXiv |title=عنوان |author=Author |', '}}',
{
{'arxiv=abc.de/9901333 |class=abc'}, -- arxiv() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C I T E S E E R X _ M I S S I N G >----------------------------------
]]
function p:test_citeseerx_missing()
self:preprocess_equals_preprocess_many(
'{{cite citeseerx/new |', '}}', '{{cite citeseerx |', '}}',
{
{'title=عنوان '}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C I T E _ W E B _ U R L >--------------------------------------------
]]
function p:test_cite_web_url()
self:preprocess_equals_preprocess_many(
'{{cite web/new |', '}}', '{{cite web |', '}}',
{
{'title=عنوان'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C I T E _ W E B _ U R L _ 2 >----------------------------------------
]]
function p:test_cite_web_url_2()
self:preprocess_equals_preprocess_many(
'{{citation/new |', '}}', '{{citation |', '}}',
{
{'title=عنوان |website=Website'}, -- citation0()
{'title=عنوان |script-website=ja:Website'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C I T A T I O N _ M I S S I N G _ T I T L E >------------------------
]]
function p:test_citation_missing_title()
self:preprocess_equals_preprocess_many(
'{{cite book/new |', '}}', '{{cite book |', '}}',
{
{'author=Author'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C I T A T I O N _ M I S S I N G _ T I T L E _ 2 >--------------------
]]
function p:test_citation_missing_title_2()
self:preprocess_equals_preprocess_many(
'{{cite episode/new |', '}}', '{{cite episode |', '}}',
{
{'author=Author'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ C H A P T E R _ I G N O R E D >--------------------------------------
]]
function p:test_chapter_ignored()
self:preprocess_equals_preprocess_many(
'{{cite news/new |title=عنوان |', '}}', '{{cite news |title=عنوان |', '}}',
{
{'chapter=Chapter'}, -- citation0()
{'chapter-url=//example.com'}, -- citation0()
{'trans-chapter=Trans-chapter'}, -- citation0()
{'script-chapter=ja:Script-chapter'}, -- citation0()
{'chapter-format=Chapter-format'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B I O R X I V _ M I S S I N G >--------------------------------------
]]
function p:test_biorxiv_missing()
self:preprocess_equals_preprocess_many(
'{{cite bioRxiv/new |', '}}', '{{cite bioRxiv |', '}}',
{
{'title=عنوان '}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A R E _ U R L _ M I S S I N G _ T I T L E >------------------------
]]
function p:test_bare_url_missing_title()
self:preprocess_equals_preprocess_many(
'{{cite book/new |', '}}', '{{cite book |', '}}',
{
{'title=عنوان |chapter-url=//example.com'}, -- citation0()
{'title=عنوان |conference-url=//example.com'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A R E _ U R L _ M I S S I N G _ T I T L E _ 2 >--------------------
]]
function p:test_bare_url_missing_title_2()
self:preprocess_equals_preprocess_many(
'{{cite map/new |', '}}', '{{cite map |', '}}',
{
{'title=عنوان |map-url=//example.com'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ Z B L >------------------------------------------------------
]]
function p:test_bad_zbl()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'zbl=ZBL'}, -- zbl() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ U S E N E T _ I D >------------------------------------------
]]
function p:test_bad_usenet_id()
self:preprocess_equals_preprocess_many(
'{{cite newsgroup/new |title=عنوان |', '}}', '{{cite newsgroup |title=عنوان |', '}}',
{
{'message-id=message-id'}, -- usenet_id() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ U R L >------------------------------------------------------
]]
function p:test_bad_url()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'url=example.com'}, -- zbl() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ S S R N >----------------------------------------------------
]]
function p:test_bad_ssrn()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'ssrn=SSRN'}, -- ssrn() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ S B N >------------------------------------------------------
]]
function p:test_bad_sbn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'sbn=123–456789'}, -- invalid character - sbn() (~/Identifiers)
{'sbn=12345678'}, -- improper length
{'sbn=123X45678'}, -- X in wrong spot
{'sbn=012345678'}, -- incorrect check digit
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ S 2 C I D >--------------------------------------------------
]]
function p:test_bad_s2cid()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'s2cid=S2CID'}, -- s2cid() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ O C L C >----------------------------------------------------
]]
function p:test_bad_oclc()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'oclc=OCLC'}, -- oclc() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ P M I D >----------------------------------------------------
]]
function p:test_bad_pmid()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'pmid=PMID'}, -- pmid() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ P M C >------------------------------------------------------
]]
function p:test_bad_pmc()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'pmc=PMC'}, -- pmc() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ P A R A M _ L I N K >----------------------------------------
]]
function p:test_bad_paramlink()
self:preprocess_equals_preprocess_many(
'{{cite book/new |', '}}', '{{cite book |', '}}',
{
{'title=[[Title]] |title-link=Title'}, -- link_title_ok()
{'title=عنوان |title-link=[[Title]]'}, -- link_title_ok()
{'title=عنوان |title-link=//example.com'}, -- link_title_ok()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ O L >--------------------------------------------------------
]]
function p:test_bad_ol()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'ol=OL'}, -- ol() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ M R >--------------------------------------------------------
]]
function p:test_bad_mr()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'mr=MR'}, -- mr() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ L C C N >----------------------------------------------------
]]
function p:test_bad_lccn()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'lccn=LCCN'}, -- lccn() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ J F M >------------------------------------------------------
]]
function p:test_bad_jfm()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'jfm=JFM'}, -- jfm() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ I S S N >----------------------------------------------------
]]
function p:test_bad_issn()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'issn=ISSN'}, -- issn() (~/Identifiers)
{'eissn=eISSN'}, -- issn() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ I S M N >----------------------------------------------------
]]
function p:test_bad_ismn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'ismn=ISMN'}, -- ismn() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ I S B N >----------------------------------------------------
]]
function p:test_bad_isbn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'isbn=0–1234567890'}, -- invalid character - ismn() (~/Identifiers)
{'isbn=01234567890X'}, -- length
{'isbn=01234X6789'}, -- X in the wrong spot
{'isbn=978-01234X6789'}, -- isbn13 is digits only
{'isbn=977-0123456789'}, -- 978 or 979 prefix only
{'isbn=979-0123456789'}, -- 9790 is ismn
{'isbn=978-0123456789'}, -- check digit
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ H D L >------------------------------------------------------
]]
function p:test_bad_hdl()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'hdl=HDL'}, -- hdl() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ D O I >------------------------------------------------------
]]
function p:test_bad_doi()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'doi=10.5555/12345678'}, -- invalid registrant - doi() (~/Identifiers)
{'doi=10.2343/1234 5678'}, -- space char in suffix
{'doi=11.2343/12345678'}, -- invalid prefix
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ D A T E >----------------------------------------------------
]]
function p:test_bad_date()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'date=DATE'}, -- citation0()
{'date=2020 |year=2019'}, -- mismatch
{'date=9201 |year=2019'}, -- mismatch with date error
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ C I T E S E E R X >------------------------------------------
]]
function p:test_bad_citeseerx()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'citeseerx=CITESEERX'}, -- citeseerx() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ B I O R X I V >----------------------------------------------
]]
function p:test_bad_biorxiv()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'biorxiv=BIORXIV'}, -- biorxiv() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ B I B C O D E >----------------------------------------------
]]
function p:test_bad_bibcode()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'bibcode=..................'}, -- length - bibcode() (~/Identifiers)
{'bibcode=0999...............'}, -- value; missing letter after year
{'bibcode=0999a..............'}, -- year < 1000
{'bibcode=0999ab&............'}, -- journal abbrev must not have '&.'
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ A S I N >----------------------------------------------------
]]
function p:test_bad_asin()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'asin=ASIN'}, -- asin() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B A D _ A R X I V >--------------------------------------------------
]]
function p:test_bad_arxiv()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'arxiv=ARXIV'}, -- arxiv() (~/Identifiers)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A R X I V _ M I S S I N G >------------------------------------------
]]
function p:test_arxiv_missing()
self:preprocess_equals_preprocess_many(
'{{cite arXiv/new |', '}}', '{{cite arXiv |', '}}',
{
{'author=Author |title=عنوان'}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A R C H I V E _ U R L >----------------------------------------------
]]
function p:test_archive_url()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'archive-url=//web.archive.org/save/'}, -- save - archive_url_check()
{'archive-url=//liveweb.archive.org/'}, -- obsolete liveweb url
{'archive-url=//web.archive.org/2020'}, -- old form url short time stamp
{'archive-url=//web.archive.org/web/2020'}, -- new form url short time stamp
{'archive-url=//web.archive.org/20200611000000id_/'}, -- old form without path and with flag
{'archive-url=//web.archive.org/path/20200611000000id_/'}, -- new form with malformed path and with flag
{'archive-url=//web.archive.org/web/20200611000000_id/'}, -- new form with path and with malformed flag
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A R C H I V E _ M I S S I N G _ U R L >------------------------------
]]
function p:test_archive_missing_url()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'archive-url=//archive.org |archive-date=2020-06-10 |url-status=live'}, -- live - citation0()
{'archive-url=//archive.org |archive-date=2020-06-10'}, -- anything else
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A P O S T R O P H E _ M A R K U P >----------------------------------
]]
function p:test_apostrophe_markup()
self:preprocess_equals_preprocess_many(
'{{cite news/new |title=عنوان |', '}}', '{{cite news |title=عنوان |', '}}',
{
{'newspaper=\'\'Newspaper\'\''}, -- citation0()
{'publisher=\'\'\'Newspaper\'\'\''}, -- citation0()
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A C C E S S D A T E _ M I S S I N G _ U R L >------------------------
]]
function p:test_accessdate_missing_url()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title=عنوان |journal=Journal |', '}}', '{{cite journal |title=عنوان |journal=Journal |', '}}',
{
{'access-date=2020-06-11'}, -- citation0()
{'pmc=12345 |access-date=2020-06-11'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ E X T R A _ T E X T >------------------------------------------------
]]
function p:test_extra_text()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'page=p. 35'},
{'edition=1st ed.'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ D I S P _ N A M E >--------------------------------------------------
]]
function p:test_disp_name()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'author=Author |display-authors=1'},
{'author=Author |contribution=Contribution |contributor=Contributor |display-contributors=1'},
{'editor=Editor |display-editors=1'},
{'interviewer=Interviewer |display-interviewers=1'},
{'translator=Translator |display-translators=1'},
{'author=Black AB |display-authors=etalia'}
},
{nowiki=false, templatestyles=true}
)
end
--[[==========================<< M A I N T C A T M E S S A G E S >>========================================
]]
--[[--------------------------< T E S T _ A S I N _ U S E S _ I S B N >----------------------------------------
]]
function p:test_ASIN_uses_ISBN()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'asin=412346789X'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A R C H I V E D _ C O P Y >------------------------------------------
]]
function p:test_Archived_copy()
self:preprocess_equals_preprocess_many(
'{{cite book/new |url=//example.com |archive-url=//archive.org |archive-date=2020-07-29 |', '}}', '{{cite book |url=//example.com |archive-url=//archive.org |archive-date=2020-07-29 |', '}}',
{
{'title=Archived copy'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A U T H O R S >------------------------------------------------------
]]
function p:test_Authors()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'authors=Authors'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ B O T : U N K N O W N >----------------------------------------------
]]
function p:test_Bot_unknown()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |url=//example.com |archive-url=//archive.org |archive-date=2020-07-29 |', '}}', '{{cite book |title=عنوان |url=//example.com |archive-url=//archive.org |archive-date=2020-07-29 |', '}}',
{
{'url-status=bot: unknown'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ D A T E _ F O R M A T >----------------------------------------------
]]
function p:test_Date_format()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'date=Jun-Jul 2020'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ D A T E _ Y E A R >--------------------------------------------------
]]
function p:test_Date_year()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'date=2020 |year=2020'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ D I S C O U R A G E D _ P A R A M >----------------------------------
]]
function p:test_Discourage_param()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'url=//example.com |accessdate=2020-04-09'},
{'url=//example.com |archive-url=//archive.org |archivedate=2020-04-09'},
{'url=//example.com |archiveurl=//archive.org |archive-date=2020-04-09'},
{'author=Blue |authorlink=Blue'},
{'author=Blue |author1link=Blue'},
{'author=Blue |authorlink1=Blue'},
{'date=2021 |origyear=1921'},
},
{nowiki=false, templatestyles=true}
)
self:preprocess_equals_preprocess_many(
'{{cite episode/new |series=Series |', '}}', '{{cite episode |series=Series |', '}}',
{
{'airdate=2021'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ E M B A R G O >------------------------------------------------------
]]
function p:test_Pmc_embargo_date()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'pmc=12345 |pmc-embargo-date=1 January 2020'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ E X T R A _ P U N C T >----------------------------------------------
]]
function p:test_Extra_punct()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'last=Surname,'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ E X T R A _ T E X T _ N A M E S >------------------------------------
]]
function p:test_Extra_text_names()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'author=Author (ed)'},
{'author=Author |contribution=Contribution |contributor=Contributor (ed)'},
{'editor=Editor (ed)'},
{'interviewer=Interviewer (ed)'},
{'translator=Translator (ed)'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ I G N O R E _ I S B N _ E R R >--------------------------------------
]]
function p:test_Ignore_isbn_err()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'isbn=((978-0123456789))'}, -- check digit
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ L O C A T I O N >----------------------------------------------------
]]
function p:test_Location()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'location=Sec. 6'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M U L T _ N A M E S >------------------------------------------------
]]
function p:test_Mult_names()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'author=Name, Name, Name'},
{'author=Author |contribution=Contribution |contributor=Name, Name, Name'},
{'editor=Name, Name, Name'},
{'interviewer=Name, Name, Name'},
{'translator=Name, Name, Name'},{'author=Name; Name'},
{'author=Author |contribution=Contribution |contributor=Name; Name'},
{'editor=Name; Name'},
{'interviewer=Name; Name'},
{'translator=Name; Name'},
{'author=Name; Name, Name'},
{'author=Name; Name, Name, Name'},
{'author=Name '},
{'author=Last, FI. MI.'},
{'last=Last |first=FI. MI.'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ N U M E R I C _ N A M E S >------------------------------------------
]]
function p:test_Numeric_names()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'author=1234'},
{'author=Author |contribution=Contribution |contributor=1234'},
{'editor=1234'},
{'interviewer=1234'},
{'translator=1234'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ O T H E R S >--------------------------------------------------------
]]
function p:test_Others()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'others=Name'},
},
{nowiki=false, templatestyles=true}
)
end
function p:test_Others_avmn()
self:preprocess_equals_preprocess_many(
'{{cite AV media/new |title=عنوان |', '}}', '{{cite AV media |title=عنوان |', '}}',
{
{'others=Name'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P M C _ F O R M A T >------------------------------------------------
]]
function p:test_Pmc_format()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'pmc=PMC12345'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ R E F _ H A R V >----------------------------------------------------
]]
function p:test_Ref_maint()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'ref=harv'},
{'author=Example|date=2008|ref=CITEREFExample2008'}
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ U N F I T >----------------------------------------------------------
]]
function p:test_Unfit()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |url=//example.com |archive-url=//archive.org |archive-date=2020-07-29 |', '}}', '{{cite book |title=عنوان |url=//example.com |archive-url=//archive.org |archive-date=2020-07-29 |', '}}',
{
{'url-status=unfit'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ U N K N O W N _ L A N G >--------------------------------------------
]]
function p:test_Unknown_lang()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'language=Taglish'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ U N T I T L E D >----------------------------------------------------
]]
function p:test_Untitled()
self:preprocess_equals_preprocess_many(
'{{cite journal/new |journal=Journal |', '}}', '{{cite journal |journal=Journal |', '}}',
{
{'title=none'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ Z B L >--------------------------------------------------------------
]]
function p:test_Zbl()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=عنوان |', '}}', '{{cite book |title=عنوان |', '}}',
{
{'zbl=07013361'},
},
{nowiki=false, templatestyles=true}
)
end
return p
efbb0bf30pn51vx975uvibq5wkcmt4p
وحدة:Citation/CS1/مختبر/identifiers
828
63199
275427
2026-09-15T08:58:55Z
حبيشان
29714
استيراد من ar.wiktionary.org
275427
Scribunto
text/plain
--[=[
Unit tests for [[Module:Citation/CS1/Identifiers]].
Click talk page to run tests.
]=]
local p = require('Module:UnitTests');
local live_cfg = mw.loadData ('Module:Citation/CS1/Configuration');
local new_cfg = mw.loadData ('Module:Citation/CS1/Configuration/ملعب');
--[[--------------------------< T O D A Y _ P L U S _ O F F S E T _ G E T >------------------------------------
returns date offset from today by <offset> in <format> (#time parser function formatting)
Y - four digit year
m - two digit month
M - abbreviated month name
F - full month name
d - zero-padded day
j - day without zero-padding
<offset> must include units: days, months, years
]]
local function today_plus_offset_get (format, offset)
return mw.getContentLanguage():formatDate(format, 'today ' .. offset and ('+ ' .. offset) or '');
end
--[[--------------------------< A R X I V _ 9 1 0 7 _ 0 7 0 3 >------------------------------------------------
]]
function p:test_arxiv_9107_0703()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
-- legitimate date range
{'arxiv=a.a/9007333'}, -- invalid yymm (fail)
{'arxiv=a.a/9106333'}, -- invalid yymm (fail)
{'arxiv=a.a/9107333'}, -- valid yymm (pass)
{'arxiv=a.a/0703333'}, -- valid yymm (pass)
{'arxiv=a.a/0704333'}, -- invalid yymm (fail)
{'arxiv=a.a/0803333'}, -- valid yymm (pass)
-- archive & class
{'arxiv=.a/9107333'}, -- without archive (fail)
{'arxiv=aa/9107333'}, -- without class (pass)
-- number
{'arxiv=aa/910722'}, -- not enough digits (fail)
{'arxiv=aa/91074444'}, -- too many digits (fail)
-- version
{'arxiv=a.a/9107333v'}, -- missing version number (fail)
{'arxiv=a.a/9107333v1'}, -- with version number (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< A R X I V _ 0 7 0 4 _ 1 4 1 2 >------------------------------------------------
]]
function p:test_arxiv_0704_1412()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
-- date range
{'arxiv=0612.4444'}, -- invalid yymm (fail)
{'arxiv=0703.4444'}, -- invalid yymm (fail)
{'arxiv=0704.4444'}, -- valid yymm (pass)
{'arxiv=1412.4444'}, -- valid yymm (pass)
{'arxiv=1413.4444'}, -- invalid yymm (fail)
{'arxiv=1501.4444'}, -- invalid yymm (fail)
-- number
{'arxiv=0704.333'}, -- not enough digits (fail)
{'arxiv=0704.55555'}, -- too many digits (fail)
-- version
{'arxiv=0704.4444v'}, -- missing version number (fail)
{'arxiv=0704.4444v1'}, -- with version number (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< A R X I V _ 1 5 0 1 >----------------------------------------------------------
]]
function p:test_arxiv_1501()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
-- date range
{'arxiv=1412.55555'}, -- invalid yymm (fail)
{'arxiv=1500.55555'}, -- invalid yymm (fail)
{'arxiv=1501.55555'}, -- valid yymm (pass)
{'arxiv=1513.55555'}, -- invalid yymm (fail)
-- number
{'arxiv=1501.4444'}, -- not enough digits (fail)
{'arxiv=1501.666666'}, -- too many digits (fail)
-- version
{'arxiv=1501.4444v'}, -- missing version number (fail)
{'arxiv=1501.4444v1'}, -- with version number (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< A S I N >----------------------------------------------------------------------
]]
function p:test_asin()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'asin=4-12346789X'}, -- invalid char: hyphen (fail)
{'asin=412346789'}, -- length (9) (fail)
{'asin=ABCDEFGHIJK'}, -- length (11) (fail)
{'asin=ABCDEFGHIJ'}, -- valid (pass)
{'asin=412346789X'}, -- valid (isbn) (pass)
{'asin=6302732913'}, -- valid (but not an isbn) (pass)
{'asin=ABCDEFGHIJ|asin-tld=com'}, -- invalid tld (fail)
{'asin=ABCDEFGHIJ|asin-tld=jp'}, -- valid tld (pass)
{'asin=ABCDEFGHIJ|asin-tld=uk'}, -- valid tld (pass)
{'asin=ABCDEFGHIJ|asin-tld=au'}, -- valid tld (pass)
{'asin=ABCDEFGHIJ|asin-tld=br'}, -- valid tld (pass)
{'asin=ABCDEFGHIJ|asin-tld=mx'}, -- valid tld (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< B I B C O D E >----------------------------------------------------------------
]]
function p:test_bibcode()
local this_year = today_plus_offset_get ('Y', '0 year'); -- get this year
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
-- years
{'bibcode=0999a&1.b2.c3.d4..e'}, -- invalid yyyy (fail)
{'bibcode=1000a&1.b2.c3.d4..e'}, -- valid yyyy (pass)
{'bibcode=' .. this_year .. 'a&1.b2.c3.d4..e'}, -- valid yyyy (pass)
{'bibcode=' .. today_plus_offset_get ('Y', '1 year') .. 'a&1.b2.c3.d4..e'}, -- valid yyyy (pass)
{'bibcode=' .. today_plus_offset_get ('Y', '2 year') .. 'a&1.b2.c3.d4..e'}, -- invalid yyyy (fail)
{'bibcode=' .. this_year .. '#&1.b2.c3.d4..e'}, -- invalid [5] (fail)
{'bibcode=' .. this_year .. 'a#1.b2.c3.d4..e'}, -- invalid [6] (fail)
{'bibcode=' .. this_year .. 'a&#.b2.c3.d4..e'}, -- invalid [7] (fail)
{'bibcode=' .. this_year .. 'a&1#b2.c3.d4..e'}, -- invalid [8] (fail)
{'bibcode=' .. this_year .. 'a&..b2.c3.d4..e'}, -- ampersand preceeds dot (fail)
{'bibcode=' .. this_year .. 'a&1.#2.c3.d4..e'}, -- invalid [9] (fail)
{'bibcode=' .. this_year .. 'a&1.b#.c3.d4..e'}, -- invalid [10] (fail)
{'bibcode=' .. this_year .. 'a&1.b2#c3.d4..e'}, -- invalid [11] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.#3.d4..e'}, -- invalid [12] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c#.d4..e'}, -- invalid [13] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c3#d4..e'}, -- invalid [14] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c3.#4..e'}, -- invalid [15] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c3.d#..e'}, -- invalid [16] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c3.d4#.e'}, -- invalid [17] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c3.d4.#e'}, -- invalid [18] (fail)
{'bibcode=' .. this_year .. 'a&1.b2.c3.d4..#'}, -- invalid [19] (fail)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< B I O R X I V >----------------------------------------------------------------
]]
function p:test_biorxiv()
local today = today_plus_offset_get ('Y.m.d', '0 year');
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
-- years
{'biorxiv=10.1100/666666'}, -- invalid prefix (fail)
{'biorxiv=10.1101/666666'}, -- valid prefix (pass)
{'biorxiv=11.1101/666666'}, -- invalid prefix (fail)
{'biorxiv=10.1101/55555'}, -- invalid identifier (fail)
{'biorxiv=10.1101/7777777'}, -- invalid identifier (fail)
----
{'biorxiv=10.1100/2019.12.10.666666'}, -- invalid date (fail)
{'biorxiv=10.1101/2019.12.11.666666'}, -- valid date (pass)
{'biorxiv=10.1101/2019.00.11.666666'}, -- invalid date (fail)
{'biorxiv=10.1101/2019.13.11.666666'}, -- invalid date (fail)
{'biorxiv=10.1101/2019.12.00.666666'}, -- invalid date (fail)
{'biorxiv=10.1101/2019.12.32.666666'}, -- invalid date (fail)
{'biorxiv=10.1101/' .. today .. '.666666'}, -- valid date (pass)
{'biorxiv=10.1101/' .. today_plus_offset_get ('Y.m.d', '1 year') .. '.666666'}, -- valid date (pass)
{'biorxiv=10.1101/' .. today .. '55555'}, -- invalid identifier (fail)
{'biorxiv=10.1101/' .. today .. '7777777'}, -- invalid identifier (fail)
{'biorxiv=10.1101/' .. today .. '.666666v'}, -- valid date (pass)
{'biorxiv=10.1101/' .. today .. '.666666v1'}, -- valid date (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< C I T E S E E R X >------------------------------------------------------------
]]
function p:test_citeseerx()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'citeseerx=11.1.1.1234.1234'}, -- invalid site id (fail)
{'citeseerx=10.0.1.1234.1234'}, -- invalid deployment id (fail)
{'citeseerx=10.1.0.1234.1234'}, -- invalid type (fail)
{'citeseerx=10.1.1.0234.1234'}, -- invalid bin (fail)
{'citeseerx=10.1.1.1234.0234'}, -- invalid record (fail)
{'citeseerx=10.1.1.1234.1234'}, -- invalid record (fail)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< D O I >------------------------------------------------------------------------
]]
function p:test_doi()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'doi=10.1000/something'}, -- valid directory indicator (pass)
{'doi=11.1000/something'}, -- invalid directory indicator (fail)
{'doi=10.10 00/something'}, -- invalid registrant (fail)
{'doi=10.5555/something'}, -- invalid registrant (fail)
{'doi=10.666666/something'}, -- invalid registrant (fail)
-- four digit < registrant w/o subcode
{'doi=10.1/something'}, -- invalid registrant (fail)
{'doi=10.22/something'}, -- invalid registrant (fail)
{'doi=10.333/something'}, -- invalid registrant (fail)
-- four digit < registrant w/ subcode
{'doi=10.1.1/something'}, -- valid registrant (pass)
{'doi=10.22.1/something'}, -- valid registrant (pass)
{'doi=10.333.1/something'}, -- valid registrant (pass)
-- four digit registrant w/o subcode
{'doi=10.0999/something'}, -- invalid registrant (fail)
{'doi=10.1000/something'}, -- valid registrant (pass)
{'doi=10.9999/something'}, -- valid registrant (pass)
-- four digit registrant w/ subcode
{'doi=10.0999.1/something'}, -- invalid registrant (fail)
{'doi=10.1000.1/something'}, -- valid registrant (pass)
{'doi=10.9999.1/something'}, -- valid registrant (pass)
-- five digit registrant w/o subcode
{'doi=10.09999/something'}, -- invalid registrant (fail)
{'doi=10.10000/something'}, -- valid registrant (pass)
{'doi=10.59999/something'}, -- valid registrant (pass)
{'doi=10.60000/something'}, -- invalid registrant (fail)
-- five digit registrant w/ subcode
{'doi=10.09999.1/something'}, -- invalid registrant (fail)
{'doi=10.10000.1/something'}, -- valid registrant (pass)
{'doi=10.39999.1/something'}, -- valid registrant (pass)
{'doi=10.40000.1/something'}, -- invalid registrant (fail)
-- terminal punctuation
{'doi=10.1000/something.'}, -- trailing dot (fail)
{'doi=10.1000/something,'}, -- trailing comma (fail)
{'doi=10.1000/some thing'}, -- space character in identifier (fail)
-- doi-broken date
{'doi=10.1000/something |doi-broken-date=2020'}, -- valid doi-broken date (pass)
{'doi=10.1000/something |doi-broken-date=January 1900'}, -- valid doi-broken date (pass) TODO: valid but not valid; limit to same-as-access-date?
{'doi=10.1000/something |doi-broken-date=XXXX'}, -- invalid doi-broken date (fail)
{'doi=10.1000/something |doi-broken-date=January 3500'}, -- invalid doi-broken date (fail)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< H D L >------------------------------------------------------------------------
]]
function p:test_hdl()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'hdl=abc 123/abc123'}, -- invalid prefix (fail)
{'hdl=abc–123/abc123'}, -- invalid prefix (fail)
{'hdl=abc123/abc 123'}, -- invalid suffix (fail)
{'hdl=abc123/abc–123'}, -- invalid suffix (fail)
{'hdl=abc123/abc123.'}, -- trailing dot (fail)
{'hdl=abc123/abc123,'}, -- trailing comma (fail)
{'hdl=abc123/abc123'}, -- valid (pass)
-- query strings
{'hdl=abc123/abc123?not_a_query=string'}, -- valid (pass)
{'hdl=abc123/abc123?noredirect=string'}, -- valid (pass) TODO: does this take a value?
{'hdl=abc123/abc123?ignore_aliases=string'}, -- valid (pass) TODO: does this take a value?
{'hdl=abc123/abc123?auth=string'}, -- valid (pass) TODO: does this take a value?
{'hdl=abc123/abc123?cert=string'}, -- valid (pass) TODO: does this take a value?
{'hdl=abc123/abc123?index=string'}, -- valid (pass)
{'hdl=abc123/abc123?type=string'}, -- valid (pass)
{'hdl=abc123/abc123?urlappend=string'}, -- valid (pass)
{'hdl=abc123/abc123?locatt=string'}, -- valid (pass)
{'hdl=abc123/abc123?action=string'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ I S B N >------------------------------------------------------------
]]
function p:test_isbn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'isbn=3–123467899'}, -- invalid character (ndash) (fail)
{'isbn=312346789'}, -- length (9) (fail)
{'isbn=31234678999'}, -- length (11) (fail)
{'isbn=41234678X9'}, -- X in the wrong spot (fail)
{'isbn=3123467896'}, -- checkdigit (fail)
{'isbn=3123467899'}, -- valid (pass)
{'isbn=412346789X'}, -- valid (pass)
{'isbn=3-123467899'}, -- valid (pass)
{'isbn=4-12346789X'}, -- valid (pass)
{'isbn=3 123467899'}, -- valid (pass)
{'isbn=4 12346789X'}, -- valid (pass)
{'isbn=978-01234567866'}, -- length (14) (fail)
{'isbn=978-012345678'}, -- length (12) (fail)
{'isbn=978-012345678X'}, -- isbn13 is digits only (fail)
{'isbn=977-0123456786'}, -- 978 or 979 prefix only (fail)
{'isbn=979-0123456785'}, -- 9790 is ismn (fail)
{'isbn=978-0123456788'}, -- check digit (fail)
{'isbn=9780123456786'}, -- valid 978 (pass)
{'isbn=9791123456782'}, -- valid 979 (pass)
{'isbn=978-0123456786'}, -- valid 978 (pass)
{'isbn=979-1123456782'}, -- valid 979 (pass)
{'isbn=978 0123456786'}, -- valid 978 (pass)
{'isbn=979 1123456782'}, -- valid 979 (pass)
{'isbn=3123467896 |ignore-isbn-error=yes'}, -- checkdigit (pass)
{'isbn=3123467899 |ignore-isbn-error=yes'}, -- valid (pass)
{'isbn=978-0123456788 |ignore-isbn-error=yes'}, -- check digit (pass)
{'isbn=9780123456786 |ignore-isbn-error=yes'}, -- valid 978 (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ I S M N >------------------------------------------------------------
]]
function p:test_ismn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'ismn=979-01234567856'}, -- length (14) (fail)
{'ismn=979-012345678'}, -- length (12) (fail)
{'ismn=979-012345678X'}, -- digits only (fail)
{'ismn=979-1123456782'}, -- group designator must be 0 (fail)
{'ismn=979-0123456788'}, -- check digit (fail)
{'ismn=979–0123456785'}, -- valid (pass)
{'ismn=9790123456785'}, -- valid (pass)
{'ismn=979-0123456785'}, -- valid (pass)
{'ismn=979 0123456785'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ I S S N >------------------------------------------------------------
]]
function p:test_issn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'issn=0123-45601'}, -- length (9) (fail)
{'issn=0123-456'}, -- length (7) (fail)
{'issn=7123-45X6'}, -- X mispositioned (fail)
{'issn=0123-4566'}, -- check digit (fail)
{'issn=0123–4560'}, -- valid (pass)
{'issn=01234560'}, -- valid (pass)
{'issn=7123-456X'}, -- valid (pass)
{'issn=7123 456X'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ J F M >--------------------------------------------------------------
]]
function p:test_jfm()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'jfm=1.4444.22'}, -- missing digit (fail)
{'jfm=22.333.22'}, -- missing digit (fail)
{'jfm=22.4444.1'}, -- missing digit (fail)
{'jfm=333.4444.22'}, -- to many digit (fail)
{'jfm=22.55555.22'}, -- to many digit (fail)
{'jfm=22.4444.333'}, -- to many digit (fail)
{'jfm=224444.22'}, -- missing separator (fail)
{'jfm=22.444422'}, -- missing separator (fail)
{'jfm=jfm22.4444.22'}, -- jfm prefix (pass)
{'jfm=22.4444.22'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ L C C N >------------------------------------------------------------
]]
function p:test_lccn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
-- length 8
{'lccn=7777777'}, -- missing digit (fail)
{'lccn=8888888a'}, -- not all digit (fail)
{'lccn=888 8888'}, -- space (fail)
{'lccn=88888888'}, -- valid (pass)
-- length 9
{'lccn=999999999'}, -- to many digit (fail)
{'lccn=A99999999'}, -- case (fail)
{'lccn=a99999999'}, -- valid (pass)
-- length 10
{'lccn=a000000000'}, -- not all digit (fail)
{'lccn=AA00000000'}, -- case (fail)
{'lccn=000 000000'}, -- space (fail) TODO: fix this: renders as 000000 000 000000
{'lccn=0000000000'}, -- valid (pass)
{'lccn=aa00000000'}, -- valid (pass)
-- length 11
{'lccn=11111111111'}, -- all digit (fail)
{'lccn=aa111111111'}, -- not enough alpha (fail)
{'lccn=A1111111111'}, -- case (fail)
{'lccn=AAA11111111'}, -- case (fail)
{'lccn=a1111111111'}, -- valid (pass)
{'lccn=aaa11111111'}, -- valid (pass)
-- length 12
{'lccn=222222222222'}, -- all digit (fail)
{'lccn=a22222222222'}, -- not enough alpha (fail)
{'lccn=AA2222222222'}, -- case (fail)
{'lccn=aa2222222222'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M R >----------------------------------------------------------------
]]
function p:test_mr()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'mr=88888888'}, -- to many digit (fail)
{'mr=a777777'}, -- non-digit (fail)
{'mr=7777777'}, -- valid (pass)
{'mr=MR7777777'}, -- valid (pass)
{'mr=MR7'}, -- zero fill valid (pass)
{'mr=7'}, -- zero fill valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ O C L C >------------------------------------------------------------
]]
function p:test_oclc()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'oclc=ocm8888888'}, -- not enough digit (fail)
{'oclc=ocm888888888'}, -- too many digit (fail)
{'oclc=OCM88888888'}, -- case (fail)
{'oclc=ocm88888888'}, -- valid (pass)
{'oclc=ocn99999999'}, -- not enough digit (fail)
{'oclc=ocn9999999999'}, -- too many digit (fail)
{'oclc=OCN999999999'}, -- case (fail)
{'oclc=ocn999999999'}, -- valid (pass)
{'oclc=on000000000'}, -- not enough digit (fail)
{'oclc=ON0000000000'}, -- case (fail)
{'oclc=on0000000000'}, -- valid (pass)
{'oclc=(OCoLC)07'}, -- leading 0 (fail)
{'oclc=(OCoLC)9999999999'}, -- too many digit (fail)
{'oclc=(ocolc)07'}, -- case (fail)
{'oclc=OCoLC9'}, -- missing parentheses (fail)
{'oclc=(OCoLC)9'}, -- valid (pass)
{'oclc=(OCoLC)999999999'}, -- valid (pass)
{'oclc=00000000000'}, -- too many digit (fail)
{'oclc=000X000000'}, -- non-digit (fail)
{'oclc=0000000000'}, -- valid (pass)
{'oclc=0'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ O L >----------------------------------------------------------------
]]
function p:test_ol()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'ol=OLA'}, -- no digit (fail)
{'ol=ol22A'}, -- prefix case (fail)
{'ol=LO22A'}, -- invalid prefix (fail)
{'ol=OL 22A'}, -- space (fail)
{'ol=333'}, -- no suffix (fail)
{'ol=333a'}, -- suffix case (fail)
{'ol=333m'}, -- suffix case (fail)
{'ol=333w'}, -- suffix case (fail)
{'ol=333R'}, -- unknown suffix (fail)
{'ol=OL4444A'}, -- valid (pass)
{'ol=4444A'}, -- valid (pass)
{'ol=OL55555M'}, -- valid (pass)
{'ol=55555M'}, -- valid (pass)
{'ol=OL666666W'}, -- valid (pass)
{'ol=666666W'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P M C >--------------------------------------------------------------
]]
function p:test_pmc()
local limit = live_cfg.id_handlers['PMC'].id_limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'pmc=PMC'}, -- no digit (fail)
{'pmc=0'}, -- out of bounds (fail)
{'pmc=1'}, -- in bounds (pass)
{'pmc=' .. limit}, -- in bounds (pass)
{'pmc=' .. limit+1}, -- out of bounds (fail)
{'pmc=PMC1'}, -- valid (pass)
{'pmc=PMC1 |doi=10.1000/something |doi-access=free'}, -- title linked from pmc
{'pmc=22 |pmc-embargo-date=' .. today_plus_offset_get ('Y-m-d', '1 days')}, -- valid still embargoed
{'pmc=22 |pmc-embargo-date=' .. today_plus_offset_get ('Y-m-d', '0 days')}, -- valid (pass)
{'pmc=22 |pmc-embargo-date=' .. today_plus_offset_get ('F j, Y', '0 days')}, -- valid (pass)
{'pmc=22 |pmc-embargo-date=' .. today_plus_offset_get ('j F Y', '0 days')}, -- valid (pass)
{'pmc=22 |pmc-embargo-date=' .. today_plus_offset_get ('F Y', '0 days')}, -- valid (pass)
{'pmc=22 |pmc-embargo-date=' .. today_plus_offset_get ('Y', '0 days')}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
limit = new_cfg.id_handlers['PMC'].id_limit; -- get samdbox limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Sandbox limit test |', '}}', '{{cite book |title=Sandbox limit test |', '}}',
{
{'pmc=' .. limit}, -- in bounds (pass)
{'pmc=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ P M I D >------------------------------------------------------------
]]
function p:test_pmid()
local limit = live_cfg.id_handlers['PMID'].id_limit or 0
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'pmid=pmid'}, -- no digit (fail)
{'pmid=0'}, -- out of bounds (fail)
{'pmid=1'}, -- in bounds (pass)
{'pmid=' .. limit}, -- in bounds (pass)
{'pmid=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)
limit = new_cfg.id_handlers['PMID'].id_limit; -- get samdbox limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Sandbox limit test |', '}}', '{{cite book |title=Sandbox limit test |', '}}',
{
{'pmid=' .. limit}, -- in bounds (pass)
{'pmid=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ S 2 C I D >----------------------------------------------------------
]]
function p:test_s2cid()
local limit = live_cfg.id_handlers['S2CID'].id_limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'s2cid=s2cid'}, -- no digit (fail)
{'s2cid=0'}, -- out of bounds (fail)
{'s2cid=1'}, -- in bounds (pass)
{'s2cid=' .. limit}, -- in bounds (pass)
{'s2cid=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)
limit = new_cfg.id_handlers['S2CID'].id_limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Sandbox limit test |', '}}', '{{cite book |title=Sandbox limit test |', '}}',
{
{'s2cid=' .. limit}, -- in bounds (pass)
{'s2cid=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)end
--[[--------------------------< T E S T _ S B N >--------------------------------------------------------------
]]
function p:test_sbn()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'sbn=0–12345679'}, -- invalid character (ndash) (fail)
{'sbn=01234567'}, -- length (8) (fail)
{'sbn=0123456799'}, -- length (10) (fail)
{'sbn=6123456X7'}, -- X in the wrong spot (fail)
{'sbn=012345678'}, -- checkdigit (fail)
{'sbn=012345679'}, -- valid (pass)
{'sbn=61234567X'}, -- valid (pass)
{'sbn=0-12345679'}, -- valid (pass)
{'sbn=6-1234567X'}, -- valid (pass)
{'sbn=0 12345679'}, -- valid (pass)
{'sbn=6 1234567X'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ S S R N >------------------------------------------------------------
]]
function p:test_ssrn()
local limit = live_cfg.id_handlers['SSRN'].id_limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'ssrn=ssrn'}, -- no digit (fail)
{'ssrn=99'}, -- out of bounds (fail)
{'ssrn=100'}, -- in bounds (pass)
{'ssrn=' .. limit}, -- in bounds (pass)
{'ssrn=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)
limit = new_cfg.id_handlers['SSRN'].id_limit
self:preprocess_equals_preprocess_many(
'{{cite book/new |title=Sandbox limit test |', '}}', '{{cite book |title=Sandbox limit test |', '}}',
{
{'ssrn=' .. limit}, -- in bounds (pass)
{'ssrn=' .. limit+1}, -- out of bounds (fail)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ M E S S A G E - I D >------------------------------------------------
]]
function p:test_message_id()
self:preprocess_equals_preprocess_many(
'{{cite newsgroup/new |title= عنوان|', '}}', '{{cite newsgroup |title= عنوان|', '}}',
{
{'message-id=something'}, -- missing '@' (fail)
{'message-id=<something@somewhere'}, -- leading '<' (fail)
{'message-id=something@somewhere>'}, -- trailing '>' (fail)
{'message-id=something@somewhere'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ Z B L >--------------------------------------------------------------
]]
function p:test_zbl()
self:preprocess_equals_preprocess_many(
'{{cite newsgroup/new |title= عنوان|', '}}', '{{cite newsgroup |title= عنوان|', '}}',
{
{'zbl=7777777'}, -- length (temp form) (fail)
{'zbl=999999999'}, -- length (temp form) (fail)
{'zbl=aaaaaaaa'}, -- must be digits (temp form) (fail)
{'zbl=88888888'}, -- valid (temp form) (pass)
{'zbl=444455555'}, -- missing dot (fail)
{'zbl=333.666666'}, -- dot misplaced (fail)
{'zbl=4444.55555'}, -- valid (pass)
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A U T O _ L I N K >----------------------------------------=========
]]
function p:test_auto_link()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|doi-access=free |', '}}', '{{cite book |title= عنوان|doi-access=free |', '}}',
{
{'doi=10.1000/something'}, -- title not linked
{'pmc=1 |doi=10.1000/something'}, -- title not linked
},
{nowiki=false, templatestyles=true}
);
self:preprocess_equals_preprocess_many(
'{{cite journal/new |title= عنوان|journal=Journal |', '}}', '{{cite journal |title= عنوان|journal=Journal |', '}}',
{
{'doi=10.1000/something |doi-access=free |doi-broken-date=2020-09-09'}, -- title linked by doi; TODO: but should it be linked?
{'doi=10.1000/some thing |doi-access=free'}, -- title linked by doi; TODO: but should it be linked?
{'doi=10.1000/something |doi-access=free'}, -- title linked by doi
{'pmc=1 |doi=10.1000/something |doi-access=free |pmc-embargo-date=' .. today_plus_offset_get ('Y-m-d', '1 days')}, -- embargoed pmc; title linked by doi
{'pmc=1 |doi=10.1000/something |doi-access=free'}, -- title linked by pmc
{'pmc=1 |pmc-embargo-date=' .. today_plus_offset_get ('Y-m-d', '1 days')}, -- title not linked
{'pmc=0 |pmc-embargo-date=' .. today_plus_offset_get ('Y-m-d', '1 days')}, -- title not linked
{'pmc=0 |doi=10.1000/something |doi-access=free'}, -- title linked by pmc; TODO: but shouldn't it be linked by doi?
{'pmc=0 |doi=10.1000/something |doi-access=free |doi-broken-date=2020-09-09'}, -- title linked by pmc; TODO: should not be linked?
{'pmc=0 |doi=10.1000/something |doi-access=free |doi-broken-date=2020-09-09 |pmc-embargo-date=' .. today_plus_offset_get ('Y-m-d', '1 days')}, -- title linked by pmc; TODO: should not be linked?
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A C C E S S _ I C O N S >--------------------------------------------
]]
function p:test_access_icons()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'bibcode=1000a&1.b2.c3.d4..e |bibcode-access=free'},
{'doi=10.1000/something |doi-access=free'},
{'hdl=abc123/abc123 |hdl-access=free'},
{'jstor=12345 |jstor-access=free'},
{'ol=OL4444A |ol-access=free'},
{'osti=15005772 |osti-access=free'},
{'s2cid=30337924 |s2cid-access=free'},
},
{nowiki=false, templatestyles=true}
)
end
--[[--------------------------< T E S T _ A C C E P T _ A S _ W R I T T E N >----------------------------------
]]
function p:test_accept_as_written()
self:preprocess_equals_preprocess_many(
'{{cite book/new |title= عنوان|', '}}', '{{cite book |title= عنوان|', '}}',
{
{'doi=((10.1000/something.))'},
{'eissn=((0123-4566))'}, -- check digit (fail)
{'isbn=((3123467896))'}, -- checkdigit (fail)
{'isbn=((978-01234567866))'}, -- length (14) (fail)
{'isbn=((978-0123456788))'}, -- check digit (fail)
{'issn=((0123-4566))'}, -- check digit (fail)
{'sbn=((012345678))'}, -- checkdigit (fail)
},
{nowiki=false, templatestyles=true}
)
end
return p
o9xgp47nzjvskfe54ir1nw9ojdv9tbq
وحدة:Citation/CS1/مختبر/شرح
828
63200
275428
2026-09-15T08:58:58Z
حبيشان
29714
استيراد من ar.wiktionary.org
275428
wikitext
text/x-wiki
phoiac9h4m842xq45sp7s6u21eteeq1
وحدة:Citation/CS1/مختبر1
828
63201
275429
2026-09-15T08:59:02Z
حبيشان
29714
استيراد من ar.wiktionary.org
275429
Scribunto
text/plain
-- Unit tests for [[Module:Citation/CS1]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_encyclopedia()
self:preprocess_equals_preprocess_many('{{cite encyclopedia/new|', '}}', '{{cite encyclopedia|', '}}', {
{
[==[
last= LAST
|first= FIRST
|author-link= author-link
|editor-first= EDITOR-FIRST
|editor-last= EDITOR-LAST
|editor-link= EDITOR-LINK
|encyclopedia= ENCYCLOPEDIA
|title= TITLE
|trans-title= TRANS-TITLE
|url=https://en.wikipedia.org/Main_Page
|access-date= access-date
|language= LANGUAGE
|edition= EDITION
|date= DATE
|year= YEAR
|publisher= PUBLISHER
|volume= VOLUME
|location= LOCATION
|id= ID
|isbn= ISBN
|oclc= OCLC
|doi= 10.DOI
|pages= PAGES
|quote= QUOTE
|ref= REF
]==]
},{
[==[
last =Golden
|first = Peter B.
|author-link =Peter Benjamin Golden
|editor1-last = Golden
|editor1-first = Peter B.
|editor1-link = Peter Benjamin Golden
|editor2-last = Ben-Shammai,
|editor2-first = Haggai
|editor3-last = Róna-Tas
|editor3-first = András
|editor3-link = András Róna-Tas
|encyclopedia = The World of the Khazars: New Perspectives
|title = Khazar Studies: Achievements and Perspectives
|series = Handbook of Oriental Studies
|volume = 17
|publisher = BRILL
|year = 2007a
|pages = 7–57
|isbn = 978-9-004-16042-2
|url = http://books.google.com/books?id=3ZzXjdyK-CEC&pg=PR2#v=onepage&p=123
|access-date = February 13, 2013
]==]
}, {
[==[
title=Idaho – MSN Encarta <!-- BOT GENERATED TITLE -->|url=http://encarta.msn.com/encyclopedia_761565515/Idaho.html | archive-url=http://www.webcitation.org/query?id=1257036681681058 | archive-date=2009-11-01|url-status=dead
]==]
}, {
[==[
url= http://encarta.msn.com/encyclopedia_761594679/martina_hingis.html | title=Martina Hingis | publisher=[[Encarta]] | access-date=31 October 2008 | archive-url=http://www.webcitation.org/5kx7RAO3G | archive-date=1 November 2009|url-status=dead
]==]
}, {
[==[
archive-url=http://www.webcitation.org/5kwbxqnne | url-status=dead | archive-date=31 October 2009 | title=Europe | last=Microsoft Encarta Online Encyclopaedia 2007 | url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html | access-date=27 December 2007
]==]
}, {
[==[
last=Seberg |first=Ole |year=2007 |editor-last=Heywood |editor-first=Vernon H. |editor2-last=Brummitt |editor2-first=Richard K. |editor3-last=Culham |editor3-first=Alastair |contribution=Alliaceae |title=Flowering Plant Families of the World |pages=340–341 |publication-place=Richmond Hill, Ontario |publisher=Firefly Books |isbn=978-1-55407-206-4 |name-list-style=amp
]==]
}, {
[==[
chapter=Lewinsky scandal |title=The Columbia Encyclopedia, Sixth Edition |publisher=Columbia University Press |year=2008 |url=http://www.encyclopedia.com/topic/Lewinsky_scandal.aspx |access-date=February 9, 2010
]==]
}, {
[==[
last = Gerish | first = Deborah | title = Aimery of Lusignan | editor = Alan V. Murray | encyclopedia = The Crusades: An Encyclopedia | volume = 1 | pages = 24 | publisher = [[ABC-CLIO]] | location = [[Santa Barbara, California|Santa Barbara]] | year = 2006 | url = http://books.google.com/books?id=6cSXSgAACAAJ | oclc = 70122512
]==]
}, {
[==[
author=Skousen, Royal | author-link=Royal Skousen | title=Book of Mormon Editions (1830-1981) | encyclopedia=[[Encyclopedia of Mormonism]] | year=1992 | volume=1 | pages=175–6 | publisher=[[Macmillan Publishers (United States)|Macmillan]] | url=http://eom.byu.edu/index.php/Book_of_Mormon_Editions_(1830-1981) | access-date=2009-02-12
]==]
}, {
[==[
last = Morère
| first = J. E.
| title = Aguilon, François d'
| encyclopedia = [[Dictionary of Scientific Biography]]
| volume = 1
| pages = 81
| publisher = Charles Scribner's Sons
| location = New York
| year = 1970
| isbn = 0-684-10114-9
]==]
}, {
[==[
title = Clipper
| encyclopedia = New International Encyclopaedia
| volume = 5
| pages = 39
| publisher = Dodd Mead and Company
| year = 1909
| quote = Clipper ... probably connected with Dutch ''klepper'', fast horse
| url = http://books.google.com/?id=qycVAAAAYAAJ&dq=%22clipper%20ship%22&pg=PA39#v=onepage
| access-date =6 Mar. 2010
]==]
}, {
[==[
last= Smith |first= Peter |encyclopedia= A concise encyclopedia of the Bahá'í Faith |title= satan |year= 2000 |publisher=Oneworld Publications |location= Oxford |isbn= 1-85168-184-1 |pages= 304
]==]
}, {
[==[
chapter=Ethanol|title=[[#Encyc Chem|Encyclopedia of chemical technology]]|year=1991|page=813|volume=9
]==]
}, {
[==[
first = William A.
| last = Wallace
| title = Albertus Magnus, Saint
| url = http://www.u.arizona.edu/~aversa/scholastic/Dictionary of%20Scientific%20Biography/Albertus%20Magnus%20(Wallace).pdf
| publisher = Scribner & American Council of Learned Societies
| isbn = 978-0-684-10114-9
| editor-last = Gillispie
| editor-first = Charles
| encyclopedia = [[Dictionary of Scientific Biography]]
| volume=1
| pages=99-103
| location = New York
| year = 1970
]==]
}, {
[==[
last=Kukathas |first=Chandran |author-link=Chandran Kukathas |year=1998 |title=Rand, Ayn (1905–82) |editor-last=Craig |editor-first=Edward (ed) |encyclopedia=[[Routledge Encyclopedia of Philosophy]] |location=New York |publisher=Routledge |volume=8 |pages=55–56 |isbn=0-415-07310-3 |oclc=318280731
]==]
}, {
[==[
last=Morse |first=Stephen J. |encyclopedia=Law Library - American Law and Legal Information |title=Psychopathy - What Is Psychopathy? |url=http://law.jrank.org/pages/1884/Psychopathy-What-psychopathy.html |access-date=2008-09-25 |volume=Crime and Justice Vol 3|archive-url=http://www.webcitation.org/5b5vnGYP0 |archive-date=2008-09-25
]==]
}, {
[==[
last= Smith|first= Peter |encyclopedia= A concise encyclopedia of the Bahá'í Faith|title= burial, "death and afterlife", evil, evil spirits, sin |year= 2000|publisher=Oneworld Publications|location= Oxford |isbn= 1-85168-184-1|pages= 96–97, 118–119, 135–136, 322–323
]==]
}, {
[==[
last=Hodges |first=Andrew |editor=Edward N. Zalta |encyclopedia=[[Stanford Encyclopedia of Philosophy]] |title=Alan Turing |url=http://plato.stanford.edu/entries/turing/ |access-date=10 January 2011 |edition=Winter 2009 |date=27 August 2007 |publisher=[[Stanford University]]
]==]
}, {
[==[
editor=[[Pete Palmer]] and Gary Gillette|encyclopedia=The 2005 ESPN Baseball Encyclopedia|title=Introduction|edition=1st Edition|year=2005|publisher=Sterling|location=New York|isbn=1-4027-2568-X
]==]
}, {
[==[
first = Ernan
| last = McMullin
| title = Robert Bellarmine
| url = http://www.encyclopedia.com/topic/Robert_Bellarmine.aspx#1
| publisher = Scribner & American Council of Learned Societies
| editor-last = Gillispie
| editor-first = Charles
| encyclopedia = [[Dictionary of Scientific Biography]]
| year = 2008
]==]
}, {
[==[
last= |first= | author-link= | title=Islam |year=2007| encyclopedia=Encyclopædia Britannica Online | access-date=2007-11-27|location=|publisher=|url=http://www.britannica.com/eb/article-69190/Islam
]==]
}, {
[==[
author=Bliss, Michael |year=2002 |title=Macleod, John James Rickard |url=http://www.thecanadianencyclopedia.com/articles/john-james-rickard-macleod |encyclopedia=Canadian Encyclopedia
]==]
}, {
[==[
title=Penderecki, Krzysztof|last=Thomas|first=Adrian|editor-last=Sadie|editor-first=Stanley|location=London, England|year=1992|encyclopedia=[[New Grove Dictionary of Opera]]|ISBN=0-333-73432-7
]==]
}, {
[==[
encyclopedia=[[Encyclopedia of Arkansas History & Culture]]|title=Louisiana Purchase|first=Lea Flowers|last=Baker|access-date=2010-09-18|url=http://encyclopediaofarkansas.net/encyclopedia/entry-detail.aspx?entryID=2383
]==]
}, {
[==[
title=Cervantes, Miguel de|encyclopedia=The Encyclopedia Americana|year=1994
]==]
}, {
[==[
editor=Robert M. Besançon | encyclopedia=The Encyclopedia of Physics | edition=3rd | year=1990 | publisher=Van Nostrand Reinhold, New York | isbn = 0-442-00522-9 | pages = 1278–1284 | article=Vacuum Techniques
]==]
}, {
[==[
last = McFarlane | first = Ian | author-link = Ian McFarlane | encyclopedia = [[Encyclopedia of Australian Rock and Pop]] | title = Whammo Homepage | url = http://web.archive.org/web/20040405231007/www.whammo.com.au/index.asp | access-date =4 December 2010 | year = 1999 | publisher=[[Allen & Unwin]] | location = [[St Leonards, New South Wales|St Leonards, NSW]] | isbn = 1-86508-072-1
]==]
}, {
[==[
last = Campbell
| first = J.
| author-link =
| title = Rædwald
| url = http://www.oxforddnb.com/view/article/23265?docPos=1
| encyclopedia = [[Dictionary of National Biography]]
| year = 2004
| editor-last =
| editor-first =
| editor-link =
| volume =
| location =
| doi = 10.1093/ref:odnb/23265
| publisher = Oxford University Press
]==]
}, {
[==[
title=Avicenna | encyclopedia=Encyclopaedia of Islam Online
]==]
}, {
[==[
title=Islam|encyclopedia=Encyclopaedia of Islam Online|author=L. Gardet|author2=J. Jomier
]==]
}, {
[==[
first=Ted |last=Honderich |author-link=Ted Honderich |year=2005 |title=theodicy |encyclopedia=The Oxford Companion to Philosophy |isbn=0-19-926479-1 |quote=[[John Hick]], for example, proposes a theodicy, while [[Alvin Plantinga]] formulates a defence. The idea of human free will often appears in a both of these strategies, but in different ways.
]==]
}, {
[==[
title=AskOxford Search Results – terrorist |encyclopedia=AskOxford |publisher=AskOxford |access-date=2008-07-11 |no-tracking=true
]==]
}, {
[==[
title = Virus.VBS.Redlof.a | encyclopedia = Virus Encyclopedia | publisher = Viruslist.com | date = January 15, 2004 | url = http://www.viruslist.com/viruses/encyclopedia?virusid=25409 | access-date =August 26, 2007
]==]
}, {
[==[
title=Matthew, Tobie (1544?–1628)
|last=Sheils
|first=William Joseph
|encyclopedia=Oxford Dictionary of National Biography
|publisher=Oxford University Press
|year=2004
]==]
}, {
[==[
editor = Thomas Hockey et al. | last = Dalen | first = Benno van | title=Ulugh Beg: Muḥammad Ṭaraghāy ibn Shāhrukh ibn Tīmūr | encyclopedia = The Biographical Encyclopedia of Astronomers | publisher=Springer | year = 2007 | location = New York | pages = 1157–9 | url=http://islamsci.mcgill.ca/RASI/BEA/Ulugh_Beg_BEA.htm | isbn=978-0-387-31022-0
]==]
}, {
[==[
author=Lawson, M. K. |encyclopedia= The Medieval State: Essays Presented to James Campbell |title=Observations Upon a Scene in the Bayeux Tapestry |publisher=Hambledon Press |location=London |pages=73–92 |year=2000
]==]
}, {
[==[
last=Waugh|first=Scott L.|title=Thomas, 1st Earl of Norfolk (1300–1338)|encyclopedia=Oxford Dictionary of National Biography|publisher=Oxford University Press|location=Oxford|year=2004|doi=10.1093/ref:odnb/27196
]==]
}, {
[==[
author=Yorke, Philip Chesney|encyclopedia=Encyclopædia Britannica|title=Anne (1665–1714)|publisher=University Press|location=Cambridge|edition=11th|year=1911
]==]
}, {
[==[
editor-last = Lewis| editor-first = M. Paul| encyclopedia = Ethnologue: Languages of the World| edition = 16 | publisher = SIL International | location = Dallas, Texas| year = 2009| url = http://www.ethnologue.com/show_language.asp?code=deu
]==]
}
}, {nowiki=false, templatestyles=true})
end
function p:test_news()
self:preprocess_equals_preprocess_many('{{cite news/new|', '}}', '{{cite news|', '}}', {
{
[==[
title = TITLE
| author = AUTHOR
| first = FIRST
| last = LAST
| author-link = author-link
| author-link2 = author-link2
| author2 = AUTHOR2
| author3 = AUTHOR3
| author4 = AUTHOR4
| author5 = AUTHOR5
| author6 = AUTHOR6
| author7 = AUTHOR7
| url = https://en.wikipedia.org/Main_Page
| format = FORMAT
| agency = AGENCY
| newspaper = NEWSPAPER
| publisher = PUBLISHER
| location = LOCATION
| isbn = ISBN
| issn = ISSN
| oclc = OCLC
| pmid = PMID
| pmc = PMC
| bibcode = BIBCODE
| doi = 10.DOI
| id = ID
| date = DATE
| page = PAGE
| pages = PAGES
| at = AT
| access-date = access-date
| language = LANGUAGE
| trans-title = TRANS-TITLE
| quote = QUOTE
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = archive-date
| url-status = URLSTATUS
| ref = REF
|no-tracking=true
]==] }, {
[==[ postscript= | title=Auction Record for an Original 'Alice' | url=http://www.nytimes.com/1998/12/11/nyregion/auction-record-for-an-original-alice.html | date=11 December 1998 | periodical=The New York Times | page=B30
]==] }, {
[==[ last=Rabil | title=New York Times Starts Selling Ad Space on Front Page | url=http://www.bloomberg.com/apps/news?pid=20601103&sid=amsJuEA115pI&refer=us | date=January 5, 2009 | first=Sarah | work=Bloomberg L.P.
]==] }, {
[==[
title=Drugs: Chips trader gets 15 years, 10 strokes
|url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
|work=Daily Express |location=Kota Kinabalu, Malaysia
|date=29 March 2007 |agency=Bernama
]==] }, {
[==[title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|access-date=14 October 2010|newspaper=[[RIA Novosti]]|date=30 March 2009|language=Russian
]==] }, {
[==[ publisher=Apple Inc. | title=Statement by Apple's Board of Directors | url=http://www.apple.com/pr/library/2011/10/05Statement-by-Apples-Board-of-Directors.html | access-date=October 6, 2011
]==] }, {
[==[ last=Stella | date=14 March 2013 | first=Gian Antonio | title=Tango e battesimo, fidanzata e vangelo l'alfabeto misto di Papa Francesco | newspaper=Corriere della Sera | quote=Mio padre era di Portacomaro (Asti, ndr) e mia madre di Buenos Aires, con sangue piemontese e genovese | url=http://www.corriere.it/esteri/speciali/2013/conclave/notizie/14-mar-papa-tango-fidanzata_1069e952-8c70-11e2-ab2c-711cc67f5f67.shtml | language=Italian | access-date=14 March 2013
]==] }, {
[==[ archive-url=http://web.archive.org/web/20051001062114/http://www.cnn.com/2005/WORLD/europe/09/23/ | date=23 September 2005 | publisher=CNN | title=Cardinal breaks conclave vow of secrecy | archive-date=1 October 2005 | agency=Associated Press | url=http://www.cnn.com/2005/WORLD/europe/09/23/conclave.diary.ap/index.html | access-date=13 March 2013
]==] }, {
[==[ date=17 March 2013 | author=Miroff, Nick | page=27 | title=Pope's activity in Dirty War Draws Scrutiny | location=Sec. 1 | agency=Washington Post | work=Chicago Tribune | access-date=17 March 2013|no-tracking=true ]==] }, {
[==[ date=916 | title=Mahdia founded |last=El Fatimi]==] }, {
[==[ author=[[Benedict Anderson]]|title=In the World-Shadow of Bismarck and Nobel|publisher=[[New Left Review]]|date=July–August 2004|url=http://newleftreview.org/II/28/benedict-anderson-in-the-world-shadow-of-bismarck-and-nobel]==] }, {
[==[ url=http://findarticles.com/p/articles/mi_qa3884/is_200603/ai_n17181949/pg_1?tag=artBody;col1|title=City infrastructures and city dwellers: Accommodating the automobile in twentieth-century Paris|access-date=3 August 2008|author=Mathieu Flonneau|publisher=The Journal of Transport History | year=2006]==] }, {
[==[ url=http://news.bbc.co.uk/1/hi/in_depth/4417096.stm|title=Special Report: Riots in France|date=9 November 2005|access-date=17 November 2007|publisher=BBC News ]==] }, {
[==[ url=http://hn.wenweipo.com/news/zhuanti/2012-11-16/23713.html | title=本报独家探访河南邓州习营村 | date=2012-11-16 | publisher=[[Wen Wei Po]] |access-date=2012-11-156]==] }, {
[==[ url=http://www.nytimes.com/2012/11/16/world/asia/new-chinese-leader-offers-few-hints-of-a-shift-in-direction.html|title=New Chinese Leader Offers Few Hints of a Shift in Direction|first=Ian|last=Johnson|date=2012-11-15|work=The New York Times|access-date=2012-11-15]==] }, {
[==[ first=Jonathan | last=Watts | url=http://www.guardian.co.uk/world/2007/oct/26/china.uknews4 |title=Most corrupt officials are from poor families but Chinese royals have a spirit that is not dominated by money | access-date=11 June 2008 |work=The Guardian |location=London |date= 26 October 2007]==] }, {
[==[ last=Bazar|first=Emily|title=Immigrants Make Pilgrimage to Pope | work=USA Today | date=16 April 2008 | url=http://www.usatoday.com/news/religion/2008-04-15-popeimmigrants_N.htm | access-date=3 May 2008]==] }, {
[==[ author=David Willey |url=http://www.bbc.co.uk/news/world-europe-10645748 |title=Vatican 'speeds up' abuse cases |work=BBC News |date=15 July 2010 |access-date=28 October 2010]==] }, {
[==[ title=The economy of heat |publisher=The Economist |date=2007-04-12 |url=http://www.economist.com/node/8952496?story_id=8952496 |access-date=2008-06-06]==] }, {
[==[ last=Alves |first=Fabio |last2=Caminada |first2=Carlos |title=Brazilian Debt Raised to Investment Grade by S&P |publisher=Reuters |date=2008-04-30 |url=http://www.bloomberg.com/apps/news?pid=newsarchive&sid=a86v4f6_W2Jg |access-date=2008-06-09]==] }, {
[==[ author= | title=Gwynne Shotwell: Executive Profile & Biography | url=http://investing.businessweek.com/research/stocks/private/person.asp?personId=39083380& privcapId=7702894& previousCapId=7702894& previousTitle=Space%20Exploration%20Technologies%20Corp | newspaper=Business Week| publisher=Bloomburg | location=New York | date=2011-12-01| access-date=2011-12-01 | archive-url=http://www.webcitation.org/63bzdtgbl | url-status=live | archive-date=2011-12-01]==] }, {
[==[ first= Irene | last= Klotz | title= SpaceX's Dragon Capsule Returns Safely To Earth|newspaper=Discovery News|publisher=Discovery Communications | location= Silver Spring, Maryland | date=2010-12-08 | url=http://news.discovery.com/space/spacexs-dragon-capsule-returns-safely-to-earth.html |access-date=2010-12-08|archive-url=http://www.webcitation.org/63c6KAVeX| archive-date=2011-12-01]==] }, {
[==[ last=Engel|first=Max |title=Launch Market on Cusp of Change |url=http://www.satellitetoday.com/via/satellitegetspersonal/Launch-Market-on-Cusp-of-Change_40648.html |access-date=2013-02-15 |newspaper=Satellite Today |date=2013-03-01<!-- this is the PUBLICATION date of the newsstand issue; it came online on the internet by 15 Feb, but its stated date is 1 March 2013 --> |quote=''SpaceX is not the first private company to try to break through the commercial space launch market. The company, however, appears to be the real thing. Privately funded, it had a vehicle before it got money from NASA, and while NASA’s space station resupply funds are a tremendous boost, SpaceX would have existed without it.'' ]==] }, {
[==[title=Bird flu has jumped to baby seals, scientists discover|url=http://edition.cnn.com/2012/07/31/health/baby-seals-avian-flu/index.html?hpt=hp_c4|access-date=31 July 2012|newspaper=[[CNN]]|date=31 July 2012]==] }, {
[==[url=http://www.guardian.co.uk/film/2010/mar/10/oscars-farrah-fawcett|title=Farrah Fawcett:Oscars director apologises for 'In Memoriam' omission|work=The Guardian |access-date=March 8, 2010 | location=London | first=Ben | last=Child | date=March 10, 2010| archive-url= http://web.archive.org/web/20100414020632/http://www.guardian.co.uk/film/2010/mar/10/oscars-farrah-fawcett| archive-date= April 14, 2010 <!--DASHBot-->| url-status=live]==] }, {
[==[url=http://latimesblogs.latimes.com/files/2009/02/being-a-member.html |title=Being an Oscar voter *doesn't* mean never having to say you're sorry |access-date=October 4, 2009 | work=The Los Angeles Times |url-status=dead]==] }, {
[==[author=[[Donald G. McNeil, Jr.]] |title=Precursor to H.I.V. Was in Monkeys for Millennia |url=http://www.nytimes.com/2010/09/17/health/17aids.html?_r=1&src=me&ref=general |quote=Dr. Marx believes that the crucial event was the introduction into Africa of millions of inexpensive, mass-produced syringes in the 1950s. ... suspect that the growth of colonial cities is to blame. Before 1910, no Central African town had more than 10,000 people. But urban migration rose, increasing sexual contacts and leading to red-light districts.|work=[[New York Times]] |date=September 16, 2010 |access-date=2010-09-17 ]==] }, {
[==[ url=http://news.bbc.co.uk/2/hi/technology/7091190.stm|title=BBC News: History of Technology|date=November 15, 2007]==] }, {
[==[ url = http://findarticles.com/p/articles/mi_hb197/is_200401/ai_n5556112| title = The Story Behind Apple's '1984' TV commercial: Big Brother at 20| access-date =May 9, 2008| last = Cellini| first = Adelia | date=January 2004| work = [[Macworld]] 21.1, page 18| archive-url = http://web.archive.org/web/20080626112220/| archive-date = June 26, 2008]==] }, {
[==[ last = Spector| first = G| title = Apple's Jobs Starts New Firm, Targets Education Market| work = [[PC Week]]| page = 109| date = September 24, 1985]==] }, {
[==[ url=http://www.cnn.com/2010/TECH/mobile/06/07/apple.wwdc.preview/index.html | title=Apple unveils iPhone 4, 'biggest leap we've taken' since first model | work=CNN | first1=Brandon |last1=Griggs | first2=John D. |last2= Sutter | date=June 8, 2010 | access-date=July 5, 2010| archive-url= http://web.archive.org/web/20100708063056/| archive-date= July 8, 2010 <!--DASHBot-->| url-status=live]==] }, {
[==[ last=Nichols | date=26 March 2010 | first=Vincent | title=The Church is not trying to cover anything up | url=http://www.timesonline.co.uk/tol/comment/columnists/guest_contributors/article7076344.ece | work=The Times | location=London | access-date=22 May 2010 ]==] }
}, {nowiki=false, templatestyles=true})
end
function p:test_journal()
self:preprocess_equals_preprocess_many('{{cite journal/new|', '}}', '{{cite journal|', '}}', {
{
[==[
last1 = LAST1
| first1 = FIRST1
| author-link1 = author-link1
| last2 = LAST2
| first2 = FIRST2
| author-link2 = author-link2
| editor-last = EDITOR-LAST
| editor-first = EDITOR-FIRST
| editor-link = EDITOR-LINK
| date = DATE
| year = YEAR
| title = TITLE
| trans-title = TRANS-TITLE
| journal = JOURNAL
| volume = VOLUME
| issue = ISSUE
| series = SERIES
| pages = PAGES
| location = LOCATION
| publisher = PUBLISHER
| language = LANGUAGE
| format = FORMAT
| type = TYPE
| arxiv = ARXIV
| id = ID
| isbn = ISBN
| issn = ISSN
| oclc = OCLC
| pmid = PMID
| pmc = PMC
| bibcode = BIBCODE
| doi = 10.DOI
| access-date = access-date
| url = https://en.wikipedia.org/Main_Page
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = 1 January 2010
| lay-source = LAYSOURCE
| lay-url = https://en.wikipedia.org/Wikipedia
| lay-date = 2010-01-01
| quote = QUOTE
| ref = REF
| postscript = POSTSCRIPT
|no-tracking=true
]==] }, {
[==[
type=Type | title=Article | format=Format | author=Author | journal=Journal |no-tracking=true
]==] }, {
[==[
department=Bryan on Scouting | last=Wendell | title=Calendar of New Merit Badges | url=http://blog.scoutingmagazine.org/merit-badge-calendar/ | journal=Scouting | first=Bryan ]==] },{
[==[
archive-url=http://wikiwix.com/cache/?url=http%3A%2F%2Fphysics.aps.org%2Farticles%2Fv3%2F98 | date=November 22, 2010 | doi=10.1103/Physics.3.98 | first1=Paul | volume=3 | editor-first=Gene D. | editor-last=Sprouse | url=http://physics.aps.org/articles/v3/98 | issue=98 | journal=Physics | title=Meet a superpartner at the LHC | issn=1943-2879 | publisher=American Physical Society | archive-date=2011-02-22 | oclc=233971234 | location=New York | bibcode=2010PhyOJ...3...98L | last1=Langacker | access-date=21 February 2011
]==] }, {
[==[
archive-url=http://wikiwix.com/cache/?url=http%3A%2F%2Fphysics.aps.org%2Farticles%2Fv3%2F98 | date=November 22, 2010 | doi=10.1103/Physics.3.98 | doi-access=free | first1=Paul | volume=3 | editor-first=Gene D. | editor-last=Sprouse | url=http://physics.aps.org/articles/v3/98 | issue=98 | journal=Physics | title=Meet a superpartner at the LHC | issn=1943-2879 | publisher=American Physical Society | archive-date=2011-02-22 | oclc=233971234 | location=New York | bibcode=2010PhyOJ...3...98L | last1=Langacker | access-date=21 February 2011
]==] }, {
[==[ author=Sammy De Grave, N. Dean Pentcheff, Shane T. Ahyong ''et al.'' |year=2009 |title=A classification of living and fossil genera of decapod crustaceans |journal=[[Raffles Bulletin of Zoology]] |volume=Suppl. 21 |pages=1–109 |url=http://rmbr.nus.edu.sg/rbz/biblio/s21/s21rbz1-109.pdf |format=[[Portable Document Format|PDF]]
]==] }, {
[==[ author=Tin-Yam Chan |year=2010 |chapter=Annotated checklist of the world's marine lobsters (Crustacea: Decapoda: Astacidea, Glypheidea, Achelata, Polychelida) |editor=Martyn E. Y. Low and S. H. Tan |title=Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea) and marine lobsters of the world |journal=[[Zootaxa]] |volume=Suppl. 23 |pages=153–181 |url=http://rmbr.nus.edu.sg/rbz/biblio/s23/s23rbz153-181.pdf |format=[[Portable Document Format|PDF]]
]==] }, {
[==[ last=Frątczak|first=Sławomir Z.|language=Polish | url=http://www.glos.com.pl/Archiwum_nowe/Rok+2005/032/strona/Cud.html | archive-url=http://web.archive.org/web/20070708173639/ | archive-date=2007-07-08 | journal=[[Głos (1991)|Głos]]|issue=32/2005 | year=2005 | title=Cud nad Wisłą|access-date=June 18, 2006
]==] }, {
[==[ author= |title=The fourth report on the diagnosis, evaluation, and treatment of high blood pressure in children and adolescents |journal=Pediatrics |volume=114 |issue=2 Suppl 4th Report |pages=555–76 |date=August 2004|pmid=15286277 |doi= 10.1542/peds.114.2.S2.555|url= |author1= National High Blood Pressure Education Program Working Group on High Blood Pressure in Children and Adolescents
]==] }, {
[==[ author= |title=The fourth report on the diagnosis, evaluation, and treatment of high blood pressure in children and adolescents |journal=Pediatrics |volume=114 |issue=2 Suppl 4th Report |pages=555–76 |date=August 2004|pmid=15286277 |doi= 10.1542/peds.114.2.S2.555|hdl=2027/uc1.c095473177|hdl-access=free|url= |author1= National High Blood Pressure Education Program Working Group on High Blood Pressure in Children and Adolescents
]==] }, {
[==[ author=Milazzo S, Ernst E, Lejeune S, Schmidt K |title=Laetrile treatment for cancer |journal=Cochrane Database Syst Rev |issue=2 |pages=CD005476 |year=2006 |pmid=16625640 |doi=10.1002/14651858.CD005476.pub2 |editor1-last=Milazzo |editor1-first=Stefania
]==] }, {
[==[ author=M. F. Land |title=Superposition images are formed by reflection in the eyes of some oceanic decapod Crustacea |journal=[[Nature (journal)|Nature]] |year=1976 |volume=263 |pages=764–765 |doi=10.1038/263764a0 |pmid=995187 |issue=5580
]==] }, {
[==[ author=Dale Tshudy & Loren E. Babcock |year=1997 |title=Morphology-based phylogenetic analysis of the clawed lobsters (family Nephropidae and the new family Chilenophoberidae) |journal=[[Journal of Crustacean Biology]] |volume=17 |issue=2 |pages=253–263 |jstor=1549275
]==] }, {
[==[ author=M. Kottek|author2=J. Grieser|author3=C. Beck|author4=B. Rudolf|author5=F. Rubel|title=World Map of the Köppen-Geiger climate classification updated|journal=Meteorol. Z.|volume=15|pages=259–263|url=http://koeppen-geiger.vu-wien.ac.at/pics/kottek_et_al_2006.gif|doi=10.1127/0941-2948/2006/0130|access-date=April 22, 2009|year=2006
]==] }, {
[==[ last = Boddington | first = Ann | title = Sejanus. Whose Conspiracy? | journal = The American Journal of Philology | volume = 84 | issue = 1 | pages = 1–16 | date = January 1963 | doi = 10.2307/293155 | jstor = 293155
]==] }, {
[==[ vauthors=Zubcevic J, Waki H, Raizada MK, Paton JF |title=Autonomic-immune-vascular interaction: an emerging concept for neurogenic hypertension |journal=Hypertension |volume=57 |issue=6 |pages=1026–33 |date=June 2011 |pmid=21536990 |pmc=3105900 |doi=10.1161/HYPERTENSIONAHA.111.169748 |url=http://hyper.ahajournals.org/content/57/6/1026.long
]==] }, {
[==[ author = Whelton PK |name-list-style=vanc | year = 2002 |title = Primary prevention of hypertension:Clinical and public health advisory from The National High Blood Pressure Education Program | url = | journal = JAMA | volume = 288 | issue = 15| pages = 1882–8 |doi = 10.1001/jama.288.15.1882 | pmid = 12377087 | author2 = He J | author3 = Appel LJ | author4 = Cutler JA | author5 = Havas S | author6 = Kotchen TA | display-authors = 6 | last7 = Roccella | first7 = EJ | last8 = Stout | first8 = R | last9 = Vallbona | first9 = C
|no-tracking=true ]==] }, {
[==[ vauthors=Alcocer L, Cueto L |title=Hypertension, a health economics perspective |journal=Therapeutic Advances in Cardiovascular Disease |volume=2 |issue=3 |pages=147–55 |date=June 2008 |pmid=19124418 |doi=10.1177/1753944708090572 |url=http://tak.sagepub.com/cgi/pmidlookup?view=long&pmid=19124418 |access-date=2009-06-20
]==] }, {
[==[ title = Are EU Trade Sanctions On Burma Compatible With WTO Law? | journal=Are EU Trade Sanctions on Burma Compatible with WTO Law? | first = Robert | last = Howse | author2 = Jared M. Genser | pages = 166+| id = | url = http://students.law.umich.edu/mjil/article-pdfs/v29n2-howse-genser.pdf | access-date =7 November 2010 | quote = repressive and abusive military regime
]==] }, {
[==[ journal = [[Science (journal)|Science]] | last1 = Wodinsky | first1 = Jerome | title = Hormonal Inhibition of Feeding and Death in Octopus: Control by Optic Gland Secretion | date = 2 December 1977 | volume = 198 | issue = 4320| pages = 948–951 | url = http://www.sciencemag.org/content/198/4320/948.abstract | access-date= 27 November 2011 | doi = 10.1126/science.198.4320.948
]==] }, {
[==[ vauthors=Karakurt F |title=Comparison of the clinical efficacy of flutamide and spironolactone plus ethinyloestradiol/cyproterone acetate in the treatment of hirsutism: a randomised controlled study |journal=Adv Ther |volume=25 |issue=4 |pages=321–8 |date=April 2008 |isbn=1232500800395
]==] }, {
[==[ title = Mr. Mackintosh's New God | first = George Jacob | last = Holyoake | author-link = George Holyoake | magazine = [[w:The Oracle of Reason|The Oracle of Reason, Or, Philosophy Vindicated]] | volume = 1 | issue = 23 | year = 1842 | page = 186 | url = http://books.google.com/books?id=BFY9AAAAYAAJ&pg=PA186 | quote = On the contrary, I, as an Atheist, simply profess that I do not see sufficient reason to ''believe'' that there is a god. I do not pretend to ''know'' that there is no god. The whole question of god's existence, ''belief'' or ''disbelief'', a question of probability or of improbability, not knowledge.
]==] }, {
[==[ last1 = Arenillas | first1 = Miguel | last2 = Castillo | first2 = Juan C. | title = Dams from the Roman Era in Spain. Analysis of Design Forms (with Appendix) | journal = 1st International Congress on Construction History [20th–24th January] | publication-place = Madrid | year = 2003 | url = http://www.traianvs.net/textos/presas_in.htm#_ednref4
]==] }, {
[==[ author=International Union of Crystallography |year=1992 |title=Report of the Executive Committee for 1991 |journal=Acta Crystallogr. A |volume=48 |issue= 6|pages=922 |doi=10.1107/S0108767392008328
]==] }, {
[==[ author=International Union of Crystallography |year=1992 |title=Report of the Executive Committee for 1991 |journal=Acta Crystallogr. A |volume=48 |issue= 6|pages=922 |doi=10.1107/S0108767392008328|pmc=1438678
]==] }, {
[==[ url = http://www.minsocam.org/ammin/AM66/AM66_885.pdf|journal = American Mineralogist|volume = 66|page=885|year= 1981|title= The largest crystals|author = Rickwood, P. C.
]==] }, {
[==[ last=Watling|first=H. R.|title=The bioleaching of sulphide minerals with emphasis on copper sulphides — A review | journal=Hydrometallurgy | year=2006 | volume=84 | issue=1, 2 | pages=81–108 | url=http://infolib.hua.edu.vn/Fulltext/ChuyenDe/ChuyenDe07/CDe53/59.pdf | format=PDF | doi=10.1016/j.hydromet.2006.05.001
]==] }, {
[==[ vauthors=Richmond SJ, Brown SR, Campion PD, Porter AJ, Moffett JA, Jackson DA, Featherstone VA, Taylor AJ |title=Therapeutic effects of magnetic and copper bracelets in osteoarthritis: a randomised placebo-controlled crossover trial|journal=Complement Ther Med.|year=2009|volume=17|issue=5-6|pages=249–256|pmid=19942103|doi=10.1016/j.ctim.2009.07.002
]==] }, {
[==[ author=Kivelson G. M., Russell, C. T. |title=Introduction to Space Physics |publisher=Cambridge University Press |year=1995|isbn=0-521-45714-9
]==] }, {
[==[ last=Quigg| first=Catherine T.| title=Tritium Warning| journal=Bulletin of the Atomic Scientists| volume=40|issue=3| pages=56–57|date=March 1984
]==] }, {
[==[ last1 = Ralston | first1 = NVC | last2 = Raymond | first2 = LJ | year = 2010 | title = Dietary selenium's protective effects against methylmercury toxicity | url = | journal = Toxicology | volume = 278 | issue = | pages = 112–123
]==] }, {
[==[ author=Aller TA, Wildsoet C |title=Bifocal soft contact lenses as a possible myopia control treatment: a case report involving identical twins |journal=Clin Exp Optom |volume=91 |issue=4 |pages=394–9 |date=July 2008 |pmid=18601670 |doi=10.1111/j.1444-0938.2007.00230.x |url=
]==] }, {
[==[ pmid=17742735|year=1969|last1=Gorman|first1=CF|title=Hoabinhian: A pebble-tool complex with early plant associations in southeast Asia|volume=163|issue=3868|pages=671–3|doi=10.1126/science.163.3868.671|journal=Science
]==] }, {
[==[ last1 = Tormmsdof | first1 = V. | year = 1966 | title = Progressive metamorphose kieseliger karbonatgesteine in den Zentralalpen zwischen Bernina und Simplon | url = | journal = Schweizerische Mineralogische und Petrographische Mitteilungen = Bulletin Suisse de Mineralogie et Petrographie | volume = 46 | issue = | pages = 431–460
]==] }, {
[==[ author=Kivelson G. M., Russell, C. T. |title=Introduction to Space Physics |publisher=Cambridge University Press |year=1995|isbn=0-521-45714-9
]==] }, {
[==[ author=Ellenberger, C. Leroy|date=Winter 1984 |author-link=C. Leroy Ellenberger |title=Worlds in Collision in Macmillan's Catalogues |journal=Kronos | volume=9 | issue=2 | url=http://www.catastrophism.com/cdrom/pubs/journals/kronos/vol0902/index.htm |access-date=2009-05-16
]==] }, {
[==[ author = Zapolski TC, Cyders MA, Smith GT | title = Positive urgency predicts illegal drug use and risky sexual behavior | journal = Psychol Addict Behav | volume = 23 | issue = 2 | pages = 348–54 | date = June 2009 | pmid = 19586152 | pmc = 2709762 | doi = 10.1037/a0014684
]==] }, {
[==[ first=J. | last=Blackwell | author2 =M.R. Nagarajan |author3= T.B. Hoitink | title=The Structure of the Hard Segments in MDI/diol/PTMA Polyurethane Elastomers | publisher=American Chemical Society | location=Washington, D.C. | year=1981 | issn=0097-6156/81/0172-0179
]==] }, {
[==[ author=Ehret GB |name-list-style=vanc |title=Genetic variants in novel pathways influence blood pressure and cardiovascular disease risk |journal=Nature |volume=478 |issue=7367 |pages=103–9 |date=October 2011 |pmid=21909115 |doi=10.1038/nature10405 |author2=Munroe PB |author3=Rice KM|display-authors=3 |last4=Bochud |first4=Murielle |last5=Johnson |first5=Andrew D. |last6=Chasman|first6=Daniel I. |last7=Smith |first7=Albert V. |last8=Tobin |first8=Martin D. |last9=Verwoert|first9=Germaine C. |pmc=3340926
]==] }, {
[==[ author=Lewington S, Clarke R, Qizilbash N, Peto R, Collins R |title=Age-specific relevance of usual blood pressure to vascular mortality: a meta-analysis of individual data for one million adults in 61 prospective studies |journal=Lancet |volume=360 |issue=9349 |pages=1903–13 |date=December 2002 |pmid=12493255 |doi= 10.1016/S0140-6736(02)11911-8|url=
]==] }, {
[==[ author = Steiner DF, Oyer PE | title = The biosynthesis of insulin and a probable precursor of insulin by a human islet cell adenoma | journal = Proc. Natl. Acad. Sci. U.S.A. | volume = 57 | issue = 2 | pages = 473–480 | date = February 1967 | pmid = 16591494 | pmc = 335530 | doi = 10.1073/pnas.57.2.473| url =
]==] }, {
[==[ author = Menting JG, Whittaker J, Margetts MB, Whittaker LJ, Kong GK-W, Smith BJ, Watson CJ, Žáková L, Kletvíková E, JJ, Chan SJ, Steiner DF, Dodson GG, Brzozowski AM, Weiss MA, Ward CW, Lawrence MC | title = How insulin engages its primary binding site on the insulin receptor | journal = Nature | year = 2013 | volume = 493 | issue = 7431 | pages = 241–245 | doi = 10.1038/nature11781 | lay-url = http://www.abc.net.au/news/2013-01-10/australian-researchers-crack-insulin-mechanism/4458974 | lay-source = Australian Broadcasting Commission
]==] }, {
[==[ author=J Clemens, PG Jones, NH Gilbert|date=|year=1977 |title=Effect of seed treatments on germination in Acacia|journal=Australian Journal of Botany |volume=25 |issue=3 |pages=269–267 |pmid=|doi=10.1071/BT9770269|url=http://www.publish.csiro.au/nid/65/paper/BT9770269.htm
]==] }, {
[==[ title=Martinez Beavers |author=Aleta George |url=http://baynature.org/articles/jan-mar-2008/ear-to-the-ground/martinez-beavers |year=2008 |magazine=Bay Nature |publisher=Bay Nature Institute |access-date=November 6, 2009
]==] }, {
[==[ author = Weissman KJ, Müller R |title = Protein-protein interactions in multienzyme megasynthetases |journal = ChemBioChem |volume = 9 |issue = 6 |pages = 826–48 |year = 2008 |pmid = 18357594 |doi = 10.1002/cbic.200700751
]==] }, {
[==[ last1 = Coyne | first1 = Jerry A. | author2 = Barton, Turelli | title = Perspective: A Critique of Sewall Wright's Shifting Balance Theory of Evolution | journal = Evolution | year = 1997 | volume = 51 | issue = 3 | series = 3 | pages = 643–671 | doi = 10.2307/2411143
]==] }, {
[==[ doi = 10.1086/377226 |title = First-Year Wilkinson Microwave Anisotropy Probe (WMAP) Observations: Determination of Cosmological Parameters |first = D. N. |last = Spergel |journal = The Astrophysical Journal Supplement Series |volume = 148 |year = 2003 |issue = 1 |pages = 175–94 |last2 = Verde |first2 = L. |last3 = Peiris |first3 = H. V. |last4 = Komatsu |first4 = E. |last5 = Nolta |first5 = M. R. |last6 = Bennett |first6 = C. L. |last7 = Halpern |first7 = M. |last8 = Hinshaw |first8 = G. |last9 = Jarosik |first9 = N. |bibcode = 2003ApJS..148..175S |arxiv = astro-ph/0302209
|no-tracking=true
]==] }
}, {nowiki=false, templatestyles=true})
end
function p:test_book()
self:preprocess_equals_preprocess_many('{{cite book/new|', '}}', '{{cite book|', '}}', {
{
[==[
last = LAST
| first = FIRST
| author-link = author-link
| last2 = LAST2
| first2 = FIRST2
| author-link2 = author-link2
| editor-last = EDITOR-LAST
| editor-first = EDITOR-FIRST
| editor-link = EDITOR-LINK
| editor2-last = EDITOR2-LAST
| editor2-first = EDITOR2-FIRST
| editor2-link = EDITOR2-LINK
| others = OTHERS
| title = TITLE
| trans-title = TRANS-TITLE
| url = https://en.wikipedia.org/Main_Page
| archive-url = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date = January 1, 2010
| format = FORMAT
| access-date = 1 January, 2010
| type = TYPE
| edition = EDITION
| series = SERIES
| volume = VOLUME
| date = DATE
| origyear = ORIGYEAR
| year = YEAR
| publisher = PUBLISHER
| location = LOCATION
| language = LANGUAGE
| isbn = ISBN
| oclc = OCLC
| lccn = LCCN
| doi = 10.DOI
| bibcode = BIBCODE
| id = ID
| page = PAGE
| pages = PAGES
| nopp = NOPP
| at = AT
| chapter = CHAPTER
| trans-chapter = TRANS-CHAPTER
| chapterurl = https://en.wikipedia.org/Main_Page#top
| quote = QUOTE
| ref = REF
| lay-url = https://en.wikipedia.org/Wikipedia
| lay-date = 2010-01-01
| author-mask = AUTHOR-MASK
| display-authors = 10
| postscript = POSTSCRIPT
|no-tracking=true
]==] }, {
[==[ last=Rabinovich|first=Viktor Abramovich |author2=Vasserman, A. A.|author3=Nedostup, V. I. |author4=Veksler, L. S.|title=Thermophysical properties of neon, argon, krypton, and xenon|year=1988|edition=English-language |publisher=Hemisphere Publishing Corp. |location=Washington, DC|isbn=0-89116-675-0 |url=http://adsabs.harvard.edu/abs/1988wdch...10.....R |access-date=2009-04-02
]==] }, {
[==[ author=Anonymous|editor=Daniel Coit Gilman |editor2=Harry Thurston Peck |editor3=Frank Moore Colby |year=1904|title=The New International Encyclopædia |publisher=Dodd, Mead and Company|page=906
]==] }, {
[==[ pages=1328–1334|title=Linus Pauling: Selected Scientific Papers|volume=2|editor=Pauling, Linus |editor2=Kamb, Barclay |place=River Edge, New Jersey|publisher=World Scientific |year=2001|isbn=981-02-2940-2|url=http://books.google.com/?id=2QduA19d_X8C&pg=PA1329
]==] }, {
[==[ title=Soedirman: Bapak Tentara Indonesia |trans-title=Soedirman: Father of the Indonesian Military |language=Indonesian |last=Adi |first=A. Kresna |publisher=Mata Padi Pressindo |isbn=978-602-95337-1-2 |location=Yogyakarta |year=2011
]==] }, {
[==[ url=http://books.google.ca/books?id=WrkzPcxBnLMC |title=Takhta untuk Rakyat: Celah-celah Kehidupan Sultan Hamengku Buwono IX |trans-title=Serving the People: The Life Story of Sultan Hamengku Buwono IX |language=Indonesian |isbn=978-979-22-6767-9 |editor1-first=Mohamad |editor1-last=Roem |editor1-link=Mohamad Roem |editor2-first=Mochtar |editor2-last=Lubis |editor2-link=Mochtar Lubis |editor3-first=Kustiniyati |editor3-last=Mochtar |editor4-first=Maimoen |editor4-last=S. |last=Nasution |first=A. H. |author-link=Abdul Haris Nasution |publisher=Gramedia Pustaka Utama |location=Jakarta |year=2011 |origyear=1982 |edition=Revised
|no-tracking=true ]==] }, {
[==[ author=Luhmann J. G., Russell C. T. |editor=J. H. Shirley and R. W. Fainbridge |title=Venus: Magnetic Field and Magnetosphere |work=Encyclopedia of Planetary Sciences |publisher=Chapman and Hall, New York|year=1997 |url=http://www-spc.igpp.ucla.edu/personnel/russell/papers/venus_mag/ |access-date=2009-06-28|isbn=978-1-4020-4520-2
]==] }, {
[==[ author=Feldman, M. S.; Ferrara, L. A.; Havenstein, P. L.; Volonte, J. E.; Whipple, P. H. |title=Manned Venus Flyby, February 1, 1967 |publisher=Bellcomm, Inc |url=http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19790072165_1979072165.pdf |format=PDF|year=1967
]==] }, {
[==[ last=Rose |first=Herbert Jennings |author-link=H.J. Rose |title=A Handbook of Greek Mythology |edition=1st |year=1959 |publisher=E.P. Dutton & Co. |location=New York |language= |isbn=0-525-47041-7 |pages=173
]==] }, {
[==[ url=http://www.ethnologue.com/show_country.asp?name=AR|title=Languages of Argentina|work=Ethnologue: Languages of the World|edition=16th|editor=Lewis, M. Paul|publisher=SIL International|place=Dallas|year=2009
]==] }, {
[==[ editor=Jean Chrétien Ferdinand Hoefer |contribution=Labarraque, Antoine-Germain |title=Nouvelle biographie universelle |volume=28 |pages=323–324 |ol=24229911M
]==] }, {
[==[ last=Crepeau |first=Bob |title=Niels Bohr: The Atomic Model |journal=Great Scientific Minds |publisher=Great Neck Publishing |date=2006-01-01 |isbn=1-4298-0723-7
]==] }, {
[==[ last=Holderness |first=Mary |title=Journey from Riga to the Crimea, with some account of the manners and customs of the colonists of new Russia. |year=1823 |publisher=Sherwood, Jones and co. |location=London |oclc=5073195 |page=316 |lccn=04024846
]==] }, {
[==[ author=Herbst, T. M.; Rix, H.-W.|year=1999 |editor=Guenther, Eike; Stecklum, Bringfried; Klose, Sylvio|title=Star Formation and Extrasolar Planet Studies with Near-Infrared Interferometry on the LBT |book-title=Optical and Infrared Spectroscopy of Circumstellar Matter, ASP Conference Series, Vol. 188. |isbn=1-58381-014-5|pages=341–350 |bibcode=1999ASPC..188..341H |publisher=Astronomical Society of the Pacific |location=San Francisco, Calif.
]==] }, {
[==[ author = Marius Turda| title = The idea of national superiority in Central Europe, 1880-1918| year = 2004| publisher = Edwin Mellen Press| isbn = 978-0-7734-6180-2 ]==] }, {
[==[ author=Bhagavan NV|title=Medical Biochemistry |publisher=Harcourt/Academic Press |location=San Diego |year=2002 |isbn=0-12-095440-0|url=http://books.google.com/?id=vT9YttFTPi0C&printsec=frontcover]==] }, {
[==[ author=Edgar Thorpe|title=The Pearson CSAT Manual 2012|url=http://books.google.com/books?id=1cruroSVFoUC&pg=RA3-PA38|access-date=18 November 2012|year=2012|publisher=Pearson Education India|isbn=978-81-317-6734-4|page=3]==] }, {
[==[ author=Iyengar PTS |year=2001 |title=History Of The Tamils: From the Earliest Times to 600 A.D. |publisher=Asian Educational Services |isbn=81-206-0145-9 |url=http://books.google.com/books?id=ERq-OCn2cloC |pages=192–195 |access-date=29 December 2008 ]==] }, {
[==[ author=Motilal (UK) Books of India|title=Tourist Guide Kerala|url=http://books.google.com/books?id=ZYfRBcLdTNYC&pg=PA11|access-date=18 November 2012|date=1 February 2008|publisher=Sura Books|isbn=978-81-7478-164-2|page=11]==] }, {
[==[ author=S. N. Sadasivan|title=River Disputes in India: Kerala Rivers Under Siege|url=http://books.google.com/books?id=hhrRboi5kOcC&pg=PA223|access-date=18 November 2012|year=2003|publisher=Mittal Publications|isbn=978-81-7099-913-3|page=223]==] }, {
[==[ author1=Joseph Needham|author2=Gwei-Djen Lu|author3=Ling Wang|title=Science and civilisation in China, Volume 5, Part 7|year=1987|publisher=Cambridge University Press|isbn=978-0-521-30358-3|pages=48–50]==] }, {
[==[ editor=Mark W. Denny |editor2=Steven Dean Gaines |year=2007 |title=Encyclopedia of tidepools and rocky shores |publisher=[[University of California Press]] |isbn=978-0-520-25118-2 |author=Carlos Robles |chapter=Lobsters |pages=333–335 |url=http://books.google.co.uk/books?id=uufQnE7MzMkC&pg=PA333]==] }, {
[==[ first=Elena|last=Aprile|author2=Bolotnikov, Aleksey E. |author3=Doke, Tadayoshi |title=Noble Gas Detectors|publisher=Wiley-VCH|year=2006 |isbn=3-527-60963-6|url=http://books.google.com/?id=tsnHM8x6cHAC&pg=PT1|pages=8–9]==] }, {
[==[ first=Sidney F. |last=Ray |title=Applied Photographic Optics: Lenses and Optical Systems for Photography, Film, Video, Electronic and Digital Imaging |location= |publisher=Focal Press |year=2002 |isbn=0-240-51540-4 |page=40 |url=http://www.google.com/books?id=cuzYl4hx-B8C&printsec=frontcover#PPA40,M1 ]==] }, {
[==[ last = Koch | first = John | title = Tartessian: Celtic from the Southwest at the Dawn of History in Acta Palaeohispanica X Palaeohispanica 9 (2009)| publisher=Palaeohispanica | year = 2009 | pages = 339–351 | url = http://ifc.dpz.es/recursos/publicaciones/29/54/26koch.pdf | id = | issn = 1578-5386 | access-date =17 May 2010 ]==] }, {
[==[ last = Rhodes |first = Richard |year = 1986 |title = The Making of the Atomic Bomb |isbn = 0-671-65719-4 |pages = 659–660 |publisher = Simon & Schuster |location = New York]==] }, {
[==[ last = Watt | first = William Montgomery |author-link = William Montgomery Watt| title = [[Muhammad at Mecca (book)|Muhammad at Mecca]]| publisher=Oxford University Press | year = 1953 | id =]==] }, {
[==[ last=Cooper |first=J.C. |title=Symbolic and Mythological Animals |pages=25–26 |year=1992 |publisher=Aquarian Press |location=London |isbn=1-85538-118-4]==] }, {
[==[ last=Finnegan |first=Dana G. |author2 = Emily B. McNally |title=Counseling Lesbian, Gay, Bisexual, and Transgender Substance Abusers: Dual Identities |publisher=Haworth Press |date=2002|isbn= 1-56023-925-5 |url =http://books.google.com/books?id=I32nHF_gaTsC ]==] }, {
[==[ title=[[Ellipsis|Dots...]] |author=Doe, Dotty D. | publisher=[[McGraw-Hill|Dot Corp.]] |series=Dot Books Etc. |pages=23 ''[[ff.]]'' |id=Std. ]==] }, {
[==[ last=Hume |first=David |author-link=David Hume |title=[[s:An Enquiry Concerning Human Understanding|An Enquiry Concerning Human Understanding]] |year=1748 |location=London]==] }, {
[==[ last=Köse|first=Yavuz|editor-last=Atabaki|editor-first=Touraj|editor2-last=Brockett|editor2-first=Gavin|chapter=Vertical Bazaars of Modernity: Western Department Stores and Their Staff in Istanbul (1889–1921)|title=Ottoman and Republican Turkish Labour History|publisher=Cambridge University Press|location=Cambridge, Eng.|year=2009|isbn=978-0-521-12805-6|pages=91–114]==] }, {
[==[ last=Roebuck|first=Carl|title=Ionian Trade and Colonization|year=1959|series=Monographs on Archaeology and Fine Arts|publisher=Archaeological Institute of America|location=New York|isbn=978-0-89005-528-1]==] }, {
[==[ last=Wiberg|first= Egon|author2= Wiberg, Nils |author3=Holleman, Arnold Frederick |title=Inorganic Chemistry |publisher=Academic Press|year=2001|isbn=0-12-352651-5]==] }, {
[==[ last1=Masters|first1=Bruce Alan|last2=Ágoston|first2=Gábor|year=2009|title=Encyclopedia of the Ottoman Empire|publisher=Infobase Publishing|location=New York|isbn=978-1-4381-1025-7]==] }, {
[==[ url=http://books.google.ca/books?id=LjzZ_rVv_2MC&pg=PA30 |title=Villes et organisation de l'espace en Afrique |pages=30–31 |first1=Jérôme |last1=Aloko-N'Guessan |first2=Amadou |last2=Diallo |first3=Kokou Henri |last3=Motcho |publisher=KARTHALA Editions |year=2010 |ISBN=2-8111-0339-2]==] }, {
[==[ title = Statics: Analysis and Design of Systems in Equilibrium | last = Sheppard and Tongue | publisher = Wiley and Sons | year = 2005 | page = 618 | quote = In general, for given contacting surfaces, ''μ''<sub>k</sub> < ''μ''<sub>s</sub> | isbn = 0-471-37299-4]==] }, {
[==[ title=A Concise History of Modern India |first1=Barbara D. |last1=Metcalf |first2=Thomas R. |last2=Metcalf |author-link1=Barbara D. Metcalf |author-link2=Thomas R. Metcalf |edition=Second |location=Cambridge |publisher=Cambridge University Press |year=2006 |pages=20–21 |isbn=978-0-521-86362-9]==] }, {
[==[ title=Geochemical processes in soil and groundwater: measurement—modelling—upscaling |first1=Horst D. |last1=Schulz |first2=Astrid |last2=Hadeler |author3=Deutsche Forschungsgemeinschaft |publisher=Wiley-VCH |year=2003 |isbn=3-527-27766-8 |page=67 |url=http://books.google.com/books?id=Fo1PjKW9GpUC]==] }, {
[==[ title=Normans: The History of a Dynasty|last=Crouch|first=David|year=2006|publisher=Hambledon Continuum|isbn=978-1-85285-595-6Z]==] }, {
[==[ title=Southeastern Ceremonial Complex : Chronology, Content, Context|editor=King, Adam|author1=Kelly, John E.|author2=Brown, James A.|author3=Hamlin, Jenn M.|author4=Kelly, Lucretia S.|author5=Kozuch, Laura|author6=Parker, Kathryn|author7=Van Nest, Julieann|chapter=Mound 34 : The Context for the Early Evidence of the Southeastern Ceremonial Complex at Cahokia|pages=57–87|isbn=978-0-8173-5409-1|publisher=University of Alabama Press]==] }, {
[==[ url = http://books.google.ca/books?id=0M4Pl_VCExgC | title = Forgotten Wars: Freedom and Revolution in Southeast Asia | isbn = 978-0-674-02153-2 | last1 = Bayly | first1 = Christopher Alan | last2 = Harper | first2 = Timothy Norman | year = 2007 | location = Cambridge | publisher = Belknap Press ]==] }, {
[==[ url = http://books.google.de/books?id=iX194mHFAcYC&pg=PA11 | page = 11 | title = The Correspondence of Michael Faraday | isbn = 978-0-86341-251-6 | author1 = Faraday, Michael | author2 = James, Frank A. J. L | year = 1999]==] }, {
[==[ url=http://books.google.com/?id=COcVgAtqeKkC&pg=PA473|page=473|title=Handbook of semiconductor silicon technology|first1=William C.|last1=O'Mara|first2=Robert B.|last2 =Herring| first3=Lee Philip|last3=Hunt|publisher=William Andrew|year=1990|isbn=978-0-8155-1237-0]==] }, {
[==[ last=Sedgwick |first=John |title=Popular Filmgoing In 1930s Britain: A Choice of Pleasures |publisher=[[University of Exeter Press]] |year=2000 |isbn=9780859896603 |pages=[http://books.google.com/books?id=YsUfc8Ijb-wC&pg=PA146 146]–148 ]==] }, {
[==[ chapter=Naturalism and Physicalism | last=Fales | postscript=, | first=Evan ]==] }, {
[==[ trans-title=My Book in English | last=Pan | location=Neverland | date=1965 | first=Peter | publisher=Foreign Books
|no-tracking=true ]==] }, {
[==[ trans-title=My Book in English | last=Pan | location=Neverland | date=1965 | first=Peter | publisher=Foreign Books | url = http://www.foo.com/
|no-tracking=true ]==] }, {
[==[ first5=FifthFirst | last1=FirstLast | last3=ThirdLast | last2=SecondLast | first2=SecondFirst | first4=FourthFirst | author-mask=with | last4=FourthLast | first1=FirstFirst | title=Title | last5=FifthLast | first3=ThirdFirst ]==] }
}, {nowiki=false, templatestyles=true})
end
return p
f8jc4a9h7qt0g285sbha4683mno8g15
وحدة:Citation/CS1/ملعب
828
63202
275430
2026-09-15T08:59:05Z
حبيشان
29714
استيراد من ar.wiktionary.org
275430
Scribunto
text/plain
require ('strict');
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------
each of these counts against the Lua upvalue limit
]]
local validation; -- functions in Module:Citation/CS1/Date_validation
local utilities; -- functions in Module:Citation/CS1/Utilities
local z = {}; -- table of tables in Module:Citation/CS1/Utilities
local identifiers; -- functions and tables in Module:Citation/CS1/Identifiers
local metadata; -- functions in Module:Citation/CS1/COinS
local cfg = {}; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration
local whitelist = {}; -- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist
--[[------------------< P A G E S C O P E V A R I A B L E S >---------------
declare variables here that have page-wide scope that are not brought in from
other modules; that are created here and used here
]]
local added_deprecated_cat; -- boolean flag so that the category is added only once
local added_vanc_errs; -- boolean flag so we only emit one Vancouver error / category
local added_generic_name_errs; -- boolean flag so we only emit one generic name error / category and stop testing names once an error is encountered
local added_numeric_name_errs; -- boolean flag so we only emit one numeric name error / category and stop testing names once an error is encountered
local added_numeric_name_maint; -- boolean flag so we only emit one numeric name maint category and stop testing names once a category has been emitted
--#to be deleted as source
local Frame; -- holds the module's frame table
local is_preview_mode; -- true when article is in preview mode; false when using 'Preview page with this template' (previewing the module)
local is_sandbox; -- true when using sandbox modules to render citation
local url_was_archive_today; -- boolean flag set to true when has_archive_today_url() has unset |url= because it held a deprecated archive.today url
--#Added
local wikidatacite = false;
--[[--------------------------< F I R S T _ S E T >------------------------------------------------------------
Locates and returns the first set value in a table of values where the order established in the table,
left-to-right (or top-to-bottom), is the order in which the values are evaluated. Returns nil if none are set.
This version replaces the original 'for _, val in pairs do' and a similar version that used ipairs. With the pairs
version the order of evaluation could not be guaranteed. With the ipairs version, a nil value would terminate
the for-loop before it reached the actual end of the list.
]]
local function first_set (list, count)
local i = 1;
while i <= count do -- loop through all items in list
if utilities.is_set( list[i] ) then
return list[i]; -- return the first set list member
end
i = i + 1; -- point to next
end
end
--[[--------------------------< A D D _ V A N C _ E R R O R >----------------------------------------------------
Adds a single Vancouver system error message to the template's output regardless of how many error actually exist.
To prevent duplication, added_vanc_errs is nil until an error message is emitted.
added_vanc_errs is a Boolean declared in page scope variables above
]]
local function add_vanc_error (source, position)
if added_vanc_errs then return end
added_vanc_errs = true; -- note that we've added this category
utilities.set_message ('err_vancouver', {source, position});
end
--[[--------------------------< I S _ S C H E M E >------------------------------------------------------------
does this thing that purports to be a URI scheme seem to be a valid scheme? The scheme is checked to see if it
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:
Scheme names consist of a sequence of characters beginning with a
letter and followed by any combination of letters, digits, plus
("+"), period ("."), or hyphen ("-").
returns true if it does, else false
]]
local function is_scheme (scheme)
return scheme and scheme:match ('^%a[%a%d%+%.%-]*:'); -- true if scheme is set and matches the pattern
end
--[=[-------------------------< I S _ D O M A I N _ N A M E >--------------------------------------------------
Does this thing that purports to be a domain name seem to be a valid domain name?
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5
BNF defined here: https://tools.ietf.org/html/rfc4234
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;
see also [[Single-letter second-level domain]]
list of TLDs: https://www.iana.org/domains/root/db
RFC 952 (modified by RFC 1123) requires the first and last character of a hostname to be a letter or a digit. Between
the first and last characters the name may use letters, digits, and the hyphen.
Also allowed are IPv4 addresses. IPv6 not supported
domain is expected to be stripped of any path so that the last character in the last character of the TLD. tld
is two or more alpha characters. Any preceding '//' (from splitting a URL with a scheme) will be stripped
here. Perhaps not necessary but retained in case it is necessary for IPv4 dot decimal.
There are several tests:
the first character of the whole domain name including subdomains must be a letter or a digit
internationalized domain name (ASCII characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the TLD) see https://tools.ietf.org/html/rfc3490
single-letter/digit second-level domains in the .org, .cash, and .today TLDs
q, x, and z SL domains in the .com TLD
i and q SL domains in the .net TLD
single-letter SL domains in the ccTLDs (where the ccTLD is two letters)
two-character SL domains in gTLDs (where the gTLD is two or more letters)
three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)
IPv4 dot-decimal address format; TLD not allowed
returns true if domain appears to be a proper name and TLD or IPv4 address, else false
]=]
local function is_domain_name (domain)
if not domain then
return false; -- if not set, abandon
end
domain = domain:gsub ('^//', ''); -- strip '//' from domain name if present; done here so we only have to do it once
if not domain:match ('^[%w]') then -- first character must be letter or digit
return false;
end
if domain:match ('^%a+:') then -- hack to detect things that look like s:Page:Title where Page: is namespace at Wikisource
return false;
end
local patterns = { -- patterns that look like URLs
'%f[%w][%w][%w%-]+[%w]%.%a%a+$', -- three or more character hostname.hostname or hostname.tld
'%f[%w][%w][%w%-]+[%w]%.xn%-%-[%w]+$', -- internationalized domain name with ACE prefix
'%f[%a][qxz]%.com$', -- assigned one character .com hostname (x.com times out 2015-12-10)
'%f[%a][iq]%.net$', -- assigned one character .net hostname (q.net registered but not active 2015-12-10)
'%f[%w][%w]%.%a%a$', -- one character hostname and ccTLD (2 chars)
'%f[%w][%w][%w]%.%a%a+$', -- two character hostname and TLD
'^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?', -- IPv4 address
'[%a%d]+%:?' -- IPv6 address
}
for _, pattern in ipairs (patterns) do -- loop through the patterns list
if domain:match (pattern) then
return true; -- if a match then we think that this thing that purports to be a URL is a URL
end
end
for _, d in ipairs (cfg.single_letter_2nd_lvl_domains_t) do -- look for single letter second level domain names for these top level domains
if domain:match ('%f[%w][%w]%.' .. d) then
return true
end
end
return false; -- no matches, we don't know what this thing is
end
--[[--------------------------< I S _ U R L >------------------------------------------------------------------
returns true if the scheme and domain parts of a URL appear to be a valid URL; else false.
This function is the last step in the validation process. This function is separate because there are cases that
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external
wikilinks.
]]
local function is_url (scheme, domain)
if utilities.is_set (scheme) then -- if scheme is set check it and domain
return is_scheme (scheme) and is_domain_name (domain);
else
return is_domain_name (domain); -- scheme not set when URL is protocol-relative
end
end
--[[--------------------------< S P L I T _ U R L >------------------------------------------------------------
Split a URL into a scheme, authority indicator, and domain.
First remove Fully Qualified Domain Name terminator (a dot following TLD) (if any) and any path(/), query(?) or fragment(#).
If protocol-relative URL, return nil scheme and domain else return nil for both scheme and domain.
When not protocol-relative, get scheme, authority indicator, and domain. If there is an authority indicator (one
or more '/' characters immediately following the scheme's colon), make sure that there are only 2.
Any URL that does not have news: scheme must have authority indicator (//). TODO: are there other common schemes
like news: that don't use authority indicator?
Strip off any port and path;
]]
local function split_url (url_str)
local scheme, authority, domain;
url_str = url_str:gsub ('([%a%d])%.?[/%?#].*$', '%1'); -- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of '//')
if url_str:match ('^//%S*') then -- if there is what appears to be a protocol-relative URL
domain = url_str:match ('^//(%S*)')
elseif url_str:match ('%S-:/*%S+') then -- if there is what appears to be a scheme, optional authority indicator, and domain name
scheme, authority, domain = url_str:match ('(%S-:)(/*)(%S+)'); -- extract the scheme, authority indicator, and domain portions
if utilities.is_set (authority) then
authority = authority:gsub ('//', '', 1); -- replace place 1 pair of '/' with nothing;
if utilities.is_set(authority) then -- if anything left (1 or 3+ '/' where authority should be) then
return scheme; -- return scheme only making domain nil which will cause an error message
end
else
if not scheme:match ('^news:') then -- except for news:..., MediaWiki won't link URLs that do not have authority indicator; TODO: a better way to do this test?
return scheme; -- return scheme only making domain nil which will cause an error message
end
end
domain = domain:gsub ('(%a):%d+', '%1'); -- strip port number if present
end
return scheme, domain;
end
--[[--------------------------< L I N K _ P A R A M _ O K >---------------------------------------------------
checks the content of |title-link=, |series-link=, |author-link=, etc. for properly formatted content: no wikilinks, no URLs
Link parameters are to hold the title of a Wikipedia article, so none of the WP:TITLESPECIALCHARACTERS are allowed:
# < > [ ] | { } _
except the underscore which is used as a space in wiki URLs and # which is used for section links
returns false when the value contains any of these characters.
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid URL (the
|<param>-link= parameter is ok); else false when value appears to be a valid URL (the |<param>-link= parameter is NOT ok).
]]
local function link_param_ok (value)
local scheme, domain;
if value:find ('[<>%[%]|{}]') then -- if any prohibited characters
return false;
end
scheme, domain = split_url (value); -- get scheme or nil and domain or nil from URL;
return not is_url (scheme, domain); -- return true if value DOES NOT appear to be a valid URL
end
--[[--------------------------< L I N K _ T I T L E _ O K >---------------------------------------------------
Use link_param_ok() to validate |<param>-link= value and its matching |<title>= value.
|<title>= may be wiki-linked but not when |<param>-link= has a value. This function emits an error message when
that condition exists
check <link> for inter-language interwiki-link prefix. prefix must be a MediaWiki-recognized language
code and must begin with a colon.
]]
local function link_title_ok (link, lorig, title, torig)
local orig;
if utilities.is_set (link) then -- don't bother if <param>-link doesn't have a value
if not link_param_ok (link) then -- check |<param>-link= markup
orig = lorig; -- identify the failing link parameter
elseif title:find ('%[%[') then -- check |title= for wikilink markup
orig = torig; -- identify the failing |title= parameter
elseif link:match ('^%a+:') then -- if the link is what looks like an interwiki
local prefix = link:match ('^(%a+):'):lower(); -- get the interwiki prefix
if cfg.inter_wiki_map[prefix] then -- if prefix is in the map, must have preceding colon
orig = lorig; -- flag as error
end
end
end
if utilities.is_set (orig) then
link = ''; -- unset
utilities.set_message ('err_bad_paramlink', orig); -- URL or wikilink in |title= with |title-link=;
end
return link; -- link if ok, empty string else
end
--[[--------------------------< C H E C K _ U R L >------------------------------------------------------------
Determines whether a URL string appears to be valid.
First we test for space characters. If any are found, return false. Then split the URL into scheme and domain
portions, or for protocol-relative (//example.com) URLs, just the domain. Use is_url() to validate the two
portions of the URL. If both are valid, or for protocol-relative if domain is valid, return true, else false.
Because it is different from a standard URL, and because this module used external_link() to make external links
that work for standard and news: links, we validate newsgroup names here. The specification for a newsgroup name
is at https://tools.ietf.org/html/rfc5536#section-3.1.4
]]
local function check_url( url_str )
if nil == url_str:match ("^%S+$") then -- if there are any spaces in |url=value it can't be a proper URL
return false;
end
local scheme, domain;
scheme, domain = split_url (url_str); -- get scheme or nil and domain or nil from URL;
if 'news:' == scheme then -- special case for newsgroups
return domain:match('^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$');
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[=[-------------------------< I S _ P A R A M E T E R _ E X T _ W I K I L I N K >----------------------------
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first
non-space characters following the opening bracket appear to be a URL. The test will also find external wikilinks
that use protocol-relative URLs. Also finds bare URLs.
The frontier pattern prevents a match on interwiki-links which are similar to scheme:path URLs. The tests that
find bracketed URLs are required because the parameters that call this test (currently |title=, |chapter=, |work=,
and |publisher=) may have wikilinks and there are articles or redirects like '//Hus' so, while uncommon, |title=[[//Hus]]
is possible as might be [[en://Hus]].
]=]
local function is_parameter_ext_wikilink (value)
local scheme, domain;
if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext. wikilink with scheme and domain: [xxxx://yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(%a%S*:%S+).*%]'));
elseif value:match ('%f[%[]%[//%S+.*%]') then -- if protocol-relative ext. wikilink: [//yyyyy.zzz]
scheme, domain = split_url (value:match ('%f[%[]%[(//%S+).*%]'));
elseif value:match ('%a%S*:%S+') then -- if bare URL with scheme; may have leading or trailing plain text
scheme, domain = split_url (value:match ('(%a%S*:%S+)'));
elseif value:match ('^//%S+') or value:match ('%s//%S+') then -- if protocol-relative bare URL: //yyyyy.zzz; authority indicator (//) must be be preceded nothing or by whitespace
scheme, domain = split_url (value:match ('(//%S+)')); -- what is left should be the domain
else
return false; -- didn't find anything that is obviously a URL
end
return is_url (scheme, domain); -- return true if value appears to be a valid URL
end
--[[--------------------------< I S _ A R C H I V E _ T O D A Y _ U R L >--------------------------------------
archive.today (and .ph, .is, .md, .li, .fo, .vn) are deprecated. See Wikipedia:Requests_for_comment/Archive.is_RFC_5
(Special:Permalink/1339352976)
<val> is a string that may or may not be a url
]]
local function is_archive_today_url (val)
if is_parameter_ext_wikilink (val) then -- is <val> a url?
local tld = val:match ('archive%.(%l+)'); -- get the tld
return tld and cfg.archive_today_tlds_t[tld]; -- return true if <tld> is one of the archive.today tlds; nil else
end
end
--[[--------------------------< H A S _ A R C H I V E _ T O D A Y _ U R L >------------------------------------
blank any parameter that holds one of the archive.today tlds (.today, .ph, .is, .md, .li, .fo, .vn) and also
blank parameters that are dependent on the offending parameter.
input <cite_args_t> is a table of all of this template's parameters This function modifies <cite_args_t>
when |url= or its alias |URL= hold an archive.today url, this function sets the flag <url_was_archive_today>
which is used later to suppress the missing url error message from {{citation}} when it has |website=<summat>
or from the templates {{cite web}}, {{cite podcast}}, {{cite mailing list}} which all require a url.
returns nothing
]]
local function has_archive_today_url (cite_args_t)
local unset_params_t = {}; -- to hold a sequence of parameters to unset from cite_args_t
for p, v in pairs (cite_args_t) do -- look at each parameter in the template
if is_archive_today_url (v:lower()) then -- if it has a parameter with an archive.today url
table.insert (unset_params_t, p); -- add the url-holding parameter name to our list of parameters to unset (may or may not be a legitimate url parameter)
if 'url' == p:lower() then -- if this parameter is |url= or |URL=
url_was_archive_today = true; -- set a flag so that cite web / podcast / mailinglist don't emit a missing url error message
end
if cfg.dependencies_t[p] then -- if this url-holding parameter (<p>) has dependencies
for _, dependent in ipairs (cfg.dependencies_t[p]) do -- loop through the url-holding parameter's dependency sequence
table.insert (unset_params_t, dependent); -- add dependent parameter to the list to be unset
end
end
end
end
if 0 < #unset_params_t then -- when there are parameters to unset
if not is_preview_mode then -- when in preview mode do not suppress any parameters
for _, unset_param in ipairs (unset_params_t) do -- loop through the sequence
cite_args_t[unset_param] = nil; -- and unset the url-holding parameter and its dependent parameters to avoid parameter-requires-other-parameter errors
end
end
utilities.set_message ('maint_deprecated_archive'); -- add a maintenance message
end
end
--[[-------------------------< C H E C K _ F O R _ U R L >-----------------------------------------------------
loop through a list of parameters and their values. Look at the value and if it has an external link, emit an error message.
]]
local function check_for_url (parameter_list, error_list)
for k, v in pairs (parameter_list) do -- for each parameter in the list
if is_parameter_ext_wikilink (v) then -- look at the value; if there is a URL add an error message
table.insert (error_list, utilities.wrap_style ('parameter', k));
end
end
end
--[[--------------------------< S A F E _ F O R _ U R L >------------------------------------------------------
Escape sequences for content that will be used for URL descriptions
]]
local function safe_for_url( str )
if str:match( "%[%[.-%]%]" ) ~= nil then
utilities.set_message ('err_wikilink_in_url', {});
end
return str:gsub( '[%[%]\n]', {
['['] = '[',
[']'] = ']',
['\n'] = ' ' } );
end
--[[--------------------------< E X T E R N A L _ L I N K >----------------------------------------------------
Format an external link with error checking
]]
local function external_link (URL, label, source, access)
local err_msg = '';
local domain;
local path;
local base_url;
if not utilities.is_set (label) then
label = URL;
if utilities.is_set (source) then
--#Modified
utilities.set_message (wikidatacite and 'err_wikidata_bare_url_missing_title' or 'err_bare_url_missing_title', {utilities.wrap_style ('parameter', source)});
else
error (cfg.messages["bare_url_no_origin"]); -- programmer error; valid parameter name does not have matching meta-parameter
end
end
if not check_url (URL) then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)});
end
domain, path = URL:match ('^([/%.%-%+:%a%d]+)([/%?#].*)$'); -- split the URL into scheme plus domain and path
if path then -- if there is a path portion
path = path:gsub ('[%[%]]', {['['] = '%5b', [']'] = '%5d'}); -- replace '[' and ']' with their percent-encoded values
URL = table.concat ({domain, path}); -- and reassemble
end
base_url = table.concat ({ "[", URL, " ", safe_for_url (label), "]" }); -- assemble a wiki-markup URL
if utilities.is_set (access) then -- access level (subscription, registration, limited)
base_url = utilities.substitute (cfg.presentation['ext-link-access-signal'], {cfg.presentation[access].class, cfg.presentation[access].title, base_url}); -- add the appropriate icon
end
return base_url;
end
--[[--------------------------< D E P R E C A T E D _ P A R A M E T E R >--------------------------------------
Categorize and emit an error message when the citation contains one or more deprecated parameters. The function includes the
offending parameter name to the error message. Only one error message is emitted regardless of the number of deprecated
parameters in the citation.
added_deprecated_cat is a Boolean declared in page scope variables above
]]
local function deprecated_parameter(name)
if not added_deprecated_cat then
added_deprecated_cat = true; -- note that we've added this category
utilities.set_message ('err_deprecated_params', {name}); -- add error message
end
end
--[=[-------------------------< K E R N _ Q U O T E S >--------------------------------------------------------
Apply kerning to open the space between the quote mark provided by the module and a leading or trailing quote
mark contained in a |title= or |chapter= parameter's value.
This function will positive kern either single or double quotes:
"'Unkerned title with leading and trailing single quote marks'"
" 'Kerned title with leading and trailing single quote marks' " (in real life the kerning isn't as wide as this example)
Double single quotes (italic or bold wiki-markup) are not kerned.
Replaces Unicode quote marks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter
quote marks regardless of the need for kerning. Unicode quote marks are not replaced in simple [[D]] wikilinks.
Call this function for chapter titles, for website titles, etc.; not for book titles.
]=]
local function kern_quotes (str)
local cap = '';
local wl_type, label, link;
wl_type, label, link = utilities.is_wikilink (str); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
if 1 == wl_type then -- [[D]] simple wikilink with or without quote marks
if mw.ustring.match (str, '%[%[[\"“”\'‘’].+[\"“”\'‘’]%]%]') then -- leading and trailing quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
str = utilities.substitute (cfg.presentation['kern-right'], str);
elseif mw.ustring.match (str, '%[%[[\"“”\'‘’].+%]%]') then -- leading quote marks
str = utilities.substitute (cfg.presentation['kern-left'], str);
elseif mw.ustring.match (str, '%[%[.+[\"“”\'‘’]%]%]') then -- trailing quote marks
str = utilities.substitute (cfg.presentation['kern-right'], str);
end
else -- plain text or [[L|D]]; text in label variable
label = mw.ustring.gsub (label, '[“”]', '\"'); -- replace “” (U+201C & U+201D) with " (typewriter double quote mark)
label = mw.ustring.gsub (label, '[‘’]', '\''); -- replace ‘’ (U+2018 & U+2019) with ' (typewriter single quote mark)
cap = mw.ustring.match (label, "^([\"\'][^\'].+)"); -- match leading double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-left'], cap);
end
cap = mw.ustring.match (label, "^(.+[^\'][\"\'])$") -- match trailing double or single quote but not doubled single quotes (italic markup)
if utilities.is_set (cap) then
label = utilities.substitute (cfg.presentation['kern-right'], cap);
end
if 2 == wl_type then
str = utilities.make_wikilink (link, label); -- reassemble the wikilink
else
str = label;
end
end
return str;
end
--[[--------------------------< F O R M A T _ S C R I P T _ V A L U E >----------------------------------------
|script-title= holds title parameters that are not written in Latin-based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should
not be italicized and may be written right-to-left. The value supplied by |script-title= is concatenated onto Title after Title has been wrapped
in italic markup.
Regardless of language, all values provided by |script-title= are wrapped in <bdi>...</bdi> tags to isolate RTL languages from the English left to right.
|script-title= provides a unique feature. The value in |script-title= may be prefixed with a two-character ISO 639-1 language code and a colon:
|script-title=ja:*** *** (where * represents a Japanese character)
Spaces between the two-character code and the colon and the colon and the first script character are allowed:
|script-title=ja : *** ***
|script-title=ja: *** ***
|script-title=ja :*** ***
Spaces preceding the prefix are allowed: |script-title = ja:*** ***
The prefix is checked for validity. If it is a valid ISO 639-1 language code, the lang attribute (lang="ja") is added to the <bdi> tag so that browsers can
know the language the tag contains. This may help the browser render the script more correctly. If the prefix is invalid, the lang attribute
is not added. At this time there is no error message for this condition.
Supports |script-title=, |script-chapter=, |script-<periodical>=
]]
local function format_script_value (script_value, script_param)
local lang=''; -- initialize to empty string
local name;
if script_value:match('^%l%l%l?%s*:') then -- if first 3 or 4 non-space characters are script language prefix
lang = script_value:match('^(%l%l%l?)%s*:%s*%S.*'); -- get the language prefix or nil if there is no script
if not utilities.is_set (lang) then
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing title part']}); -- prefix without 'title'; add error message
return ''; -- script_value was just the prefix so return empty string
end
-- if we get this far we have prefix and script
--#modified for faster
name = cfg.lang_tag_remap[lang] or cfg.mw_languages_by_tag_t[lang]; -- get language name so that we can use it to categorize
if utilities.is_set (name) then -- is prefix a proper ISO 639-1 language code?
script_value = script_value:gsub ('^%l+%s*:%s*', ''); -- strip prefix from script
-- is prefix one of these language codes?
if utilities.in_array (lang, cfg.script_lang_codes) then
utilities.add_prop_cat ('script', {name, lang})
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['unknown language code']}); -- unknown script-language; add error message
end
lang = ' lang="' .. lang .. '" '; -- convert prefix into a lang attribute
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['invalid language code']}); -- invalid language code; add error message
lang = ''; -- invalid so set lang to empty string
end
else
utilities.set_message ('err_script_parameter', {script_param, cfg.err_msg_supl['missing prefix']}); -- no language code prefix; add error message
end
script_value = utilities.substitute (cfg.presentation['bdi'], {lang, script_value}); -- isolate in case script is RTL
return script_value;
end
--[[--------------------------< S C R I P T _ C O N C A T E N A T E >------------------------------------------
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script
value has been wrapped in <bdi> tags.
]]
local function script_concatenate (title, script, script_param)
if utilities.is_set (script) then
script = format_script_value (script, script_param); -- <bdi> tags, lang attribute, categorization, etc.; returns empty string on error
if utilities.is_set (script) then
title = title .. ' ' .. script; -- concatenate title and script title
end
end
return title;
end
--[[--------------------------< W R A P _ M S G >--------------------------------------------------------------
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list
configuration taking one argument. Supports lower case text for {{citation}} templates. Additional text taken
from citation_config.messages - the reason this function is similar to but separate from wrap_style().
]]
local function wrap_msg (key, str, lower)
if not utilities.is_set ( str ) then
return "";
end
if true == lower then
local msg;
msg = cfg.messages[key]:lower(); -- set the message to lower case before
return utilities.substitute ( msg, str ); -- including template text
else
return utilities.substitute ( cfg.messages[key], str );
end
end
--[[----------------< W I K I S O U R C E _ U R L _ M A K E >-------------------
Makes a Wikisource URL from Wikisource interwiki-link. Returns the URL and appropriate
label; nil else.
str is the value assigned to |chapter= (or aliases) or |title= or |title-link=
]]
local function wikisource_url_make (str)
local wl_type, D, L;
local ws_url, ws_label;
local wikisource_prefix = table.concat ({'https://', cfg.this_wiki_code, '.wikisource.org/wiki/'});
wl_type, D, L = utilities.is_wikilink (str); -- wl_type is 0 (not a wikilink), 1 (simple wikilink), 2 (complex wikilink)
if 0 == wl_type then -- not a wikilink; might be from |title-link=
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 1 == wl_type then -- simple wikilink: [[Wikisource:ws article]]
str = D:match ('^[Ww]ikisource:(.+)') or D:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title
});
ws_label = str; -- label for the URL
end
elseif 2 == wl_type then -- non-so-simple wikilink: [[Wikisource:ws article|displayed text]] ([[L|D]])
str = L:match ('^[Ww]ikisource:(.+)') or L:match ('^[Ss]:(.+)'); -- article title from interwiki link with long-form or short-form namespace
if utilities.is_set (str) then
ws_label = D; -- get ws article name from display portion of interwiki link
ws_url = table.concat ({ -- build a Wikisource URL
wikisource_prefix, -- prefix
str, -- article title without namespace from link portion of wikilink
});
end
end
if ws_url then
ws_url = mw.uri.encode (ws_url, 'WIKI'); -- make a usable URL
ws_url = ws_url:gsub ('%%23', '#'); -- undo percent-encoding of fragment marker
end
return ws_url, ws_label, L or D; -- return proper URL or nil and a label or nil
end
--[[----------------< F O R M A T _ P E R I O D I C A L >-----------------------
Format the three periodical parameters: |script-<periodical>=, |<periodical>=,
and |trans-<periodical>= into a single Periodical meta-parameter.
]]
local function format_periodical (script_periodical, script_periodical_source, periodical, trans_periodical)
if not utilities.is_set (periodical) then
periodical = ''; -- to be safe for concatenation
else
periodical = utilities.wrap_style ('italic-title', periodical); -- style
end
periodical = script_concatenate (periodical, script_periodical, script_periodical_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (trans_periodical) then
trans_periodical = utilities.wrap_style ('trans-italic-title', trans_periodical);
if utilities.is_set (periodical) then
periodical = periodical .. ' ' .. trans_periodical;
else -- here when trans-periodical without periodical or script-periodical
periodical = trans_periodical;
utilities.set_message ('err_trans_missing_title', {'periodical'});
end
end
return periodical;
end
--[[------------------< F O R M A T _ C H A P T E R _ T I T L E >---------------
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=,
and |chapter-url= into a single chapter meta- parameter (chapter_url_source used
for error messages).
]]
local function format_chapter_title (script_chapter, script_chapter_source, chapter, chapter_source, trans_chapter, trans_chapter_source, chapter_url, chapter_url_source, no_quotes, access)
local ws_url, ws_label, L = wikisource_url_make (chapter); -- make a wikisource URL and label from a wikisource interwiki link
if ws_url then
ws_label = ws_label:gsub ('_', ' '); -- replace underscore separators with space characters
chapter = ws_label;
end
if not utilities.is_set (chapter) then
chapter = ''; -- to be safe for concatenation
else
if false == no_quotes then
chapter = kern_quotes (chapter); -- if necessary, separate chapter title's leading and trailing quote marks from module provided quote marks
chapter = utilities.wrap_style ('quoted-title', chapter);
end
end
chapter = script_concatenate (chapter, script_chapter, script_chapter_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
if utilities.is_set (chapter_url) then
chapter = external_link (chapter_url, chapter, chapter_url_source, access); -- adds bare_url_missing_title error if appropriate
elseif ws_url then
chapter = external_link (ws_url, chapter .. ' ', 'ws link in chapter'); -- adds bare_url_missing_title error if appropriate; space char to move icon away from chap text; TODO: better way to do this?
chapter = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, chapter});
end
if utilities.is_set (trans_chapter) then
trans_chapter = utilities.wrap_style ('trans-quoted-title', trans_chapter);
if utilities.is_set (chapter) then
chapter = chapter .. ' ' .. trans_chapter;
else -- here when trans_chapter without chapter or script-chapter
chapter = trans_chapter;
chapter_source = trans_chapter_source:match ('trans%-?(.+)'); -- when no chapter, get matching name from trans-<param>
utilities.set_message ('err_trans_missing_title', {chapter_source});
end
end
return chapter;
end
--[[----------------< H A S _ I N V I S I B L E _ C H A R S >-------------------
This function searches a parameter's value for non-printable or invisible characters.
The search stops at the first match.
This function will detect the visible replacement character when it is part of the Wikisource.
Detects but ignores nowiki and math stripmarkers. Also detects other named stripmarkers
(gallery, math, pre, ref) and identifies them with a slightly different error message.
See also coins_cleanup().
Output of this function is an error message that identifies the character or the
Unicode group, or the stripmarker that was detected along with its position (or,
for multi-byte characters, the position of its first byte) in the parameter value.
]]
local function has_invisible_chars (param, v)
local position = ''; -- position of invisible char or starting position of stripmarker
local capture; -- used by stripmarker detection to hold name of the stripmarker
local stripmarker; -- boolean set true when a stripmarker is found
capture = string.match (v, '[%w%p ]*'); -- test for values that are simple ASCII text and bypass other tests if true
if capture == v then -- if same there are no Unicode characters
return;
end
for _, invisible_char in ipairs (cfg.invisible_chars) do
local char_name = invisible_char[1]; -- the character or group name
local pattern = invisible_char[2]; -- the pattern used to find it
position, _, capture = mw.ustring.find (v, pattern); -- see if the parameter value contains characters that match the pattern
if position and (cfg.invisible_defs.zwj == capture) then -- if we found a zero-width joiner character
if mw.ustring.find (v, cfg.indic_script) then -- it's ok if one of the Indic scripts
position = nil; -- unset position
elseif cfg.emoji_t[mw.ustring.codepoint (v, position+1)] then -- is zwj followed by a character listed in emoji{}?
position = nil; -- unset position
end
end
if position then
if 'nowiki' == capture or 'math' == capture or -- nowiki and math stripmarkers (not an error condition)
('templatestyles' == capture and utilities.in_array (param, {'id', 'quote','المعرف', 'اقتباس'})) then -- templatestyles stripmarker allowed in these parameters
stripmarker = true; -- set a flag
elseif true == stripmarker and cfg.invisible_defs.del == capture then -- because stripmakers begin and end with the delete char, assume that we've found one end of a stripmarker
position = nil; -- unset
else
local err_msg;
if capture and not (cfg.invisible_defs.del == capture or cfg.invisible_defs.zwj == capture) then
err_msg = utilities.substitute (cfg.messages.invisible_1, {capture, char_name}); -- <capture> here is stripmarker name
else
err_msg = utilities.substitute (cfg.messages.invisible_2, char_name);
end
utilities.set_message ('err_invisible_char', {err_msg, utilities.wrap_style ('parameter', param), position}); -- add error message
return; -- and done with this parameter
end
end
end
end
--[[-------------------< A R G U M E N T _ W R A P P E R >----------------------
Argument wrapper. This function provides support for argument mapping defined
in the configuration file so that multiple names can be transparently aliased to
single internal variable.
]]
local function argument_wrapper ( args )
local origin = {};
return setmetatable({
ORIGIN = function ( self, k )
local dummy = self[k]; -- force the variable to be loaded.
return origin[k];
end
},
{
__index = function ( tbl, k )
if origin[k] ~= nil then
return nil;
end
local args, list, v = args, cfg.aliases[k];
if type( list ) == 'table' then
v, origin[k] = utilities.select_one ( args, list, 'err_redundant_parameters' );
if origin[k] == nil then
origin[k] = ''; -- Empty string, not nil
end
elseif list ~= nil then
v, origin[k] = args[list], list;
else
-- maybe let through instead of raising an error?
-- v, origin[k] = args[k], k;
error( cfg.messages['unknown_argument_map'] .. ': ' .. k);
end
-- Empty strings, not nil;
if v == nil then
v = '';
origin[k] = '';
end
tbl = rawset( tbl, k, v );
return v;
end,
});
end
--[[--------------------------< N O W R A P _ D A T E >-------------------------
When date is YYYY-MM-DD format wrap in nowrap span: <span ...>YYYY-MM-DD</span>.
When date is DD MMMM YYYY or is MMMM DD, YYYY then wrap in nowrap span:
<span ...>DD MMMM</span> YYYY or <span ...>MMMM DD,</span> YYYY
DOES NOT yet support MMMM YYYY or any of the date ranges.
]]
local function nowrap_date (date)
local cap = '';
local cap2 = '';
if date:match("^%d%d%d%d%-%d%d%-%d%d$") then
date = utilities.substitute (cfg.presentation['nowrap1'], date);
elseif date:match("^%a+%s*%d%d?,%s+%d%d%d%d$") or date:match ("^%d%d?%s*%a+%s+%d%d%d%d$") then
cap, cap2 = string.match (date, "^(.*)%s+(%d%d%d%d)$");
date = utilities.substitute (cfg.presentation['nowrap2'], {cap, cap2});
end
return date;
end
--[[--------------------------< S E T _ T I T L E T Y P E >---------------------
This function sets default title types (equivalent to the citation including
|type=<default value>) for those templates that have defaults. Also handles the
special case where it is desirable to omit the title type from the rendered citation
(|type=none).
]]
local function set_titletype (cite_class, title_type)
if utilities.is_set (title_type) then
if 'none' == cfg.keywords_xlate[title_type] then
title_type = ''; -- if |type=none then type parameter not displayed
end
return title_type; -- if |type= has been set to any other value use that value
end
return cfg.title_types [cite_class] or ''; -- set template's default title type; else empty string for concatenation
end
--[[--------------------------< S A F E _ J O I N >-----------------------------
Joins a sequence of strings together while checking for duplicate separation characters.
]]
local function safe_join( tbl, duplicate_char )
local f = {}; -- create a function table appropriate to type of 'duplicate character'
if 1 == #duplicate_char then -- for single byte ASCII characters use the string library functions
f.gsub = string.gsub
f.match = string.match
f.sub = string.sub
else -- for multi-byte characters use the ustring library functions
f.gsub = mw.ustring.gsub
f.match = mw.ustring.match
f.sub = mw.ustring.sub
end
local str = ''; -- the output string
local comp = ''; -- what does 'comp' mean?
local end_chr = '';
local trim;
for _, value in ipairs( tbl ) do
if value == nil then value = ''; end
if str == '' then -- if output string is empty
str = value; -- assign value to it (first time through the loop)
elseif value ~= '' then
if value:sub(1, 1) == '<' then -- special case of values enclosed in spans and other markup.
comp = value:gsub( "%b<>", "" ); -- remove HTML markup (<span>string</span> -> string)
else
comp = value;
end
-- typically duplicate_char is sepc
if f.sub(comp, 1, 1) == duplicate_char then -- is first character same as duplicate_char? why test first character?
-- Because individual string segments often (always?) begin with terminal punct for the
-- preceding segment: 'First element' .. 'sepc next element' .. etc.?
trim = false;
end_chr = f.sub(str, -1, -1); -- get the last character of the output string
-- str = str .. "<HERE(enchr=" .. end_chr .. ")" -- debug stuff?
if end_chr == duplicate_char then -- if same as separator
str = f.sub(str, 1, -2); -- remove it
elseif end_chr == "'" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "''" then -- if last three chars of str are sepc''
str = f.sub(str, 1, -4) .. "''"; -- remove them and add back ''
elseif f.sub(str, -5, -1) == duplicate_char .. "]]''" then -- if last five chars of str are sepc]]''
trim = true; -- why? why do this and next differently from previous?
elseif f.sub(str, -4, -1) == duplicate_char .. "]''" then -- if last four chars of str are sepc]''
trim = true; -- same question
end
elseif end_chr == "]" then -- if it might be wiki-markup
if f.sub(str, -3, -1) == duplicate_char .. "]]" then -- if last three chars of str are sepc]] wikilink
trim = true;
elseif f.sub(str, -3, -1) == duplicate_char .. '"]' then -- if last three chars of str are sepc"] quoted external link
trim = true;
elseif f.sub(str, -2, -1) == duplicate_char .. "]" then -- if last two chars of str are sepc] external link
trim = true;
elseif f.sub(str, -4, -1) == duplicate_char .. "'']" then -- normal case when |url=something & |title=Title.
trim = true;
end
elseif end_chr == " " then -- if last char of output string is a space
if f.sub(str, -2, -1) == duplicate_char .. " " then -- if last two chars of str are <sepc><space>
str = f.sub(str, 1, -3); -- remove them both
end
end
if trim then
if value ~= comp then -- value does not equal comp when value contains HTML markup
local dup2 = duplicate_char;
if f.match(dup2, "%A" ) then dup2 = "%" .. dup2; end -- if duplicate_char not a letter then escape it
value = f.gsub(value, "(%b<>)" .. dup2, "%1", 1 ) -- remove duplicate_char if it follows HTML markup
else
value = f.sub(value, 2, -1 ); -- remove duplicate_char when it is first character
end
end
end
str = str .. value; -- add it to the output string
end
end
return str;
end
--[[--------------------------< I S _ S U F F I X >-----------------------------
returns true if suffix is properly formed Jr, Sr, or ordinal in the range 1–9.
Puncutation not allowed.
]]
local function is_suffix (suffix)
if utilities.in_array (suffix, {'Jr', 'Sr', 'Jnr', 'Snr', '1st', '2nd', '3rd'}) or suffix:match ('^%dth$') then
return true;
end
return false;
end
--[[--------------------< I S _ G O O D _ V A N C _ N A M E >-------------------
For Vancouver style, author/editor names are supposed to be rendered in Latin
(read ASCII) characters. When a name uses characters that contain diacritical
marks, those characters are to be converted to the corresponding Latin
character. When a name is written using a non-Latin alphabet or logogram, that
name is to be transliterated into Latin characters. The module doesn't do this
so editors may/must.
This test allows |first= and |last= names to contain any of the letters defined
in the four Unicode Latin character sets
[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A
[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF
[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F
[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F
|lastn= also allowed to contain hyphens, spaces, and apostrophes.
(http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods
This original test:
if nil == mw.ustring.find (last, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%']*$")
or nil == mw.ustring.find (first, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%'%.]+[2-6%a]*$") then
was written outside of the code editor and pasted here because the code editor
gets confused between character insertion point and cursor position. The test has
been rewritten to use decimal character escape sequence for the individual bytes
of the Unicode characters so that it is not necessary to use an external editor
to maintain this code.
\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)
\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)
\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A & B)
\199\132-\201\143 – DŽ-ɏ (U+01C4-U+024F – Latin extended B)
]]
local function is_good_vanc_name (last, first, suffix, position)
if not suffix then
if first:find ('[,%s]') then -- when there is a space or comma, might be first name/initials + generational suffix
first = first:match ('(.-)[,%s]+'); -- get name/initials
suffix = first:match ('[,%s]+(.+)$'); -- get generational suffix
end
end
if utilities.is_set (suffix) then
if not is_suffix (suffix) then
add_vanc_error (cfg.err_msg_supl.suffix, position);
return false; -- not a name with an appropriate suffix
end
end
if nil == mw.ustring.find (last, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%']*$") or
nil == mw.ustring.find (first, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143\225\184\128-\225\187\191%-%s%'%.]*$") then
add_vanc_error (cfg.err_msg_supl['non-Latin char'], position);
return false; -- not a string of Latin characters; Vancouver requires Romanization
end;
return true;
end
--[[--------------------------< R E D U C E _ T O _ I N I T I A L S >------------------------------------------
Attempts to convert names to initials in support of |name-list-style=vanc.
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period.
See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.
Vancouver style requires family rank designations (Jr, II, III, etc.) to be rendered
as Jr, 2nd, 3rd, etc. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.
This code only accepts and understands generational suffix in the Vancouver format
because Roman numerals look like, and can be mistaken for, initials.
This function uses ustring functions because firstname initials may be any of the
Unicode Latin characters accepted by is_good_vanc_name ().
]]
local function reduce_to_initials (first, position)
if first:find (',', 1, true) then
return first; -- commas not allowed; abandon
end
local name, suffix = mw.ustring.match (first, "^(%u+) ([%dJS][%drndth]+)$");
if not name then -- if not initials and a suffix
name = mw.ustring.match (first, "^(%u+)$"); -- is it just initials?
end
if name then -- if first is initials with or without suffix
if 3 > mw.ustring.len (name) then -- if one or two initials
if suffix then -- if there is a suffix
if is_suffix (suffix) then -- is it legitimate?
return first; -- one or two initials and a valid suffix so nothing to do
else
add_vanc_error (cfg.err_msg_supl.suffix, position); -- one or two initials with invalid suffix so error message
return first; -- and return first unmolested
end
else
return first; -- one or two initials without suffix; nothing to do
end
end
end -- if here then name has 3 or more uppercase letters so treat them as a word
local initials_t, names_t = {}, {}; -- tables to hold name parts and initials
local i = 1; -- counter for number of initials
names_t = mw.text.split (first, '[%s%-]+'); -- split into a sequence of names and possible suffix
while names_t[i] do -- loop through the sequence
if 1 < i and names_t[i]:match ('[%dJS][%drndth]+%.?$') then -- if not the first name, and looks like a suffix (may have trailing dot)
names_t[i] = names_t[i]:gsub ('%.', ''); -- remove terminal dot if present
if is_suffix (names_t[i]) then -- if a legitimate suffix
table.insert (initials_t, ' ' .. names_t[i]); -- add a separator space, insert at end of initials sequence
break; -- and done because suffix must fall at the end of a name
end -- no error message if not a suffix; possibly because of Romanization
end
if 3 > i then
table.insert (initials_t, mw.ustring.sub (names_t[i], 1, 1)); -- insert the initial at end of initials sequence
end
i = i + 1; -- bump the counter
end
return table.concat (initials_t); -- Vancouver format does not include spaces.
end
--[[--------------------------< I N T E R W I K I _ P R E F I X E N _ G E T >----------------------------------
extract interwiki prefixen from <value>. Returns two one or two values:
false – no prefixen
nil – prefix exists but not recognized
project prefix, language prefix – when value has either of:
:<project>:<language>:<article>
:<language>:<project>:<article>
project prefix, nil – when <value> has only a known single-letter prefix
nil, language prefix – when <value> has only a known language prefix
accepts single-letter project prefixen: 'd' (wikidata), 's' (wikisource), and 'w' (wikipedia) prefixes; at this
writing, the other single-letter prefixen (b (wikibook), c (commons), m (meta), n (wikinews), q (wikiquote), and
v (wikiversity)) are not supported.
]]
local function interwiki_prefixen_get (value, is_link)
if not value:find (':%l+:') then -- if no prefix
return false; -- abandon; boolean here to distinguish from nil fail returns later
end
local prefix_patterns_linked_t = { -- sequence of valid interwiki and inter project prefixen
'^%[%[:([dsw]):(%l%l+):', -- wikilinked; project and language prefixes
'^%[%[:(%l%l+):([dsw]):', -- wikilinked; language and project prefixes
'^%[%[:([dsw]):', -- wikilinked; project prefix
'^%[%[:(%l%l+):', -- wikilinked; language prefix
}
local prefix_patterns_unlinked_t = { -- sequence of valid interwiki and inter project prefixen
'^:([dsw]):(%l%l+):', -- project and language prefixes
'^:(%l%l+):([dsw]):', -- language and project prefixes
'^:([dsw]):', -- project prefix
'^:(%l%l+):', -- language prefix
}
local cap1, cap2;
for _, pattern in ipairs ((is_link and prefix_patterns_linked_t) or prefix_patterns_unlinked_t) do
cap1, cap2 = value:match (pattern);
if cap1 then
break; -- found a match so stop looking
end
end
if cap1 and cap2 then -- when both then :project:language: or :language:project: (both forms allowed)
if 1 == #cap1 then -- length == 1 then :project:language:
if cfg.inter_wiki_map[cap2] then -- is language prefix in the interwiki map?
return cap1, cap2; -- return interwiki project and interwiki language
end
else -- here when :language:project:
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return cap2, cap1; -- return interwiki project and interwiki language
end
end
return nil; -- unknown interwiki language
elseif not (cap1 or cap2) then -- both are nil?
return nil; -- we got something that looks like a project prefix but isn't; return fail
elseif 1 == #cap1 then -- here when one capture
return cap1, nil; -- length is 1 so return project, nil language
else -- here when one capture and its length it more than 1
if cfg.inter_wiki_map[cap1] then -- is language prefix in the interwiki map?
return nil, cap1; -- return nil project, language
end
end
end
--[[--------------------------< L I S T _ P E O P L E >--------------------------
Formats a list of people (authors, contributors, editors, interviewers, translators)
names in the list will be linked when
|<name>-link= has a value
|<name>-mask- does NOT have a value; masked names are presumed to have been
rendered previously so should have been linked there
when |<name>-mask=0, the associated name is not rendered
]]
local function list_people (control, people, etal)
local sep;
local namesep;
local format = control.format;
local maximum = control.maximum;
local name_list = {};
if 'vanc' == format then -- Vancouver-like name styling?
sep = cfg.presentation['sep_nl_vanc']; -- name-list separator between names is a comma
namesep = cfg.presentation['sep_name_vanc']; -- last/first separator is a space
else
sep = cfg.presentation['sep_nl']; -- name-list separator between names is a semicolon
namesep = cfg.presentation['sep_name']; -- last/first separator is <comma><space>
end
if sep:sub (-1, -1) ~= " " then sep = sep .. " " end
if utilities.is_set (maximum) and maximum < 1 then return "", 0; end -- returned 0 is for EditorCount; not used for other names
for i, person in ipairs (people) do
if utilities.is_set (person.last) then
local mask = person.mask;
local one;
local sep_one = sep;
if utilities.is_set (maximum) and i > maximum then
etal = true;
break;
end
if mask then
local n = tonumber (mask); -- convert to a number if it can be converted; nil else
if n then
one = 0 ~= n and string.rep("—", n) or nil; -- make a string of (n > 0) mdashes, nil else, to replace name
person.link = nil; -- don't create link to name if name is replaces with mdash string or has been set nil
else
one = mask; -- replace name with mask text (must include name-list separator)
sep_one = " "; -- modify name-list separator
end
else
one = person.last; -- get surname
local first = person.first -- get given name
if utilities.is_set (first) then
if ("vanc" == format) then -- if Vancouver format
one = one:gsub ('%.', ''); -- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)
if not person.corporate and is_good_vanc_name (one, first, nil, i) then -- and name is all Latin characters; corporate authors not tested
first = reduce_to_initials (first, i); -- attempt to convert first name(s) to initials
end
end
one = one .. namesep .. first;
end
end
if utilities.is_set (person.link) then
one = utilities.make_wikilink (person.link, one); -- link author/editor
end
if one then -- if <one> has a value (name, mdash replacement, or mask text replacement)
local proj, tag = interwiki_prefixen_get (one, true); -- get the interwiki prefixen if present
if 'w' == proj and ('Wikipedia' == mw.site.namespaces.Project['name']) then
proj = nil; -- for stuff like :w:de:<article>, :w is unnecessary TODO: maint cat?
end
if proj then
local proj_name = ({['d'] = cfg.messages.wikidata, ['s'] = cfg.messages.wikisource, ['w'] = cfg.messages.wikipedia})[proj]; -- :w (wikipedia) for linking from a non-wikipedia project
if proj_name then
one = one .. utilities.wrap_style ('interproj', proj_name); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interproj-linked-name', proj); -- categorize it; <proj> is sort key
tag = nil; -- unset; don't do both project and language
end
end
if tag == cfg.this_wiki_code then
tag = nil; -- stuff like :en:<article> at en.wiki is pointless TODO: maint cat?
end
if tag then
local lang = cfg.lang_tag_remap[tag] or cfg.mw_languages_by_tag_t[tag];
if lang then -- error messaging done in extract_names() where we know parameter names
one = one .. utilities.wrap_style ('interwiki', lang); -- add resized leading space, brackets, static text, language name
utilities.add_prop_cat ('interwiki-linked-name', tag); -- categorize it; <tag> is sort key
end
end
table.insert (name_list, one); -- add it to the list of names
table.insert (name_list, sep_one); -- add the proper name-list separator
end
end
end
local count = #name_list / 2; -- (number of names + number of separators) divided by 2
if 0 < count then
if 1 < count and not etal then
if 'amp' == format then
name_list[#name_list-2] = " & "; -- replace last separator with ampersand text
elseif 'and' == format then
if 2 == count then
name_list[#name_list-2] = cfg.presentation.sep_nl_and; -- replace last separator with 'and' text
else
name_list[#name_list-2] = cfg.presentation.sep_nl_end; -- replace last separator with '(sep) and' text
end
end
end
name_list[#name_list] = nil; -- erase the last separator
end
local result = table.concat (name_list); -- construct list
if etal and utilities.is_set (result) then -- etal may be set by |display-authors=etal but we might not have a last-first list
result = result .. sep .. cfg.messages['et al']; -- we've got a last-first list and etal so add et al.
end
return result, count; -- return name-list string and count of number of names (count used for editor names only)
end
--[[--------------------< M A K E _ C I T E R E F _ I D >-----------------------
Generates a CITEREF anchor ID if we have at least one name or a date. Otherwise
returns an empty string.
namelist is one of the contributor-, author-, or editor-name lists chosen in that
order. year is Year or anchor_year.
]]
local function make_citeref_id (namelist, year)
local names={}; -- a table for the one to four names and year
for i,v in ipairs (namelist) do -- loop through the list and take up to the first four last names
names[i] = v.last
if i == 4 then break end -- if four then done
end
table.insert (names, year); -- add the year at the end
local id = table.concat(names); -- concatenate names and year for CITEREF id
if utilities.is_set (id) then -- if concatenation is not an empty string
return "CITEREF" .. id; -- add the CITEREF portion
else
return ''; -- return an empty string; no reason to include CITEREF id in this citation
end
end
--[[--------------------------< C I T E _ C L A S S _A T T R I B U T E _M A K E >------------------------------
construct <cite> tag class attribute for this citation.
<cite_class> – config.CitationClass from calling template
<mode> – value from |mode= parameter
]]
local function cite_class_attribute_make (cite_class, mode)
local class_t = {};
table.insert (class_t, 'citation'); -- required for blue highlight
if 'citation' ~= cite_class then
table.insert (class_t, cite_class); -- identify this template for user css
table.insert (class_t, utilities.is_set (mode) and mode or 'cs1'); -- identify the citation style for user css or javascript
else
table.insert (class_t, utilities.is_set (mode) and mode or 'cs2'); -- identify the citation style for user css or javascript
end
for _, prop_key in ipairs (z.prop_keys_t) do
table.insert (class_t, prop_key); -- identify various properties for user css or javascript
end
return table.concat (class_t, ' '); -- make a big string and done
end
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
Evaluates the content of name parameters (author, editor, etc.) for variations on
the theme of et al. If found, the et al. is removed, a flag is set to true and
the function returns the modified name and the flag.
This function never sets the flag to false but returns its previous state because
it may have been set by previous passes through this function or by the associated
|display-<names>=etal parameter
]]
local function name_has_etal (name, etal, nocat, param)
if utilities.is_set (name) then -- name can be nil in which case just return
local patterns = cfg.et_al_patterns; -- get patterns from configuration
for _, pattern in ipairs (patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, ''); -- remove the offending text
etal = true; -- set flag (may have been set previously here or by |display-<names>=etal)
if not nocat then -- no categorization for |vauthors=
utilities.set_message ('err_etal', {param}); -- and set an error if not added
end
end
end
end
return name, etal;
end
--[[---------------------< N A M E _ I S _ N U M E R I C >----------------------
Add an error message and category when <name> parameter value does not contain letters.
Add a maintenance category when <name> parameter value has numeric characters mixed with characters that are
not numeric characters; could be letters and/or punctuation characters.
This function will only emit one error and one maint message for the current template. Does not emit both error
and maint messages/categories for the same parameter value.
returns nothing
]]
local function name_is_numeric (name, name_alias, list_name)
local patterns = {
'^%D+%d', -- <name> must have digits preceded by other characters
'^%D*%d+%D+', -- <name> must have digits followed by other characters
}
if not added_numeric_name_errs and mw.ustring.match (name, '^[%A]+$') then -- if we have not already set an error message and <name> does not have any alpha characters
utilities.set_message ('err_numeric_names', name_alias); -- add an error message
added_numeric_name_errs = true; -- set the flag so we emit only one error message
return; -- when here no point in further testing; abandon
end
if not added_numeric_name_maint then -- if we have already set a maint message
for _, pattern in ipairs (patterns) do -- spin through list of patterns
if mw.ustring.match (name, pattern) then -- digits preceded or followed by anything but digits; %D+ includes punctuation
utilities.set_message ('maint_numeric_names', cfg.special_case_translation [list_name]); -- add a maint cat for this template
added_numeric_name_maint = true; -- set the flag so we emit only one maint message
return; -- when here no point in further testing; abandon
end
end
end
end
--[[-----------------< N A M E _ H A S _ M U L T _ N A M E S >------------------
Evaluates the content of last/surname (authors etc.) parameters for multiple names.
Multiple names are indicated if there is more than one comma or any "unescaped"
semicolons. Escaped semicolons are ones used as part of selected HTML entities.
If the condition is met, the function adds the multiple name maintenance category.
Same test for first except that commas should not appear in given names (MOS:JR says
that the generational suffix does not take a separator character). Titles, degrees,
postnominals, affiliations, all normally comma separated don't belong in a citation.
<name> – name parameter value
<list_name> – AuthorList, EditorList, etc
<limit> – number of allowed commas; 1 (default) for surnames; 0 for given names
returns nothing
]]
local function name_has_mult_names (name, list_name, limit)
local _, commas, semicolons, nbsps;
limit = limit and limit or 1;
if utilities.is_set (name) then
_, commas = name:gsub (',', ''); -- count the number of commas
_, semicolons = name:gsub (';', ''); -- count the number of semicolons
-- nbsps probably should be its own separate count rather than merged in
-- some way with semicolons because Lua patterns do not support the
-- grouping operator that regex does, which means there is no way to add
-- more entities to escape except by adding more counts with the new
-- entities
_, nbsps = name:gsub (' ',''); -- count nbsps
-- There is exactly 1 semicolon per entity, so subtract nbsps
-- from semicolons to 'escape' them. If additional entities are added,
-- they also can be subtracted.
if limit < commas or 0 < (semicolons - nbsps) then
utilities.set_message ('maint_mult_names', cfg.special_case_translation [list_name]); -- add a maint message
end
end
end
--[=[-------------------------< I S _ G E N E R I C >----------------------------------------------------------
Compares values assigned to various parameters according to the string provided as <item> in the function call.
<item> can have on of two values:
'generic_names' – for name-holding parameters: |last=, |first=, |editor-last=, etc
'generic_titles' – for |title=
There are two types of generic tests. The 'accept' tests look for a pattern that should not be rejected by the
'reject' test. For example,
|author=[[John Smith (author)|Smith, John]]
would be rejected by the 'author' reject test. But piped wikilinks with 'author' disambiguation should not be
rejected so the 'accept' test prevents that from happening. Accept tests are always performed before reject
tests.
Each of the 'accept' and 'reject' sequence tables hold tables for en.wiki (['en']) and local.wiki (['local'])
that each can hold a test sequence table The sequence table holds, at index [1], a test pattern, and, at index
[2], a boolean control value. The control value tells string.find() or mw.ustring.find() to do plain-text search (true)
or a pattern search (false). The intent of all this complexity is to make these searches as fast as possible so
that we don't run out of processing time on very large articles.
Returns
true when a reject test finds the pattern or string
false when an accept test finds the pattern or string
nil else
]=]
local function is_generic (item, value, wiki)
local test_val;
local str_lower = { -- use string.lower() for en.wiki (['en']) and use mw.ustring.lower() or local.wiki (['local'])
['en'] = string.lower,
['local'] = mw.ustring.lower,
}
local str_find = { -- use string.find() for en.wiki (['en']) and use mw.ustring.find() or local.wiki (['local'])
['en'] = string.find,
['local'] = mw.ustring.find,
}
local function test (val, test_t, wiki) -- local function to do the testing; <wiki> selects lower() and find() functions
val = test_t[2] and str_lower[wiki](value) or val; -- when <test_t[2]> set to 'true', plaintext search using lowercase value
return str_find[wiki] (val, test_t[1], 1, test_t[2]); -- return nil when not found or matched
end
local test_types_t = {'accept', 'reject'}; -- test accept patterns first, then reject patterns
local wikis_t = {'en', 'local'}; -- do tests for each of these keys; en.wiki first, local.wiki second
for _, test_type in ipairs (test_types_t) do -- for each test type
for _, generic_value in pairs (cfg.special_case_translation[item][test_type]) do -- spin through the list of generic value fragments to accept or reject
for _, wiki in ipairs (wikis_t) do
if generic_value[wiki] then
if test (value, generic_value[wiki], wiki) then -- go do the test
return ('reject' == test_type); -- param value rejected, return true; false else
end
end
end
end
end
end
--[[--------------------------< N A M E _ I S _ G E N E R I C >------------------------------------------------
calls is_generic() to determine if <name> is a 'generic name' listed in cfg.generic_names; <name_alias> is the
parameter name used in error messaging
]]
local function name_is_generic (name, name_alias)
if not added_generic_name_errs and is_generic ('generic_names', name) then
utilities.set_message ('err_generic_name', name_alias); -- set an error message
added_generic_name_errs = true;
end
end
--[[--------------------------< N A M E _ C H E C K S >--------------------------------------------------------
This function calls various name checking functions used to validate the content of the various name-holding parameters.
]]
local function name_checks (last, first, list_name, last_alias, first_alias)
local accept_name;
if utilities.is_set (last) then
last, accept_name = utilities.has_accept_as_written (last); -- remove accept-this-as-written markup when it wraps all of <last>
if not accept_name then -- <last> not wrapped in accept-as-written markup
name_has_mult_names (last, list_name); -- check for multiple names in the parameter
name_is_numeric (last, last_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (last, last_alias); -- check for names found in the generic names list
end
end
if utilities.is_set (first) then
first, accept_name = utilities.has_accept_as_written (first); -- remove accept-this-as-written markup when it wraps all of <first>
if not accept_name then -- <first> not wrapped in accept-as-written markup
name_has_mult_names (first, list_name, 0); -- check for multiple names in the parameter; 0 is number of allowed commas in a given name
name_is_numeric (first, first_alias, list_name); -- check for names that have no letters or are a mix of digits and other characters
name_is_generic (first, first_alias); -- check for names found in the generic names list
end
local wl_type, D = utilities.is_wikilink (first);
if 0 ~= wl_type then
first = D;
utilities.set_message ('err_bad_paramlink', first_alias);
end
end
return last, first; -- done
end
--[[----------------------< E X T R A C T _ N A M E S >-------------------------
Gets name list from the input arguments
Searches through args in sequential order to find |lastn= and |firstn= parameters
(or their aliases), and their matching link and mask parameters. Stops searching
when both |lastn= and |firstn= are not found in args after two sequential attempts:
found |last1=, |last2=, and |last3= but doesn't find |last4= and |last5= then the
search is done.
This function emits an error message when there is a |firstn= without a matching
|lastn=. When there are 'holes' in the list of last names, |last1= and |last3=
are present but |last2= is missing, an error message is emitted. |lastn= is not
required to have a matching |firstn=.
When an author or editor parameter contains some form of 'et al.', the 'et al.'
is stripped from the parameter and a flag (etal) returned that will cause list_people()
to add the static 'et al.' text from Module:Citation/CS1/Configuration. This keeps
'et al.' out of the template's metadata. When this occurs, an error is emitted.
]]
local function extract_names(args, list_name)
local names = {}; -- table of names
local last; -- individual name components
local first;
local link;
local mask;
local i = 1; -- loop counter/indexer
local n = 1; -- output table indexer
local count = 0; -- used to count the number of times we haven't found a |last= (or alias for authors, |editor-last or alias for editors)
local etal = false; -- return value set to true when we find some form of et al. in an author parameter
local last_alias, first_alias, link_alias; -- selected parameter aliases used in error messaging
while true do
last, last_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'err_redundant_parameters', i ); -- search through args for name components beginning at 1
first, first_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'err_redundant_parameters', i );
link, link_alias = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i );
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
if last then -- error check |lastn= alias for unknown interwiki link prefix; done here because this is where we have the parameter name
local project, language = interwiki_prefixen_get (last, true); -- true because we expect interwiki links in |lastn= to be wikilinked
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', last_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
last = utilities.remove_wiki_link (last); -- remove wikilink markup; show display value only
end
end
if link then -- error check |linkn= alias for unknown interwiki link prefix
local project, language = interwiki_prefixen_get (link, false); -- false because wiki links in |author-linkn= is an error
if nil == project and nil == language then -- when both are nil
utilities.set_message ('err_bad_paramlink', link_alias); -- not known, emit an error message -- TODO: err_bad_interwiki?
link = nil; -- unset so we don't link
link_alias = nil;
end
end
last, etal = name_has_etal (last, etal, false, last_alias); -- find and remove variations on et al.
first, etal = name_has_etal (first, etal, false, first_alias); -- find and remove variations on et al.
last, first = name_checks (last, first, list_name, last_alias, first_alias); -- multiple names, extraneous annotation, etc. checks
--#Modified Localized
if first and not last then -- if there is a firstn without a matching lastn
local alias = first_alias:find ('اول', 1, true) and 'اول' or 'أول'; -- get first or given form of the alias
utilities.set_message ('err_first_missing_last', {
first_alias, -- param name of alias missing its mate
first_alias:gsub (alias, {['أول'] ='أخير', ['اول'] = 'اخير'}), -- make param name appropriate to the alias form
}); -- add this error message
elseif not first and not last then -- if both firstn and lastn aren't found, are we done?
count = count + 1; -- number of times we haven't found last and first
if 2 <= count then -- two missing names and we give up
break; -- normal exit or there is a two-name hole in the list; can't tell which
end
else -- we have last with or without a first
local result;
link = link_title_ok (link, link_alias, last, last_alias); -- check for improper wiki-markup
if first then
link = link_title_ok (link, link_alias, first, first_alias); -- check for improper wiki-markup
end
names[n] = {last = last, first = first, link = link, mask = mask, corporate = false}; -- add this name to our names list (corporate for |vauthors= only)
n = n + 1; -- point to next location in the names table
if 1 == count then -- if the previous name was missing
utilities.set_message ('err_missing_name', {list_name:match ("(%w+)List"):lower(), i - 1}); -- add this error message
end
count = 0; -- reset the counter, we're looking for two consecutive missing names
end
i = i + 1; -- point to next args location
end
return names, etal; -- all done, return our list of names and the etal flag
end
--[[--------------------------< N A M E _ T A G _ G E T >------------------------------------------------------
attempt to decode |language=<lang_param> and return language name and matching tag; nil else.
This function looks for:
<lang_param> as a tag in cfg.lang_tag_remap{}
<lang_param> as a name in cfg.lang_name_remap{}
<lang_param> as a name in cfg.mw_languages_by_name_t
<lang_param> as a tag in cfg.mw_languages_by_tag_t
when those fail, presume that <lang_param> is an IETF-like tag that MediaWiki does not recognize. Strip all
script, region, variant, whatever subtags from <lang_param> to leave just a two or three character language tag
and look for the new <lang_param> in cfg.mw_languages_by_tag_t{}
on success, returns name (in properly capitalized form) and matching tag (in lowercase); on failure returns nil
]]
local function name_tag_get (lang_param)
local lang_param_lc = mw.ustring.lower (lang_param); -- use lowercase as an index into the various tables
local name;
local tag;
name = cfg.lang_tag_remap[lang_param_lc]; -- assume <lang_param_lc> is a tag; attempt to get remapped language name
if name then -- when <name>, <lang_param> is a tag for a remapped language name
if cfg.lang_name_remap[name:lower()][2] ~= lang_param_lc then
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
return name, cfg.lang_name_remap[name:lower()][2]; -- so return name and tag from lang_name_remap[name]; special case to xlate sr-ec and sr-el to sr-cyrl and sr-latn
end
return name, lang_param_lc; -- so return <name> from remap and <lang_param_lc>
end
--#Modifed pattern
tag = lang_param_lc:match ('^(%a%a%a?)[%-_].*'); -- still assuming that <lang_param_lc> is a tag; strip script, region, variant subtags
name = cfg.lang_tag_remap[tag]; -- attempt to get remapped language name with language subtag only
if name then -- when <name>, <tag> is a tag for a remapped language name
return name, tag; -- so return <name> from remap and <tag>
end
if cfg.lang_name_remap[lang_param_lc] then -- not a remapped tag, assume <lang_param_lc> is a name; attempt to get remapped language tag
return cfg.lang_name_remap[lang_param_lc][1], cfg.lang_name_remap[lang_param_lc][2]; -- for this <lang_param_lc>, return a (possibly) new name and appropriate tag
end
name = cfg.mw_languages_by_tag_t[lang_param_lc]; -- assume that <lang_param_lc> is a tag; attempt to get its matching language name
if name then
return name, lang_param_lc; -- <lang_param_lc> is a tag so return it and <name>
end
tag = cfg.mw_languages_by_name_t[lang_param_lc]; -- assume that <lang_param_lc> is a language name; attempt to get its matching tag
if tag then
return cfg.mw_languages_by_tag_t[tag], tag; -- <lang_param_lc> is a name so return the name from the table and <tag>
end
--#Modifed pattern
tag = lang_param_lc:match ('^(%a%a%a?)[%-_].*'); -- is <lang_param_lc> an IETF-like tag that MediaWiki doesn't recognize? <tag> gets the language subtag; nil else
if tag then
name = cfg.mw_languages_by_tag_t[tag]; -- attempt to get a language name using the shortened <tag>
if name then
return name, tag; -- <lang_param_lc> is an unrecognized IETF-like tag so return <name> and language subtag
end
end
end
--[[-------------------< L A N G U A G E _ P A R A M E T E R >------------------
Gets language name from a provided two- or three-character ISO 639 code. If a code
is recognized by MediaWiki, use the returned name; if not, then use the value that
was provided with the language parameter.
When |language= contains a recognized language (either code or name), the page is
assigned to the category for that code: Category:Norwegian-language sources (no).
For valid three-character code languages, the page is assigned to the single category
for '639-2' codes: Category:CS1 ISO 639-2 language sources.
Languages that are the same as the local wiki are not categorized. MediaWiki does
not recognize three-character equivalents of two-character codes: code 'ar' is
recognized but code 'ara' is not.
This function supports multiple languages in the form |language=nb, French, th
where the language names or codes are separated from each other by commas with
optional space characters.
]]
local function language_parameter (lang)
local tag; -- some form of IETF-like language tag; language subtag with optional region, sript, vatiant, etc subtags
local lang_subtag; -- ve populates |language= with mostly unecessary region subtags the MediaWiki does not recognize; this is the base language subtag
local name; -- the language name
local language_list = {}; -- table of language names to be rendered
local names_t = {}; -- table made from the value assigned to |language=
local this_wiki_name = mw.language.fetchLanguageName (cfg.this_wiki_code, cfg.this_wiki_code); -- get this wiki's language name
names_t = mw.text.split (lang, '%s*,%s*'); -- names should be a comma separated list
for _, lang in ipairs (names_t) do -- reuse lang here because we don't yet know if lang is a language name or a language tag
name, tag = name_tag_get (lang); -- attempt to get name/tag pair for <lang>; <name> has proper capitalization; <tag> is lowercase
if utilities.is_set (tag) then
--#Modifed pattern
lang_subtag = tag:gsub ('^(%a%a%a?)[%-_].*', '%1'); -- for categorization, strip any IETF-like tags from language tag
if cfg.this_wiki_code ~= lang_subtag then -- when the language is not the same as this wiki's language
if 2 == lang_subtag:len() then -- and is a two-character tag
utilities.add_prop_cat ('foreign-lang-source', {name, tag}, lang_subtag); -- categorize it; tag appended to allow for multiple language categorization
else -- or is a recognized language (but has a three-character tag)
utilities.add_prop_cat ('foreign-lang-source-2', {lang_subtag}, lang_subtag); -- categorize it differently TODO: support multiple three-character tag categories per cs1|2 template?
end
elseif cfg.local_lang_cat_enable then -- when the language and this wiki's language are the same and categorization is enabled
utilities.add_prop_cat ('local-lang-source', {name, lang_subtag}); -- categorize it
end
else
name = lang; -- return whatever <lang> has so that we show something
utilities.set_message ('maint_unknown_lang'); -- add maint category if not already added
end
table.insert (language_list, name);
name = ''; -- so we can reuse it
end
--#Modified اللغات تظهر بالعربية دائمًا
name = utilities.make_sep_list (#language_list, language_list, " و", " و", " و");
if (1 == #language_list) and (lang_subtag == cfg.this_wiki_code) then -- when only one language, find lang name in this wiki lang name; for |language=en-us, 'English' in 'American English'
return ''; -- if one language and that language is this wiki's return an empty string (no annotation)
end
return (" " .. wrap_msg ('language', name)); -- otherwise wrap with '(in ...)'
--[[ TODO: should only return blank or name rather than full list
so we can clean up the bunched parenthetical elements Language, Type, Format
]]
end
--[[-----------------------< S E T _ C S _ S T Y L E >--------------------------
Gets the default CS style configuration for the given mode.
Returns default separator and either postscript as passed in or the default.
In CS1, the default postscript and separator are '.'.
In CS2, the default postscript is the empty string and the default separator is ','.
]]
local function set_cs_style (postscript, mode)
if utilities.is_set(postscript) then
-- emit a maintenance message if user postscript is the default cs1 postscript
-- we catch the opposite case for cs2 in set_style
if mode == 'cs1' and postscript == cfg.presentation['ps_' .. mode] then
utilities.set_message ('maint_postscript');
end
else
postscript = cfg.presentation['ps_' .. mode];
end
return cfg.presentation['sep_' .. mode], postscript;
end
--[[--------------------------< S E T _ S T Y L E >-----------------------------
Sets the separator and postscript styles. Checks the |mode= first and the
#invoke CitationClass second. Removes the postscript if postscript == none.
]]
local function set_style (mode, postscript, cite_class)
local sep;
if 'cs2' == mode then
sep, postscript = set_cs_style (postscript, 'cs2');
elseif 'cs1' == mode then
sep, postscript = set_cs_style (postscript, 'cs1');
elseif 'citation' == cite_class then
sep, postscript = set_cs_style (postscript, 'cs2');
else
sep, postscript = set_cs_style (postscript, 'cs1');
end
if cfg.keywords_xlate[postscript:lower()] == 'none' then
-- emit a maintenance message if user postscript is the default cs2 postscript
-- we catch the opposite case for cs1 in set_cs_style
if 'cs2' == mode or ('cs1' ~= mode and 'citation' == cite_class) then -- {{citation |title=Title |mode=cs1 |postscript=none}} should not emit maint message
utilities.set_message ('maint_postscript');
end
postscript = '';
end
return sep, postscript
end
--[=[-------------------------< I S _ P D F >-----------------------------------
Determines if a URL has the file extension that is one of the PDF file extensions
used by [[MediaWiki:Common.css]] when applying the PDF icon to external links.
returns true if file extension is one of the recognized extensions, else false
]=]
local function is_pdf (url)
return url:match ('%.pdf$') or url:match ('%.PDF$') or
url:match ('%.pdf[%?#]') or url:match ('%.PDF[%?#]') or
url:match ('%.PDF#') or url:match ('%.pdf#');
end
--[[--------------------------< S T Y L E _ F O R M A T >-----------------------
Applies CSS style to |format=, |chapter-format=, etc. Also emits an error message
if the format parameter does not have a matching URL parameter. If the format parameter
is not set and the URL contains a file extension that is recognized as a PDF document
by MediaWiki's commons.css, this code will set the format parameter to (PDF) with
the appropriate styling.
]]
local function style_format (format, url, fmt_param, url_param)
if utilities.is_set (format) then
format = utilities.wrap_style ('format', format); -- add leading space, parentheses, resize
if not utilities.is_set (url) then
utilities.set_message ('err_format_missing_url', {fmt_param, url_param}); -- add an error message
end
elseif is_pdf (url) then -- format is not set so if URL is a PDF file then
format = utilities.wrap_style ('format', 'PDF'); -- set format to PDF
else
format = ''; -- empty string for concatenation
end
return format;
end
--[[---------------------< G E T _ D I S P L A Y _ N A M E S >------------------
Returns a number that defines the number of names displayed for author and editor
name lists and a Boolean flag to indicate when et al. should be appended to the name list.
When the value assigned to |display-xxxxors= is a number greater than or equal to zero,
return the number and the previous state of the 'etal' flag (false by default
but may have been set to true if the name list contains some variant of the text 'et al.').
When the value assigned to |display-xxxxors= is the keyword 'etal', return a number
that is one greater than the number of authors in the list and set the 'etal' flag true.
This will cause the list_people() to display all of the names in the name list followed by 'et al.'
In all other cases, returns nil and the previous state of the 'etal' flag.
inputs:
max: A['DisplayAuthors'] or A['DisplayEditors'], etc; a number or some flavor of etal
count: #a or #e
list_name: 'authors' or 'editors'
etal: author_etal or editor_etal
This function sets an error message when |display-xxxxors= value greater than or equal to number of names but
not when <max> comes from {{cs1 config}} global settings. When using global settings, <param> is set to the
keyword 'cs1 config' which is used to supress the normal error. Error is suppressed because it is to be expected
that some citations in an article will have the same or fewer names that the limit specified in {{cs1 config}}.
]]
local function get_display_names (max, count, list_name, etal, param)
if utilities.is_set (max) then
if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
max = count + 1; -- number of authors + 1 so display all author name plus et al.
etal = true; -- overrides value set by extract_names()
elseif max:match ('^%d+$') then -- if is a string of numbers
max = tonumber (max); -- make it a number
if (max >= count) and ('cs1 config' ~= param) then -- error when local |display-xxxxors= value greater than or equal to number of names; not an error when using global setting
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil;
end
else -- not a valid keyword or number
utilities.set_message ('err_disp_name', {param, max}); -- add error message
max = nil; -- unset; as if |display-xxxxors= had not been set
end
end
return max, etal;
end
--[[----------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >---------------
Adds error if |page=, |pages=, |quote-page=, |quote-pages= has what appears to be
some form of p. or pp. abbreviation in the first characters of the parameter content.
check page for extraneous p, p., pp, pp., pg, pg. at start of parameter value:
good pattern: '^P[^%.P%l]' matches when page begins PX or P# but not Px
where x and X are letters and # is a digit
bad pattern: '^[Pp][PpGg]' matches when page begins pp, pP, Pp, PP, pg, pG, Pg, PG
]]
local function extra_text_in_page_check (val, name)
if not val:match (cfg.vol_iss_pg_patterns.good_ppattern) then
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.bad_ppatterns) do -- spin through the selected sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message ('err_extra_text_pages', name); -- add error message
return; -- and done
end
end
end
end
--[[--------------------------< E X T R A _ T E X T _ I N _ V O L _ I S S _ C H E C K >------------------------
Adds error if |volume= or |issue= has what appears to be some form of redundant 'type' indicator. Applies to
both; this function looks for issue text in both |issue= and |volume= and looks for volume-like text in |voluem=
and |issue=.
For |volume=:
'V.', or 'Vol.' (with or without the dot) abbreviations or 'Volume' in the first characters of the parameter
content (all case insensitive). 'V' and 'v' (without the dot) are presumed to be roman numerals so
are allowed.
For |issue=:
'No.', 'I.', 'Iss.' (with or without the dot) abbreviations, or 'Issue' in the first characters of the
parameter content (all case insensitive); numero styling: 'n°' with degree sign U+00B0, and № precomposed
numero sign U+2116.
Single character values ('v', 'i', 'n') allowed when not followed by separator character ('.', ':', '=', or
whitespace character) – param values are trimmed of whitespace by MediaWiki before delivered to the module.
<val> is |volume= or |issue= parameter value
<name> is |volume= or |issue= parameter name for error message
<selector> is 'v' for |volume=, 'i' for |issue=
sets error message on failure; returns nothing
]]
local function extra_text_in_vol_iss_check (val, name, selector)
if not utilities.is_set (val) then
return;
end
local handler = 'v' == selector and 'err_extra_text_volume' or 'err_extra_text_issue';
local accept_val;
val, accept_val = utilities.has_accept_as_written (val);
--if accept_val then -- if uncomment this, |volume=((vol. 1)) suppresses error
-- return;
--end
--val = mw.text.unstripNoWiki (val); -- if uncomment this, |volume=<nowiki>vol. 1</nowiki> shows error
val = val:lower(); -- force parameter value to lower case
for _, pattern in ipairs (cfg.vol_iss_pg_patterns.vi_patterns_t) do -- spin through the sequence table of patterns
if val:match (pattern) then -- when a match, error so
utilities.set_message (handler, name); -- add error message
return; -- and done
end
end
end
--[=[-------------------------< G E T _ V _ N A M E _ T A B L E >----------------------------------------------
split apart a |vauthors= or |veditors= parameter. This function allows for corporate names, wrapped in doubled
parentheses to also have commas; in the old version of the code, the doubled parentheses were included in the
rendered citation and in the metadata. Individual author names may be wikilinked
|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))
]=]
local function get_v_name_table (vparam, output_table, output_link_table)
local _, accept = utilities.has_accept_as_written (vparam);
if accept then
utilities.add_prop_cat ('vanc-accept'); -- add properties category
end
--#Modified: next line
local name_table = mw.text.split(vparam or "", "%s*,%s*")
local wl_type, label, link; -- wl_type not used here; just a placeholder
local i = 1;
while name_table[i] do
if name_table[i]:match ('^%(%(.*[^%)][^%)]$') then -- first segment of corporate with one or more commas; this segment has the opening doubled parentheses
local name = name_table[i];
i = i + 1; -- bump indexer to next segment
while name_table[i] do
name = name .. ', ' .. name_table[i]; -- concatenate with previous segments
if name_table[i]:match ('^.*%)%)$') then -- if this table member has the closing doubled parentheses
break; -- and done reassembling so
end
i = i + 1; -- bump indexer
end
table.insert (output_table, name); -- and add corporate name to the output table
table.insert (output_link_table, ''); -- no wikilink
else
wl_type, label, link = utilities.is_wikilink (name_table[i]); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]
table.insert (output_table, label); -- add this name
if 1 == wl_type then
table.insert (output_link_table, label); -- simple wikilink [[D]]
else
table.insert (output_link_table, link); -- no wikilink or [[L|D]]; add this link if there is one, else empty string
end
end
i = i + 1;
end
return output_table;
end
--[[--------------------------< P A R S E _ V A U T H O R S _ V E D I T O R S >--------------------------------
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and
|xxxxor-linkn= in args. It then returns a table of assembled names just as extract_names() does.
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance
tests, are wrapped in doubled parentheses ((corporate name)) to suppress the format tests.
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.
This function sets the Vancouver error when a required comma is missing and when there is a space between an author's initials.
]]
local function parse_vauthors_veditors (args, vparam, list_name)
local names = {}; -- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=
local v_name_table = {};
local v_link_table = {}; -- when name is wikilinked, targets go in this table
local etal = false; -- return value set to true when we find some form of et al. vauthors parameter
local last, first, link, mask, suffix;
local corporate = false;
vparam, etal = name_has_etal (vparam, etal, true); -- find and remove variations on et al. do not categorize (do it here because et al. might have a period)
v_name_table = get_v_name_table (vparam, v_name_table, v_link_table); -- names are separated by commas
for i, v_name in ipairs(v_name_table) do
first = ''; -- set to empty string for concatenation and because it may have been set for previous author/editor
local accept_name;
v_name, accept_name = utilities.has_accept_as_written (v_name); -- remove accept-this-as-written markup when it wraps all of <v_name>
if accept_name then
last = v_name;
corporate = true; -- flag used in list_people()
elseif string.find(v_name, "%s") then
if v_name:find('[;%.]') then -- look for commonly occurring punctuation characters;
add_vanc_error (cfg.err_msg_supl.punctuation, i);
end
local lastfirstTable = {}
lastfirstTable = mw.text.split(v_name, "%s+")
first = table.remove(lastfirstTable); -- removes and returns value of last element in table which should be initials or generational suffix
if not mw.ustring.match (first, '^%u+$') then -- mw.ustring here so that later we will catch non-Latin characters
suffix = first; -- not initials so assume that whatever we got is a generational suffix
first = table.remove(lastfirstTable); -- get what should be the initials from the table
end
last = table.concat(lastfirstTable, ' ') -- returns a string that is the concatenation of all other names that are not initials and generational suffix
if not utilities.is_set (last) then
first = ''; -- unset
last = v_name; -- last empty because something wrong with first
add_vanc_error (cfg.err_msg_supl.name, i);
end
if mw.ustring.match (last, '%a+%s+%u+%s+%a+') then
add_vanc_error (cfg.err_msg_supl['missing comma'], i); -- matches last II last; the case when a comma is missing
end
if mw.ustring.match (v_name, ' %u %u$') then -- this test is in the wrong place TODO: move or replace with a more appropriate test
add_vanc_error (cfg.err_msg_supl.initials, i); -- matches a space between two initials
end
else
last = v_name; -- last name or single corporate name? Doesn't support multiword corporate names? do we need this?
end
if utilities.is_set (first) then
if not mw.ustring.match (first, "^%u?%u$") then -- first shall contain one or two upper-case letters, nothing else
add_vanc_error (cfg.err_msg_supl.initials, i); -- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials
end
is_good_vanc_name (last, first, suffix, i); -- check first and last before restoring the suffix which may have a non-Latin digit
if utilities.is_set (suffix) then
first = first .. ' ' .. suffix; -- if there was a suffix concatenate with the initials
suffix = ''; -- unset so we don't add this suffix to all subsequent names
end
else
if not corporate then
is_good_vanc_name (last, '', nil, i);
end
end
link = utilities.select_one ( args, cfg.aliases[list_name .. '-Link'], 'err_redundant_parameters', i ) or v_link_table[i];
mask = utilities.select_one ( args, cfg.aliases[list_name .. '-Mask'], 'err_redundant_parameters', i );
names[i] = {last = last, first = first, link = link, mask = mask, corporate = corporate}; -- add this assembled name to our names list
end
return names, etal; -- all done, return our list of names
end
--[[--------------------------< S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E >------------------------
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or
select one of |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.
Only one of these appropriate three will be used. The hierarchy is: |authorn= (and aliases) highest and |authors= lowest;
|editorn= (and aliases) highest and |veditors= lowest (support for |editors= withdrawn)
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second
test which mimicks the test used in extract_names() when looking for a hole in the author name list. There may be a better
way to do this, I just haven't discovered what that way is.
Emits an error message when more than one xxxxor name source is provided.
In this function, vxxxxors = vauthors or veditors; xxxxors = authors as appropriate.
]]
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)
local lastfirst = false;
if utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 1 ) or -- do this twice in case we have a |first1= without a |last1=; this ...
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 1 ) or -- ... also catches the case where |first= is used with |vauthors=
utilities.select_one ( args, cfg.aliases[list_name .. '-Last'], 'none', 2 ) or
utilities.select_one ( args, cfg.aliases[list_name .. '-First'], 'none', 2 ) then
lastfirst = true;
end
if (utilities.is_set (vxxxxors) and true == lastfirst) or -- these are the three error conditions
(utilities.is_set (vxxxxors) and utilities.is_set (xxxxors)) or
(true == lastfirst and utilities.is_set (xxxxors)) then
utilities.set_message ('err_redundant_parameters',
utilities.substitute (cfg.special_case_translation.name_list_params,
('AuthorList' == list_name) and cfg.special_case_translation.author or cfg.special_case_translation.editor)); -- add error message
end
if true == lastfirst then return 1 end; -- return a number indicating which author name source to use
if utilities.is_set (vxxxxors) then return 2 end;
if utilities.is_set (xxxxors) then return 3 end;
return 1; -- no authors so return 1; this allows missing author name test to run in case there is a first without last
end
--[[--------------------------< I S _ V A L I D _ P A R A M E T E R _ V A L U E >------------------------------
This function is used to validate a parameter's assigned value for those parameters that have only a limited number
of allowable values (yes, y, true, live, dead, etc.). When the parameter value has not been assigned a value (missing
or empty in the source template) the function returns the value specified by ret_val. If the parameter value is one
of the list of allowed values returns the translated value; else, emits an error message and returns the value
specified by ret_val.
TODO: explain <invert>
]]
local function is_valid_parameter_value (value, name, possible, ret_val, invert)
if not utilities.is_set (value) then
return ret_val; -- an empty parameter is ok
end
if (not invert and utilities.in_array (value, possible)) then -- normal; <value> is in <possible> table
return cfg.keywords_xlate[value]; -- return translation of parameter keyword
elseif invert and not utilities.in_array (value, possible) then -- invert; <value> is not in <possible> table
return value; -- return <value> as it is
else
utilities.set_message ('err_invalid_param_val', {name, value}); -- not an allowed value so add error message
return ret_val;
end
end
--[[--------------------------< T E R M I N A T E _ N A M E _ L I S T >----------------------------------------
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space
when the last character is not a sepc character or when the last three characters are not sepc followed by two
closing square brackets (close of a wikilink). When either of these is true, the name_list is terminated with a
single space character.
]]
local function terminate_name_list (name_list, sepc)
if (string.sub (name_list, -3, -1) == sepc .. '. ') then -- if already properly terminated
return name_list; -- just return the name list
elseif (string.sub (name_list, -1, -1) == sepc) or (string.sub (name_list, -3, -1) == sepc .. ']]') then -- if last name in list ends with sepc char
return name_list .. " "; -- don't add another
else
return name_list .. sepc .. ' '; -- otherwise terminate the name list
end
end
--[[-------------------------< F O R M A T _ V O L U M E _ I S S U E >-----------------------------------------
returns the concatenation of the formatted volume and issue (or journal article number) parameters as a single
string; or formatted volume or formatted issue, or an empty string if neither are set.
]]
local function format_volume_issue (volume, issue, article, cite_class, origin, sepc, lower)
if not utilities.is_set (volume) and not utilities.is_set (issue) and not utilities.is_set (article) then
return '';
end
-- same condition as in format_pages_sheets()
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
local is_numeric_vol = volume and (volume:match ('^[MDCLXVI]+$') or volume:match ('^%d+$')); -- is only uppercase roman numerals or only digits?
local is_long_vol = volume and (4 < mw.ustring.len(volume)); -- is |volume= value longer than 4 characters?
if volume and (not is_numeric_vol and is_long_vol) then -- when not all digits or Roman numerals, is |volume= longer than 4 characters?
utilities.add_prop_cat ('long-vol'); -- yes, add properties cat
end
if is_journal then -- journal-style formatting
local vol = '';
if utilities.is_set (volume) then
if is_numeric_vol then -- |volume= value all digits or all uppercase Roman numerals?
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, volume}); -- render in bold face
elseif is_long_vol then -- not all digits or Roman numerals; longer than 4 characters?
vol = utilities.substitute (cfg.messages['j-vol'], {sepc, utilities.hyphen_to_dash (volume)}); -- not bold
else -- four or fewer characters
vol = utilities.substitute (cfg.presentation['vol-bold'], {sepc, utilities.hyphen_to_dash (volume)}); -- bold
end
end
vol = vol .. (utilities.is_set (issue) and utilities.substitute (cfg.messages['j-issue'], issue) or '')
vol = vol .. (utilities.is_set (article) and utilities.substitute (cfg.messages['j-article-num'], article) or '')
return vol;
end
if 'podcast' == cite_class and utilities.is_set (issue) then
return wrap_msg ('issue', {sepc, issue}, lower);
end
if 'conference' == cite_class and utilities.is_set (article) then -- |article-number= supported only in journal and conference cites
if utilities.is_set (volume) and utilities.is_set (article) then -- both volume and article number
return wrap_msg ('vol-art', {sepc, utilities.hyphen_to_dash (volume), article}, lower);
elseif utilities.is_set (article) then -- article number alone; when volume alone, handled below
return wrap_msg ('art', {sepc, article}, lower);
end
end
-- all other types of citation
if utilities.is_set (volume) and utilities.is_set (issue) then
return wrap_msg ('vol-no', {sepc, utilities.hyphen_to_dash (volume), issue}, lower);
elseif utilities.is_set (volume) then
return wrap_msg ('vol', {sepc, utilities.hyphen_to_dash (volume)}, lower);
else
return wrap_msg ('issue', {sepc, issue}, lower);
end
end
--[[-------------------------< F O R M A T _ P A G E S _ S H E E T S >-----------------------------------------
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.
The return order is:
page, pages, sheet, sheets
Singular has priority over plural when both are provided.
]]
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)
if 'map' == cite_class then -- only cite map supports sheet(s) as in-source locators
if utilities.is_set (sheet) then
if 'journal' == origin then
return '', '', wrap_msg ('j-sheet', sheet, lower), '';
else
return '', '', wrap_msg ('sheet', {sepc, sheet}, lower), '';
end
elseif utilities.is_set (sheets) then
if 'journal' == origin then
return '', '', '', wrap_msg ('j-sheets', sheets, lower);
else
return '', '', '', wrap_msg ('sheets', {sepc, sheets}, lower);
end
end
end
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
if utilities.is_set (page) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], page), '', '', '';
elseif not nopp then
return utilities.substitute (cfg.messages['p-prefix'], {sepc, page}), '', '', '';
else
return utilities.substitute (cfg.messages['nopp'], {sepc, page}), '', '', '';
end
elseif utilities.is_set (pages) then
if is_journal then
return utilities.substitute (cfg.messages['j-page(s)'], pages), '', '', '';
elseif tonumber(pages) ~= nil and not nopp then -- if pages is only digits, assume a single page number
return '', utilities.substitute (cfg.messages['p-prefix'], {sepc, pages}), '', '';
elseif not nopp then
return '', utilities.substitute (cfg.messages['pp-prefix'], {sepc, pages}), '', '';
else
return '', utilities.substitute (cfg.messages['nopp'], {sepc, pages}), '', '';
end
end
return '', '', '', ''; -- return empty strings
end
--[[--------------------------< I N S O U R C E _ L O C _ G E T >----------------------------------------------
returns one of the in-source locators: page, pages, or at.
If any of these are interwiki links to Wikisource, returns the label portion of the interwiki-link as plain text
for use in COinS. This COinS thing is done because here we convert an interwiki-link to an external link and
add an icon span around that; get_coins_pages() doesn't know about the span. TODO: should it?
TODO: add support for sheet and sheets?; streamline;
TODO: make it so that this function returns only one of the three as the single in-source (the return value assigned
to a new name)?
]]
local function insource_loc_get (page, page_orig, pages, pages_orig, at)
local ws_url, ws_label, coins_pages, L; -- for Wikisource interwiki-links; TODO: this corrupts page metadata (span remains in place after cleanup; fix there?)
if utilities.is_set (page) then
if utilities.is_set (pages) or utilities.is_set (at) then
pages = ''; -- unset the others
at = '';
end
extra_text_in_page_check (page, page_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (page); -- make ws URL from |page= interwiki link; link portion L becomes tooltip label
if ws_url then
page = external_link (ws_url, ws_label .. ' ', 'ws link in page'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
page = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, page});
coins_pages = ws_label;
end
elseif utilities.is_set (pages) then
if utilities.is_set (at) then
at = ''; -- unset
end
extra_text_in_page_check (pages, pages_orig); -- emit error message when |page= value begins with what looks like p., pp., etc.
ws_url, ws_label, L = wikisource_url_make (pages); -- make ws URL from |pages= interwiki link; link portion L becomes tooltip label
if ws_url then
pages = external_link (ws_url, ws_label .. ' ', 'ws link in pages'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
pages = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, pages});
coins_pages = ws_label;
end
elseif utilities.is_set (at) then
ws_url, ws_label, L = wikisource_url_make (at); -- make ws URL from |at= interwiki link; link portion L becomes tooltip label
if ws_url then
at = external_link (ws_url, ws_label .. ' ', 'ws link in at'); -- space char after label to move icon away from in-source text; TODO: a better way to do this?
at = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, at});
coins_pages = ws_label;
end
end
return page, pages, at, coins_pages;
end
--[[--------------------------< I S _ U N I Q U E _ A R C H I V E _ U R L >------------------------------------
add error message when |archive-url= value is same as |url= or chapter-url= (or alias...) value
]]
local function is_unique_archive_url (archive, url, c_url, source, date)
if utilities.is_set (archive) then
if archive == url or archive == c_url then
utilities.set_message ('err_bad_url', {utilities.wrap_style ('parameter', source)}); -- add error message
return '', ''; -- unset |archive-url= and |archive-date= because same as |url= or |chapter-url=
end
end
return archive, date;
end
--[=[-------------------------< A R C H I V E _ U R L _ C H E C K >--------------------------------------------
Check archive.org URLs to make sure they at least look like they are pointing at valid archives and not to the
save snapshot URL or to calendar pages. When the archive URL is 'https://web.archive.org/save/' (or http://...)
archive.org saves a snapshot of the target page in the URL. That is something that Wikipedia should not allow
unwitting readers to do.
When the archive.org URL does not have a complete timestamp, archive.org chooses a snapshot according to its own
algorithm or provides a calendar 'search' result. [[WP:ELNO]] discourages links to search results.
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and
|archive-date= and an error message when:
|archive-url= holds an archive.org save command URL
|archive-url= is an archive.org URL that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the
correct place
otherwise returns |archive-url= and |archive-date=
There are two mostly compatible archive.org URLs:
//web.archive.org/<timestamp>... -- the old form
//web.archive.org/web/<timestamp>... -- the new form
The old form does not support or map to the new form when it contains a display flag. There are four identified flags
('id_', 'js_', 'cs_', 'im_') but since archive.org ignores others following the same form (two letters and an underscore)
we don't check for these specific flags but we do check the form.
This function supports a preview mode. When the article is rendered in preview mode, this function may return a modified
archive URL:
for save command errors, return undated wildcard (/*/)
for timestamp errors when the timestamp has a wildcard, return the URL unmodified
for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)
A secondary function is to return an archive-url timestamp from those archive urls that have them. The timestamp
is used by validation.archive_date_check() to see if the value in |archive-date= matches the timestamp in the
archive url.
]=]
local function archive_url_check (url, date)
local err_msg = ''; -- start with the error message empty
local path, timestamp, flag; -- portions of the archive.org URL
local function is_ts_date_valid (timestamp, origin_date) -- local function to validate archive url taimestamp date; time ignored
local y, m, d = timestamp:match ('(%d%d%d%d)(%d%d)(%d%d)'); -- split into parts
if y and validation.is_valid_date (y, m, d) and (tonumber (y) >= 1996) then
return true, tonumber (y) >= origin_date; -- <origin_date> is 1996 for archive.org
end
end
if (not url:match('//web%.archive%.org/')) and (not url:match('//liveweb%.archive%.org/')) then -- also deprecated liveweb Wayback machine URL
return url, date; -- not an archive.org archive, return ArchiveURL and ArchiveDate
end
if url:match('//web%.archive%.org/save/') then -- if a save command URL, we don't want to allow saving of the target page
err_msg = cfg.err_msg_supl.save;
url = url:gsub ('(//web%.archive%.org)/save/', '%1/*/', 1); -- for preview mode: modify ArchiveURL
elseif url:match('//liveweb%.archive%.org/') then
err_msg = cfg.err_msg_supl.liveweb;
else
path, timestamp, flag = url:match('//web%.archive%.org/([^%d]*)(%d+)([^/]*)/'); -- split out some of the URL parts for evaluation
if not path then -- malformed in some way; pattern did not match
err_msg = cfg.err_msg_supl.timestamp;
elseif 14 ~= timestamp:len() then -- path and flag optional, must have 14-digit timestamp here
err_msg = cfg.err_msg_supl.timestamp;
if '*' ~= flag then
local replacement = timestamp:match ('^%d%d%d%d%d%d') or timestamp:match ('^%d%d%d%d'); -- get the first 6 (YYYYMM) or first 4 digits (YYYY)
if replacement then -- nil if there aren't at least 4 digits (year)
replacement = replacement .. string.rep ('0', 14 - replacement:len()); -- year or yearmo (4 or 6 digits) zero-fill to make 14-digit timestamp
url=url:gsub ('(//web%.archive%.org/[^%d]*)%d[^/]*', '%1' .. replacement .. '*', 1) -- for preview, modify ts to 14 digits plus splat for calendar display
end
end
elseif not is_ts_date_valid (timestamp, 1996) then -- is ymd portion of timestamp a valid date?
err_msg = cfg.err_msg_supl.timestamp;
timestamp = nil; -- unset because invalid
elseif utilities.is_set (path) and 'web/' ~= path then -- older archive URLs do not have the extra 'web/' path element
err_msg = cfg.err_msg_supl.path;
elseif utilities.is_set (flag) and not utilities.is_set (path) then -- flag not allowed with the old form URL (without the 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
elseif utilities.is_set (flag) and not flag:match ('%a%a_') then -- flag if present must be two alpha characters and underscore (requires 'web/' path element)
err_msg = cfg.err_msg_supl.flag;
else
return url, date, timestamp; -- return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
end
end
-- if here, something not right so
utilities.set_message ('err_archive_url', {err_msg}); -- add error message and
if is_preview_mode then
return url, date, timestamp; -- preview mode so return ArchiveURL, ArchiveDate, and timestamp from |archive-url=
else
return '', ''; -- return empty strings for ArchiveURL and ArchiveDate
end
end
--[[--------------------------< P L A C E _ C H E C K >--------------------------------------------------------
check |place=, |publication-place=, |location= to see if these params include digits. This function added because
many editors misuse location to specify the in-source location (|page(s)= and |at= are supposed to do that)
returns the original parameter value without modification; added maint cat when parameter value contains digits
]]
local function place_check (param_val)
if not utilities.is_set (param_val) then -- parameter empty or omitted
return param_val; -- return that empty state
end
if mw.ustring.find (param_val, '%d') then -- not empty, are there digits in the parameter value
utilities.set_message ('maint_location'); -- yep, add maint cat
end
return param_val; -- and done
end
--[[--------------------------< I S _ A R C H I V E D _ C O P Y >----------------------------------------------
compares |title= to 'Archived copy' (placeholder added by bots that can't find proper title); if matches, return true; nil else
]]
local function is_archived_copy (title)
title = mw.ustring.lower(title); -- switch title to lower case
if title:find (cfg.special_case_translation.archived_copy.en) then -- if title is 'Archived copy'
return true;
elseif cfg.special_case_translation.archived_copy['local'] then
if mw.ustring.find (title, cfg.special_case_translation.archived_copy['local']) then -- mw.ustring() because might not be Latin script
return true;
end
end
end
--[[--------------------------< D I S P L A Y _ N A M E S _ S E L E C T >--------------------------------------
for any of the |display-authors=, |display-editors=, etc parameters, select either the local or global setting.
When both are present, look at <local_display_names> value. When the value is some sort of 'et al.'string,
special handling is required.
When {{cs1 config}} has |display-<namelist>= AND this template has |display-<namelist>=etal AND:
the number of names specified by <number_of_names> is:
greater than the number specified in the global |display-<namelist>= parameter (<global_display_names>)
use global |display-<namelist>= parameter value
set overridden maint category
less than or equal to the number specified in the global |display-<namelist>= parameter
use local |display-<namelist>= parameter value
The purpose of this function is to prevent categorizing a template that has fewer names than the global setting
to keep the etal annotation specified by <local_display_names>.
]]
local function display_names_select (global_display_names, local_display_names, param_name, number_of_names, test)
if global_display_names and utilities.is_set (local_display_names) then -- when both
if 'etal' == local_display_names:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings
number_of_names = tonumber (number_of_names); -- convert these to numbers for comparison
local global_display_names_num = tonumber (global_display_names); -- <global_display_names> not set when parameter value is not digits
if number_of_names > global_display_names_num then -- template has more names than global config allows to be displayed?
utilities.set_message ('maint_overridden_setting'); -- set a maint message because global is overriding local |display-<namelist>=etal
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local because fewer names so let <local_display_names> control
end
end
-- here when <global_display_names> and <local_display_names> both numbers; <global_display_names> controls
utilities.set_message ('maint_overridden_setting'); -- set a maint message
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
end
-- here when only one of <global_display_names> or <local_display_names> set
if global_display_names then
return global_display_names, 'cs1 config'; -- return global with spoof parameter name (for get_display_names())
else
return local_display_names, param_name; -- return local
end
end
--[[--------------------------< M O D E _ S E T >--------------------------------------------------------------
fetch global mode setting from {{cs1 config}} (if present) or from |mode= (if present); global setting overrides
local |mode= parameter value. When both are present, emit maintenance message
]]
local function mode_set (Mode, Mode_origin)
local mode;
if cfg.global_cs1_config_t['Mode'] then -- global setting in {{cs1 config}}; nil when empty or assigned value invalid
mode = is_valid_parameter_value (cfg.global_cs1_config_t['Mode'], 'cs1 config: mode', cfg.keywords_lists['mode'], ''); -- error messaging 'param' here is a hoax
else
mode = is_valid_parameter_value (Mode, Mode_origin, cfg.keywords_lists['mode'], '');
end
if cfg.global_cs1_config_t['Mode'] and utilities.is_set (Mode) then -- when template has |mode=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
return mode;
end
--[[--------------------------< Q U O T E _ M A K E >----------------------------------------------------------
create quotation from |quote=, |trans-quote=, and/or script-quote= with or without |quote-page= or |quote-pages=
when any of those three quote parameters are set, this function unsets <PostScript>. When none of those parameters
are set, |quote-page= and |quote-pages= are unset to nil so that they are not included in the template's metadata
]]
local function quote_make (quote, trans_quote, script_quote, quote_page, quote_pages, nopp, sepc, postscript)
if utilities.is_set (quote) or utilities.is_set (trans_quote) or utilities.is_set (script_quote) then
if utilities.is_set (quote) then
if quote:sub(1, 1) == '"' and quote:sub(-1, -1) == '"' then -- if first and last characters of quote are quote marks
quote = quote:sub(2, -2); -- strip them off
end
end
quote = kern_quotes (quote); -- kern if needed
quote = utilities.wrap_style ('quoted-text', quote ); -- wrap in <q>...</q> tags
if utilities.is_set (script_quote) then
quote = script_concatenate (quote, script_quote, 'script-quote'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after quote is wrapped
end
if utilities.is_set (trans_quote) then
if trans_quote:sub(1, 1) == '"' and trans_quote:sub(-1, -1) == '"' then -- if first and last characters of |trans-quote are quote marks
trans_quote = trans_quote:sub(2, -2); -- strip them off
end
quote = quote .. " " .. utilities.wrap_style ('trans-quoted-title', trans_quote );
end
if utilities.is_set (quote_page) or utilities.is_set (quote_pages) then -- add page prefix
local quote_prefix = '';
if utilities.is_set (quote_page) then
extra_text_in_page_check (quote_page, 'quote-page'); -- add to maint cat if |quote-page= value begins with what looks like p., pp., etc.
if not nopp then
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_page}), '', '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_page}), '', '', '';
end
elseif utilities.is_set (quote_pages) then
extra_text_in_page_check (quote_pages, 'quote-pages'); -- add to maint cat if |quote-pages= value begins with what looks like p., pp., etc.
if tonumber(quote_pages) ~= nil and not nopp then -- if only digits, assume single page
quote_prefix = utilities.substitute (cfg.messages['p-prefix'], {sepc, quote_pages}), '', '';
elseif not nopp then
quote_prefix = utilities.substitute (cfg.messages['pp-prefix'], {sepc, quote_pages}), '', '';
else
quote_prefix = utilities.substitute (cfg.messages['nopp'], {sepc, quote_pages}), '', '';
end
end
quote = quote_prefix .. ": " .. quote;
else
quote = sepc .. " " .. quote;
end
postscript = ""; -- cs1|2 does not supply terminal punctuation when |quote= is set
elseif utilities.is_set (quote_page) or utilities.is_set (quote_pages) then
quote_page = nil; -- unset; these require |quote=; TODO: error message?
quote_pages = nil;
end
return quote, quote_page, quote_pages, postscript;
end
--[[--------------------------< C H E C K _ P U B L I S H E R _ N A M E >--------------------------------------
look for variations of '<text>: <text>' that might be '<location>: <publisher>' in |publisher= parameter value.
when found, emit a maintenance message; return nil else
<publisher> is the value assigned to |publisher= or |institution=
]]
local function check_publisher_name (publisher)
local patterns_t = {
'^[%w%s]+%s*:%s*[%w%s]+$', -- plain text <location>: <publisher>
'^%[+[%w%s:|]+%]+%s*:%s*[%w%s]+$', -- partially wikilinked [[<location>]]: <publisher>
'^[%w%s]+%s*:%s*%[+[%w%s:|]+%]+$', -- partially wikilinked <location>: [[<publisher>]]
'^%[+[%w%s:|]+%]+%s*:%s*%[+[%w%s:|]+%]+$', -- wikilinked [[<location>]]: [[<publisher>]]
}
for _, pattern in ipairs (patterns_t) do -- spin through the patterns_t sequence
if mw.ustring.match (publisher, pattern) then -- does this pattern match?
utilities.set_message ('maint_publisher_location'); -- set a maint message
return; -- and done
end
end
end
--[[--------------------------< I S _ P A G E _ A R T _ N U M >------------------------------------------------
compare the trailing (rightmost) characters of the |doi= value against the whole value assigned to |page(s)=.
return boolean true when:
|page(s)= has exactly 8 digits and a dot between the fourth and fifth digits matches the trailing 9 characters
of the |doi= value: |page=12345678 → |page=1234.5678 matches |doi=10.xxxx/yyyy1234.5678
|page(s)= is 5 or more characters and matches |doi= values's trailing characters
|page(s)= begins with a lowercase 'e' and |page(s)= without the 'e' matches |doi= values's trailing
characters: |page=e12345 → |page=12345 matches |doi=10.xxxx/yyyy12345
|page(s)= begins with a uppercase 'CD' followed by (typically) six digits matches |doi= values that ends with
'CDxxxxxx.pubx' (where 'x' is any single digit)
return nil when |page(s)= values:
are ranges separated by underscore, hyphen, emdash, endash, figure dash, or minus character
are comma- or semicolon-separated lists of pages
have external urls (has text 'http')
are digit-only values less than 10000
do not match |doi= values's trailing characters
]]
local function is_page_art_num (page, doi)
if not (utilities.is_set (page) and utilities.is_set (doi)) then -- both required
return; -- abandon; nothing to do
end
if page:match ('[,;_−–—‒%-]') then -- when |page(s)= might be a page range or a separated list of pages
return; -- abandon
end
page = page:lower(); -- because doi names are case insensitive
doi = doi:lower(); -- force these to lowercase for testing
if page:match ('http') then -- when |page(s)= appears to hold a url
return; -- abandon
end
if tonumber (page) then -- is |page(s)= digits only
if 10000 > tonumber (page) then -- when |page(s)= less than 10000
return; -- abandon
end
if doi:match (page .. '$') then -- digits only page number match the last digits in |doi=?
return true;
end
if 8 == page:len() then -- special case when |page(s)= is exactly 8 digits
local dot_page = page:gsub ('(%d%d%d%d)(%d%d%d%d)', '%1.%2'); -- make a |page=xxxx.yyyy version commonly used in |doi=
if doi:match (dot_page .. '$') then -- 8-digit dotted page number match the last characters in |doi=?
return true;
end
end
else -- here when |page(s)= is alpha-numeric
if 4 < page:len() then -- when |page(s)= is five or more characters
if doi:match (page .. '$') then -- alpha-numeric page match the last characters in |doi=?
return true;
end
local epage = page:match ('^e([%w]+)$'); -- if first character of |page= is 'e', remove it
if epage and doi:match (epage .. '$') then -- page number match the last characters in |doi=?
return true;
end
local cdpage = page:match ('^cd%d+$'); -- if first characters of |page= are 'CD' and last characters are digits (typically 6 digits)
if cdpage and doi:match (cdpage .. '%.pub%d$') then -- page number matches doi 'CDxxxxxx.pubx' where 'x' is a digit
return true;
end
end
end
end
--[[--------------------------< C I T A T I O N 0 >------------------------------------------------------------
This is the main function doing the majority of the citation formatting.
]]
local function citation0( config, args )
--[[
Load Input Parameters
The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.
]]
local A = argument_wrapper ( args );
local i
-- Pick out the relevant fields from the arguments. Different citation templates
-- define different field names for the same underlying things.
local author_etal;
local a = {}; -- authors list from |lastn= / |firstn= pairs or |vauthors=
local Authors;
local NameListStyle;
if cfg.global_cs1_config_t['NameListStyle'] then -- global setting in {{cs1 config}} overrides local |name-list-style= parameter value; nil when empty or assigned value invalid
NameListStyle = is_valid_parameter_value (cfg.global_cs1_config_t['NameListStyle'], 'cs1 config: name-list-style', cfg.keywords_lists['name-list-style'], ''); -- error messaging 'param' here is a hoax
else
NameListStyle = is_valid_parameter_value (A['NameListStyle'], A:ORIGIN('NameListStyle'), cfg.keywords_lists['name-list-style'], '');
end
if cfg.global_cs1_config_t['NameListStyle'] and utilities.is_set (A['NameListStyle']) then -- when template has |name-list-style=<something> which global setting has overridden
utilities.set_message ('maint_overridden_setting'); -- set a maint message
end
local Collaboration = A['Collaboration'];
do -- to limit scope of selected
local selected = select_author_editor_source (A['Vauthors'], A['Authors'], args, 'AuthorList');
if 1 == selected then
a, author_etal = extract_names (args, 'AuthorList'); -- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
a, author_etal = parse_vauthors_veditors (args, A['Vauthors'], 'AuthorList'); -- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=
elseif 3 == selected then
Authors = A['Authors']; -- use content of |people= or |credits=; |authors= is deprecated; TODO: constrain |people= and |credits= to cite av media, episode, serial?
end
if utilities.is_set (Collaboration) then
author_etal = true; -- so that |display-authors=etal not required
end
end
local editor_etal;
local e = {}; -- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=
do -- to limit scope of selected
local selected = select_author_editor_source (A['Veditors'], nil, args, 'EditorList'); -- support for |editors= withdrawn
if 1 == selected then
e, editor_etal = extract_names (args, 'EditorList'); -- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=
elseif 2 == selected then
NameListStyle = 'vanc'; -- override whatever |name-list-style= might be
e, editor_etal = parse_vauthors_veditors (args, args.veditors, 'EditorList'); -- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=
end
end
local Chapter = A['Chapter']; -- done here so that we have access to |contribution= from |chapter= and |script-chapter= aliases
local Chapter_origin = A:ORIGIN ('Chapter');
local ScriptChapter = A['ScriptChapter'];
local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Contribution; -- because contribution is required for contributor(s)
if 'contribution' == Chapter_origin then -- is there a |contribution= parameter?
Contribution = Chapter; -- get the name of the contribution
elseif 'script-contribution' == ScriptChapter_origin then -- no, so is there a |script-contribution= parameter?
Contribution = ScriptChapter; -- get the name of the contribution
end
local c = {}; -- contributors list from |contributor-lastn= / contributor-firstn= pairs
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (A['Periodical']) then -- |contributor= and |contribution= only supported in book cites
c = extract_names (args, 'ContributorList'); -- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=
if 0 < #c then
if not utilities.is_set (Contribution) then -- |contributor= requires |contribution=
utilities.set_message ('err_contributor_missing_required_param', 'contribution'); -- add missing contribution error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
if 0 == #a then -- |contributor= requires |author=
utilities.set_message ('err_contributor_missing_required_param', 'author'); -- add missing author error message
c = {}; -- blank the contributors' table; it is used as a flag later
end
end
else -- if not a book cite
if utilities.select_one (args, cfg.aliases['ContributorList-Last'], 'err_redundant_parameters', 1 ) then -- are there contributor name list parameters?
utilities.set_message ('err_contributor_ignored'); -- add contributor ignored error message
end
Contribution = nil; -- unset
end
local Title = A['Title'];
local TitleLink = A['TitleLink'];
local auto_select = ''; -- default is auto
local accept_link;
TitleLink, accept_link = utilities.has_accept_as_written (TitleLink, true); -- test for accept-this-as-written markup
if (not accept_link) and utilities.in_array (TitleLink, {'none', 'pmc', 'doi'}) then -- check for special keywords
auto_select = TitleLink; -- remember selection for later
TitleLink = ''; -- treat as if |title-link= would have been empty
end
TitleLink = link_title_ok (TitleLink, A:ORIGIN ('TitleLink'), Title, 'title'); -- check for wiki-markup in |title-link= or wiki-markup in |title= when |title-link= is set
local Section = ''; -- {{cite map}} only; preset to empty string for concatenation if not used
if 'map' == config.CitationClass and 'section' == Chapter_origin then
Section = A['Chapter']; -- get |section= from |chapter= alias list; |chapter= and the other aliases not supported in {{cite map}}
Chapter = ''; -- unset for now; will be reset later from |map= if present
end
local Periodical = A['Periodical'];
local Periodical_origin = A:ORIGIN('Periodical');
local ScriptPeriodical = A['ScriptPeriodical'];
local ScriptPeriodical_origin = A:ORIGIN('ScriptPeriodical');
local TransPeriodical = A['TransPeriodical'];
local TransPeriodical_origin = A:ORIGIN ('TransPeriodical');
if (utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical))) then
local param;
if utilities.is_set (Periodical) then -- get a parameter name from one of these periodical related meta-parameters
Periodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = Periodical_origin -- get parameter name for error messaging
elseif utilities.is_set (TransPeriodical) then
TransPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = TransPeriodical_origin; -- get parameter name for error messaging
elseif utilities.is_set (ScriptPeriodical) then
ScriptPeriodical = ''; -- unset because not valid {{cite book}} or {{cite encyclopedia}} parameters
param = ScriptPeriodical_origin; -- get parameter name for error messaging
end
if utilities.is_set (param) then -- if we found one
utilities.set_message ('err_periodical_ignored', {param}); -- emit an error message
end
end
if utilities.is_set (Periodical) then
local i;
Periodical, i = utilities.strip_apostrophe_markup (Periodical); -- strip apostrophe markup so that metadata isn't contaminated
if i then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {Periodical_origin});
end
end
if 'mailinglist' == config.CitationClass then -- special case for {{cite mailing list}}
if utilities.is_set (Periodical) and utilities.is_set (A ['MailingList']) then -- both set emit an error TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', Periodical_origin) .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'mailinglist')});
end
Periodical = A ['MailingList']; -- error or no, set Periodical to |mailinglist= value because this template is {{cite mailing list}}
Periodical_origin = A:ORIGIN('MailingList');
end
-- web and news not tested for now because of
-- Wikipedia:Administrators%27_noticeboard#Is_there_a_semi-automated_tool_that_could_fix_these_annoying_"Cite_Web"_errors?
if not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) then -- 'periodical' templates require periodical parameter
-- local p = {['journal'] = 'journal', ['magazine'] = 'magazine', ['news'] = 'newspaper', ['web'] = 'website'}; -- for error message
local p = {['journal'] = 'journal', ['magazine'] = 'magazine'}; -- for error message
if p[config.CitationClass] then
--#Modifed
utilities.set_message ('err_missing_periodical', {cfg.err_msg_supl[config.CitationClass], cfg.err_msg_supl[p[config.CitationClass]]});
end
end
local Volume;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) then
if not utilities.in_array (Periodical_origin, cfg.citation_no_volume_t) then -- {{citation}} does not render |volume= when these parameters are used
Volume = A['Volume']; -- but does for all other 'periodicals'
end
elseif utilities.is_set (ScriptPeriodical) then
if 'script-website' ~= ScriptPeriodical_origin then -- {{citation}} does not render volume for |script-website=
Volume = A['Volume']; -- but does for all other 'periodicals'
end
else
Volume = A['Volume']; -- and does for non-'periodical' cites
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_volume) then -- render |volume= for cs1 according to the configuration settings
Volume = A['Volume'];
end
extra_text_in_vol_iss_check (Volume, A:ORIGIN ('Volume'), 'v');
local Issue;
if 'citation' == config.CitationClass then
if utilities.is_set (Periodical) and utilities.in_array (Periodical_origin, cfg.citation_issue_t) then -- {{citation}} may render |issue= when these parameters are used
Issue = A['Issue'];
end
elseif utilities.in_array (config.CitationClass, cfg.templates_using_issue) then -- conference & map books do not support issue; {{citation}} listed here because included in settings table
if not (utilities.in_array (config.CitationClass, {'conference', 'map', 'citation'}) and not (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical))) then
Issue = A['Issue'];
end
end
local ArticleNumber;
if utilities.in_array (config.CitationClass, {'journal', 'conference'}) or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
ArticleNumber = A['ArticleNumber'];
end
extra_text_in_vol_iss_check (Issue, A:ORIGIN ('Issue'), 'i');
Issue = utilities.hyphen_to_dash (Issue);
local Page;
local Pages;
local At;
local QuotePage;
local QuotePages;
if not utilities.in_array (config.CitationClass, cfg.templates_not_using_page) then -- TODO: rewrite to emit ignored parameter error message?
Page = A['Page'];
Pages = utilities.hyphen_to_dash (A['Pages']);
At = A['At'];
QuotePage = A['QuotePage'];
QuotePages = utilities.hyphen_to_dash (A['QuotePages']);
end
local NoPP = is_valid_parameter_value (A['NoPP'], A:ORIGIN('NoPP'), cfg.keywords_lists['yes_true_y'], nil);
local Mode = mode_set (A['Mode'], A:ORIGIN('Mode'));
-- separator character and postscript
local sepc, PostScript = set_style (Mode:lower(), A['PostScript'], config.CitationClass);
local Quote;
Quote, QuotePage, QuotePages, PostScript = quote_make (A['Quote'], A['TransQuote'], A['ScriptQuote'], QuotePage, QuotePages, NoPP, sepc, PostScript);
local Edition = A['Edition'];
local PublicationPlace = place_check (A['PublicationPlace'], A:ORIGIN('PublicationPlace'));
local Place = place_check (A['Place'], A:ORIGIN('Place'));
local PublisherName = A['PublisherName'];
local PublisherName_origin = A:ORIGIN('PublisherName');
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then
local i = 0;
PublisherName, i = utilities.strip_apostrophe_markup (PublisherName); -- strip apostrophe markup so that metadata isn't contaminated; publisher is never italicized
if i and (0 < i) then -- non-zero when markup was stripped so emit an error message
utilities.set_message ('err_apostrophe_markup', {PublisherName_origin});
end
end
if ('document' == config.CitationClass) and not utilities.is_set (PublisherName) then
utilities.set_message ('err_missing_publisher', {config.CitationClass, 'publisher'});
end
local Newsgroup = A['Newsgroup']; -- TODO: strip apostrophe markup?
local Newsgroup_origin = A:ORIGIN('Newsgroup');
if 'newsgroup' == config.CitationClass then
if utilities.is_set (PublisherName) and (cfg.keywords_xlate['none'] ~= PublisherName) then -- general use parameter |publisher= not allowed in cite newsgroup
utilities.set_message ('err_parameter_ignored', {PublisherName_origin});
end
PublisherName = nil; -- ensure that this parameter is unset for the time being; will be used again after COinS
end
if 'book' == config.CitationClass or 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and not utilities.is_set (Periodical)) then
local accept;
PublisherName, accept = utilities.has_accept_as_written (PublisherName); -- check for and remove accept-as-written markup from |publisher= wrapped
if not accept then -- when no accept-as-written markup
check_publisher_name (PublisherName); -- emit maint message when |publisher= might be prefixed with publisher's location
end
end
local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL?
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (URL) and utilities.is_set (UrlAccess) then
UrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', 'url');
end
local ChapterURL = A['ChapterURL'];
local ChapterUrlAccess = is_valid_parameter_value (A['ChapterUrlAccess'], A:ORIGIN('ChapterUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (ChapterURL) and utilities.is_set (ChapterUrlAccess) then
ChapterUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {A:ORIGIN('ChapterUrlAccess'):gsub ('%-access', '')});
end
local MapUrlAccess = is_valid_parameter_value (A['MapUrlAccess'], A:ORIGIN('MapUrlAccess'), cfg.keywords_lists['url-access'], nil);
if not utilities.is_set (A['MapURL']) and utilities.is_set (MapUrlAccess) then
MapUrlAccess = nil;
utilities.set_message ('err_param_access_requires_param', {'map-url'});
end
local this_page = mw.title.getCurrentTitle(); -- also used for COinS and for language
local no_tracking_cats = is_valid_parameter_value (A['NoTracking'], A:ORIGIN('NoTracking'), cfg.keywords_lists['yes_true_y'], nil);
-- check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories
if not utilities.is_set (no_tracking_cats) then -- ignore if we are already not going to categorize this page
if cfg.uncategorized_namespaces[this_page.namespace] then -- is this page's namespace id one of the uncategorized namespace ids?
no_tracking_cats = "true"; -- set no_tracking_cats
end
for _, v in ipairs (cfg.uncategorized_subpages) do -- cycle through page name patterns
if this_page.text:match (v) then -- test page name against each pattern
no_tracking_cats = "true"; -- set no_tracking_cats
break; -- bail out if one is found
end
end
end
-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we're at it)
utilities.select_one (args, {'page', 'p', 'pp', 'pages', 'at', 'sheet', 'sheets'}, 'err_redundant_parameters'); -- this is a dummy call simply to get the error message and category
local coins_pages;
Page, Pages, At, coins_pages = insource_loc_get (Page, A:ORIGIN('Page'), Pages, A:ORIGIN('Pages'), At);
if utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- both |publication-place= and |place= (|location=) allowed if different
utilities.add_prop_cat ('location-test'); -- add property cat to evaluate how often PublicationPlace and Place are used together
if PublicationPlace == Place then
Place = ''; -- unset; don't need both if they are the same
end
elseif not utilities.is_set (PublicationPlace) and utilities.is_set (Place) then -- when only |place= (|location=) is set ...
PublicationPlace = Place; -- promote |place= (|location=) to |publication-place
end
if PublicationPlace == Place then Place = ''; end -- don't need both if they are the same
local URL_origin = A:ORIGIN('URL'); -- get name of parameter that holds URL
local ChapterURL_origin = A:ORIGIN('ChapterURL'); -- get name of parameter that holds ChapterURL
-- local ScriptChapter = A['ScriptChapter'];
-- local ScriptChapter_origin = A:ORIGIN ('ScriptChapter');
local Format = A['Format'];
local ChapterFormat = A['ChapterFormat'];
local TransChapter = A['TransChapter'];
local TransChapter_origin = A:ORIGIN ('TransChapter');
local TransTitle = A['TransTitle'];
local ScriptTitle = A['ScriptTitle'];
--[[
Parameter remapping for cite encyclopedia:
When the citation has these parameters:
|encyclopedia= and |title= then map |title= to |article= and |encyclopedia= to |title= for rendering
|encyclopedia= and |article= then map |encyclopedia= to |title= for rendering
|trans-title= maps to |trans-chapter= when |title= is re-mapped
|url= maps to |chapter-url= when |title= is remapped
All other combinations of |encyclopedia=, |title=, and |article= are not modified
]]
local Encyclopedia = A['Encyclopedia']; -- used as a flag by this module and by ~/COinS
local ScriptEncyclopedia = A['ScriptEncyclopedia'];
local TransEncyclopedia = A['TransEncyclopedia'];
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then -- emit error message when Encyclopedia set but template is other than {{cite encyclopedia}} or {{citation}}
if 'encyclopaedia' ~= config.CitationClass and 'citation' ~= config.CitationClass then
if utilities.is_set (Encyclopedia) then
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('Encyclopedia')});
else
utilities.set_message ('err_parameter_ignored', {A:ORIGIN ('ScriptEncyclopedia')});
end
Encyclopedia = nil; -- unset these because not supported by this template
ScriptEncyclopedia = nil;
TransEncyclopedia = nil;
end
elseif utilities.is_set (TransEncyclopedia) then
utilities.set_message ('err_trans_missing_title', {'encyclopedia'});
end
if ('encyclopaedia' == config.CitationClass) or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Periodical) and utilities.is_set (Encyclopedia) then -- when both parameters set emit an error message; {{citation}} only; Periodical not allowed in {{cite encyclopedia}}
utilities.set_message ('err_periodical_ignored', {Periodical_origin});
end
if utilities.is_set (Encyclopedia) or utilities.is_set (ScriptEncyclopedia) then
Periodical = Encyclopedia; -- error or no, set Periodical to Encyclopedia for rendering; {{citation}} could (not legitimately) have both; use Encyclopedia
Periodical_origin = A:ORIGIN ('Encyclopedia');
ScriptPeriodical = ScriptEncyclopedia;
ScriptPeriodical_origin = A:ORIGIN ('ScriptEncyclopedia');
if utilities.is_set (Title) or utilities.is_set (ScriptTitle) then
if not utilities.is_set (Chapter) then
Chapter = Title; -- |encyclopedia= and |title= are set so map |title= params to |article= params for rendering
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle')
TransChapter = TransTitle;
ChapterURL = URL;
ChapterURL_origin = URL_origin;
ChapterUrlAccess = UrlAccess;
ChapterFormat = Format;
if not utilities.is_set (ChapterURL) and utilities.is_set (TitleLink) then
Chapter = utilities.make_wikilink (TitleLink, Chapter);
end
Title = Periodical; -- now map |encyclopedia= params to |title= params for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
URL = '';
Format = '';
TitleLink = '';
end
elseif utilities.is_set (Chapter) or utilities.is_set (ScriptChapter) then -- |title= not set
Title = Periodical; -- |encyclopedia= set and |article= set so map |encyclopedia= to |title= for rendering
ScriptTitle = ScriptPeriodical or '';
TransTitle = TransEncyclopedia or '';
Periodical = ''; -- redundant so unset
ScriptPeriodical = '';
end
end
end
-- special case for cite techreport.
local ID = A['ID'];
if (config.CitationClass == "techreport") then -- special case for cite techreport
if utilities.is_set (A['Number']) then -- cite techreport uses 'number', which other citations alias to 'issue'
if not utilities.is_set (ID) then -- can we use ID for the "number"?
ID = A['Number']; -- yes, use it
else -- ID has a value so emit error message
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'id') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'number')});
end
end
end
-- Account for the oddity that is {{cite conference}}, before generation of COinS data.
local ChapterLink -- = A['ChapterLink']; -- deprecated as a parameter but still used internally by cite episode
local Conference = A['Conference'];
local BookTitle = A['BookTitle'];
local TransTitle_origin = A:ORIGIN ('TransTitle');
if 'conference' == config.CitationClass then
if utilities.is_set (BookTitle) then
Chapter = Title;
Chapter_origin = 'title';
-- ChapterLink = TitleLink; -- |chapter-link= is deprecated
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
URL_origin = '';
ChapterFormat = Format;
TransChapter = TransTitle;
TransChapter_origin = TransTitle_origin;
Title = BookTitle;
Format = '';
-- TitleLink = '';
TransTitle = '';
URL = '';
end
elseif 'speech' ~= config.CitationClass then
Conference = ''; -- not cite conference or cite speech so make sure this is empty string
end
local cs2_lower = function (text) -- if mode is cs2, use lower case
if (sepc ~= '.') then
return text:lower();
end
return text;
end
local use_lowercase = ( sepc == ',' ); -- controls capitalization of certain static text
-- cite map oddities
local Cartography = "";
local Scale = "";
local Sheet = A['Sheet'] or '';
local Sheets = A['Sheets'] or '';
if config.CitationClass == "map" then
if utilities.is_set (Chapter) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'map') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', Chapter_origin)}); -- add error message
end
Chapter = A['Map'];
Chapter_origin = A:ORIGIN('Map');
ChapterURL = A['MapURL'];
ChapterURL_origin = A:ORIGIN('MapURL');
TransChapter = A['TransMap'];
ScriptChapter = A['ScriptMap']
ScriptChapter_origin = A:ORIGIN('ScriptMap')
ChapterUrlAccess = MapUrlAccess;
ChapterFormat = A['MapFormat'];
Cartography = A['Cartography'];
if utilities.is_set ( Cartography ) then
Cartography = sepc .. " " .. wrap_msg ('cartography', Cartography, use_lowercase);
end
Scale = A['Scale'];
if utilities.is_set ( Scale ) then
Scale = sepc .. " " .. Scale;
end
end
-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.
local Series = A['Series'];
if 'episode' == config.CitationClass or 'serial' == config.CitationClass then
local SeriesLink = A['SeriesLink'];
SeriesLink = link_title_ok (SeriesLink, A:ORIGIN ('SeriesLink'), Series, 'series'); -- check for wiki-markup in |series-link= or wiki-markup in |series= when |series-link= is set
local Network = A['Network'];
local Station = A['Station'];
local s, n = {}, {};
-- do common parameters first
if utilities.is_set (Network) then table.insert(n, Network); end
if utilities.is_set (Station) then table.insert(n, Station); end
ID = table.concat(n, sepc .. ' ');
if 'episode' == config.CitationClass then -- handle the oddities that are strictly {{cite episode}}
local Season = A['Season'];
local SeriesNumber = A['SeriesNumber'];
if utilities.is_set (Season) and utilities.is_set (SeriesNumber) then -- these are mutually exclusive so if both are set TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'season') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'seriesno')}); -- add error message
SeriesNumber = ''; -- unset; prefer |season= over |seriesno=
end
-- assemble a table of parts concatenated later into Series
if utilities.is_set (Season) then table.insert(s, wrap_msg ('season', Season, use_lowercase)); end
if utilities.is_set (SeriesNumber) then table.insert(s, wrap_msg ('seriesnum', SeriesNumber, use_lowercase)); end
if utilities.is_set (Issue) then table.insert(s, wrap_msg ('episode', Issue, use_lowercase)); end
Issue = ''; -- unset because this is not a unique parameter
Chapter = Title; -- promote title parameters to chapter
ScriptChapter = ScriptTitle;
ScriptChapter_origin = A:ORIGIN('ScriptTitle');
ChapterLink = TitleLink; -- alias |episode-link=
TransChapter = TransTitle;
ChapterURL = URL;
ChapterUrlAccess = UrlAccess;
ChapterURL_origin = URL_origin;
ChapterFormat = Format;
Title = Series; -- promote series to title
TitleLink = SeriesLink;
Series = table.concat(s, sepc .. ' '); -- this is concatenation of season, seriesno, episode number
if utilities.is_set (ChapterLink) and not utilities.is_set (ChapterURL) then -- link but not URL
Chapter = utilities.make_wikilink (ChapterLink, Chapter);
elseif utilities.is_set (ChapterLink) and utilities.is_set (ChapterURL) then -- if both are set, URL links episode;
Series = utilities.make_wikilink (ChapterLink, Series);
end
URL = ''; -- unset
TransTitle = '';
ScriptTitle = '';
Format = '';
else -- now oddities that are cite serial
Issue = ''; -- unset because this parameter no longer supported by the citation/core version of cite serial
Chapter = A['Episode']; -- TODO: make |episode= available to cite episode someday?
if utilities.is_set (Series) and utilities.is_set (SeriesLink) then
Series = utilities.make_wikilink (SeriesLink, Series);
end
Series = utilities.wrap_style ('italic-title', Series); -- series is italicized
end
end
-- end of {{cite episode}} stuff
-- handle type parameter for those CS1 citations that have default values
local TitleType = A['TitleType'];
local Degree = A['Degree'];
if utilities.in_array (config.CitationClass, {'AV-media-notes', 'document', 'interview', 'mailinglist', 'map', 'podcast', 'pressrelease', 'report', 'speech', 'techreport', 'thesis'}) then
TitleType = set_titletype (config.CitationClass, TitleType);
if utilities.is_set (Degree) and ("Thesis" == TitleType or cfg.title_types ['thesis'] == TitleType) then -- special case for cite thesis
TitleType = utilities.substitute (cfg.presentation['thesis-degree'], {Degree, cfg.title_types ['thesis']:lower()});
end
end
if utilities.is_set (TitleType) then -- if type parameter is specified
TitleType = utilities.substitute ( cfg.messages['type'], TitleType); -- display it in parentheses
-- TODO: Hack on TitleType to fix bunched parentheses problem
end
-- legacy: promote PublicationDate to Date if neither Date nor Year are set.
local Date = A['Date'];
local Date_origin; -- to hold the name of parameter promoted to Date; required for date error messaging
local PublicationDate = A['PublicationDate'];
local Year = A['Year'];
-- #Added
local HijriDate = A['HijriDate'];
if utilities.is_set (Year) then
validation.year_check (Year); -- returns nothing; emits maint message when |year= doesn't hold a 'year' value
end
if not utilities.is_set (Date) then
Date = Year; -- promote Year to Date
Year = nil; -- make nil so Year as empty string isn't used for CITEREF
if not utilities.is_set (Date) and utilities.is_set (PublicationDate) then -- use PublicationDate when |date= and |year= are not set
Date = PublicationDate; -- promote PublicationDate to Date
PublicationDate = ''; -- unset, no longer needed
Date_origin = A:ORIGIN('PublicationDate'); -- save the name of the promoted parameter
else
Date_origin = A:ORIGIN('Year'); -- save the name of the promoted parameter
end
else
Date_origin = A:ORIGIN('Date'); -- not a promotion; name required for error messaging
end
if PublicationDate == Date then PublicationDate = ''; end -- if PublicationDate is same as Date, don't display in rendered citation
--[[
Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where
we get the date used in the metadata.
Date validation supporting code is in Module:Citation/CS1/Date_validation
]]
local DF = is_valid_parameter_value (A['DF'], A:ORIGIN('DF'), cfg.keywords_lists['df'], '');
if not utilities.is_set (DF) then
DF = cfg.global_df; -- local |df= if present overrides global df set by {{use xxx date}} template
end
local ArchiveURL;
local ArchiveDate;
local ArchiveFormat = A['ArchiveFormat'];
local archive_url_timestamp; -- timestamp from wayback machine url
--#Added Block to add category for unarchived URLs
if utilities.is_set(URL) and not utilities.is_set(A['ArchiveURL']) and not wikidatacite
and not URL:match('//archive%.org/') -- no need for ArchiveURL if the URL is from archive cite! by User:Mr. Ibrahem
then
utilities.add_prop_cat ('no_archive');
end
ArchiveURL, ArchiveDate, archive_url_timestamp = archive_url_check (A['ArchiveURL'], A['ArchiveDate'])
ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, 'archive-format', 'archive-url');
ArchiveURL, ArchiveDate = is_unique_archive_url (ArchiveURL, URL, ChapterURL, A:ORIGIN('ArchiveURL'), ArchiveDate); -- add error message when URL or ChapterURL == ArchiveURL
local AccessDate = A['AccessDate'];
local COinS_date = {}; -- holds date info extracted from |date= for the COinS metadata by Module:Date verification
local DoiBroken = A['DoiBroken'];
local Embargo = A['Embargo'];
local anchor_year; -- used in the CITEREF identifier
do -- create defined block to contain local variables error_message, date_parameters_list, mismatch
local error_message = '';
-- AirDate has been promoted to Date so not necessary to check it
local date_parameters_list = {
['access-date'] = {val = AccessDate, name = A:ORIGIN ('AccessDate')},
['archive-date'] = {val = ArchiveDate, name = A:ORIGIN ('ArchiveDate')},
['hijri-date'] = {val = HijriDate, name = A:ORIGIN ('HijriDate')},
['date'] = {val = Date, name = Date_origin},
['doi-broken-date'] = {val = DoiBroken, name = A:ORIGIN ('DoiBroken')},
['pmc-embargo-date'] = {val = Embargo, name = A:ORIGIN ('Embargo')},
['publication-date'] = {val = PublicationDate, name = A:ORIGIN ('PublicationDate')},
['year'] = {val = Year, name = A:ORIGIN ('Year')},
};
local error_list = {};
anchor_year, Embargo = validation.dates(date_parameters_list, COinS_date, error_list);
if utilities.is_set (Year) and utilities.is_set (Date) then -- both |date= and |year= not normally needed;
validation.year_date_check (Year, A:ORIGIN ('Year'), Date, A:ORIGIN ('Date'), error_list);
end
--#Added Block
if date_parameters_list['hijri-date'].tt and date_parameters_list['date'].tt then
validation.hijri_and_gregorian_corresponded (date_parameters_list['hijri-date'].tt, date_parameters_list['date'].tt);
end
if 0 == #error_list then -- error free dates only; 0 when error_list is empty
local modified = false; -- flag
if utilities.is_set (DF) then -- if we need to reformat dates
modified = validation.reformat_dates (date_parameters_list, DF); -- reformat to DF format, use long month names if appropriate
end
if true == validation.date_hyphen_to_dash (date_parameters_list) then -- convert hyphens to dashes where appropriate
modified = true;
utilities.set_message ('maint_date_format'); -- hyphens were converted so add maint category
end
-- for those wikis that can and want to have English date names translated to the local language; not supported at en.wiki
if cfg.date_name_auto_xlate_enable and validation.date_name_xlate (date_parameters_list, cfg.date_digit_auto_xlate_enable ) then
utilities.set_message ('maint_date_auto_xlated'); -- add maint cat
modified = true;
end
if modified then -- if the date_parameters_list values were modified
AccessDate = date_parameters_list['access-date'].val; -- overwrite date holding parameters with modified values
ArchiveDate = date_parameters_list['archive-date'].val;
Date = date_parameters_list['date'].val;
DoiBroken = date_parameters_list['doi-broken-date'].val;
PublicationDate = date_parameters_list['publication-date'].val;
HijriDate = date_parameters_list['hijri-date'].val;
end
if archive_url_timestamp and utilities.is_set (ArchiveDate) then
validation.archive_date_check (ArchiveDate, archive_url_timestamp, DF); -- does YYYYMMDD in archive_url_timestamp match date in ArchiveDate
end
else
utilities.set_message ('err_bad_date', {utilities.make_sep_list (#error_list, error_list)}); -- add this error message
end
--#Added block
if date_parameters_list['date'].val == "nd" then
Date = cfg.messages["unknown_date"];
end
end -- end of do
if utilities.in_array (config.CitationClass, {'book', 'encyclopaedia'}) or -- {{cite book}}, {{cite encyclopedia}}; TODO: {{cite conference}} and others?
('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) or -- {{citation}} as an encylopedia citation
('citation' == config.CitationClass and not utilities.is_set (Periodical)) then -- {{citation}} as a book citation
if utilities.is_set (PublicationPlace) then
if not utilities.is_set (PublisherName) then
local date = COinS_date.rftdate and tonumber (COinS_date.rftdate:match ('%d%d%d%d')); -- get year portion of COinS date (because in Arabic numerals); convert string to number
if date and (1850 <= date) then -- location has no publisher; if date is 1850 or later
utilities.set_message ('maint_location_no_publisher'); -- add maint cat
end
else -- PublisherName has a value
if cfg.keywords_xlate['none'] == PublisherName then -- if that value is 'none' (only for book and encyclopedia citations)
PublisherName = ''; -- unset
end
end
end
end
local ID_list = {}; -- sequence table of rendered identifiers
local ID_list_coins = {}; -- table of identifiers and their values from args; key is same as cfg.id_handlers's key
local Class = A['Class']; -- arxiv class identifier
local ID_support = {
{A['ASINTLD'], 'ASIN', 'err_asintld_missing_asin', A:ORIGIN ('ASINTLD')},
{DoiBroken, 'DOI', 'err_doibroken_missing_doi', A:ORIGIN ('DoiBroken')},
{Embargo, 'PMC', 'err_embargo_missing_pmc', A:ORIGIN ('Embargo')},
}
ID_list, ID_list_coins = identifiers.identifier_lists_get (args, {
DoiBroken = DoiBroken, -- for |doi=
ASINTLD = A['ASINTLD'], -- for |asin=
Embargo = Embargo, -- for |pmc=
Class = Class, -- for |arxiv=
CitationClass = config.CitationClass, -- for |arxiv=
Year=anchor_year, -- for |isbn=
}, ID_support);
if 'citation' == config.CitationClass then -- catch ve/citoid malformed book cites in {{citation}} templates
for _, id in ipairs (ID_list) do -- search through the ID_list sequence looking for an ISBN identifier string
if id:find ('ISBN', 3, true) then -- plain find, start at index 3 ([[ISBN)
if utilities.is_set (Periodical) then -- when a |work= alias is set
utilities.set_message ('maint_work_isbn'); -- add maint cat
end
end
end
end
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, {{cite ssrn}}, before generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- |arxiv= or |eprint= required for cite arxiv; |biorxiv=, |citeseerx=, |medrxiv=, |ssrn= required for their templates
if not (args[cfg.id_handlers[config.CitationClass:upper()].parameters[1]] or -- can't use ID_list_coins k/v table here because invalid parameters omitted
args[cfg.id_handlers[config.CitationClass:upper()].parameters[2]]) then -- which causes unexpected parameter missing error message
utilities.set_message ('err_' .. config.CitationClass .. '_missing'); -- add error message
end
Periodical = ({['arxiv'] = 'arXiv', ['biorxiv'] = 'bioRxiv', ['citeseerx'] = 'CiteSeerX', ['medrxiv'] = 'medRxiv', ['ssrn'] = 'Social Science Research Network'})[config.CitationClass];
end
-- Link the title of the work if no |url= was provided, but we have a |pmc= or a |doi= with |doi-access=free
if config.CitationClass == "journal" and not utilities.is_set (URL) and not utilities.is_set (TitleLink) and not utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) then -- TODO: remove 'none' once existing citations have been switched to 'off', so 'none' can be used as token for "no title" instead
if 'none' ~= cfg.keywords_xlate[auto_select] then -- if auto-linking not disabled
if identifiers.auto_link_urls[auto_select] then -- manual selection
URL = identifiers.auto_link_urls[auto_select]; -- set URL to be the same as identifier's external link
URL_origin = cfg.id_handlers[auto_select:upper()].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['pmc'] then -- auto-select PMC
URL = identifiers.auto_link_urls['pmc']; -- set URL to be the same as the PMC external link if not embargoed
URL_origin = cfg.id_handlers['PMC'].parameters[1]; -- set URL_origin to parameter name for use in error message if citation is missing a |title=
elseif identifiers.auto_link_urls['doi'] then -- auto-select DOI
URL = identifiers.auto_link_urls['doi'];
URL_origin = cfg.id_handlers['DOI'].parameters[1];
end
end
if utilities.is_set (URL) then -- set when using an identifier-created URL
if utilities.is_set (AccessDate) then -- |access-date= requires |url=; identifier-created URL is not |url=
--#Modified
utilities.set_message ('err_accessdate_missing_url', A:ORIGIN('AccessDate')); -- add an error message
AccessDate = ''; -- unset
end
if utilities.is_set (ArchiveURL) then -- |archive-url= requires |url=; identifier-created URL is not |url=
--#Modified
utilities.set_message ('err_archive_missing_url', {A:ORIGIN('ArchiveURL')}); -- add an error message
ArchiveURL = ''; -- unset
end
end
end
-- At this point fields may be nil if they weren't specified in the template use. We can use that fact.
-- Test if citation has no title
if not utilities.is_set (Title) and not utilities.is_set (TransTitle) and not utilities.is_set (ScriptTitle) then -- has special case for cite episode
--#Modified Block
utilities.set_message (wikidatacite and 'err_wikidata_citation_missing_title' or 'err_citation_missing_title', {'episode' == config.CitationClass and 'series' or 'title'});
end
if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and
utilities.in_array (config.CitationClass, {'journal', 'citation'}) and
(utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and
('journal' == Periodical_origin or 'script-journal' == ScriptPeriodical_origin) then -- special case for journal cites
Title = ''; -- set title to empty string
utilities.set_message ('maint_untitled'); -- add maint cat
end
if 'journal' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Periodical) and 'journal' == Periodical_origin) then
if is_page_art_num (((utilities.is_set (Page) and Page) or (utilities.is_set (Pages) and Pages)) or nil, ID_list_coins['DOI']) then -- does |page(s)= look like it holds an article number
utilities.set_message ('maint_page_art_num'); -- add maint cat
end
end
-- COinS metadata (see <http://ocoins.info/>) for automated parsing of citation information.
-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that
-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title
-- is the article title, and Chapter is a section within the article. So, we remap
local coins_chapter = Chapter; -- default assuming that remapping not required
local coins_title = Title; -- et tu
if 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and utilities.is_set (Encyclopedia)) then
if utilities.is_set (Chapter) and utilities.is_set (Title) and utilities.is_set (Periodical) then -- if all are used then
coins_chapter = Title; -- remap
coins_title = Periodical;
end
end
local coins_author = a; -- default for coins rft.au
if 0 < #c then -- but if contributor list
coins_author = c; -- use that instead
end
-- this is the function call to COinS()
local OCinSoutput = metadata.COinS({
['Periodical'] = utilities.strip_apostrophe_markup (Periodical), -- no markup in the metadata
['Encyclopedia'] = Encyclopedia, -- just a flag; content ignored by ~/COinS
['Chapter'] = metadata.make_coins_title (coins_chapter, ScriptChapter), -- Chapter and ScriptChapter stripped of bold / italic / accept-as-written markup
['Degree'] = Degree; -- cite thesis only
['Title'] = metadata.make_coins_title (coins_title, ScriptTitle), -- Title and ScriptTitle stripped of bold / italic / accept-as-written markup
['PublicationPlace'] = PublicationPlace,
['Date'] = COinS_date.rftdate, -- COinS_date.* has correctly formatted date values if Date is valid;
['Season'] = COinS_date.rftssn,
['Quarter'] = COinS_date.rftquarter,
['Chron'] = COinS_date.rftchron,
['Series'] = Series,
['Volume'] = Volume,
['Issue'] = Issue,
['ArticleNumber'] = ArticleNumber,
['Pages'] = coins_pages or metadata.get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At, QuotePage, QuotePages}, 7)), -- pages stripped of external links
['Edition'] = Edition,
['PublisherName'] = PublisherName or Newsgroup, -- any apostrophe markup already removed from PublisherName
['URL'] = first_set ({ChapterURL, URL}, 2),
['Authors'] = coins_author,
['ID_list'] = ID_list_coins,
['RawPage'] = this_page.prefixedText,
}, config.CitationClass);
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, {{cite medrxiv}}, and {{cite ssrn}} AFTER generation of COinS data.
if utilities.in_array (config.CitationClass, whitelist.preprint_template_list_t) then -- we have set rft.jtitle in COinS to arXiv, bioRxiv, CiteSeerX, medRxiv, or ssrn now unset so it isn't displayed
Periodical = ''; -- periodical not allowed in these templates; if article has been published, use cite journal
end
-- special case for cite newsgroup. Do this after COinS because we are modifying Publishername to include some static text
if 'newsgroup' == config.CitationClass and utilities.is_set (Newsgroup) then
PublisherName = utilities.substitute (cfg.messages['newsgroup'], external_link( 'news:' .. Newsgroup, Newsgroup, Newsgroup_origin, nil ));
end
local Editors;
local EditorCount; -- used only for choosing {ed.) or (eds.) annotation at end of editor name-list
local Contributors; -- assembled contributors name list
local contributor_etal;
local Translators; -- assembled translators name list
local translator_etal;
local t = {}; -- translators list from |translator-lastn= / translator-firstn= pairs
t = extract_names (args, 'TranslatorList'); -- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=
local Interviewers;
local interviewers_list = {};
interviewers_list = extract_names (args, 'InterviewerList'); -- process preferred interviewers parameters
local interviewer_etal;
-- Now perform various field substitutions.
-- We also add leading spaces and surrounding markup and punctuation to the
-- various parts of the citation, but only when they are non-nil.
do
local last_first_list;
local control = {
format = NameListStyle, -- empty string, '&', 'amp', 'and', or 'vanc'
maximum = nil, -- as if display-authors or display-editors not set
mode = Mode
};
do -- do editor name list first because the now unsupported coauthors used to modify control table
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayEditors'], A['DisplayEditors'], A:ORIGIN ('DisplayEditors'), #e);
control.maximum, editor_etal = get_display_names (display_names, #e, 'editors', editor_etal, param);
Editors, EditorCount = list_people (control, e, editor_etal);
if 1 == EditorCount and (true == editor_etal or 1 < #e) then -- only one editor displayed but includes etal then
EditorCount = 2; -- spoof to display (eds.) annotation
end
end
do -- now do interviewers
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayInterviewers'], A['DisplayInterviewers'], A:ORIGIN ('DisplayInterviewers'), #interviewers_list);
control.maximum, interviewer_etal = get_display_names (display_names, #interviewers_list, 'interviewers', interviewer_etal, param);
Interviewers = list_people (control, interviewers_list, interviewer_etal);
end
do -- now do translators
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayTranslators'], A['DisplayTranslators'], A:ORIGIN ('DisplayTranslators'), #t);
control.maximum, translator_etal = get_display_names (display_names, #t, 'translators', translator_etal, param);
Translators = list_people (control, t, translator_etal);
end
do -- now do contributors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayContributors'], A['DisplayContributors'], A:ORIGIN ('DisplayContributors'), #c);
control.maximum, contributor_etal = get_display_names (display_names, #c, 'contributors', contributor_etal, param);
Contributors = list_people (control, c, contributor_etal);
end
do -- now do authors
local display_names, param = display_names_select (cfg.global_cs1_config_t['DisplayAuthors'], A['DisplayAuthors'], A:ORIGIN ('DisplayAuthors'), #a, author_etal);
control.maximum, author_etal = get_display_names (display_names, #a, 'authors', author_etal, param);
last_first_list = list_people (control, a, author_etal);
if utilities.is_set (Authors) then
Authors, author_etal = name_has_etal (Authors, author_etal, false, 'authors'); -- find and remove variations on et al.
if author_etal then
Authors = Authors .. ' ' .. cfg.messages['et al']; -- add et al. to authors parameter
end
else
Authors = last_first_list; -- either an author name list or an empty string
end
end -- end of do
if utilities.is_set (Authors) and utilities.is_set (Collaboration) then
Authors = Authors .. ' (' .. Collaboration .. ')'; -- add collaboration after et al.
end
end
local ConferenceFormat = A['ConferenceFormat'];
local ConferenceURL = A['ConferenceURL'];
ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, 'conference-format', 'conference-url');
Format = style_format (Format, URL, 'format', 'url');
-- special case for chapter format so no error message or cat when chapter not supported
if not (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia))) then
ChapterFormat = style_format (ChapterFormat, ChapterURL, 'chapter-format', 'chapter-url');
end
if not utilities.is_set (URL) then
if utilities.in_array (config.CitationClass, {"web", "podcast", "mailinglist"}) or -- |url= required for {{cite web}}, {{cite podcast}}, and {{cite mailing list}}
('citation' == config.CitationClass and ('website' == Periodical_origin or 'script-website' == ScriptPeriodical_origin)) then -- and required for {{citation}} with |website= or |script-website=
if not url_was_archive_today then -- is <URL> empty/missing because it was a deprecated archive.today url
utilities.set_message ('err_cite_web_url'); -- no; emit an error message for an empty/ missing |url=
end
end
-- do we have |accessdate= without either |url= or |chapter-url=?
if utilities.is_set (AccessDate) and not utilities.is_set (ChapterURL) then -- ChapterURL may be set when URL is not set;
--#Modified
utilities.set_message ('err_accessdate_missing_url', A:ORIGIN('AccessDate'));
AccessDate = '';
end
end
local UrlStatus = is_valid_parameter_value (A['UrlStatus'], A:ORIGIN('UrlStatus'), cfg.keywords_lists['url-status'], '');
local OriginalURL
local OriginalURL_origin
local OriginalFormat
local OriginalAccess;
UrlStatus = UrlStatus:lower(); -- used later when assembling archived text
if utilities.is_set ( ArchiveURL ) then
if utilities.is_set (ChapterURL) then -- if chapter-url= is set apply archive url to it
OriginalURL = ChapterURL; -- save copy of source chapter's url for archive text
OriginalURL_origin = ChapterURL_origin; -- name of |chapter-url= parameter for error messages
OriginalFormat = ChapterFormat; -- and original |chapter-format=
if 'live' ~= UrlStatus then
ChapterURL = ArchiveURL -- swap-in the archive's URL
ChapterURL_origin = A:ORIGIN('ArchiveURL') -- name of |archive-url= parameter for error messages
ChapterFormat = ArchiveFormat or ''; -- swap in archive's format
ChapterUrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
elseif utilities.is_set (URL) then
OriginalURL = URL; -- save copy of original source URL
OriginalURL_origin = URL_origin; -- name of URL parameter for error messages
OriginalFormat = Format; -- and original |format=
OriginalAccess = UrlAccess;
if 'live' ~= UrlStatus then -- if URL set then |archive-url= applies to it
URL = ArchiveURL -- swap-in the archive's URL
URL_origin = A:ORIGIN('ArchiveURL') -- name of archive URL parameter for error messages
Format = ArchiveFormat or ''; -- swap in archive's format
UrlAccess = nil; -- restricted access levels do not make sense for archived URLs
end
end
elseif utilities.is_set (UrlStatus) then -- if |url-status= is set when |archive-url= is not set
utilities.set_message ('maint_url_status'); -- add maint cat
end
--*******
if utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or -- if any of the 'periodical' cites except encyclopedia
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) then
local chap_param;
if utilities.is_set (Chapter) then -- get a parameter name from one of these chapter related meta-parameters
chap_param = A:ORIGIN ('Chapter')
elseif utilities.is_set (TransChapter) then
chap_param = A:ORIGIN ('TransChapter')
elseif utilities.is_set (ChapterURL) then
chap_param = A:ORIGIN ('ChapterURL')
elseif utilities.is_set (ScriptChapter) then
chap_param = ScriptChapter_origin;
else utilities.is_set (ChapterFormat)
chap_param = A:ORIGIN ('ChapterFormat')
end
if utilities.is_set (chap_param) then -- if we found one
utilities.set_message ('err_chapter_ignored', {chap_param}); -- add error message
Chapter = ''; -- and set them to empty string to be safe with concatenation
TransChapter = '';
ChapterURL = '';
ScriptChapter = '';
ChapterFormat = '';
end
else -- otherwise, format chapter / article title
local no_quotes = false; -- default assume that we will be quoting the chapter parameter value
if utilities.is_set (Contribution) and 0 < #c then -- if this is a contribution with contributor(s)
if utilities.in_array (Contribution:lower(), cfg.keywords_lists.contribution) then -- and a generic contribution title
no_quotes = true; -- then render it unquoted
end
end
Chapter = format_chapter_title (ScriptChapter, ScriptChapter_origin, Chapter, Chapter_origin, TransChapter, TransChapter_origin, ChapterURL, ChapterURL_origin, no_quotes, ChapterUrlAccess); -- Contribution is also in Chapter
if utilities.is_set (Chapter) then
Chapter = Chapter .. ChapterFormat ;
if 'map' == config.CitationClass and utilities.is_set (TitleType) then
Chapter = Chapter .. ' ' .. TitleType; -- map annotation here; not after title
end
Chapter = Chapter .. sepc .. ' ';
elseif utilities.is_set (ChapterFormat) then -- |chapter= not set but |chapter-format= is so ...
Chapter = ChapterFormat .. sepc .. ' '; -- ... ChapterFormat has error message, we want to see it
end
end
-- Format main title
local plain_title = false;
local accept_title;
Title, accept_title = utilities.has_accept_as_written (Title, true); -- remove accept-this-as-written markup when it wraps all of <Title>
if accept_title and ('' == Title) then -- only support forced empty for now "(())"
Title = cfg.messages['notitle']; -- replace by predefined "No title" message
-- TODO: utilities.set_message ( 'err_redundant_parameters', ...); -- issue proper error message instead of muting
ScriptTitle = ''; -- just mute for now
TransTitle = ''; -- just mute for now
plain_title = true; -- suppress text decoration for descriptive title
utilities.set_message ('maint_untitled'); -- add maint cat
end
if not accept_title then -- <Title> not wrapped in accept-as-written markup
if '...' == Title:sub (-3) then -- if ellipsis is the last three characters of |title=
Title = Title:gsub ('(%.%.%.)%.+$', '%1'); -- limit the number of dots to three
elseif not mw.ustring.find (Title, '%.%s*%a%.$') and -- end of title is not a 'dot-(optional space-)letter-dot' initialism ...
not mw.ustring.find (Title, '%s+%a%.$') then -- ...and not a 'space-letter-dot' initial (''Allium canadense'' L.)
Title = mw.ustring.gsub(Title, '%' .. sepc .. '$', ''); -- remove any trailing separator character; sepc and ms.ustring() here for languages that use multibyte separator characters
end
if utilities.is_set (ArchiveURL) and is_archived_copy (Title) then
utilities.set_message ('maint_archived_copy'); -- add maintenance category before we modify the content of Title
end
if is_generic ('generic_titles', Title) then
utilities.set_message ('err_generic_title'); -- set an error message
end
end
if (not plain_title) and (utilities.in_array (config.CitationClass, {'web', 'news', 'journal', 'magazine', 'document', 'pressrelease', 'podcast', 'newsgroup', 'mailinglist', 'interview', 'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) or
('citation' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)) and not utilities.is_set (Encyclopedia)) or
('map' == config.CitationClass and (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical)))) then -- special case for cite map when the map is in a periodical treat as an article
Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from module provided quote marks
Title = utilities.wrap_style ('quoted-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle );
elseif plain_title or ('report' == config.CitationClass) then -- no styling for cite report and descriptive titles (otherwise same as above)
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-quoted-title', TransTitle ); -- for cite report, use this form for trans-title
else
Title = utilities.wrap_style ('italic-title', Title);
Title = script_concatenate (Title, ScriptTitle, 'script-title'); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
TransTitle = utilities.wrap_style ('trans-italic-title', TransTitle);
end
if utilities.is_set (TransTitle) then
if utilities.is_set (Title) then
TransTitle = " " .. TransTitle;
else
utilities.set_message ('err_trans_missing_title', {'title'});
end
end
if utilities.is_set (Title) then -- TODO: is this the right place to be making Wikisource URLs?
if utilities.is_set (TitleLink) and utilities.is_set (URL) then
utilities.set_message ('err_wikilink_in_url'); -- set an error message because we can't have both
TitleLink = ''; -- unset
end
if not utilities.is_set (TitleLink) and utilities.is_set (URL) then
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format;
URL = ''; -- unset these because no longer needed
Format = "";
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then
local ws_url;
ws_url = wikisource_url_make (TitleLink); -- ignore ws_label return; not used here
if ws_url then
Title = external_link (ws_url, Title .. ' ', 'ws link in title-link'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], TitleLink, Title});
Title = Title .. TransTitle;
else
Title = utilities.make_wikilink (TitleLink, Title) .. TransTitle;
end
else
local ws_url, ws_label, L; -- Title has italic or quote markup by the time we get here which causes is_wikilink() to return 0 (not a wikilink)
ws_url, ws_label, L = wikisource_url_make (Title:gsub('^[\'"]*(.-)[\'"]*$', '%1')); -- make ws URL from |title= interwiki link (strip italic or quote markup); link portion L becomes tooltip label
if ws_url then
Title = Title:gsub ('%b[]', ws_label); -- replace interwiki link with ws_label to retain markup
Title = external_link (ws_url, Title .. ' ', 'ws link in title'); -- space char after Title to move icon away from italic text; TODO: a better way to do this?
Title = utilities.substitute (cfg.presentation['interwiki-icon'], {cfg.presentation['class-wikisource'], L, Title});
Title = Title .. TransTitle;
else
Title = Title .. TransTitle;
end
end
else
Title = TransTitle;
end
if utilities.is_set (Place) then
Place = " " .. wrap_msg ('written', Place, use_lowercase) .. sepc .. " ";
end
local ConferenceURL_origin = A:ORIGIN('ConferenceURL'); -- get name of parameter that holds ConferenceURL
if utilities.is_set (Conference) then
if utilities.is_set (ConferenceURL) then
Conference = external_link( ConferenceURL, Conference, ConferenceURL_origin, nil );
end
Conference = sepc .. " " .. Conference .. ConferenceFormat;
elseif utilities.is_set (ConferenceURL) then
Conference = sepc .. " " .. external_link( ConferenceURL, nil, ConferenceURL_origin, nil );
end
local Position = '';
if not utilities.is_set (Position) then
local Minutes = A['Minutes'];
local Time = A['Time'];
if utilities.is_set (Minutes) then
if utilities.is_set (Time) then --TODO: make a function for this and similar?
utilities.set_message ('err_redundant_parameters', {utilities.wrap_style ('parameter', 'minutes') .. cfg.presentation['sep_list_pair'] .. utilities.wrap_style ('parameter', 'time')});
end
Position = utilities.substitute (cfg.messages.minutes, Minutes);
else
if utilities.is_set (Time) then
local TimeCaption = A['TimeCaption']
if not utilities.is_set (TimeCaption) then
TimeCaption = cs2_lower(cfg.messages['event']);
end
Position = " " .. TimeCaption .. " " .. Time;
end
end
else
Position = " " .. Position;
At = '';
end
Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);
At = utilities.is_set (At) and (sepc .. " " .. At) or "";
Position = utilities.is_set (Position) and (sepc .. " " .. Position) or "";
if config.CitationClass == 'map' then
local Sections = A['Sections']; -- Section (singular) is an alias of Chapter so set earlier
local Inset = A['Inset'];
if utilities.is_set ( Inset ) then
Inset = sepc .. " " .. wrap_msg ('inset', Inset, use_lowercase);
end
if utilities.is_set ( Sections ) then
Section = sepc .. " " .. wrap_msg ('sections', Sections, use_lowercase);
elseif utilities.is_set ( Section ) then
Section = sepc .. " " .. wrap_msg ('section', Section, use_lowercase);
end
At = At .. Inset .. Section;
end
local Others = A['Others'];
if utilities.is_set (Others) and 0 == #a and 0 == #e then -- add maint cat when |others= has value and used without |author=, |editor=
if config.CitationClass == "AV-media-notes"
or config.CitationClass == "audio-visual" then -- special maint for AV/M which has a lot of 'false' positives right now
utilities.set_message ('maint_others_avm')
else
utilities.set_message ('maint_others');
end
end
Others = utilities.is_set (Others) and (sepc .. " " .. Others) or "";
if utilities.is_set (Translators) then
Others = safe_join ({sepc .. ' ', wrap_msg ('translated', Translators, use_lowercase), Others}, sepc);
end
if utilities.is_set (Interviewers) then
Others = safe_join ({sepc .. ' ', wrap_msg ('interview', Interviewers, use_lowercase), Others}, sepc);
end
local TitleNote = A['TitleNote'];
TitleNote = utilities.is_set (TitleNote) and (sepc .. " " .. TitleNote) or "";
if utilities.is_set (Edition) then
if Edition:match ('%f[%a][Ee]d%n?%.?$') or Edition:match ('%f[%a][Ee]dition$') then -- Ed, ed, Ed., ed., Edn, edn, Edn., edn.
utilities.set_message ('err_extra_text_edition'); -- add error message
end
Edition = " " .. wrap_msg ('edition', Edition);
else
Edition = '';
end
Series = utilities.is_set (Series) and wrap_msg ('series', {sepc, Series}) or ""; -- not the same as SeriesNum
local Agency = A['Agency'] or ''; -- |agency= is supported by {{cite magazine}}, {{cite news}}, {{cite press release}}, {{cite web}}, and certain {{citation}} templates
if utilities.is_set (Agency) then -- this testing done here because {{citation}} supports 'news' citations
if utilities.in_array (config.CitationClass, {'magazine', 'news', 'pressrelease', 'web'}) or ('citation' == config.CitationClass and utilities.in_array (Periodical_origin, {"magazine", "newspaper", "work"})) then
Agency = wrap_msg ('agency', {sepc, Agency}); -- format for rendering
else
Agency = ''; -- unset; not supported
utilities.set_message ('err_parameter_ignored', {'agency'}); -- add error message
end
end
Volume = format_volume_issue (Volume, Issue, ArticleNumber, config.CitationClass, Periodical_origin, sepc, use_lowercase);
if utilities.is_set (AccessDate) then
local retrv_text = " " .. cfg.messages['retrieved'];
AccessDate = nowrap_date (AccessDate); -- wrap in nowrap span if date in appropriate format
retrv_text = cs2_lower(retrv_text); -- if mode is cs2, lower case
AccessDate = utilities.substitute (retrv_text, AccessDate); -- add retrieved text
AccessDate = utilities.substitute (cfg.presentation['accessdate'], {sepc, AccessDate}); -- allow editors to hide accessdates
end
if utilities.is_set (ID) then ID = sepc .. " " .. ID; end
local Docket = A['Docket'];
if "thesis" == config.CitationClass and utilities.is_set (Docket) then
ID = sepc .. " Docket " .. Docket .. ID;
end
if "report" == config.CitationClass and utilities.is_set (Docket) then -- for cite report when |docket= is set
ID = sepc .. ' ' .. Docket; -- overwrite ID even if |id= is set
end
if utilities.is_set (URL) then
URL = " " .. external_link( URL, nil, URL_origin, UrlAccess );
end
-- We check length of PostScript here because it will have been nuked by
-- the quote parameters. We'd otherwise emit a message even if there wasn't
-- a displayed postscript.
-- TODO: Should the max size (1) be configurable?
-- TODO: Should we check a specific pattern?
if utilities.is_set(PostScript) and mw.ustring.len(PostScript) > 1 then
utilities.set_message ('maint_postscript')
end
local Archived;
if utilities.is_set (ArchiveURL) then
if not utilities.is_set (ArchiveDate) then -- ArchiveURL set but ArchiveDate not set
--#Modified
utilities.set_message ('err_archive_missing_date', {A:ORIGIN('ArchiveURL')});
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
else
if utilities.is_set (ArchiveDate) then -- ArchiveURL not set but ArchiveDate is set
--#Modified
utilities.set_message ('err_archive_date_missing_url', {A:ORIGIN('ArchiveDate')}); -- emit an error message
ArchiveURL = ''; -- empty string for concatenation
ArchiveDate = ''; -- empty string for concatenation
end
end
if utilities.is_set (ArchiveURL) then
local arch_text;
if "live" == UrlStatus then
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cfg.messages['archived-live'],
{ external_link( ArchiveURL, cs2_lower(cfg.messages['archived']), A:ORIGIN('ArchiveURL'), nil) .. ArchiveFormat, ArchiveDate } );
else
Archived = '';
end
if not utilities.is_set (OriginalURL) then
--#Modified
utilities.set_message ('err_archive_missing_url', {A:ORIGIN('ArchiveURL')});
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (OriginalURL) then -- UrlStatus is empty, 'dead', 'unfit', 'usurped', 'bot: unknown'
if utilities.in_array (UrlStatus, {'unfit', 'usurped', 'bot: unknown'}) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-unfit']), ArchiveDate);
if 'bot: unknown' == UrlStatus then
utilities.set_message ('maint_bot_unknown'); -- and add a category if not already added
else
utilities.add_prop_cat ('unfit'); -- and add a category if not already added
end
else -- UrlStatus is empty, 'dead'
if utilities.is_set (ArchiveDate) then
Archived = sepc .. ' ' .. utilities.substitute ( cs2_lower(cfg.messages['archived-dead']),
{ external_link( OriginalURL, cfg.messages['original'], OriginalURL_origin, OriginalAccess ) .. OriginalFormat, ArchiveDate } );
else
Archived = ''; -- unset for concatenation
end
end
else -- OriginalUrl not set
--#Modified
utilities.set_message ('err_archive_missing_url', {A:ORIGIN('ArchiveURL')});
Archived = ''; -- empty string for concatenation
end
elseif utilities.is_set (ArchiveFormat) then
Archived = ArchiveFormat; -- if set and ArchiveURL not set ArchiveFormat has error message
else
Archived = '';
end
local TranscriptURL = A['TranscriptURL']
local TranscriptFormat = A['TranscriptFormat'];
TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, 'transcript-format', 'transcripturl');
local Transcript = A['Transcript'];
local TranscriptURL_origin = A:ORIGIN('TranscriptURL'); -- get name of parameter that holds TranscriptURL
if utilities.is_set (Transcript) then
if utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, Transcript, TranscriptURL_origin, nil );
end
Transcript = sepc .. ' ' .. Transcript .. TranscriptFormat;
elseif utilities.is_set (TranscriptURL) then
Transcript = external_link( TranscriptURL, nil, TranscriptURL_origin, nil );
end
local Publisher;
if utilities.is_set (PublicationDate) then
PublicationDate = wrap_msg ('published', PublicationDate);
end
if utilities.is_set (PublisherName) then
if utilities.is_set (PublicationPlace) then
Publisher = sepc .. " " .. PublicationPlace .. ": " .. PublisherName .. PublicationDate;
else
Publisher = sepc .. " " .. PublisherName .. PublicationDate;
end
elseif utilities.is_set (PublicationPlace) then
Publisher= sepc .. " " .. PublicationPlace .. PublicationDate;
else
Publisher = PublicationDate;
end
-- Several of the above rely upon detecting this as nil, so do it last.
if (utilities.is_set (Periodical) or utilities.is_set (ScriptPeriodical) or utilities.is_set (TransPeriodical)) then
if utilities.is_set (Title) or utilities.is_set (TitleNote) then
Periodical = sepc .. " " .. format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
else
Periodical = format_periodical (ScriptPeriodical, ScriptPeriodical_origin, Periodical, TransPeriodical, TransPeriodical_origin);
end
end
local Language = A['Language'];
if utilities.is_set (Language) then
Language = language_parameter (Language); -- format, categories, name from ISO639-1, etc.
else
Language=''; -- language not specified so make sure this is an empty string;
--[[ TODO: need to extract the wrap_msg from language_parameter
so that we can solve parentheses bunching problem with Format/Language/TitleType
]]
end
--[[
Handle the oddity that is cite speech. This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be " (Speech)" so that
the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).
]]
if "speech" == config.CitationClass then -- cite speech only
TitleNote = TitleType; -- move TitleType to TitleNote so that it renders ahead of |event=
TitleType = ''; -- and unset
if utilities.is_set (Periodical) then -- if Periodical, perhaps because of an included |website= or |journal= parameter
if utilities.is_set (Conference) then -- and if |event= is set
Conference = Conference .. sepc .. " "; -- then add appropriate punctuation to the end of the Conference variable before rendering
end
end
end
-- Piece all bits together at last. Here, all should be non-nil.
-- We build things this way because it is more efficient in LUA
-- not to keep reassigning to the same string variable over and over.
local tcommon;
local tcommon2; -- used for book cite when |contributor= is set
local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
-- Volume = safe_join ({Volume, pgtext}, sepc);
if utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (Periodical) then -- special cases for book cites
if utilities.is_set (Contributors) then -- when we are citing foreword, preface, introduction, etc.
tcommon = safe_join ({Title, TitleNote}, sepc); -- author and other stuff will come after this and before tcommon2
--#Mdified Arabic style make vol last
tcommon2 = safe_join({TitleType, Series, Language, Others, Edition, Publisher, Volume}, sepc);
else
--#Mdified Arabic style make vol last
tcommon = safe_join( {Title, TitleNote, TitleType, Series, Language, Others, Edition, Publisher, Volume}, sepc);
end
elseif 'map' == config.CitationClass then -- special cases for cite map
if utilities.is_set (Chapter) then -- map in a book; TitleType is part of Chapter
tcommon = safe_join ({Title, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
elseif utilities.is_set (Periodical) then -- map in a periodical
tcommon = safe_join ({Title, TitleType, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc);
else -- a sheet or stand-alone map
tcommon = safe_join ({Title, TitleType, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc);
end
elseif 'episode' == config.CitationClass then -- special case for cite episode
tcommon = safe_join ({Title, TitleNote, TitleType, Series, Language, Edition, Publisher}, sepc);
else -- all other CS1 templates
--#Mdified Arabic style make vol last
tcommon = safe_join ({Title, TitleNote, Conference, Periodical, TitleType, Series, Language, Others, Edition, Publisher, Agency, Volume}, sepc);
end
if #ID_list > 0 then
ID_list = safe_join( { sepc .. " ", table.concat( ID_list, sepc .. " " ), ID }, sepc );
else
ID_list = ID;
end
local Via = A['Via'];
Via = utilities.is_set (Via) and wrap_msg ('via', Via) or '';
local idcommon;
if 'audio-visual' == config.CitationClass or 'episode' == config.CitationClass then -- special case for cite AV media & cite episode position transcript
idcommon = safe_join( { ID_list, URL, Archived, Transcript, AccessDate, Via, Quote }, sepc );
else
idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, Quote }, sepc );
end
local text;
-- local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;
--#Added block
if utilities.is_set (HijriDate) then
if not mw.ustring.match(HijriDate,'%d *هـ?$') then
HijriDate = HijriDate .. 'هـ'
end
if utilities.is_set (Date) then
Date = HijriDate .. ' – ' .. Date .. 'م'
else
Date = HijriDate
end
end
local OrigDate = A['OrigDate'];
OrigDate = utilities.is_set (OrigDate) and wrap_msg ('origdate', OrigDate) or '';
if utilities.is_set (Date) then
if utilities.is_set (Authors) or utilities.is_set (Editors) then -- date follows authors or editors when authors not set
Date = " (" .. Date .. ")" .. OrigDate .. sepc .. " "; -- in parentheses
else -- neither of authors and editors set
if (string.sub(tcommon, -1, -1) == sepc) then -- if the last character of tcommon is sepc
Date = " " .. Date .. OrigDate; -- Date does not begin with sepc
else
Date = sepc .. " " .. Date .. OrigDate; -- Date begins with sepc
end
end
end
if utilities.is_set (Authors) then
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Authors termination
Authors = terminate_name_list (Authors, sepc); -- when no date, terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Editors) then
local in_text = '';
local post_text = '';
if utilities.is_set (Chapter) and 0 == #c then
in_text = cfg.messages['in'] .. ' ';
in_text = cs2_lower(in_text); -- lowercase for cs2
end
if EditorCount <= 1 then
post_text = ' (' .. cfg.messages['editor'] .. ')'; -- be consistent with no-author, no-date case
else
post_text = ' (' .. cfg.messages['editors'] .. ')';
end
Editors = terminate_name_list (in_text .. Editors .. post_text, sepc); -- terminate with 0 or 1 sepc and a space
end
if utilities.is_set (Contributors) then -- book cite and we're citing the intro, preface, etc.
local by_text = sepc .. ' ' .. cfg.messages['by'] .. ' ';
by_text = cs2_lower(by_text); -- lowercase for cs2
Authors = by_text .. Authors; -- author follows title so tweak it here
if utilities.is_set (Editors) and utilities.is_set (Date) then -- when Editors make sure that Authors gets terminated
Authors = terminate_name_list (Authors, sepc); -- terminate with 0 or 1 sepc and a space
end
if (not utilities.is_set (Date)) then -- when date is set it's in parentheses; no Contributors termination
Contributors = terminate_name_list (Contributors, sepc); -- terminate with 0 or 1 sepc and a space
end
text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );
-- text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, idcommon }, sepc );
else
text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );
-- text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, idcommon }, sepc );
end
elseif utilities.is_set (Editors) then
if utilities.is_set (Date) then
if EditorCount <= 1 then
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editor'];
else
Editors = Editors .. cfg.presentation['sep_name'] .. cfg.messages['editors'];
end
else
if EditorCount <= 1 then
Editors = Editors .. " (" .. cfg.messages['editor'] .. ")" .. sepc .. " "
else
Editors = Editors .. " (" .. cfg.messages['editors'] .. ")" .. sepc .. " "
end
end
text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );
-- text = safe_join( {Editors, Date, Chapter, Place, tcommon, idcommon}, sepc );
else
if utilities.in_array (config.CitationClass, {"journal", "citation"}) and utilities.is_set (Periodical) then
text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
else
text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );
-- text = safe_join( {Chapter, Place, tcommon, Date, idcommon}, sepc );
end
end
if utilities.is_set (PostScript) and PostScript ~= sepc then
text = safe_join( {text, sepc}, sepc ); -- Deals with italics, spaces, etc.
if '.' == sepc then -- remove final seperator if present
text = text:gsub ('%' .. sepc .. '$', ''); -- dot must be escaped here
else
text = mw.ustring.gsub (text, sepc .. '$', ''); -- using ustring for non-dot sepc (likely a non-Latin character)
end
end
text = safe_join( {text, PostScript}, sepc );
-- Now enclose the whole thing in a <cite> element
local options_t = {};
options_t.class = cite_class_attribute_make (config.CitationClass, Mode);
local Ref = is_valid_parameter_value (A['Ref'], A:ORIGIN('Ref'), cfg.keywords_lists['ref'], nil, true); -- nil when |ref=harv; A['Ref'] else
--#Added Block auto add CITEREF
if Ref and mw.ustring.sub(Ref,1,7) ~= 'CITEREF' then
Ref = 'CITEREF' .. Ref
end
if 'none' ~= cfg.keywords_xlate[(Ref and Ref:lower()) or ''] then
local namelist_t = {}; -- holds selected contributor, author, editor name list
local year = first_set ({Year, anchor_year}, 2); -- Year first for legacy citations and for YMD dates that require disambiguation
if #c > 0 then -- if there is a contributor list
namelist_t = c; -- select it
elseif #a > 0 then -- or an author list
namelist_t = a;
elseif #e > 0 then -- or an editor list
namelist_t = e;
end
local citeref_id;
if #namelist_t > 0 then -- if there are names in namelist_t
citeref_id = make_citeref_id (namelist_t, year); -- go make the CITEREF anchor
if mw.uri.anchorEncode (citeref_id) == ((Ref and mw.uri.anchorEncode (Ref)) or '') then -- Ref may already be encoded (by {{sfnref}}) so citeref_id must be encoded before comparison
utilities.set_message ('maint_ref_duplicates_default');
end
else
citeref_id = ''; -- unset
end
options_t.id = Ref or citeref_id;
end
if string.len (text:gsub('%b<>', '')) <= 2 then -- remove html and html-like tags; then get length of what remains;
z.error_cats_t = {}; -- blank the categories list
z.error_msgs_t = {}; -- blank the error messages list
OCinSoutput = nil; -- blank the metadata string
text = ''; -- blank the the citation
utilities.set_message ('err_empty_citation'); -- set empty citation message and category
end
local render_t = {}; -- here we collect the final bits for concatenation into the rendered citation
if is_preview_mode and (0 ~= #z.error_msgs_t or 0 ~= #z.maint_cats_t) then -- when in preview mode
if not utilities.is_set (options_t.id) then -- and when this template has not created an anchor ID
math.randomseed (tonumber (mw.getLanguage ('en'):formatDate ('U')) * 10000 + os.clock() * 10000);
options_t.id = 'CITEREF_temp_preview_id_' .. math.random (100000, 999999); -- create temporary anchor ID for preview mode
end
end
if utilities.is_set (options_t.id) then -- here we wrap the rendered citation in <cite ...>...</cite> tags
options_t.id = mw.uri.anchorEncode(options_t.id); -- do this here; also used when adding preview warning messages
table.insert (render_t, utilities.substitute (cfg.presentation['cite-id'], {options_t.id, mw.text.nowiki(options_t.class), text})); -- when |ref= is set or when there is a namelist
else
table.insert (render_t, utilities.substitute (cfg.presentation['cite'], {mw.text.nowiki(options_t.class), text})); -- when |ref=none or when namelist_t empty and |ref= is missing or is empty
end
if OCinSoutput then -- blanked when citation is 'empty' so don't bother to add boilerplate metadata span
table.insert (render_t, utilities.substitute (cfg.presentation['ocins'], OCinSoutput)); -- format and append metadata to the citation
end
local template_name = cfg.citation_class_map_t[config.CitationClass];
local template_link = '[[قالب:' .. template_name .. '|' .. template_name .. ']]';
local msg_prefix = '<code class="cs1-code">{{' .. template_link .. '}}</code>: ';
if 0 ~= #z.error_msgs_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_e, {template_link, options_t.id}));
table.insert (render_t, ' '); -- insert a space between citation and its error messages
table.sort (z.error_msgs_t); -- sort the error messages list; sorting includes wrapping <span> and <code> tags; hidden-error sorts ahead of visible-error
local hidden = true; -- presume that the only error messages emited by this template are hidden
for _, v in ipairs (z.error_msgs_t) do -- spin through the list of error messages
if v:find ('cs1-visible-error', 1, true) then -- look for the visible error class name
hidden = false; -- found one; so don't hide the error message prefix
break; -- and done because no need to look further
end
end
z.error_msgs_t[1] = table.concat ({utilities.error_comment (msg_prefix, hidden), z.error_msgs_t[1]}); -- add error message prefix to first error message to prevent extraneous punctuation
--#Modified
table.insert (render_t, utilities.make_sep_error_list(#z.error_msgs_t, z.error_msgs_t)); -- make a big string of error messages and add it to the rendering
end
if 0 ~= #z.maint_cats_t then
mw.addWarning (utilities.substitute (cfg.messages.warning_msg_m, {template_link, options_t.id}));
table.sort (z.maint_cats_t); -- sort the maintenance messages list
local maint_msgs_t = {}; -- here we collect all of the maint messages
if 0 == #z.error_msgs_t then -- if no error messages
table.insert (maint_msgs_t, msg_prefix); -- insert message prefix in maint message livery
end
for _, v in ipairs( z.maint_cats_t ) do -- append maintenance categories
table.insert (maint_msgs_t, -- assemble new maint message and add it to the maint_msgs_t table
table.concat ({v, ' (', utilities.substitute (cfg.messages[':cat wikilink'], v), ')'})
);
end
table.insert (render_t, utilities.substitute (cfg.presentation['hidden-maint'], table.concat (maint_msgs_t, ' '))); -- wrap the group of maint messages with proper presentation and save
end
if not no_tracking_cats then
local sort_key;
local cat_wikilink = 'cat wikilink';
if cfg.enable_sort_keys then -- when namespace sort keys enabled
local namespace_number = mw.title.getCurrentTitle().namespace; -- get namespace number for this wikitext
sort_key = (0 ~= namespace_number and (cfg.name_space_sort_keys[namespace_number] or cfg.name_space_sort_keys.other)) or nil; -- get sort key character; nil for mainspace
cat_wikilink = (not sort_key and 'cat wikilink') or 'cat wikilink sk'; -- make <cfg.messages> key
end
for _, v in ipairs (z.error_cats_t) do -- append error categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
if cfg.id_limits_data_load_fail then -- boolean true when load failed
utilities.set_message ('maint_id_limit_load_fail'); -- done here because this maint cat emits no message
end
for _, v in ipairs (z.maint_cats_t) do -- append maintenance categories
table.insert (render_t, utilities.substitute (cfg.messages[cat_wikilink], {v, sort_key}));
end
for _, v in ipairs (z.prop_cats_t) do -- append properties categories
table.insert (render_t, utilities.substitute (cfg.messages['cat wikilink'], v)); -- no sort keys
end
end
return table.concat (render_t); -- make a big string and done
end
--[[--------------------------< V A L I D A T E >--------------------------------------------------------------
Looks for a parameter's name in one of several whitelists.
Parameters in the whitelist can have three values:
true - active, supported parameters
false - deprecated, supported parameters
nil - unsupported parameters
]]
local function validate (name, cite_class, empty)
local name = tostring (name);
local enum_name; -- parameter name with enumerator (if any) replaced with '#'
local state;
local function state_test (state, name) -- local function to do testing of state values
if true == state then return true; end -- valid actively supported parameter
if false == state then
if empty then return nil; end -- empty deprecated parameters are treated as unknowns
deprecated_parameter (name); -- parameter is deprecated but still supported
return true;
end
if 'tracked' == state then
local base_name = name:gsub ('%d', ''); -- strip enumerators from parameter names that have them to get the base name
utilities.add_prop_cat ('tracked-param', {base_name}, base_name); -- add a properties category; <base_name> modifies <key>
return true;
end
return nil;
end
if name:find ('#') then -- # is a cs1|2 reserved character so parameters with # not permitted
return nil;
end
-- replace enumerator digit(s) with # (|last25= becomes |last#=) (mw.ustring because non-Western 'local' digits)
enum_name = mw.ustring.gsub (name, '%d+$', '#'); -- where enumerator is last charaters in parameter name (these to protect |s2cid=)
enum_name = mw.ustring.gsub (enum_name, '%d+([%-l])', '#%1'); -- where enumerator is in the middle of the parameter name; |author#link= is the oddity
if 'document' == cite_class then -- special case for {{cite document}}
state = whitelist.document_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false;
end
if utilities.in_array (cite_class, whitelist.preprint_template_list_t) then -- limited parameter sets allowed for these templates
state = whitelist.limited_parameters_t[enum_name]; -- this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
state = whitelist.preprint_arguments_t[cite_class][name]; -- look in the parameter-list for the template identified by cite_class
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end -- end limited parameter-set templates
if utilities.in_array (cite_class, whitelist.unique_param_template_list_t) then -- template-specific parameters for templates that accept parameters from the basic argument list
state = whitelist.unique_arguments_t[cite_class][name]; -- look in the template-specific parameter-lists for the template identified by cite_class
if true == state_test (state, name) then return true; end
end -- if here, fall into general validation
state = whitelist.common_parameters_t[enum_name]; -- all other templates; all normal parameters allowed; this list holds enumerated and nonenumerated parameters
if true == state_test (state, name) then return true; end
return false; -- not supported because not found or name is set to nil
end
--[=[-------------------------< I N T E R _ W I K I _ C H E C K >----------------------------------------------
check <value> for inter-language interwiki-link markup. <prefix> must be a MediaWiki-recognized language
code. when these values have the form (without leading colon):
[[<prefix>:link|label]] return label as plain-text
[[<prefix>:link]] return <prefix>:link as plain-text
return value as is else
]=]
local function inter_wiki_check (parameter, value)
local prefix = value:match ('%[%[(%a+):'); -- get an interwiki prefix if one exists
local _;
if prefix and cfg.inter_wiki_map[prefix:lower()] then -- if prefix is in the map, needs preceding colon so
utilities.set_message ('err_bad_paramlink', parameter); -- emit an error message
_, value, _ = utilities.is_wikilink (value); -- extract label portion from wikilink
end
return value;
end
--[[--------------------------< M I S S I N G _ P I P E _ C H E C K >------------------------------------------
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal
sign, compare the alphanumeric string to the list of cs1|2 parameters. If found, then the string is possibly a
parameter that is missing its pipe. There are two tests made:
{{cite ... |title=Title access-date=2016-03-17}} -- the first parameter has a value and whitespace separates that value from the missing pipe parameter name
{{cite ... |title=access-date=2016-03-17}} -- the first parameter has no value (whitespace after the first = is trimmed by MediaWiki)
cs1|2 shares some parameter names with XML/HTML attributes: class=, title=, etc. To prevent false positives XML/HTML
tags are removed before the search.
If a missing pipe is detected, this function adds the missing pipe maintenance category.
]]
local function missing_pipe_check (parameter, value)
local capture;
value = value:gsub ('%b<>', ''); -- remove XML/HTML tags because attributes: class=, title=, etc.
capture = value:match ('%s+(%a[%w%-]+)%s*=') or value:match ('^(%a[%w%-]+)%s*='); -- find and categorize parameters with possible missing pipes
if capture and validate (capture) then -- if the capture is a valid parameter name
utilities.set_message ('err_missing_pipe', parameter);
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ P U N C T >--------------------------------------
look for extraneous terminal punctuation in most parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_punc (param, value)
if 'number' == type (param) then
return;
end
param = param:gsub ('%d+', '#'); -- enumerated name-list mask params allow terminal punct; normalize
if cfg.punct_skip[param] then
return; -- parameter name found in the skip table so done
end
if value:match ('[,;:]$') then
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
if value:match ('^=') then -- sometimes an extraneous '=' character appears ...
utilities.set_message ('maint_extra_punct'); -- has extraneous punctuation; add maint cat
end
end
--[[--------------------------< H A S _ T W L _ U R L >--------------------------------------------------------
look for The Wikipedia Library urls in url-holding parameters. TWL urls are accessible only for readers who are
active extended confirmed Wikipedia editors. This function sets an error message when such urls are discovered
and when appropriate, sets the |<param>-url-access=subscription. returns nothing.
looks for: '.wikipedialibrary.idm.oclc.org'
]]
local function has_twl_url (url_params_t, cite_args_t)
local url_error_t = {}; -- sequence of url-holding parameters that have a TWL url
for param, value in pairs (url_params_t) do
if value:find ('%.wikipedialibrary%.idm%.oclc%.org') then -- has the TWL base url?
table.insert (url_error_t, param); -- add parameter name to the error list
end
end
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t); -- sor for error messaging
for i, param in ipairs (url_error_t) do
if cfg.url_access_map_t[param] then -- if <param> has a matching -access parameter
cite_args_t[cfg.url_access_map_t[param]] = cfg.keywords_xlate.subscription; -- set |<param>-url-access=subscription
end
url_error_t[i] = utilities.wrap_style ('parameter', param); -- make the parameter pretty for error message
end
utilities.set_message ('err_param_has_twl_url', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< H A S _ E X T R A N E O U S _ U R L >------------------------------------------
look for extraneous url parameter values; parameters listed in skip table are not checked
]]
local function has_extraneous_url (non_url_param_t)
local url_error_t = {};
check_for_url (non_url_param_t, url_error_t); -- extraneous url check
if 0 ~= #url_error_t then -- non-zero when there are errors
table.sort (url_error_t);
utilities.set_message ('err_param_has_ext_link', {utilities.make_sep_list (#url_error_t, url_error_t)}); -- add this error message
end
end
--[[--------------------------< _ C I T A T I O N >------------------------------------------------------------
Module entry point
frame – from template call (citation()); may be nil when called from another module
args_t – table of all cs1|2 parameters in the template (the parent frame)
config_t – table of template-supplied parameter (the #invoke frame)
]]
local function _citation (frame, args_t, config_t) -- save a copy in case we need to display an error message in preview mode
if not frame then
frame = mw.getCurrentFrame(); -- if called from another module, get a frame for frame-provided functions
end
-- i18n: set the name that your wiki uses to identify sandbox subpages from sandbox template invoke (or can be set here)
--#Modified line
local sandbox = ((config_t.SandboxPath and '' ~= config_t.SandboxPath) and config_t.SandboxPath) or '/ملعب'; -- sandbox path from {{#invoke:Citation/CS1/sandbox|citation|SandboxPath=/...}}
is_sandbox = nil ~= string.find (frame:getTitle(), sandbox, 1, true); -- is this invoke the sandbox module?
sandbox = is_sandbox and sandbox or ''; -- use i18n sandbox to load sandbox modules when this module is the sandox; live modules else
--#Added for ltr
local tmp_cfg;
tmp_cfg = mw.loadData ('Module:Citation/CS1/Configuration' .. sandbox); -- load sandbox versions of support modules when {{#invoke:Citation/CS1/sandbox|...}}; live modules else
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist' .. sandbox);
utilities = require ('Module:Citation/CS1/Utilities' .. sandbox);
validation = require ('Module:Citation/CS1/Date_validation' .. sandbox);
identifiers = require ('Module:Citation/CS1/Identifiers' .. sandbox);
metadata = require ('Module:Citation/CS1/COinS' .. sandbox);
--#Added block for ltr
for k,v in pairs(tmp_cfg) do
cfg[k] = v
end
utilities.set_selected_modules (cfg); -- so that functions in Utilities can see the selected cfg tables
identifiers.set_selected_modules (cfg, utilities); -- so that functions in Identifiers can see the selected cfg tables and selected Utilities module
validation.set_selected_modules (cfg, utilities); -- so that functions in Date validataion can see selected cfg tables and the selected Utilities module
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module
z = utilities.z; -- table of error and category tables in Module:Citation/CS1/Utilities
local cite_args_t = {}; -- because args_t is the parent (template) frame args (which cannot be modified); params and their values will be placed here
is_preview_mode = not utilities.is_set (frame:preprocess ('{{REVISIONID}}'));
local suggestions = {}; -- table where we store suggestions if we need to loadData them
local error_text; -- used as a flag
--#Added block for filtering some parameters
if args_t['wikidatacite'] == '1' then
wikidatacite = true
args_t['wikidatacite'] = nil
end
---------------------
--#Added block for ltr
local ch_lang = args_t['اللغة'] or args_t['لغة'] or args_t['language'] or args_t['lang']
--# Added by Mr. Ibrahem to stop ltr formatting
local no_ltr = args_t['noltr']
if ch_lang and ch_lang ~= '' and no_ltr == nil then
local isltr = true
local rtl_lang = {
'ar', 'العربية', 'arabic',
'fa', 'الفارسية', 'persian',
'ur', 'urdu', 'الأردية',
'ku', 'kurdish', 'الكردية',
'he', 'hebrew',
'arc', 'aramaic',
'dv', 'divehi',
'ha', 'hausa',
'khw', 'khowar',
'ks', 'kashmiri',
'ps', 'pashto',
'yi', 'yiddish',
'ota', -- تركية عثمانية
}
local ch_langs = mw.text.split(ch_lang, '[,، ]')
for k, v in pairs(ch_langs) do
for k2, v2 in pairs(rtl_lang) do
if (mw.ustring.lower(v) == v2) then
isltr = false
break
end
end
if (not isltr) then break end
end
if isltr then
local cfg2
cfg2 = mw.loadData('Module:Citation/CS1/Configuration ltr' .. sandbox);
for k, v in pairs(cfg2) do
cfg[k] = v
end
end
end
----------------------
local capture; -- the single supported capture when matching unknown parameters using patterns
local empty_unknowns = {}; -- sequence table to hold empty unknown params for error message listing
for k, v in pairs (args_t) do -- get parameters from the parent (template) frame
v = mw.ustring.gsub (v, '^%s*(.-)%s*$', '%1'); -- trim leading/trailing whitespace; when v is only whitespace, becomes empty string
if v ~= '' then
if cfg.enum_needs_xlation and 'string' == type (k) then -- for wikis that set date_names['local_digits'] to non-western digits
k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- translate 'local' digits enumerators to Western 0-9
end
if not validate( k, config_t.CitationClass ) then
if type (k) ~= 'string' then -- exclude empty numbered parameters
if v:match("%S+") ~= nil then
error_text = utilities.set_message ('err_text_ignored', {v});
end
elseif validate (k:lower(), config_t.CitationClass) then
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, k:lower()}); -- suggest the lowercase version of the parameter
else
if nil == suggestions.suggestions then -- if this table is nil then we need to load it
suggestions = mw.loadData ('Module:Citation/CS1/Suggestions' .. sandbox); --load sandbox version of suggestion module when {{#invoke:Citation/CS1/sandbox|...}}; live module else
end
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter
capture = k:match (pattern); -- the whole match if no capture in pattern else the capture if a match
if capture then -- if the pattern matches
param = utilities.substitute (param, capture); -- add the capture to the suggested parameter (typically the enumerator)
if validate (param, config_t.CitationClass) then -- validate the suggestion to make sure that the suggestion is supported by this template (necessary for limited parameter lists)
error_text = utilities.set_message ('err_parameter_ignored_suggest', {k, param}); -- set the suggestion error message
else
error_text = utilities.set_message ('err_parameter_ignored', {k}); -- suggested param not supported by this template
v = ''; -- unset
end
end
end
if not utilities.is_set (error_text) then -- couldn't match with a pattern, is there an explicit suggestion?
if (suggestions.suggestions[ k:lower() ] ~= nil) and validate (suggestions.suggestions[ k:lower() ], config_t.CitationClass) then
utilities.set_message ('err_parameter_ignored_suggest', {k, suggestions.suggestions[ k:lower() ]});
else
utilities.set_message ('err_parameter_ignored', {k});
v = ''; -- unset value assigned to unrecognized parameters (this for the limited parameter lists)
end
end
end
end
cite_args_t[k] = v; -- save this parameter and its value
elseif not utilities.is_set (v) then -- for empty parameters
if not validate (k, config_t.CitationClass, true) then -- is this empty parameter a valid parameter
k = ('' == k) and cfg.err_msg_supl.empty_str or k; -- when k is empty string (or was space(s) trimmed to empty string), replace with descriptive text
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
end
end
end
if 0 ~= #empty_unknowns then -- create empty unknown error message
utilities.set_message ('err_param_unknown_empty', {
1 == #empty_unknowns and '' or 's',
utilities.make_sep_list (#empty_unknowns, empty_unknowns)
});
end
local non_url_param_t = {}; -- table of parameters and values that are not url-holding parameters
local url_param_t = {}; -- table of url-holding paramters and their values
for k, v in pairs (cite_args_t) do
if 'string' == type (k) then -- don't evaluate positional parameters
has_invisible_chars (k, v); -- look for invisible characters
end
has_extraneous_punc (k, v); -- look for extraneous terminal punctuation in parameter values
missing_pipe_check (k, v); -- do we think that there is a parameter that is missing a pipe?
cite_args_t[k] = inter_wiki_check (k, v); -- when language interwiki-linked parameter missing leading colon replace with wiki-link label
if 'string' == type (k) then -- when parameter k is not positional
if not cfg.url_skip[k] then -- and not in url skip table
non_url_param_t[k] = v; -- make a parameter/value list for extraneous url check
else -- and is in url skip table (a url-holding parameter)
url_param_t[k] = v; -- make a parameter/value list to check for values that are The Wikipedia Library url
end
end
end
if cfg.suppress_archive_today_urls then
has_archive_today_url (cite_args_t); -- look for and suppress archive.today urls and dependent parameters for all templates
end
has_extraneous_url (non_url_param_t); -- look for url in parameter values where a url does not belong
has_twl_url (url_param_t, cite_args_t); -- look for url-holding parameters that hold a The Wikipedia Library url
return table.concat ({
frame:extensionTag ('templatestyles', '', {src='Module:Citation/CS1' .. sandbox .. '/styles.css'}),
citation0 (config_t, cite_args_t)
});
end
--[[--------------------------< C I T A T I O N >--------------------------------------------------------------
Template entry point
]]
local function citation (frame)
local config_t = {}; -- table to store parameters from the module {{#invoke:}}
local args_t = frame:getParent().args; -- get template's preset parameters
for k, v in pairs (frame.args) do -- get parameters from the {{#invoke}} frame
config_t[k] = v;
-- args_t[k] = v; -- crude debug support that allows us to render a citation from module {{#invoke:}}; skips parameter validation; TODO: keep?
end
return _citation (frame, args_t, config_t)
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
citation = citation, -- template entry point
_citation = _citation, -- module entry point
}
9p0251m5n4ty49ymeozozlcx9pzy0bm
وحدة:Citation/CS1/ملعب/styles.css
828
63203
275431
2026-09-15T08:59:09Z
حبيشان
29714
استيراد من ar.wiktionary.org
275431
sanitized-css
text/css
/* Overrides
Some wikis do not override user agent default styles for HTML <cite> and <q>,
unlike en.wp. On en.wp, keep these the same as [[MediaWiki:Common.css]].
The word-wrap and :target styles were moved here from Common.css.
On en.wp, keep these the same as [[قالب:Citation/styles.css]].
*/
cite.citation {
font-style: inherit; /* Remove italics for <cite> */
/* Break long urls, etc., rather than overflowing box */
word-wrap: break-word;
}
.citation q {
quotes: '"' '"' "'" "'"; /* Straight quote marks for <q> */
}
/* Highlight linked elements (such as clicked references) in blue */
.citation:target {
/* ignore the linter - all browsers of interest implement this */
background-color: rgba(0, 127, 255, 0.133);
}
/* ID and URL access
Both core and Common.css have selector .mw-parser-output a[href$=".pdf"].external
for PDF pages. All TemplateStyles pages are hoisted to .mw-parser-output. We need
to have specificity equal to a[href$=".pdf"].external for locks to override PDF icon.
That's essentially 2 classes and 1 element.
the .id-lock-... selectors are for use by non-citation templates like
{{Catalog lookup link}}
bg-size `contain` in Minerva and Timeless is too large, so we set a size for them
and then exclude them later
*/
.id-lock-free.id-lock-free a {
background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg)
left 0.1em center/9px no-repeat;
}
body:not(.skin-timeless):not(.skin-minerva) .id-lock-free a {
background-size: contain;
}
.id-lock-limited.id-lock-limited a,
.id-lock-registration.id-lock-registration a {
background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg)
left 0.1em center/9px no-repeat;
}
body:not(.skin-timeless):not(.skin-minerva) .id-lock-limited a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-registration a {
background-size: contain;
}
.id-lock-subscription.id-lock-subscription a {
background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg)
left 0.1em center/9px no-repeat;
}
body:not(.skin-timeless):not(.skin-minerva) .id-lock-subscription a {
background-size: contain;
}
/* Wikisource
Wikisource icon when |chapter= or |title= is wikilinked to Wikisource
as in cite wikisource
*/
.cs1-ws-icon a {
background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg)
left 0.1em center/12px no-repeat;
}
body:not(.skin-timeless):not(.skin-minerva) .cs1-ws-icon a {
background-size: contain;
}
/* Errors and maintenance */
.cs1-code {
/* <code>...</code> style override: mediawiki's css definition is specified here:
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/
69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199
*/
color: inherit;
background: inherit;
border: none;
padding: inherit;
}
.cs1-hidden-error {
display: none;
color: #d33;
}
.cs1-visible-error {
color: #d33;
}
.cs1-maint {
display: none;
color: #2C882D;
margin-left: 0.3em;
}
/* Small text size
Set small text size in one place. 0.95 (here) * 0.9 (from references list) is
~0.85, which is the lower bound for size for accessibility. Old styling for this
was just 0.85. We could write the rule so that when this template is inside
references/reflist, only then does it multiply by 0.95; else multiply by 0.85 */
.cs1-format {
font-size: 95%;
}
/* kerning */
.cs1-kern-left {
padding-left: 0.2em;
}
.cs1-kern-right {
padding-right: 0.2em;
}
/* selflinks – avoid bold font style when cs1|2 template links to the current page */
.citation .mw-selflink {
font-weight: inherit;
}
@media screen {
html.skin-theme-clientpref-night .cs1-maint {
color: #18911F;
}
/* Remove next rule when [[phab:T360562]] is fixed and adjust above usual colors */
html.skin-theme-clientpref-night .cs1-visible-error,
html.skin-theme-clientpref-night .cs1-hidden-error {
color: #f8a397;
}
}
@media screen and ( prefers-color-scheme: dark) {
/* Remove next rule when [[phab:T360562]] is fixed and adjust above usual colors */
html.skin-theme-clientpref-os .cs1-visible-error,
html.skin-theme-clientpref-os .cs1-hidden-error {
color: #f8a397;
}
html.skin-theme-clientpref-os .cs1-maint {
color: #18911F;
}
}
89lvvpehg2h1suqtr30bvayrt9yudsp
وحدة:Protection banner
828
63204
275432
2026-09-15T09:49:06Z
حبيشان
29714
استيراد من ar.wiktionary.org
275432
Scribunto
text/plain
-- This module implements {{pp-meta}} and its daughter templates such as
-- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}.
-- Initialise necessary modules.
require('strict')
local makeFileLink = require('Module:File link')._main
local effectiveProtectionLevel = require('Module:Effective protection level')._main
local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main
local yesno = require('Module:Yesno')
-- Lazily initialise modules and objects we don't always need.
local getArgs, makeMessageBox, lang
-- Set constants.
local CONFIG_MODULE = 'Module:Protection banner/config'
--------------------------------------------------------------------------------
-- Helper functions
--------------------------------------------------------------------------------
local function makeCategoryLink(cat, sort)
if cat then
return string.format(
'[[%s:%s|%s]]',
mw.site.namespaces[14].name,
cat,
sort
)
end
end
-- Validation function for the expiry and the protection date
local function validateDate(dateString, dateType)
if not lang then
lang = mw.language.getContentLanguage()
end
local success, result = pcall(lang.formatDate, lang, 'U', dateString)
if success then
result = tonumber(result)
if result then
return result
end
end
error(string.format(
'invalid %s: %s',
dateType,
tostring(dateString)
), 4)
end
local function makeFullUrl(page, query, display)
return string.format(
'[%s %s]',
tostring(mw.uri.fullUrl(page, query)),
display
)
end
-- Given a directed graph formatted as node -> table of direct successors,
-- get a table of all nodes reachable from a given node (though always
-- including the given node).
local function getReachableNodes(graph, start)
local toWalk, retval = {[start] = true}, {}
while true do
-- Can't use pairs() since we're adding and removing things as we're iterating
local k = next(toWalk) -- This always gets the "first" key
if k == nil then
return retval
end
toWalk[k] = nil
retval[k] = true
for _,v in ipairs(graph[k]) do
if not retval[v] then
toWalk[v] = true
end
end
end
end
--------------------------------------------------------------------------------
-- Protection class
--------------------------------------------------------------------------------
local Protection = {}
Protection.__index = Protection
Protection.supportedActions = {
edit = true,
move = true,
autoreview = true,
upload = true
}
Protection.bannerConfigFields = {
'text',
'explanation',
'tooltip',
'alt',
'link',
'image'
}
function Protection.new(args, cfg, title)
local obj = {}
obj._cfg = cfg
obj.title = title or mw.title.getCurrentTitle()
-- Set action
if not args.action then
obj.action = 'edit'
elseif Protection.supportedActions[args.action] then
obj.action = args.action
else
error(string.format(
'invalid action: %s',
tostring(args.action)
), 3)
end
-- Set level
obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title)
if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then
-- Users need to be autoconfirmed to move pages anyway, so treat
-- semi-move-protected pages as unprotected.
obj.level = '*'
end
-- Set expiry
local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title)
if effectiveExpiry == 'infinity' then
obj.expiry = 'indef'
elseif effectiveExpiry ~= 'unknown' then
obj.expiry = validateDate(effectiveExpiry, 'expiry date')
end
-- Set reason
if args[1] then
obj.reason = mw.ustring.lower(args[1])
if obj.reason:find('|') then
error('reasons cannot contain the pipe character ("|")', 3)
end
end
-- Set protection date
if args.date then
obj.protectionDate = validateDate(args.date, 'protection date')
end
-- Set banner config
do
obj.bannerConfig = {}
local configTables = {}
if cfg.banners[obj.action] then
configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason]
end
if cfg.defaultBanners[obj.action] then
configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level]
configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default
end
configTables[#configTables + 1] = cfg.masterBanner
for i, field in ipairs(Protection.bannerConfigFields) do
for j, t in ipairs(configTables) do
if t[field] then
obj.bannerConfig[field] = t[field]
break
end
end
end
end
return setmetatable(obj, Protection)
end
function Protection:isProtected()
return self.level ~= '*'
end
function Protection:isTemporary()
return type(self.expiry) == 'number'
end
function Protection:makeProtectionCategory()
local cfg = self._cfg
local title = self.title
-- Exit if the page is not protected.
if not self:isProtected() then
return ''
end
-- Get the expiry key fragment.
local expiryFragment
if self.expiry == 'indef' then
expiryFragment = self.expiry
elseif type(self.expiry) == 'number' then
expiryFragment = 'temp'
end
-- Get the namespace key fragment.
local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace]
if not namespaceFragment and title.namespace % 2 == 1 then
namespaceFragment = 'talk'
end
-- Define the order that key fragments are tested in. This is done with an
-- array of tables containing the value to be tested, along with its
-- position in the cfg.protectionCategories table.
local order = {
{val = expiryFragment, keypos = 1},
{val = namespaceFragment, keypos = 2},
{val = self.reason, keypos = 3},
{val = self.level, keypos = 4},
{val = self.action, keypos = 5}
}
--[[
-- The old protection templates used an ad-hoc protection category system,
-- with some templates prioritising namespaces in their categories, and
-- others prioritising the protection reason. To emulate this in this module
-- we use the config table cfg.reasonsWithNamespacePriority to set the
-- reasons for which namespaces have priority over protection reason.
-- If we are dealing with one of those reasons, move the namespace table to
-- the end of the order table, i.e. give it highest priority. If not, the
-- reason should have highest priority, so move that to the end of the table
-- instead.
--]]
table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3))
--[[
-- Define the attempt order. Inactive subtables (subtables with nil "value"
-- fields) are moved to the end, where they will later be given the key
-- "all". This is to cut down on the number of table lookups in
-- cfg.protectionCategories, which grows exponentially with the number of
-- non-nil keys. We keep track of the number of active subtables with the
-- noActive parameter.
--]]
local noActive, attemptOrder
do
local active, inactive = {}, {}
for i, t in ipairs(order) do
if t.val then
active[#active + 1] = t
else
inactive[#inactive + 1] = t
end
end
noActive = #active
attemptOrder = active
for i, t in ipairs(inactive) do
attemptOrder[#attemptOrder + 1] = t
end
end
--[[
-- Check increasingly generic key combinations until we find a match. If a
-- specific category exists for the combination of key fragments we are
-- given, that match will be found first. If not, we keep trying different
-- key fragment combinations until we match using the key
-- "all-all-all-all-all".
--
-- To generate the keys, we index the key subtables using a binary matrix
-- with indexes i and j. j is only calculated up to the number of active
-- subtables. For example, if there were three active subtables, the matrix
-- would look like this, with 0 corresponding to the key fragment "all", and
-- 1 corresponding to other key fragments.
--
-- j 1 2 3
-- i
-- 1 1 1 1
-- 2 0 1 1
-- 3 1 0 1
-- 4 0 0 1
-- 5 1 1 0
-- 6 0 1 0
-- 7 1 0 0
-- 8 0 0 0
--
-- Values of j higher than the number of active subtables are set
-- to the string "all".
--
-- A key for cfg.protectionCategories is constructed for each value of i.
-- The position of the value in the key is determined by the keypos field in
-- each subtable.
--]]
local cats = cfg.protectionCategories
for i = 1, 2^noActive do
local key = {}
for j, t in ipairs(attemptOrder) do
if j > noActive then
key[t.keypos] = 'all'
else
local quotient = i / 2 ^ (j - 1)
quotient = math.ceil(quotient)
if quotient % 2 == 1 then
key[t.keypos] = t.val
else
key[t.keypos] = 'all'
end
end
end
key = table.concat(key, '|')
local attempt = cats[key]
if attempt then
return makeCategoryLink(attempt, title.text)
end
end
return ''
end
function Protection:isIncorrect()
local expiry = self.expiry
return not self:isProtected()
or type(expiry) == 'number' and expiry < os.time()
end
function Protection:isTemplateProtectedNonTemplate()
local action, namespace = self.action, self.title.namespace
return self.level == 'templateeditor'
and (
(action ~= 'edit' and action ~= 'move')
or (namespace ~= 10 and namespace ~= 828)
)
end
function Protection:makeCategoryLinks()
local msg = self._cfg.msg
local ret = { self:makeProtectionCategory() }
if self:isIncorrect() then
ret[#ret + 1] = makeCategoryLink(
msg['tracking-category-incorrect'],
self.title.text
)
end
if self:isTemplateProtectedNonTemplate() then
ret[#ret + 1] = makeCategoryLink(
msg['tracking-category-template'],
self.title.text
)
end
return table.concat(ret)
end
--------------------------------------------------------------------------------
-- Blurb class
--------------------------------------------------------------------------------
local Blurb = {}
Blurb.__index = Blurb
Blurb.bannerTextFields = {
text = true,
explanation = true,
tooltip = true,
alt = true,
link = true
}
function Blurb.new(protectionObj, args, cfg)
return setmetatable({
_cfg = cfg,
_protectionObj = protectionObj,
_args = args
}, Blurb)
end
-- Private methods --
function Blurb:_formatDate(num)
-- Formats a Unix timestamp into dd Month, YYYY format.
lang = lang or mw.language.getContentLanguage()
local success, date = pcall(
lang.formatDate,
lang,
self._cfg.msg['expiry-date-format'] or 'j F Y',
'@' .. tostring(num)
)
if success then
return date
end
end
function Blurb:_getExpandedMessage(msgKey)
return self:_substituteParameters(self._cfg.msg[msgKey])
end
function Blurb:_substituteParameters(msg)
if not self._params then
local parameterFuncs = {}
--مضافة
local male = (self._protectionObj.title.namespace == 6
or self._protectionObj.title.namespace == 10
or self._protectionObj.title.namespace == 14)
and 2
or 1
parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter
parameterFuncs.EDITREQUEST = self._makeEditRequestParameter
parameterFuncs.EXPIRY = self._makeExpiryParameter
parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter
parameterFuncs.IMAGELINK = self._makeImageLinkParameter
parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter
parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter
parameterFuncs.PAGETYPE = self._makePagetypeParameter
--مضافة
parameterFuncs.THIS = self._makeThisParameter
parameterFuncs.PROTECTED = self._makeProtectedParameter
parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter
parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter
parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter
parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter
parameterFuncs.TALKPAGE = self._makeTalkPageParameter
parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter
parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter
parameterFuncs.VANDAL = self._makeVandalTemplateParameter
self._params = setmetatable({}, {
__index = function (t, k)
local param
if parameterFuncs[k] then
param = parameterFuncs[k](self)
end
param = param or ''
t[k] = param
return param
end
})
end
msg = msg:gsub('${(%u+)}', self._params)
return msg
end
function Blurb:_makeCurrentVersionParameter()
-- A link to the page history or the move log, depending on the kind of
-- protection.
local pagename = self._protectionObj.title.prefixedText
if self._protectionObj.action == 'move' then
-- We need the move log link.
return makeFullUrl(
'Special:Log',
{type = 'move', page = pagename},
self:_getExpandedMessage('current-version-move-display')
)
else
-- We need the history link.
return makeFullUrl(
pagename,
{action = 'history'},
self:_getExpandedMessage('current-version-edit-display')
)
end
end
function Blurb:_makeEditRequestParameter()
local mEditRequest = require('Module:Submit an edit request')
local action = self._protectionObj.action
local level = self._protectionObj.level
-- Get the edit request type.
local requestType
if action == 'edit' then
if level == 'autoconfirmed' then
requestType = 'semi'
elseif level == 'extendedconfirmed' then
requestType = 'extended'
elseif level == 'templateeditor' then
requestType = 'template'
end
end
requestType = requestType or 'full'
-- Get the display value.
local display = self:_getExpandedMessage('edit-request-display')
return mEditRequest._link{type = requestType, display = display}
end
function Blurb:_makeExpiryParameter()
local expiry = self._protectionObj.expiry
if type(expiry) == 'number' then
return self:_formatDate(expiry)
else
return expiry
end
end
function Blurb:_makeExplanationBlurbParameter()
-- Cover special cases first.
if self._protectionObj.title.namespace == 8 then
-- MediaWiki namespace
return self:_getExpandedMessage('explanation-blurb-nounprotect')
end
-- Get explanation blurb table keys
local action = self._protectionObj.action
local level = self._protectionObj.level
local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject'
-- Find the message in the explanation blurb table and substitute any
-- parameters.
local explanations = self._cfg.explanationBlurbs
local msg
if explanations[action][level] and explanations[action][level][talkKey] then
msg = explanations[action][level][talkKey]
elseif explanations[action][level] and explanations[action][level].default then
msg = explanations[action][level].default
elseif explanations[action].default and explanations[action].default[talkKey] then
msg = explanations[action].default[talkKey]
elseif explanations[action].default and explanations[action].default.default then
msg = explanations[action].default.default
else
error(string.format(
'could not find explanation blurb for action "%s", level "%s" and talk key "%s"',
action,
level,
talkKey
), 8)
end
return self:_substituteParameters(msg)
end
function Blurb:_makeImageLinkParameter()
local imageLinks = self._cfg.imageLinks
local action = self._protectionObj.action
local level = self._protectionObj.level
local msg
if imageLinks[action][level] then
msg = imageLinks[action][level]
elseif imageLinks[action].default then
msg = imageLinks[action].default
else
msg = imageLinks.edit.default
end
return self:_substituteParameters(msg)
end
function Blurb:_makeIntroBlurbParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('intro-blurb-expiry')
else
return self:_getExpandedMessage('intro-blurb-noexpiry')
end
end
function Blurb:_makeIntroFragmentParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('intro-fragment-expiry')
else
return self:_getExpandedMessage('intro-fragment-noexpiry')
end
end
function Blurb:_makePagetypeParameter()
local pagetypes = self._cfg.pagetypes
return pagetypes[self._protectionObj.title.namespace]
or pagetypes.default
or error('no default pagetype defined', 8)
end
-- مضافة لأجل تانيث وتذكير اسم الإشارة
function Blurb:_MaleParameter()
return (self._protectionObj.title.namespace == 6
or self._protectionObj.title.namespace == 10
or self._protectionObj.title.namespace == 14)
and 2
or 1
end
function Blurb:_makeThisParameter()
mw.log(self:_MaleParameter())
return self._cfg.this[self:_MaleParameter()]
end
function Blurb:_makeProtectedParameter()
return self._cfg.protected[self:_MaleParameter()]
end
function Blurb:_makeProtectionBlurbParameter()
local protectionBlurbs = self._cfg.protectionBlurbs
local action = self._protectionObj.action
local level = self._protectionObj.level
local msg
if protectionBlurbs[action][level] then
msg = protectionBlurbs[action][level]
elseif protectionBlurbs[action].default then
msg = protectionBlurbs[action].default
elseif protectionBlurbs.edit.default then
msg = protectionBlurbs.edit.default
else
error('no protection blurb defined for protectionBlurbs.edit.default', 8)
end
return self:_substituteParameters(msg)
end
function Blurb:_makeProtectionDateParameter()
local protectionDate = self._protectionObj.protectionDate
if type(protectionDate) == 'number' then
return self:_formatDate(protectionDate)
else
return protectionDate
end
end
function Blurb:_makeProtectionLevelParameter()
local protectionLevels = self._cfg.protectionLevels
local action = self._protectionObj.action
local level = self._protectionObj.level
local msg
if protectionLevels[action][level] then
msg = protectionLevels[action][level]
elseif protectionLevels[action].default then
msg = protectionLevels[action].default
elseif protectionLevels.edit.default then
msg = protectionLevels.edit.default
else
error('no protection level defined for protectionLevels.edit.default', 8)
end
return self:_substituteParameters(msg)
end
function Blurb:_makeProtectionLogParameter()
local pagename = self._protectionObj.title.prefixedText
if self._protectionObj.action == 'autoreview' then
-- We need the pending changes log.
return makeFullUrl(
'Special:Log',
{type = 'stable', page = pagename},
self:_getExpandedMessage('pc-log-display')
)
else
-- We need the protection log.
return makeFullUrl(
'Special:Log',
{type = 'protect', page = pagename},
self:_getExpandedMessage('protection-log-display')
)
end
end
function Blurb:_makeTalkPageParameter()
return string.format(
'[[%s:%s#%s|%s]]',
mw.site.namespaces[self._protectionObj.title.namespace].talk.name,
self._protectionObj.title.text,
self._args.section or 'top',
self:_getExpandedMessage('talk-page-link-display')
)
end
function Blurb:_makeTooltipBlurbParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('tooltip-blurb-expiry')
else
return self:_getExpandedMessage('tooltip-blurb-noexpiry')
end
end
function Blurb:_makeTooltipFragmentParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('tooltip-fragment-expiry')
else
return self:_getExpandedMessage('tooltip-fragment-noexpiry')
end
end
function Blurb:_makeVandalTemplateParameter()
return require('Module:Vandal-m')._main{
self._args.user or self._protectionObj.title.baseText
}
end
-- Public methods --
function Blurb:makeBannerText(key)
-- Validate input.
if not key or not Blurb.bannerTextFields[key] then
error(string.format(
'"%s" is not a valid banner config field',
tostring(key)
), 2)
end
-- Generate the text.
local msg = self._protectionObj.bannerConfig[key]
if type(msg) == 'string' then
return self:_substituteParameters(msg)
elseif type(msg) == 'function' then
msg = msg(self._protectionObj, self._args)
if type(msg) ~= 'string' then
error(string.format(
'bad output from banner config function with key "%s"'
.. ' (expected string, got %s)',
tostring(key),
type(msg)
), 4)
end
return self:_substituteParameters(msg)
end
end
--------------------------------------------------------------------------------
-- BannerTemplate class
--------------------------------------------------------------------------------
local BannerTemplate = {}
BannerTemplate.__index = BannerTemplate
function BannerTemplate.new(protectionObj, cfg)
local obj = {}
obj._cfg = cfg
-- Set the image filename.
local imageFilename = protectionObj.bannerConfig.image
if imageFilename then
obj._imageFilename = imageFilename
else
-- If an image filename isn't specified explicitly in the banner config,
-- generate it from the protection status and the namespace.
local action = protectionObj.action
local level = protectionObj.level
local namespace = protectionObj.title.namespace
local reason = protectionObj.reason
-- Deal with special cases first.
if (
namespace == 10
or namespace == 828
or reason and obj._cfg.indefImageReasons[reason]
)
and action == 'edit'
and level == 'sysop'
and not protectionObj:isTemporary()
then
-- Fully protected modules and templates get the special red "indef"
-- padlock.
obj._imageFilename = obj._cfg.msg['image-filename-indef']
else
-- Deal with regular protection types.
local images = obj._cfg.images
if images[action] then
if images[action][level] then
obj._imageFilename = images[action][level]
elseif images[action].default then
obj._imageFilename = images[action].default
end
end
end
end
return setmetatable(obj, BannerTemplate)
end
function BannerTemplate:renderImage()
local filename = self._imageFilename
or self._cfg.msg['image-filename-default']
or 'Transparent.gif'
return makeFileLink{
file = filename,
size = (self.imageWidth or 20) .. 'px',
alt = self._imageAlt,
link = self._imageLink,
caption = self.imageCaption
}
end
--------------------------------------------------------------------------------
-- Banner class
--------------------------------------------------------------------------------
local Banner = setmetatable({}, BannerTemplate)
Banner.__index = Banner
function Banner.new(protectionObj, blurbObj, cfg)
local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb.
obj.imageWidth = 40
obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip.
obj._reasonText = blurbObj:makeBannerText('text')
obj._explanationText = blurbObj:makeBannerText('explanation')
obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing.
return setmetatable(obj, Banner)
end
function Banner:__tostring()
-- Renders the banner.
makeMessageBox = makeMessageBox or require('Module:Message box').main
local reasonText = self._reasonText or error('no reason text set', 2)
local explanationText = self._explanationText
local mbargs = {
page = self._page,
type = 'protection',
image = self:renderImage(),
text = string.format(
"'''%s'''%s",
reasonText,
explanationText and '<br />' .. explanationText or ''
)
}
return makeMessageBox('mbox', mbargs)
end
--------------------------------------------------------------------------------
-- Padlock class
--------------------------------------------------------------------------------
local Padlock = setmetatable({}, BannerTemplate)
Padlock.__index = Padlock
function Padlock.new(protectionObj, blurbObj, cfg)
local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb.
obj.imageWidth = 20
obj.imageCaption = blurbObj:makeBannerText('tooltip')
obj._imageAlt = blurbObj:makeBannerText('alt')
obj._imageLink = blurbObj:makeBannerText('link')
obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action]
or cfg.padlockIndicatorNames.default
or 'pp-default'
return setmetatable(obj, Padlock)
end
function Padlock:__tostring()
local frame = mw.getCurrentFrame()
-- The nowiki tag helps prevent whitespace at the top of articles.
return frame:extensionTag{name = 'nowiki'} .. frame:extensionTag{
name = 'indicator',
args = {name = self._indicatorName},
content = self:renderImage()
}
end
--------------------------------------------------------------------------------
-- Exports
--------------------------------------------------------------------------------
local p = {}
function p._exportClasses()
-- This is used for testing purposes.
return {
Protection = Protection,
Blurb = Blurb,
BannerTemplate = BannerTemplate,
Banner = Banner,
Padlock = Padlock,
}
end
function p._main(args, cfg, title)
args = args or {}
cfg = cfg or require(CONFIG_MODULE)
local protectionObj = Protection.new(args, cfg, title)
local ret = {}
-- If a page's edit protection is equally or more restrictive than its
-- protection from some other action, then don't bother displaying anything
-- for the other action (except categories).
if protectionObj.action == 'edit' or
args.demolevel or
not getReachableNodes(
cfg.hierarchy,
protectionObj.level
)[effectiveProtectionLevel('edit', protectionObj.title)]
then
-- Initialise the blurb object
local blurbObj = Blurb.new(protectionObj, args, cfg)
-- Render the banner
if protectionObj:isProtected() then
ret[#ret + 1] = tostring(
(yesno(args.small) and Padlock or Banner)
.new(protectionObj, blurbObj, cfg)
)
end
end
-- Render the categories
if yesno(args.category) ~= false then
ret[#ret + 1] = protectionObj:makeCategoryLinks()
end
return table.concat(ret)
end
function p.main(frame, cfg)
cfg = cfg or require(CONFIG_MODULE)
-- Find default args, if any.
local parent = frame.getParent and frame:getParent()
local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')]
-- Find user args, and use the parent frame if we are being called from a
-- wrapper template.
getArgs = getArgs or require('Module:Arguments').getArgs
local userArgs = getArgs(frame, {
parentOnly = defaultArgs,
frameOnly = not defaultArgs
})
-- Build the args table. User-specified args overwrite default args.
local args = {}
for k, v in pairs(defaultArgs or {}) do
args[k] = v
end
for k, v in pairs(userArgs) do
args[k] = v
end
return p._main(args, cfg)
end
return p
kszbkb8lolwz05sm6epocnobxhx0utk
وحدة:Protection banner/config
828
63205
275433
2026-09-15T09:49:08Z
حبيشان
29714
استيراد من ar.wiktionary.org
275433
Scribunto
text/plain
-- This module provides configuration data for [[وحدة:Protection banner]].
return {
--------------------------------------------------------------------------------
--
-- BANNER DATA
--
--------------------------------------------------------------------------------
--[[
-- Banner data consists of six fields:
-- * text - the main protection text that appears at the top of protection
-- banners.
-- * explanation - the text that appears below the main protection text, used
-- to explain the details of the protection.
-- * tooltip - the tooltip text you see when you move the mouse over a small
-- padlock icon.
-- * link - the page that the small padlock icon links to.
-- * alt - the alt text for the small padlock icon. This is also used as tooltip
-- text for the large protection banners.
-- * image - the padlock image used in both protection banners and small padlock
-- icons.
--
-- The module checks in three separate tables to find a value for each field.
-- First it checks the banners table, which has values specific to the reason
-- for the page being protected. Then the module checks the defaultBanners
-- table, which has values specific to each protection level. Finally, the
-- module checks the masterBanner table, which holds data for protection
-- templates to use if no data has been found in the previous two tables.
--
-- The values in the banner data can take parameters. These are specified
-- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name
-- enclosed in curly braces).
--
-- Available parameters:
--
-- ${CURRENTVERSION} - a link to the page history or the move log, with the
-- display message "current-version-edit-display" or
-- "current-version-move-display".
--
-- ${EDITREQUEST} - a link to create an edit request for the current page.
--
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes
-- on the talk page; you may submit a request to ask an administrator to make
-- an edit if it is minor or supported by consensus."
--
-- ${IMAGELINK} - a link to set the image to, depending on the protection
-- action and protection level.
--
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry
-- is set. E.g. "Editing of this page by new or unregistered users is currently
-- disabled until dd Month YYYY."
--
-- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation
-- so that it can be used in run-on sentences.
--
-- ${PAGETYPE} - the type of the page, e.g. "article" or "template".
-- Defined in the cfg.pagetypes table.
--
-- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g.
-- "Editing of this page by new or unregistered users is currently disabled"
--
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the
-- template.
--
-- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or
-- "semi-protected".
--
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
-- depending on the protection action.
--
-- ${TALKPAGE} - a link to the talk page. If a section is specified, links
-- straight to that talk page section.
--
-- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to
-- create a blurb like "This template is semi-protected", or "This article is
-- move-protected until DD Month YYYY".
--
-- ${VANDAL} - links for the specified username (or the root page name)
-- using Module:Vandal-m.
--
-- Functions
--
-- For advanced users, it is possible to use Lua functions instead of strings
-- in the banner config tables. Using functions gives flexibility that is not
-- possible just by using parameters. Functions take two arguments, the
-- protection object and the template arguments, and they must output a string.
--
-- For example:
--
-- text = function (protectionObj, args)
-- if protectionObj.level == 'autoconfirmed' then
-- return 'foo'
-- else
-- return 'bar'
-- end
-- end
--
-- Some protection object properties and methods that may be useful:
-- protectionObj.action - the protection action
-- protectionObj.level - the protection level
-- protectionObj.reason - the protection reason
-- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set
-- to indefinite, and the protection time in unix time if temporary.
-- protectionObj.protectionDate - the protection date in unix time, or nil if
-- unspecified.
-- protectionObj.bannerConfig - the banner config found by the module. Beware
-- of editing the config field used by the function, as it could create an
-- infinite loop.
-- protectionObj:isProtected - returns a boolean showing whether the page is
-- protected.
-- protectionObj:isTemporary - returns a boolean showing whether the expiry is
-- temporary.
-- protectionObj:isIncorrect - returns a boolean showing whether the protection
-- template is incorrect.
--]]
-- The master banner data, used if no values have been found in banners or
-- defaultBanners.
masterBanner = {
text = '${INTROBLURB}',
explanation = '${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPBLURB}',
link = '${IMAGELINK}',
alt = 'صفحة ${PROTECTIONLEVEL}'
},
-- The default banner data. This holds banner data for different protection
-- levels.
-- *required* - this table needs edit, move, autoreview and upload subtables.
defaultBanners = {
edit = {},
move = {},
autoreview = {
autoconfirmed = {
alt = 'Page protected with pending changes level 1',
tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users',
image = 'Pending-protection-shackle.svg'
},
default = {
alt = 'Page protected with pending changes',
tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users',
image = 'Pending-protection-shackle.svg'
}
},
upload = {}
},
-- The banner data. This holds banner data for different protection reasons.
-- In fact, the reasons specified in this table control which reasons are
-- valid inputs to the first positional parameter.
--
-- There is also a non-standard "description" field that can be used for items
-- in this table. This is a description of the protection reason for use in the
-- module documentation.
--
-- *required* - this table needs edit, move, autoreview and upload subtables.
banners = {
edit = {
blp = {
description = 'For pages protected to promote compliance with the'
.. ' [[Wikipedia:Biographies of living persons'
.. '|biographies of living persons]] policy',
text = '${INTROFRAGMENT} to promote compliance with'
.. ' [[Wikipedia:Biographies of living persons'
.. "|Wikipedia's policy on the biographies"
.. ' of living people]].',
tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on'
.. ' biographies of living persons',
},
dmca = {
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to [[قانون الألفية للملكية الرقمية]] takedown requests',
explanation = function (protectionObj, args)
local ret = 'Pursuant to a rights owner notice under the Digital'
.. ' Millennium Copyright Act (DMCA) regarding some content'
.. ' in this article, the Wikimedia Foundation acted under'
.. ' applicable law and took down and restricted the content'
.. ' in question.'
if args.notice then
ret = ret .. ' A copy of the received notice can be found here: '
.. args.notice .. '.'
end
ret = ret .. ' For more information, including websites discussing'
.. ' how to file a counter-notice, please see'
.. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}."
.. "'''Do not remove this template from the article until the"
.. " restrictions are withdrawn'''."
return ret
end,
image = 'Office-protection-shackle.svg',
},
dispute = {
description = 'For pages protected due to editing disputes',
text = function (protectionObj, args)
-- Find the value of "disputes".
local display = 'disputes'
local disputes
if args.section then
disputes = string.format(
'[[%s:%s#%s|%s]]',
mw.site.namespaces[protectionObj.title.namespace].talk.name,
protectionObj.title.text,
args.section,
display
)
else
disputes = display
end
-- Make the blurb, depending on the expiry.
local msg
if type(protectionObj.expiry) == 'number' then
msg = '${INTROFRAGMENT} or until editing %s have been resolved.'
else
msg = '${INTROFRAGMENT} until editing %s have been resolved.'
end
return string.format(msg, disputes)
end,
explanation = "This protection is '''not''' an endorsement of the"
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes',
},
ecp = {
description = 'For articles in topic areas authorized by'
.. ' [[ويكاموس:مجلس التحكيم]] or'
.. ' meets the criteria for community use',
tooltip = '${THIS} ${PAGETYPE} ${PROTECTIONLEVEL}',
alt = 'Extended-protected ${PAGETYPE}',
},
mainpage = {
description = 'For pages protected for being displayed on the [[الصفحة الرئيسة]]',
text = 'This file is currently'
.. ' [[Wikipedia:This page is protected|protected]] from'
.. ' editing because it is currently or will soon be displayed'
.. ' on the [[الصفحة الرئيسة]].',
explanation = 'Images on the Main Page are protected due to their high'
.. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.'
.. '<br /><span style="font-size:90%;">'
.. "'''Administrators:''' Once this image is definitely off the Main Page,"
.. ' please unprotect this file, or reduce to semi-protection,'
.. ' as appropriate.</span>',
},
office = {
description = 'For pages protected by the Wikimedia Foundation',
text = function (protectionObj, args)
local ret = '${THIS} ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected.'
if protectionObj.protectionDate then
ret = ret .. ' It has been protected since ${PROTECTIONDATE}.'
end
return ret
end,
explanation = "If you can edit this page, please discuss all changes and"
.. " additions on the ${TALKPAGE} first. '''Do not remove protection from this"
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
image = 'Office-protection-shackle.svg',
},
reset = {
description = 'For pages protected by the Wikimedia Foundation and'
.. ' "reset" to a bare-bones version',
text = '${THIS} ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected.',
explanation = function (protectionObj, args)
local ret = ''
if protectionObj.protectionDate then
ret = ret .. 'On ${PROTECTIONDATE} ${THIS} ${PAGETYPE} was'
else
ret = ret .. '${THIS} ${PAGETYPE} has been'
end
ret = ret .. ' reduced to a'
.. ' simplified, "bare bones" version so that it may be completely'
.. ' rewritten to ensure it meets the policies of'
.. ' [[ويكاموس:وجهة النظر المحايدة]] and [[ويكاموس:إمكانية التحقق]].'
.. ' Standard Wikipedia policies will apply to its rewriting—which'
.. ' will eventually be open to all editors—and will be strictly'
.. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while'
.. ' it is being rebuilt.\n\n'
.. 'Any insertion of material directly from'
.. ' pre-protection revisions of the ${PAGETYPE} will be removed, as'
.. ' will any material added to the ${PAGETYPE} that is not properly'
.. ' sourced. The associated talk page(s) were also cleared on the'
.. " same date.\n\n"
.. "If you can edit this page, please discuss all changes and"
.. " additions on the ${TALKPAGE} first. '''Do not override"
.. " this action, and do not remove protection from this page,"
.. " unless you are authorized by the Wikimedia Foundation"
.. " to do so. No editor may remove this notice.'''"
return ret
end,
image = 'Office-protection-shackle.svg',
},
sock = {
description = 'For pages protected due to'
.. ' [[ويكاموس:دمية جورب]]',
text = '${INTROFRAGMENT} to prevent [[ويكاموس:دمية جورب]] of'
.. ' [[ويكاموس:سياسة المنع]] or'
.. ' [[ويكاموس:سياسة الطرد]]'
.. ' from editing it.',
tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from'
.. ' editing it',
},
template = {
description = 'لقوالب ووحدات لوا '
.. ' [[ويكاموس:قوالب حساسة|الحساسة]]',
text = ' ${THIS} ${PAGETYPE} [[وب:سياسة الحماية|${PROTECTED}]] ,'
.. ' لأنه [[ويكاموس:قوالب حساسة|حساس]].',
explanation = 'Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask an'
.. ' [[ويكاموس:إداريون]] or'
.. ' [[Wikipedia:Template editor|template editor]] to make an edit if'
.. ' it is [[مساعدة:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by'
.. ' [[ويكاموس:توافق]]. You can also'
.. ' [[ويكاموس:إخطار الإداريين/حماية]] that the page be'
.. ' unprotected.',
tooltip = '${THIS} ${PAGETYPE} ذو الحساسية العالية ${PROTECTED} مطلقا على مستوى ${PROTECTIONLEVEL}'
.. ' لمنع التخريب',
alt = '${PAGETYPE} ال${PROTECTED} أبدًا',
},
usertalk = {
description = 'For pages protected against disruptive edits by a'
.. ' particular user',
text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,'
.. ' such as abusing the'
.. ' {{[[قالب:رفع المنع]]}} template.',
explanation = 'If you cannot edit this user talk page and you need to'
.. ' make a change or leave a message, you can'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for edits to a protected page'
.. '|request an edit]],'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]],'
.. ' [[Special:Userlogin|log in]],'
.. ' or [[Special:UserLogin/signup|create an account]].',
},
vandalism = {
description = 'For pages protected against'
.. ' [[ويكاموس:تخريب]]',
text = '${INTROFRAGMENT} due to [[ويكاموس:تخريب]].',
explanation = function (protectionObj, args)
local ret = ''
if protectionObj.level == 'sysop' then
ret = ret .. "This protection is '''not''' an endorsement of the"
.. ' ${CURRENTVERSION}. '
end
return ret .. '${EXPLANATIONBLURB}'
end,
tooltip = '${TOOLTIPFRAGMENT} بسبب التخريب',
}
},
move = {
dispute = {
description = 'For pages protected against page moves due to'
.. ' disputes over the page title',
explanation = "This protection is '''not''' an endorsement of the"
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
image = 'Move-protection-shackle-rtl.svg'
},
vandalism = {
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism#Page-move vandalism'
.. ' |page-move vandalism]]'
}
},
autoreview = {},
upload = {}
},
--------------------------------------------------------------------------------
--
-- GENERAL DATA TABLES
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Protection blurbs
--------------------------------------------------------------------------------
-- This table produces the protection blurbs available with the
-- ${PROTECTIONBLURB} parameter. It is sorted by protection action and
-- protection level, and is checked by the module in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. "edit" protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionBlurbs = {
edit = {
default = '${THIS} ${PAGETYPE} is currently [[مساعدة:Protection|'
.. 'protected]] from editing',
autoconfirmed = 'Editing of ${THIS} ${PAGETYPE} by [[Wikipedia:User access'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' users|unregistered]] users is currently [[مساعدة:Protection|disabled]]',
extendedconfirmed = '${THIS} ${PAGETYPE} is ${PROTECTIONLEVEL} as a result of'
.. ' [[ويكاموس:مجلس التحكيم]] enforcement or meets the'
.. ' [[ويكاموس:سياسة الحماية#extended|criteria for community use]]',
},
move = {
default = '${THIS} ${PAGETYPE} [[ويكاموس:سياسة الحماية|${PROTECTED}]] حاليَّا'
.. ' من [[ويكاموس:نقل صفحة|النقل]]'
},
autoreview = {
autoconfirmed = 'All edits made to ${THIS} ${PAGETYPE} by'
.. ' [[ويكاموس:مستويات صلاحيات المستخدم]] or'
.. ' [[ويكاموس:مستويات صلاحيات المستخدم]]'
.. ' users are currently'
.. ' [[ويكاموس:تعديلات معلقة]]',
default = 'كل التعديلات على ${THIS} ${PAGETYPE} من مستخدمين ليسوا'
.. ' [[Wikipedia:Reviewing|مراجعين تلقائيا]] أو'
.. ' [[ويكاموس:إداريون]] معلقة حاليًّا'
.. ' [[ويكاموس:تعديلات معلقة]]'
},
upload = {
default = 'Uploading new versions of ${THIS} ${PAGETYPE} is currently disabled'
}
},
--------------------------------------------------------------------------------
-- Explanation blurbs
--------------------------------------------------------------------------------
-- This table produces the explanation blurbs available with the
-- ${EXPLANATIONBLURB} parameter. It is sorted by protection action,
-- protection level, and whether the page is a talk page or not. If the page is
-- a talk page it will have a talk key of "talk"; otherwise it will have a talk
-- key of "subject". The table is checked in the following order:
-- 1. page's protection action, page's protection level, page's talk key
-- 2. page's protection action, page's protection level, default talk key
-- 3. page's protection action, default protection level, page's talk key
-- 4. page's protection action, default protection level, default talk key
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
explanationBlurbs = {
edit = {
autoconfirmed = {
subject = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details. If you'
.. ' cannot edit ${THIS} ${PAGETYPE} and you wish to make a change, you can'
.. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
default = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details. If you'
.. ' cannot edit ${THIS} ${PAGETYPE} and you wish to make a change, you can'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
},
extendedconfirmed = {
default = 'Extended confirmed protection prevents edits from all unregistered editors'
.. ' and registered users with fewer than 30 days tenure and 500 edits.'
.. ' The [[ويكاموس:سياسة الحماية#extended|policy on community use]]'
.. ' specifies that extended confirmed protection can be applied to combat'
.. ' disruption, if semi-protection has proven to be ineffective.'
.. ' Extended confirmed protection may also be applied to enforce'
.. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].'
.. ' Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask for uncontroversial changes supported by'
.. ' [[ويكاموس:توافق]].'
},
default = {
subject = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' Please discuss any changes on the ${TALKPAGE}; you'
.. ' may ${EDITREQUEST} to ask an'
.. ' [[ويكاموس:إداريون]] to make an edit if it'
.. ' is [[مساعدة:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus'
.. '|consensus]]. You may also [[Wikipedia:Requests for'
.. ' page protection#Current requests for reduction in protection level'
.. '|request]] that this page be unprotected.',
default = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' You may [[Wikipedia:Requests for page'
.. ' protection#Current requests for edits to a protected page|request an'
.. ' edit]] to this page, or [[Wikipedia:Requests for'
.. ' page protection#Current requests for reduction in protection level'
.. '|ask]] for it to be unprotected.'
}
},
move = {
default = {
subject = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves on the'
.. ' ${TALKPAGE} or at [[ويكاموس:طلبات النقل]]. You can also'
.. ' [[ويكاموس:إخطار الإداريين/حماية]] that the page be'
.. ' unprotected.',
default = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves at'
.. ' [[ويكاموس:طلبات النقل]]. You can also'
.. ' [[ويكاموس:إخطار الإداريين/حماية]] that the page be'
.. ' unprotected.'
}
},
autoreview = {
default = {
reviewer = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' Edits to ${THIS} ${PAGETYPE} will not be visible to readers'
.. ' until they are accepted by a reviewer or an administrator.'
.. ' To avoid the need for your edits to be reviewed, you may'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]]. Experienced editors may also'
.. ' request the [[Wikipedia:Reviewing|reviewer user right]].',
default = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' Edits to ${THIS} ${PAGETYPE} by new and unregistered users'
.. ' will not be visible to readers until they are accepted by'
.. ' a reviewer. To avoid the need for your edits to be'
.. ' reviewed, you may'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].'
},
},
upload = {
default = {
default = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but new versions of the file'
.. ' cannot be uploaded until it is unprotected. You can'
.. ' request that a new version be uploaded by using a'
.. ' [[Wikipedia:Edit requests|protected edit request]], or you'
.. ' can [[ويكاموس:إخطار الإداريين/حماية]]'
.. ' that the file be unprotected.'
}
}
},
--------------------------------------------------------------------------------
-- Protection levels
--------------------------------------------------------------------------------
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which
-- produces a short label for different protection levels. It is sorted by
-- protection action and protection level, and is checked in the following
-- order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. "edit" protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionLevels = {
edit = {
default = '${PROTECTED}',
templateeditor = '${PROTECTED} كليًّا (سماح لمحرري القوالب)',
-- غير مستعمل في ويكيبيا العربية
extendedconfirmed = 'extended-protected',
editor = '${PROTECTED} جزئيًّا (سماح للمحررين)',
autoconfirmed = '${PROTECTED} جزئيًّا (سماح للمؤكدين تلقائيا)',
autoreview = '${PROTECTED} جزئيًّا (سماح للمراجعين تلقائيا)',
},
move = {
default = '${PROTECTED} من النقل'
},
autoreview = {
},
upload = {
default = '${PROTECTED} من إعادة التحميل'
}
},
--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------
-- This table lists different padlock images for each protection action and
-- protection level. It is used if an image is not specified in any of the
-- banner data tables, and if the page does not satisfy the conditions for using
-- the ['image-filename-indef'] image. It is checked in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
images = {
edit = {
default = 'Full-protection-shackle-no-text.svg',
templateeditor = 'Template-protection-shackle-brackets-rtl.svg',
extendedconfirmed = 'Extended-protection-shackle.svg',
editor = 'Extended-protection-shackle-no-text.svg',
autoconfirmed = 'Semi-protection-shackle.svg',
autoreview = 'Pending-protection-shackle.svg',
interfaceadmin = 'Interface-protection-shackle-gear.svg'
},
move = {
default = 'Move-protection-shackle-rtl.svg',
},
autoreview = {
autoconfirmed = 'Padlock-silver-light.svg',
default = 'Pending-protection-shackle.svg'
},
upload = {
default = 'Upload-protection-shackle.svg'
}
},
-- Pages with a reason specified in this table will show the special "indef"
-- padlock, defined in the 'image-filename-indef' message, if no expiry is set.
indefImageReasons = {
template = true
},
--------------------------------------------------------------------------------
-- Image links
--------------------------------------------------------------------------------
-- This table provides the data for the ${IMAGELINK} parameter, which gets
-- the image link for small padlock icons based on the page's protection action
-- and protection level. It is checked in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. "edit" protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
imageLinks = {
edit = {
default = 'ويكاموس:سياسة الحماية#مستويات الحماية',
templateeditor = 'ويكاموس:محررو القوالب',
extendedconfirmed = 'ويكاموس:سياسة الحماية#مستويات الحماية',
autoconfirmed = 'ويكاموس:سياسة الحماية#مستويات الحماية'
},
move = {
default = 'ويكاموس:سياسة الحماية#مستويات الحماية'
},
autoreview = {
autoconfirmed = 'ويكاموس:سياسة الحماية#مستويات الحماية',
reviewer = 'ويكاموس:سياسة الحماية#مستويات الحماية'
},
upload = {
default = 'ويكاموس:سياسة الحماية#مستويات الحماية'
}
},
--------------------------------------------------------------------------------
-- Padlock indicator names
--------------------------------------------------------------------------------
-- This table provides the "name" attribute for the <indicator> extension tag
-- with which small padlock icons are generated. All indicator tags on a page
-- are displayed in alphabetical order based on this attribute, and with
-- indicator tags with duplicate names, the last tag on the page wins.
-- The attribute is chosen based on the protection action; table keys must be a
-- protection action name or the string "default".
padlockIndicatorNames = {
autoreview = 'pp-autoreview',
default = 'pp-default'
},
--------------------------------------------------------------------------------
-- Protection categories
--------------------------------------------------------------------------------
--[[
-- The protection categories are stored in the protectionCategories table.
-- Keys to this table are made up of the following strings:
--
-- 1. the expiry date
-- 2. the namespace
-- 3. the protection reason (e.g. "dispute" or "vandalism")
-- 4. the protection level (e.g. "sysop" or "autoconfirmed")
-- 5. the action (e.g. "edit" or "move")
--
-- When the module looks up a category in the table, first it will will check to
-- see a key exists that corresponds to all five parameters. For example, a
-- user page semi-protected from vandalism for two weeks would have the key
-- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module
-- changes the first part of the key to "all" and checks the table again. It
-- keeps checking increasingly generic key combinations until it finds the
-- field, or until it reaches the key "all-all-all-all-all".
--
-- The module uses a binary matrix to determine the order in which to search.
-- This is best demonstrated by a table. In this table, the "0" values
-- represent "all", and the "1" values represent the original data (e.g.
-- "indef" or "file" or "vandalism").
--
-- expiry namespace reason level action
-- order
-- 1 1 1 1 1 1
-- 2 0 1 1 1 1
-- 3 1 0 1 1 1
-- 4 0 0 1 1 1
-- 5 1 1 0 1 1
-- 6 0 1 0 1 1
-- 7 1 0 0 1 1
-- 8 0 0 0 1 1
-- 9 1 1 1 0 1
-- 10 0 1 1 0 1
-- 11 1 0 1 0 1
-- 12 0 0 1 0 1
-- 13 1 1 0 0 1
-- 14 0 1 0 0 1
-- 15 1 0 0 0 1
-- 16 0 0 0 0 1
-- 17 1 1 1 1 0
-- 18 0 1 1 1 0
-- 19 1 0 1 1 0
-- 20 0 0 1 1 0
-- 21 1 1 0 1 0
-- 22 0 1 0 1 0
-- 23 1 0 0 1 0
-- 24 0 0 0 1 0
-- 25 1 1 1 0 0
-- 26 0 1 1 0 0
-- 27 1 0 1 0 0
-- 28 0 0 1 0 0
-- 29 1 1 0 0 0
-- 30 0 1 0 0 0
-- 31 1 0 0 0 0
-- 32 0 0 0 0 0
--
-- In this scheme the action has the highest priority, as it is the last
-- to change, and the expiry has the least priority, as it changes the most.
-- The priorities of the expiry, the protection level and the action are
-- fixed, but the priorities of the reason and the namespace can be swapped
-- through the use of the cfg.bannerDataNamespaceHasPriority table.
--]]
-- If the reason specified to the template is listed in this table,
-- namespace data will take priority over reason data in the protectionCategories
-- table.
reasonsWithNamespacePriority = {
vandalism = true,
},
-- The string to use as a namespace key for the protectionCategories table for each
-- namespace number.
categoryNamespaceKeys = {
[ 2] = 'user',
[ 3] = 'user',
[ 4] = 'project',
[ 6] = 'file',
[ 8] = 'mediawiki',
[ 10] = 'template',
[ 12] = 'project',
[ 14] = 'category',
[100] = 'portal',
[828] = 'module',
},
protectionCategories = {
['all|all|all|all|all'] ='صفحات محمية',
['all|all|office|all|all'] ='Wikipedia Office-protected pages',
['all|all|reset|all|all'] ='Wikipedia Office-protected pages',
['all|all|dmca|all|all'] ='Wikipedia Office-protected pages',
['all|all|mainpage|all|all'] ='Wikipedia fully-protected main page files',
['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages',
['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages',
['all|template|all|all|edit'] ='قوالب محمية',
['all|all|all|autoconfirmed|edit'] ='صفحات محمية على المؤكدين فقط',
['all|all|all|autoreview|edit'] ='صفحات محمية على مراجع تلقائي فقط',
['all|all|all|editor|edit'] ='صفحات محمية على المحررين فقط',
['all|all|all|sysop|edit'] ='صفحات محمية بشكل كامل',
['indef|all|all|autoconfirmed|edit'] ='صفحات محمية جزئيا بصفة دائمة',
['all|all|blp|autoconfirmed|edit'] ='صفحات سير ذاتية لأشخاص على قيد الحياة محمية جزئياً بشكل دائم',
['temp|all|blp|autoconfirmed|edit'] ='صفحات سير ذاتية لأشخاص على قيد الحياة محمية جزئياً بشكل مؤقت',
['all|all|dispute|autoconfirmed|edit'] ='صفحات محمية جزئياً بسبب النزاع',
['all|all|sock|autoconfirmed|edit'] ='صفحات محمية جزئياً من المستخدمون المحظورون',
['all|all|vandalism|autoconfirmed|edit'] ='صفحات محمية جزئياً ضد التخريب',
['all|category|all|autoconfirmed|edit'] ='تصنيفات محمية جزئياً',
['all|file|all|autoconfirmed|edit'] ='ملفات محمية جزئياً',
['all|portal|all|autoconfirmed|edit'] ='بوابات محمية جزئيا',
['all|project|all|autoconfirmed|edit'] ='صفحات مشاريع محمية جزئيا',
['all|talk|all|autoconfirmed|edit'] ='صفحات نقاش محمية جزئيا',
['all|template|all|autoconfirmed|edit'] ='قوالب محمية جزئيا',
['all|template|all|editor|edit'] ='قوالب محمية جزئيا',
['all|template|all|autoreview|edit'] ='قوالب محمية جزئيا',
['all|user|all|autoconfirmed|edit'] ='صفحات مستخدم ونقاش مستخدم محمية جزئيا',
['all|template|all|templateeditor|edit'] ='قوالب محمية',
['all|all|blp|sysop|edit'] ='صفحات سير ذاتية لأشخاص على قيد الحياة محمية بشكل دائم',
['temp|all|blp|sysop|edit'] ='صفحات سير ذاتية لأشخاص على قيد الحياة محمية',
['all|all|dispute|sysop|edit'] ='صفحات محمية بسبب النزاع',
['all|all|sock|sysop|edit'] ='صفحات محمية من المستخدمون المحظورون',
['all|all|vandalism|sysop|edit'] ='صفحات محمية ضد التخريب',
['all|category|all|sysop|edit'] ='تصنيفات محمية كلياً',
['all|file|all|sysop|edit'] ='ملفات محمية كلياً',
['all|project|all|sysop|edit'] ='صفحات مشاريع محمية كلياً',
['all|talk|all|sysop|edit'] ='صفحات نقاش محمية كلياً',
['all|template|all|sysop|edit'] ='قوالب محمية كليا',
['all|user|all|sysop|edit'] ='صفحات مستخدم ونقاش المستخدم محمية',
['all|module|all|all|edit'] ='وحدات محمية كليا',
['all|module|all|templateeditor|edit'] ='وحدات محمية',
['all|module|all|autoconfirmed|edit'] ='وحدات محمية جزئيا',
['all|module|all|editor|edit'] ='وحدات محمية جزئيا',
['all|module|all|autoreview|edit'] ='وحدات محمية جزئيا',
['all|all|all|sysop|move'] ='صفحات محمية من النقل',
['indef|all|all|sysop|move'] ='صفحات محمية من النقل بشكل دائم',
['all|all|dispute|sysop|move'] ='صفحات محمية من النقل بسبب النزاع',
['all|all|vandalism|sysop|move'] ='صفحات محمية من النقل بسبب التخريب',
['all|portal|all|sysop|move'] ='بوابات محمية من النقل',
['all|project|all|sysop|move'] ='صفحات مشاريع محمية من النقل',
['all|talk|all|sysop|move'] ='نقاش صفحات محمية من النقل',
['all|template|all|sysop|move'] ='قوالب محمية من النقل',
['all|user|all|sysop|move'] ='صفحات مستخدم ونقاش المستخدم محمية من النقل',
['all|all|all|autoconfirmed|autoreview'] ='Wikipedia pending changes protected pages (level 1)',
['all|all|all|reviewer|autoreview'] ='Wikipedia pending changes protected pages (level 2)',
['all|file|all|all|upload'] ='ملفات محمية من الرفع',
},
--------------------------------------------------------------------------------
-- Expiry category config
--------------------------------------------------------------------------------
-- This table configures the expiry category behaviour for each protection
-- action.
-- * If set to true, setting that action will always categorise the page if
-- an expiry parameter is not set.
-- * If set to false, setting that action will never categorise the page.
-- * If set to nil, the module will categorise the page if:
-- 1) an expiry parameter is not set, and
-- 2) a reason is provided, and
-- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck
-- table.
expiryCheckActions = {
edit = nil,
move = false,
autoreview = true,
upload = false
},
reasonsWithoutExpiryCheck = {
blp = true,
template = true,
},
--------------------------------------------------------------------------------
-- Pagetypes
--------------------------------------------------------------------------------
-- This table produces the page types available with the ${PAGETYPE} parameter.
-- Keys are namespace numbers, or the string "default" for the default value.
pagetypes = {
[0] = 'المقالة',
[6] = 'الملف',
[10] = 'القالب',
[14] = 'التصنيف',
[828] = 'الوحدة',
default = 'الصفحة'
},
this = {'هذه', 'هذا'},
protected = {'محمية', 'محمي'},
--------------------------------------------------------------------------------
-- Strings marking indefinite protection
--------------------------------------------------------------------------------
-- This table contains values passed to the expiry parameter that mean the page
-- is protected indefinitely.
indefStrings = {
['indef'] = true,
['indefinite'] = true,
['indefinitely'] = true,
['infinite'] = true,
},
--------------------------------------------------------------------------------
-- Group hierarchy
--------------------------------------------------------------------------------
-- This table maps each group to all groups that have a superset of the original
-- group's page editing permissions.
-- معدل ليوافق هرم الصلاحيات في ويكاموس العربي
hierarchy = {
sysop = {},
reviewer = {'sysop'},
filemover = {'sysop'},
templateeditor = {'sysop'}, --غير مستخدم
extendedconfirmed = {'sysop'}, --غير مستخدم
editor = {'reviewer','sysop'}, --غبر مستخدم
autoreview = {'editor'},
autoconfirmed = {'autoreview', 'editor', 'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'},
user = {'autoconfirmed'},
['*'] = {'user'}
},
--------------------------------------------------------------------------------
-- Wrapper templates and their default arguments
--------------------------------------------------------------------------------
-- This table contains wrapper templates used with the module, and their
-- default arguments. Templates specified in this table should contain the
-- following invocation, and no other template content:
--
-- {{#invoke:Protection banner|main}}
--
-- If other content is desired, it can be added between
-- <noinclude>...</noinclude> tags.
--
-- When a user calls one of these wrapper templates, they will use the
-- default arguments automatically. However, users can override any of the
-- arguments.
wrappers = {
['Template:Pp'] = {},
['Template:Pp-extended'] = {'ecp'},
['Template:Pp-blp'] = {'blp'},
-- we don't need Template:Pp-create
['Template:Pp-dispute'] = {'dispute'},
['Template:Pp-main-page'] = {'mainpage'},
['Template:Pp-move'] = {action = 'move', catonly = 'yes'},
['Template:Pp-move-dispute'] = {'dispute', action = 'move', catonly = 'yes'},
-- we don't need Template:Pp-move-indef
['Template:Pp-move-vandalism'] = {'vandalism', action = 'move', catonly = 'yes'},
['Template:Pp-office'] = {'office'},
['Template:Pp-office-dmca'] = {'dmca'},
['Template:Pp-pc'] = {action = 'autoreview', small = true},
['Template:Pp-pc1'] = {action = 'autoreview', small = true},
['Template:Pp-pc2'] = {action = 'autoreview', small = true},
['Template:Pp-reset'] = {'reset'},
['Template:Pp-semi-indef'] = {small = true},
['Template:Pp-sock'] = {'sock'},
['Template:Pp-template'] = {'template', small = true},
['Template:Pp-upload'] = {action = 'upload'},
['Template:Pp-usertalk'] = {'usertalk'},
['Template:Pp-vandalism'] = {'vandalism'},
},
--------------------------------------------------------------------------------
--
-- MESSAGES
--
--------------------------------------------------------------------------------
msg = {
--------------------------------------------------------------------------------
-- Intro blurb and intro fragment
--------------------------------------------------------------------------------
-- These messages specify what is produced by the ${INTROBLURB} and
-- ${INTROFRAGMENT} parameters. If the protection is temporary they use the
-- intro-blurb-expiry or intro-fragment-expiry, and if not they use
-- intro-blurb-noexpiry or intro-fragment-noexpiry.
-- It is possible to use banner parameters in these messages.
['intro-blurb-expiry'] = '${PROTECTIONBLURB} حتى ${EXPIRY}.',
['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.',
['intro-fragment-expiry'] = '${PROTECTIONBLURB} حتى ${EXPIRY},',
['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}',
--------------------------------------------------------------------------------
-- Tooltip blurb
--------------------------------------------------------------------------------
-- These messages specify what is produced by the ${TOOLTIPBLURB} parameter.
-- If the protection is temporary the tooltip-blurb-expiry message is used, and
-- if not the tooltip-blurb-noexpiry message is used.
-- It is possible to use banner parameters in these messages.
['tooltip-blurb-expiry'] = '${THIS} ${PAGETYPE} ${PROTECTIONLEVEL} حتى ${EXPIRY}.',
['tooltip-blurb-noexpiry'] = '${THIS} ${PAGETYPE} ${PROTECTIONLEVEL}.',
['tooltip-fragment-expiry'] = '${THIS} ${PAGETYPE} ${PROTECTIONLEVEL} حتى ${EXPIRY},',
['tooltip-fragment-noexpiry'] = '${THIS} ${PAGETYPE} ${PROTECTIONLEVEL}',
--------------------------------------------------------------------------------
-- Special explanation blurb
--------------------------------------------------------------------------------
-- An explanation blurb for pages that cannot be unprotected, e.g. for pages
-- in the MediaWiki namespace.
-- It is possible to use banner parameters in this message.
['explanation-blurb-nounprotect'] = 'See the [[ويكاموس:سياسة الحماية|'
.. 'سياسة الحماية]] and ${PROTECTIONLOG} for more details.'
.. ' Please discuss any changes on the ${TALKPAGE}; you'
.. ' may ${EDITREQUEST} to ask an'
.. ' [[ويكاموس:إداريون]] to make an edit if it'
.. ' is [[مساعدة:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus'
.. '|consensus]].',
--------------------------------------------------------------------------------
-- Protection log display values
--------------------------------------------------------------------------------
-- These messages determine the display values for the protection log link
-- or the pending changes log link produced by the ${PROTECTIONLOG} parameter.
-- It is possible to use banner parameters in these messages.
['protection-log-display'] = 'protection log',
['pc-log-display'] = 'pending changes log',
--------------------------------------------------------------------------------
-- Current version display values
--------------------------------------------------------------------------------
-- These messages determine the display values for the page history link
-- or the move log link produced by the ${CURRENTVERSION} parameter.
-- It is possible to use banner parameters in these messages.
['current-version-move-display'] = 'current title',
['current-version-edit-display'] = 'current version',
--------------------------------------------------------------------------------
-- Talk page
--------------------------------------------------------------------------------
-- This message determines the display value of the talk page link produced
-- with the ${TALKPAGE} parameter.
-- It is possible to use banner parameters in this message.
['talk-page-link-display'] = 'talk page',
--------------------------------------------------------------------------------
-- Edit requests
--------------------------------------------------------------------------------
-- This message determines the display value of the edit request link produced
-- with the ${EDITREQUEST} parameter.
-- It is possible to use banner parameters in this message.
['edit-request-display'] = 'submit an edit request',
--------------------------------------------------------------------------------
-- Expiry date format
--------------------------------------------------------------------------------
-- This is the format for the blurb expiry date. It should be valid input for
-- the first parameter of the #time parser function.
['expiry-date-format'] = 'F j, Y',
--------------------------------------------------------------------------------
-- Tracking categories
--------------------------------------------------------------------------------
-- These messages determine which tracking categories the module outputs.
['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates',
['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules',
--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------
-- These are images that are not defined by their protection action and protection level.
['image-filename-indef'] = 'Full-protection-shackle-no-text.svg',
['image-filename-default'] = 'Transparent.gif',
--------------------------------------------------------------------------------
-- End messages
--------------------------------------------------------------------------------
}
--------------------------------------------------------------------------------
-- End configuration
--------------------------------------------------------------------------------
}
9rlbj3xnh0lw8qmsalu09j3cdbhggj5
وحدة:Effective protection level
828
63206
275434
2026-09-15T09:49:48Z
حبيشان
29714
استيراد من ar.wiktionary.org
275434
Scribunto
text/plain
local p = {}
-- Returns the permission required to perform a given action on a given title.
-- If no title is specified, the title of the page being displayed is used.
function p._main(action, pagename)
local title
if type(pagename) == 'table' and pagename.prefixedText then
title = pagename
elseif pagename then
title = mw.title.new(pagename)
else
title = mw.title.getCurrentTitle()
end
pagename = title.prefixedText
if action == 'autoreview' then
local level = mw.ext.FlaggedRevs.getStabilitySettings(title)
level = level and level.autoreview
if level == 'review' then
return 'reviewer'
elseif level ~= '' then
return level
else
return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review
end
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then
error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 )
end
if title.namespace == 8 then -- MediaWiki namespace
if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page
return 'interfaceadmin'
else -- any non-JS/CSS MediaWiki page
return 'sysop'
end
elseif title.namespace == 2 and title.isSubpage then
if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page
return 'interfaceadmin'
elseif title.contentModel == 'json' then -- user JSON page
return 'sysop'
end
end
if action == 'undelete' then
return 'sysop'
end
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
if level == 'sysop' or level == 'editprotected' then
return 'sysop'
elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page
return 'sysop'
-- غير مستخدم في ويكيبيا العربية
elseif level == 'templateeditor' then
return 'templateeditor'
elseif action == 'move' then
local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.
if blacklistentry and not blacklistentry.params.autoconfirmed then
return 'templateeditor'
elseif title.namespace == 6 then
return 'filemover'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
end
end
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
if blacklistentry then
if not blacklistentry.params.autoconfirmed then
return 'templateeditor'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
end
elseif level == 'editeditorprotected' or level == 'review' then -- حالة خاصة بويكبيديا العربية
return 'editor'
elseif level == 'editautoreviewprotected' then -- حالة خاصة بويكبيديا العربية
return 'autoreview'
elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason
return 'autoconfirmed'
elseif level then
return level
elseif action == 'upload' then
return 'autoconfirmed'
elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts
return 'user'
else
return '*'
end
end
setmetatable(p, { __index = function(t, k)
return function(frame)
return t._main(k, frame.args[1])
end
end })
return p
m4wd0jeup6avn9wfccr0c4sbsatwq3j
وحدة:Effective protection expiry
828
63207
275435
2026-09-15T09:50:32Z
حبيشان
29714
استيراد من ar.wiktionary.org
275435
Scribunto
text/plain
local p = {}
-- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known.
-- If no title is specified, the title of the page being displayed is used.
function p._main(action, pagename)
local title
if type(pagename) == 'table' and pagename.prefixedText then
title = pagename
elseif pagename then
title = mw.title.new(pagename)
else
title = mw.title.getCurrentTitle()
end
pagename = title.prefixedText
if action == 'autoreview' then
local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title)
return stabilitySettings and stabilitySettings.expiry or 'unknown'
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
end
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename)
if rawExpiry == 'infinity' then
return 'infinity'
elseif rawExpiry == '' then
return 'unknown'
else
local year, month, day, hour, minute, second = rawExpiry:match(
'^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$'
)
if year then
return string.format(
'%s-%s-%sT%s:%s:%s',
year, month, day, hour, minute, second
)
else
error('internal error in Module:Effective protection expiry; malformed expiry timestamp')
end
end
end
setmetatable(p, { __index = function(t, k)
return function(frame)
return t._main(k, frame.args[1])
end
end })
return p
i1wms02y1w048cq6uttka18a5pjzp63
قالب:وحدات CS1
10
63208
275437
2026-09-15T09:56:46Z
حبيشان
29714
استيراد من ar.wiktionary.org
275437
wikitext
text/x-wiki
{| class="wikitable" width="100%"
|+وحدات cs1 {{pipe}} cs2 {{وصلات قالب|وحدات CS1}}
|-
!
! مفعلة
! فرق
!colspan="2"|ملاعب
! en
! الوصف
|-
| rowspan="9"| [[ملف:Extended-protection-shackle-no-text.svg|20x20px|link=|sysop]]
| [[وحدة:Citation/CS1]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1|وحدة:Citation/CS1/ملعب}}
| [[وحدة:Citation/CS1/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1|en]]
| وظائف التقديم والدعم.
|-
| [[وحدة:Citation/CS1/Configuration]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Configuration|وحدة:Citation/CS1/Configuration/ملعب}}
| [[وحدة:Citation/CS1/Configuration/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Configuration/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/Configuration|en]]
| جداول الترجمة، ومعالجات الأخطاء والمعرفات.
|-
| [[وحدة:Citation/CS1/Configuration ltr]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Configuration ltr|وحدة:Citation/CS1/Configuration ltr/ملعب}}
| [[وحدة:Citation/CS1/Configuration ltr/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Configuration_ltr/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
|
| جداول تقديم للغات اليسار إلى اليمين.
|-
| [[وحدة:Citation/CS1/Whitelist]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Whitelist|وحدة:Citation/CS1/Whitelist/ملعب}}
| [[وحدة:Citation/CS1/Whitelist/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Whitelist/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/Whitelist|en]]
| قائمة وسائط cs1{{pipe}}2 المسموح بها.
|-
| [[وحدة:Citation/CS1/Date validation]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Date validation|وحدة:Citation/CS1/Date validation/ملعب}}
| [[وحدة:Citation/CS1/Date validation/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Date_validation/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/Date validation|en]]
| وظائف التحقق من صحة تنسيق التاريخ
|-
| [[وحدة:Citation/CS1/Identifiers]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Identifiers|وحدة:Citation/CS1/Identifiers/ملعب}}
| [[وحدة:Citation/CS1/Identifiers/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Identifiers/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/Identifiers|en]]
| الوظائف التي تدعم أسماء المعرفات مثل (ISBN، وdoi، وPMID، ..الخ)
|-
| [[وحدة:Citation/CS1/Utilities]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Utilities|وحدة:Citation/CS1/Utilities/ملعب}}
| [[وحدة:Citation/CS1/Utilities/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Utilities/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/Utilities|en]]
| الوظائف العامة والجداول
|-
| [[وحدة:Citation/CS1/COinS]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/COinS|وحدة:Citation/CS1/COinS/ملعب}}
| [[وحدة:Citation/CS1/COinS/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/COinS/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/COinS|en]]
| الوظائف التي تصدر بيانات تعريف قوالب cs1 وcs2.
|-
| [[وحدة:Citation/CS1/styles.css]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/styles.css|وحدة:Citation/CS1/ملعب/styles.css}}
| [[وحدة:Citation/CS1/ملعب/styles.css|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/ملعب/styles.css&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/styles.css|en]]
| ملف الأنماط
|-
| [[ملف:Padlock-silver.svg|20x20px|link=|auto confirmed]]
| [[وحدة:Citation/CS1/Suggestions]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/Suggestions|وحدة:Citation/CS1/Suggestions/ملعب}}
| [[وحدة:Citation/CS1/Suggestions/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/Suggestions/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/Suggestions|en]]
| القائمة التي تعين أسماء المعلمات القديمة والخاطئة، إلى أسماء المعلمات الصالحة.
|-
|
| [[وحدة:Citation/CS1/lang]]
| {{وصلة مقارنة الصفحات|وحدة:Citation/CS1/lang|وحدة:Citation/CS1/lang/ملعب}}
| [[وحدة:Citation/CS1/lang/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wiktionary.org/w/index.php?title=وحدة:Citation/CS1/lang/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| [[:en:Module:Citation/CS1/lang|en]]
| وحدة مساعدة في اللغات
|}
*[[وحدة:Citation/CS1/مختبر]] ([[نقاش الوحدة:Citation/CS1/مختبر|اختبار]])
*[[وحدة:Citation/CS1/مختبر1]] ([[نقاش الوحدة:Citation/CS1/مختبر1|اختبار]])
*[[وحدة:Citation/CS1/مختبر/errors]] ([[نقاش الوحدة:Citation/CS1/مختبر/errors|اختبار]])
*[[وحدة:Citation/CS1/مختبر/dates]] ([[نقاش الوحدة:Citation/CS1/مختبر/dates|اختبار]])
*[[وحدة:Citation/CS1/مختبر/identifiers]] ([[نقاش الوحدة:Citation/CS1/مختبر/identifiers|اختبار]])
*[[وحدة:Citation/CS1/مختبر/anchor]] ([[نقاش الوحدة:Citation/CS1/مختبر/anchor|اختبار]])
ly4ezxqikmkna9ff14rpk60yw27hc23
قالب:وصلة مقارنة الصفحات
10
63209
275438
2026-09-15T09:57:19Z
حبيشان
29714
استيراد من ar.wiktionary.org
275438
wikitext
text/x-wiki
<includeonly>{{#لو:{{{1|}}}|{{#لو:{{{2|}}}
|[{{fullurl:خاص:مقارنة_الصفحات|page1={{urlencode:{{{1}}}}}&page2={{urlencode:{{{2}}}}}}} فرق]}}}}</includeonly><noinclude>{{توثيق}}</noinclude>
2ysij2kpvfuxlbjgj3ze6aegzjkqyk7
قالب:!-
10
63210
275439
2026-09-15T10:00:40Z
حبيشان
29714
استيراد من ar.wiktionary.org
275439
wikitext
text/x-wiki
|-<noinclude>
{{توثيق|محتوى=
{{حماية قالب}}}}</noinclude>
1n2ev687ymfybyshdiepqz8no974hpf
قالب:تصانيف تتبع CS1
10
63211
275440
2026-09-15T10:00:57Z
حبيشان
29714
استيراد من ar.wiktionary.org
275440
wikitext
text/x-wiki
{| class="wikitable sortable" width="100%"
|+ تصانيف تتبع قوالب الاستشهاد {{وصلات قالب|تصانيف تتبع CS1}}
|-
! التصنيف !! صفحاته
|-
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: ASIN TLD}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: bioRxiv}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: class}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: JFM}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: JSTOR}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: MR}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: OSTI}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: PMC embargo}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: RFC}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: S2CID}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: SBN}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: script parameters}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: SSRN}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: SSRN}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: Zbl}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: أرخايف}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: أسلوب فانكوفر}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: أكلس}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: إظهار الأسماء}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: استخدام (وآخرون - et al.)}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: استشهاد فارغ}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: اسم عام}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: اسم مفقود}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الافتقار إلى عنوان}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: التاريخ}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الفصل تم تجاهله}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: المسار}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: المكتبة المفتوحة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الوسيط ASIN}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الوسيط citeseerx}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الوسيط citeseerx}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الوسيط HDL}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الوسيط ISMN}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: الوسيط ISSN}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: ببمد سنترال}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: ببمد}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: بيب كود}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: تاريخ الوصول}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: ترميز}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: تعارض مسار مع وصلة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: حروف غير مرئية}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: دورية مفقودة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: دوي}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: ردمك}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: روابط خارجية}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: صفحات تحتوي مراجع ويب بتاريخ وصول وبدون مسار}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: صيغة المسار ذكرت دون المسار}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: عمود مفقود}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: عنوان عام}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: عنوان مترجم دون العنوان الأصلي}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: قصور في مسار}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: قيمة غير صالحة لوسيط}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: كونغرس}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: مسار الأرشيف}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: مشاركون}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: معرف الرسالة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: نص زائد: الصفحات}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: نص زائد: العدد}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: نص زائد: المجلد}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: نص زائد: طبعة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: وسائط غير مدعومة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: وسائط غير مسماه}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: وسائط غير معروفة فارغة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: وسائط مستغى عنها}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: وسائط مكررة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: وصلة}}
{{تصانيف تتبع CS1/سطر|أخطاء الاستشهاد: يتطلب مسار}}
{{تصانيف تتبع CS1/سطر|اختبار مكان الاستشهاد}}
{{تصانيف تتبع CS1/سطر|الاستشهاد: قيمة المجلد طويلة}}
{{تصانيف تتبع CS1/سطر|الاستشهاد: نطاق السنة المختصرة}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: BOT: original URL status unknown}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: date auto-translated}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: JFM format}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: MR format}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: others in cite AV media (notes)}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: PMC embargo expired}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: postscript}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: ref duplicates default}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: url-status}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: Zbl}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: آخرون}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: استشهادات بمسارات غير مؤرشفة}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: الأرشيف كعنوان}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: التاريخ والسنة}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: تجاهل خطأ ISSN}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: تجاهل خطأ دوي}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: تجاهل خطأ ردمك}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: تنسيق PMC}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: تنسيق التاريخ}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: دورية دون عنوان}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: دوي مجاني غير معلم}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: علامات ترقيم زائدة}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: لغة غير مدعومة}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: مسار غير صالح}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: مكان}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: يستخدم وسيط المؤلفون}}
<!-- وصلات دوي غير نشطة -->
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2008}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2009}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ يونيو 2010}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2010}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2012}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2015}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ يناير 2017}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2017}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2018}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ مارس 2019}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ يوليو 2019}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ أغسطس 2019}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ ديسمبر 2019}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2019}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ يناير 2020}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2020}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2021}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ يوليو 2022}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ ديسمبر 2022}}
{{تصانيف تتبع CS1/سطر|صيانة الاستشهاد: وصلة دوي غير نشطة منذ 2022}}
|}
53u3mah1kqkj27cwmte42moxcc175or
قالب:تصانيف تتبع CS1/سطر
10
63212
275441
2026-09-15T10:01:03Z
حبيشان
29714
استيراد من ar.wiktionary.org
275441
wikitext
text/x-wiki
{{#تبديل:{{PAGESINCATEGORY:{{{1}}}}}
|0=
|#افتراضي=
{{!}} [[:تصنيف:{{{1}}}]]
{{!}} {{PAGESINCATEGORY:{{{1}}}|R}}
{{!-}}
}}
qofsmg6ubvvne4grkmi06voucfq54k1
وحدة:Cite Q
828
63213
275442
2026-09-15T10:02:29Z
حبيشان
29714
استيراد من ar.wiktionary.org
275442
Scribunto
text/plain
--[[ Cite Q
النسخة العربية
مشتق من النسخة الإنجليزية
]]
require('strict')
local sandbox = ''
local WdItem = require('Module:WdItem' .. sandbox)
local cfg = mw.loadData('Module:Cite Q/config' .. sandbox)
local ref_cash = {}
local rtl_lang = {
ar = true,
fa = true,
ur = true,
ku = true,
he = true,
arc = true,
dv = true,
ha = true,
khw = true,
ks = true,
ps = true,
yi = true,
ota = true
}
-- ________________________________ General Utility Functions ______________________________________
-------------------------------------------------------------------------------
-- makeOrdinal needs to be internationalised along with cfg.i18n_t
-- takes cardinal number as a numeric and returns the ordinal as a string
-- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc.
-------------------------------------------------------------------------------
local makeOrdinal = function(cardinal)
local card = tonumber(cardinal)
if not card then return cardinal end
local ordsuffix = cfg.i18n_t.ordinal.default
if card % 10 == 1 then
ordsuffix = cfg.i18n_t.ordinal[1]
elseif card % 10 == 2 then
ordsuffix = cfg.i18n_t.ordinal[2]
elseif card % 10 == 3 then
ordsuffix = cfg.i18n_t.ordinal[3]
end
-- In English, 1, 21, 31, etc. use 'st', but 11, 111, etc. use 'th'
-- similarly for 12 and 13, etc.
if (card % 100 == 11) or (card % 100 == 12) or (card % 100 == 13) then
ordsuffix = cfg.i18n_t.ordinal.default
end
return card .. ordsuffix
end
--[[--------------------------< I S _ S E T >--------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
local function is_set(var)
return not (var == nil or var == '')
end
local function has_value(var)
return not (var == nil or var == '' or var == 'novalue' or var == 'somevalue' or var == 'Unknown')
end
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------
Whether needle is in haystack (taken from Module:Citation/CS1/Utilities)
]]
local function in_array(needle, haystack)
if needle == nil then
return false
end
for n, v in ipairs(haystack) do
if v == needle then
return n
end
end
return false
end
-- wraps a string in nowiki unless disable flag is set
local function wrap_nowiki(str, disable)
if disable then return str or '' end
return mw.text.nowiki(str or '')
end
-- sort sequence table whose values are key-value pairs by key
local function comp_key(a, b)
local param_a, enum_a = a[1]:match('(%D+)(%d+)$'); -- get param name and enumerator from <a>
local param_b, enum_b = b[1]:match('(%D+)(%d+)$'); -- get param name and enumerator from <b>
if enum_a and enum_b then -- if both parameters have neumerators
if param_a == param_b then -- are parameter names the same?
return tonumber(enum_a) < tonumber(enum_b); -- yes: compare enumerators
end
end
return a[1] < b[1]; -- alpha sort if here
end
local function set_archive_args(arcurl, args)
if has_value(arcurl) then
local arcy, arcm, arcd = arcurl:match("(20%d%d)%p?(%d%d)%p?(%d%d)")
if arcy and arcm and arcd then
args["archive-url"] = arcurl
args["archive-date"] = arcy .. '-' .. arcm .. '-' .. arcd
end
end
end
--________________________________ Language Functions ______________________________________
local function getLanguages(languageArg)
local langcodes = {}
if languageArg then
-- check these are a supported language codes
for lc in mw.text.gsplit(languageArg, "[,، ]+", false) do --modified
langcodes[#langcodes + 1] = mw.language.isSupportedLanguage(lc) and lc
end
end
return langcodes
end
local function simplify_langauges(langs_t)
local newlangs = {}
for k,v in ipairs(langs_t) do
newlangs[#newlangs + 1] = v
local main_lang = v:match("^[^_-]+")
if main_lang ~= v then newlangs[#newlangs + 1] = main_lang; end
end
return newlangs
end
local function _getLangOfSnakProp(snak, pid)
if not pid or not snak then return {} end
local out = {}
local props = snak[pid]
for i, v in ipairs(props) do
if v.datatype == "monolingualtext" and v.datavalue then
out[#out + 1] = v.datavalue.value.language
end
end
return out
end
local function getLangOfProp(frame)
local pid = frame.args.pid or mw.text.trim(frame.args[1] or "")
if pid == "" then return end
local qid = frame.args.qid
if qid == "" then qid = nil end
local Q = WdItem.new(qid, { fwd = "ALL", onlysourced = false, noicon = true })
return table.concat(Q:getLangOfProp(pid), ", ")
end
-- gets the language codes of a Wikidata entry as a table
local function _lang_code(Qitem)
local lc = Qitem:getRawPropOfProp("P407", "P424")
if lc and #lc > 0 then return lc end
lc = Qitem:getRawPropOfProp("P407", "P218")
if lc and #lc > 0 then return lc end
return Qitem:getLangOfProp("P1476")
end
--________________________________ Author/Editor Display Functions ______________________________________
local function set_display_authors(args, contribtype)
local contrib_count = 0
for k, v in pairs(args) do
if k:find("^" .. contribtype .. "%d+$") then
contrib_count = contrib_count + 1
end
end
local key = 'display-' .. contribtype .. 's'
if contrib_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == args[key] then
args[key] = nil; -- unset because no longer needed
else
args[key] = args[key] or 3 -- limit to three displayed names
end
end
end
--[=[-------------------------< G E T _ N A M E _ L I S T >----------------------------------------------------
get_name_list -- adapted from getAuthors code taken from Module:RexxS
arguments:
nl_type - type of name list to fetch: nl_type = 'author' for authors; 'editor' for editors; 'translator' for translators
args - pointer to the parameter arguments table from the template call
qid - value from |qid= parameter; the Q-id of the source (book, etc.) in qid
wdlinks - value from the |wdlinks= parameter; a Boolean passed to enable links to Wikidata when no article exists
returns nothing; modifies the args table
]=]
local function get_name_list(nl_type, args, Q, wdlinks, lang)
local propertyID = "P50"
local fallbackID = "P2093" -- author name string
if nl_type == "author" then
propertyID = 'P50' -- for authors
fallbackID = 'P2093' -- author-string
elseif nl_type == "editor" then
propertyID = 'P5769' -- "editor-in-chief"
fallbackID = 'P98' -- for editors - So-called "fallbacks" are actually a second set of properties processed
-- TBD. Take book series editors into account as well (if they have a separate P code as well)?
elseif nl_type == "translator" then
propertyID = 'P655' -- for translators
fallbackID = nil
-- elseif 'contributor' == nl_type then
-- f.e. author of forewords (P2679) and afterwords (P2680); requires |contribution=, |title= and |author=
-- propertyID = 'P' -- for contributors
-- fallbackID = nil
else
return -- not specified so return
end
-- wdlinks is a Boolean passed to enable links to Wikidata when no article exists
-- if "false" or "no" or "0" is passed set it false
-- if nothing or an empty string is passed set it false
if wdlinks and (#wdlinks > 0) then
wdlinks = wdlinks:lower()
wdlinks = in_array(wdlinks, { "false", "no", "0" })
else
-- wdlinks is empty, so
wdlinks = false
end
local statements = Q:getStatements(propertyID)
if statements:count() == 0 and fallbackID then
statements = Q:getStatements(fallbackID)
end
-- Make sure it actually has at least one of the properties requested
if statements:count() == 0 then
return nil
end
-- So now we have something to return:
-- table 'out' is going to store the names(s):
-- and table 'link' will store any links to the name's article
local out = {}
local link = {}
local maxpos = 0
for _, s in statements:iter() do
-- maxpos = makelink(v, out, link, maxpos, wdlinks, lang)
local qnumber = s:getRawValue()
if qnumber ~= 'novalue' then
local label = s:getValue({ linked = false })
local slink
if label == 'somevalue' or label == 'Unknown' then
label = cfg.i18n_t["unknown-author"][lang] or cfg.i18n_t["unknown-author"]["ar"]
elseif mw.ustring.match(qnumber, '^Q%d+$') and qnumber ~= 'Q2818964' then
slink = mw.wikibase.getSitelink(qnumber, cfg.config_t.linksproject)
end
local position = maxpos + 1 -- Default to 'next' author.
position = tonumber(s:getRawQual("P1545")[1]) or position
maxpos = math.max(maxpos, position)
out[position] = label
if slink then link[position] = cfg.config_t.wikilinkprefix .. slink; end
end
end
-- if there's anything to return, then insert the additions in the template arguments table
-- in the form |author1=firstname secondname |author2= ...
-- Renumber, in case we have inconsistent numbering
local keys = {}
for k, v in pairs(out) do
keys[#keys + 1] = k
end
table.sort(keys) -- as they might be out of order
for i, k in ipairs(keys) do
out[k] = out[k]:gsub(''', '\''); -- prevent cs1|2 multiple names categorization; replace html entity with the actual character
if args[nl_type .. i] then -- name gets overwritten
-- pull corresponding -link only if overwritten name is same as WD name
if link[k] and (args[nl_type .. i] == out[k]) then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
else -- name does not get overwritten, so pull name from WD
args[nl_type .. i] = out[k]
if link[k] then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
end
end
end
--________________________________ filtering functions ______________________________________
-- ref filtering for citing from wikidata
local function is_rejected(item)
-- rejected Q
if cfg.rejected_t.sources[item] == true then
return true;
end
-- rejected Properties
local item_entity = mw.wikibase.getEntity(item);
for _, v in pairs(cfg.rejected_t.properties) do
if (#item_entity:getAllStatements(v) > 0) then
return true;
end
end
-- Rejected InatanceOf
local instance = item_entity:getAllStatements("P31")
for _, v in pairs(instance) do
local vsnak = v.mainsnak or v
if cfg.rejected_t.instances[vsnak.datavalue.value.id] then
return true;
end
end
--No used Properties
local has_properties = false
for k, _ in pairs(cfg.used_properties_t) do
if (#item_entity:getAllStatements(k) > 0) then
has_properties = true;
break;
end
end
return not has_properties;
end
--________________________________ main functions ______________________________________
--[[-------------------------< C I T E _ W E B >------------------------------------------------------------------
used to pass wikidata reference claims to cite web template.
--]]
local function _cite_web(citeq_args)
local Q
local refsnak = citeq_args.snak
citeq_args.snak = nil
-- retrieve all the parameters
local pqid = citeq_args.pqid
citeq_args.pqid = nil
local wdlinks = false
local qid = nil
local multi_args = {
P50 = "author",
P2093 = "author",
P5769 = "editor",
P98 = "editor",
P655 = "translator",
}
local fallbackurls = {}
Q = WdItem.newSnakItem(refsnak,
{ fwd = "ALL", onlysourced = false, noicon = true, linksproject = cfg.config_t.linksproject, wikilinkprefix = cfg
.config_t.wikilinkprefix })
-- find language
local langcodes = getLanguages(citeq_args.language)
if refsnak["P1476"] then
langcodes = _getLangOfSnakProp(refsnak, "P1476")
citeq_args.language = citeq_args.language or table.concat(langcodes, ", ")
end
langcodes = simplify_langauges(langcodes)
for _, l in ipairs({ 'ar', 'en', 'mul' }) do
if not in_array(l, langcodes) then
langcodes[#langcodes + 1] = l
end
end
Q:setOptions({ langs = langcodes })
local labellang = langcodes[1]
local rtl = rtl_lang[langcodes[1]] or false
local oth = {}
for i in pairs(refsnak) do
local label = ""
-- multiple authors may be given
if refsnak[i][1].snaktype ~= 'novalue' then
if multi_args[i] then
get_name_list(multi_args[i], citeq_args, Q, wdlinks, labellang)
elseif cfg.used_properties_t[i] and type(cfg.used_properties_t[i]) == "table" then
local data = cfg.used_properties_t[i]
local langidx = 1
citeq_args[data.arg] = Q:getValue(i,
{ maxvals = data.maxvals, linked = data.linked, rank = data.rank or "best" })
if not citeq_args[data.arg] or citeq_args[data.arg]:find('^Q%d+$') then
citeq_args[data.arg] = Q:getValue(i, { maxvals = data.maxvals, linked = data.linked })
if citeq_args[data.arg]:find('^Q%d+$') then -- qid was returned
-- try fallback to qid's native language
local qid_languages = _lang_code(WdItem.newItem(citeq_args[data.arg],
{ fwd = "ALL", onlysourced = false, noicon = true }))
citeq_args[data.arg] = Q:getValue(i,
{ maxvals = data.maxvals, linked = data.linked, langs = qid_languages })
if citeq_args[data.arg]:find('^Q%d+$') then -- qid was returned again
citeq_args[data.arg] = nil
else
-- record the language found if no lang specified
citeq_args.language = citeq_args.language or qid_languages[1]
end
end
end
--- translate unknown value
if citeq_args[data.arg] == "Unknown" then
if rtl then
citeq_args[data.arg] = cfg.i18n_t.ar["unknown-" .. data.arg] or cfg.i18n_t.ar["unknown"]
else
citeq_args[data.arg] = mw.wikibase.getLabelByLang("Q4233718", langcodes[1]):gsub("^%l",
mw.ustring.upper)
end
end
-----------------
if data.others then
oth[#oth + 1] = citeq_args[data.arg] and
((rtl and cfg.i18n_t.ar[data.arg] or data.arg:gsub("^%l", string.upper)) .. ": " .. citeq_args[data.arg])
citeq_args[data.arg] = nil
end
elseif cfg.used_properties_t[i] then
if i == "P648" then
citeq_args.ol = (Q:getValue("P648", { maxvals = 1 }) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
elseif i == "P957" then
citeq_args.isbn = Q:getValue("P957", { maxvals = 1 })
elseif in_array(i, { "P854", "P953", "P856", "P2699" }) then
local url;
for _, pr in ipairs({ "P854", "P953", "P856", "P2699" }) do
url = Q:getStatements(pr):getBestOne():getRawValue()
if has_value(url) then
citeq_args.url = url
break;
end
end
end
end
if refsnak[i][1].datatype == "external-id" then
fallbackurls[#fallbackurls+1] = {
url = Q:getValue(i, { maxvals = 1, fullidurl=true}),
arg = cfg.used_properties_t[i] and cfg.used_properties_t[i].arg
}
end
end
end
if not citeq_args.url and #fallbackurls>0 then
for _,v in ipairs(fallbackurls) do
if not v.arg then
citeq_args.url = v.url
break;
end
end
if not citeq_args.url then
citeq_args.url = fallbackurls[1].url
citeq_args[fallbackurls[1].arg] = nil
end
end
if citeq_args.url then
if refsnak["P813"] then
citeq_args.accessdate = Q:getValue("P813", { maxvals = 1 })
end
if refsnak["P1065"] and refsnak["P2960"] then
citeq_args["archive-url"] = Q:getValue("P1065", { maxvals = 1 })
citeq_args["archive-date"] = Q:getValue("P2960", { maxvals = 1 })
elseif refsnak["P1065"] then
set_archive_args(Q:getValue("P1065", { maxvals = 1 }), citeq_args)
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
-- if url then see if there's an archive: citeq_args.url
local url
local title_display = citeq_args.title
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
end
-- TBD: incorporate |at, |sheets= and |sheet= here as well
-- Sort out what should happen if several of them are given at the same time
if citeq_args.page or citeq_args.p then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
-- replace no-break space by space, User:Mr. Ibrahem
if citeq_args.title then
citeq_args.title = mw.ustring.gsub(citeq_args.title, "\194\160", " ")
end
set_display_authors( citeq_args, 'author' )
set_display_authors( citeq_args, 'editor' )
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
local template = "بويب"
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
template = "استشهاد " .. template
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "استشهاد"
end
citeq_args['no-tracking'] = 'true' -- لإيقاف ظهور تصانيف التتبع
return mw.getCurrentFrame():expandTemplate { title = template, args = citeq_args } -- render the template
end
--[[-------------------------< C I T E _ Q >------------------------------------------------------------------
Takes standard CS1|2 template parameters and passes all to {{citation}}. If neither of |author= and |author1=
are set, calls get_authors() to try to get an author name-list from Wikidata. The result is passed to
{{citation}} for rendering.
--]]
local function _cite_q(in_citeq_args)
local frame = mw.getCurrentFrame()
local citeq_args = {}
local origin_args = {}
local Q
-- parameters that don't get passed to Citation
local expand = in_citeq_args.expand -- when set to anything, causes {{cite q}} to render <code><nowiki>{{citation|...}}</nowiki></code>
local qid = in_citeq_args.qid or in_citeq_args[1]
local wdlinks = in_citeq_args.wdlinks
local template = in_citeq_args.template
local cite_class = 'citation'
local rtl = true
local snak = in_citeq_args.snak or {}
local pqid = in_citeq_args.pqid
local page_offset = 0
in_citeq_args.expand = nil
in_citeq_args[1] = nil
in_citeq_args.qid = nil
in_citeq_args.wdlinks = nil
in_citeq_args.template = nil
in_citeq_args.snak = nil
in_citeq_args.pqid = nil
if in_citeq_args.wikidatacite then
citeq_args = in_citeq_args
else
local A = require("Module:Argument Wrapper")(cfg.aliases_t, { in_citeq_args, mw.loadData("Module:Art pref/data")["استشهاد بويكي بيانات"] }, cfg.numbered_aliases_t)
-- local A = argument_wrapper(in_citeq_args)
local loaded_args = {}
for _, args_table in pairs({ cfg.simple_properties_t, cfg.used_args_t }) do
for k, _ in pairs(args_table) do
if A[k] then
citeq_args[k] = A[k]
if k ~= A:ORIGIN(k) then
origin_args[k] = A:ORIGIN(k)
loaded_args[#loaded_args + 1] = A:ORIGIN(k)
else
loaded_args[#loaded_args + 1] = k
end
end
end
end
for k, v in pairs(in_citeq_args) do
if not in_array(k, loaded_args) then
citeq_args[k] = v
end
end
end
-- if title supplied, flag to not read html title
local titleforced = (citeq_args.title ~= nil)
local default_opt = { rank = "preferred normal", fetchwikidata = "ALL", onlysourced = false, noicon = true, linksproject =
cfg.config_t.linksproject, wikilinkprefix = cfg.config_t.wikilinkprefix }
if citeq_args.volume or citeq_args.volume then
local qualifiedaspossible = {}
if citeq_args.volume then
qualifiedaspossible['P478'] = citeq_args.volume
end
if citeq_args.chapter then
qualifiedaspossible['P792'] = citeq_args.chapter
end
default_opt.qualifiedaspossible = qualifiedaspossible
end
Q = WdItem.WdItem:new(qid, default_opt, snak)
local oth = {}
-- put the language codes into a sequential table langcodes[]
local langcodes = getLanguages(citeq_args.language)
if not langcodes[1] then
-- try to find language of work
langcodes = _lang_code(Q)
end
if not langcodes[1] then
-- try fallback to journal's language
local journal_qid = Q:followQid("P1433")
langcodes = journal_qid and _lang_code(journal_qid) or {}
end
citeq_args.language = citeq_args.language or table.concat(langcodes, ", ")
langcodes = simplify_langauges(langcodes)
Q:setOptions({ langs = langcodes });
local labellang = langcodes[1] or 'ar'
rtl = rtl_lang[langcodes[1]] or false
-- loop through list of simple properties and get their values in citeq_args
for name, data in pairs(cfg.simple_properties_t) do
local opt = { maxvals = data.maxvals, linked = data.linked, qual = data.qual, hijri = data.hijri }
if data.no_vol_qual then opt.qualifiedaspossible = {}; end
citeq_args[name] = citeq_args[name] or Q:getValue(data.id, opt)
if not citeq_args[name] and data.populate_from_journal then
local publishedin = Q:getValue("P1433", { maxvals = 0, qual = data.id, qualsonly = true })
citeq_args[name] = publishedin or Q:getPropOfProp("P1433", data.id, { maxvals = data.maxvals })
end
if citeq_args[name] and snak[data.id] then
snak[data.id] = nil
end
--- translate unknown value
if citeq_args[name] == "Unknown" and rtl then
citeq_args[name] = cfg.i18n_t.ar["unknown-" .. name] or cfg.i18n_t.ar["unknown"]
end
-----------------
if data.others then
oth[#oth + 1] = citeq_args[name] and
((rtl and cfg.i18n_t.ar[name] or name:gsub("^%l", string.upper)) .. ": " .. citeq_args[name])
citeq_args[name] = nil
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.journal = citeq_args.journal and
citeq_args.journal:gsub("^''", ""):gsub("''$", ""):gsub("|''", "|"):gsub("'']]", "]]")
citeq_args.ol = citeq_args.ol or (Q:getValue("P648", { maxvals = 1 }) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
-- TBD. Take care of |ol-access=?
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
citeq_args.isbn = citeq_args.isbn or
Q:getValue("P957", { maxvals = 1, rank = "best" }) -- try ISBN 10 (only one value accepted)
if citeq_args.page then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
-- Orginal Date
if not citeq_args['orig-date'] then
local work, origdate, origDateS = Q:getStatements('P629'):getBestOne():getRawValue()
local origOpt = { rank = "best", maxvals = 1, onlysourced = false, noicon = true }
local ishijri = false;
if has_value(work) then
local workQ = WdItem.newItem(work, origOpt)
origDateS = workQ:getStatements('P577', { df = 'y', qualifiedaspossible = { P4241 = '*' } }):getBestOne()
origdate = origDateS:getValue({ df = 'y', hijri = true })
if has_value(origdate) then
ishijri = true
else
origdate = origDateS:getValue({ df = 'y' })
end
end
if not has_value(origdate) then
local author = Q:getStatements('P50'):getBestOne():getRawValue()
if has_value(author) then
local authorQ = WdItem.newItem(author, origOpt)
origDateS = authorQ:getStatements('P570', { df = 'y', qualifiedaspossible = { P4241 = '*' } })
:getBestOne()
origdate = origDateS:getValue({ df = 'y', hijri = true })
if has_value(origdate) then
ishijri = true
else
origdate = origDateS:getValue({ df = 'y' })
end
end
end
if has_value(origdate) then
local printDateS, printDate = Q:getStatements("P577", { df = 'y', qualifiedaspossible = { P4241 = '*' } })
:getBestOne()
if ishijri then
printDate = printDateS:getValue({ hijri = true })
if has_value(printDate) then
if (tonumber(origdate) or 3000) < (tonumber(printDate) or 0) then
citeq_args['orig-date'] = origdate .. 'هـ'
end
else
if (tonumber(origDateS:getValue({ df = 'y'})) or 3000) < (tonumber(printDateS:getValue({ df = 'y'})) or 0) then
citeq_args['orig-date'] = origdate .. 'هـ'
end
end
else
printDate = printDateS:getValue()
if (has_value(printDate) and ((tonumber(origdate) or 3000) < (tonumber(printDate) or 0)))
or not has_value(printDate) then
citeq_args['orig-date'] = origdate
end
end
end
end
local url
--find formatted url
if citeq_args.url == nil then
if snak ~= {} then
for k, v in pairs(snak) do
if (v[1].datatype == "external-id") then
citeq_args.url = mw.ustring.match(mw.wikibase.formatValue(v[1]), "%[(https?://[^%s%]]+)")
snak[k] = nil
break;
end
end
end
if citeq_args.url == nil and pqid and qid then
local refproperty = Q:getStatements("P1687"):getRawValue()
for k, p in ipairs(refproperty) do
if has_value(p) then
local refval = WdItem.WdItem:new(pqid):getValue(p, {fullidurl=true})
if has_value(refval) then
citeq_args.url = refval
break;
end
end
end
end
end
if not citeq_args.url then
local S953 = Q:getStatements("P953"):getBestOne()
local S953_val = S953:getRawValue()
citeq_args.url = has_value(S953_val) and S953_val or nil
if citeq_args.url then
if mw.ustring.match(citeq_args.url, "archive.org/details/") and citeq_args.page then
page_offset = tonumber(S953:getRawQual('P8330')[1]) or 0
if not citeq_args.volume or
(citeq_args.volume and (citeq_args.volume == S953:getRawQual('P478')[1])) then
local pagenum = tonumber(citeq_args.page) or tonumber(mw.text.split(citeq_args.page, '%D')[1])
if pagenum then
citeq_args.url = mw.ustring.gsub(citeq_args.url, "/?$", "") ..
"/page/n" .. (pagenum + page_offset - 1) .. "/mode/1up"
end
end
end
set_archive_args(S953:getRawQual('P1065')[1], citeq_args)
end
end
if not citeq_args.url then
for i, pr in ipairs({ "P856", "P2699" }) do
local surl = Q:getStatements(pr):getBestOne()
if surl then
local url = surl:getRawValue()
if has_value(url) then
citeq_args.url = url
set_archive_args(surl:getRawQual('P1065')[1], citeq_args)
break;
end
end
end
end
if not titleforced then
-- Handle subtitle.
if citeq_args.title then
local subtitle = Q:getValue('P1680');
if subtitle then
citeq_args.title = citeq_args.title .. ": " .. subtitle
end
end
local htmltitle = Q:getValue("P1476", { qual = "P6833", maxvals = 1, qualsonly = true })
if htmltitle then
citeq_args.title = htmltitle:gsub("</?i>", "''")
else
local title_display = citeq_args.title
or (langcodes[1] and mw.wikibase.getLabelByLang(qid, langcodes[1]))
or mw.wikibase.getLabel(qid)
if title_display and snak and snak.P1810 then
title_display = title_display .. " | " .. snak.P1810[1].datavalue.value
snak.P1810 = nil
end
title_display = title_display or ("No label or title -- debug: " .. qid)
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
else
local slink = mw.wikibase.getSitelink(qid, cfg.config_t.linksproject)
local slink_flag = false
local wrap_title = ''
local wslink = false
if not slink then
-- See if we have wikisource
if not citeq_args.url then
local wikisource_sitelink = mw.wikibase.getSitelink(qid, cfg.i18n_t.wikisource) or nil
if wikisource_sitelink then
slink = ':s:' .. wikisource_sitelink
wslink = true
end
end
end
if citeq_args.title then
if slink then
wrap_title = wrap_nowiki(citeq_args.title)
slink_flag = true
else
citeq_args.title = wrap_nowiki(citeq_args.title)
end
else
if slink and not wslink then
if slink:lower() == title_display:lower() then
citeq_args.title = '[[' .. slink .. ']]'
else
wrap_title = wrap_nowiki(slink:gsub("%s%(.+%)$", ""):gsub(",.+$", ""))
slink_flag = true
end
elseif wslink then
wrap_title = wrap_nowiki(title_display)
slink_flag = true
else
citeq_args.title = wrap_nowiki(title_display)
end
end
if slink_flag then
if slink == wrap_title and not wslink then -- direct link
citeq_args.title = '[[' .. slink .. ']]'
else -- piped link
citeq_args.title = '[[' .. slink .. '|' .. wrap_title .. ']]'
end
end
end
end
end
-- replace no-break space by space, User:Mr. Ibrahem
if citeq_args.title then
citeq_args.title = mw.ustring.gsub(citeq_args.title, "\194\160", " ")
end
if is_set(qid) then
if not is_set(citeq_args.author) and not is_set(citeq_args.author1) then -- if neither are set, try to get authors from Wikidata
get_name_list('author', citeq_args, Q, wdlinks, labellang) -- modify citeq_args table with authors from Wikidata
end
if not is_set(citeq_args.editor) and not is_set(citeq_args.editor1) then -- if neither are set, try to get editors from Wikidata
get_name_list('editor', citeq_args, Q, wdlinks, labellang) -- modify citeq_args table with editors from Wikidata
end
if not is_set(citeq_args.translator) and not is_set(citeq_args.translator1) then -- if neither are set, try to get translators from Wikidata
get_name_list('translator', citeq_args, Q, wdlinks, labellang) -- modify citeq_args table with translators from Wikidata
end
end
for k, v in pairs(citeq_args) do
if in_array(v, { '(())', 'unset', 'ignore' }) or 'string' ~= type(k) then -- empty accept-as-is-written (()) markup to indicate an empty/unused parameter value, other ((...)) markups are deliberately passed down to {{citation}}
citeq_args[k] = nil
elseif in_array(v, { '((unset))', '((ignore))' }) then -- strip off markup for free-text values clashing with local keywords
citeq_args[k] = 'unset'
end
end
set_display_authors( citeq_args, 'author' )
set_display_authors( citeq_args, 'editor' )
-- change edition to ordinal if it's set and numeric
if (rtl == false) then citeq_args.edition = citeq_args.edition and makeOrdinal(citeq_args.edition) end
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
if citeq_args.journal then
template = template or "بدورية محكمة"
elseif citeq_args.isbn then
template = template or "بكتاب"
citeq_args.asin = nil -- suppress ASIN if ISBN exists
elseif citeq_args.website then
template = template or "بويب"
end
-- template is CS1 designator: journal, web, news, etc.
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
local citeclasses = { ["بدورية محكمة"] = 'journal', ["بكتاب"] = "book", ["بويب"] = "web" }
cite_class = cfg.citation_class_map_t[template] and template or citeclasses[template]
template = cfg.citation_class_map_t[template] or ("استشهاد " .. template)
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "استشهاد"
end
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
local id = cfg.i18n_t.wdq .. ':[[:d:' .. qid .. '|' .. qid .. ']]'
local old_id = citeq_args.id
if wdlinks then -- show WD logo
id = id .. '[[ملف:Wikidata-logo.svg|16px|alt=|link=]]' -- possibly replace by WD edit icon?
end
if is_set(old_id) then
citeq_args.id = old_id .. list_sep .. id -- append to user-specified contents
else
citeq_args.id = id
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
-- use real param names for CS1 messages
for k, v in pairs(origin_args) do
if citeq_args[k] and citeq_args[k] == in_citeq_args[v] then
citeq_args[v] = citeq_args[k]
citeq_args[k] = nil
end
end
-- if |expand=<anything>, write a nowiki'd version to see what the {{citation}} template call looks like
if expand then
local expand_args = { "{{" .. template .. "\n" } -- init with citation template
if expand == "self" then
citeq_args.id = old_id -- restore original |id= parameter
expand_args = { cfg.i18n_t.cite_q .. qid } -- expand to itself
end
-- make a sortable table and sort it by param name
local sorttable = {}
for param, val in pairs(citeq_args) do
sorttable[#sorttable + 1] = { param, val }
end
table.sort(sorttable, comp_key)
-- add contents to expand_args
for idx, val in ipairs(sorttable) do
expand_args[#expand_args + 1] = val[1] .. '=' .. val[2] .. "\n"
end
-- make the nowiki'd string and done
return frame:preprocess(table.concat({ '<syntaxhighlight lang="wikitext" inline="1">', table.concat(expand_args,
' |') .. '}}', '</syntaxhighlight>' }));
end
local erratumid = Q:getPropertyIDs("P2507", { maxvals = 1 })
if erratumid then
erratumid = " [[d:" .. erratumid .. "|" .. cfg.i18n_t.erratum .. "]]" .. cfg.i18n_t.trackingcats.erratum
else
erratumid = ""
end
local opt_cat = ''
if Q:getValue("P5824") then
opt_cat = cfg.i18n_t.trackingcats.retracted
end
if Q:getValue("P1366") then
opt_cat = opt_cat .. cfg.i18n_t.trackingcats.replaced
end
if not citeq_args.title then -- emit category link if missing title
opt_cat = opt_cat .. cfg.i18n_t.trackingcats['no-label-or-title'];
end
if citeq_args.wikidatacite then
return frame:expandTemplate { title = template, args = citeq_args } ..
erratumid .. opt_cat -- render the template
else
local CS = require("Module:Citation/CS1" .. sandbox)
return CS._citation(frame, citeq_args, { ['CitationClass'] = cite_class }) .. erratumid .. opt_cat
end
end
--[[-------------------------< C I T E W I K I D A T A >------------------------------------------------------------------
format wikidata reference
--]]
local function _cite_wikidata(ref, pqid, expand)
-- early exit
if not ref then
return nil
end
local snak = ref.snaks
-- مراجع غير مقبولة
if snak.P143 or snak.P3452 then
return nil
end
local hash = ref.hash
if not is_set(hash) then
mw.log ("hash is not set")
return nil
end
local hashname = (is_set(sandbox) and 'wikidata-s-' or 'wikidata-') .. hash
local frame = mw.getCurrentFrame()
if ref_cash[hash] ~= nil then
if ref_cash[hash] == false then
return nil
end
return frame:extensionTag("ref", '' , { name = hashname })
end
local citeq_args = {}
-- مذكور في
if snak.P248 then
for _, prop in pairs(snak.P248) do
if prop.snaktype == "value" then
citeq_args.qid = prop.datavalue.value.id
break;
end
end
snak.P248 = nil;
end
if citeq_args.qid and is_rejected(citeq_args.qid) == true then
return nil
end
local reference
citeq_args.snak = snak
citeq_args.pqid = pqid
citeq_args.wikidatacite = 1
citeq_args.expand = expand
if citeq_args.qid then
reference = _cite_q(citeq_args)
else
local has_properties = false
for k, _ in pairs(cfg.used_properties_t) do
if snak[k] then
has_properties = true;
break;
end
end
reference = (has_properties and _cite_web(citeq_args) or nil)
end
if is_set(reference) then
reference = frame:extensionTag("ref", reference, { name = hashname })
ref_cash[hash] = true
else
ref_cash[hash] = false
end
return reference
end
local function cite_q(frame)
local args = {}
for k, v in pairs(frame:getParent().args) do
if v ~= "" then args[k] = v end
end
for k, v in pairs(frame.args) do
if v ~= "" then args[k] = v end
end
args.qid = args.qid or args[1] or ""
if args.qid == "" then return nil end
args[1] = nil
local citesep = (args.citesep or "")
if citesep == "" then citesep = ", " end
citesep = citesep:gsub('"', '') -- strip double quotes after setting default to allow |citesep="" as a blank separator
args.citesep = nil
local tag = args.tag or ""
if tag == "" then tag = nil end
args.tag = nil
local list = args.list or ""
if list == "" then list = nil end
args.list = nil
args.language = args.language or args.lang
args.lang = nil
local cites = {}
for q in args.qid:gmatch("Q%d+") do
-- make a new copy of the arguments
local newargs = {}
for k, v in pairs(args) do
if k ~= "qid" then
newargs[k] = v
end
end
newargs.qid = q
if tag == "ref" then
cites[#cites + 1] = frame:callParserFunction { name = "#tag:ref", args = { _cite_q(newargs), name = q } }
-- expand like this: args = { _cite_q(newargs), name = 'foo', group = 'bar' }
else
cites[#cites + 1] = _cite_q(newargs)
end
end
if list then
return frame:expandTemplate { title = list, args = cites }
else
return table.concat(cites, citesep)
end
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
makeOrdinal = makeOrdinal,
getLangOfProp = getLangOfProp,
_cite_wikidata = _cite_wikidata,
_cite_q = _cite_q,
cite_q = cite_q
}
eg1rea9opnu3zbtxbwmnrbs96pywdu9
وحدة:Cite Q/config
828
63214
275443
2026-09-15T10:02:35Z
حبيشان
29714
استيراد من ar.wiktionary.org
275443
Scribunto
text/plain
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, ['orig-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
}
89a3ngigl1bbmkbtq1fgzscdr73s3y4
وحدة:Cite Q/config/ملعب
828
63215
275444
2026-09-15T10:02:38Z
حبيشان
29714
استيراد من ar.wiktionary.org
275444
Scribunto
text/plain
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, ['orig-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
}
89a3ngigl1bbmkbtq1fgzscdr73s3y4
وحدة:Cite Q/شرح
828
63216
275445
2026-09-15T10:02:41Z
حبيشان
29714
استيراد من ar.wiktionary.org
275445
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
وحدة {{قا|استشهاد بويكي بيانات}}
حالات الاختبار في:
* [[قالب:استشهاد بويكي بيانات/مختبر]]
* [[قالب:استشهاد بويكي بيانات/مختبر2]]
* [[قالب:استشهاد بويكي بيانات/مختبر2/أسماء متعددة]]
ryu5ef9g3pp2vl9pgc0iaiz8v74y54a
وحدة:Cite Q/ملعب
828
63217
275446
2026-09-15T10:02:44Z
حبيشان
29714
استيراد من ar.wiktionary.org
275446
Scribunto
text/plain
--[[ Cite Q
النسخة العربية
مشتق من النسخة الإنجليزية
]]
require('strict')
local sandbox = '/ملعب'
local WdItem = require('Module:WdItem' .. sandbox)
local cfg = mw.loadData('Module:Cite Q/config' .. sandbox)
local ref_cash = {}
local rtl_lang = {
ar = true,
fa = true,
ur = true,
ku = true,
he = true,
arc = true,
dv = true,
ha = true,
khw = true,
ks = true,
ps = true,
yi = true,
ota = true
}
-- ________________________________ General Utility Functions ______________________________________
-------------------------------------------------------------------------------
-- makeOrdinal needs to be internationalised along with cfg.i18n_t
-- takes cardinal number as a numeric and returns the ordinal as a string
-- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc.
-------------------------------------------------------------------------------
local makeOrdinal = function(cardinal)
local card = tonumber(cardinal)
if not card then return cardinal end
local ordsuffix = cfg.i18n_t.ordinal.default
if card % 10 == 1 then
ordsuffix = cfg.i18n_t.ordinal[1]
elseif card % 10 == 2 then
ordsuffix = cfg.i18n_t.ordinal[2]
elseif card % 10 == 3 then
ordsuffix = cfg.i18n_t.ordinal[3]
end
-- In English, 1, 21, 31, etc. use 'st', but 11, 111, etc. use 'th'
-- similarly for 12 and 13, etc.
if (card % 100 == 11) or (card % 100 == 12) or (card % 100 == 13) then
ordsuffix = cfg.i18n_t.ordinal.default
end
return card .. ordsuffix
end
--[[--------------------------< I S _ S E T >--------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
local function is_set(var)
return not (var == nil or var == '')
end
local function has_value(var)
return not (var == nil or var == '' or var == 'novalue' or var == 'somevalue' or var == 'Unknown')
end
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------
Whether needle is in haystack (taken from Module:Citation/CS1/Utilities)
]]
local function in_array(needle, haystack)
if needle == nil then
return false
end
for n, v in ipairs(haystack) do
if v == needle then
return n
end
end
return false
end
-- wraps a string in nowiki unless disable flag is set
local function wrap_nowiki(str, disable)
if disable then return str or '' end
return mw.text.nowiki(str or '')
end
-- sort sequence table whose values are key-value pairs by key
local function comp_key(a, b)
local param_a, enum_a = a[1]:match('(%D+)(%d+)$'); -- get param name and enumerator from <a>
local param_b, enum_b = b[1]:match('(%D+)(%d+)$'); -- get param name and enumerator from <b>
if enum_a and enum_b then -- if both parameters have neumerators
if param_a == param_b then -- are parameter names the same?
return tonumber(enum_a) < tonumber(enum_b); -- yes: compare enumerators
end
end
return a[1] < b[1]; -- alpha sort if here
end
local function set_archive_args(arcurl, args)
if has_value(arcurl) then
local arcy, arcm, arcd = arcurl:match("(20%d%d)%p?(%d%d)%p?(%d%d)")
if arcy and arcm and arcd then
args["archive-url"] = arcurl
args["archive-date"] = arcy .. '-' .. arcm .. '-' .. arcd
end
end
end
--________________________________ Language Functions ______________________________________
local function getLanguages(languageArg)
local langcodes = {}
if languageArg then
-- check these are a supported language codes
for lc in mw.text.gsplit(languageArg, "[,، ]+", false) do --modified
langcodes[#langcodes + 1] = mw.language.isSupportedLanguage(lc) and lc
end
end
return langcodes
end
local function simplify_langauges(langs_t)
local newlangs = {}
for k,v in ipairs(langs_t) do
newlangs[#newlangs + 1] = v
local main_lang = v:match("^[^_-]+")
if main_lang ~= v then newlangs[#newlangs + 1] = main_lang; end
end
return newlangs
end
local function _getLangOfSnakProp(snak, pid)
if not pid or not snak then return {} end
local out = {}
local props = snak[pid]
for i, v in ipairs(props) do
if v.datatype == "monolingualtext" and v.datavalue then
out[#out + 1] = v.datavalue.value.language
end
end
return out
end
local function getLangOfProp(frame)
local pid = frame.args.pid or mw.text.trim(frame.args[1] or "")
if pid == "" then return end
local qid = frame.args.qid
if qid == "" then qid = nil end
local Q = WdItem.new(qid, { fwd = "ALL", onlysourced = false, noicon = true })
return table.concat(Q:getLangOfProp(pid), ", ")
end
-- gets the language codes of a Wikidata entry as a table
local function _lang_code(Qitem)
local lc = Qitem:getRawPropOfProp("P407", "P424")
if lc and #lc > 0 then return lc end
lc = Qitem:getRawPropOfProp("P407", "P218")
if lc and #lc > 0 then return lc end
return Qitem:getLangOfProp("P1476")
end
--________________________________ Author/Editor Display Functions ______________________________________
local function set_display_authors(args, contribtype)
local contrib_count = 0
for k, v in pairs(args) do
if k:find("^" .. contribtype .. "%d+$") then
contrib_count = contrib_count + 1
end
end
local key = 'display-' .. contribtype .. 's'
if contrib_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == args[key] then
args[key] = nil; -- unset because no longer needed
else
args[key] = args[key] or 3 -- limit to three displayed names
end
end
end
--[=[-------------------------< G E T _ N A M E _ L I S T >----------------------------------------------------
get_name_list -- adapted from getAuthors code taken from Module:RexxS
arguments:
nl_type - type of name list to fetch: nl_type = 'author' for authors; 'editor' for editors; 'translator' for translators
args - pointer to the parameter arguments table from the template call
qid - value from |qid= parameter; the Q-id of the source (book, etc.) in qid
wdlinks - value from the |wdlinks= parameter; a Boolean passed to enable links to Wikidata when no article exists
returns nothing; modifies the args table
]=]
local function get_name_list(nl_type, args, Q, wdlinks, lang)
local propertyID = "P50"
local fallbackID = "P2093" -- author name string
if nl_type == "author" then
propertyID = 'P50' -- for authors
fallbackID = 'P2093' -- author-string
elseif nl_type == "editor" then
propertyID = 'P5769' -- "editor-in-chief"
fallbackID = 'P98' -- for editors - So-called "fallbacks" are actually a second set of properties processed
-- TBD. Take book series editors into account as well (if they have a separate P code as well)?
elseif nl_type == "translator" then
propertyID = 'P655' -- for translators
fallbackID = nil
-- elseif 'contributor' == nl_type then
-- f.e. author of forewords (P2679) and afterwords (P2680); requires |contribution=, |title= and |author=
-- propertyID = 'P' -- for contributors
-- fallbackID = nil
else
return -- not specified so return
end
-- wdlinks is a Boolean passed to enable links to Wikidata when no article exists
-- if "false" or "no" or "0" is passed set it false
-- if nothing or an empty string is passed set it false
if wdlinks and (#wdlinks > 0) then
wdlinks = wdlinks:lower()
wdlinks = in_array(wdlinks, { "false", "no", "0" })
else
-- wdlinks is empty, so
wdlinks = false
end
local statements = Q:getStatements(propertyID)
if statements:count() == 0 and fallbackID then
statements = Q:getStatements(fallbackID)
end
-- Make sure it actually has at least one of the properties requested
if statements:count() == 0 then
return nil
end
-- So now we have something to return:
-- table 'out' is going to store the names(s):
-- and table 'link' will store any links to the name's article
local out = {}
local link = {}
local maxpos = 0
for _, s in statements:iter() do
-- maxpos = makelink(v, out, link, maxpos, wdlinks, lang)
local qnumber = s:getRawValue()
if qnumber ~= 'novalue' then
local label = s:getValue({ linked = false })
local slink
if label == 'somevalue' or label == 'Unknown' then
label = cfg.i18n_t["unknown-author"][lang] or cfg.i18n_t["unknown-author"]["ar"]
elseif mw.ustring.match(qnumber, '^Q%d+$') and qnumber ~= 'Q2818964' then
slink = mw.wikibase.getSitelink(qnumber, cfg.config_t.linksproject)
end
local position = maxpos + 1 -- Default to 'next' author.
position = tonumber(s:getRawQual("P1545")[1]) or position
maxpos = math.max(maxpos, position)
out[position] = label
if slink then link[position] = cfg.config_t.wikilinkprefix .. slink; end
end
end
-- if there's anything to return, then insert the additions in the template arguments table
-- in the form |author1=firstname secondname |author2= ...
-- Renumber, in case we have inconsistent numbering
local keys = {}
for k, v in pairs(out) do
keys[#keys + 1] = k
end
table.sort(keys) -- as they might be out of order
for i, k in ipairs(keys) do
out[k] = out[k]:gsub(''', '\''); -- prevent cs1|2 multiple names categorization; replace html entity with the actual character
if args[nl_type .. i] then -- name gets overwritten
-- pull corresponding -link only if overwritten name is same as WD name
if link[k] and (args[nl_type .. i] == out[k]) then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
else -- name does not get overwritten, so pull name from WD
args[nl_type .. i] = out[k]
if link[k] then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
end
end
end
--________________________________ filtering functions ______________________________________
-- ref filtering for citing from wikidata
local function is_rejected(item)
-- rejected Q
if cfg.rejected_t.sources[item] == true then
return true;
end
-- rejected Properties
local item_entity = mw.wikibase.getEntity(item);
for _, v in pairs(cfg.rejected_t.properties) do
if (#item_entity:getAllStatements(v) > 0) then
return true;
end
end
-- Rejected InatanceOf
local instance = item_entity:getAllStatements("P31")
for _, v in pairs(instance) do
local vsnak = v.mainsnak or v
if cfg.rejected_t.instances[vsnak.datavalue.value.id] then
return true;
end
end
--No used Properties
local has_properties = false
for k, _ in pairs(cfg.used_properties_t) do
if (#item_entity:getAllStatements(k) > 0) then
has_properties = true;
break;
end
end
return not has_properties;
end
--________________________________ main functions ______________________________________
--[[-------------------------< C I T E _ W E B >------------------------------------------------------------------
used to pass wikidata reference claims to cite web template.
--]]
local function _cite_web(citeq_args)
local Q
local refsnak = citeq_args.snak
citeq_args.snak = nil
-- retrieve all the parameters
local pqid = citeq_args.pqid
citeq_args.pqid = nil
local wdlinks = false
local qid = nil
local multi_args = {
P50 = "author",
P2093 = "author",
P5769 = "editor",
P98 = "editor",
P655 = "translator",
}
local fallbackurls = {}
Q = WdItem.newSnakItem(refsnak,
{ fwd = "ALL", onlysourced = false, noicon = true, linksproject = cfg.config_t.linksproject, wikilinkprefix = cfg
.config_t.wikilinkprefix })
-- find language
local langcodes = getLanguages(citeq_args.language)
if refsnak["P1476"] then
langcodes = _getLangOfSnakProp(refsnak, "P1476")
citeq_args.language = citeq_args.language or table.concat(langcodes, ", ")
end
langcodes = simplify_langauges(langcodes)
for _, l in ipairs({ 'ar', 'en', 'mul' }) do
if not in_array(l, langcodes) then
langcodes[#langcodes + 1] = l
end
end
Q:setOptions({ langs = langcodes })
local labellang = langcodes[1]
local rtl = rtl_lang[langcodes[1]] or false
local oth = {}
for i in pairs(refsnak) do
local label = ""
-- multiple authors may be given
if refsnak[i][1].snaktype ~= 'novalue' then
if multi_args[i] then
get_name_list(multi_args[i], citeq_args, Q, wdlinks, labellang)
elseif cfg.used_properties_t[i] and type(cfg.used_properties_t[i]) == "table" then
local data = cfg.used_properties_t[i]
local langidx = 1
citeq_args[data.arg] = Q:getValue(i,
{ maxvals = data.maxvals, linked = data.linked, rank = data.rank or "best" })
if not citeq_args[data.arg] or citeq_args[data.arg]:find('^Q%d+$') then
citeq_args[data.arg] = Q:getValue(i, { maxvals = data.maxvals, linked = data.linked })
if citeq_args[data.arg]:find('^Q%d+$') then -- qid was returned
-- try fallback to qid's native language
local qid_languages = _lang_code(WdItem.newItem(citeq_args[data.arg],
{ fwd = "ALL", onlysourced = false, noicon = true }))
citeq_args[data.arg] = Q:getValue(i,
{ maxvals = data.maxvals, linked = data.linked, langs = qid_languages })
if citeq_args[data.arg]:find('^Q%d+$') then -- qid was returned again
citeq_args[data.arg] = nil
else
-- record the language found if no lang specified
citeq_args.language = citeq_args.language or qid_languages[1]
end
end
end
--- translate unknown value
if citeq_args[data.arg] == "Unknown" then
if rtl then
citeq_args[data.arg] = cfg.i18n_t.ar["unknown-" .. data.arg] or cfg.i18n_t.ar["unknown"]
else
citeq_args[data.arg] = mw.wikibase.getLabelByLang("Q4233718", langcodes[1]):gsub("^%l",
mw.ustring.upper)
end
end
-----------------
if data.others then
oth[#oth + 1] = citeq_args[data.arg] and
((rtl and cfg.i18n_t.ar[data.arg] or data.arg:gsub("^%l", string.upper)) .. ": " .. citeq_args[data.arg])
citeq_args[data.arg] = nil
end
elseif cfg.used_properties_t[i] then
if i == "P648" then
citeq_args.ol = (Q:getValue("P648", { maxvals = 1 }) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
elseif i == "P957" then
citeq_args.isbn = Q:getValue("P957", { maxvals = 1 })
elseif in_array(i, { "P854", "P953", "P856", "P2699" }) then
local url;
for _, pr in ipairs({ "P854", "P953", "P856", "P2699" }) do
url = Q:getStatements(pr):getBestOne():getRawValue()
if has_value(url) then
citeq_args.url = url
break;
end
end
end
end
if refsnak[i][1].datatype == "external-id" then
fallbackurls[#fallbackurls+1] = {
url = Q:getValue(i, { maxvals = 1, fullidurl=true}),
arg = cfg.used_properties_t[i] and cfg.used_properties_t[i].arg
}
end
end
end
if not citeq_args.url and #fallbackurls>0 then
for _,v in ipairs(fallbackurls) do
if not v.arg then
citeq_args.url = v.url
break;
end
end
if not citeq_args.url then
citeq_args.url = fallbackurls[1].url
citeq_args[fallbackurls[1].arg] = nil
end
end
if citeq_args.url then
if refsnak["P813"] then
citeq_args.accessdate = Q:getValue("P813", { maxvals = 1 })
end
if refsnak["P1065"] and refsnak["P2960"] then
citeq_args["archive-url"] = Q:getValue("P1065", { maxvals = 1 })
citeq_args["archive-date"] = Q:getValue("P2960", { maxvals = 1 })
elseif refsnak["P1065"] then
set_archive_args(Q:getValue("P1065", { maxvals = 1 }), citeq_args)
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
-- if url then see if there's an archive: citeq_args.url
local url
local title_display = citeq_args.title
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
end
-- TBD: incorporate |at, |sheets= and |sheet= here as well
-- Sort out what should happen if several of them are given at the same time
if citeq_args.page or citeq_args.p then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
-- replace no-break space by space, User:Mr. Ibrahem
if citeq_args.title then
citeq_args.title = mw.ustring.gsub(citeq_args.title, "\194\160", " ")
end
set_display_authors( citeq_args, 'author' )
set_display_authors( citeq_args, 'editor' )
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
local template = "بويب"
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
template = "استشهاد " .. template
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "استشهاد"
end
citeq_args['no-tracking'] = 'true' -- لإيقاف ظهور تصانيف التتبع
return mw.getCurrentFrame():expandTemplate { title = template, args = citeq_args } -- render the template
end
--[[-------------------------< C I T E _ Q >------------------------------------------------------------------
Takes standard CS1|2 template parameters and passes all to {{citation}}. If neither of |author= and |author1=
are set, calls get_authors() to try to get an author name-list from Wikidata. The result is passed to
{{citation}} for rendering.
--]]
local function _cite_q(in_citeq_args)
local frame = mw.getCurrentFrame()
local citeq_args = {}
local origin_args = {}
local Q
-- parameters that don't get passed to Citation
local expand = in_citeq_args.expand -- when set to anything, causes {{cite q}} to render <code><nowiki>{{citation|...}}</nowiki></code>
local qid = in_citeq_args.qid or in_citeq_args[1]
local wdlinks = in_citeq_args.wdlinks
local template = in_citeq_args.template
local cite_class = 'citation'
local rtl = true
local snak = in_citeq_args.snak or {}
local pqid = in_citeq_args.pqid
local page_offset = 0
in_citeq_args.expand = nil
in_citeq_args[1] = nil
in_citeq_args.qid = nil
in_citeq_args.wdlinks = nil
in_citeq_args.template = nil
in_citeq_args.snak = nil
in_citeq_args.pqid = nil
if in_citeq_args.wikidatacite then
citeq_args = in_citeq_args
else
mw.logObject(mw.loadData("Module:Art pref/data")["استشهاد بويكي بيانات"])
local A = require("Module:Argument Wrapper")(cfg.aliases_t, { in_citeq_args, mw.loadData("Module:Art pref/data")["استشهاد بويكي بيانات"] }, cfg.numbered_aliases_t)
-- local A = argument_wrapper(in_citeq_args)
local loaded_args = {}
for _, args_table in pairs({ cfg.simple_properties_t, cfg.used_args_t }) do
for k, _ in pairs(args_table) do
if A[k] then
citeq_args[k] = A[k]
if k ~= A:ORIGIN(k) then
origin_args[k] = A:ORIGIN(k)
loaded_args[#loaded_args + 1] = A:ORIGIN(k)
else
loaded_args[#loaded_args + 1] = k
end
end
end
end
for k, v in pairs(in_citeq_args) do
if not in_array(k, loaded_args) then
citeq_args[k] = v
end
end
end
-- if title supplied, flag to not read html title
local titleforced = (citeq_args.title ~= nil)
local default_opt = { rank = "preferred normal", fetchwikidata = "ALL", onlysourced = false, noicon = true, linksproject =
cfg.config_t.linksproject, wikilinkprefix = cfg.config_t.wikilinkprefix }
if citeq_args.volume or citeq_args.volume then
local qualifiedaspossible = {}
if citeq_args.volume then
qualifiedaspossible['P478'] = citeq_args.volume
end
if citeq_args.chapter then
qualifiedaspossible['P792'] = citeq_args.chapter
end
default_opt.qualifiedaspossible = qualifiedaspossible
end
Q = WdItem.WdItem:new(qid, default_opt, snak)
local oth = {}
-- put the language codes into a sequential table langcodes[]
local langcodes = getLanguages(citeq_args.language)
if not langcodes[1] then
-- try to find language of work
langcodes = _lang_code(Q)
end
if not langcodes[1] then
-- try fallback to journal's language
local journal_qid = Q:followQid("P1433")
langcodes = journal_qid and _lang_code(journal_qid) or {}
end
citeq_args.language = citeq_args.language or table.concat(langcodes, ", ")
langcodes = simplify_langauges(langcodes)
Q:setOptions({ langs = langcodes });
local labellang = langcodes[1] or 'ar'
rtl = rtl_lang[langcodes[1]] or false
-- loop through list of simple properties and get their values in citeq_args
for name, data in pairs(cfg.simple_properties_t) do
local opt = { maxvals = data.maxvals, linked = data.linked, qual = data.qual, hijri = data.hijri }
if data.no_vol_qual then opt.qualifiedaspossible = {}; end
citeq_args[name] = citeq_args[name] or Q:getValue(data.id, opt)
if not citeq_args[name] and data.populate_from_journal then
local publishedin = Q:getValue("P1433", { maxvals = 0, qual = data.id, qualsonly = true })
citeq_args[name] = publishedin or Q:getPropOfProp("P1433", data.id, { maxvals = data.maxvals })
end
if citeq_args[name] and snak[data.id] then
snak[data.id] = nil
end
--- translate unknown value
if citeq_args[name] == "Unknown" and rtl then
citeq_args[name] = cfg.i18n_t.ar["unknown-" .. name] or cfg.i18n_t.ar["unknown"]
end
-----------------
if data.others then
oth[#oth + 1] = citeq_args[name] and
((rtl and cfg.i18n_t.ar[name] or name:gsub("^%l", string.upper)) .. ": " .. citeq_args[name])
citeq_args[name] = nil
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.journal = citeq_args.journal and
citeq_args.journal:gsub("^''", ""):gsub("''$", ""):gsub("|''", "|"):gsub("'']]", "]]")
citeq_args.ol = citeq_args.ol or (Q:getValue("P648", { maxvals = 1 }) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
-- TBD. Take care of |ol-access=?
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
citeq_args.isbn = citeq_args.isbn or
Q:getValue("P957", { maxvals = 1, rank = "best" }) -- try ISBN 10 (only one value accepted)
if citeq_args.page then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
-- Orginal Date
if not citeq_args['orig-date'] then
local work, origdate, origDateS = Q:getStatements('P629'):getBestOne():getRawValue()
local origOpt = { rank = "best", maxvals = 1, onlysourced = false, noicon = true }
local ishijri = false;
if has_value(work) then
local workQ = WdItem.newItem(work, origOpt)
origDateS = workQ:getStatements('P577', { df = 'y', qualifiedaspossible = { P4241 = '*' } }):getBestOne()
origdate = origDateS:getValue({ df = 'y', hijri = true })
if has_value(origdate) then
ishijri = true
else
origdate = origDateS:getValue({ df = 'y' })
end
end
if not has_value(origdate) then
local author = Q:getStatements('P50'):getBestOne():getRawValue()
if has_value(author) then
local authorQ = WdItem.newItem(author, origOpt)
origDateS = authorQ:getStatements('P570', { df = 'y', qualifiedaspossible = { P4241 = '*' } })
:getBestOne()
origdate = origDateS:getValue({ df = 'y', hijri = true })
if has_value(origdate) then
ishijri = true
else
origdate = origDateS:getValue({ df = 'y' })
end
end
end
if has_value(origdate) then
local printDateS, printDate = Q:getStatements("P577", { df = 'y', qualifiedaspossible = { P4241 = '*' } })
:getBestOne()
if ishijri then
printDate = printDateS:getValue({ hijri = true })
if has_value(printDate) then
if (tonumber(origdate) or 3000) < (tonumber(printDate) or 0) then
citeq_args['orig-date'] = origdate .. 'هـ'
end
else
if (tonumber(origDateS:getValue({ df = 'y'})) or 3000) < (tonumber(printDateS:getValue({ df = 'y'})) or 0) then
citeq_args['orig-date'] = origdate .. 'هـ'
end
end
else
printDate = printDateS:getValue()
if (has_value(printDate) and ((tonumber(origdate) or 3000) < (tonumber(printDate) or 0)))
or not has_value(printDate) then
citeq_args['orig-date'] = origdate
end
end
end
end
local url
--find formatted url
if citeq_args.url == nil then
if snak ~= {} then
for k, v in pairs(snak) do
if (v[1].datatype == "external-id") then
citeq_args.url = mw.ustring.match(mw.wikibase.formatValue(v[1]), "%[(https?://[^%s%]]+)")
snak[k] = nil
break;
end
end
end
if citeq_args.url == nil and pqid and qid then
local refproperty = Q:getStatements("P1687"):getRawValue()
for k, p in ipairs(refproperty) do
if has_value(p) then
local refval = WdItem.WdItem:new(pqid):getValue(p, {fullidurl=true})
if has_value(refval) then
citeq_args.url = refval
break;
end
end
end
end
end
if not citeq_args.url then
local S953 = Q:getStatements("P953"):getBestOne()
local S953_val = S953:getRawValue()
citeq_args.url = has_value(S953_val) and S953_val or nil
if citeq_args.url then
if mw.ustring.match(citeq_args.url, "archive.org/details/") and citeq_args.page then
page_offset = tonumber(S953:getRawQual('P8330')[1]) or 0
if not citeq_args.volume or
(citeq_args.volume and (citeq_args.volume == S953:getRawQual('P478')[1])) then
local pagenum = tonumber(citeq_args.page) or tonumber(mw.text.split(citeq_args.page, '%D')[1])
if pagenum then
citeq_args.url = mw.ustring.gsub(citeq_args.url, "/?$", "") ..
"/page/n" .. (pagenum + page_offset - 1) .. "/mode/1up"
end
end
end
set_archive_args(S953:getRawQual('P1065')[1], citeq_args)
end
end
if not citeq_args.url then
for i, pr in ipairs({ "P856", "P2699" }) do
local surl = Q:getStatements(pr):getBestOne()
if surl then
local url = surl:getRawValue()
if has_value(url) then
citeq_args.url = url
set_archive_args(surl:getRawQual('P1065')[1], citeq_args)
break;
end
end
end
end
if not titleforced then
-- Handle subtitle.
if citeq_args.title then
local subtitle = Q:getValue('P1680');
if subtitle then
citeq_args.title = citeq_args.title .. ": " .. subtitle
end
end
local htmltitle = Q:getValue("P1476", { qual = "P6833", maxvals = 1, qualsonly = true })
if htmltitle then
citeq_args.title = htmltitle:gsub("</?i>", "''")
else
local title_display = citeq_args.title
or (langcodes[1] and mw.wikibase.getLabelByLang(qid, langcodes[1]))
or mw.wikibase.getLabel(qid)
if title_display and snak and snak.P1810 then
title_display = title_display .. " | " .. snak.P1810[1].datavalue.value
snak.P1810 = nil
end
title_display = title_display or ("No label or title -- debug: " .. qid)
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
else
local slink = mw.wikibase.getSitelink(qid, cfg.config_t.linksproject)
local slink_flag = false
local wrap_title = ''
local wslink = false
if not slink then
-- See if we have wikisource
if not citeq_args.url then
local wikisource_sitelink = mw.wikibase.getSitelink(qid, cfg.i18n_t.wikisource) or nil
if wikisource_sitelink then
slink = ':s:' .. wikisource_sitelink
wslink = true
end
end
end
if citeq_args.title then
if slink then
wrap_title = wrap_nowiki(citeq_args.title)
slink_flag = true
else
citeq_args.title = wrap_nowiki(citeq_args.title)
end
else
if slink and not wslink then
if slink:lower() == title_display:lower() then
citeq_args.title = '[[' .. slink .. ']]'
else
wrap_title = wrap_nowiki(slink:gsub("%s%(.+%)$", ""):gsub(",.+$", ""))
slink_flag = true
end
elseif wslink then
wrap_title = wrap_nowiki(title_display)
slink_flag = true
else
citeq_args.title = wrap_nowiki(title_display)
end
end
if slink_flag then
if slink == wrap_title and not wslink then -- direct link
citeq_args.title = '[[' .. slink .. ']]'
else -- piped link
citeq_args.title = '[[' .. slink .. '|' .. wrap_title .. ']]'
end
end
end
end
end
-- replace no-break space by space, User:Mr. Ibrahem
if citeq_args.title then
citeq_args.title = mw.ustring.gsub(citeq_args.title, "\194\160", " ")
end
if is_set(qid) then
if not is_set(citeq_args.author) and not is_set(citeq_args.author1) then -- if neither are set, try to get authors from Wikidata
get_name_list('author', citeq_args, Q, wdlinks, labellang) -- modify citeq_args table with authors from Wikidata
end
if not is_set(citeq_args.editor) and not is_set(citeq_args.editor1) then -- if neither are set, try to get editors from Wikidata
get_name_list('editor', citeq_args, Q, wdlinks, labellang) -- modify citeq_args table with editors from Wikidata
end
if not is_set(citeq_args.translator) and not is_set(citeq_args.translator1) then -- if neither are set, try to get translators from Wikidata
get_name_list('translator', citeq_args, Q, wdlinks, labellang) -- modify citeq_args table with translators from Wikidata
end
end
for k, v in pairs(citeq_args) do
if in_array(v, { '(())', 'unset', 'ignore' }) or 'string' ~= type(k) then -- empty accept-as-is-written (()) markup to indicate an empty/unused parameter value, other ((...)) markups are deliberately passed down to {{citation}}
citeq_args[k] = nil
elseif in_array(v, { '((unset))', '((ignore))' }) then -- strip off markup for free-text values clashing with local keywords
citeq_args[k] = 'unset'
end
end
set_display_authors( citeq_args, 'author' )
set_display_authors( citeq_args, 'editor' )
-- change edition to ordinal if it's set and numeric
if (rtl == false) then citeq_args.edition = citeq_args.edition and makeOrdinal(citeq_args.edition) end
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
if citeq_args.journal then
template = template or "بدورية محكمة"
elseif citeq_args.isbn then
template = template or "بكتاب"
citeq_args.asin = nil -- suppress ASIN if ISBN exists
elseif citeq_args.website then
template = template or "بويب"
end
-- template is CS1 designator: journal, web, news, etc.
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
local citeclasses = { ["بدورية محكمة"] = 'journal', ["بكتاب"] = "book", ["بويب"] = "web" }
cite_class = cfg.citation_class_map_t[template] and template or citeclasses[template]
template = cfg.citation_class_map_t[template] or ("استشهاد " .. template)
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "استشهاد"
end
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
local id = cfg.i18n_t.wdq .. ':[[:d:' .. qid .. '|' .. qid .. ']]'
local old_id = citeq_args.id
if wdlinks then -- show WD logo
id = id .. '[[ملف:Wikidata-logo.svg|16px|alt=|link=]]' -- possibly replace by WD edit icon?
end
if is_set(old_id) then
citeq_args.id = old_id .. list_sep .. id -- append to user-specified contents
else
citeq_args.id = id
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
-- use real param names for CS1 messages
for k, v in pairs(origin_args) do
if citeq_args[k] and citeq_args[k] == in_citeq_args[v] then
citeq_args[v] = citeq_args[k]
citeq_args[k] = nil
end
end
-- if |expand=<anything>, write a nowiki'd version to see what the {{citation}} template call looks like
if expand then
local expand_args = { "{{" .. template .. "\n" } -- init with citation template
if expand == "self" then
citeq_args.id = old_id -- restore original |id= parameter
expand_args = { cfg.i18n_t.cite_q .. qid } -- expand to itself
end
-- make a sortable table and sort it by param name
local sorttable = {}
for param, val in pairs(citeq_args) do
sorttable[#sorttable + 1] = { param, val }
end
table.sort(sorttable, comp_key)
-- add contents to expand_args
for idx, val in ipairs(sorttable) do
expand_args[#expand_args + 1] = val[1] .. '=' .. val[2] .. "\n"
end
-- make the nowiki'd string and done
return frame:preprocess(table.concat({ '<syntaxhighlight lang="wikitext" inline="1">', table.concat(expand_args,
' |') .. '}}', '</syntaxhighlight>' }));
end
local erratumid = Q:getPropertyIDs("P2507", { maxvals = 1 })
if erratumid then
erratumid = " [[d:" .. erratumid .. "|" .. cfg.i18n_t.erratum .. "]]" .. cfg.i18n_t.trackingcats.erratum
else
erratumid = ""
end
local opt_cat = ''
if Q:getValue("P5824") then
opt_cat = cfg.i18n_t.trackingcats.retracted
end
if Q:getValue("P1366") then
opt_cat = opt_cat .. cfg.i18n_t.trackingcats.replaced
end
if not citeq_args.title then -- emit category link if missing title
opt_cat = opt_cat .. cfg.i18n_t.trackingcats['no-label-or-title'];
end
if citeq_args.wikidatacite then
return frame:expandTemplate { title = template, args = citeq_args } ..
erratumid .. opt_cat -- render the template
else
local CS = require("Module:Citation/CS1" .. sandbox)
return CS._citation(frame, citeq_args, { ['CitationClass'] = cite_class }) .. erratumid .. opt_cat
end
end
--[[-------------------------< C I T E W I K I D A T A >------------------------------------------------------------------
format wikidata reference
--]]
local function _cite_wikidata(ref, pqid, expand)
-- early exit
if not ref then
return nil
end
local snak = ref.snaks
-- مراجع غير مقبولة
if snak.P143 or snak.P3452 then
return nil
end
local hash = ref.hash
if not is_set(hash) then
mw.log ("hash is not set")
return nil
end
local hashname = (is_set(sandbox) and 'wikidata-s-' or 'wikidata-') .. hash
local frame = mw.getCurrentFrame()
if ref_cash[hash] ~= nil then
if ref_cash[hash] == false then
return nil
end
return frame:extensionTag("ref", '' , { name = hashname })
end
local citeq_args = {}
-- مذكور في
if snak.P248 then
for _, prop in pairs(snak.P248) do
if prop.snaktype == "value" then
citeq_args.qid = prop.datavalue.value.id
break;
end
end
snak.P248 = nil;
end
if citeq_args.qid and is_rejected(citeq_args.qid) == true then
return nil
end
local reference
citeq_args.snak = snak
citeq_args.pqid = pqid
citeq_args.wikidatacite = 1
citeq_args.expand = expand
if citeq_args.qid then
reference = _cite_q(citeq_args)
else
local has_properties = false
for k, _ in pairs(cfg.used_properties_t) do
if snak[k] then
has_properties = true;
break;
end
end
reference = (has_properties and _cite_web(citeq_args) or nil)
end
if is_set(reference) then
reference = frame:extensionTag("ref", reference, { name = hashname })
ref_cash[hash] = true
else
ref_cash[hash] = false
end
return reference
end
local function cite_q(frame)
local args = {}
for k, v in pairs(frame:getParent().args) do
if v ~= "" then args[k] = v end
end
for k, v in pairs(frame.args) do
if v ~= "" then args[k] = v end
end
args.qid = args.qid or args[1] or ""
if args.qid == "" then return nil end
args[1] = nil
local citesep = (args.citesep or "")
if citesep == "" then citesep = ", " end
citesep = citesep:gsub('"', '') -- strip double quotes after setting default to allow |citesep="" as a blank separator
args.citesep = nil
local tag = args.tag or ""
if tag == "" then tag = nil end
args.tag = nil
local list = args.list or ""
if list == "" then list = nil end
args.list = nil
args.language = args.language or args.lang
args.lang = nil
local cites = {}
for q in args.qid:gmatch("Q%d+") do
-- make a new copy of the arguments
local newargs = {}
for k, v in pairs(args) do
if k ~= "qid" then
newargs[k] = v
end
end
newargs.qid = q
if tag == "ref" then
cites[#cites + 1] = frame:callParserFunction { name = "#tag:ref", args = { _cite_q(newargs), name = q } }
-- expand like this: args = { _cite_q(newargs), name = 'foo', group = 'bar' }
else
cites[#cites + 1] = _cite_q(newargs)
end
end
if list then
return frame:expandTemplate { title = list, args = cites }
else
return table.concat(cites, citesep)
end
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
makeOrdinal = makeOrdinal,
getLangOfProp = getLangOfProp,
_cite_wikidata = _cite_wikidata,
_cite_q = _cite_q,
cite_q = cite_q
}
r1kncvk3r7rz4tw6x80ebzrbajbl80u
وحدة:Cite Q/ملعب2
828
63218
275447
2026-09-15T10:02:49Z
حبيشان
29714
استيراد من ar.wiktionary.org
275447
Scribunto
text/plain
--[[ Cite Q
النسخة العربية
معدلة بكثافة
]]
local p = {}
require('strict')
local sandbox = ''
local wdib = require('Module:WikidataIB' .. sandbox)
local getValue = wdib._getValue
local getValueFromSnaks = wdib._getValueFromSnaks
local getPropOfProp = wdib._getPropOfProp
local followQid = wdib._followQid
local getPropertyIDs = wdib._getPropertyIDs
local rtl_lang = {ar = true, fa = true, ur = true, ku = true,
he = true, arc = true, dv = true, ha = true, khw = true,
ks = true, ps = true, yi = true, ota = true }
local ref_cash = {}
local i18n = {
["unknown-author"] = mw.wikibase.getLabel("Q4233718"):gsub("^%l", mw.ustring.upper),
-- Next Line Edited
["unknown-author-trackingcat"] = "", -- [[تصنيف:Cite Q - author unknown]]
["ordinal"] = {
[1] = "st",
[2] = "nd",
[3] = "rd",
["default"] = "th"
},
["months"] = {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
},
["ar"] = {
illustrator = "رسم",
composer = "تلحين",
animator = "رسم الرسوم المتحركة",
director = "إخراج",
screenwriter = "سيناريو",
signatory = "توقيع",
presenter = "تقديم",
performer = "أداء",
annotator = "تحقيق",
reviewer = "مراجعة",
unknown = "مجهول",
supervisor = "إشراف",
["unknown-publication-date"] = '<abbr class="abbr" title="دون تاريخ">د.ت.</abbr>',
["unknown-publisher"] = '<abbr class="abbr" title="دون ناشر">د.ن.</abbr>',
wikidata = "ويكي بيانات"
}
}
local rejected = {
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
}
}
-------------------------------------------------------------------------------
-- makeOrdinal needs to be internationalised along with the above i18n
-- takes cardinal number as a numeric and returns the ordinal as a string
-- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc.
-------------------------------------------------------------------------------
p.makeOrdinal = function(cardinal)
local card = tonumber(cardinal)
if not card then return cardinal end
local ordsuffix = i18n.ordinal.default
if card % 10 == 1 then
ordsuffix = i18n.ordinal[1]
elseif card % 10 == 2 then
ordsuffix = i18n.ordinal[2]
elseif card % 10 == 3 then
ordsuffix = i18n.ordinal[3]
end
-- In English, 1, 21, 31, etc. use 'st', but 11, 111, etc. use 'th'
-- similarly for 12 and 13, etc.
if (card % 100 == 11) or (card % 100 == 12) or (card % 100 == 13) then
ordsuffix = i18n.ordinal.default
end
return card .. ordsuffix
end
-- 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 = {
-- Next Line Edited
publisher = {id = "P123", maxvals = 3},
oclc = {id = "P243", maxvals = 1},
['publication-place'] = {id = "P291", maxvals = 0, linked = 'no'}, -- 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 = 'no'}, -- 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},
['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},
-- 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},
at = {id = "P958", maxvals = 0, populate_from_journal = 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
}
-- all_used_properties
local used_properties = {
P1071 = {arg= "place", maxvals = 0, linked = 'no'}, -- written-at place
P110 = {arg= "illustrator", maxvals = 10, others = true}, -- goes to "others" section
P11105 = {arg= "annotator", maxvals = 10, others = true}, -- goes to "others" section
P1144 = {arg= "lccn", maxvals = 1},
P1184 = {arg= "hdl", maxvals = 1}, -- take care of |hdl-access=?
P1208 = {arg= "ismn", maxvals = 1},
P123 = {arg= "publisher", maxvals = 3},
P1433 = {arg= "journal", maxvals = 1},
P1476 = {arg= "title", rank="p n"},
P1680 = true,
P175 = {arg= "performer", maxvals = 10, others = true}, -- goes to "others" section
P179 = {arg= "series", maxvals = 1, populate_from_journal = true},
P1891 = {arg= "signatory", maxvals = 10, others = true}, -- goes to "others" section
P1932 = true,
P2093 = true, -- author string
P212 = {arg= "isbn", maxvals = 1, populate_from_journal = true}, -- ISBN 13
P236 = {arg= "issn", maxvals = 1, populate_from_journal = true}, -- distinguish from |eissn= for electronic issues?
P243 = {arg= "oclc", maxvals = 1},
P2699 = true,
P291 = {arg= "publication-place", maxvals = 0, linked = 'no'}, -- publication place (don't put into |place=; is treated specially in {{citation}} if both are given)
P304 = {arg= "pages", maxvals = 0, populate_from_journal = true},
P348 = {arg= "version", maxvals = 0},
P356 = {arg= "doi", maxvals = 1}, -- take care of |doi-broken-date= (WD "reason for deprecation"/"stated as") and |doi-access= (WD "access status")?
P371 = {arg= "presenter", maxvals = 10, others = true}, -- goes to "others" section
P3784 = {arg= "citeseerx", maxvals = 1},
P3894 = {arg= "osti", maxvals = 1}, -- take care of |osti-access=?
P393 = {arg= "edition", maxvals = 0},
P3951 = {arg= "biorxiv", maxvals = 1},
P4032 = {arg= "reviewer", maxvals = 10, others = true}, -- goes to "others" section
P407 = true,
P433 = {arg= "issue", 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)
P478 = {arg= "volume", maxvals = 0, populate_from_journal = true},
P50 = true, -- author
P57 = {arg= "director", maxvals = 10, others = true}, -- goes to "others" section
P5749 = {arg= "asin", maxvals = 1}, -- What about |asin-tld=? (WD examples resolve to .com at present, but may change)
P5769 = true, --editor
P577 = {arg= "publication-date", maxvals = 1, populate_from_journal = true}, -- publication date (don't use |date=; is treated specially in {{citation}} if both are given.)
P58 = {arg= "screenwriter", maxvals = 10, others = true}, -- goes to "others" section
P655 = true,
P6942 = {arg= "animator", maxvals = 10, others = true}, -- goes to "others" section
P698 = {arg= "pmid", maxvals = 1},
P7604 = {arg ="supervisor", maxvals = 3, others = true}, -- goes to "others" section
P792 = {arg= "chapter", maxvals = 1},
P818 = {arg= "arxiv", maxvals = 1},
P819 = {arg= "bibcode", maxvals = 1}, -- take care of |bibcode-access=?
P8299 = {arg= "s2cid", maxvals = 1}, -- take care of |s2cid-access=?
P856 = true,
P86 = {arg= "composer", maxvals = 10, others = true}, -- goes to "others" section
P888 = {arg= "jstor", maxvals = 1}, -- take care of |jstor-access=?
P889 = {arg= "mr", maxvals = 1},
P892 = {arg= "rfc", maxvals = 1},
P893 = {arg= "ssrn", maxvals = 1},
P894 = {arg= "zbl", maxvals = 1},
P932 = {arg= "pmc", maxvals = 1}, -- take care of |pmc-embargo-date= (WD "reason for deprecation")?
P953 = true,
P958 = {arg= "at", maxvals = 0, populate_from_journal = true}, -- also incorporate lines (P7421) and columns (P3903) into this (cite map also supports |section=)
P98 = true,
P854 = true,
}
--[[--------------------------< I S _ S E T >--------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
local function is_set( var )
return not (var == nil or var == '')
end
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------
Whether needle is in haystack (taken from Module:Citation/CS1/Utilities)
]]
local function in_array( needle, haystack )
if needle == nil then
return false
end
for n, v in ipairs( haystack ) do
if v == needle then
return n
end
end
return false
end
--[[--------------------------< A C C E P T _ V A L U E >-------------------------------------------------------
Accept WD value by framing in ((...)) if param_val is equal to keyword; else pass-through WD value as is.
]]
local function accept_value( param_val, wd_val )
local val = param_val
if val then
if in_array (val, {'accept', '))((', ':d:'}) then
val = '((' .. wd_val .. '))'
elseif '((accept))' == val then
val = 'accept'
elseif '(())(())' == val then
val = '))(('
elseif '((:d:))' == val then
val = ':d:'
else
val = wd_val
end
end
return val
end
-- function to fetch a value to display
local function makelink(v, out, link, maxpos, wdl, lang)
local label
if v.mainsnak.snaktype == "value" then
if v.mainsnak.datatype == "wikibase-item" then
local qnumber = v.mainsnak.datavalue.value.id
local sitelink = mw.wikibase.getSitelink(qnumber)
if qnumber == "Q2818964" then sitelink = nil end -- suppress link to "Various authors"
-- من المهم التحقق من وجود datavalue
if v.qualifiers and v.qualifiers.P1932 and v.qualifiers.P1932[1].datavalue then
label = v.qualifiers.P1932[1].datavalue.value
else
label = mw.wikibase.getLabelByLang(qnumber, lang) or mw.wikibase.getLabel(qnumber)
if label then
label = mw.text.nowiki(label)
else
label = qnumber -- should add tracking category
end
end
local position = maxpos + 1 -- Default to 'next' author.
-- use P1545 (series ordinal) instead of default position.
if v["qualifiers"] and v.qualifiers["P1545"] and v.qualifiers["P1545"][1] then
position = tonumber(v.qualifiers["P1545"][1].datavalue.value)
end
maxpos = math.max(maxpos, position)
if sitelink then
-- just the plain name,
-- but keep a record of the links, using the same index
out[position] = label
link[position] = sitelink
else
if wdl then
-- show that there's a Wikidata entry available
out[position] = "[[:d:Q" .. v.mainsnak.datavalue.value["numeric-id"] .. "|" .. label .. "]] <span title='" .. i18n["errors"]["local-article-not-found"] .. "'>[[ملف:Wikidata-logo.svg|16px|alt=|link=]]</span>"
else
-- no Wikidata links wanted, so just give the plain label
out[position] = label
end
end
elseif v.mainsnak.datatype == "string" then
local position = maxpos + 1 -- Default to 'next' author.
-- use P1545 (series ordinal) instead of default position.
if v["qualifiers"] and v.qualifiers["P1545"] and v.qualifiers["P1545"][1] then
position = tonumber(v.qualifiers["P1545"][1].datavalue.value)
end
maxpos = math.max(maxpos, position)
out[position] = v.mainsnak.datavalue.value
else
-- not a wikibase-item or a string!
end
else
-- code here if we want to return something when author is "unknown"
-- من المهم التحقق من وجود datavalue
if v.qualifiers and v.qualifiers.P1932 and v.qualifiers.P1932[1].datavalue then
label = v.qualifiers.P1932[1].datavalue.value
else
label = i18n["unknown-author"] .. (i18n["unknown-author-trackingcat"] or "")
end
maxpos = maxpos + 1
out[maxpos] = label
end
return maxpos
end
--[=[-------------------------< G E T _ N A M E _ L I S T >----------------------------------------------------
get_name_list -- adapted from getAuthors code taken from Module:RexxS
arguments:
nl_type - type of name list to fetch: nl_type = 'author' for authors; 'editor' for editors; 'translator' for translators
args - pointer to the parameter arguments table from the template call
qid - value from |qid= parameter; the Q-id of the source (book, etc.) in qid
wdl - value from the |wdl= parameter; a Boolean passed to enable links to Wikidata when no article exists
returns nothing; modifies the args table
]=]
local function get_name_list (nl_type, args, qid, wdl, lang, refsnak)
local propertyID = "P50"
local fallbackID = "P2093" -- author name string
if nl_type =="author" then
propertyID = 'P50' -- for authors
fallbackID = 'P2093' -- author-string
elseif nl_type =="editor" then
propertyID = 'P5769' -- "editor-in-chief"
fallbackID = 'P98' -- for editors - So-called "fallbacks" are actually a second set of properties processed
-- TBD. Take book series editors into account as well (if they have a separate P code as well)?
elseif nl_type == "translator" then
propertyID = 'P655' -- for translators
fallbackID = nil
-- elseif 'contributor' == nl_type then
-- f.e. author of forewords (P2679) and afterwords (P2680); requires |contribution=, |title= and |author=
-- propertyID = 'P' -- for contributors
-- fallbackID = nil
else
return -- not specified so return
end
-- wdl is a Boolean passed to enable links to Wikidata when no article exists
-- if "false" or "no" or "0" is passed set it false
-- if nothing or an empty string is passed set it false
if wdl and (#wdl > 0) then
wdl = wdl:lower()
wdl = in_array (wdl, {"false", "no", "0"})
else
-- wdl is empty, so
wdl = false
end
local props = nil
local fallback = nil
if qid then
if mw.wikibase.entityExists(qid) then
props = mw.wikibase.getAllStatements(qid, propertyID)
if #props == 0 and fallbackID then
fallback = mw.wikibase.getAllStatements(qid, fallbackID)
end
end
elseif refsnak then
props = refsnak[propertyID]
if not props and fallbackID then
fallback = refsnak[fallbackID]
end
end
-- Make sure it actually has at least one of the properties requested
if not (props and props[1]) and not (fallback and fallback[1]) then
return nil
end
-- So now we have something to return:
-- table 'out' is going to store the names(s):
-- and table 'link' will store any links to the name's article
local out = {}
local link = {}
local maxpos = 0
if props and props[1] then
for k, v in pairs(props) do
maxpos = makelink(v, out, link, maxpos, wdl, lang)
end
end
if fallback and fallback[1] then
-- second properties
for k, v in pairs(fallback) do
maxpos = makelink(v, out, link, maxpos, wdl, lang)
end
end
-- if there's anything to return, then insert the additions in the template arguments table
-- in the form |author1=firstname secondname |author2= ...
-- Renumber, in case we have inconsistent numbering
local keys = {}
for k, v in pairs(out) do
keys[#keys + 1] = k
end
table.sort(keys) -- as they might be out of order
for i, k in ipairs(keys) do
out[k] = out[k]:gsub (''', '\''); -- prevent cs1|2 multiple names categorization; replace html entity with the actual character
if args[nl_type .. i] then -- name gets overwritten
-- pull corresponding -link only if overwritten name is same as WD name
if link[k] and (args[nl_type .. i] == out[k]) then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
else -- name does not get overwritten, so pull name from WD
args[nl_type .. i] = out[k]
if link[k] then
args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn
end
end
end
end
-- gets language codes used for a monolingual text property as a table
function p._getLangOfProp(qid, pid)
if not pid or not qid then return {} end
local out = {}
local props = mw.wikibase.getAllStatements(qid, pid)
for i, v in ipairs(props) do
if v.mainsnak.datatype == "monolingualtext" and v.mainsnak.datavalue then
out[#out + 1] = v.mainsnak.datavalue.value.language
end
end
return out
end
function p._getLangOfSnakProp(snak, pid)
if not pid or not snak then return {} end
local out = {}
local props = snak[pid]
for i, v in ipairs(props) do
if v.datatype == "monolingualtext" and v.datavalue then
out[#out + 1] = v.datavalue.value.language
end
end
return out
end
function p.getLangOfProp(frame)
local pid = frame.args.pid or mw.text.trim(frame.args[1] or "")
if pid == "" then return end
local qid = frame.args.qid
if qid == "" then qid = nil end
return table.concat(p._getLangOfProp(qid, pid), ", ")
end
-- gets the language codes of a Wikidata entry as a table
local function _lang_code(qid)
local lc = getPropOfProp( {qid = qid, prop1 = "P407", prop2 = "P424", ps = 1} )
if lc then return mw.text.split( lc, "[,، ]+" ) end --modified
lc = getPropOfProp( {qid = qid, prop1 = "P407", prop2 = "P218", ps = 1} )
if lc then return mw.text.split( lc, "[,، ]+" ) end --modified
return p._getLangOfProp(qid, "P1476")
end
function p.lang_code(frame)
return table.concat(_lang_code(frame.args.qid or mw.text.trim(frame.args[1] or "")), ", ")
end
-- export for debug
function p.getPropOfProp(frame)
return getPropOfProp(frame.args)
end
-- wraps a string in nowiki unless disable flag is set
local function wrap_nowiki(str, disable)
if disable then return str or '' end
return mw.text.nowiki(str or '')
end
-- sort sequence table whose values are key-value pairs by key
local function comp_key(a, b)
return a[1] < b[1]
end
-- sort sequence table whose values are key-value pairs by value
local function comp_val(a, b)
return a[2] < b[2]
end
-- ref filtering for citing from wikidata
local function is_rejected(item)
-- rejected Q
if rejected.sources[item]==true then
return true;
end
-- rejected Properties
local item_entity = mw.wikibase.getEntity(item);
for _, v in pairs(rejected.properties) do
if (#item_entity:getAllStatements( v )>0 ) then
return true;
end
end
-- Rejected InatanceOf
local instance = item_entity:getAllStatements( "P31" )
for _,v in pairs(instance) do
if rejected.instances[v.mainsnak.datavalue.value.id] then
return true;
end
end
--No used Properties
local has_properties = false
for k, _ in pairs(used_properties) do
if (#item_entity:getAllStatements( k )>0 ) then
has_properties = true;
break;
end
end
return not has_properties;
end
function p._cite_web(citeq_args)
local refsnak= citeq_args.snak
citeq_args.snak = nil
-- retrieve all the parameters
local pqid = citeq_args.pqid
citeq_args.pqid = nil
local wdl = false
local qid = nil
local multi_args = {
P50 = "author",
P2093 = "author",
P5769 = "editor",
P98 = "editor",
P655 = "translator",
}
-- find language
local langcodes = {}
if refsnak["P1476"] then
langcodes = p._getLangOfSnakProp(refsnak, "P1476")
citeq_args.language = citeq_args.language or langcodes[1]
end
langcodes[#langcodes+1] = 'ar'
langcodes[#langcodes+1] = 'en'
local labellang = langcodes[1]
local oth={}
for i in pairs(refsnak) do
local label = ""
-- multiple authors may be given
if refsnak[i][1].snaktype ~= 'novalue' then
if multi_args[i] then
get_name_list (multi_args[i], citeq_args, qid, wdl, labellang)
elseif used_properties[i] and type(used_properties[i]) == "table" then
local data = used_properties[i]
local langidx = 1
while citeq_args[data.arg] == nil and langidx<=#langcodes do
citeq_args[data.arg] = getValueFromSnaks( {i, fwd = "ALL", osd = "no", noicon = "true", maxvals = data.maxvals, linked = data.linked, rank = data.rank or "best", lang=langcodes[langidx], snak = refsnak } )
if citeq_args[data.arg] == nil then
break
elseif citeq_args[data.arg]:find('[[تصنيف:Articles with missing Wikidata information]]', 1, true) then
citeq_args[data.arg] = nil
langidx = langidx + 1
else
break
end
end
if not citeq_args[data.arg] then
citeq_args[data.arg] = getValueFromSnaks( {i, ps = 1, qid = qid, maxvals = data.maxvals, linked = data.linked, snak = refsnak} )
if citeq_args[data.arg]:find('^Q%d+$') then -- qid was returned
-- try fallback to qid's native language
local qid_languages = _lang_code(citeq_args[data.arg])
citeq_args[data.arg] = getValueFromSnaks( {i, ps = 1, qid = qid, maxvals = data.maxvals, linked = data.linked, lang = qid_languages[1], snak = refsnak} )
if citeq_args[data.arg]:find('^Q%d+$') then -- qid was returned again
citeq_args[data.arg] = nil
else
-- record the language found if no lang specified
citeq_args.language = citeq_args.language or qid_languages[1]
end
end
end
--- translate unknown value
if citeq_args[data.arg] == "Unknown" then
citeq_args[data.arg] = i18n.ar["unknown-" .. data.arg] or i18n.ar["unknown"]
end
-----------------
if data.others then
oth[#oth + 1] = citeq_args[data.arg] and ((i18n.ar[data.arg] or data.arg:gsub("^%l", string.upper)) .. ": " .. citeq_args[data.arg])
citeq_args[data.arg] = nil
end
elseif used_properties[i] then
if i == "P648" then
citeq_args.ol = (getValueFromSnaks( {"P648", ps = 1, maxvals = 1, snak = refsnak, citeq_args.ol } ) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
elseif i == "P957" then
citeq_args.isbn = getValueFromSnaks( {"P957", ps = 1, maxvals = 1, rank="best", snak = refsnak } )
elseif in_array(i,{"P854", "P953", "P856", "P2699"}) then
local url;
for _, pr in ipairs( {"P854", "P953", "P856", "P2699"} ) do
url = getValueFromSnaks( {pr, ps = 1,osd = "no", noicon = "true", maxvals = 1, snak = refsnak } )
if url then
citeq_args.url = mw.text.split( url, " (", true )[1]
local arcurl = mw.ustring.match( url, " %((.*)%)" ) -- when there is an archive url, <url> holds: url<space>(archive url); here extract the archive url if present
if arcurl then
local arcy, arcm, arcd = arcurl:match("(20%d%d)%p?(%d%d)%p?(%d%d)")
if arcy and arcm and arcd then
citeq_args["archive-url"] = arcurl
citeq_args["archive-date"] = tonumber(arcd) .. " " .. i18n.months[tonumber(arcm)] .. " " .. arcy
end
end
break
end
end
end
end
end
end
if citeq_args.url then
if refsnak["P813"] then
citeq_args.accessdate = getValueFromSnaks( {"P813", ps = 1,osd = "no", noicon = "true", maxvals = 1, snak = refsnak } )
end
if refsnak["P1065"] and refsnak["P2960"] then
citeq_args["archive-url"] = getValueFromSnaks( {"P1065", ps = 1,osd = "no", noicon = "true", maxvals = 1, snak = refsnak } )
citeq_args["archive-date"]= getValueFromSnaks( {"P2960", ps = 1,osd = "no", noicon = "true", maxvals = 1, snak = refsnak } )
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
-- if url then see if there's an archive: citeq_args.url
local url
if citeq_args.publisher == "Unknown" then -- look for "stated as" (P1932)
local stated_as = getValue( {"P123", ps = 1, qid = qid, maxvals = 1, qual="P1932", qo="y"} )
if stated_as then citeq_args.publisher = stated_as end
end
local title_display = citeq_args.title
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
end
-- TBD: incorporate |at, |sheets= and |sheet= here as well
-- Sort out what should happen if several of them are given at the same time
if citeq_args.page or citeq_args.p then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
for k, v in pairs(citeq_args) do
if in_array (v, {'(())', 'unset', 'ignore'}) or 'string' ~= type(k) then -- empty accept-as-is-written (()) markup to indicate an empty/unused parameter value, other ((...)) markups are deliberately passed down to {{citation}}
citeq_args[k] = nil
elseif in_array (v, {'((unset))', '((ignore))'}) then -- strip off markup for free-text values clashing with local keywords
citeq_args[k] = 'unset'
end
end
local author_count = 0
for k, v in pairs(citeq_args) do
if k:find("^author%d+$") then
author_count = author_count + 1
end
end
if author_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == citeq_args['display-authors'] then
citeq_args['display-authors'] = nil; -- unset because no longer needed
else
citeq_args['display-authors'] = citeq_args['display-authors'] or 3 -- limit to three displayed names
end
end
-- replace no-break space by space, User:Mr. Ibrahem
if citeq_args.title then
citeq_args.title = mw.ustring.gsub( citeq_args.title, "\194\160", " " )
end
local editor_count = 0
for k, v in pairs(citeq_args) do
if k:find("^editor%d+$") then
editor_count = editor_count + 1
end
end
if editor_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == citeq_args['display-editors'] then
citeq_args['display-editors'] = nil; -- unset because no longer needed
else
citeq_args['display-editors'] = citeq_args['display-editors'] or 3 -- limit to three displayed names
end
end
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
local template = "ويب"
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
template = "استشهاد " .. template
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "استشهاد"
end
citeq_args['no-tracking'] = 'true' -- لإيقاف ظهور تصانيف التتبع
return mw.getCurrentFrame():expandTemplate{title = template, args = citeq_args} -- render the template
end
--[[-------------------------< C I T E _ Q >------------------------------------------------------------------
Takes standard CS1|2 template parameters and passes all to {{citation}}. If neither of |author= and |author1=
are set, calls get_authors() to try to get an author name-list from Wikidata. The result is passed to
{{citation}} for rendering.
--]]
function p._cite_q (citeq_args)
local frame = mw.getCurrentFrame()
-- parameters that don't get passed to Citation
local expand = citeq_args.expand -- when set to anything, causes {{cite q}} to render <code><nowiki>{{citation|...}}</nowiki></code>
local qid = citeq_args.qid or citeq_args[1]
local wdl = citeq_args.wdl
local template = citeq_args.template
local cite_class = 'citation'
local rtl = true
local snak = citeq_args.snak or {}
local pqid = citeq_args.pqid
citeq_args.expand = nil
citeq_args[1] = nil
citeq_args.qid = nil
citeq_args.wdl = nil
citeq_args.template = nil
citeq_args.snak = nil
citeq_args.pqid = nil
local labellang = 'ar'
-- if title supplied, flag to not read html title
local titleforced = (citeq_args.title ~= nil)
local oth = {}
-- put the language codes into a sequential table langcodes[]
local langcodes = {}
if citeq_args.language then
-- check these are a supported language codes
for lc in mw.text.gsplit( citeq_args.language, "[,، ]+", false ) do --modified
langcodes[#langcodes+1] = mw.language.isSupportedLanguage(citeq_args.language) and citeq_args.language
end
end
if not langcodes[1] then
-- try to find language of work
langcodes = _lang_code(qid)
end
if not langcodes[1] then
-- try fallback to journal's language
local journal_qid = followQid({qid = qid, props = "P1433"})
langcodes = journal_qid and _lang_code(journal_qid)
end
citeq_args.language = citeq_args.language or table.concat(langcodes, ", ")
labellang = langcodes[1] or labellang
rtl = rtl_lang[langcodes[1]] or false
-- loop through list of simple properties and get their values in citeq_args
for name, data in pairs(simple_properties) do
citeq_args[name] = getValue( {data.id, fwd = "ALL", osd = "no", noicon = "true", qid = qid, maxvals = data.maxvals, linked = data.linked, rank = data.rank or "best", lang = labellang, snak = snak, citeq_args[name], qual=data.qual } )
if data.populate_from_journal then
local publishedin = getValue( {"P1433", ps = 1, qid = qid, maxvals = 0, lang = labellang, citeq_args[name], qual = data.id, qualsonly = 'yes'} )
citeq_args[name] = publishedin or getPropOfProp({qid = qid, prop1 = "P1433", prop2 = data.id, lang = labellang, maxvals = data.maxvals, ps = 1})
end
if citeq_args[name] and citeq_args[name]:find('[[تصنيف:Articles with missing Wikidata information]]', 1, true) then
-- try fallback to work's native language
citeq_args[name] = getValue( {data.id, ps = 1, qid = qid, maxvals = data.maxvals, linked = data.linked, lang = labellang, snak = snak} )
if citeq_args[name]:find('^Q%d+$') then -- qid was returned
-- try fallback to qid's native language
local qid_languages = _lang_code(citeq_args[name])
citeq_args[name] = getValue( {data.id, ps = 1, qid = qid, maxvals = data.maxvals, linked = data.linked, lang = qid_languages[1], snak = snak} )
if citeq_args[name]:find('^Q%d+$') then -- qid was returned again
citeq_args[name] = nil
else
-- record the language found if no lang specified
citeq_args.language = citeq_args.language or qid_languages[1]
end
end
end
if citeq_args[name] and snak[data.id] then
snak[data.id] = nil
end
--- translate unknown value
if citeq_args[name] == "Unknown" and rtl then
citeq_args[name] = i18n.ar["unknown-" .. name] or i18n.ar["unknown"]
end
-----------------
if data.others then
oth[#oth + 1] = citeq_args[name] and ((rtl and i18n.ar[name] or name:gsub("^%l", string.upper)) .. ": " .. citeq_args[name])
citeq_args[name] = nil
end
end
citeq_args.others = citeq_args.others or table.concat(oth, ". ")
if citeq_args.others == "" then
citeq_args.others = nil
end
citeq_args.journal = citeq_args.journal and citeq_args.journal:gsub("^''", ""):gsub("''$", ""):gsub("|''", "|"):gsub("'']]", "]]")
citeq_args.ol = (getValue( {"P648", ps = 1, qid = qid, maxvals = 1, snak = snak, citeq_args.ol } ) or ''):gsub("^OL(.+)$", "%1")
if citeq_args.ol == "" then
citeq_args.ol = nil
end
-- TBD. Take care of |ol-access=?
citeq_args.biorxiv = citeq_args.biorxiv and ("10.1101/" .. citeq_args.biorxiv)
citeq_args.isbn = getValue( {"P957", ps = 1, qid = qid, maxvals = 1, rank="best", snak = snak, citeq_args.isbn } ) -- try ISBN 10 (only one value accepted)
-- if url then see if there's an archive: citeq_args.url
local url
--find formatted url
if snak ~= {} then
for k, v in pairs(snak) do
if (v[1].datatype == "external-id") then
local furl = mw.wikibase.getBestStatements( k, "P1630" )
if 0 ~= #furl then
furl = furl[1]["mainsnak"]["datavalue"]["value"]
citeq_args.url = mw.message.newRawMessage(furl, {v[1]["datavalue"]["value"]}):plain()
snak[k] = nil
break;
end
end
end
if citeq_args.url == nil and pqid and qid then
local refproperty = mw.wikibase.getBestStatements(qid , "P1687" )
if 0 ~= #refproperty then
refproperty=refproperty[1]["mainsnak"]["datavalue"]["value"]["id"]
local furl = mw.wikibase.getBestStatements( refproperty, "P1630" )
if 0 ~= #furl then
furl = furl[1]["mainsnak"]["datavalue"]["value"]
local refval = mw.wikibase.getBestStatements( pqid, refproperty )
refval = (0 ~= #refval) and refval[1]["mainsnak"]["datavalue"]["value"]
if refval then
citeq_args.url = mw.message.newRawMessage(furl, {refval}):plain()
end
end
end
end
end
if not citeq_args.url then
for i, pr in ipairs( {"P953", "P856", "P2699"} ) do
url = getValue( {pr, ps = 1, qid = qid, maxvals = 1, snak = snak, qual="P1065" } )
if url then
citeq_args.url = mw.text.split( url, " (", true )[1]
local arcurl = mw.ustring.match( url, " %((.*)%)" ) -- when there is an archive url, <url> holds: url<space>(archive url); here extract the archive url if present
if arcurl then
local arcy, arcm, arcd = arcurl:match("(20%d%d)%p?(%d%d)%p?(%d%d)")
if arcy and arcm and arcd then
citeq_args["archive-url"] = arcurl
citeq_args["archive-date"] = tonumber(arcd) .. " " .. i18n.months[tonumber(arcm)] .. " " .. arcy
end
end
break
end
end
end
if citeq_args.publisher == "Unknown" then -- look for "stated as" (P1932)
local stated_as = getValue( {"P123", ps = 1, qid = qid, maxvals = 1, qual="P1932", qo="y"} )
if stated_as then citeq_args.publisher = stated_as end
end
if not titleforced then
-- Handle subtitle.
if citeq_args.title then
local subtitle = mw.wikibase.getBestStatements (qid, 'P1680');
if 0 ~= #subtitle then
subtitle = subtitle[1].mainsnak.datavalue.value.text;
citeq_args.title = citeq_args.title .. ": " .. subtitle
end
end
local htmltitle = getValue( {"P1476", qual = "P6833", ps = 1, qid = qid, snak = snak, maxvals = 1, qo = "y"} )
if htmltitle then
citeq_args.title = htmltitle:gsub("</?i>", "''")
else
local title_display = citeq_args.title
or (langcodes[1] and mw.wikibase.getLabelByLang(qid, langcodes[1]))
or mw.wikibase.getLabel(qid)
if title_display and snak and snak.P1810 then
title_display=title_display .. " | " .. snak.P1810[1].datavalue.value
snak.P1810 = nil
end
title_display = title_display or ("No label or title -- debug: " .. qid)
if citeq_args.url then
citeq_args.title = wrap_nowiki(title_display)
else
local slink = mw.wikibase.getSitelink(qid)
local slink_flag = false
local wrap_title = ''
local wslink = false
if not slink then
-- See if we have wikisource
if not citeq_args.url then
local wikisource_sitelink = mw.wikibase.getSitelink(qid, "enwikisource") or nil
if wikisource_sitelink then
slink = ':s:'..wikisource_sitelink
wslink = true
end
end
end
if citeq_args.title then
if slink then
wrap_title = wrap_nowiki(citeq_args.title)
slink_flag = true
else
citeq_args.title = wrap_nowiki(citeq_args.title)
end
else
if slink and not wslink then
if slink:lower() == title_display:lower() then
citeq_args.title = '[[' .. slink .. ']]'
else
wrap_title = wrap_nowiki(slink:gsub("%s%(.+%)$", ""):gsub(",.+$", ""))
slink_flag = true
end
elseif wslink then
wrap_title = wrap_nowiki(title_display)
slink_flag = true
else
citeq_args.title = wrap_nowiki(title_display)
end
end
if slink_flag then
if slink == wrap_title and not wslink then -- direct link
citeq_args.title = '[[' .. slink .. ']]'
else -- piped link
citeq_args.title = '[[' .. slink .. '|' .. wrap_title .. ']]'
end
end
end
end
end
-- replace no-break space by space, User:Mr. Ibrahem
if citeq_args.title then
citeq_args.title = mw.ustring.gsub( citeq_args.title, "\194\160", " " )
end
-- fetch other snak properties for debugging
-- if snak and snak ~= {} then
-- mw.logObject(snak)
-- for k,v in pairs(snak) do
-- if not used_properties[k] then
-- end
-- end
-- end
-- TBD: incorporate |at, |sheets= and |sheet= here as well
-- Sort out what should happen if several of them are given at the same time
if citeq_args.page or citeq_args.p then -- let single take precedence over multiple
citeq_args.pages = nil
citeq_args.pp = nil
end
if citeq_args.pages then
local _, count = string.gsub(citeq_args.pages, "[,;%s]%d+", "")
if count == 1 then
citeq_args.page = citeq_args.pages
citeq_args.pages = nil
end
end
if is_set (qid) then
if not is_set (citeq_args.author) and not is_set (citeq_args.author1)
and not is_set (citeq_args.subject) and not is_set (citeq_args.subject1)
and not is_set (citeq_args.host) and not is_set (citeq_args.host1)
and not is_set (citeq_args.last) and not is_set (citeq_args.last1)
and not is_set (citeq_args.surname) and not is_set (citeq_args.surname1)
and not is_set (citeq_args['author-last']) and not is_set (citeq_args['author-last1']) and not is_set (citeq_args['author1-last'])
and not is_set (citeq_args['author-surname']) and not is_set (citeq_args['author-surname1']) and not is_set (citeq_args['author1-surname1']) then -- if neither are set, try to get authors from Wikidata
get_name_list ('author', citeq_args, qid, wdl, labellang) -- modify citeq_args table with authors from Wikidata
end
if not is_set (citeq_args.editor) and not is_set (citeq_args.editor1)
and not is_set (citeq_args['editor-last']) and not is_set (citeq_args['editor-last1']) and not is_set (citeq_args['editor1-last'])
and not is_set (citeq_args['editor-surname']) and not is_set (citeq_args['editor-surname1']) and not is_set (citeq_args['editor1-surname']) then -- if neither are set, try to get editors from Wikidata
get_name_list ('editor', citeq_args, qid, wdl, labellang) -- modify citeq_args table with editors from Wikidata
end
if not is_set (citeq_args.translator) and not is_set (citeq_args.translator1)
and not is_set (citeq_args['translator-last']) and not is_set (citeq_args['translator-last1']) and not is_set (citeq_args['translator1-last'])
and not is_set (citeq_args['translator-surname']) and not is_set (citeq_args['translator-surname1']) and not is_set (citeq_args['translator1-surname']) then -- if neither are set, try to get translators from Wikidata
get_name_list ('translator', citeq_args, qid, wdl, labellang) -- modify citeq_args table with translators from Wikidata
end
end
for k, v in pairs(citeq_args) do
if in_array (v, {'(())', 'unset', 'ignore'}) or 'string' ~= type(k) then -- empty accept-as-is-written (()) markup to indicate an empty/unused parameter value, other ((...)) markups are deliberately passed down to {{citation}}
citeq_args[k] = nil
elseif in_array (v, {'((unset))', '((ignore))'}) then -- strip off markup for free-text values clashing with local keywords
citeq_args[k] = 'unset'
end
end
local author_count = 0
for k, v in pairs(citeq_args) do
if k:find("^author%d+$") then
author_count = author_count + 1
end
end
if author_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == citeq_args['display-authors'] then
citeq_args['display-authors'] = nil; -- unset because no longer needed
else
citeq_args['display-authors'] = citeq_args['display-authors'] or 3 -- limit to three displayed names
end
end
local editor_count = 0
for k, v in pairs(citeq_args) do
if k:find("^editor%d+$") then
editor_count = editor_count + 1
end
end
if editor_count > 8 then -- convention in astronomy journals, optional mode for this?
if 'all' == citeq_args['display-editors'] then
citeq_args['display-editors'] = nil; -- unset because no longer needed
else
citeq_args['display-editors'] = citeq_args['display-editors'] or 3 -- limit to three displayed names
end
end
-- change edition to ordinal if it's set and numeric
if (rtl == false) then citeq_args.edition = citeq_args.edition and p.makeOrdinal(citeq_args.edition) end
-- code to make a guess what template to use from the supplied parameters
-- (first draft for proof-of-concept)
if citeq_args.journal then
template = template or "بدورية محكمة"
elseif citeq_args.isbn then
template = template or "بكتاب"
citeq_args.asin = nil -- suppress ASIN if ISBN exists
elseif citeq_args.website then
template = template or "ويب"
end
-- template is CS1 designator: journal, web, news, etc.
if template then
-- citeq_args.mode = citeq_args.mode or "cs1" -- a cs1 template already knows that it is cs1 so this line is superfluous
local citeclasses = {["بدورية محكمة"] = 'journal', ["بكتاب"] = "book", ["ويب"] = "web" }
cite_class = citeclasses[template]
template = "استشهاد " .. template
else
-- citeq_args.mode = citeq_args.mode or "cs2" -- a cs2 template already knows that it is cs2 so this line is superfluous
template = "استشهاد"
end
-- |id= could hold more than one identifier pulled from Wikidata not supported by {{citation}}, right now only add our qid to the list
local list_sep = '. '
if citeq_args.mode ~= 'cs1' then
list_sep = ', '
end
local id = '[[ويكي بيانات|QID]]:[[:d:' .. qid .. '|' .. qid .. ']]' -- go through "WDQ (identifier)" redirect to reduce clutter in "What links here" and improve reverse lookup. Keep in sync with {{QID}}.
local old_id = citeq_args.id
if wdl then -- show WD logo
id = id .. '[[ملف:Wikidata-logo.svg|16px|alt=|link=]]' -- possibly replace by WD edit icon?
end
if is_set (old_id) then
citeq_args.id = old_id .. list_sep .. id -- append to user-specified contents
else
citeq_args.id = id
end
-- clean up any blank parameters
for k, v in pairs(citeq_args) do
if v == "" then citeq_args[k] = nil end
end
-- if |expand=<anything>, write a nowiki'd version to see what the {{citation}} template call looks like
if expand then
local expand_args = { "{{" .. template .. "\n" } -- init with citation template
if expand == "self" then
citeq_args.id = old_id -- restore original |id= parameter
expand_args = { "{{cite Q|" .. qid } -- expand to itself
end
-- make a sortable table and sort it by param name
local sorttable = {}
for param, val in pairs (citeq_args) do
table.insert(sorttable, {param, val})
end
table.sort(sorttable, comp_key)
-- add contents to expand_args
for idx, val in ipairs(sorttable) do
table.insert(expand_args, val[1] .. '=' .. val[2] .. "\n")
end
-- make the nowiki'd string and done
return table.concat (expand_args, '| ') .. "\n}}"
end
local erratumid = getPropertyIDs( { "P2507", qid = qid, fwd = "ALL", osd = "no", rank = "best", maxvals = 1 } )
if erratumid then
erratumid = " [[d:" .. erratumid .. "|(erratum)]]" .. "[[تصنيف:Cite Q - cites a work with an erratum]]"
else
erratumid = ""
end
local opt_cat = ''
if getValue( {"P5824", ps = 1, qid = qid} ) then
opt_cat = '[[تصنيف:Cite Q - cites a retracted work]]<!-- retracted -->'
end
if getValue( {"P1366", ps = 1, qid = qid} ) then
opt_cat = opt_cat .. '[[تصنيف:Cite Q - cites a replaced work]]<!-- replaced -->'
end
if citeq_args.wikidatacite then
return frame:expandTemplate{title = template, args = citeq_args} .. erratumid .. opt_cat -- render the template
else
local CS = require("Module:citation/CS1" .. sandbox)
return CS._citation(frame, {['CitationClass'] = cite_class} , citeq_args) .. erratumid .. opt_cat
end
end
--[[-------------------------< C I T E _ Q >------------------------------------------------------------------
Takes standard CS1|2 template parameters and passes all to {{citation}}. If neither of |author= and |author1=
are set, calls get_authors() to try to get an author name-list from Wikidata. The result is passed to
{{citation}} for rendering.
--]]
function p._cite_wikidata (ref, pqid)
-- early exit
if not ref then
return nil
end
local snak = ref.snaks
-- مراجع غير مقبولة
if snak.P143 or snak.P3452 then
return nil
end
local hash = ref.hash
if hash and hash ~= "" and ref_cash[hash] then
return ref_cash[hash]
end
local citeq_args = {}
local frame = mw.getCurrentFrame()
if snak.P248 then
for _, prop in pairs(snak.P248) do
if prop.snaktype == "value" then
citeq_args.qid = "Q" .. prop.datavalue.value["numeric-id"]
end
end
snak.P248 = nil;
end
if citeq_args.qid and is_rejected(citeq_args.qid) == true then
return nil
end
local reference
citeq_args.snak = snak
citeq_args.pqid = pqid
citeq_args.wikidatacite = 1
if citeq_args.qid then
reference = p._cite_q(citeq_args)
else
local has_properties = false
for k, _ in pairs(used_properties) do
if snak[k] then
has_properties = true;
break;
end
end
reference = (has_properties and p._cite_web(citeq_args) or nil)
end
if reference and reference ~= "" then
reference = frame:extensionTag("ref", reference, {name = 'wikidata-' .. hash})
end
if hash and hash ~= "" then
ref_cash[hash] = reference
end
return reference
end
function p.cite_q (frame)
local args = {}
for k, v in pairs(frame:getParent().args) do
if v ~= "" then args[k] = v end
end
for k, v in pairs(frame.args) do
if v ~= "" then args[k] = v end
end
args.qid = args.qid or args[1] or ""
if args.qid == "" then return nil end
args[1] = nil
local citesep = (args.citesep or "")
if citesep == "" then citesep = ", " end
citesep = citesep:gsub('"', '') -- strip double quotes after setting default to allow |citesep="" as a blank separator
args.citesep = nil
local tag = args.tag or ""
if tag == "" then tag = nil end
args.tag = nil
local list = args.list or ""
if list == "" then list = nil end
args.list = nil
args.language = args.language or args.lang
args.lang = nil
local cites = {}
for q in args.qid:gmatch("Q%d+") do
-- make a new copy of the arguments
local newargs = {}
for k, v in pairs(args) do
if k ~= "qid" then
newargs[k] = v
end
end
newargs.qid = q
if tag == "ref" then
cites[#cites + 1] = frame:callParserFunction{ name = "#tag:ref", args = { p._cite_q(newargs), name = q } }
-- expand like this: args = { p._cite_q(newargs), name = 'foo', group = 'bar' }
else
cites[#cites + 1] = p._cite_q(newargs)
end
end
if list then
return frame:expandTemplate{ title = list, args = cites }
else
return table.concat(cites, citesep)
end
end
return p
g3vc7gew3lkpz1fbnryfmc2nvjjpczz
وحدة:WdItem
828
63219
275448
2026-09-15T10:03:31Z
حبيشان
29714
استيراد من ar.wiktionary.org
275448
Scribunto
text/plain
-- Module: WdItem
-- Object-oriented Wikidata access module for Lua
-- Refactored from WikidataIB for direct Lua usage
require("strict")
local p = {}
local cdate -- initialise as nil and only load _complex_date function if needed
-- Module:Complex date is loaded lazily and has the following dependencies:
-- Module:Calendar
-- Module:ISOdate
-- Module:DateI18n
-- Module:I18n/complex date
-- Module:Ordinal
-- Module:I18n/ordinal
-- Module:Yesno
-- Module:Formatnum
-- Module:Linguistic
-- i18n configuration
local i18n = {
["errors"] = {
["property-not-found"] = "الخاصية غير موجودة.",
["entity-not-found"] = "الكيان على ويكي بيانات غير موجود.",
["unknown-claim-type"] = "نوع الادعاء غير معروف.",
["local-article-not-found"] = "المعرف متاح على ويكي بيانات، ولكن المقال غير متاح على ويكيبيديا",
},
["months"] = {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
},
["Unknown"] = "Unknown",
["NaN"] = "Not a number",
["missinginfocat"] = "[[تصنيف:Articles with missing Wikidata information]]",
["list separator"] = ", ",
["list separator-ar"] = "، ",
}
-- Date precision constants
local dp = {
[6] = "millennium",
[7] = "century",
[8] = "decade",
[9] = "year",
[10] = "month",
[11] = "day",
}
-- local options_aliases = {
-- ["osd"] = "onlysourced",
-- ["wdl"] = "wdlinks",
-- ["uabbr"] = "unitabbr",
-- ["qo"] = "qualsonly",
-- ["lp"] = "linkprefix",
-- ["lprefix"] = "linkprefix",
-- ["qlp"] = "qlinkprefix",
-- ["sn"] = "shortname",
-- ["uselbl"] = "uselabel",
-- ["pd"] = "plaindate",
-- ["qdf"] = "qualifierdateformat",
-- ["df"] = "qualifierdateformat",
-- ["qsn"] = "qshortname"
-- }
-- setmetatable(options_aliases, { __index = function(t, k) return k end })
-------------------------------------------------------------------------------
-- Internal helper functions
-------------------------------------------------------------------------------
local function in_array( needle, haystack )
if needle == nil then
return false
end
for n, v in ipairs( haystack ) do
if v == needle then
return n
end
end
return false
end
local function findLang(langcode)
local langobj
langcode = mw.text.trim(langcode or "")
if langcode ~= "" then
if mw.language.isKnownLanguageTag(langcode) then
langobj = mw.language.new(langcode)
end
else
langobj = mw.language.getContentLanguage()
end
return langobj and langobj.code
end
local function parseParam(param, default)
if param == nil then
return default
end
return param
end
local function setRanks(rank)
rank = (rank or ""):lower()
local ranks = {}
for w in string.gmatch(rank, "%a+") do
if w == "best" or w == "preferred" or w == "normal" or w == "deprecated" then
ranks[w] = true
end
end
if ranks.best or not next(ranks) then
ranks.preferred = true
ranks.normal = true
ranks.deprecated = false
end
return ranks
end
local function labelOrId(id, lang_t)
local langs = lang_t or {}
local label
for _,lang in ipairs(langs) do
label = mw.wikibase.getLabelByLang(id, lang)
if label ~= "" then
break;
end
end
label = label or mw.wikibase.getLabel(id)
if label then
return mw.text.nowiki(label), true
else
return id, false
end
end
local function roundto(x, sf)
if x == 0 then return 0 end
local s = 1
if x < 0 then
x = -x
s = -1
end
if sf < 1 then sf = 1 end
local p = 10 ^ (math.floor(math.log10(x)) - sf + 1)
x = math.floor(x / p + 0.5) * p * s
if x == math.floor(x) then x = math.floor(x) end
return x
end
local function decimalPrecision(x, p)
local s = 1
if x < 0 then
x = -x
s = -1
end
if not tonumber(p) then p = 1e-4
elseif p > 1 then p = 1
elseif p < 1e-6 then p = 1e-6
else p = 10 ^ math.floor(math.log10(p))
end
x = math.floor(x / p + 0.5) * p * s
if x == math.floor(x) then x = math.floor(x) end
if math.abs(x) < 1e-4 then x = string.format("%f", x) end
return x
end
local function decimalToDMS(x, p)
if not tonumber(p) then p = 1e-4 end
local d = math.floor(x)
local ms = (x - d) * 60
if p > 0.5 then
if ms > 30 then d = d + 1 end
ms = 0
end
local m = math.floor(ms)
local s = (ms - m) * 60
if p > 0.008 then
if s > 30 then m = m +1 end
s = 0
elseif p > 0.00014 then
s = math.floor(s + 0.5)
elseif p > 0.000014 then
s = math.floor(10 * s + 0.5) / 10
elseif p > 0.0000014 then
s = math.floor(100 * s + 0.5) / 100
else
s = math.floor(1000 * s + 0.5) / 1000
end
return d, m, s
end
local function rawValue(dataValue)
if dataValue.type == "string" then
return dataValue.value
elseif dataValue.type == "wikibase-entityid" then
return dataValue.value and dataValue.value.id
elseif dataValue.type == "monolingualtext" then
return dataValue.value.text
elseif dataValue.type == "quantity" then
return tonumber(dataValue.value.amount)
elseif dataValue.type == 'time' then
return dataValue.value.time
elseif dataValue.type == "globecoordinate" then
return dataValue.value.latitude .. '/' .. dataValue.value.longitude
end
end
local function compareValue(dataValue, strValue)
return rawValue(dataValue) == strValue
end
local function dateFormat(timestamp, dprec, df, bcf, plaindate, qualifiers, lang, adj, model)
df = (df or ""):lower()
if df == "ymd" then
if timestamp:sub(1,1) == "+" then
return timestamp:sub(2,11)
else
local yr = tonumber(timestamp:sub(2,5)) - 1
yr = ("000" .. yr):sub(-4)
if yr ~= "0000" then yr = "-" .. yr end
return yr .. timestamp:sub(6,11)
end
end
timestamp = timestamp:gsub("%-00%-00T", "-01-01T")
dprec = dprec or 11
if df == "y" and dprec > 9 then dprec = 9 end
dprec = dprec>11 and 11 or dprec
dprec = dprec<6 and 6 or dprec
bcf = (bcf or ""):upper()
plaindate = (plaindate or ""):sub(1,1):lower()
if plaindate == "" or plaindate == "n" or plaindate == "f" or plaindate == "0" then plaindate = false end
do
local llang = findLang()
lang = in_array(lang, {llang, 'en'}) and lang or llang
end
adj = adj or ""
local bc = timestamp:sub(1, 1)=="-" and "BC" or ""
local year, month, day = timestamp:match("[+-](%d*)-(%d*)-(%d*)T")
local iso = tonumber(year)
if df == 'tt' then
return {
year = tonumber(timestamp:match("^([+-]%d*)-")) or 0,
month = tonumber(month) or 0,
day = tonumber(day) or 0
}
end
if dprec == 6 then iso = math.floor( (iso - 1) / 1000 ) + 1 end
if dprec == 7 then iso = math.floor( (iso - 1) / 100 ) + 1 end
if dprec == 8 then iso = math.floor( iso / 10 ) .. "0" end
if dprec == 10 then iso = year .. "-" .. month end
if dprec == 11 then iso = year .. "-" .. month .. "-" .. day end
local sc = not plaindate and qualifiers and qualifiers.P1480
if sc then
for k1, v1 in pairs(sc) do
if v1.datavalue and v1.datavalue.value.id == "Q5727902" then
adj = "circa"
break
end
end
end
local calendarmodel = ""
if tonumber(year) > 1582
and dprec > 8
and not plaindate
and model == "http://www.wikidata.org/entity/Q1985786" then
calendarmodel = "julian"
end
if not cdate then
cdate = require("Module:Complex date")._complex_date
end
local fdate = cdate(calendarmodel, adj, tostring(iso), dp[dprec], bc, "", "", "", "", lang, 1)
-- this may have QuickStatements info appended to it in a div, so remove that
fdate = fdate:gsub(' <div style="display: none;">[^<]*</div>', '')
-- it may also be returned wrapped in a microformat, so remove that
fdate = fdate:gsub("<[^>]*>", "")
-- there may be leading zeros that we should remove
fdate = fdate:gsub("^0*", "")
-- if a plain date is required, then remove any links (like BC linked)
if plaindate then
fdate = fdate:gsub("%[%[.*|", ""):gsub("]]", "")
end
-- if 'circa', use the abbreviated form *** internationalise later ***
fdate = fdate:gsub('circa ', '<abbr title="circa">c.</abbr> ')
-- deal with BC/BCE
if bcf == "BCE" then
fdate = fdate:gsub('BC', 'BCE')
end
-- deal with mdy format
if df == "mdy" then
fdate = fdate:gsub("(%d+) (%w+) (%d+)", "%2 %1, %3")
end
-- deal with adjectival form *** internationalise later ***
if plaindate == "a" then
fdate = fdate:gsub(' century', '-century')
end
return fdate
end
local function hijriFormat(qualifiers, dateformat, lang)
if not (qualifiers and qualifiers.P4241) then return; end
local year, month, monthno, day
local val
local qhmonths = {["Q1952053"]=1,["Q489557"]=2, ["Q474167"] = 3, ["Q273815"] = 4, ["Q852002"] = 5, ["Q822218"] = 6,
["Q194210"] = 7, ["Q220914"] = 8, ["Q8867089"]=9, ["Q685440"]=10,["Q150853"]=11,["Q186022"]=12 }
local hmonths = {"محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"}
local hmonths_inv = {["محرم"] = 1, ["صفر"]=2, ["ربيع الأول"]=3, ["ربيع الآخر"]=4, ["جمادى الأولى"]=5, ["جمادى الآخرة"]=6, ["رجب"]=7, ["شعبان"]=8, ["رمضان"]=9, ["شوال"]=10, ["ذو القعدة"]=11, ["ذو الحجة"]=12}
for _, item in ipairs(qualifiers.P4241) do
local timeQ = item.datavalue and item.datavalue.value and item.datavalue.value.id
local hastime = false
if timeQ then
local timeQt = mw.wikibase.getBestStatements(timeQ, "P361")
for _,timeQsnak in pairs(timeQt) do
local timeType = timeQsnak.mainsnak and timeQsnak.mainsnak.datavalue and timeQsnak.mainsnak.datavalue.value and timeQsnak.mainsnak.datavalue.value.id
if timeType == "Q28892" then
local timeLableAr = mw.wikibase.getLabelByLang(timeQ, "ar")
if timeLableAr then
year = mw.ustring.match(timeLableAr, "^(%d+) *هـ$")
end
if not year then
local timeLableEn = mw.wikibase.getLabelByLang(timeQ, "en")
if timeLableEn then
year = mw.ustring.match(timeLableAr, "^(%d+) *AH$")
end
end
hastime=true
elseif qhmonths[timeType] then
monthno = qhmonths[timeType]
if monthno>0 and monthno<13 then
month = hmonths[monthno]
end
local timeLableAr = mw.wikibase.getLabelByLang(timeQ, "ar")
if timeLableAr then
day = mw.ustring.match(timeLableAr, "^(%d+) *%a+$")
end
if not day then
local timeLableEn = mw.wikibase.getLabelByLang(timeQ, "en")
if timeLableEn then
day = mw.ustring.match(timeLableAr, "^(%d+) *%a+$")
end
end
hastime=true
end
end
if not hastime then
timeQt = mw.wikibase.getBestStatements(timeQ, "P31")
if "Q125390868" == (timeQt[1].mainsnak and timeQt[1].mainsnak.datavalue and timeQt[1].mainsnak.datavalue.value and timeQt[1].mainsnak.datavalue.value.id ) then
val = mw.wikibase.getLabelByLang(timeQ, "ar")
month, year = mw.ustring.match(val, "^(%a[%a ]+%a) *(%d+) *هـ?$")
monthno = hmonths_inv[month]
end
end
end
end
if year then
if dateformat == "tt" then
return {year = tonumber(year) or 0,
month = monthno or 0,
day = tonumber(day) or 0,
monthname = month or ''}
elseif dateformat == "y" or not month then
return year;
elseif day and month then
if dateformat == 'ymd' then
return string.format("%04d-%02d-%02d", tonumber(year), monthno, tonumber(day));
else
return day .. ' ' .. month .. ' ' .. year;
end
elseif month then
return month .. ' ' .. year;
end
end
return nil;
end
local function rawValueOrDF (statement, opt)
local datasnak = statement.mainsnak or statement
if (datasnak.datavalue and datasnak.datavalue.type == 'time') and (opt.hijri or opt.df) then
if opt.hijri then
return statement.qualifiers and hijriFormat(statement.qualifiers, opt.df) or nil
elseif opt.df then
local dv = datasnak.datavalue.value
return dateFormat(dv.time, dv.precision, opt.df, opt.bc, opt.plaindate, statement.qualifiers, opt.lang, "", dv.calendarmodel)
end
else
return rawValue(datasnak.datavalue)
end
end
local function sourced(claim)
if claim.references then
for kr, vr in pairs(claim.references) do
local ref = mw.wikibase.renderSnaks(vr.snaks)
if not ref:find("Wiki") then
return true
end
end
end
end
local function linkedItem(id, args)
local linkprefix = (args.linkprefix or ""):gsub('"', '')
local lpostfix = (args.lpostfix or ""):gsub('"', '')
local prefix = (args.prefix or ""):gsub('"', '')
local postfix = (args.postfix or ""):gsub('"', '')
local wikilinkprefix = (args.wikilinkprefix or ""):gsub('"', '')
local dtxt = args.dtxt
local uselabel = parseParam( args.uselabel, true)
local langs = (args.langs and #args.langs>0) and args.langs or { args.lang }
local disp
local sitelink = mw.wikibase.getSitelink(id, args.linksproject)
local label, islabel
if dtxt then
label, islabel = dtxt, true
else
label, islabel = labelOrId(id, langs)
end
if sitelink then
if not uselabel then
local pos = sitelink:find(":") or 0
local slink = sitelink
if pos > 0 then
local pfx = sitelink:sub(1,pos-1)
if mw.site.namespaces[pfx] then
slink = sitelink:sub(pos+1)
end
end
slink = slink:gsub("%s%(.+%)$", ""):gsub(",.+$", "")
if label:find("^%u") then
label = slink:gsub("^(%l)", string.upper)
else
label = slink:gsub("^(%u)", string.lower)
end
end
disp = "[[" .. wikilinkprefix .. sitelink .. lpostfix .. "|" .. prefix .. label .. postfix .. "]]"
elseif islabel then
disp = prefix .. label .. postfix
else
disp = prefix .. label .. postfix .. i18n.missinginfocat
end
return disp
end
local function rendersnak(propval, args, linked, lpre, lpost, pre, post, unitabbr, filter)
lpre = lpre or ""
lpost = lpost or ""
pre = pre or ""
post = post or ""
args.lang = args.lang or (args.langs and args.langs[1]) or findLang();
local langs = (args.langs and #args.langs>0) and args.langs or {args.lang }
local snak = propval.mainsnak or propval
local dtype = snak.datatype
local dv = snak.datavalue
dv = dv and dv.value
local val, mlt
local namedas;
namedas = propval.qualifiers and propval.qualifiers.P1932 and propval.qualifiers.P1932[1].datavalue and propval.qualifiers.P1932[1].datavalue.value or nil
args.dtxt = namedas
if propval.rank and not args.reqranks[propval.rank] then
return nil
elseif snak.snaktype == "somevalue" then
val = namedas or i18n["Unknown"]
elseif snak.snaktype == "novalue" then
-- return nothing
elseif dtype == "wikibase-item" then
local qnumber = dv.id
if linked then
val = linkedItem(qnumber, args)
else
if namedas then
val = pre .. namedas .. post
else
local label, islabel = labelOrId(qnumber, langs)
val = pre .. label .. post
end
end
elseif dtype == "time" then
if args.hijri then
val = hijriFormat(propval.qualifiers, args.df, args.lang)
else
val = dateFormat(dv.time, dv.precision, args.df, args.bc, args.plaindate, propval.qualifiers, args.lang, "", dv.calendarmodel)
end
elseif dtype == "commonsMedia" or dtype == "external-id" or dtype == "string" or dtype == "url" then
if dtype == "external-id" and args.fullidurl then
val = mw.ustring.match(mw.wikibase.formatValue(snak), "%[(https?://[^%s%]]+)")
elseif (lpre == "" or lpre == ":") and lpost == "" then
val = pre .. dv .. post
elseif dtype == "external-id" then
val = "[" .. lpre .. dv .. lpost .. " " .. pre .. dv .. post .. "]"
else
val = "[[" .. lpre .. dv .. lpost .. "|" .. pre .. dv .. post .. "]]"
end
elseif dtype == "quantity" then
local amount = tonumber(dv.amount) or i18n["NaN"]
local unit = ""
local unitqid = string.match(dv.unit, "(Q%d+)")
if filter and unitqid ~= filter then return nil end
if unitqid then
local uname = labelOrId(unitqid, langs) or ""
if uname ~= "" then unit = " " .. uname end
end
val = tostring(amount) .. unit
elseif dtype == "globe-coordinate" then
local lat, long, prec = dv.latitude, dv.longitude, dv.precision
local show = (args.show or ""):lower()
if show == "lat" then
val = decimalPrecision(lat, prec)
elseif show == "lon" then
val = decimalPrecision(long, prec)
elseif show == "longlat" then
val = decimalPrecision(long, prec) .. ", " .. decimalPrecision(lat, prec)
else
local ns = lat < 0 and "S" or "N"
local ew = long < 0 and "W" or "E"
if lat < 0 then lat = -lat end
if long < 0 then long = -long end
val = decimalPrecision(lat, prec) .. "°" .. ns .. " " .. decimalPrecision(long, prec) .. "°" .. ew
end
elseif dtype == "monolingualtext" then
val = pre .. dv.text .. post
mlt = dv.language
else
val = "unknown data type: " .. dtype
end
return val, mlt
end
local function assembleoutput(out, args, entityID, propertyID)
local sorted = parseParam(args.sorted, false)
local noicon = parseParam(args.noicon, false)
local list = args.list or ""
local separator = args.sep or ""
separator = string.gsub(separator, '"', '')
if separator == "" then
local rtl_lang = {ar = true, fa = true, ur = true, ku = true, he = true}
separator = rtl_lang[args.lang] and i18n["list separator-ar"] or i18n["list separator"]
end
local strout
if #out > 0 then
if sorted then table.sort(out) end
if list == "" then
strout = table.concat(out, separator)
elseif list:lower() == "prose" then
strout = mw.text.listToText(out)
else
strout = mw.getCurrentFrame():expandTemplate{title = list, args = out}
end
else
strout = nil
end
return strout
end
-- WdItem
local function propertyvalueandquals(objproperty, args, qualID)
-- needs this style of declaration because it's re-entrant
-- onlysourced is a boolean passed to return only values sourced to other than Wikipedia
-- if nothing or an empty string is passed set it true
local onlysrc = parseParam(args.onlysourced, false)
-- linked is a a boolean that enables the link to a local page via sitelink
-- if nothing or an empty string is passed set it true
local linked = parseParam(args.linked, true)
-- prefix is a string that may be nil, empty (""), or a string of characters
-- this is prefixed to each value
-- useful when when multiple values are returned
-- any double-quotes " are stripped out, so that spaces may be passed
local prefix = (args.prefix or ""):gsub('"', '')
-- postfix is a string that may be nil, empty (""), or a string of characters
-- this is postfixed to each value
-- useful when when multiple values are returned
-- any double-quotes " are stripped out, so that spaces may be passed
local postfix = (args.postfix or ""):gsub('"', '')
-- linkprefix is a string that may be nil, empty (""), or a string of characters
-- this creates a link and is then prefixed to each value
-- useful when when multiple values are returned and indirect links are needed
-- any double-quotes " are stripped out, so that spaces may be passed
local linkprefix = (args.linkprefix or ""):gsub('"', '')
-- linkpostfix is a string that may be nil, empty (""), or a string of characters
-- this is postfixed to each value when linking is enabled with linkprefix
-- useful when when multiple values are returned
-- any double-quotes " are stripped out, so that spaces may be passed
local lpostfix = (args.linkpostfix or ""):gsub('"', '')
-- wdlinks is a boolean passed to enable links to Wikidata when no article exists
-- if nothing or an empty string is passed set it false
local wdlinks = parseParam(args.wdlinks, false)
-- unitabbr is a boolean passed to enable unit abbreviations for common units
-- if nothing or an empty string is passed set it false
local unitabbr = parseParam(args.unitabbr, false)
-- qualsonly is a boolean passed to return just the qualifiers
-- if nothing or an empty string is passed set it false
local qualsonly = parseParam(args.qualsonly, false)
-- maxvals is a string that may be nil, empty (""), or a number
-- this determines how many items may be returned when multiple values are available
-- setting it = 1 is useful where the returned string is used within another call, e.g. image
local maxvals = tonumber(args.maxvals) or 0
-- plaindate boolean
-- to disable/enable "sourcing cirumstances" or use adjectival form for the plain date
local plaindate = args.plaindate or false
args.plaindate = plaindate
-- allow qualifiers to have a different date format; default to year unless qualsonly is set
args.qualifierdateformat = args.qualifierdateformat or (not qualsonly and "y")
local lang = args.lang or (args.langs and args.langs[1]) or findLang()
-- qualID is a string list of wanted qualifiers or "ALL"
qualID = qualID or ""
-- capitalise list of wanted qualifiers and substitute "DATES"
qualID = qualID:upper():gsub("DATES", "P580, P582")
local allflag = (qualID == "ALL")
-- create table of wanted qualifiers as key
local qwanted = {}
-- create sequence of wanted qualifiers
local qorder = {}
for q in mw.text.gsplit(qualID, "%p") do -- split at punctuation and iterate
local qtrim = mw.text.trim(q)
if qtrim ~= "" then
qwanted[mw.text.trim(q)] = true
qorder[#qorder+1] = qtrim
end
end
-- qsep is the output separator for rendering qualifier list
local qsep = (args.qsep or ""):gsub('"', '')
-- qargs are the arguments to supply to assembleoutput()
local qargs = {
["onlysourced"] = false,
["linked"] = tostring(linked),
["prefix"] = args.qprefix,
["postfix"] = args.qpostfix,
["linkprefix"] = args.qlinkprefix,
["linkpostfix"] = args.qlinkpostfix,
["wdlinks"] = false,
["unitabbr"] = tostring(unitabbr),
["maxvals"] = 0,
["sorted"] = tostring(args.qsorted),
["noicon"] = true,
["list"] = args.qlist,
["sep"] = qsep,
-- ["langobj"] = args.langobj,
["lang"] = lang,
langs = args.langs,
["df"] = args.qualifierdateformat,
["shortname"] = parseParam(args.qshortname, false),
}
-- all proper values of a Wikidata property will be the same type as the first
-- qualifiers don't have a mainsnak, properties do
--#Modified line
local datatype = objproperty[1].datatype or (objproperty[1].mainsnak and objproperty[1].mainsnak.datatype)
-- out[] holds the a list of returned values for this property
-- mlt[] holds the language code if the datatype is monolingual text
local out = {}
local mlt = {}
for k, v in ipairs(objproperty) do
local hasvalue = true
if (onlysrc and not sourced(v)) then
-- no value: it isn't sourced when onlysourced=true
hasvalue = false
else
local val, lcode = rendersnak(v, args, linked, linkprefix, lpostfix, prefix, postfix, unitabbr)
if not val then
hasvalue = false -- rank doesn't match
elseif qualsonly and qualID then
-- suppress value returned: only qualifiers are requested
else
out[#out+1], mlt[#out+1] = val, lcode
end
end
-- See if qualifiers are to be returned:
local snak = v.mainsnak or v
if hasvalue and v.qualifiers and qualID ~= "" and snak.snaktype~="novalue" then
-- collect all wanted qualifier values returned in qlist, indexed by propertyID
local qlist = {}
local timestart, timeend = "", ""
-- loop through qualifiers
for k1, v1 in pairs(v.qualifiers) do
if allflag or qwanted[k1] then
if k1 == "P1326" then
local ts = v1[1].datavalue.value.time
local dp = v1[1].datavalue.value.precision
qlist[k1] = dateFormat(ts, dp, args.qualifierdateformat, args.bc, plaindate, "", lang, "before")
elseif k1 == "P1319" then
local ts = v1[1].datavalue.value.time
local dp = v1[1].datavalue.value.precision
qlist[k1] = dateFormat(ts, dp, args.qualifierdateformat, args.bc, plaindate, "", lang, "after")
elseif k1 == "P580" then
timestart = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one start time as valid
elseif k1 == "P582" then
timeend = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one end time as valid
else
local q = assembleoutput(propertyvalueandquals(v1, qargs), qargs)
-- we already deal with circa via 'sourcing circumstances' if the datatype was time
-- circa may be either linked or unlinked *** internationalise later ***
if datatype ~= "time" or q ~= "circa" and not (type(q) == "string" and q:find("circa]]")) then
qlist[k1] = q
end
end
end -- of test for wanted
end -- of loop through qualifiers
-- set date separator
local t = timestart .. timeend
-- *** internationalise date separators later ***
local dsep = "–"
if t:find("%s") or t:find(" ") then dsep = " – " end
-- set the order for the list of qualifiers returned; start time and end time go last
if next(qlist) then
local qlistout = {}
if allflag then
for k2, v2 in pairs(qlist) do
qlistout[#qlistout+1] = v2
end
else
for i2, v2 in ipairs(qorder) do
qlistout[#qlistout+1] = qlist[v2]
end
end
if t ~= "" then
qlistout[#qlistout+1] = timestart .. dsep .. timeend
end
local qstr = assembleoutput(qlistout, qargs)
if qualsonly then
out[#out+1] = qstr
else
out[#out] = out[#out] .. " (" .. qstr .. ")"
end
elseif t ~= "" then
if qualsonly then
if timestart == "" then
out[#out+1] = timeend
elseif timeend == "" then
out[#out+1] = timestart
else
out[#out+1] = timestart .. dsep .. timeend
end
else
out[#out] = out[#out] .. " (" .. timestart .. dsep .. timeend .. ")"
end
end
end -- of test for qualifiers wanted
if maxvals > 0 and #out >= maxvals then break end
end -- of for each value loop
-- we need to pick one value to return if the datatype was "monolingualtext"
-- if there's only one value, use that
-- otherwise look through the fallback languages for a match
if datatype == "monolingualtext" and #out >1 then
lang = mw.text.split( lang, '-', true )[1]
local fbtbl = mw.language.getFallbacksFor( lang )
table.insert( fbtbl, 1, lang )
local bestval = ""
local found = false
for idx1, lang1 in ipairs(fbtbl) do
for idx2, lang2 in ipairs(mlt) do
if (lang1 == lang2) and not found then
bestval = out[idx2]
found = true
break
end
end -- loop through values of property
end -- loop through fallback languages
if found then
-- replace output table with a table containing the best value
out = { bestval }
else
-- more than one value and none of them on the list of fallback languages
-- sod it, just give them the first one
out = { out[1] }
end
end
return out
end
local function mergeOptions(defaults, overrides)
overrides = overrides or {}
defaults = defaults or {}
local result = {}
for k, v in pairs(defaults) do
result[k] = v
end
for k, v in pairs(overrides) do
result[k] = v
if k == 'rank' then
result.reqranks = setRanks(v)
end
end
return result
end
local function filterbyqualifier(statements,qual,value)
local filtered_statements = {}
for _, statement in ipairs(statements) do
if statement.qualifiers and statement.qualifiers[qual] then
if '*' == value then
filtered_statements[#filtered_statements + 1] = statement
else
for _, q in ipairs(statement.qualifiers[qual]) do
if q.datavalue and (rawValue(q.datavalue) == value) then
filtered_statements[#filtered_statements + 1] = statement
break
end
end
end
end
end
return filtered_statements
end
local function orderbyrank(statements)
local pref_count = 0
local sorted_statements = {}
for k,v in ipairs(statements) do
if v.rank == 'preferred' then
pref_count = pref_count + 1
table.insert(sorted_statements, pref_count, v)
else
sorted_statements[#sorted_statements + 1] = v
end
end
return sorted_statements
end
-------------------------------------------------------------------------------
-- helper class functions
-------------------------------------------------------------------------------
local function class()
local c = {}
c.__index = c
function c:new(...)
local o = setmetatable({}, c)
if o.init then o:init(...) end
return o
end
return c
end
-------------------------------------------------------------------------------
-- Statement Class Definition
-------------------------------------------------------------------------------
local WdStatement = class()
function WdStatement:getValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local statement = self._statement
if not statement then
return nil
end
local qualID = mw.text.trim(mergedOpts.qual or ""):upper()
if qualID == "" then qualID = nil end
local out = propertyvalueandquals({statement}, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.parent.qid, self.pid)
end
function WdStatement:getRawValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
if not self._statement then
return nil
end
local datasnak = self._statement.mainsnak or self._statement
if datasnak.snaktype == "value" then
return rawValueOrDF(self._statement, mergedOpts)
else
return datasnak.snaktype
end
end
function WdStatement:getRawQual(qualID)
local ret = {}
local s = self._statement
if s.qualifiers and s.qualifiers[qualID] then
for _,q in pairs(s.qualifiers[qualID]) do
if q.snaktype == "value" then
ret[#ret + 1] = rawValueOrDF(q, self.parent.options)
else
ret[#ret + 1] = q.snaktype
end
end
end
return ret
end
-------------------------------------------------------------------------------
-- Statements Class Definition
-------------------------------------------------------------------------------
local WdStatements = class()
function WdStatements:getStatmentsTable()
return self._statements
end
function WdStatements:count()
return #self._statements
end
function WdStatements:getFilters()
return self.filtered_by
end
function WdStatements:filter(filter_t)
local statements = self._statements
if #statements == 0 then return self; end
local ret = WdStatements:new()
ret.parent = self.parent
ret.filtered_by = {}
for _,v in ipairs(self.filtered_by) do
ret.filtered_by[#ret.filtered_by + 1] = v
end
local filtered_statements = {}
for k,v in pairs(filter_t) do
filtered_statements = filterbyqualifier(statements, k, v)
ret.filtered_by[#ret.filtered_by + 1] = {[k] = v}
if #filtered_statements == 0 then
break;
else
statements = filtered_statements
end
end
ret._statements = filtered_statements
return ret
end
function WdStatements:getValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local statements = self._statements
if not statements or #statements == 0 then
return nil
end
local qualID = mw.text.trim(mergedOpts.qual or ""):upper()
if qualID == "" then qualID = nil end
local out = propertyvalueandquals(statements, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.parent.qid, self.pid)
end
function WdStatements:getQual(qualID, opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local statements = self._statements
if not statements or #statements == 0 then
return nil
end
local out = propertyvalueandquals(statements, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.parent.qid, self.pid)
end
function WdStatements:getRawQual(qualID)
local ret = {}
for _,s in pairs(self._statements) do
local qual_t = {}
if s.qualifiers and s.qualifiers[qualID] then
for _,q in pairs(s.qualifiers[qualID]) do
if q.snaktype == "value" then
qual_t[#qual_t + 1] = rawValueOrDF(q, self.parent.options)
else
qual_t[#qual_t + 1] = q.snaktype
end
end
end
ret[#ret + 1] = qual_t
end
return ret
end
function WdStatements:getRawValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local ret = {}
for _,v in pairs(self._statements) do
local datasnak = v.mainsnak or v
if datasnak.snaktype=="value" then
ret[#ret + 1] = rawValueOrDF(v, mergedOpts)
else
ret[#ret + 1] = datasnak.snaktype
end
end
return ret
end
function WdStatements:get(index)
local ret = WdStatement:new()
ret.parent = self.parent
ret.filtered_by = ret.filtered_by
ret._statement = self._statements[index]
ret.pid = ret.pid
return ret
end
function WdStatements:iter()
local i = 0
local n = self._statements and #self._statements or 0
return function()
i = i + 1
if i <= n then
return i, self:get(i)
end
end
end
function WdStatements:ipairs()
return self:iter()
end
function WdStatements:getBestOne()
local orderd_statements = orderbyrank(self._statements)
local ret = WdStatement:new() --setmetatable({}, WdStatement)
ret.parent = self.parent
ret.filtered_by = ret.filtered_by
ret._statement = orderd_statements[1]
ret.pid = ret.pid
return ret
end
-------------------------------------------------------------------------------
-- WdItem Class Definition
-------------------------------------------------------------------------------
local WdItem = class()
function WdItem:__tostring()
return "WdItem: " .. (self.qid or "no QID")
end
function WdItem:UpdateOptions(in_newOpts)
local newOpts = in_newOpts or {}
for k, v in pairs(newOpts or {}) do
self.options[k] = v
end
-- Set default options
if newOpts.lang then
self.options.lang = findLang(newOpts.lang)
end
if (newOpts.lang and not self.options.lang) or
(not newOpts.lang and newOpts.langs and #newOpts.langs > 0) then
for _, l in ipairs(newOpts.langs) do
self.options.lang = findLang(l)
if self.options.lang then
break;
end
end
end
if not self.options.lang then
self.options.lang = findLang();
end
if newOpts.rank then
self.options.reqranks = setRanks(self.options.rank)
end
if not self.options.reqranks then
self.options.reqranks = setRanks('preferred normal')
end
end
function WdItem:init(qid, options,snak)
if qid == "" then qid = nil; end
self.qid = qid
self.snak = snak
self.options = options or {}
self:UpdateOptions(options)
return self
end
function WdItem:newFromSnaks(snakTable, options)
local self = WdItem:new(nil, options or {}, snakTable)
self:UpdateOptions(options)
return self
end
function WdItem:setOptions(newOpts)
self:UpdateOptions(newOpts)
end
function WdItem:getStatements(pid, opts)
local mergedOpts = mergeOptions(self.options, opts or {})
local statements
local ret = WdStatements:new()
ret.parent = self
ret.filtered_by = {}
ret._statements = {}
ret.pid = pid
if self.snak and self.snak[pid] then
statements = self.snak[pid]
elseif not self.qid or not mw.wikibase then
statements = {}
elseif mergedOpts.reqranks and mergedOpts.reqranks.best then
statements = mw.wikibase.getBestStatements(self.qid, pid) or {}
else
statements = mw.wikibase.getAllStatements(self.qid, pid) or {}
local filtered_statements = {}
if not (mergedOpts.reqranks.deprecated == true and mergedOpts.reqranks.preferred == true and mergedOpts.reqranks.normal == true) then
for _,s in pairs(statements) do
if mergedOpts.reqranks[s.rank] then
filtered_statements[#filtered_statements + 1] = s
end
end
end
statements = filtered_statements
end
if #statements > 0 and mergedOpts.qualifiedaspossible and mergedOpts.qualifiedaspossible ~= {} then
local filtered_statements = {}
for q,qv in pairs(mergedOpts.qualifiedaspossible) do
filtered_statements = filterbyqualifier(statements, q, qv)
if #filtered_statements > 0 then
ret.filtered_by[#ret.filtered_by + 1] = {[q] = qv}
statements = filtered_statements
end
end
end
if #statements > 0 and mergedOpts.qualified and mergedOpts.qualified ~= {} then
for q,qv in pairs(mergedOpts.qualified) do
statements = filterbyqualifier(statements, q, qv)
ret.filtered_by[#ret.filtered_by + 1] = {[q] = qv}
if #statements == 0 then break; end
end
end
ret._statements = statements
return ret
end
function WdItem:getValue(pid, opts)
local mergedOpts = mergeOptions(self.options, opts)
local statements = self:getStatements(pid, mergedOpts):getStatmentsTable()
if not statements or #statements == 0 then
return nil
end
local qualID = mw.text.trim(mergedOpts.qual or ""):upper()
if qualID == "" then qualID = nil end
local out = propertyvalueandquals(statements, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.qid, pid)
end
function WdItem:getValueFromSnaks(pid, opts)
if not self.snak or not self.snak[pid] then
return nil
end
local mergedOpts = mergeOptions(self.options, opts)
local props = self.snak[pid]
local out = propertyvalueandquals(props, mergedOpts)
return assembleoutput(out, mergedOpts, nil, pid)
end
function WdItem:getPropertyIDsTable(pid, opts)
local mergedOpts = mergeOptions(self.options, opts)
mergedOpts.noicon = tostring(parseParam(mergedOpts.noicon or "", true))
local statements = self:getStatements(pid, opts)
if not statements or #statements == 0 then return {} end
local onlysrc = parseParam(mergedOpts.onlysourced or mergedOpts.onlysourced, true)
local maxvals = tonumber(mergedOpts.maxvals) or 0
local out = {}
for i, v in ipairs(statements) do
local snak = v.mainsnak or v
if (snak.datatype == "wikibase-item")
and (v.rank and mergedOpts.reqranks[v.rank:sub(1, 1)])
and (snak.snaktype == "value")
and (sourced(v) or not onlysrc) then
out[#out+1] = snak.datavalue.value.id
end
if maxvals > 0 and #out >= maxvals then break end
end
return out
end
function WdItem:getPropertyIDs(pid, opts)
local out = WdItem:getPropertyIDsTable(pid, opts)
if #out == 0 then
return nil
end
return assembleoutput(out, mergeOptions(self.options, opts), self.qid, pid)
end
function WdItem:getPropOfProp(prop1, prop2, opts)
local mergedOpts = mergeOptions(self.options, opts)
if not self.qid then return nil end
local maxvals = tonumber(mergedOpts.maxvals) or 0
local prop1Values = self:getStatements(prop1, opts):getRawValue()
if #prop1Values == 0 then return nil end
local out = {}
for k, qid2 in ipairs(prop1Values) do
local item2 = WdItem:new(qid2, mergedOpts)
local prop2Values = item2:getStatements(prop2):getStatmentsTable()
if prop2Values and prop2Values[1] then
local out2 = propertyvalueandquals(prop2Values, mergedOpts, mergedOpts.qual)
out[#out+1] = assembleoutput(out2, mergedOpts, qid2, prop2)
end
if maxvals > 0 and #out >= maxvals then break end
end
return assembleoutput(out, mergedOpts, self.qid, prop1)
end
function WdItem:getRawPropOfProp(prop1, prop2, opts)
local mergedOpts = mergeOptions(self.options, opts)
if not self.qid then return nil end
local prop1Values = self:getStatements(prop1, opts):getRawValue()
if #prop1Values == 0 then return nil end
local out = {}
for k, qid2 in ipairs(prop1Values) do
local item2 = WdItem:new(qid2, mergedOpts)
local prop2Values = item2:getStatements(prop2):getRawValue()
for _,val in ipairs(prop2Values) do
if not in_array(val,out) then
out[#out + 1] = val
end
end
end
return out
end
function WdItem:getLangOfProp(pid)
if not pid then return {}; end
local out = {}
local props = self.snak and self.snak[pid] or (self.qid and mw.wikibase.getAllStatements(self.qid, pid)) or {}
for _, v in ipairs(props) do
local datasnak = v.mainsnak or v
if datasnak.datatype == "monolingualtext" and datasnak.datavalue then
out[#out + 1] = datasnak.datavalue.value.language
end
end
return out
end
function WdItem:followQid(props, all)
all = parseParam(all, false)
props = (props or ""):upper()
if not self.qid then return nil end
if props == "" then return self.qid end
local out = {}
for p in mw.text.gsplit(props, "%p") do
p = mw.text.trim(p)
for i, v in ipairs(mw.wikibase.getBestStatements(self.qid, p)) do
local linkedid = v.mainsnak.datavalue and v.mainsnak.datavalue.value and v.mainsnak.datavalue.value.id
if linkedid then
if all then
out[#out+1] = linkedid
else
return WdItem:new(linkedid)
end
end
end
end
if #out > 0 then
return table.concat(out, " ")
else
return self
end
end
-------------------------------------------------------------------------------
-- Public API - WdItem Constructors
-------------------------------------------------------------------------------
p.WdItem = WdItem
function p.newItem(qid, opts, snak )
return WdItem:new(qid, opts, snak)
end
function p.newSnakItem(snakTable, opts)
return WdItem:newFromSnaks(snakTable, opts)
end
return p
394dchpdt65ai5w0v910eusjkrx62a1
وحدة:WdItem/شرح
828
63220
275449
2026-09-15T10:03:33Z
حبيشان
29714
استيراد من ar.wiktionary.org
275449
wikitext
text/x-wiki
{{رسالة استدعاء من لوا فقط}}
io69yw7jlz2cnlf2lnwzv3oi8pu9a6x
وحدة:WdItem/ملعب
828
63221
275450
2026-09-15T10:03:36Z
حبيشان
29714
استيراد من ar.wiktionary.org
275450
Scribunto
text/plain
-- Module: WdItem
-- Object-oriented Wikidata access module for Lua
-- Refactored from WikidataIB for direct Lua usage
require("strict")
local p = {}
-- i18n configuration
local i18n = {
["errors"] = {
["property-not-found"] = "الخاصية غير موجودة.",
["entity-not-found"] = "الكيان على ويكي بيانات غير موجود.",
["unknown-claim-type"] = "نوع الادعاء غير معروف.",
["local-article-not-found"] = "المعرف متاح على ويكي بيانات، ولكن المقال غير متاح على ويكيبيديا",
},
["months"] = {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
},
["Unknown"] = "Unknown",
["NaN"] = "Not a number",
["missinginfocat"] = "[[تصنيف:Articles with missing Wikidata information]]",
["list separator"] = ", ",
["list separator-ar"] = "، ",
}
-- Date precision constants
local dp = {
[6] = "millennium",
[7] = "century",
[8] = "decade",
[9] = "year",
[10] = "month",
[11] = "day",
}
-- local options_aliases = {
-- ["osd"] = "onlysourced",
-- ["wdl"] = "wdlinks",
-- ["uabbr"] = "unitabbr",
-- ["qo"] = "qualsonly",
-- ["lp"] = "linkprefix",
-- ["lprefix"] = "linkprefix",
-- ["qlp"] = "qlinkprefix",
-- ["sn"] = "shortname",
-- ["uselbl"] = "uselabel",
-- ["pd"] = "plaindate",
-- ["qdf"] = "qualifierdateformat",
-- ["df"] = "qualifierdateformat",
-- ["qsn"] = "qshortname"
-- }
-- setmetatable(options_aliases, { __index = function(t, k) return k end })
-------------------------------------------------------------------------------
-- Internal helper functions
-------------------------------------------------------------------------------
local function in_array( needle, haystack )
if needle == nil then
return false
end
for n, v in ipairs( haystack ) do
if v == needle then
return n
end
end
return false
end
local function findLang(langcode)
local langobj
langcode = mw.text.trim(langcode or "")
if langcode ~= "" then
if mw.language.isKnownLanguageTag(langcode) then
langobj = mw.language.new(langcode)
end
else
langobj = mw.language.getContentLanguage()
end
return langobj and langobj.code
end
local function parseParam(param, default)
if param == nil then
return default
end
return param
end
local function setRanks(rank)
rank = (rank or ""):lower()
local ranks = {}
for w in string.gmatch(rank, "%a+") do
if w == "best" or w == "preferred" or w == "normal" or w == "deprecated" then
ranks[w] = true
end
end
if ranks.best or not next(ranks) then
ranks.preferred = true
ranks.normal = true
ranks.deprecated = false
end
return ranks
end
local function labelOrId(id, lang_t)
local langs = lang_t or {}
local label
for _,lang in ipairs(langs) do
label = mw.wikibase.getLabelByLang(id, lang)
if label ~= "" then
break;
end
end
label = label or mw.wikibase.getLabel(id)
if label then
return mw.text.nowiki(label), true
else
return id, false
end
end
local function roundto(x, sf)
if x == 0 then return 0 end
local s = 1
if x < 0 then
x = -x
s = -1
end
if sf < 1 then sf = 1 end
local p = 10 ^ (math.floor(math.log10(x)) - sf + 1)
x = math.floor(x / p + 0.5) * p * s
if x == math.floor(x) then x = math.floor(x) end
return x
end
local function decimalPrecision(x, p)
local s = 1
if x < 0 then
x = -x
s = -1
end
if not tonumber(p) then p = 1e-4
elseif p > 1 then p = 1
elseif p < 1e-6 then p = 1e-6
else p = 10 ^ math.floor(math.log10(p))
end
x = math.floor(x / p + 0.5) * p * s
if x == math.floor(x) then x = math.floor(x) end
if math.abs(x) < 1e-4 then x = string.format("%f", x) end
return x
end
local function decimalToDMS(x, p)
if not tonumber(p) then p = 1e-4 end
local d = math.floor(x)
local ms = (x - d) * 60
if p > 0.5 then
if ms > 30 then d = d + 1 end
ms = 0
end
local m = math.floor(ms)
local s = (ms - m) * 60
if p > 0.008 then
if s > 30 then m = m +1 end
s = 0
elseif p > 0.00014 then
s = math.floor(s + 0.5)
elseif p > 0.000014 then
s = math.floor(10 * s + 0.5) / 10
elseif p > 0.0000014 then
s = math.floor(100 * s + 0.5) / 100
else
s = math.floor(1000 * s + 0.5) / 1000
end
return d, m, s
end
local function rawValue(dataValue)
if dataValue.type == "string" then
return dataValue.value
elseif dataValue.type == "wikibase-entityid" then
return dataValue.value and dataValue.value.id
elseif dataValue.type == "monolingualtext" then
return dataValue.value.text
elseif dataValue.type == "quantity" then
return tonumber(dataValue.value.amount)
elseif dataValue.type == 'time' then
return dataValue.value.time
elseif dataValue.type == "globecoordinate" then
return dataValue.value.latitude .. '/' .. dataValue.value.longitude
end
end
local function compareValue(dataValue, strValue)
return rawValue(dataValue) == strValue
end
local function dateFormat(timestamp, dprec, df, bcf, plaindate, qualifiers, lang, adj, model)
df = (df or ""):lower()
if df == "ymd" then
if timestamp:sub(1,1) == "+" then
return timestamp:sub(2,11)
else
local yr = tonumber(timestamp:sub(2,5)) - 1
yr = ("000" .. yr):sub(-4)
if yr ~= "0000" then yr = "-" .. yr end
return yr .. timestamp:sub(6,11)
end
end
timestamp = timestamp:gsub("%-00%-00T", "-01-01T")
dprec = dprec or 11
if df == "y" and dprec > 9 then dprec = 9 end
dprec = dprec>11 and 11 or dprec
dprec = dprec<6 and 6 or dprec
bcf = (bcf or ""):upper()
plaindate = (plaindate or ""):sub(1,1):lower()
if plaindate == "" or plaindate == "n" or plaindate == "f" or plaindate == "0" then plaindate = false end
lang = lang or findLang()
adj = adj or ""
local bc = timestamp:sub(1, 1)=="-" and "BC" or ""
local year, month, day = timestamp:match("[+-](%d*)-(%d*)-(%d*)T")
local iso = tonumber(year)
if df == 'tt' then
return {
year = tonumber(timestamp:match("^([+-]%d*)-")) or 0,
month = tonumber(month) or 0,
day = tonumber(day) or 0
}
end
if dprec == 6 then iso = math.floor( (iso - 1) / 1000 ) + 1 end
if dprec == 7 then iso = math.floor( (iso - 1) / 100 ) + 1 end
if dprec == 8 then iso = math.floor( iso / 10 ) .. "0" end
if dprec == 10 then iso = year .. "-" .. month end
if dprec == 11 then iso = year .. "-" .. month .. "-" .. day end
local sc = not plaindate and qualifiers and qualifiers.P1480
if sc then
for k1, v1 in pairs(sc) do
if v1.datavalue and v1.datavalue.value.id == "Q5727902" then
adj = "circa"
break
end
end
end
local calendarmodel = ""
if tonumber(year) > 1582 and dprec > 8 and not plaindate and model == "http://www.wikidata.org/entity/Q1985786" then
calendarmodel = "julian"
end
-- Simplified date formatting (complex date module not available)
local fdate = tostring(iso)
if bc ~= "" then
fdate = fdate .. " " .. (bcf == "BC" and "BC" or "BCE")
end
if adj == "circa" then
fdate = "c. " .. fdate
end
return fdate
end
local function hijriFormat(qualifiers, dateformat, lang)
if not (qualifiers and qualifiers.P4241) then return; end
local year, month, monthno, day
local val
local qhmonths = {["Q1952053"]=1,["Q489557"]=2, ["Q474167"] = 3, ["Q273815"] = 4, ["Q852002"] = 5, ["Q822218"] = 6,
["Q194210"] = 7, ["Q220914"] = 8, ["Q8867089"]=9, ["Q685440"]=10,["Q150853"]=11,["Q186022"]=12 }
local hmonths = {"محرم","صفر","ربيع الأول","ربيع الآخر","جمادى الأولى","جمادى الآخرة","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"}
local hmonths_inv = {["محرم"] = 1, ["صفر"]=2, ["ربيع الأول"]=3, ["ربيع الآخر"]=4, ["جمادى الأولى"]=5, ["جمادى الآخرة"]=6, ["رجب"]=7, ["شعبان"]=8, ["رمضان"]=9, ["شوال"]=10, ["ذو القعدة"]=11, ["ذو الحجة"]=12}
for _, item in ipairs(qualifiers.P4241) do
local timeQ = item.datavalue and item.datavalue.value and item.datavalue.value.id
local hastime = false
if timeQ then
local timeQt = mw.wikibase.getBestStatements(timeQ, "P361")
for _,timeQsnak in pairs(timeQt) do
local timeType = timeQsnak.mainsnak and timeQsnak.mainsnak.datavalue and timeQsnak.mainsnak.datavalue.value and timeQsnak.mainsnak.datavalue.value.id
if timeType == "Q28892" then
local timeLableAr = mw.wikibase.getLabelByLang(timeQ, "ar")
if timeLableAr then
year = mw.ustring.match(timeLableAr, "^(%d+) *هـ$")
end
if not year then
local timeLableEn = mw.wikibase.getLabelByLang(timeQ, "en")
if timeLableEn then
year = mw.ustring.match(timeLableAr, "^(%d+) *AH$")
end
end
hastime=true
elseif qhmonths[timeType] then
monthno = qhmonths[timeType]
if monthno>0 and monthno<13 then
month = hmonths[monthno]
end
local timeLableAr = mw.wikibase.getLabelByLang(timeQ, "ar")
if timeLableAr then
day = mw.ustring.match(timeLableAr, "^(%d+) *%a+$")
end
if not day then
local timeLableEn = mw.wikibase.getLabelByLang(timeQ, "en")
if timeLableEn then
day = mw.ustring.match(timeLableAr, "^(%d+) *%a+$")
end
end
hastime=true
end
end
if not hastime then
timeQt = mw.wikibase.getBestStatements(timeQ, "P31")
if "Q125390868" == (timeQt[1].mainsnak and timeQt[1].mainsnak.datavalue and timeQt[1].mainsnak.datavalue.value and timeQt[1].mainsnak.datavalue.value.id ) then
val = mw.wikibase.getLabelByLang(timeQ, "ar")
month, year = mw.ustring.match(val, "^(%a[%a ]+%a) *(%d+) *هـ?$")
monthno = hmonths_inv[month]
end
end
end
end
if year then
if dateformat == "tt" then
return {year = tonumber(year) or 0,
month = monthno or 0,
day = tonumber(day) or 0,
monthname = month or ''}
elseif dateformat == "y" or not month then
return year;
elseif day and month then
if dateformat == 'ymd' then
return string.format("%04d-%02d-%02d", tonumber(year), monthno, tonumber(day));
else
return day .. ' ' .. month .. ' ' .. year;
end
elseif month then
return month .. ' ' .. year;
end
end
return nil;
end
local function rawValueOrDF (statement, opt)
local datasnak = statement.mainsnak or statement
if (datasnak.datavalue and datasnak.datavalue.type == 'time') and (opt.hijri or opt.df) then
if opt.hijri then
return statement.qualifiers and hijriFormat(statement.qualifiers, opt.df) or nil
elseif opt.df then
local dv = datasnak.datavalue.value
return dateFormat(dv.time, dv.precision, opt.df, opt.bc, opt.plaindate, statement.qualifiers, opt.lang, "", dv.calendarmodel)
end
else
return rawValue(datasnak.datavalue)
end
end
local function sourced(claim)
if claim.references then
for kr, vr in pairs(claim.references) do
local ref = mw.wikibase.renderSnaks(vr.snaks)
if not ref:find("Wiki") then
return true
end
end
end
end
local function linkedItem(id, args)
local linkprefix = (args.linkprefix or ""):gsub('"', '')
local lpostfix = (args.lpostfix or ""):gsub('"', '')
local prefix = (args.prefix or ""):gsub('"', '')
local postfix = (args.postfix or ""):gsub('"', '')
local wikilinkprefix = (args.wikilinkprefix or ""):gsub('"', '')
local dtxt = args.dtxt
local uselabel = parseParam( args.uselabel, true)
local langs = (args.langs and #args.langs>0) and args.langs or { args.lang }
local disp
local sitelink = mw.wikibase.getSitelink(id, args.linksproject)
local label, islabel
if dtxt then
label, islabel = dtxt, true
else
label, islabel = labelOrId(id, langs)
end
if sitelink then
if not uselabel then
local pos = sitelink:find(":") or 0
local slink = sitelink
if pos > 0 then
local pfx = sitelink:sub(1,pos-1)
if mw.site.namespaces[pfx] then
slink = sitelink:sub(pos+1)
end
end
slink = slink:gsub("%s%(.+%)$", ""):gsub(",.+$", "")
if label:find("^%u") then
label = slink:gsub("^(%l)", string.upper)
else
label = slink:gsub("^(%u)", string.lower)
end
end
disp = "[[" .. wikilinkprefix .. sitelink .. lpostfix .. "|" .. prefix .. label .. postfix .. "]]"
elseif islabel then
disp = prefix .. label .. postfix
else
disp = prefix .. label .. postfix .. i18n.missinginfocat
end
return disp
end
local function rendersnak(propval, args, linked, lpre, lpost, pre, post, unitabbr, filter)
lpre = lpre or ""
lpost = lpost or ""
pre = pre or ""
post = post or ""
args.lang = args.lang or (args.langs and args.langs[1]) or findLang();
local langs = (args.langs and #args.langs>0) and args.langs or {args.lang }
local snak = propval.mainsnak or propval
local dtype = snak.datatype
local dv = snak.datavalue
dv = dv and dv.value
local val, mlt
local namedas;
namedas = propval.qualifiers and propval.qualifiers.P1932 and propval.qualifiers.P1932[1].datavalue and propval.qualifiers.P1932[1].datavalue.value or nil
args.dtxt = namedas
if propval.rank and not args.reqranks[propval.rank] then
return nil
elseif snak.snaktype == "somevalue" then
val = namedas or i18n["Unknown"]
elseif snak.snaktype == "novalue" then
-- return nothing
elseif dtype == "wikibase-item" then
local qnumber = dv.id
if linked then
val = linkedItem(qnumber, args)
else
if namedas then
val = pre .. namedas .. post
else
local label, islabel = labelOrId(qnumber, langs)
val = pre .. label .. post
end
end
elseif dtype == "time" then
if args.hijri then
val = hijriFormat(propval.qualifiers, args.df, args.lang)
else
val = dateFormat(dv.time, dv.precision, args.df, args.bc, args.plaindate, propval.qualifiers, args.lang, "", dv.calendarmodel)
end
elseif dtype == "commonsMedia" or dtype == "external-id" or dtype == "string" or dtype == "url" then
if (lpre == "" or lpre == ":") and lpost == "" then
val = pre .. dv .. post
elseif dtype == "external-id" then
val = "[" .. lpre .. dv .. lpost .. " " .. pre .. dv .. post .. "]"
else
val = "[[" .. lpre .. dv .. lpost .. "|" .. pre .. dv .. post .. "]]"
end
elseif dtype == "quantity" then
local amount = tonumber(dv.amount) or i18n["NaN"]
local unit = ""
local unitqid = string.match(dv.unit, "(Q%d+)")
if filter and unitqid ~= filter then return nil end
if unitqid then
local uname = labelOrId(unitqid, langs) or ""
if uname ~= "" then unit = " " .. uname end
end
val = tostring(amount) .. unit
elseif dtype == "globe-coordinate" then
local lat, long, prec = dv.latitude, dv.longitude, dv.precision
local show = (args.show or ""):lower()
if show == "lat" then
val = decimalPrecision(lat, prec)
elseif show == "lon" then
val = decimalPrecision(long, prec)
elseif show == "longlat" then
val = decimalPrecision(long, prec) .. ", " .. decimalPrecision(lat, prec)
else
local ns = lat < 0 and "S" or "N"
local ew = long < 0 and "W" or "E"
if lat < 0 then lat = -lat end
if long < 0 then long = -long end
val = decimalPrecision(lat, prec) .. "°" .. ns .. " " .. decimalPrecision(long, prec) .. "°" .. ew
end
elseif dtype == "monolingualtext" then
val = pre .. dv.text .. post
mlt = dv.language
else
val = "unknown data type: " .. dtype
end
return val, mlt
end
local function assembleoutput(out, args, entityID, propertyID)
local sorted = parseParam(args.sorted, false)
local noicon = parseParam(args.noicon, false)
local list = args.list or ""
local separator = args.sep or ""
separator = string.gsub(separator, '"', '')
if separator == "" then
local rtl_lang = {ar = true, fa = true, ur = true, ku = true, he = true}
separator = rtl_lang[args.lang] and i18n["list separator-ar"] or i18n["list separator"]
end
local strout
if #out > 0 then
if sorted then table.sort(out) end
if list == "" then
strout = table.concat(out, separator)
elseif list:lower() == "prose" then
strout = mw.text.listToText(out)
else
strout = mw.getCurrentFrame():expandTemplate{title = list, args = out}
end
else
strout = nil
end
return strout
end
local function propertyvalueandquals(objproperty, args, qualID)
-- needs this style of declaration because it's re-entrant
-- onlysourced is a boolean passed to return only values sourced to other than Wikipedia
-- if nothing or an empty string is passed set it true
local onlysrc = parseParam(args.onlysourced, false)
-- linked is a a boolean that enables the link to a local page via sitelink
-- if nothing or an empty string is passed set it true
local linked = parseParam(args.linked, true)
-- prefix is a string that may be nil, empty (""), or a string of characters
-- this is prefixed to each value
-- useful when when multiple values are returned
-- any double-quotes " are stripped out, so that spaces may be passed
local prefix = (args.prefix or ""):gsub('"', '')
-- postfix is a string that may be nil, empty (""), or a string of characters
-- this is postfixed to each value
-- useful when when multiple values are returned
-- any double-quotes " are stripped out, so that spaces may be passed
local postfix = (args.postfix or ""):gsub('"', '')
-- linkprefix is a string that may be nil, empty (""), or a string of characters
-- this creates a link and is then prefixed to each value
-- useful when when multiple values are returned and indirect links are needed
-- any double-quotes " are stripped out, so that spaces may be passed
local linkprefix = (args.linkprefix or ""):gsub('"', '')
-- linkpostfix is a string that may be nil, empty (""), or a string of characters
-- this is postfixed to each value when linking is enabled with linkprefix
-- useful when when multiple values are returned
-- any double-quotes " are stripped out, so that spaces may be passed
local lpostfix = (args.linkpostfix or ""):gsub('"', '')
-- wdlinks is a boolean passed to enable links to Wikidata when no article exists
-- if nothing or an empty string is passed set it false
local wdlinks = parseParam(args.wdlinks, false)
-- unitabbr is a boolean passed to enable unit abbreviations for common units
-- if nothing or an empty string is passed set it false
local unitabbr = parseParam(args.unitabbr, false)
-- qualsonly is a boolean passed to return just the qualifiers
-- if nothing or an empty string is passed set it false
local qualsonly = parseParam(args.qualsonly, false)
-- maxvals is a string that may be nil, empty (""), or a number
-- this determines how many items may be returned when multiple values are available
-- setting it = 1 is useful where the returned string is used within another call, e.g. image
local maxvals = tonumber(args.maxvals) or 0
-- plaindate boolean
-- to disable/enable "sourcing cirumstances" or use adjectival form for the plain date
local plaindate = args.plaindate or false
args.plaindate = plaindate
-- allow qualifiers to have a different date format; default to year unless qualsonly is set
args.qualifierdateformat = args.qualifierdateformat or (not qualsonly and "y")
local lang = args.lang or (args.langs and args.langs[1]) or findLang()
-- qualID is a string list of wanted qualifiers or "ALL"
qualID = qualID or ""
-- capitalise list of wanted qualifiers and substitute "DATES"
qualID = qualID:upper():gsub("DATES", "P580, P582")
local allflag = (qualID == "ALL")
-- create table of wanted qualifiers as key
local qwanted = {}
-- create sequence of wanted qualifiers
local qorder = {}
for q in mw.text.gsplit(qualID, "%p") do -- split at punctuation and iterate
local qtrim = mw.text.trim(q)
if qtrim ~= "" then
qwanted[mw.text.trim(q)] = true
qorder[#qorder+1] = qtrim
end
end
-- qsep is the output separator for rendering qualifier list
local qsep = (args.qsep or ""):gsub('"', '')
-- qargs are the arguments to supply to assembleoutput()
local qargs = {
["onlysourced"] = "false",
["linked"] = tostring(linked),
["prefix"] = args.qprefix,
["postfix"] = args.qpostfix,
["linkprefix"] = args.qlinkprefix,
["linkpostfix"] = args.qlinkpostfix,
["wdlinks"] = "false",
["unitabbr"] = tostring(unitabbr),
["maxvals"] = 0,
["sorted"] = tostring(args.qsorted),
["noicon"] = "true",
["list"] = args.qlist,
["sep"] = qsep,
-- ["langobj"] = args.langobj,
["lang"] = lang,
langs = args.langs,
["df"] = args.qualifierdateformat,
["shortname"] = parseParam(args.qshortname, false),
}
-- all proper values of a Wikidata property will be the same type as the first
-- qualifiers don't have a mainsnak, properties do
--#Modified line
local datatype = objproperty[1].datatype or (objproperty[1].mainsnak and objproperty[1].mainsnak.datatype)
-- out[] holds the a list of returned values for this property
-- mlt[] holds the language code if the datatype is monolingual text
local out = {}
local mlt = {}
for k, v in ipairs(objproperty) do
local hasvalue = true
if (onlysrc and not sourced(v)) then
-- no value: it isn't sourced when onlysourced=true
hasvalue = false
else
local val, lcode = rendersnak(v, args, linked, linkprefix, lpostfix, prefix, postfix, unitabbr)
if not val then
hasvalue = false -- rank doesn't match
elseif qualsonly and qualID then
-- suppress value returned: only qualifiers are requested
else
out[#out+1], mlt[#out+1] = val, lcode
end
end
-- See if qualifiers are to be returned:
local snak = v.mainsnak or v
if hasvalue and v.qualifiers and qualID ~= "" and snak.snaktype~="novalue" then
-- collect all wanted qualifier values returned in qlist, indexed by propertyID
local qlist = {}
local timestart, timeend = "", ""
-- loop through qualifiers
for k1, v1 in pairs(v.qualifiers) do
if allflag or qwanted[k1] then
if k1 == "P1326" then
local ts = v1[1].datavalue.value.time
local dp = v1[1].datavalue.value.precision
qlist[k1] = dateFormat(ts, dp, args.qualifierdateformat, args.bc, plaindate, "", lang, "before")
elseif k1 == "P1319" then
local ts = v1[1].datavalue.value.time
local dp = v1[1].datavalue.value.precision
qlist[k1] = dateFormat(ts, dp, args.qualifierdateformat, args.bc, plaindate, "", lang, "after")
elseif k1 == "P580" then
timestart = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one start time as valid
elseif k1 == "P582" then
timeend = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one end time as valid
else
local q = assembleoutput(propertyvalueandquals(v1, qargs), qargs)
-- we already deal with circa via 'sourcing circumstances' if the datatype was time
-- circa may be either linked or unlinked *** internationalise later ***
if datatype ~= "time" or q ~= "circa" and not (type(q) == "string" and q:find("circa]]")) then
qlist[k1] = q
end
end
end -- of test for wanted
end -- of loop through qualifiers
-- set date separator
local t = timestart .. timeend
-- *** internationalise date separators later ***
local dsep = "–"
if t:find("%s") or t:find(" ") then dsep = " – " end
-- set the order for the list of qualifiers returned; start time and end time go last
if next(qlist) then
local qlistout = {}
if allflag then
for k2, v2 in pairs(qlist) do
qlistout[#qlistout+1] = v2
end
else
for i2, v2 in ipairs(qorder) do
qlistout[#qlistout+1] = qlist[v2]
end
end
if t ~= "" then
qlistout[#qlistout+1] = timestart .. dsep .. timeend
end
local qstr = assembleoutput(qlistout, qargs)
if qualsonly then
out[#out+1] = qstr
else
out[#out] = out[#out] .. " (" .. qstr .. ")"
end
elseif t ~= "" then
if qualsonly then
if timestart == "" then
out[#out+1] = timeend
elseif timeend == "" then
out[#out+1] = timestart
else
out[#out+1] = timestart .. dsep .. timeend
end
else
out[#out] = out[#out] .. " (" .. timestart .. dsep .. timeend .. ")"
end
end
end -- of test for qualifiers wanted
if maxvals > 0 and #out >= maxvals then break end
end -- of for each value loop
-- we need to pick one value to return if the datatype was "monolingualtext"
-- if there's only one value, use that
-- otherwise look through the fallback languages for a match
if datatype == "monolingualtext" and #out >1 then
lang = mw.text.split( lang, '-', true )[1]
local fbtbl = mw.language.getFallbacksFor( lang )
table.insert( fbtbl, 1, lang )
local bestval = ""
local found = false
for idx1, lang1 in ipairs(fbtbl) do
for idx2, lang2 in ipairs(mlt) do
if (lang1 == lang2) and not found then
bestval = out[idx2]
found = true
break
end
end -- loop through values of property
end -- loop through fallback languages
if found then
-- replace output table with a table containing the best value
out = { bestval }
else
-- more than one value and none of them on the list of fallback languages
-- sod it, just give them the first one
out = { out[1] }
end
end
return out
end
local function mergeOptions(defaults, overrides)
overrides = overrides or {}
defaults = defaults or {}
local result = {}
for k, v in pairs(defaults) do
result[k] = v
end
for k, v in pairs(overrides) do
result[k] = v
if k == 'rank' then
result.reqranks = setRanks(v)
end
end
return result
end
local function filterbyqualifier(statements,qual,value)
local filtered_statements = {}
for _, statement in ipairs(statements) do
if statement.qualifiers and statement.qualifiers[qual] then
if '*' == value then
table.insert(filtered_statements, statement)
else
for _, q in ipairs(statement.qualifiers[qual]) do
if q.datavalue and (rawValue(q.datavalue) == value) then
table.insert(filtered_statements, statement)
break
end
end
end
end
end
return filtered_statements
end
local function orderbyrank(statements)
local pref_count = 0
local sorted_statements = {}
for k,v in ipairs(statements) do
if v.rank == 'preferred' then
pref_count = pref_count + 1
table.insert(sorted_statements, pref_count, v)
else
table.insert(sorted_statements, v)
end
end
return sorted_statements
end
-------------------------------------------------------------------------------
-- helper class functions
-------------------------------------------------------------------------------
local function class()
local c = {}
c.__index = c
function c:new(...)
local o = setmetatable({}, c)
if o.init then o:init(...) end
return o
end
return c
end
-------------------------------------------------------------------------------
-- Statement Class Definition
-------------------------------------------------------------------------------
local WdStatement = class()
function WdStatement:getValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local statement = self._statement
if not statement then
return nil
end
local qualID = mw.text.trim(mergedOpts.qual or ""):upper()
if qualID == "" then qualID = nil end
local out = propertyvalueandquals({statement}, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.parent.qid, self.pid)
end
function WdStatement:getRawValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
if not self._statement then
return nil
end
local datasnak = self._statement.mainsnak or self._statement
if datasnak.snaktype == "value" then
return rawValueOrDF(self._statement, mergedOpts)
else
return datasnak.snaktype
end
end
function WdStatement:getRawQual(qualID)
local ret = {}
local s = self._statement
if s.qualifiers and s.qualifiers[qualID] then
for _,q in pairs(s.qualifiers[qualID]) do
if q.snaktype == "value" then
table.insert(ret, rawValueOrDF(q, self.parent.options))
else
table.insert(ret, q.snaktype)
end
end
end
return ret
end
-------------------------------------------------------------------------------
-- Statements Class Definition
-------------------------------------------------------------------------------
local WdStatements = class()
function WdStatements:getStatmentsTable()
return self._statements
end
function WdStatements:count()
return #self._statements
end
function WdStatements:getFilters()
return self.filtered_by
end
function WdStatements:filter(filter_t)
local statements = self._statements
if #statements == 0 then return self; end
local ret = WdStatements:new()
ret.parent = self.parent
ret.filtered_by = {}
for _,v in ipairs(self.filtered_by) do
table.insert(ret.filtered_by, v)
end
local filtered_statements = {}
for k,v in pairs(filter_t) do
filtered_statements = filterbyqualifier(statements, k, v)
table.insert(ret.filtered_by, {[k] = v})
if #filtered_statements == 0 then
break;
else
statements = filtered_statements
end
end
ret._statements = filtered_statements
return ret
end
function WdStatements:getValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local statements = self._statements
if not statements or #statements == 0 then
return nil
end
local qualID = mw.text.trim(mergedOpts.qual or ""):upper()
if qualID == "" then qualID = nil end
local out = propertyvalueandquals(statements, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.parent.qid, self.pid)
end
function WdStatements:getQual(qualID, opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local statements = self._statements
if not statements or #statements == 0 then
return nil
end
local out = propertyvalueandquals(statements, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.parent.qid, self.pid)
end
function WdStatements:getRawQual(qualID)
local ret = {}
for _,s in pairs(self._statements) do
local qual_t = {}
if s.qualifiers and s.qualifiers[qualID] then
for _,q in pairs(s.qualifiers[qualID]) do
if q.snaktype == "value" then
table.insert(qual_t, rawValueOrDF(q, self.parent.options))
else
table.insert(qual_t, q.snaktype)
end
end
end
table.insert(ret,qual_t)
end
return ret
end
function WdStatements:getRawValue(opts)
local mergedOpts = mergeOptions(self.parent.options, opts)
local ret = {}
for _,v in pairs(self._statements) do
local datasnak = v.mainsnak or v
if datasnak.snaktype=="value" then
table.insert(ret, rawValueOrDF(v, mergedOpts))
else
table.insert(ret, datasnak.snaktype)
end
end
return ret
end
function WdStatements:get(index)
local ret = WdStatement:new()
ret.parent = self.parent
ret.filtered_by = ret.filtered_by
ret._statement = self._statements[index]
ret.pid = ret.pid
return ret
end
function WdStatements:iter()
local i = 0
local n = self._statements and #self._statements or 0
return function()
i = i + 1
if i <= n then
return i, self:get(i)
end
end
end
function WdStatements:ipairs()
return self:iter()
end
function WdStatements:getBestOne()
local orderd_statements = orderbyrank(self._statements)
local ret = WdStatement:new() --setmetatable({}, WdStatement)
ret.parent = self.parent
ret.filtered_by = ret.filtered_by
ret._statement = orderd_statements[1]
ret.pid = ret.pid
return ret
end
-------------------------------------------------------------------------------
-- WdItem Class Definition
-------------------------------------------------------------------------------
local WdItem = class()
function WdItem:__tostring()
return "WdItem: " .. (self.qid or "no QID")
end
function WdItem:UpdateOptions(in_newOpts)
local newOpts = in_newOpts or {}
for k, v in pairs(newOpts or {}) do
self.options[k] = v
end
-- Set default options
if newOpts.lang then
self.options.lang = findLang(newOpts.lang)
end
if (newOpts.lang and not self.options.lang) or
(not newOpts.lang and newOpts.langs and #newOpts.langs > 0) then
for _, l in ipairs(newOpts.langs) do
self.options.lang = findLang(l)
if self.options.lang then
break;
end
end
end
if not self.options.lang then
self.options.lang = findLang();
end
if newOpts.rank then
self.options.reqranks = setRanks(self.options.rank)
end
if not self.options.reqranks then
self.options.reqranks = setRanks('preferred normal')
end
end
function WdItem:init(qid, options,snak)
if qid == "" then qid = nil; end
self.qid = qid
self.snak = snak
self.options = options or {}
self:UpdateOptions(options)
return self
end
function WdItem:newFromSnaks(snakTable, options)
local self = WdItem:new(nil, options or {}, snakTable)
self:UpdateOptions(options)
return self
end
function WdItem:setOptions(newOpts)
self:UpdateOptions(newOpts)
end
function WdItem:getStatements(pid, opts)
local mergedOpts = mergeOptions(self.options, opts or {})
local statements
local ret = WdStatements:new()
ret.parent = self
ret.filtered_by = {}
ret._statements = {}
ret.pid = pid
if self.snak and self.snak[pid] then
statements = self.snak[pid]
elseif not self.qid or not mw.wikibase then
statements = {}
elseif mergedOpts.reqranks and mergedOpts.reqranks.best then
statements = mw.wikibase.getBestStatements(self.qid, pid) or {}
else
statements = mw.wikibase.getAllStatements(self.qid, pid) or {}
local filtered_statements = {}
if not (mergedOpts.reqranks.deprecated == true and mergedOpts.reqranks.preferred == true and mergedOpts.reqranks.normal == true) then
for _,s in pairs(statements) do
if mergedOpts.reqranks[s.rank] then
table.insert(filtered_statements,s)
end
end
end
statements = filtered_statements
end
if #statements > 0 and mergedOpts.qualifiedaspossible and mergedOpts.qualifiedaspossible ~= {} then
local filtered_statements = {}
for q,qv in pairs(mergedOpts.qualifiedaspossible) do
filtered_statements = filterbyqualifier(statements, q, qv)
if #filtered_statements > 0 then
table.insert(ret.filtered_by, {[q] = qv})
statements = filtered_statements
end
end
end
if #statements > 0 and mergedOpts.qualified and mergedOpts.qualified ~= {} then
for q,qv in pairs(mergedOpts.qualified) do
statements = filterbyqualifier(statements, q, qv)
table.insert(ret.filtered_by, {[q] = qv})
if #statements == 0 then break; end
end
end
ret._statements = statements
return ret
end
function WdItem:getValue(pid, opts)
local mergedOpts = mergeOptions(self.options, opts)
local statements = self:getStatements(pid, mergedOpts):getStatmentsTable()
if not statements or #statements == 0 then
return nil
end
local qualID = mw.text.trim(mergedOpts.qual or ""):upper()
if qualID == "" then qualID = nil end
local out = propertyvalueandquals(statements, mergedOpts, qualID)
return assembleoutput(out, mergedOpts, self.qid, pid)
end
function WdItem:getValueFromSnaks(pid, opts)
if not self.snak or not self.snak[pid] then
return nil
end
local mergedOpts = mergeOptions(self.options, opts)
local props = self.snak[pid]
local out = propertyvalueandquals(props, mergedOpts)
return assembleoutput(out, mergedOpts, nil, pid)
end
function WdItem:getPropertyIDsTable(pid, opts)
local mergedOpts = mergeOptions(self.options, opts)
mergedOpts.noicon = tostring(parseParam(mergedOpts.noicon or "", true))
local statements = self:getStatements(pid, opts)
if not statements or #statements == 0 then return {} end
local onlysrc = parseParam(mergedOpts.onlysourced or mergedOpts.onlysourced, true)
local maxvals = tonumber(mergedOpts.maxvals) or 0
local out = {}
for i, v in ipairs(statements) do
local snak = v.mainsnak or v
if (snak.datatype == "wikibase-item")
and (v.rank and mergedOpts.reqranks[v.rank:sub(1, 1)])
and (snak.snaktype == "value")
and (sourced(v) or not onlysrc) then
out[#out+1] = snak.datavalue.value.id
end
if maxvals > 0 and #out >= maxvals then break end
end
return out
end
function WdItem:getPropertyIDs(pid, opts)
local out = WdItem:getPropertyIDsTable(pid, opts)
if #out == 0 then
return nil
end
return assembleoutput(out, mergeOptions(self.options, opts), self.qid, pid)
end
function WdItem:getPropOfProp(prop1, prop2, opts)
local mergedOpts = mergeOptions(self.options, opts)
if not self.qid then return nil end
local maxvals = tonumber(mergedOpts.maxvals) or 0
local prop1Values = self:getStatements(prop1, opts):getRawValue()
if #prop1Values == 0 then return nil end
local out = {}
for k, qid2 in ipairs(prop1Values) do
local item2 = WdItem:new(qid2, mergedOpts)
local prop2Values = item2:getStatements(prop2):getStatmentsTable()
if prop2Values and prop2Values[1] then
local out2 = propertyvalueandquals(prop2Values, mergedOpts, mergedOpts.qual)
out[#out+1] = assembleoutput(out2, mergedOpts, qid2, prop2)
end
if maxvals > 0 and #out >= maxvals then break end
end
return assembleoutput(out, mergedOpts, self.qid, prop1)
end
function WdItem:getRawPropOfProp(prop1, prop2, opts)
local mergedOpts = mergeOptions(self.options, opts)
if not self.qid then return nil end
local prop1Values = self:getStatements(prop1, opts):getRawValue()
if #prop1Values == 0 then return nil end
local out = {}
for k, qid2 in ipairs(prop1Values) do
local item2 = WdItem:new(qid2, mergedOpts)
local prop2Values = item2:getStatements(prop2):getRawValue()
for _,val in ipairs(prop2Values) do
if not in_array(val,out) then
table.insert(out,val)
end
end
end
return out
end
function WdItem:getLangOfProp(pid)
if not pid then return {}; end
local out = {}
local props = self.snak and self.snak[pid] or (self.qid and mw.wikibase.getAllStatements(self.qid, pid)) or {}
for _, v in ipairs(props) do
local datasnak = v.mainsnak or v
if datasnak.datatype == "monolingualtext" and datasnak.datavalue then
out[#out + 1] = datasnak.datavalue.value.language
end
end
return out
end
function WdItem:followQid(props, all)
all = parseParam(all, false)
props = (props or ""):upper()
if not self.qid then return nil end
if props == "" then return self.qid end
local out = {}
for p in mw.text.gsplit(props, "%p") do
p = mw.text.trim(p)
for i, v in ipairs(mw.wikibase.getBestStatements(self.qid, p)) do
local linkedid = v.mainsnak.datavalue and v.mainsnak.datavalue.value and v.mainsnak.datavalue.value.id
if linkedid then
if all then
out[#out+1] = linkedid
else
return WdItem.WdItem:new(linkedid)
end
end
end
end
if #out > 0 then
return table.concat(out, " ")
else
return self
end
end
-------------------------------------------------------------------------------
-- Public API - WdItem Constructors
-------------------------------------------------------------------------------
p.WdItem = WdItem
function p.newItem(qid, opts, snak )
return WdItem:new(qid, opts, snak)
end
function p.newSnakItem(snakTable, opts)
return WdItem:newFromSnaks(snakTable, opts)
end
return p
ebo6q1388a5tyszork79ryyo2iavr9e
وحدة:Complex date
828
63222
275451
2026-09-15T10:04:02Z
حبيشان
29714
استيراد من ar.wiktionary.org
275451
Scribunto
text/plain
--[[
__ __ _ _ ____ _ _
| \/ | ___ __| |_ _| | ___ _ / ___|___ _ __ ___ _ __ | | _____ __ __| | __ _| |_ ___
| |\/| |/ _ \ / _` | | | | |/ _ (_) | / _ \| '_ ` _ \| '_ \| |/ _ \ \/ / / _` |/ _` | __/ _ \
| | | | (_) | (_| | |_| | | __/_| |__| (_) | | | | | | |_) | | __/> < | (_| | (_| | || __/
|_| |_|\___/ \__,_|\__,_|_|\___(_)\____\___/|_| |_| |_| .__/|_|\___/_/\_\ \__,_|\__,_|\__\___|
|_|
This module is intended for creation of complex date phrases in variety of languages.
Once deployed, please do not modify this code without applying the changes first at Module:Complex date/sandbox and testing
at Module:Complex date/sandbox/testcases.
Authors and maintainers:
* User:Sn1per - first draft of the original version
* User:Jarekt - corrections and expansion of the original version
]]
-- List of external modules and functions
local p = {Error = nil}
local i18n = require('Module:i18n/complex date') -- used for translations of date related phrases
local ISOdate = require('Module:ISOdate')._ISOdate -- used for parsing dates in YYYY-MM-DD and related formats
local Calendar -- loaded lazily
-- ==================================================
-- === Internal functions ===========================
-- ==================================================
local function langSwitch(list,lang)
local langList = mw.language.getFallbacksFor(lang)
table.insert(langList,1,lang)
table.insert(langList,math.max(#langList,2),'default')
for i,language in ipairs(langList) do
if list[language] then
return list[language]
end
end
end
-- ==================================================
local function formatnum1(numStr, lang)
-- mostly require('Module:Formatnum').formatNum function used to translate a number to use different numeral characters,
-- except that it it does not call that function unless the language is on the list "LList"
local LList = {bn=1,bpy=1,kn=1,hi=1,mr=1,new=1,pa=1,gu=1,fa=1,glk=1,mzn=1,ur=1,ar=1,ckb=1,ks=1,lo=1,['or']=1,bo=1,['ml-old']=1,mn=1,te=1,th=1}
if LList[lang] then -- call only when the language is on the list
numStr = require('Module:Formatnum').formatNum(numStr, lang, 1)
end
return numStr
end
-- ==================================================
local function getISODate(datestr, datetype, lang, num, case)
-- translate dates in the format YYYY, YYYY-MM, and YYYY-MM-DD
if not case and i18n.Translations[datetype] then
-- look up the grammatical case needed and call ISOdate module
local rec = langSwitch(i18n.Translations[datetype], lang)
if type(rec)=='table' then
case = rec.case[num]
end
end
return ISOdate(datestr, lang, case, '', 1)
end
-- =======================================================================
local function translatePhrase(date1, date2, operation, lang, state)
-- use tables in Module:i18n/complex date to translate a phrase
if not i18n.Translations[operation] then
p.Error = string.format('<span style="background-color:red;">Error in [[Module:Complex date]]: input parameter "%s" is not recognized.</span>', operation or 'nil')
return ''
end
local dateStr = langSwitch(i18n.Translations[operation], lang)
if type(dateStr)=='table' then
dateStr = dateStr[1]
end
if type(dateStr)=='function' then
local dateFunc = dateStr
local nDates = i18n.Translations[operation]['nDates']
if nDates==2 then -- 2 date phrase
dateStr = dateFunc(date1, date2, state)
else -- 1 date phrase
dateStr = dateFunc(date1, state)
end
end
if type(dateStr)=='string' then
-- replace parts of the string '$date1' and '$date2' with date1 and date2 strings
dateStr = mw.ustring.gsub(dateStr, '$date1', date1)
dateStr = mw.ustring.gsub(dateStr, '$date2', date2)
else
-- Special case of more complex phrases that can be build out of simple phrases
-- If complex case is not translated to "lang" than build it out of simpler ones
local x = dateStr
dateStr = p._complex_date(x.conj, x.adj1, date1, x.units1, x.era1, x.adj2, date2, x.units2, x.era2, lang, 2)
end
return dateStr
end
-- =======================================================================
local function oneDatePhrase(dateStr, adj, era, units, lang, num, case, state)
-- translate a single date phrase
if num==2 then
state.adj, state.era, state.units, state.precision = state.adj2, state.era2, state.units2, state.precision2
end
-- dateStr can have many forms: ISO date, year or a number for
-- decade, century or millennium
if units == '' then -- unit is "year", "month", "day"
dateStr = getISODate(dateStr, adj, lang, num, case)
else -- units is "decade", "century", "millennium''
dateStr = translatePhrase(dateStr, '', units, lang, state)
end
-- add adjective ("early", "mid", etc.) or preposition ("before", "after",
-- "circa", etc.) to the date
if adj ~= '' then
dateStr = translatePhrase(dateStr, '', adj, lang, state)
else -- only era?
dateStr = formatnum1(dateStr, lang)
end
-- add era
if era ~= '' then
dateStr = translatePhrase(dateStr, '', era, lang, state)
end
return dateStr
end
-- =======================================================================
local function twoDatePhrase(date1, date2, state, lang)
-- translate a double date phrase
local dateStr, case
local era=''
if state.era1 == state.era2 then
-- if both eras are the same than add it only once
era = state.era1
state.era1 = ''
state.era2 = ''
end
case = {nil, nil}
if i18n.Translations[state.conj] then
local rec = langSwitch(i18n.Translations[state.conj], lang)
if type(rec)=='table' then
case = rec.case
end
end
date1 = oneDatePhrase(date1, state.adj1, state.era1, state.units1, lang, 1, case[1], state)
date2 = oneDatePhrase(date2, state.adj2, state.era2, state.units2, lang, 2, case[2], state)
dateStr = translatePhrase(date1, date2, state.conj, lang, state)
if era ~= '' then
dateStr = translatePhrase(dateStr, '', era, lang, state)
end
return dateStr
end
-- =======================================================================
local function otherPhrases(date1, date2, operation, era, lang, state)
-- translate specialized phrases
local dateStr = ''
if operation == 'islamic' then
if date2=='' then date2 = mw.getCurrentFrame():callParserFunction('#time', 'xmY', date1) end
date1 = getISODate(date1, operation, lang, 1, nil)
date2 = getISODate(date2, operation, lang, 2, nil)
if era == '' then era = 'ad' end
dateStr = translatePhrase(date1, '', era, lang, state) .. ' (' .. translatePhrase(date2, '', 'ah', lang, state) .. ')'
era = ''
elseif operation == 'julian' then
if not date2 and date1 then -- Convert from Julian to Gregorian calendar date
if Calendar == nil then
Calendar = require("Module:Calendar") -- lazy loding (only if needed)
end
local JDN = Calendar._date2jdn(date1, 0)
if JDN then
date2 = date1 -- first date is assumed to be Julian
date1 = Calendar._jdn2date(JDN, 1)
end
end
date1 = getISODate(date1, operation, lang, 1, nil)
date2 = getISODate(date2, operation, lang, 2, nil)
dateStr = translatePhrase(date1, date2, operation, lang, state)
dateStr = mw.ustring.gsub(mw.ustring.gsub(dateStr, '%( ', '('), ' %)', ')') -- in case date2 is empty
elseif operation == 'turn of the year' or operation == 'turn of the decade' or operation == 'turn of the century' then
local dt = 1
if operation == 'turn of the decade' then dt=10 end
if not date2 or date2=='' then date2=tostring(tonumber(date1)-dt) end
if era~='bp' and era~='bc' then date1, date2 = date2, date1 end
if operation == 'turn of the year' then
date1 = ISOdate(date1, lang, '', '', 1)
date2 = ISOdate(date2, lang, '', '', 1)
else
date1 = formatnum1(date1, lang)
date2 = formatnum1(date2, lang)
end
dateStr = translatePhrase(date1, date2, operation, lang, state)
elseif operation == 'year unknown' then
dateStr = translatePhrase('', '', operation, lang, state) .. '<div style="display: none;">Unknown date</div>'
elseif operation == 'unknown' then
dateStr = tostring(mw.message.new( "exif-unknowndate" ):inLanguage( lang )) .. '<div style="display: none;">Unknown date</div>'
end
-- add era
if era ~= '' then
dateStr = translatePhrase(dateStr, '', era, lang, state)
end
return dateStr
end
-- =======================================================================
local function checkAliases(str1, str2, sType)
-- some inputs have many aliases - reconcile them and ensure string is playing a proper role
local out = ''
if str1 and str1~='' then
local a = i18n.Synonyms[str1] -- look up synonyms of "str1"
if a then
out = a[1]
else
p.Error = string.format('<span style="background-color:red;">Error in [[Module:Complex date]]: %s is not recognized.</span>', str1)
end
elseif str2 and str2~='' then -- if "str1" of type "sType" is empty than maybe ...
local a = i18n.Synonyms[str2] -- ..."str2" is of the same type and is not empty
if a and a[2]==sType then
out = a[1]
str2 = ''
end
end
return out, str2
end
-- =======================================================================
local function datePrecision(dateStr, units)
-- "in this module "Units" is a string like millennium, century, or decade
-- "precision" is wikibase compatible date precision number: 6=millennium, 7=century, 8=decade, 9=year, 10=month, 11=day
-- based on string or numeric input calculate "Units" and "precision"
local precision
if type(units)=='number' then
precision = units
if precision>11 then precision=11 end -- clip the range of precision values
if precision==6 then units='millennium'
elseif precision==7 then units='century'
elseif precision==8 then units='decade'
else units = ''
end
elseif type(units)=='string' then
units = string.lower(units)
if units=='millennium' then precision=6
elseif units=='century' then precision=7
elseif units=='decade' then precision=8
else precision=9
end
end
if units=='' or precision==9 then
local sLen = mw.ustring.len(dateStr)
if sLen<= 4 then precision=9
elseif sLen== 7 then precision=10
elseif sLen>=10 then precision=11
end
units=''
end
if precision==6 and dateStr.match( dateStr, '%d000' )~=nil then
dateStr = tostring(math.floor(tonumber(dateStr)/1000) +1)
elseif precision==7 and mw.ustring.match( dateStr, '%d%d00' )~=nil then
dateStr = tostring(math.floor(tonumber(dateStr)/100) +1)
end
return dateStr, units, precision
end
-- =======================================================================
local function isodate2timestamp(dateStr, precision, era)
-- convert date string to timestamps used by Quick Statements
local tStamp = nil
if era == 'ah' or precision<6 then
return nil
elseif era ~= '' then
local eraLUT = {ad='+', bc='-', bp='-' }
era = eraLUT[era]
else
era='+'
end
-- convert isodate to timestamp used by quick statements
if precision>=9 then
if string.match(dateStr,"^%d%d%d%d$") then -- if YYYY format
tStamp = era .. dateStr .. '-00-00T00:00:00Z/9'
elseif string.match(dateStr,"^%d%d%d%d%-%d%d$") then -- if YYYY-MM format
tStamp = era .. dateStr .. '-00T00:00:00Z/10'
elseif string.match(dateStr,"^%d%d%d%d%-%d%d%-%d%d$") then -- if YYYY-MM-DD format
tStamp = era .. dateStr .. 'T00:00:00Z/11'
end
elseif precision==8 then -- decade
tStamp = era .. dateStr .. '-00-00T00:00:00Z/8'
elseif precision==7 then -- century
local d = tostring(tonumber(dateStr)-1)
tStamp = era .. d .. '50-00-00T00:00:00Z/7'
elseif precision==6 then
local d = tostring(tonumber(dateStr)-1)
tStamp = era .. d .. '500-00-00T00:00:00Z/6'
end
return tStamp
end
-- =======================================================================
local function oneDateQScode(dateStr, adj, era, precision)
-- create QuickStatements string for "one date" dates
local outputStr = ''
local d = isodate2timestamp(dateStr, precision, era)
if not d then
return ''
end
local rLUT = { early='Q40719727' , mid='Q40719748', late='Q40719766',
['1quarter']='Q40690303' , ['2quarter']='Q40719649' , ['3quarter']='Q40719662', ['4quarter']='Q40719674',
spring='Q40720559' , summer='Q40720564' , autumn='Q40720568' , winter='Q40720553',
firsthalf='Q40719687', secondhalf='Q40719707' }
local qLUT = {['from']='P580', ['until']='P582', ['after']='P1319', ['before']='P1326', ['by']='P1326'}
local refine = rLUT[adj]
local qualitier = qLUT[adj]
if adj=='' then
outputStr = d
elseif adj=='circa' then
outputStr = d..",P1480,Q5727902"
elseif refine then
outputStr = d..",P4241,"..refine
elseif precision>7 and qualitier then
local century = string.gsub(d, 'Z%/%d+', 'Z/7')
outputStr = century ..",".. qualitier ..","..d
end
return outputStr
end
-- =======================================================================
local function twoDateQScode(date1, date2, state)
-- create QuickStatements string for "two date" dates
if state.adj1~='' or state.adj2~='' or state.era1~=state.era2 then
return '' -- QuickStatements string are not generated for two date phrases with adjectives
end
local outputStr = ''
local d1 = isodate2timestamp(date1, state.precision1, state.era1)
local d2 = isodate2timestamp(date2, state.precision2, state.era2)
if (not d1) or (not d2) then
return ''
end
-- find date with lower precision in common to both dates
local cd
local year1 = tonumber(string.sub(d1,2,5))
local year2 = tonumber(string.sub(d2,2,5))
local k = 0
for i = 1,10,1 do
if string.sub(d1,1,i)==string.sub(d2,1,i) then
k = i -- find last matching letter
end
end
if k>=9 then -- same month, since "+YYYY-MM-" is in common
cd = isodate2timestamp(string.sub(d1,2,8), 10, state.era1)
elseif k>=6 and k<9 then -- same year, since "+YYYY-" is in common
cd = isodate2timestamp(tostring(year1), 9, state.era1)
elseif k==4 then -- same decade(k=4, precision=8), since "+YYY" is in common
cd = isodate2timestamp(tostring(year1), 8, state.era1)
elseif k==3 then -- same century(k=3, precision=7) since "+YY" is in common
local d = tostring(math.floor(year1/100) +1) -- convert 1999 -> 20
cd = isodate2timestamp( d, 7, state.era1)
elseif k==2 then -- same millennium (k=2, precision=6), since "+Y" is in common
local d = tostring(math.floor(year1/1000) +1) -- convert 1999 -> 2
cd = isodate2timestamp( d, 6, state.era1)
end
if not cd then
return ''
end
--if not cd then
-- return ' <br/>error: ' .. d1.." / " .. d2.." / ".. (cd or '') .." / ".. string.sub(d1,2,5).." / " .. string.sub(d2,2,5).." / " .. tostring(k)
--end
--
if (state.conj=='from-until') or (state.conj=='and' and year1==year2-1) then
outputStr = cd ..",P580,".. d1 ..",P582,".. d2
elseif (state.conj=='between') or (state.conj=='or' and year1==year2-1) then
outputStr = cd ..",P1319,".. d1 ..",P1326,".. d2
elseif state.conj=='circa2' then
outputStr = cd ..",P1319,".. d1 ..",P1326,".. d2 ..",P1480,Q5727902"
end
return outputStr
end
-- =======================================================================
local function processInputParams(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, lang, passNr)
-- process inputs and save date in state array
local state = {}
state.conj = string.lower(conj or '')
state.adj1 = string.lower(adj1 or '')
state.adj2 = string.lower(adj2 or '')
state.era1 = string.lower(era1 or '')
state.era2 = string.lower(era2 or '')
state.units1 = string.lower(units1 or '')
state.units2 = string.lower(units2 or '')
-- if date 1 is missing but date 2 is provided than swap them
if date1 == '' and date2 ~= '' then
date1 = date2
date2 = ''
state = {adj1 = state.adj2, era1 = state.era2, units1 = state.units2,
adj2 = '', era2 = '', units2 = '', conj=state.conj, num=1}
end
if date2 ~= '' then state.nDates = 2
elseif date1 ~= '' then state.nDates = 1
else state.nDates = 0
end
-- reconcile alternative names for text inputs
local conj = checkAliases(state.conj ,'' ,'j')
state.adj1 ,conj = checkAliases(state.adj1 ,conj,'a')
state.units1,conj = checkAliases(state.units1,conj,'p')
state.era1 ,conj = checkAliases(state.era1 ,conj,'e')
state.special,conj = checkAliases('',conj,'c')
state.adj2 = checkAliases(state.adj2 ,'','a')
state.units2 = checkAliases(state.units2,'','p')
state.era2 = checkAliases(state.era2 ,'','e')
state.conj = conj
state.lang = lang
if p.Error~=nil then
return nil
end
-- calculate date precision value
date1, state.units1, state.precision1 = datePrecision(date1, state.units1)
date2, state.units2, state.precision2 = datePrecision(date2, state.units2)
-- Handle special cases
-- Some complex phrases can be created out of simpler ones. Therefore on pass # 1 we try to create
-- the phrase using complex phrase and if that is not found than on the second pass we try to build
-- the phrase out of the simpler ones
if passNr==1 then
if state.adj1=='circa' and state.nDates == 2 then
state.conj = 'circa2'
state.adj1 = ''
state.adj2 = ''
end
if state.nDates == 2 and state.adj1=='late' and state.adj2=='early' and state.conj=='and'
and state.units1==state.units2 and state.era1==state.era2 then
if state.units1=='century' then
state.conj='turn of the century'
elseif state.units1=='decade' then
state.conj='turn of the decade'
elseif state.units1=='' then
state.conj='turn of the year'
end
state.adj1 = ''
state.adj2 = ''
state.units1 = ''
state.units2 = ''
end
end
state.adj, state.era, state.units, state.precision = state.adj1, state.era1, state.units1, state.precision1
return date1, date2, state
end
-- ==================================================
-- === External functions ===========================
-- ==================================================
function p.Era(frame)
-- process inputs
local dateStr
local args = frame.args
if not (args.lang and mw.language.isSupportedLanguage(args.lang)) then
args.lang = frame:callParserFunction( "int", "lang" ) -- get user's chosen language
end
local lang = args['lang']
local dateStr = args['date'] or ''
local eraType = string.lower(args['era'] or '')
dateStr = ISOdate(dateStr, lang, '', '', 1)
if eraType then
eraType = checkAliases(eraType ,'','e')
dateStr = translatePhrase(dateStr, '', eraType, lang, {})
end
return dateStr
end
-- =======================================================================
function p._complex_date(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, lang, passNr)
local Output=''
local state
-- process inputs and save date in state array
date1, date2, state = processInputParams(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, lang, passNr)
if p.Error~=nil then
return nil
end
local errorStr = string.format(
'\n*conj=%s, adj1=%s, era1=%s, unit1=%s, prec1=%i, adj2=%s, era2=%s, unit2=%s, prec2=%i, special=%s',
state.conj, state.adj1, state.era1, state.units1, state.precision1,
state.adj2, state.era2, state.units2, state.precision2, state.special)
-- call specialized functions
local QScode = ''
if state.special~='' then
Output = otherPhrases(date1, date2, state.special, state.era1, lang, state)
elseif state.conj~='' then
QScode = twoDateQScode(date1, date2, state)
Output = twoDatePhrase(date1, date2, state, lang)
elseif state.adj1~='' or state.era1~='' or state.units1~='' then
Output = oneDatePhrase(date1, state.adj1, state.era1, state.units1, lang, 1, nil, state)
QScode = oneDateQScode(date1, state.adj1, state.era1, state.precision1)
elseif date1~='' then
Output = ISOdate(date1, lang, '', 'dtstart', '100-999')
end
if p.Error~=nil then
return errorStr
end
-- if there is any wikicode in the string than execute it
if mw.ustring.find(Output, '{') then
Output = mw.getCurrentFrame():preprocess(Output)
end
if QScode and #QScode>0 then
QScode = ' <div style="display: none;">date QS:P,' .. QScode .. '</div>'
end
return Output .. QScode
end
-- =======================================================================
function p._complex_date_cer(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, certainty, lang)
-- same as p._complex_date but with extra parameter for certainty: probably, possibly, presumably, etc.
local dateStr = p._complex_date(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, lang, 1)
certainty = checkAliases(certainty, conj, 'r')
local LUT = {probably='Q56644435', presumably='Q18122778', possibly='Q30230067', circa='Q5727902' }
if certainty and LUT[certainty] then
local state = {}
date1, date2, state = processInputParams(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, lang, 1)
dateStr = translatePhrase(dateStr, '', certainty, lang, state)
dateStr = string.gsub(dateStr, '(%<div style="display: none;"%>date QS:P,[^%<]+)(%</div%>)', '%1,P1480,' .. LUT[certainty] .. '%2' )
end
return dateStr
end
-- =======================================================================
function p.complex_date(frame)
-- process inputs
local dateStr
local args = frame.args
if not (args.lang and mw.language.isSupportedLanguage(args.lang)) then
args.lang = frame:callParserFunction( "int", "lang" ) -- get user's chosen language
end
local date1 = args['date1'] or args['2'] or args['date'] or ''
local date2 = args['date2'] or args['3'] or ''
local conj = args['conj'] or args['1'] or ''
local adj1 = args['adj1'] or args['adj'] or ''
local adj2 = args['adj2'] or ''
local units1 = args['precision1'] or args['precision'] or ''
local units2 = args['precision2'] or args['precision'] or ''
local era1 = args['era1'] or args['era'] or ''
local era2 = args['era2'] or args['era'] or ''
local certainty = args['certainty']
local lang = args['lang']
dateStr = p._complex_date_cer(conj, adj1, date1, units1, era1, adj2, date2, units2, era2, certainty, lang)
if p.Error~=nil then
dateStr = p.Error .. '[[تصنيف:Pages using Complex date template with incorrect parameter]]'
end
return dateStr
end
return p
7risbtns9g634nqy334f80ssn2qvz22
قالب:رسالة استدعاء من لوا فقط
10
63223
275453
2026-09-15T10:07:14Z
حبيشان
29714
استيراد من ar.wiktionary.org
275453
wikitext
text/x-wiki
{{صندوق رسالة أخرى|النص=هذه الوحدة تستدعى من لوا فقط وغير قابلة للاستدعاء في القوالب والصفحات|النوع=محتوى|الصورة= [[ملف:Lua-Logo-small.svg]]}}<includeonly>{{ملعب آخر||
[[تصنيف:وحدات لا تقبل الاستدعاء من القوالب]]
}}</includeonly><noinclude>
{{توثيق}}
[[تصنيف:قوالب نطاق وحدة]]
</noinclude>
tkj33dzqd0t82jylqdxeboa39cu91wr
قالب:رسالة استدعاء من لوا فقط/شرح
10
63224
275454
2026-09-15T10:07:16Z
حبيشان
29714
استيراد من ar.wiktionary.org
275454
wikitext
text/x-wiki
{{صفحة توثيق فرعية}}
=== استعمال ===
يوضع قالب في شرح وحدة غير قابلة للاستدعاء في القوالب والصفحات.
== بيانات القالب==
{{رأس بيانات القالب}}
<templatedata>
{
"params": {},
"description": "يضع رسالة للتنبيه أن الوحدة غير قابلة للاستدعاء في القوالب والصفحات"
}
</templatedata>
<includeonly>{{ملعب أخر||
<!-- [[تصنيف:قوالب ويكيبيديا]] -->
}}</includeonly>
sliqy4rpsv9ss8am8uu7ivvyfkcf5y0
قالب:استشهاد بويكي بيانات
10
63225
275455
2026-09-15T10:08:09Z
حبيشان
29714
استيراد من ar.wiktionary.org
275455
wikitext
text/x-wiki
<includeonly>{{#invoke:Cite Q|cite_q}}</includeonly><noinclude>
{{توثيق}}
</noinclude>
8s0wbiizkrg2tgxl21j1tvwc3q8xt5z
قالب:استشهاد بويكي بيانات/شرح
10
63226
275456
2026-09-15T10:08:11Z
حبيشان
29714
استيراد من ar.wiktionary.org
275456
wikitext
text/x-wiki
{{صفحة توثيق فرعية}}
{{استخدام واسع}}
{{Lua|Module:Cite Q}}
{{يستخدم ويكي بيانات|section=Parameter / entity map}}
== خلفية عامة ==
اقرأ المزيد حول هذا القالب في:
<div style="direction: ltr">
{{استشهاد بويكي بيانات|Q104831003}}
</div>
== الاستخدام ==
يعتمد قالب {{قا|استشهاد بويكي بيانات}} على معرِّفات العناصر التي في [[ويكي بيانات]].
مقالة [[سورة الإخلاص]] هي مثال لمقالة اعتمد أسلوب الاستشهاد فيها على هذا القالب، بما في ذلك استعمال قالب {{قا|استشهاد مختصر}}.
لو كان للمرجع أكثر من من ثمانية مؤلفين أو محررين، فإن هذا القالب يسلك سلوكاً مشابهاً لأسلوب الاستشهاد CS1، أي تظهر أسماء المؤلفين، أو المحررين، الخمسة الأوائل متبوعة بكلمة "وآخرون"، ويمكن ضبط العدد باستعمال الوسيط {{وسيط قالب|إظهار المؤلفين}}.
سيضيف القالب المقالة التي تحتوي مراجع لأوراق بحثية نُشرت ثم سُحبت بعد ذلك ({{خاصية|P5824}})، لوجود أخطاء فيها مثلاً، إلى تصنيف [[:تصنيف:استشهاد بويكي بيانات - أوراق مسحوبة]].
سيضيف القالب المقالة التي تحتوي مراجع لأوراق بحثية حُدِّثت بعد نشرها ({{خاصية|P1366}})، لإضافة ملاحظات إليها مثلاً، إلى تصنيف [[:تصنيف:استشهاد بويكي بيانات - أوراق مستبدلة]].
=== وسائط القالب ===
للقالب وسيط إلزامي وحيد هو:
* {{وسيط قالب|1}} = مُعرِّف ويكي بيانات.
أي:
:<code><nowiki><ref>{{استشهاد بويكي بيانات| مُعرِّف عنصر في ويكي بيانات }}</ref></nowiki></code>
:مثلاً، لو أضيف المقطع التالي في المقالة:
:<code><nowiki><ref >{{استشهاد بويكي بيانات|Q111302679}}</ref></nowiki></code>
فإن النص التالي سيظهر في قسم المراجع:
{{استشهاد بويكي بيانات|Q111302679}}
لو وجدت حاجة لتغيير القيمة المستوردة من ويكي بيانات محلياً، يلزم فعل ما يلي:
# تعطيل استيراد القيمة باستعمال الكلمة المحجوزة unset، ويلزم ضبط الوسيط، باسمه الإنجليزي، إلى هذه الكلمة، مثلاً للمؤلف <code><nowiki>|author=unset</nowiki></code>.
# إضافة القيمة المرغوبة بعد اسم الوسيط بالعربية.
مثلاً، لإظهار اسم المؤلف في المثال السابق أ. رستم، بدلاً عن أسد رستم، يُضاف النص التالي:
<code><nowiki>{{استشهاد بويكي بيانات|Q111302679|author=unset|مؤلف=أ. رستم}}</nowiki></code>
وسيظهر النص التالي في قسم المراجع:
{{استشهاد بويكي بيانات|Q111302679|author=unset|مؤلف=أ. رستم}}
=== قائمة المحددات (الوسائط) ===
يظهر هذا المقطع كل خاصية في ويكي بيانات وما يوافقها في هذا القالب:
{{بداية-أعمدة}}
==== وسائط فهرسة ====
*{{وسيط|at}} = {{خاصية|P958}}
*{{وسيط|author''n''}} = {{خاصية|P50}}; {{خاصية|P2093}}
*{{وسيط|chapter}} = {{خاصية|P792}}
*{{وسيط|contributor''n''}} = {{خاصية|P2680}}, {{خاصية|P1891}}
*{{وسيط|edition}} = {{خاصية|P393}}
*{{وسيط|editor''n''}} = {{خاصية|P98}}; {{خاصية|P5769}}
*{{وسيط|issue}} = {{خاصية|P433}}
*{{وسيط|journal}} = {{خاصية|P1433}}
*{{وسيط|language}} = {{خاصية|P407}}
*{{وسيط|pages}} = {{خاصية|P304}}
*{{وسيط|place}} = {{خاصية|P1071}} (لمكان كتابة العمل)
*{{وسيط|publication-date}} = {{خاصية|P577}} (يُعامل مثل {{وسيط|date}} طالما لم يُذكر كلاهما)
*{{وسيط|publication-place}} = {{خاصية|P291}} (لمكان النشر، يُعامل مثل{{وسيط|place}} طالما لم يذكر كلاهما)
*{{وسيط|publisher}} = {{خاصية|P123}}
*{{وسيط|series}} = {{خاصية|P179}}
*{{وسيط|title}} = {{خاصية|P1476}} (عنوان ويكي بيانات)
*{{وسيط|translator''n''}} = {{خاصية|P655}}
*{{وسيط|url}} = {{خاصية|P953}}, {{خاصية|P856}}, {{خاصية|P2699}}
*{{وسيط|version}} = {{خاصية|P348}}
*{{وسيط|volume}} = {{خاصية|P478}}
*{{وسيط|others}} = {{خاصية|P86}}, {{خاصية|P110}}, {{خاصية|P2679}}, {{خاصية|P371}}, {{خاصية|P175}}
{{Column}}
==== وسائط لمعرِّفات ====
*{{وسيط|asin}} = {{خاصية|P5749}} (أضف {{وسيط|asin-tld}} لبعض المحددات)
*{{وسيط|arxiv}} = {{خاصية|P818}}
*{{وسيط|bibcode}} = {{خاصية|P819}} (أضف {{وسيط|bibcode-access}} لتحديد أنّه حر الوصول)
*{{وسيط|biorxiv}} = {{خاصية|P3951}}
*{{وسيط|citeseerx}} = {{خاصية|P3784}}
*{{وسيط|doi}} = {{خاصية|P356}} (أضف {{وسيط|doi-access}} لتحديد أنّه حر الوصول; أضف {{وسيط|doi-broken-date}} لو ألغي)
*{{وسيط|hdl}} = {{خاصية|P1184}} (أضف {{وسيط|hdl-access}} لتحديد أنّه حر الوصول)
*{{وسيط|isbn}} = {{خاصية|P212}} (ترجع لـ {{خاصية|P957}})
*{{وسيط|ismn}} = {{خاصية|P1208}}
*{{وسيط|issn}} = {{خاصية|P236}}
*{{وسيط|jstor}} = {{خاصية|P888}} (أضف {{وسيط|jstor-access}} لتحديد أنّه حر الوصول)
*{{وسيط|lccn}} = {{خاصية|P1144}}
*{{وسيط|mr}} = {{خاصية|P889}}
*{{وسيط|oclc}} = {{خاصية|P243}}
*{{وسيط|ol}} = {{خاصية|P648}} (أضف {{وسيط|ol-access}} لتحديد أنّه حر الوصول)
*{{وسيط|osti}} = {{خاصية|P3894}} (أضف {{وسيط|osti-access}} لتحديد أنّه حر الوصول)
*{{وسيط|pmc}} = {{خاصية|P932}} (أضف {{وسيط|pmc-embargo-date}} if embargoed)
*{{وسيط|pmid}} = {{خاصية|P698}}
*{{وسيط|rfc}} = {{خاصية|P892}}
*{{وسيط|ssrn}} = {{خاصية|P893}}
*{{وسيط|s2cid}} = {{خاصية|P8299}} (أضف {{وسيط|s2cid-access}} لتحديد أنّه حر الوصول)
*{{وسيط|zbl}} = {{خاصية|P894}}
{{نهاية-أعمدة}}
لو وجدت قيمة محددة لا يُراد استيرادها من ويكي بيانات عند الاستشهاد، يلزم إضافة <code><nowiki>|اسم الخاصية=unset</nowiki></code> ضمن القالب لتعطيل عملية الاستيراد.
=== أمثلة ===
;استشهاد بكتاب استشهاداً عاماً: <code><nowiki>{{استشهاد بويكي بيانات|Q112669605}}</nowiki></code>
:{{استشهاد بويكي بيانات|Q112669605}}
;استشهاد بكتاب مع إظهار رقم الصفحة:<code><nowiki>{{استشهاد بويكي بيانات|Q112669605|ص=42}}</nowiki></code>
:{{استشهاد بويكي بيانات|Q112669605|ص=42}}
;استشهاد بكتاب مكون من أجزاء عديدة مع إظهار رقم الجزء ورقم الصفحة: <code><nowiki>{{استشهاد بويكي بيانات|Q115730115|ج=32|ص=20}}</nowiki></code>
:{{استشهاد بويكي بيانات|Q115730115|ج=32|ص=20}}
== وحدة ويكي بيانات (Module:Wd) ==
يمكن أن تسبب تلقائياً استدعاء هذا القالب، على سبيل المثال: [[وحدة:Wd]]
;<code><nowiki>{{قيمة ويكي بيانات|references|raw|Q2978|P2046}}</nowiki></code>
:{{قيمة ويكي بيانات|references|raw|Q2978|P2046}}
حالياً ستؤدي لاستدعاء ما يلي:
;<code><nowiki>{{استشهاد بويكي بيانات|Q15707237|pages=242}}</nowiki></code>
:{{استشهاد بويكي بيانات|Q15707237|pages=242}}
لأن {{وصلة ويكي بيانات|P2046}} هي بيان لـ{{وصلة ويكي بيانات|Q2978}} وهو {{وصلة ويكي بيانات|P248}} {{وصلة ويكي بيانات|Q15707237}} مع {{وصلة ويكي بيانات|P304}} = 242.
{{ملاحظة علوية|انظر [[d:Q2978#P2046]]}}
== بيانات القالب ==
<templatedata>
{
"description": "أنشئ اقتباساً من ويكي بيانات عبر تمرير معرّف ويكي بيانات لهذا القالب.",
"params": {
"1": {
"label": "QID",
"description": "معرف ويكي بيانات للمرجع wikidata-item",
"type": "string",
"suggested": true,
"required": true,
"aliases": [
"qid"
]
},
"الصفحة": {
"aliases": [
"ص",
"page",
"p"
]
},
"المجلد": {
"aliases": [
"ج",
"volume"
]
},
"مرجع": {
"aliases": [
"ref"
],
"label": "المرجع",
"description": "الاسم المختصر للمرجع عند الاستشهاد المختصر، يتقدمه كلمة CITEREF",
"example": "CITEREFالبداية والنهاية",
"type": "string"
},
"الفصل": {
"aliases": [
"chapter"
],
"label": "عنوان الفصل",
"type": "string"
},
"مسار الفصل": {
"aliases": [
"chapter-url"
],
"label": "مسار الفصل",
"type": "url"
}
},
"paramOrder": [
"1",
"الصفحة",
"المجلد",
"مرجع",
"الفصل",
"مسار الفصل"
]
}
</templatedata>
<includeonly>{{ملعب أخر||
<!-- التصانيف هنا، ووصلات الانترويكي في ويكي بيانات -->[[تصنيف:قوالب ويكي بيانات]][[تصنيف:قوالب مراجع]]
}}</includeonly>
bwj7ei3f3tj0b5b7nz931sspnvyyd4g
قالب:استشهاد بويكي بيانات/مختبر
10
63227
275457
2026-09-15T10:08:14Z
حبيشان
29714
استيراد من ar.wiktionary.org
275457
wikitext
text/x-wiki
* {{استشهاد بويكي بيانات/ملعب|Q115727209|مرجع=أبو السعود|سنة النشر الأصلية=unset}}
* {{استشهاد بويكي بيانات|Q115727209|مرجع=أبو السعود}}
* {{استشهاد بويكي بيانات/ملعب|Q115641715|مرجع=الشربيني1868}}
* {{استشهاد بويكي بيانات|Q115641715|مرجع=الشربيني1868|سنة النشر الأصلية=unset}}
* {{استشهاد بويكي بيانات/ملعب|Q115683910|مرجع=القرطبي1935}}
* {{استشهاد بويكي بيانات|Q115683910|مرجع=القرطبي1935}}
* {{استشهاد بويكي بيانات/ملعب|Q115728353|مرجع=السيوطي1974}}
* {{استشهاد بويكي بيانات|Q115728353|مرجع=السيوطي1974}}
* {{استشهاد بويكي بيانات/ملعب|Q115732199|مرجع=السيوطي1978}}
* {{استشهاد بويكي بيانات|Q115732199|مرجع=السيوطي1978}}
* {{استشهاد بويكي بيانات/ملعب|Q115641917|مرجع=القاضي1981}}
* {{استشهاد بويكي بيانات|Q115641917|مرجع=القاضي1981}}
* {{استشهاد بويكي بيانات/ملعب|Q115641984|مرجع=ابن عاشور1984}}
* {{استشهاد بويكي بيانات|Q115641984|مرجع=ابن عاشور1984}}
* {{استشهاد بويكي بيانات/ملعب|Q115683837}}
* {{استشهاد بويكي بيانات|Q115683837}}
* {{استشهاد بويكي بيانات/ملعب|Q115782668|مرجع=النحاس1985|سنة النشر الأصلية=unset}}
* {{استشهاد بويكي بيانات|Q115782668|مرجع=النحاس1985}}
* {{استشهاد بويكي بيانات/ملعب|Q115746114|مرجع=القحطاني1989}}
* {{استشهاد بويكي بيانات|Q115746114|مرجع=القحطاني1989}}
* {{استشهاد بويكي بيانات/ملعب|Q19443162}}
* {{استشهاد بويكي بيانات|Q19443162}}
* {{استشهاد بويكي بيانات/ملعب|Q115640897|مرجع=درويش1992}}
* {{استشهاد بويكي بيانات|Q115640897|مرجع=درويش1992}}
* {{استشهاد بويكي بيانات/ملعب|Q115754123|مرجع=الواحدي1992}}
* {{استشهاد بويكي بيانات|Q115754123|مرجع=الواحدي1992}}
* {{استشهاد بويكي بيانات/ملعب|Q115651867|مرجع=الداني1994}}
* {{استشهاد بويكي بيانات|Q115651867|مرجع=الداني1994}}
* {{استشهاد بويكي بيانات/ملعب|Q115756452|مرجع=عطية1995}}
* {{استشهاد بويكي بيانات|Q115756452|مرجع=عطية1995}}
* {{استشهاد بويكي بيانات/ملعب|Q115701544|مرجع=ابن كثير1998}}
* {{استشهاد بويكي بيانات|Q115701544|مرجع=ابن كثير1998}}
* {{استشهاد بويكي بيانات/ملعب|Q115730072|مرجع=ابن عادل1998}}
* {{استشهاد بويكي بيانات|Q115730072|مرجع=ابن عادل1998}}
* {{استشهاد بويكي بيانات/ملعب|Q115730115|مرجع=الرازي2000}}
* {{استشهاد بويكي بيانات|Q115730115|مرجع=الرازي2000}}
* {{استشهاد بويكي بيانات/ملعب|Q97221368|مرجع=الطبري2001}}
* {{استشهاد بويكي بيانات|Q97221368|مرجع=الطبري2001}}
* {{استشهاد بويكي بيانات/ملعب|Q115484580|مرجع=أحمد2001}}
* {{استشهاد بويكي بيانات|Q115484580|مرجع=أحمد2001}}
* {{استشهاد بويكي بيانات/ملعب|Q115683684}}
* {{استشهاد بويكي بيانات|Q115683684}}
* {{استشهاد بويكي بيانات/ملعب|Q115640158|مرجع=الدعاس2004}}
* {{استشهاد بويكي بيانات|Q115640158|مرجع=الدعاس2004}}
* {{استشهاد بويكي بيانات/ملعب|Q115683765|مرجع=سلامة2006}}
* {{استشهاد بويكي بيانات|Q115683765|مرجع=سلامة2006}}
* {{استشهاد بويكي بيانات/ملعب|Q115701920|مرجع=ابن القيم2007}}
* {{استشهاد بويكي بيانات|Q115701920|مرجع=ابن القيم2007}}
* {{استشهاد بويكي بيانات/ملعب|Q115743500}}
* {{استشهاد بويكي بيانات|Q115743500}}
* {{استشهاد بويكي بيانات/ملعب|Q115615370|مرجع=الشايع2011}}
* {{استشهاد بويكي بيانات|Q115615370|مرجع=الشايع2011}}
* {{استشهاد بويكي بيانات/ملعب|Q140501357}}
* {{استشهاد بويكي بيانات|Q140501357}}
* {{استشهاد بويكي بيانات/ملعب|Q136804563|ج=2|ص=442}}
* {{استشهاد بويكي بيانات|Q136804563|ج=2|ص=442}}
* {{استشهاد بويكي بيانات/ملعب|Q115796840|ج=2|ص=100}}
* {{استشهاد بويكي بيانات|Q115796840|ج=2|ص=100}}
* {{استشهاد بويكي بيانات/ملعب|Q114810954|ص=100}}
* {{استشهاد بويكي بيانات|Q114810954|ص=100}}
<div dir="ltr">
* {{استشهاد بويكي بيانات/ملعب|Q115917529|مرجع=Dyson1999}}
* {{استشهاد بويكي بيانات|Q115917529|مرجع=Dyson1999}}
* {{استشهاد بويكي بيانات/ملعب|Q118316084|مرجع=Javvin2005}}
* {{استشهاد بويكي بيانات|Q118316084|مرجع=Javvin2005}}
* {{استشهاد بويكي بيانات/ملعب|Q115917346|مرجع=Kozierok2005}}
* {{استشهاد بويكي بيانات|Q115917346|مرجع=Kozierok2005}}
* {{استشهاد بويكي بيانات/ملعب|Q115922106|مرجع=Fall2012}}
* {{استشهاد بويكي بيانات|Q115922106|مرجع=Fall2012}}
* {{استشهاد بويكي بيانات/ملعب|Q115919723|مرجع=Odom2013}}
* {{استشهاد بويكي بيانات|Q115919723|مرجع=Odom2013}}
* {{استشهاد بويكي بيانات/ملعب|Q9065143}}
</div>
bno8i4lhh380o6b88fmd2ryvjws8pr1
قالب:استشهاد بويكي بيانات/مختبر2
10
63228
275458
2026-09-15T10:08:16Z
حبيشان
29714
استيراد من ar.wiktionary.org
275458
wikitext
text/x-wiki
سكان محافظة مأرب اليمنية: {{#invoke:Wikidata2|formatStatements|entityId=Q335478|property=P1540}}
ميلاد أبي أحمد الحاكم: {{#invoke:Wikidata2|formatStatements|entityId=Q16120302|property=P569}}
وفاة أبي أحمد الحاكم: {{#invoke:Wikidata2|formatStatements|entityId=Q16120302|property=P570}}
وفاة حسين أسد: {{#invoke:Wikidata2|formatStatements|entityId=Q109335700|property=P570}}
tcue4pczyp5q8x28y0te31jh8xlu3tg
قالب:استشهاد بويكي بيانات/مختبر إنجليزي
10
63229
275459
2026-09-15T10:08:19Z
حبيشان
29714
استيراد من ar.wiktionary.org
275459
wikitext
text/x-wiki
{{Testcases notice <!--|toc=on-->}}
'''Note: Many of these examples rely on circumstances on Wikidata (such as use of {{WDP|P2093}} instead of {{WDP|
P50}}; or missing titles) which may change there; before relying on any of them, please check the source item, and provide alternatives if necessary.'''
__TOC__
== Key ==
;Markup
:{{tld|استشهاد بويكي بيانات}}
:{{tld|استشهاد بويكي بيانات/ملعب}}
== Journal articles ==
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|access-date=18 May 2017}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|access-date=18 May 2017}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|quote=lorem ipsum}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|quote=lorem ipsum}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|page=42|access-date=18 May 2017|quote=lorem ipsum}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|page=42|access-date=18 May 2017|quote=lorem ipsum}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q90413384}}</nowiki></code> (with volume, issue, pages and date as qualifiers)|_template=استشهاد بويكي بيانات|Q90413384}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q30000000}}</nowiki></code> (with volume & issue in both locations)|_template=استشهاد بويكي بيانات|Q30000000}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q56219959}}</nowiki></code> (with multiple URLs)|_template=استشهاد بويكي بيانات|Q56219959}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q21128894|doi-access=free}}</nowiki></code> (with duplicate dates)|_template=استشهاد بويكي بيانات|Q21128894|doi-access=free}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q21030635|doi-access=free}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q21030635|doi-access=free}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q90413885}}</nowiki></code> (paper published as part of a book)|_template=استشهاد بويكي بيانات|Q90413885}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q27931257}}</nowiki></code> (multiple apostrophes in title)|_template=استشهاد بويكي بيانات|Q27931257}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q58819281}}</nowiki></code> (complex DOI)|_template=استشهاد بويكي بيانات|Q58819281}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q64384613}}</nowiki></code> (italics in journal)|_template=استشهاد بويكي بيانات|Q64384613}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|doi=unset}}</nowiki></code> ({{para|doi|unset}})|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|doi=unset}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q64384613}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q64386280}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100271075}}</nowiki></code> (URL in {{WDP|P953}})|_template=استشهاد بويكي بيانات|Q100271075}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100272276}}</nowiki></code> (has {{WDP|P2699}} and {{WDP|P953}})|_template=استشهاد بويكي بيانات|Q100272276}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q90413885}}</nowiki></code> (page as a qualifier)|_template=استشهاد بويكي بيانات|Q90413885}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q61957492}}</nowiki></code> (retracted article)|_template=استشهاد بويكي بيانات|Q61957492}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q56796684}}</nowiki></code> (preprint article)|_template=استشهاد بويكي بيانات|Q56796684}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q54552763}}</nowiki></code> (no Wikipedia article about journal)|_template=استشهاد بويكي بيانات|Q54552763}}
=== Subtitle ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q58641916}}</nowiki></code> (display {{WDP|P1680}} value))|_template=استشهاد بويكي بيانات|Q58641916}}
=== Identifiers ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q14558831}}</nowiki></code> (with arxiv; bibcode)|_template=استشهاد بويكي بيانات|Q14558831}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q28597702|doi-access=free}}</nowiki></code> (with biorxiv)|_template=استشهاد بويكي بيانات|Q28597702|doi-access=free}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q22241718}}</nowiki></code> (with citeseerx)|_template=استشهاد بويكي بيانات|Q22241718}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q28798299}}</nowiki></code> (with osti)|_template=استشهاد بويكي بيانات|Q28798299}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q23327424}}</nowiki></code> (with ssrn)|_template=استشهاد بويكي بيانات|Q23327424}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|doi=unset|issn=unset|pmc=unset|pmid=unset}}</nowiki></code> (lots unset)|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|doi=unset|issn=unset|pmc=unset|pmid=unset}}
<!--{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|id=unset}}</nowiki></code> (id unset)|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|id=unset}}-->
=== Page numbers ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|page=42}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|page=42}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|pages=42-44}}</nowiki></code> - with a page range|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|pages=42-44}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q73498590}}</nowiki></code> - with comma in page range|_template=استشهاد بويكي بيانات|Q73498590}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q43171199}}</nowiki></code> - with letter instead of page number |_template=استشهاد بويكي بيانات|Q43171199}}
=== Language-related ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q92682016}}</nowiki></code> (paper with no English label, at time of writing)|_template=استشهاد بويكي بيانات|Q92682016}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100272555}}</nowiki></code> (Portuguese language)|_template=استشهاد بويكي بيانات|Q100272555}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100272276}}</nowiki></code> (Portuguese language)|_template=استشهاد بويكي بيانات|Q100272276}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100282025}}</nowiki></code> (Journal in Portuguese, language in item)|_template=استشهاد بويكي بيانات|Q100282025}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100271049}}</nowiki></code> (Journal in Portuguese, language in journal item)|_template=استشهاد بويكي بيانات|Q100271049}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100367981}}</nowiki></code> (Journal in Portuguese, language in journal item)|_template=استشهاد بويكي بيانات|Q100367981}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q19231225}}</nowiki></code> (language of work)|_template=استشهاد بويكي بيانات|Q19231225}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51623924}}</nowiki></code> (language of work)|_template=استشهاد بويكي بيانات|Q51623924}}
=== Person names ===
{{see also|Template:استشهاد بويكي بيانات/testcases/many names}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q59348150}}</nowiki></code> (display {{WDP|P1932}} value))|_template=استشهاد بويكي بيانات|Q59348150}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q101094300}}</nowiki></code> (Mix of {{WDP|P50}} and {{WDP|P2093}}, out of sequence)|_template=استشهاد بويكي بيانات|Q101094300}}
== Books ==
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q25766745}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|editor1=unset}}</nowiki></code> (hide editor1)|_template=استشهاد بويكي بيانات|Q25766745|editor1=unset}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|url=https://example.com}}</nowiki></code> (with URL)|_template=استشهاد بويكي بيانات|Q25766745|url=https://example.com}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745 |chapter=The Final Cut}}</nowiki></code> (with chapter specified)|_template=استشهاد بويكي بيانات|Q25766745 |chapter=The Final Cut}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q29581763}}</nowiki></code> (no Title property defined)|_template=استشهاد بويكي بيانات|Q29581763}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q20872993}}</nowiki></code> (has illustrator)|_template=استشهاد بويكي بيانات|Q20872993}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q101499921}}</nowiki></code> (Foreword has multiple authors)|_template=استشهاد بويكي بيانات|Q101499921}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q3345156}}</nowiki></code> ({{WDP|P50}} = "unknown value")|_template=استشهاد بويكي بيانات|Q3345156}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q56084819}}</nowiki></code> ({{WDP|P50}} = "unknown value", qualified with {{WDP|1932}}= "Ann Vibeke Knudsen")|_template=استشهاد بويكي بيانات|Q56084819}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q104049525}}</nowiki></code> (title and important subtitle, ''Ukraine: A History''; edition number should be ordinal ''4th'')|_template=استشهاد بويكي بيانات|Q104049525}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات| Q12072836}}</nowiki></code> (two volumes, two publication dates recorded in both pubdate and start/end time)|_template=استشهاد بويكي بيانات| Q12072836}}
=== Identifiers ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q14944010}}</nowiki></code> (edition; with {{WDP|P1144}} & {{WDP|P243}})|_template=استشهاد بويكي بيانات|Q14944010}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q21707170}}</nowiki></code> (with {{WDP|P889}})|_template=استشهاد بويكي بيانات|Q21707170}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q55008235}}</nowiki></code> (with ISBN 13 & {{WDP|P243}} & hdl)|_template=استشهاد بويكي بيانات|Q55008235}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q4784}}</nowiki></code> (with <!--ISBN 10 & --> {{WDP|P648}})|_template=استشهاد بويكي بيانات|Q4784}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q60390427}}</nowiki></code> edition of the above|_template=استشهاد بويكي بيانات|Q60390427}}
=== Authormask ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|author-mask=0}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q25766745|author-mask=0}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|author-mask=1}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q25766745|author-mask=1}}
== News ==
Not working at present (needs more checking)?
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q7734838}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q7734838}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q18274950}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q18274950}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q5686488}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q5686488}}
<!--{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q9684|title= Movie Ticket Sales Sagging? Time to Bring Out the Toys|url=https://www.nytimes.com/2017/05/22/business/media/at-warner-bros-former-disney-exec-leads-new-charge-on-merchandise.html|date=2017-05-22}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q9684|title= Movie Ticket Sales Sagging? Time to Bring Out the Toys|url=https://www.nytimes.com/2017/05/22/business/media/at-warner-bros-former-disney-exec-leads-new-charge-on-merchandise.html|date=2017-05-22}}-->
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q17920802}}</nowiki></code> (Wikinews article)|_template=استشهاد بويكي بيانات|Q17920802}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q17604308}}</nowiki></code> (Wikinews article in multiple languages)|_template=استشهاد بويكي بيانات|Q17604308}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q17604308}}</nowiki></code> (languages supplied as bs, ca, cs, de, es, fr, pt)|_template=استشهاد بويكي بيانات|Q17604308 |language=bs, ca, cs, de, es, fr, pt}}
=== Utilities ===
Using {{q|Q17604308}}:
* Languages of {{q|P1476}}: <code><nowiki>{{#invoke:استشهاد بويكي بيانات/ملعب |getLangOfProp |pid=P1476 |qid=Q17604308}}</nowiki></code> → {{#invoke:استشهاد بويكي بيانات/ملعب |getLangOfProp |pid=P1476 |qid=Q17604308}}
* {{q|P407}} (fallback to {{q|P1476}}): <code><nowiki>{{#invoke:استشهاد بويكي بيانات/ملعب |lang_code |qid=Q17604308}}</nowiki></code> → {{#invoke:استشهاد بويكي بيانات/ملعب |lang_code |qid=Q17604308}}
== Manuscript ==
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15664389}}</nowiki></code> (with hdl)|_template=استشهاد بويكي بيانات|Q15664389}}
== Misc ==
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q19092815}}</nowiki></code> (instance of journal issue)|_template=استشهاد بويكي بيانات|Q19092815}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15901614}}</nowiki></code> (musical composition; with ISMN)|_template=استشهاد بويكي بيانات|Q15901614}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q105645721}}</nowiki></code> (piece of legislation)|_template=استشهاد بويكي بيانات|Q105645721}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51468105}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q51468105}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51468301}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q51468301}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51601578}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q51601578}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51602004}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q51602004}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51602356}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q51602356}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51623684}}</nowiki></code> (high use)|_template=استشهاد بويكي بيانات|Q51623684}}
=== Editor-in-chief ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q104096047}}</nowiki></code> (editor-in-chief)|_template=استشهاد بويكي بيانات|Q104096047}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q87193076}}</nowiki></code> (editor-in-chief and editors)|_template=استشهاد بويكي بيانات|Q87193076}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q12072836}}</nowiki></code> (editor-in-chief and editors, qualifiers, unknown name)|_template=استشهاد بويكي بيانات|Q12072836}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q87193076|display-editors=0}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q87193076|display-editors=0}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q87193076|display-editors=1}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q87193076|display-editors=1}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q87193076|display-editors=2}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q87193076|display-editors=2}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q87193076|display-editors=etal}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q87193076|display-editors=etal}}
=== Other contributors ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q24969482}}</nowiki></code> (work with translators)|_template=استشهاد بويكي بيانات|Q24969482}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q943192}}</nowiki></code> (animated movie)|_template=استشهاد بويكي بيانات|Q943192}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q943192|others=unset|date=1940}}</nowiki></code> (animated movie)|_template=استشهاد بويكي بيانات|Q943192|others=unset|date=1940}}
=== Sister projects ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q51447731}}</nowiki></code> (English language, transcribed at Wikisource)|_template=استشهاد بويكي بيانات|Q51447731}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q16842509}}</nowiki></code> (English language, transcribed at Wikisource; has Wikipedia article)|_template=استشهاد بويكي بيانات|Q16842509}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q42854406}}</nowiki></code> (English language, transcribed at Wikisource; URL also stated)|_template=استشهاد بويكي بيانات|Q42854406}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q63758656}}</nowiki></code> (English language, transcribed at Wikisource; author has no en.Wikipedia bio)|_template=استشهاد بويكي بيانات|Q63758656}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q106618594}}</nowiki></code> (English language, transcribed at Wikisource, Anon)|_template=استشهاد بويكي بيانات|Q106618594}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q99930394}}</nowiki></code> (Portuguese language, transcribed at Wikisource, with subtitle)|_template=استشهاد بويكي بيانات|Q99930394}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q19997062}}</nowiki></code> (German language, transcribed at Wikisource, with author page only on Wikisource, not Wikipedia)|_template=استشهاد بويكي بيانات|Q19997062}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q103839228}}</nowiki></code> (at Wikisource; entry in larger work)|_template=استشهاد بويكي بيانات|Q103839228}}
: Compare with: {{cite TIWW |article= Yapp, Richard Henry}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q99440073|doi-access=free}}</nowiki></code> (Wikiversity Wikijournal article - should probably link to the wiki page)|_template=استشهاد بويكي بيانات|Q99440073|doi-access=free}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q100510305}}</nowiki></code> (Wikibooks book)|_template=استشهاد بويكي بيانات|Q100510305}}
== Mode ==
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|access-date=18 May 2017|mode=cs1}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|access-date=18 May 2017|mode=cs1}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|access-date=18 May 2017|mode=cs2}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|access-date=18 May 2017|mode=cs2}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|mode=cs1}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q25766745|mode=cs1}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|mode=cs2}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q25766745|mode=cs2}}
== Template ==
=== template=journal ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|template=journal}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q14558831|template=journal}}</nowiki></code> (with arxiv; bibcode)|_template=استشهاد بويكي بيانات|Q14558831|template=journal}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q15625490|doi-access=free|page=42|template=journal}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q15625490|doi-access=free|page=42|template=journal}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q92682016|template=journal}}</nowiki></code> (paper with no English label, at time of writing)|_template=استشهاد بويكي بيانات|Q92682016|template=journal}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q59348150|template=journal}}</nowiki></code> (display {{WDP|P1932}} value))|_template=استشهاد بويكي بيانات|Q59348150|template=journal}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q101094300|template=journal}}</nowiki></code> (Mix of {{WDP|P50}} and {{WDP|P2093}}, out of sequence)|_template=استشهاد بويكي بيانات|Q101094300|template=journal}}
=== template=arxiv ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q27334292|template=arxiv}}</nowiki></code> (Hard coded arXiv classification and template)|_template=استشهاد بويكي بيانات|Q27334292|template=arxiv|class=gr-qc|doi=unset|bibcode=unset|issn=unset|id=unset|journal=unset|publication-date=unset|volume=unset}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q27334292|template=arxiv}}</nowiki></code> (Fetch arXiv classification from WD, guess arxiv template, convert publication-date parameter to date, unset all unsupported parameters)|_template=استشهاد بويكي بيانات|Q27334292}}
=== template=book ===
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|template=book}}</nowiki></code>|_template=استشهاد بويكي بيانات|Q25766745|template=book}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات|Q25766745|editor1=unset|template=book}}</nowiki></code> (hide editor1)|_template=استشهاد بويكي بيانات|Q25766745|editor1=unset|template=book}}
== Expand ==
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات |Q15625490|doi-access=free |expand=yes}}</nowiki></code>|_template=استشهاد بويكي بيانات |Q15625490|doi-access=free |expand=yes}}
{{Test case|_format=columns|_collapsible=yes|_title=<code><nowiki>{{استشهاد بويكي بيانات |Q27334292 |expand=yes}}</nowiki></code> (item with arxiv classification)|_template=استشهاد بويكي بيانات |Q27334292 |expand=yes}}
jeuhbjm1kc1ol0x0dc1ffb8dy5xww7x
قالب:استشهاد بويكي بيانات/ملعب
10
63230
275460
2026-09-15T10:08:21Z
حبيشان
29714
استيراد من ar.wiktionary.org
275460
wikitext
text/x-wiki
<includeonly>{{#invoke:Cite Q/ملعب|cite_q}}</includeonly><noinclude>
{{توثيق}}
</noinclude>
t4k8nkm6smf02q1k098vcanksqd1sy7
قالب:استشهاد بويكي بيانات/نسخ
10
63231
275461
2026-09-15T10:08:24Z
حبيشان
29714
استيراد من ar.wiktionary.org
275461
wikitext
text/x-wiki
<includeonly>{{SAFESUBST:<noinclude />#invoke:Unsubst||$template-name=استشهاد بويكي بيانات|$B={{#invoke:Cite Q|cite_q}}}}</includeonly><noinclude>
{{توثيق|content=
{{Transclusionless}}
هذا القالب يستخدم من قبل {{قا|استشهاد بالشاملة}} وربما قوالب أخرى، لأداء عمليات مؤقتة، لذا لا يمكن إدراجه مباشرة إلى المقالات
}}
</noinclude>
m5eutrz17fz5xn2pgkdzl33d2atqd2l
قالب:استشهاد بالشاملة
10
63232
275462
2026-09-15T10:34:39Z
حبيشان
29714
استيراد من ar.wiktionary.org
275462
wikitext
text/x-wiki
<includeonly>{{safesubst:<noinclude />#استدعاء:Cite Shamela|cite}}</includeonly><noinclude>
{{توثيق}}
</noinclude>
8kz2l7fjkd3kggbdgolwyt5m8wcgc9z
قالب:استشهاد بالشاملة/شرح
10
63233
275463
2026-09-15T10:34:41Z
حبيشان
29714
استيراد من ar.wiktionary.org
275463
wikitext
text/x-wiki
{{صفحة توثيق فرعية}}
{{صندوق رسالة أخرى|النص=هذا القالب يستعمل من [[ميدياويكي:Gadget-auto-cite-shamela.js|إضافة auto-cite-shamela]] فلا يحذف حتى إذا لم يستعمل في المقالات}}
{{لوا|وحدة:Cite Shamela|وحدة:Cite Shamela/data.json}}
يُستخدم هذا القالب لإنشاء استشهاد بكتاب في مقالات ويكيبيديا من خدمة نسخ النص مع العزو في برنامج [[المكتبة الشاملة]] لسطح المكتب، يعمل القالب فقط في حالة توفر بيانات الكتاب في [[ويكي بيانات]]، إذا كنت متأكدًا من توفر بيانات الكتاب في ويكي بيانات ولكن القالب لم يعمل مع الكتاب، الرجاء وضع المشكلة في نقاش القالب مع معرف العنصر في ويكي بيانات.
== الاستعمال ==
إذا كان لديك برنامج [[المكتبة الشاملة]] أو تستخدم [https://shamela.ws موقع المكتبة الشاملة]، فإن هذا القالب يسهل عليك العزو إلى مراجع المكتبة الشاملة.
=== العمل مع برنامج الشاملة لسطح المكتب ===
كل ما عليك طلب أمر نسخ مع العزو من المكتبة الشاملة <code>Ctrl+Shift+C</code> ثم لصق النص في أول وسيط للقالب، إذا كنت تريد الاقتباس من الكتاب المطلوب ابقِ النص المقتبس وإلا فالأفضل حذفه وإبقاء نص العزو الذي يكون غالبًا على هذا النمط:
<pre>
«اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم» (1/ 407)
</pre>
أو:
<pre>
«مسند أحمد» (26/ 9 ط الرسالة)
</pre>
فيكتب في القالب:
<pre>
{{استشهاد بالشاملة|«اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم» (1/ 407)}}
</pre>
فيكون الناتج:
{{استشهاد بالشاملة|«اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم» (1/ 407)}}
وكذلك مع النص المقتبس يكون:
<pre>
{{استشهاد بالشاملة|«اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم» (1/ 407): «ومما يشبه الأمر بمخالفة الكفار»}}
</pre>
فيكون الناتج:
{{استشهاد بالشاملة|«اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم» (1/ 407): «ومما يشبه الأمر بمخالفة الكفار»}}
=== إعدادت العزو في الشاملة ===
يتوافق القالب من إعدادات العزو الافتراضية في [[المكتبة الشاملة]] وهي:
#إحاطة مصدر العزو بعلامتي تنصيص.
#إحاطة رقم العزو بـ(هلالين)
#وضع العزو قبل النص.
#إحاطة النص المنسوخ بـ«علامتي تنصيص».
=== العمل مع موقع الشاملة ===
اضغط على ايقونة النسخ المقابلة للفقرة المراد الاستشهاد بها، وبعد ذلك إذا اردت العزو إلى رقم الصفحة أو الاقتباس نفذ أمر نسخ النص مع الرابط، إذا أردت اسم الكتاب مع بياناته فقط اضغط نسخ الرابط، ثم ألصق النص في وسيط قالب الاستشهاد بالشاملة الأول، والأفضل حذف الاقتباس إلا إذا تراه ضروريًا لتدعيم الاستشهاد.
مثلا:
<pre>
{{استشهاد بالشاملة|فإنَّ الله ـ سبحانه ـ نوَّع أحكامَهُ على الإنسانِ مِنْ حينِ خروجهِ إلى هذه الدَّارِ إلى أنْ (٤) يستقرَّ في دار القَرارِ. وقَبْلَ ذلك ـ وهو في الظُّلماتِ الثَّلاثِ ـ كانتْ أحكامُه القَدَرِيَّةُ جاريةً عليه ومُنتهيةً إليه، فلمَّا انفصل عن أُمِّه تعلَّقت به أحكامُهُ الأمْرِيَّةُ، وكان المخاطَبُ بها الأبَويْن، أو مَنْ يقومُ مقامَهما في تربيتِهِ والقيامِ عليه. فللّه ـ سبحانه ـ فيه أحكامٌ أمَرَ قيِّمَهُ بها ما دامَ تحتَ كفالتِه، فهو المطالَبُ بها دونَه، حتى إذا بلغَ حدَّ التكليفِ تعلَّقتْ به الأحكامُ، وجَرَتْ عليه الأقلامُ (٥)، وحُكِم له بأحكامِ أهلِ
--------
ص5 - كتاب تحفة المودود بأحكام المولود ط عطاءات العلم - تنوع الأحكام على الإنسان - المكتبة الشاملة
--------
الرابط:https://shamela.ws/book/229/57#p4}}
</pre>
يكون الناتح:
{{استشهاد بالشاملة|فإنَّ الله ـ سبحانه ـ نوَّع أحكامَهُ على الإنسانِ مِنْ حينِ خروجهِ إلى هذه الدَّارِ إلى أنْ (٤) يستقرَّ في دار القَرارِ. وقَبْلَ ذلك ـ وهو في الظُّلماتِ الثَّلاثِ ـ كانتْ أحكامُه القَدَرِيَّةُ جاريةً عليه ومُنتهيةً إليه، فلمَّا انفصل عن أُمِّه تعلَّقت به أحكامُهُ الأمْرِيَّةُ، وكان المخاطَبُ بها الأبَويْن، أو مَنْ يقومُ مقامَهما في تربيتِهِ والقيامِ عليه. فللّه ـ سبحانه ـ فيه أحكامٌ أمَرَ قيِّمَهُ بها ما دامَ تحتَ كفالتِه، فهو المطالَبُ بها دونَه، حتى إذا بلغَ حدَّ التكليفِ تعلَّقتْ به الأحكامُ، وجَرَتْ عليه الأقلامُ (٥)، وحُكِم له بأحكامِ أهلِ
--------
ص5 - كتاب تحفة المودود بأحكام المولود ط عطاءات العلم - تنوع الأحكام على الإنسان - المكتبة الشاملة
--------
الرابط:https://shamela.ws/book/229/57#p4}}
وبدون الاقتباس:
<pre>
{{استشهاد بالشاملة|ص5 - كتاب تحفة المودود بأحكام المولود ط عطاءات العلم - تنوع الأحكام على الإنسان - المكتبة الشاملة
--------
الرابط:https://shamela.ws/book/229/57#p4}}
</pre>
يكون الناتح:
{{استشهاد بالشاملة|ص5 - كتاب تحفة المودود بأحكام المولود ط عطاءات العلم - تنوع الأحكام على الإنسان - المكتبة الشاملة
--------
الرابط:https://shamela.ws/book/229/57#p4}}
== نسخ القالب ==
الأفضل دائمًا نسخ القالب بحيث ينتقل العزو إلى ويكي بيانات وطريقة النسخ هي:
<pre>
{{نسخ:استشهاد بالشاملة|«اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم» (1/ 407)}}
</pre>
فيكون الناتج:
{{استشهاد بويكي بيانات|page=407|qid=Q115284371|volume=1}}<!-- إخراج تلقائي من قالب:استشهاد بالشاملة -->
== بيانات القالب ==
{{رأس بيانات القالب}}
<templatedata>
{
"params": {
"1": {
"label": "نص العزو من المكتبة الشاملة",
"required": true,
"type": "string",
"description": "نص العزو الذي نُسِخَ من المكتبة الشاملة"
},
"ج": {
"label": "الجزء أو المجلد",
"description": "ضبط المجلد في حالة العزو من الموقع والكتاب يتألف من عدة مجلدات، لا يؤثر عند العزو من برنامج سطح المكتب",
"type": "number"
}
},
"format": "inline",
"description": "يقوم القالب بمعالجة نص العزو المنسوخ من برنامج [[المكتبة الشاملة]] وتحويره إلى قالب استشهاد بويكي بيانات."
}
</templatedata>
<includeonly>{{ملعب أخر||
<!-- [[تصنيف:قوالب ويكيبيديا]] -->
}}</includeonly>
kq5mrulz4bipoa7989tc9w3afrdbpen
قالب:استشهاد بالشاملة/ملعب
10
63234
275464
2026-09-15T10:34:43Z
حبيشان
29714
استيراد من ar.wiktionary.org
275464
wikitext
text/x-wiki
<includeonly>{{safesubst:<noinclude />#استدعاء:Cite Shamela/ملعب|cite}}</includeonly><noinclude>
{{توثيق}}
</noinclude>
3afzfyjlc7j1acyv3flofse5buln26w
وحدة:Cite Shamela
828
63235
275465
2026-09-15T10:35:17Z
حبيشان
29714
استيراد من ar.wiktionary.org
275465
Scribunto
text/plain
local string=mw.ustring
local function eastern2number(strnumber)
local str_number = mw.text.trim(strnumber)
local ret_str = ''
for i=1, mw.ustring.len(str_number) do
local numcode=mw.ustring.codepoint(string.sub(str_number,i,i))
ret_str = ret_str .. mw.ustring.char(numcode-1584)
end
return ret_str
end
local function cite(frame)
local b,c,v,p,s,q,txt,book_id,u
local args = {}
local targs = {}
local turath = false
for k, v in pairs(frame.args) do
if v ~= "" then args[k] = v end
end
for k, v in pairs(frame:getParent().args) do
if v ~= "" then args[k] = v end
end
local expand = args.expand
local function myerror(txt)
if expand == "json" then
return mw.text.jsonEncode({
error = txt
});
else
return error(txt)
end
end
txt = args[1]
if string.find(txt,'https://shamela.ws/book/') ~= nil or string.find(txt,'https://app.turath.io/book/') ~= nil then
local q,c,u,ch,p,v
if string.match(txt,'^([^\n]+)[\n ]%-%-%-%-%-%-%-%-[\n ]([^\n]+) %- المكتبة الشاملة[\n ]%-%-%-%-%-%-%-%-[\n ]الرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$') then
q,c,u = string.match(txt,'^([^\n]+)[\n ]%-%-%-%-%-%-%-%-[\n ]([^\n]+) %- المكتبة الشاملة[\n ]%-%-%-%-%-%-%-%-[\n ]الرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$')
elseif string.match(txt,'(ص[^\n]+) %- المكتبة الشاملة[\n ]%-%-%-%-%-%-%-%-[\n ]الرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$') then
c,u = string.match(txt,'(ص[^\n]+) %- المكتبة الشاملة[\n ]%-%-%-%-%-%-%-%-[\n ]الرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$')
elseif string.match(txt,'(https://shamela.ws/book/%d+/%d+#p%d+)$') or string.match(txt,'(https://shamela.ws/book/%d+/%d+)$') or string.match(txt,'(https://shamela.ws/book/%d+)$') then
u = string.match(txt,'(https://shamela.ws/book/%d+/%d+#p%d+)$') or string.match(txt,'(https://shamela.ws/book/%d+/%d+)$') or string.match(txt,'(https://shamela.ws/book/%d+)$')
elseif string.match(txt,'^[^\n]+ %- ([٠-٩ /]+)[\n ](https://app.turath.io/book/%d+?page=%d+)$') then
c,u = string.match(txt,'^[^\n]+ %- ([٠-٩ /]+)[\n ](https://app.turath.io/book/%d+?page=%d+)$')
elseif string.match(txt,'https://app.turath.io/book/%d+?page=%d+$') or string.match(txt,'https://app.turath.io/book/%d+$') then
u = string.match(txt,'(https://app.turath.io/book/%d+?page=%d+)$') or string.match(txt,'(https://app.turath.io/book/%d+)$')
else
return myerror('صيغة غير قياسية')
end
local ou = u
if string.find(txt,'app.turath.io') then
u = u:gsub('app.turath.io','shamela.ws')
u = u:gsub('?page=','/')
turath = true
end
book_id = string.match(u,'^https://shamela.ws/book/(%d+)$') or string.match(u,'^https://shamela.ws/book/(%d+)/')
if not book_id then
return myerror("تحقق من رابط الموقع")
else
book_id=tonumber(book_id)
if not turath and c and string.match(u,'^https://shamela.ws/book/(%d+)/(%d+)') then
p,ch = string.match(c,'^ص([^\n ]+) %- [^\n]+ %- ([^\n%-]+)$')
if ch then
targs['مسار الفصل'] = ou
targs['الفصل'] = ch
else
targs['المسار']= ou
end
if p then
targs['الصفحة']= p
v = args['volume'] or args['ج'] or args['vol'] or args['المجلد'] or args['الجزء']
if v then
targs['المجلد']=v
end
end
elseif turath and c then
c=string.gsub(c,'', '')
if string.find(c,'/') then
v, p = string.match(c,'^([٠-٩]+) / ?([٠-٩]+)$')
v = eastern2number(mw.text.trim(v))
p = eastern2number(mw.text.trim(p))
else
p = eastern2number(mw.text.trim(c))
end
targs['الصفحة']= p
if v then
targs['المجلد']=v
end
targs['المسار'] = ou
else
targs['المسار'] = ou
end
if q then
targs['اقتباس'] = q
targs['عبر'] = '[[المكتبة الشاملة]]'
end
local tp=args['page'] or args['ص'] or args['p'] or args['الصفحة'] or args['صفحة']
if tp then
targs['الصفحة']= tp
end
local tv = args['volume'] or args['ج'] or args['vol'] or args['المجلد'] or args['الجزء']
if tv then
targs['المجلد']=tv
end
end
else
q = string.match(txt,':[%s\n]*«([^%)]+)»$')
if q then
targs['اقتباس'] = q
targs['عبر'] = '[[المكتبة الشاملة]]'
end
b,c = string.match(txt,'^([^%(0-9]+) %(([^%)]+)%)')
if not b then
return myerror("صيغة غير قياسية")
elseif string.sub(b,1,1) == '«' and string.sub(b,-1,-1) == '»' then
b = mw.text.trim(string.sub(b,2,-2))
end
if c then
if string.match(c,'^ص(%d+)$') then
p = string.match(c,'^ص(%d+)$')
elseif string.match(c,'^ص(%d+) ([ء-ي].+)$') then
p,s = string.match(c,'^ص(%d+) ([ء-ي].+)$')
elseif string.match(c,'^([^/]+)/ (%d+)$') then
v,p = string.match(c,'^([^/]+)/ (%d+)$')
elseif string.match(c,'^([^/]+)/ (%d+) ([ء-ي].+)$') then
v,p,s = string.match(c,'^([^/]+)/ (%d+) ([ء-ي].+)$')
else
return myerror("صيغة غير قياسية")
end
if p then
targs['الصفحة'] = p
end
if v then
targs['المجلد'] = v
end
end
end
if args.qid then
targs.qid = args.qid
elseif b or book_id then
shamela = mw.loadJsonData('Module:Cite Shamela/data.json')
if book_id then
for k,v in pairs(shamela) do
if v.id == book_id then
b = v.name
targs.qid = v.q
break
end
end
elseif b then
for k,v in pairs(shamela) do
if (v.pre or v.name) == b and s == v.suf then
book_id = v.id
targs.qid = v.q
break
end
end
end
end
if targs.qid == nil then
return myerror('لم يعثر على بيانات الكتاب في ويكي بيانات')
end
if expand == "json" then
local params = {}
for idx, val in pairs(targs) do
params[idx] = { wt = val}
end
return mw.text.jsonEncode({
template = {
target= {
href = "Template:استشهاد بويكي بيانات",
wt= "استشهاد بويكي بيانات"
},
params = params
}
});
elseif expand then
local expand_args = { "{{استشهاد بويكي بيانات" } -- init with citation template
-- add contents to expand_args
for idx, val in pairs(targs) do
table.insert(expand_args, idx .. '=' .. val )
end
-- make the nowiki'd string and done
return table.concat (expand_args, '| ') .. "}}"
end
return table.concat ({frame:expandTemplate ({title='استشهاد بويكي بيانات/نسخ', args=targs}), '<!-- إخراج تلقائي من قالب:استشهاد بالشاملة -->'})
end
return {
cite = cite
}
bk9bbvgusdod8uwf20blsi2zx523o2e
وحدة:Cite Shamela/data.json
828
63236
275466
2026-09-15T10:35:21Z
حبيشان
29714
استيراد من ar.wiktionary.org
275466
json
application/json
[
{
"id": 1,
"name": "الفواكه العذاب في الرد على من لم يحكم السنة والكتاب",
"q": "Q118370593"
},
{
"id": 3,
"name": "إعراب القراءات السبع وعللها ط العلمية"
},
{
"id": 5,
"name": "أسماء المدلسين"
},
{
"id": 9,
"name": "مختصر خوقير في فقه الإمام أحمد"
},
{
"id": 10,
"name": "تجريد القواعد والفوائد الأصولية"
},
{
"id": 11,
"name": "توفيق الرب المنعم بشرح صحيح الإمام مسلم"
},
{
"id": 14,
"name": "استنباطات الشيخ عبد الرحمن السعدي من القرآن الكريم عرض ودراسة"
},
{
"id": 17,
"name": "حكم التقليد"
},
{
"id": 18,
"name": "مجموع فيه أربع رسائل - الحجاوي"
},
{
"id": 19,
"name": "قواعد الأصول ومعاقد الفصول",
"q": "Q137126619"
},
{
"id": 20,
"name": "مختصر تحفة المحتاج بشرح المنهاج"
},
{
"id": 21,
"name": "تجريد أحاديث عمدة الفقه"
},
{
"id": 22,
"name": "أعمار الأعيان"
},
{
"id": 23,
"name": "سبيل المهتدين إلى شرح الأربعين النووية"
},
{
"id": 25,
"name": "سير الحاث إلى علم الطلاق الثلاث - ط النوادر",
"pre": "سير الحاث إلى علم الطلاق الثلاث",
"suf": "ط النوادر"
},
{
"id": 26,
"name": "الإخوة والأخوات - الدارقطني",
"pre": "«الإخوة والأخوات» للدارقطني"
},
{
"id": 27,
"name": "أخبار مكة - الفاكهي - ط 4",
"pre": "أخبار مكة - الفاكهي",
"suf": "ط 4"
},
{
"id": 28,
"name": "تاريخ البرزالي المقتفي لتاريخ أبي شامة - ت تدمري",
"pre": "تاريخ البرزالي المقتفي لتاريخ أبي شامة",
"suf": "ت تدمري",
"q": "Q124614520"
},
{
"id": 30,
"name": "قواعد ابن رجب - ط ركائز",
"pre": "قواعد ابن رجب",
"suf": "ط ركائز"
},
{
"id": 31,
"name": "إعراب القراءات السبع وعللها ت العثيمين"
},
{
"id": 32,
"name": "مختصر الفتاوى المصرية - ط ركائز",
"pre": "مختصر الفتاوى المصرية",
"suf": "ط ركائز",
"q": "Q135905025"
},
{
"id": 33,
"name": "الإعراب عن الحيرة والالتباس الموجودين في مذاهب أهل الرأي والقياس"
},
{
"id": 34,
"name": "الإعلان بالتوبيخ لمن ذم أهل التوريخ ت الظفيري"
},
{
"id": 39,
"name": "أحكام القرآن لبكر بن العلاء - ط جائزة دبي"
},
{
"id": 40,
"name": "أحاديث العطار عن شيوخه",
"q": "Q130633836"
},
{
"id": 41,
"name": "تفسير البغوي - طيبة",
"q": "Q120645807"
},
{
"id": 42,
"name": "تفسير السعدي = تيسير الكريم الرحمن"
},
{
"id": 43,
"name": "تفسير الطبري جامع البيان - ط دار التربية والتراث",
"pre": "تفسير الطبري",
"suf": "ط التربية والتراث",
"q": "Q121008769"
},
{
"id": 44,
"name": "الانحراف العقدي في أدب الحداثة وفكرها"
},
{
"id": 45,
"name": "بدر التمام شرح لامية شيخ الإسلام"
},
{
"id": 46,
"name": "المسبوك على منحة السلوك في شرح تحفة الملوك"
},
{
"id": 47,
"name": "الجامع الكامل في الحديث الصحيح الشامل المرتب على أبواب الفقه"
},
{
"id": 48,
"name": "المختصر من أخبار فاطمة بنت سيد البشر صلى الله عليه وآله وسلم"
},
{
"id": 50,
"name": "فاطمة بنت النبي - صلى الله عليه وسلم - سيرتها، فضائلها، مسندها - رضي الله عنها -"
},
{
"id": 52,
"name": "المحدث الفاصل ت أبو زيد"
},
{
"id": 54,
"name": "منظومة الآداب = الألفية في الآداب الشرعية"
},
{
"id": 55,
"name": "التباريح في صلاة التراويح"
},
{
"id": 56,
"name": "التحفة الندية شرح العقيدة الواسطية - عبد الرحمن العقل"
},
{
"id": 57,
"name": "البدور الزاهرة في القراءات العشر المتواترة - عبد الفتاح القاضي",
"q": "Q115641917"
},
{
"id": 59,
"name": "حينما يعتكف القلب"
},
{
"id": 60,
"name": "مدخل إلى علوم الشريعة"
},
{
"id": 61,
"name": "مجمع الزوائد ومنبع الفوائد"
},
{
"id": 66,
"name": "التمذهب – دراسة نظرية نقدية"
},
{
"id": 67,
"name": "تفسير ابن عرفة"
},
{
"id": 71,
"name": "تاريخ دمشق لابن عساكر",
"q": "Q116753093"
},
{
"id": 78,
"name": "الجامع المسند الصحيح"
},
{
"id": 80,
"name": "السلاسل المختارة من صحيح الإمام البخاري"
},
{
"id": 81,
"name": "رباعيات وثمانيات الإمام البخاري"
},
{
"id": 83,
"name": "المحيط في اللغة",
"q": "Q136804659"
},
{
"id": 84,
"name": "المصنف - عبد الرزاق - ط التأصيل الثانية",
"pre": "مصنف عبد الرزاق",
"suf": "ط التأصيل الثانية"
},
{
"id": 86,
"name": "إعراب القرآن الكريم - ط دار الصحابة"
},
{
"id": 89,
"name": "إكمال تهذيب الكمال - ط العلمية"
},
{
"id": 90,
"name": "الكمال في أسماء الرجال",
"q": "Q117338103"
},
{
"id": 91,
"name": "شرح الخرشي على مختصر خليل - ومعه حاشية العدوي"
},
{
"id": 92,
"name": "أحكام القرآن للشافعي - جمع البيهقي ت الشوامي"
},
{
"id": 93,
"name": "المطرب من أشعار أهل المغرب"
},
{
"id": 97,
"name": "الموفي بمعرفة التصوف والصوفي",
"q": "Q136035319"
},
{
"id": 100,
"name": "تأملات في السور والآيات"
},
{
"id": 101,
"name": "تاريخ ابن معين - رواية ابن محرز"
},
{
"id": 102,
"name": "البهجة الوفية بحجة الخلاصة الألفية"
},
{
"id": 104,
"name": "المدخل إلى صحيح البخاري"
},
{
"id": 105,
"name": "الوفية باختصار الألفية"
},
{
"id": 106,
"name": "بغية الرائد لما تضمنه حديث أم زرع من الفوائد ت الدسوقي"
},
{
"id": 107,
"name": "فتاوى نور على الدرب لابن باز - بعناية الشويعر"
},
{
"id": 108,
"name": "منتقى الألفاظ بتقريب علوم الحديث للحفاظ"
},
{
"id": 109,
"name": "تأملات في رؤيا يوسف عليه السلام"
},
{
"id": 110,
"name": "ذيل العراقي على العبر"
},
{
"id": 111,
"name": "ذيل المرشدي على العبر"
},
{
"id": 112,
"name": "ذيل ابن العراقي على العبر"
},
{
"id": 113,
"name": "التاريخ الكبير للبخاري - ت الدباسي والنحال",
"pre": "«التاريخ الكبير» للبخاري",
"suf": "ت الدباسي والنحال",
"q": "Q116752829"
},
{
"id": 116,
"name": "ابن حزم وموقفه من الإلهيات عرض ونقد"
},
{
"id": 117,
"name": "ابن رجب الحنبلي وأثره في توضيح عقيدة السلف"
},
{
"id": 119,
"name": "العرف الشذي شرح سنن الترمذي"
},
{
"id": 120,
"name": "مفتاح الأفكار للتأهب لدار القرار"
},
{
"id": 121,
"name": "إجماع السلف في الاعتقاد كما حكاه حرب الكرماني"
},
{
"id": 122,
"name": "الأماكن، ما اتفق لفظه وافترق مسماه"
},
{
"id": 123,
"name": "أحاديث العقيدة التي يوهم ظاهرها التعارض في الصحيحين دراسة وترجيح"
},
{
"id": 124,
"name": "أحاديث العقيدة المتوهم إشكالها في الصحيحين جمعا ودراسة"
},
{
"id": 125,
"name": "الكوكب المنير في شرح الألفية بالتشطير"
},
{
"id": 130,
"name": "الاغتباط بمن رمي من الرواة بالاختلاط",
"q": "Q121077881"
},
{
"id": 131,
"name": "أعيان العصر وأعوان النصر",
"q": "Q124614600"
},
{
"id": 133,
"name": "الأحاديث الواردة في فضائل الصحابة"
},
{
"id": 134,
"name": "إغاثة اللهفان في حكم طلاق الغضبان - ت الحفيان",
"pre": "إغاثة اللهفان في حكم طلاق الغضبان"
},
{
"id": 135,
"name": "الأمثال - أبو عبيد"
},
{
"id": 136,
"name": "الاختيارين المفضليات والأصمعيات",
"q": "Q121085024"
},
{
"id": 137,
"name": "فتح الباري لابن رجب"
},
{
"id": 138,
"name": "شمائل الحبيب المصطفى"
},
{
"id": 139,
"name": "الحواشي السابغات على أخصر المختصرات",
"q": "Q133310678"
},
{
"id": 140,
"name": "دليل الفالحين لطرق رياض الصالحين"
},
{
"id": 141,
"name": "مدارج تفقه الحنبلي",
"q": "Q126950502"
},
{
"id": 142,
"name": "الاتصال والانقطاع"
},
{
"id": 143,
"name": "مقارنة المرويات"
},
{
"id": 145,
"name": "متن تسهيل العقيدة الإسلامية - ط 6",
"pre": "متن تسهيل العقيدة",
"suf": "ط 6"
},
{
"id": 146,
"name": "الطبقات الكبرى - ط الخانجي",
"pre": "الطبقات الكبير",
"suf": "ط الخانجي",
"q": "Q116977468"
},
{
"id": 148,
"name": "تاريخ ابن معين - رواية الدارمي"
},
{
"id": 149,
"name": "مختصر شرح تسهيل العقيدة الإسلامية - ط 6",
"pre": "مختصر شرح تسهيل العقيدة الإسلامية",
"suf": "ط 6"
},
{
"id": 150,
"name": "أخبار القضاة"
},
{
"id": 151,
"name": "شرح عمدة الفقه - ابن تيمية - ط عطاءات العلم",
"q": "Q115797816"
},
{
"id": 153,
"name": "القدر - ابن وهب - ت الحفيان",
"pre": "«القدر» لابن وهب",
"suf": "ت الحفيان"
},
{
"id": 154,
"name": "زهر الفردوس = الغرائب الملتقطة من مسند الفردوس",
"pre": "زهر الفردوس"
},
{
"id": 155,
"name": "الجرح والتعديل - اللاحم",
"pre": "«الجرح والتعديل» للاحم"
},
{
"id": 156,
"name": "التحقيقات على شرح الجلال للورقات"
},
{
"id": 157,
"name": "موسوعة أحكام الطهارة - الدبيان - ط 3",
"pre": "«موسوعة أحكام الطهارة» للدبيان",
"suf": "ط 3"
},
{
"id": 158,
"name": "الداء والدواء = الجواب الكافي - ط دار المعرفة",
"pre": "الداء والدواء"
},
{
"id": 159,
"name": "التكملة لوفيات النقلة",
"q": "Q116999383"
},
{
"id": 160,
"name": "الحكم بغير ما أنزل الله - المحياني - ط 1437",
"pre": "«الحكم بغير ما أنزل الله» للمحياني",
"suf": "ط1437",
"q": "Q125994778"
},
{
"id": 161,
"name": "سنن سعيد بن منصور - تكملة التفسير - ط الألوكة"
},
{
"id": 163,
"name": "هدم المنارة لمن صحح أحاديث التوسل والزيارة"
},
{
"id": 164,
"name": "عطر المجالس - دروس قصيرة فيما لا ينبغي للمسلم جهله",
"pre": "عطر المجالس"
},
{
"id": 165,
"name": "فتح العلام في دراسة أحاديث بلوغ المرام ط 4",
"suf": "ط 4"
},
{
"id": 166,
"name": "الفضل المأثور من سيرة السلطان الملك المنصور"
},
{
"id": 167,
"name": "المستملح من كتاب التكملة"
},
{
"id": 168,
"name": "تفسير مبهمات القرآن"
},
{
"id": 170,
"name": "الجواب الصحيح لمن بدل دين المسيح لابن تيمية",
"q": "Q115805869"
},
{
"id": 171,
"name": "صحيح الترغيب والترهيب",
"q": "Q115789696"
},
{
"id": 173,
"name": "صلة التكملة لوفيات النقلة"
},
{
"id": 174,
"name": "شرح الفارضي على ألفية ابن مالك"
},
{
"id": 175,
"name": "فتح الشكور في معرفة أعيان علماء التكرور"
},
{
"id": 176,
"name": "اتعاظ الحنفا بأخبار الأئمة الفاطميين الخلفا",
"q": "Q135913502"
},
{
"id": 177,
"name": "مفتاح الوصول إلى علم الأصول في شرح خلاصة الأصول"
},
{
"id": 178,
"name": "اتباع السنن واجتناب البدع"
},
{
"id": 179,
"name": "ضعيف الترغيب والترهيب",
"q": "Q126678662"
},
{
"id": 181,
"name": "مسند أبي يعلى - ت السناري"
},
{
"id": 182,
"name": "أشراط الساعة - الوابل",
"pre": "«أشراط الساعة» ليوسف الوابل"
},
{
"id": 183,
"name": "زوائد تاريخ بغداد على الكتب الستة",
"q": "Q1650356"
},
{
"id": 184,
"name": "الصواعق المرسلة على الجهمية والمعطلة - ط عطاءات العلم",
"q": "Q115796460"
},
{
"id": 188,
"name": "تحقيق إزالة الدهش والوله"
},
{
"id": 189,
"name": "مجمع البحرين لليازجي = مقامات اليازجي"
},
{
"id": 191,
"name": "ما رواه الأساطين في عدم المجيء إلى السلاطين"
},
{
"id": 192,
"name": "الأربعون العقدية"
},
{
"id": 195,
"name": "إسرائيل والتلمود - دراسة تحليلية"
},
{
"id": 196,
"name": "السعادة والفلاح في فهم مقاصد النكاح"
},
{
"id": 197,
"name": "زاد المعاد في هدي خير العباد - ط عطاءات العلم",
"pre": "«زاد المعاد» ط عطاءات العلم",
"q": "Q115796791"
},
{
"id": 198,
"name": "إصلاح الفقيه فصول في الإصلاح الفقهي"
},
{
"id": 199,
"name": "مدارج السالكين - ط عطاءات العلم",
"pre": "مدارج السالكين",
"suf": "ط عطاءات العلم",
"q": "Q115796840"
},
{
"id": 201,
"name": "تهذيب سنن أبي داود - ط عطاءات العلم",
"q": "Q115796673"
},
{
"id": 203,
"name": "ذيل لسان الميزان"
},
{
"id": 204,
"name": "المجالس الفقهية"
},
{
"id": 205,
"name": "شفاء العليل في مسائل القضاء والقدر والحكمة والتعليل - ط عطاءات العلم",
"q": "Q115796813"
},
{
"id": 207,
"name": "رسالة في جمع أشكال الحديث الضعيف"
},
{
"id": 209,
"name": "أسرار الكون = الهيئة السنية في الهيئة السنية"
},
{
"id": 212,
"name": "الفوائد لابن القيم - ط عطاءات العلم",
"pre": "الفوائد لابن القيم",
"q": "Q115796498"
},
{
"id": 214,
"name": "طبقات فقهاء اليمن"
},
{
"id": 215,
"name": "التعريف بما أنست الهجرة من معالم دار الهجرة"
},
{
"id": 216,
"name": "الوابل الصيب - ط دار الحديث",
"pre": "الوابل الصيب"
},
{
"id": 218,
"name": "أحكام أهل الذمة - ط عطاءات العلم",
"q": "Q115793150"
},
{
"id": 219,
"name": "الرعاية الصغرى في الفقه"
},
{
"id": 221,
"name": "مؤلفات ابن قيم الجوزية - نسخها الخطية وطبعاتها"
},
{
"id": 224,
"name": "المعارضات الفكرية المعاصرة لأحاديث الصحيحين"
},
{
"id": 225,
"name": "الحق والثبات في الأسماء والصفات"
},
{
"id": 229,
"name": "تحفة المودود بأحكام المولود - ط عطاءات العلم",
"pre": "تحفة المودود بأحكام المولود",
"suf": "ط عطاءات العلم",
"q": "Q115796603"
},
{
"id": 229,
"name": "تحفة المودود بأحكام المولود - ط عطاءات العلم",
"pre": "تحفة المودود بأحكام المولود",
"suf": "ط عطاءات العلم",
"q": "Q4702369"
},
{
"id": 234,
"name": "الجامع لسيرة الإمام ابن قيم الجوزية خلال ستة قرون"
},
{
"id": 235,
"name": "الذكر والدعاء والعلاج بالرقى من الكتاب والسنة - ت ياسر فتحي"
},
{
"id": 236,
"name": "التمهيد - ابن عبد البر - ت بشار",
"pre": "التمهيد - ابن عبد البر",
"suf": "ت بشار"
},
{
"id": 237,
"name": "عذابات العلم"
},
{
"id": 239,
"name": "ثلاثة الأصول وشروط الصلاة والقواعد الأربع"
},
{
"id": 240,
"name": "الشامل في الصناعة الطبية"
},
{
"id": 242,
"name": "استخراج الجدال من القرآن الكريم"
},
{
"id": 247,
"name": "تحقيق الآيات البينات في عدم سماع الأموات"
},
{
"id": 248,
"name": "حقيقه السنة والبدعة = الأمر بالاتباع والنهي عن الابتداع"
},
{
"id": 250,
"name": "الذخر الحرير بشرح مختصر التحرير",
"q": "Q124771771"
},
{
"id": 251,
"name": "طريق الهجرتين وباب السعادتين - ط عطاءات العلم",
"pre": "طريق الهجرتين وباب السعادتين",
"q": "Q115796818"
},
{
"id": 252,
"name": "عدة الصابرين وذخيرة الشاكرين - ط عطاءات العلم",
"pre": "عدة الصابرين وذخيرة الشاكرين",
"q": "Q115796830"
},
{
"id": 253,
"name": "الصلاة - ابن القيم - ط عطاءات العلم",
"pre": "الصلاة لابن القيم",
"q": "Q115796412"
},
{
"id": 254,
"name": "دليل الطالبين لكلام النحويين"
},
{
"id": 257,
"name": "رفع اليدين في الصلاة"
},
{
"id": 259,
"name": "كشف الظنون عن أسامي الكتب والفنون - ط الفرقان",
"pre": "كشف الظنون عن أسامي الكتب والفنون",
"q": "Q125917253"
},
{
"id": 260,
"name": "إرشاد الفقيه إلى معرفة أدلة التنبيه"
},
{
"id": 261,
"name": "فضل الرحيم الودود تخريج سنن أبي داود"
},
{
"id": 262,
"name": "الطهور - أبو عبيد - ت مشهور"
},
{
"id": 263,
"name": "الزهد لأسد بن موسى"
},
{
"id": 264,
"name": "تحقيق الإيمان لابن تيمية"
},
{
"id": 265,
"name": "مرويات فضائل علي بن أبي طالب في المستدرك"
},
{
"id": 266,
"name": "آداب البحث والمناظرة"
},
{
"id": 267,
"name": "الإقناع في حجية الإجماع"
},
{
"id": 269,
"name": "غرر البيان من سورة يوسف -عليه السلام- في القرآن"
},
{
"id": 271,
"name": "الانتصار في حجية قول الصحابة الأخيار",
"q": "Q136709704"
},
{
"id": 274,
"name": "المحصول في شرح صفوة الأصول"
},
{
"id": 275,
"name": "دفع دعوى المعارض العقلي عن الأحاديث المتعلقة بمسائل الاعتقاد"
},
{
"id": 277,
"name": "أطواق الذهب في المواعظ والخطب = كتاب المقالات"
},
{
"id": 279,
"name": "إتحاف الأريب بشرح الغاية والتقريب",
"q": "Q131338059"
},
{
"id": 280,
"name": "البيت السعيد وخلاف الزوجين",
"q": "Q108905175"
},
{
"id": 281,
"name": "دفع إيهام الاضطراب عن آيات الكتاب - ط عطاءات العلم",
"pre": "دفع إيهام الاضطراب عن آيات الكتاب",
"suf": "ط عطاءات العلم",
"q": "Q115797675"
},
{
"id": 282,
"name": "مذكرة أصول الفقه على روضة الناظر- ط عطاءات العلم",
"pre": "مذكرة أصول الفقه على روضة الناظر",
"suf": "ط عطاءات العلم",
"q": "Q115797692"
},
{
"id": 282,
"name": "مذكرة أصول الفقه على روضة الناظر- ط عطاءات العلم",
"pre": "مذكرة أصول الفقه على روضة الناظر",
"suf": "ط عطاءات العلم",
"q": "Q136325439"
},
{
"id": 283,
"name": "نثر الورود شرح مراقي السعود"
},
{
"id": 284,
"name": "محاضرات الشنقيطي"
},
{
"id": 285,
"name": "المداخل إلى آثار شيخ الإسلام ابن تيمية",
"q": "Q20383929"
},
{
"id": 287,
"name": "الفتاوى - محمد الأمين الشنقيطي"
},
{
"id": 288,
"name": "التعليق والإيضاح على تفسير الجلالين - جـ 1",
"q": "Q6820596"
},
{
"id": 291,
"name": "جواب الاعتراضات المصرية على الفتيا الحموية",
"q": "Q136325208"
},
{
"id": 292,
"name": "رحلة الحج إلى بيت الله الحرام"
},
{
"id": 293,
"name": "الدروس المهمة لعامة الأمة"
},
{
"id": 294,
"name": "شفاء العليل في اختصار إبطال التحليل",
"q": "Q136304378"
},
{
"id": 295,
"name": "أخبار النحويين - أبو طاهر بن أبي هاشم - ت مجدي السيد",
"pre": "أخبار النحويين - أبو طاهر بن أبي هاشم",
"suf": "ت مجدي السيد"
},
{
"id": 296,
"name": "مختصر الصارم المسلول على شاتم الرسول",
"q": "Q135905088"
},
{
"id": 296,
"name": "مختصر الصارم المسلول على شاتم الرسول",
"q": "Q136709718"
},
{
"id": 297,
"name": "الأجوبة العيثاوية عن المسائل الطرابلسية"
},
{
"id": 299,
"name": "رسالة في الوضوء والغسل والصلاة"
},
{
"id": 300,
"name": "البستان في إعراب مشكلات القرآن"
},
{
"id": 301,
"name": "تحقيق الاحتجاج بالقدر لابن تيمية"
},
{
"id": 302,
"name": "حول شبهة الرقيق - ضمن «محاضرات الشنقيطي»"
},
{
"id": 303,
"name": "الانتصار لأهل الأثر المطبوع باسم «نقض المنطق»",
"q": "Q115805654"
},
{
"id": 305,
"name": "السياسة الشرعية في إصلاح الراعي والرعية - ط عطاءات العلم",
"pre": "السياسة الشرعية في إصلاح الراعي والرعية",
"suf": "ط عطاءات العلم",
"q": "Q115797528"
},
{
"id": 305,
"name": "السياسة الشرعية في إصلاح الراعي والرعية - ط عطاءات العلم",
"pre": "السياسة الشرعية في إصلاح الراعي والرعية",
"suf": "ط عطاءات العلم",
"q": "Q12250101"
},
{
"id": 306,
"name": "الثمر المستطاب في فقه السنة والكتاب",
"q": "Q115789455"
},
{
"id": 308,
"name": "مدونة أحكام الوقف الفقهية"
},
{
"id": 309,
"name": "الكواكب النيرات في معرفة من اختلط من الرواة الثقات"
},
{
"id": 310,
"name": "خير الكلام في التقصي عن أغلاط العوام"
},
{
"id": 311,
"name": "العقيدة الصحيحة وما يضادها ونواقض الإسلام"
},
{
"id": 312,
"name": "الترياق بأحاديث قواها الألباني وضعفها الحويني أبو إسحاق",
"q": "Q12177922"
},
{
"id": 313,
"name": "فضائل بيت المقدس - ابن الجوزي - ت عمرو عبد العظيم الحويني",
"pre": "فضائل بيت المقدس - ابن الجوزي",
"suf": "ت عمرو الحويني"
},
{
"id": 314,
"name": "الرد المفحم",
"q": "Q115789483"
},
{
"id": 314,
"name": "الرد المفحم",
"q": "Q12177972"
},
{
"id": 315,
"name": "قلائد الجمان في التعريف بقبائل عرب الزمان",
"q": "Q124614024"
},
{
"id": 316,
"name": "نزهة النظر في توضيح نخبة الفكر - ت القاسم",
"pre": "نزهة النظر في توضيح نخبة الفكر",
"suf": "ت القاسم"
},
{
"id": 319,
"name": "شرح بيت ومعناه - ضمن «آثار المعلمي»",
"q": "Q133802884"
},
{
"id": 320,
"name": "حاشية الخرشي منتهى الرغبة في حل ألفاظ النخبة"
},
{
"id": 321,
"name": "تحفة الطالبين في ترجمة الإمام محيي الدين"
},
{
"id": 322,
"name": "الطبقات السنية في تراجم الحنفية"
},
{
"id": 323,
"name": "السنة لعبد الله بن أحمد",
"q": "Q135170037"
},
{
"id": 325,
"name": "أنظام لغوية - ضمن «آثار المعلمي»"
},
{
"id": 326,
"name": "رفع الاشتباه عن معنى العبادة والإله - ضمن «آثار المعلمي»"
},
{
"id": 327,
"name": "تخريج الكلم الطيب"
},
{
"id": 328,
"name": "تحقيق الكلام في المسائل الثلاث - ضمن «آثار المعلمي»"
},
{
"id": 329,
"name": "فضائل البيت المقدس - الواسطي"
},
{
"id": 330,
"name": "عمارة القبور في الإسلام - المبيضة - ضمن «آثار المعلمي»"
},
{
"id": 331,
"name": "عمارة القبور في الإسلام - المسودة - ضمن «آثار المعلمي»"
},
{
"id": 332,
"name": "يسر العقيدة الإسلامية - ضمن «آثار المعلمي»"
},
{
"id": 333,
"name": "المصنف - ابن أبي شيبة - ت الشثري",
"pre": "مصنف ابن أبي شيبة",
"suf": "ت الشثري"
},
{
"id": 334,
"name": "إرشاد الأنام إلى أصول ومهمات دين الإسلام"
},
{
"id": 335,
"name": "التعقيب على تفسير سورة الفيل للفراهي - ضمن «آثار المعلمي»"
},
{
"id": 336,
"name": "طليعة التنكيل وتعزيز الطليعة وشكر الترحيب - ضمن «آثار المعلمي»"
},
{
"id": 337,
"name": "التنكيل بما في تأنيب الكوثري من الأباطيل - ضمن «آثار المعلمي»",
"pre": "التنكيل بما في تأنيب الكوثري من الأباطيل",
"suf": "ضمن «آثار المعلمي»"
},
{
"id": 338,
"name": "الأموال لابن زنجويه"
},
{
"id": 339,
"name": "الأنوار الكاشفة لما في كتاب «أضواء على السنة» - ضمن «آثار المعلمي»",
"pre": "الأنوار الكاشفة لما في كتاب «أضواء على السنة»",
"suf": "ضمن «آثار المعلمي»"
},
{
"id": 340,
"name": "الوحدان - ضمن «آثار المعلمي»"
},
{
"id": 341,
"name": "تراجم منتخبة من «التهذيب» و «الميزان» - ضمن «آثار المعلمي»"
},
{
"id": 342,
"name": "الأصل لمحمد بن الحسن - ت شحاته",
"pre": "«الأصل» لمحمد بن الحسن",
"suf": "ت شحاته"
},
{
"id": 343,
"name": "تحقيق المسح على الجوربين والنعلين"
},
{
"id": 344,
"name": "لامية الأفعال - ت القاسم",
"q": "Q115616574"
},
{
"id": 347,
"name": "تغليق التعليق"
},
{
"id": 348,
"name": "تحقيق بداية السول"
},
{
"id": 349,
"name": "تحذير الساجد من اتخاذ القبور مساجد",
"q": "Q115792230"
},
{
"id": 350,
"name": "أصول الدين الإسلامي مع قواعده الأربع"
},
{
"id": 351,
"name": "معجم الشواهد الشعرية - ضمن «آثار المعلمي»"
},
{
"id": 353,
"name": "أثر تعليل النص على دلالته"
},
{
"id": 354,
"name": "ألفية العراقي التبصرة والتذكرة - ت القاسم",
"pre": "ألفية العراقي التبصرة والتذكرة",
"suf": "ت القاسم"
},
{
"id": 356,
"name": "ألفية ابن مالك - ت القاسم",
"pre": "ألفية ابن مالك",
"suf": "ت القاسم"
},
{
"id": 357,
"name": "المغني في ضبط الأسماء لرواة الأنباء"
},
{
"id": 358,
"name": "حقيقة التأويل - ضمن «آثار المعلمي»",
"pre": "حقيقة التأويل",
"suf": "ضمن «آثار المعلمي»"
},
{
"id": 359,
"name": "حقيقة البدعة - ضمن «آثار المعلمي»"
},
{
"id": 360,
"name": "حاشية السيوطي على سنن النسائي"
},
{
"id": 361,
"name": "صدع الدجنة في فصل البدعة عن السنة - ضمن «آثار المعلمي»"
},
{
"id": 362,
"name": "الحنيفية والعرب - ضمن «آثار المعلمي»"
},
{
"id": 363,
"name": "عقيدة العرب في وثنيتهم - ضمن «آثار المعلمي»"
},
{
"id": 364,
"name": "الرد على حسن الضالعي - ضمن «آثار المعلمي»",
"q": "Q106892168"
},
{
"id": 365,
"name": "تخريج مشكلة الفقر"
},
{
"id": 366,
"name": "ما وقع لبعض المسلمين من الرياضة الصوفية والغلو فيها - ضمن «آثار المعلمي»",
"q": "Q96939286"
},
{
"id": 367,
"name": "الشفاعة - ضمن «آثار المعلمي»"
},
{
"id": 368,
"name": "التفضيل بين الخلفاء الأربعة - ضمن «آثار المعلمي»",
"q": "Q12178746"
},
{
"id": 369,
"name": "تعلق العقائد بالزمان والمكان - ضمن «آثار المعلمي»"
},
{
"id": 371,
"name": "تفسير البسملة - ضمن «آثار المعلمي»"
},
{
"id": 372,
"name": "تفسير سورة الفاتحة - ضمن «آثار المعلمي»"
},
{
"id": 373,
"name": "تفسير أول البقرة (1 - 5) - ضمن «آثار المعلمي»"
},
{
"id": 374,
"name": "ارتباط الآيات في سورة البقرة - ضمن «آثار المعلمي»",
"q": "Q136709815"
},
{
"id": 375,
"name": "ارتباط قوله تعالى: {حافظوا على الصلوات. . .} بما قبله وما بعده - ضمن «آثار المعلمي»",
"q": "Q136709754"
},
{
"id": 376,
"name": "تفسير قوله تعالى: {وآتوا اليتامى أموالهم .. } الآيات - ضمن «آثار المعلمي»",
"q": "Q136325369"
},
{
"id": 377,
"name": "تفسير أول المائدة (1 - 3) - ضمن «آثار المعلمي»"
},
{
"id": 378,
"name": "تفسير قوله: {كلوا من ثمره إذا أثمر .. } - ضمن «آثار المعلمي»",
"q": "Q12208412"
},
{
"id": 379,
"name": "تفسير قوله تعالى: {ولقد فتنا سليمان. . .} - ضمن «آثار المعلمي»"
},
{
"id": 380,
"name": "عقد الجمان في تاريخ أهل الزمان [565 - 628 هـ]",
"q": "Q124934987"
},
{
"id": 381,
"name": "تفسير قوله تعالى: {وما آتاكم الرسول فخذوه} ومعنى «أهل البيت»"
},
{
"id": 382,
"name": "إعراب قوله تعالى: {وأن ليس للإنسان إلا ما سعى} - ضمن «آثار المعلمي»"
},
{
"id": 383,
"name": "إعراب قوله: {أن كان ذا مال وبنين} - ضمن «آثار المعلمي»"
},
{
"id": 384,
"name": "الفقه الإسلامي وأدلته للزحيلي",
"q": "Q12249955"
},
{
"id": 385,
"name": "إعراب: {الحاقة ما الحاقة} ونحوه - ضمن «آثار المعلمي»"
},
{
"id": 386,
"name": "تفسير آيات خلق الأرض والسماوات - ضمن «آثار المعلمي»"
},
{
"id": 387,
"name": "معنى {أغنى عنه} - ضمن «آثار المعلمي»",
"q": "Q109257380"
},
{
"id": 388,
"name": "حول تفسير الفخر الرازي وتكملته - ضمن «آثار المعلمي»",
"q": "Q136709835"
},
{
"id": 389,
"name": "فوائد من تفسير الرازي مع التعليق على بعضها - ضمن «آثار المعلمي»"
},
{
"id": 390,
"name": "الروح - ابن القيم - ط عطاءات العلم",
"pre": "الروح - ابن القيم",
"suf": "ط عطاءات العلم",
"q": "Q115796303"
},
{
"id": 391,
"name": "الاستبصار في نقد الأخبار - ضمن «آثار المعلمي»"
},
{
"id": 392,
"name": "في أحكام الجرح والتعديل - ضمن «آثار المعلمي»"
},
{
"id": 393,
"name": "إشكالات في الجرح والتعديل - ضمن «آثار المعلمي»",
"q": "Q20418287"
},
{
"id": 394,
"name": "الحاجة إلى معرفة علم الجرح والتعديل - ضمن «آثار المعلمي»"
},
{
"id": 395,
"name": "الأحاديث التي استشهد بها مسلم في بحث الخلاف في اشتراط العلم باللقاء - ضمن «آثار المعلمي»",
"q": "Q12240278"
},
{
"id": 396,
"name": "في الصيغ المحتملة للتدليس ــ أظاهرة هي في السماع أم لا؟ - ضمن «آثار المعلمي»",
"q": "Q12178725"
},
{
"id": 398,
"name": "فوائد في كتاب «العلل» لابن أبي حاتم - ضمن «آثار المعلمي»"
},
{
"id": 399,
"name": "حجة النبي"
},
{
"id": 402,
"name": "أحكام الحديث الضعيف - ضمن «آثار المعلمي»"
},
{
"id": 403,
"name": "محاضرة في علم الرجال وأهميته - ضمن «آثار المعلمي»",
"q": "Q105516751"
},
{
"id": 405,
"name": "فضائل مصر المحروسة"
},
{
"id": 406,
"name": "ملخص طبقات المدلسين - ضمن «آثار المعلمي»"
},
{
"id": 407,
"name": "تنزيه الإمام الشافعي عن مطاعن الكوثري - ضمن «آثار المعلمي»",
"q": "Q97224321"
},
{
"id": 408,
"name": "نوادر الخلفاء = إعلام الناس بما وقع للبرامكة مع بني العباس"
},
{
"id": 409,
"name": "شرح حديث «آية المنافق ثلاث. . .» - ضمن «آثار المعلمي»",
"q": "Q20422835"
},
{
"id": 411,
"name": "تحقيق حقوق النساء في الإسلام"
},
{
"id": 412,
"name": "مراقي الفلاح شرح نور الإيضاح"
},
{
"id": 413,
"name": "التعليق على «الأربعين في التصوف» للسلمي - ضمن «آثار المعلمي»",
"q": "Q136709851"
},
{
"id": 414,
"name": "صفة الارتباط بين العلماء في القديم - ضمن «آثار المعلمي»"
},
{
"id": 415,
"name": "القبلة وقضاء الحاجة - ضمن «آثار المعلمي»"
},
{
"id": 416,
"name": "حكم تارك الصلاة - الألباني"
},
{
"id": 417,
"name": "روضة المحبين ونزهة المشتاقين - ط عطاءات العلم",
"pre": "روضة المحبين ونزهة المشتاقين",
"suf": "ط عطاءات العلم",
"q": "Q115796732"
},
{
"id": 418,
"name": "لباب الآداب للثعالبي",
"q": "Q134476295"
},
{
"id": 419,
"name": "تفسير الحداد المطبوع خطأ باسم التفسير الكبير للطبراني"
},
{
"id": 420,
"name": "العقود المضافة إلى مثلها"
},
{
"id": 421,
"name": "دفاع عن الحديث النبوي"
},
{
"id": 422,
"name": "الإنصاف في بيان أسباب الاختلاف للدهلوي",
"q": "Q136498608"
},
{
"id": 423,
"name": "الفهارس الشاملة لآثار الشيخ العلامة محمد الأمين الشنقيطي"
},
{
"id": 424,
"name": "فائدة في السواك - ضمن «آثار المعلمي»"
},
{
"id": 425,
"name": "مسألة بطلان الصلاة بتغيير الآيات في القراءة - ضمن «آثار المعلمي»"
},
{
"id": 426,
"name": "هل يدرك المأموم الركعة بإدراكه الركوع مع الإمام - ضمن «آثار المعلمي»"
},
{
"id": 427,
"name": "البناية شرح الهداية"
},
{
"id": 428,
"name": "بحث في حديث قيس بن عمرو في قضاء سنة الفجر بعد الفريضة - ضمن «آثار المعلمي»"
},
{
"id": 430,
"name": "إعادة الصلاة - ضمن «آثار المعلمي»"
},
{
"id": 436,
"name": "بحث في حديث معاذ بن جبل رضي الله عنه في صلاته بقومه - ضمن «آثار المعلمي»"
},
{
"id": 437,
"name": "موسوعة جمال عبد الناصر في الفقه الإسلامي",
"q": "Q136447067"
},
{
"id": 438,
"name": "حقيقة الوتر ومسماه في الشرع - ضمن «آثار المعلمي»"
},
{
"id": 439,
"name": "فرضية الجمعة وسبب تسميتها - ضمن «آثار المعلمي»"
},
{
"id": 440,
"name": "سنة الجمعة القبلية - ضمن «آثار المعلمي»"
},
{
"id": 441,
"name": "بحث في وقت تشريع ونزول آية صلاة الخوف - ضمن «آثار المعلمي»"
},
{
"id": 442,
"name": "قيام رمضان - ضمن «آثار المعلمي»"
},
{
"id": 443,
"name": "مسألة اشتراط الصوم في الاعتكاف - ضمن «آثار المعلمي»"
},
{
"id": 444,
"name": "مقام إبراهيم - ضمن «آثار المعلمي»"
},
{
"id": 445,
"name": "رسالة في فرضية اتباع السنة، والكلام على تقسيم الأخبار وحجية أخبار الآحاد - ضمن «آثار المعلمي»"
},
{
"id": 446,
"name": "رسالة في توسعة المسعى بين الصفا والمروة - ضمن «آثار المعلمي»"
},
{
"id": 447,
"name": "رسالة في سير النبي - صلى الله عليه وسلم - في الحج والكلام على وادي محسر - ضمن «آثار المعلمي»"
},
{
"id": 448,
"name": "فلسفة الأعياد وحكمة الإسلام - ضمن «آثار المعلمي»"
},
{
"id": 449,
"name": "توكيل الولي غير المجبر بتزويج موليته - ضمن «آثار المعلمي»"
},
{
"id": 450,
"name": "الحكم المشروع في الطلاق المجموع - ضمن «آثار المعلمي»"
},
{
"id": 451,
"name": "رسالة في المواريث - ضمن «آثار المعلمي»"
},
{
"id": 453,
"name": "مسألة منع بيع الأحرار - ضمن «آثار المعلمي»",
"q": "Q12243468"
},
{
"id": 454,
"name": "أسئلة وأجوبة في المعاملات - ضمن «آثار المعلمي»"
},
{
"id": 455,
"name": "الإسلام والتسعير ونحوه أو حول أجور العقار - ضمن «آثار المعلمي»"
},
{
"id": 456,
"name": "مناقشة لحكم بعض القضاة في قضية تنازع فيها رجلان - ضمن «آثار المعلمي»"
},
{
"id": 457,
"name": "رسالة في الكلام على أحكام خبر الواحد وشرائطه - ضمن «آثار المعلمي»"
},
{
"id": 458,
"name": "الفهارس العلمية لآثار الإمام ابن قيم الجوزية"
},
{
"id": 459,
"name": "مسائل القراءة في الصلاة، والرد على أحد شراح الترمذي - ضمن «آثار المعلمي»"
},
{
"id": 460,
"name": "مسألة في إعادة الإمام الصلاة دون من صلى وراءه في الجماعة - ضمن «آثار المعلمي»"
},
{
"id": 461,
"name": "صيام ستة أيام من شوال - ضمن «آثار المعلمي»"
},
{
"id": 462,
"name": "جواب الاستفتاء عن حقيقة الربا - ضمن «آثار المعلمي»"
},
{
"id": 464,
"name": "كشف الخفاء عن حكم بيع الوفاء - ضمن «آثار المعلمي»"
},
{
"id": 466,
"name": "آداب المواكلة",
"q": "Q16127396"
},
{
"id": 467,
"name": "النظر في ورقة إقرار - ضمن «آثار المعلمي»"
},
{
"id": 468,
"name": "قضية في سكوت المدعى عليه عن الإقرار والإنكار - ضمن «آثار المعلمي»"
},
{
"id": 469,
"name": "الفسخ بالإعسار - ضمن «آثار المعلمي»"
},
{
"id": 470,
"name": "مسألتان في الضمان والالتزام - ضمن «آثار المعلمي»"
},
{
"id": 472,
"name": "مسألة الوقف في مرض الموت - ضمن «آثار المعلمي»"
},
{
"id": 479,
"name": "الفوضى الدينية وتعدد الزوجات - ضمن «آثار المعلمي»"
},
{
"id": 480,
"name": "مسألة في رجل حنفي تزوج صغيرة بولاية أمها - ضمن «آثار المعلمي»"
},
{
"id": 481,
"name": "مسألة في صبيين مسلمين أخذهما رئيس الكنيسة فنشآ على دينه وبلغا عليه وتزوجا، ثم أسلما - ضمن «آثار المعلمي»"
},
{
"id": 482,
"name": "قوت القلوب في معاملة المحبوب ووصف طريق المريد إلى مقام التوحيد"
},
{
"id": 483,
"name": "الاستعداد للموت وسؤال القبر"
},
{
"id": 484,
"name": "بحث في قصة بني هشام بن المغيرة واستئذانهم النبي - صلى الله عليه وسلم - أن يزوجوا عليا رضي الله عنه - ضمن «آثار المعلمي»",
"q": "Q136709766"
},
{
"id": 485,
"name": "إرشاد العامه إلى معرفة الكذب وأحكامه - ضمن «آثار المعلمي»"
},
{
"id": 486,
"name": "رسالة في أصول الفقه - ضمن «آثار المعلمي»"
},
{
"id": 488,
"name": "اللطيفة البكرية والنتيجة الفكرية في المهمات النحوية - ضمن «آثار المعلمي»"
},
{
"id": 489,
"name": "الوساطه بين المتنبي وخصومه ونقد شعره"
},
{
"id": 490,
"name": "إسعاف الأعيان في أنساب أهل عمان",
"q": "Q121076208"
},
{
"id": 493,
"name": "حقائق في النحو مستقربة - ضمن «آثار المعلمي»"
},
{
"id": 495,
"name": "مختصر شرح ابن جماعة على القواعد الصغرى - ضمن «آثار المعلمي»"
},
{
"id": 497,
"name": "فتاوى النووي"
},
{
"id": 499,
"name": "روضة الطالبين وعمدة المفتين"
},
{
"id": 500,
"name": "نظم قواعد الإعراب الصغرى - ضمن «آثار المعلمي»"
},
{
"id": 501,
"name": "طرائف في العربية - ضمن «آثار المعلمي»"
},
{
"id": 502,
"name": "الكلام على تصريف «ذو» - ضمن «آثار المعلمي»"
},
{
"id": 503,
"name": "إشكال صرفي وجوابه - ضمن «آثار المعلمي»"
},
{
"id": 504,
"name": "جمهرة النسب - ابن الكلبي - ت فراج",
"pre": "جمهرة النسب - ابن الكلبي",
"suf": "ت فراج"
},
{
"id": 505,
"name": "ضبط فعلين في متن الأزهار و (فائدتان) - ضمن «آثار المعلمي»",
"q": "Q136325329"
},
{
"id": 506,
"name": "رسالة في التعصب المذهبي - ضمن «آثار المعلمي»"
},
{
"id": 507,
"name": "اختصار كتاب «درة الغواص» - ضمن «آثار المعلمي»"
},
{
"id": 508,
"name": "فوائد منتقاة من كتاب الكنز المدفون - ضمن «آثار المعلمي»"
},
{
"id": 509,
"name": "مناظرة أدبية بين المعلمي والشاعر الأديب علي بن محمد السنوسي - ضمن «آثار المعلمي»"
},
{
"id": 510,
"name": "أصول التصحيح العلمي - المبيضة - ضمن «آثار المعلمي»"
},
{
"id": 511,
"name": "مختصر متن الكافي في العروض والقوافي - ضمن «آثار المعلمي»"
},
{
"id": 512,
"name": "تحقيق رياض الصالحين للألباني"
},
{
"id": 513,
"name": "أصول التصحيح العلمي - مسودة - ضمن «آثار المعلمي»"
},
{
"id": 516,
"name": "رسالة أصول التصحيح - مسودة - ضمن «آثار المعلمي»",
"q": "Q116449064"
},
{
"id": 517,
"name": "تخريج أحاديث شواهد التوضيح وملاحظات على طبعة فؤاد عبد الباقي - ضمن «آثار المعلمي»"
},
{
"id": 518,
"name": "تصحيحات وتعليقات على سبل السلام للأمير الصنعاني - ضمن «آثار المعلمي»"
},
{
"id": 519,
"name": "تنبيهات على الكامل للمبرد نشرة زكي مبارك - ضمن «آثار المعلمي»"
},
{
"id": 520,
"name": "تنبيهات على الجزء الأول من معجم الأدباء ط أحمد فريد الرفاعي. - ضمن «آثار المعلمي»"
},
{
"id": 521,
"name": "من نوادر مخطوطات مكتبة الحرم المكي الشريف - ضمن «آثار المعلمي»"
},
{
"id": 522,
"name": "حاشية السندي على سنن النسائي"
},
{
"id": 524,
"name": "كشف الغمة عن أدلة الحجاب في الكتاب والسنة",
"q": "Q136709824"
},
{
"id": 525,
"name": "الفوائد التفسيرية - ضمن «آثار المعلمي»"
},
{
"id": 526,
"name": "الفوائد العقدية - ضمن «آثار المعلمي»"
},
{
"id": 527,
"name": "الجهاد سنام الدين - ضمن «آثار المعلمي»"
},
{
"id": 528,
"name": "الفوائد الحديثية - ضمن «آثار المعلمي»",
"q": "Q12186419"
},
{
"id": 529,
"name": "نصيحة لطالب الحق - ضمن «آثار المعلمي»"
},
{
"id": 530,
"name": "الفوائد الفقهية - ضمن «آثار المعلمي»"
},
{
"id": 531,
"name": "الفوائد الأصولية - ضمن «آثار المعلمي»"
},
{
"id": 532,
"name": "الفوائد اللغوية - ضمن «آثار المعلمي»",
"q": "Q136709770"
},
{
"id": 533,
"name": "تفسير القرآن العظيم - السخاوي"
},
{
"id": 534,
"name": "وأد الفتنة دراسة نقدية لشبهات المرجفين وفتنة الجمل وصفين على منهج المحدثين",
"q": "Q136709868"
},
{
"id": 534,
"name": "وأد الفتنة دراسة نقدية لشبهات المرجفين وفتنة الجمل وصفين على منهج المحدثين",
"q": "Q136709878"
},
{
"id": 535,
"name": "سؤالات السجزي للحاكم"
},
{
"id": 537,
"name": "صحيح ابن حبان: التقاسيم والأنواع",
"q": "Q116877619"
},
{
"id": 538,
"name": "عمدة الأحكام - ت القاسم",
"pre": "عمدة الأحكام",
"suf": "ت القاسم",
"q": "Q136709845"
},
{
"id": 539,
"name": "الأثر الثمين في نصرة عائشة - رضي الله عنها - أم المؤمنين",
"q": "Q105061264"
},
{
"id": 544,
"name": "تفسير العثيمين: الفاتحة والبقرة"
},
{
"id": 545,
"name": "تفسير العثيمين: آل عمران"
},
{
"id": 546,
"name": "خطورة التسرع في التكفير والقيام بالتفجير وما ينشأ عنهما من سفك للدماء وتخريب للمنشآت",
"q": "Q123244198"
},
{
"id": 547,
"name": "تفسير العثيمين: النساء"
},
{
"id": 548,
"name": "تفسير العثيمين: المائدة",
"q": "Q22685179"
},
{
"id": 549,
"name": "تفسير العثيمين: الأنعام",
"q": "Q107004540"
},
{
"id": 550,
"name": "تفسير العثيمين: الكهف"
},
{
"id": 551,
"name": "شرح الزرقاني على الموطأ",
"q": "Q116945400"
},
{
"id": 552,
"name": "عثمان بن عفان ذو النورين"
},
{
"id": 553,
"name": "تفسير العثيمين: النور"
},
{
"id": 554,
"name": "تفسير العثيمين: الفرقان"
},
{
"id": 555,
"name": "تفسير العثيمين: الشعراء"
},
{
"id": 556,
"name": "مختصر كشف الغمة عن أدلة الحجاب في الكتاب والسنة"
},
{
"id": 557,
"name": "الدرة الثمينة في أخبار المدينة - ط بحوث المدينة",
"pre": "الدرة الثمينة في أخبار المدينة",
"suf": "ط بحوث المدينة"
},
{
"id": 559,
"name": "القواعد والضوابط الفقهية في الضمان المالي"
},
{
"id": 561,
"name": "صحيح الكتب التسعة وزوائده"
},
{
"id": 568,
"name": "متون طالب العلم - المستوى التمهيدي",
"q": "Q113644955"
},
{
"id": 569,
"name": "مواهب الجليل في شرح مختصر خليل"
},
{
"id": 570,
"name": "متون طالب العلم - المستوى الأول"
},
{
"id": 571,
"name": "متون طالب العلم - المستوى الثاني"
},
{
"id": 572,
"name": "إقامة البراهين على حكم من استغاث بغير الله أو صدق الكهنة والعرافين"
},
{
"id": 573,
"name": "متون طالب العلم - المستوى الثالث"
},
{
"id": 574,
"name": "متون طالب العلم - المستوى الرابع"
},
{
"id": 575,
"name": "نسيم الصبا"
},
{
"id": 576,
"name": "مختصر الأذكار والآداب"
},
{
"id": 578,
"name": "المقدمة في الأصول - ابن القصار - ط العلمية",
"pre": "المقدمة في الأصول لابن القصار",
"suf": "ط العلمية"
},
{
"id": 581,
"name": "المقدمة الجزرية - ت القاسم",
"pre": "المقدمة الجزرية",
"suf": "ت القاسم"
},
{
"id": 583,
"name": "كشف الشبهات - ت القاسم",
"pre": "كشف الشبهات",
"suf": "ت القاسم",
"q": "Q28042230"
},
{
"id": 585,
"name": "الآثار الواردة عن السلف في العقيدة من خلال كتب المسائل المروية عن الإمام أحمد"
},
{
"id": 587,
"name": "المدونة"
},
{
"id": 592,
"name": "صحيح السيرة النبوية - الألباني"
},
{
"id": 597,
"name": "أسماء الصحابة التي اتفق فيها البخاري ومسلم وما انفرد به كل واحد"
},
{
"id": 598,
"name": "آداب التربية في تراث الآل والأصحاب"
},
{
"id": 600,
"name": "منهج الصحابة في دعوة المشركين من غير أهل الكتاب"
},
{
"id": 603,
"name": "معجم التوحيد"
},
{
"id": 604,
"name": "القواعد في توحيد العبادة"
},
{
"id": 608,
"name": "أسماء من اتفق البخاري ومسلم تصحيح الرواية عنه من الصحابة ومن انفرد كل واحد بإخراج حديثه"
},
{
"id": 611,
"name": "دليل مؤلفات مختار السوسي"
},
{
"id": 613,
"name": "نتائج الفكر في النحو"
},
{
"id": 614,
"name": "التوحيد لابن منده - ت الوهيبي والغصن",
"pre": "التوحيد لابن منده",
"suf": "ت الوهيبي والغصن"
},
{
"id": 615,
"name": "الرفعة في بعض متون فقه المذاهب الأربعة"
},
{
"id": 616,
"name": "نخبة الفكر - ت القاسم",
"pre": "نخبة الفكر",
"suf": "ت القاسم"
},
{
"id": 619,
"name": "القوافي الندية في السيرة المحمدية"
},
{
"id": 620,
"name": "تحريم كتابة القرآن الكريم بحروف غير عربية أعجمية أو لاتينية"
},
{
"id": 622,
"name": "كشاف القناع عن متن الإقناع - ط وزارة العدل",
"pre": "كشاف القناع",
"suf": "ط وزارة العدل"
},
{
"id": 625,
"name": "الأسامي والكنى - أبو أحمد الحاكم - ت الأزهري",
"q": "Q116752531"
},
{
"id": 626,
"name": "المسلمون في بلاد الغربة"
},
{
"id": 627,
"name": "المنتقى - ابن الجارود - ت الحويني",
"pre": "المنتقى - ابن الجارود",
"suf": "ت الحويني"
},
{
"id": 628,
"name": "در المهتدي وذخر المقتدي نظم بداية المبتدي المعروف بالهاملية - ضمن مجموع «الرفعة»"
},
{
"id": 631,
"name": "أسهل المسالك في مذهب الإمام مالك - ضمن مجموع «الرفعة»"
},
{
"id": 632,
"name": "منظومة البهجة الوردية - ضمن مجموع «الرفعة»"
},
{
"id": 633,
"name": "متن الموثق من عمدة الموفق - ضمن مجموع «الرفعة»"
},
{
"id": 635,
"name": "موسوعة صناعة الحلال"
},
{
"id": 636,
"name": "الديباج لأبي عبيدة",
"q": "Q124418206"
},
{
"id": 638,
"name": "الأدب - ابن أبي شيبة (235)"
},
{
"id": 639,
"name": "موسوعة التفسير المأثور"
},
{
"id": 641,
"name": "التعليقات الحسان على صحيح ابن حبان"
},
{
"id": 642,
"name": "كتاب العلل الواقع بآخر جامع الترمذي - ت بشار",
"pre": "كتاب العلل الواقع بآخر جامع الترمذي",
"suf": "ت بشار"
},
{
"id": 643,
"name": "الحديث الضعيف وحكم الاحتجاج به"
},
{
"id": 645,
"name": "تقريب البغية بترتيب أحاديث الحلية",
"q": "Q124662407"
},
{
"id": 646,
"name": "زوائد الأحاديث الواردة في فضائل الصحابة"
},
{
"id": 647,
"name": "موسوعة بيت المقدس وبلاد الشام الحديثية"
},
{
"id": 654,
"name": "سنن أبي داود - ط دهلي مع عون المعبود",
"pre": "سنن أبي داود",
"suf": "ط مع عون المعبود"
},
{
"id": 657,
"name": "صفة صلاة النبي صلى الله عليه وسلم - الألباني",
"q": "Q115789746"
},
{
"id": 658,
"name": "القسطاس في علم العروض"
},
{
"id": 660,
"name": "فتح القريب المجيب على الترغيب والترهيب"
},
{
"id": 663,
"name": "الدرر البهية من الفتاوى الكويتية"
},
{
"id": 667,
"name": "أحكام الاختلاف في رؤية هلال ذي الحجة"
},
{
"id": 668,
"name": "التمام في تفسير أشعار هذيل مما أغفله أبو سعيد السكري",
"q": "Q105293989"
},
{
"id": 669,
"name": "قواعد الترجيح عند المفسرين دراسة نظرية تطبيقية"
},
{
"id": 671,
"name": "المعمرون والوصايا"
},
{
"id": 675,
"name": "أحكام الغصب في الفقه الاسلامي",
"q": "Q6537462"
},
{
"id": 676,
"name": "الفصول في الأصول"
},
{
"id": 679,
"name": "تحقيق صفة الفتوى"
},
{
"id": 680,
"name": "صلاة التراويح - الألباني"
},
{
"id": 681,
"name": "الغرر والدرر في سيرة خير البشر"
},
{
"id": 682,
"name": "غاية المرام في تخريج أحاديث الحلال والحرام",
"q": "Q115789684"
},
{
"id": 684,
"name": "تحقيق فضل الصلاة على النبي لإسماعيل القاضي"
},
{
"id": 685,
"name": "أثر تطور المعارف الطبية على تغير الفتوى والقضاء"
},
{
"id": 687,
"name": "الدخول في أمان غير المسلمين وآثاره في الفقه الإسلامي"
},
{
"id": 688,
"name": "تيسير أحكام التجويد - المستوى الأول",
"q": "Q136709797"
},
{
"id": 689,
"name": "عناية الإسلام بصحة الإنسان"
},
{
"id": 690,
"name": "منحة العلام في شرح بلوغ المرام"
},
{
"id": 692,
"name": "قصة المسيح الدجال"
},
{
"id": 696,
"name": "عقد الدرر في شرح مختصر نخبة الفكر"
},
{
"id": 697,
"name": "فتح رب البرية في تيسير قراءة الألفية"
},
{
"id": 700,
"name": "مختصر الشمائل"
},
{
"id": 701,
"name": "الإبداع في مضار الابتداع"
},
{
"id": 702,
"name": "تخريج مساجلة علمية"
},
{
"id": 703,
"name": "القول الفصل في حكم تارك الصلاة عمدا حتى يخرج وقتها"
},
{
"id": 704,
"name": "المحتسب في تبيين وجوه شواذ القراءات والإيضاح عنها - ط العلمية",
"pre": "المحتسب في تبيين وجوه شواذ القراءات والإيضاح عنها",
"suf": "ط العلمية",
"q": "Q12222838"
},
{
"id": 705,
"name": "منزلة السنة في الإسلام"
},
{
"id": 706,
"name": "الإشارة في أصول الفقه - ط التونسية",
"pre": "الإشارة في أصول الفقه",
"suf": "ط التونسية"
},
{
"id": 707,
"name": "فتنة التكفير"
},
{
"id": 709,
"name": "التنقيح المشبع في تحرير أحكام المقنع - مع حواشي التنقيح"
},
{
"id": 710,
"name": "فقه الواقع - الألباني"
},
{
"id": 711,
"name": "صحيح مسلم - ط التركية",
"pre": "صحيح مسلم",
"suf": "ط التركية",
"q": "Q123415095"
},
{
"id": 712,
"name": "التعقبات المفيدة على كتاب كلمات القرآن تفسير وبيان لمخلوف"
},
{
"id": 715,
"name": "المقدمة في الأصول - ابن القصار - ت السليماني",
"pre": "المقدمة في الأصول لابن القصار",
"suf": "ت سليماني"
},
{
"id": 716,
"name": "قواعد أصول الفقه التي يعلم منها حاله = مجمع الأصول"
},
{
"id": 718,
"name": "المختصر المحتاج إليه من تاريخ ابن الدبيثي - ط العلمية",
"pre": "المختصر المحتاج إليه من تاريخ ابن الدبيثي",
"suf": "ط العلمية"
},
{
"id": 720,
"name": "نوادر الأصول في أحاديث الرسول"
},
{
"id": 721,
"name": "موسوعة شرح أسماء الله الحسنى"
},
{
"id": 726,
"name": "مدخل إلى القرآن الكريم عرض تاريخي وتحليل مقارن"
},
{
"id": 727,
"name": "المهروانيات"
},
{
"id": 728,
"name": "بغية الملتمس في تاريخ رجال أهل الأندلس"
},
{
"id": 729,
"name": "ذيل تاريخ بغداد - ابن النجار - ط العلمية",
"pre": "«ذيل تاريخ بغداد» للمحب ابن النجار",
"suf": "ط العلمية"
},
{
"id": 730,
"name": "إبطال التأويلات - ط غراس",
"pre": "إبطال التأويلات",
"suf": "ط غراس",
"q": "Q116886705"
},
{
"id": 735,
"name": "صحيح البخاري - ت البغا",
"pre": "صحيح البخاري",
"suf": "ت البغا",
"q": "Q124370879"
},
{
"id": 736,
"name": "تاريخ بغداد - ت بشار",
"pre": "تاريخ بغداد",
"suf": "ت بشار",
"q": "Q114815356"
},
{
"id": 736,
"name": "تاريخ بغداد - ت بشار",
"pre": "تاريخ بغداد",
"suf": "ت بشار",
"q": "Q293689"
},
{
"id": 736,
"name": "تاريخ بغداد ت بشار",
"q": "Q114815356"
},
{
"id": 736,
"name": "تاريخ بغداد ت بشار",
"q": "Q293689"
},
{
"id": 739,
"name": "الأحاديث الواردة في اللعب والرياضة"
},
{
"id": 740,
"name": "مختارات شعراء العرب لابن الشجري"
},
{
"id": 742,
"name": "موسوعة مرآة الحرمين الشريفين وجزيرة العرب"
},
{
"id": 744,
"name": "مرويات المزاح والدعابة عن النبي - صلى الله عليه وسلم - والصحابة"
},
{
"id": 745,
"name": "المستفاد من ذيل تاريخ بغداد - ط العلمية",
"pre": "المستفاد من ذيل تاريخ بغداد",
"suf": "ط العلمية"
},
{
"id": 747,
"name": "السهم المصيب في الرد على الخطيب - ط العلمية"
},
{
"id": 748,
"name": "شعب الإيمان - ت زغلول",
"pre": "شعب الإيمان",
"suf": "ت زغلول",
"q": "Q135055707"
},
{
"id": 751,
"name": "التاج الجامع للأصول في أحاديث الرسول صلى الله عليه وسلم",
"q": "Q12178132"
},
{
"id": 755,
"name": "معالم التوحيد في فاتحة الكتاب"
},
{
"id": 757,
"name": "قراريط - مسائل وأحكام وبدع الجنائز",
"q": "Q12228415"
},
{
"id": 759,
"name": "المفصل في صنعة الإعراب"
},
{
"id": 760,
"name": "شرح مقامات الحريري"
},
{
"id": 762,
"name": "أحكام الصف في الصلاة"
},
{
"id": 763,
"name": "ملوك حمير وأقيال اليمن وشرحها المسمى خلاصة السيرة الجامعة لعجائب الملوك التبابعة"
},
{
"id": 765,
"name": "أدب الدنيا والدين",
"q": "Q125473548"
},
{
"id": 766,
"name": "خطورة التكفير وما يترتب عليه من أحكام"
},
{
"id": 767,
"name": "المحلى بالآثار"
},
{
"id": 769,
"name": "الآراء الفقهية المعاصرة المحكوم عليها بالشذوذ في العبادات"
},
{
"id": 770,
"name": "أسماء خيل العرب وفرسانها",
"q": "Q121085234"
},
{
"id": 772,
"name": "الفوائد الشهير بالغيلانيات لأبي بكر الشافعي",
"q": "Q200947"
},
{
"id": 773,
"name": "حجة الله البالغة"
},
{
"id": 774,
"name": "المصباح لما أعتم من شواهد الإيضاح"
},
{
"id": 776,
"name": "شرح منتهى الإرادات لابن النجار = معونة أولي النهى",
"pre": "«شرح المنتهى» لابن النجار"
},
{
"id": 778,
"name": "بلوغ الأماني في تراجم الرجال الذين لم يعرفهم الإمام الألباني رحمه الله تعالى"
},
{
"id": 782,
"name": "اللباب في فقه السنة والكتاب"
},
{
"id": 784,
"name": "مواهب الجليل من أدلة خليل"
},
{
"id": 787,
"name": "الأحكام الفقهية التي قيل فيها بالنسخ وأثر ذلك في اختلاف الفقهاء"
},
{
"id": 789,
"name": "الكافي في علوم الحديث"
},
{
"id": 791,
"name": "شرح سنن ابن ماجه للسيوطي وغيره"
},
{
"id": 792,
"name": "القصيدة التائية في القدر",
"q": "Q115911171"
},
{
"id": 793,
"name": "معجم المختلطين"
},
{
"id": 794,
"name": "معجم المدلسين"
},
{
"id": 795,
"name": "المنهج الصحيح في الجمع بين ما في المقنع والتنقيح",
"q": "Q136035306"
},
{
"id": 796,
"name": "التذييل على تهذيب التهذيب"
},
{
"id": 797,
"name": "الزبد في مصطلح الحديث"
},
{
"id": 798,
"name": "روضة الممتع في تخريج أحاديث الروض المربع"
},
{
"id": 799,
"name": "مختصر زوائد مسند البزار على الكتب الستة ومسند أحمد"
},
{
"id": 800,
"name": "مراقي العزة ومقومات السعادة"
},
{
"id": 803,
"name": "شرح دليل الطالب - عبد الله المقدسي"
},
{
"id": 804,
"name": "روضة الطرائف في رسم المصحف"
},
{
"id": 805,
"name": "الحث على التجارة - من «الجامع» للخلال - ت العوضي",
"pre": "الحث على التجارة - من «الجامع» للخلال",
"suf": "ت العوضي",
"q": "Q136709749"
},
{
"id": 806,
"name": "ورد الطائف في شرح روضة الطرائف في رسم المصحف"
},
{
"id": 807,
"name": "شرح زاد المستقنع - آل حسين - المطبوع مع الزوائد عليه"
},
{
"id": 808,
"name": "الزوائد على زاد المستقنع - آل حسين"
},
{
"id": 809,
"name": "منهج الخطيب البغدادي في نقد الحديث"
},
{
"id": 810,
"name": "سؤالات البرذعي لأبي زرعة الرازي - ت الهاشمي",
"pre": "سؤالات البرذعي لأبي زرعة الرازي",
"suf": "ت الهاشمي"
},
{
"id": 812,
"name": "سؤالات البرذعي لأبي زرعة الرازي - ت الأزهري",
"pre": "سؤالات البرذعي لأبي زرعة الرازي",
"suf": "ت الأزهري"
},
{
"id": 813,
"name": "النصيحة المختصة"
},
{
"id": 814,
"name": "ذيل تكملة الإكمال - ابن العمادية"
},
{
"id": 815,
"name": "الدرر الثرية من الفتاوى البازية"
},
{
"id": 816,
"name": "أسامي الضعفاء - أبو زرعة الرازي - ت الهاشمي",
"pre": "أسامي الضعفاء - أبو زرعة الرازي",
"suf": "ت الهاشمي"
},
{
"id": 817,
"name": "أسامي الضعفاء - أبو زرعة الرازي - ت الأزهري",
"pre": "أسامي الضعفاء - أبو زرعة الرازي",
"suf": "ت الأزهري"
},
{
"id": 819,
"name": "البدور المضية في تراجم الحنفية",
"q": "Q12188731"
},
{
"id": 820,
"name": "المجموع المفيد الممتاز من كتب العلامة ابن باز"
},
{
"id": 821,
"name": "مجالس رمضان - ابن باز"
},
{
"id": 822,
"name": "تكملة إكمال الإكمال - ابن الصابوني - ط العراق",
"pre": "تكملة إكمال الإكمال - ابن الصابوني",
"suf": "ط العراق"
},
{
"id": 824,
"name": "الإعلام بأحكام المال الحرام"
},
{
"id": 828,
"name": "المرأة بين الفقه والقانون"
},
{
"id": 829,
"name": "سنن النسائي",
"q": "Q118371902"
},
{
"id": 829,
"name": "سنن النسائي - ط المصرية",
"pre": "سنن النسائي",
"q": "Q118371902"
},
{
"id": 836,
"name": "المنتخب في تفسير القرآن الكريم"
},
{
"id": 837,
"name": "شرح «نيل المنى» في نظم «الموافقات للشاطبي»"
},
{
"id": 838,
"name": "النجم المضيء بذكر روايات وألفاظ حديث المسيء"
},
{
"id": 839,
"name": "المستدرك على موسوعة التفسير المأثور"
},
{
"id": 843,
"name": "الإكمال - لابن ماكولا - ت المعلمي",
"pre": "«الإكمال» لابن ماكولا",
"suf": "ت المعلمي",
"q": "Q118382737"
},
{
"id": 843,
"name": "الإكمال - لابن ماكولا - ت المعلمي",
"pre": "الإكمال - لابن ماكولا",
"suf": "ت المعلمي",
"q": "Q118382737"
},
{
"id": 847,
"name": "أعلام رسول الله المنزلة على رسله"
},
{
"id": 849,
"name": "تخريج حديث لا يرث المسلم الكافر",
"q": "Q22690845"
},
{
"id": 850,
"name": "أعلام الحجاز في القرن الرابع عشر للهجرة"
},
{
"id": 851,
"name": "إيضاح المكنون في الذيل على كشف الظنون",
"q": "Q127325497"
},
{
"id": 853,
"name": "الأبواب والتراجم لصحيح البخاري"
},
{
"id": 854,
"name": "أحكام الجنائز",
"q": "Q115788167"
},
{
"id": 855,
"name": "شرح كتاب التوحيد من صحيح البخاري - ابن باز"
},
{
"id": 856,
"name": "كشف الخفاء ط القدسي"
},
{
"id": 857,
"name": "أخبار في النحو = أخبار النحويين - أبو طاهر بن أبي هاشم - ت الدالي",
"pre": "أخبار في النحو - أبو طاهر بن أبي هاشم",
"suf": "ت الدالي"
},
{
"id": 860,
"name": "الروض الباسم في حوادث العمر والتراجم"
},
{
"id": 862,
"name": "إسعاف الأخيار بما اشتهر ولم يصح من الأحاديث والآثار والقصص والأشعار"
},
{
"id": 872,
"name": "تقييد المهمل وتمييز المشكل - ط عالم الفوائد",
"pre": "تقييد المهمل وتمييز المشكل"
},
{
"id": 879,
"name": "تقريب فتاوى ابن تيمية"
},
{
"id": 880,
"name": "شرح الشاطبية فتح الوصيد في شرح القصيد - ت أحمد الزعبي"
},
{
"id": 882,
"name": "الموضوعات لابن الجوزي"
},
{
"id": 888,
"name": "الإمام الأشعري حياته وأطواره العقدية"
},
{
"id": 892,
"name": "رأس الحسين"
},
{
"id": 893,
"name": "الحديث الموضوعي المنهج والتأصيل والتمثيل"
},
{
"id": 895,
"name": "المستدرك على معجم المناهي اللفظية",
"q": "Q136709826"
},
{
"id": 896,
"name": "مشاهير علماء الأمصار",
"q": "Q117338154"
},
{
"id": 897,
"name": "موسوعة القبائل العربية"
},
{
"id": 898,
"name": "الأحكام الشرعية المتعلقة بالوباء والطاعون مع دراسة فقهية للأحكام المتعلقة بفيروس كورونا"
},
{
"id": 901,
"name": "موارد الظمآن إلى زوائد ابن حبان - ت عبد الرزاق حمزة"
},
{
"id": 902,
"name": "المناظرات العقدية لشيخ الإسلام ابن تيمية"
},
{
"id": 907,
"name": "صحيح البخاري - بحاشية السهارنفوري - ت الندوي"
},
{
"id": 908,
"name": "إسعاف اللبيث بفتاوى الحديث"
},
{
"id": 910,
"name": "تفسير القرآن الثري الجامع"
},
{
"id": 911,
"name": "الإبانة عن أصول الديانة - ت العصيمي",
"pre": "الإبانة عن أصول الديانة",
"suf": "ت العصيمي"
},
{
"id": 912,
"name": "شرح مسند الدارمي"
},
{
"id": 914,
"name": "مختصر المزني - ت الداغستاني",
"pre": "مختصر المزني",
"suf": "ت الداغستاني"
},
{
"id": 915,
"name": "كتاب الولاة وكتاب القضاة - ت رفن",
"pre": "كتاب الولاة وكتاب القضاة",
"suf": "ت رفن"
},
{
"id": 916,
"name": "موطأ ابن وهب الصغير"
},
{
"id": 917,
"name": "المدخل إلى دراسة المدارس والمذاهب الفقهية",
"q": "Q127325163"
},
{
"id": 918,
"name": "تكملة حاشية ابن عابدين = قرة عيون الأخيار تكملة رد المحتار - ط الفكر"
},
{
"id": 919,
"name": "جمهرة النسب - ابن الكلبي - ت ناجي",
"pre": "جمهرة النسب - ابن الكلبي",
"suf": "ت ناجي",
"q": "Q114810954"
},
{
"id": 919,
"name": "جمهرة النسب لابن الكلبي - رواية السكري - ت ناجي",
"pre": "جمهرة النسب - ابن الكلبي",
"suf": "ت ناجي",
"q": "Q114810954"
},
{
"id": 921,
"name": "السيرة النبوية والدعوة في العهد المدني"
},
{
"id": 922,
"name": "معاني القرآن وإعرابه للزجاج"
},
{
"id": 923,
"name": "البدور الزاهرة في القراءات العشر المتواترة - النشار",
"q": "Q125905050"
},
{
"id": 924,
"name": "الإلمام بأحاديث الأحكام - ومعه حاشية ابن عبد الهادي"
},
{
"id": 925,
"name": "فضائل مصر وأخبارها وخواصها"
},
{
"id": 926,
"name": "الخلافة الأموية من كتاب الأخبار الطوال المنسوب للدينوري"
},
{
"id": 927,
"name": "منهاج السنة النبوية",
"q": "Q115783468"
},
{
"id": 928,
"name": "الأمثال في القرآن - من اعلام الموقعين"
},
{
"id": 930,
"name": "السيرة النبوية من البداية والنهاية - ت عبد الواحد",
"q": "Q125133819"
},
{
"id": 932,
"name": "قصص الأنبياء من البداية والنهاية - ت عبد الواحد"
},
{
"id": 938,
"name": "شرح مختصر الشمائل المحمدية"
},
{
"id": 940,
"name": "معاني القرآن للنحاس",
"q": "Q115779492"
},
{
"id": 941,
"name": "شرح الزيادات - قاضي خان"
},
{
"id": 948,
"name": "أخبار قبائل الخزرج"
},
{
"id": 949,
"name": "جامع العلوم والحكم - ت الفحل",
"pre": "جامع العلوم والحكم",
"suf": "ت الفحل"
},
{
"id": 950,
"name": "أسماء المغتالين من الأشراف وأسماء من قتل من الشعراء - ضمن نوادر المخطوطات"
},
{
"id": 953,
"name": "إعجاز القرآن للباقلاني"
},
{
"id": 955,
"name": "كتاب الأمر والنهي على معنى الشافعي"
},
{
"id": 956,
"name": "التاريخ الكبير للبخاري - ت المعلمي اليماني",
"pre": "«التاريخ الكبير» للبخاري",
"suf": "ت المعلمي اليماني",
"q": "Q121085465"
},
{
"id": 957,
"name": "الرسالة المصرية - ضمن نوادر المخطوطات"
},
{
"id": 958,
"name": "المردفات من قريش - ضمن نوادر المخطوطات"
},
{
"id": 959,
"name": "من نسب إلى أمه من الشعراء - ضمن نوادر المخطوطات"
},
{
"id": 960,
"name": "تحفة الأبيه فيمن نسب إلى غير أبيه - ضمن نوادر المخطوطات"
},
{
"id": 961,
"name": "متون طالب العلم - المستوى الخامس - 1"
},
{
"id": 963,
"name": "إعانة الطالبين على حل ألفاظ فتح المعين"
},
{
"id": 964,
"name": "خطبة واصل بن عطاء - ضمن نوادر المخطوطات"
},
{
"id": 965,
"name": "أبيات الاستشهاد - ضمن نوادر المخطوطات",
"q": "Q133502012"
},
{
"id": 966,
"name": "رسالة فى أعجاز أبيات تغنى فى التمثيل عن صدورها - ضمن نوادر المخطوطات"
},
{
"id": 967,
"name": "العصا - ضمن نوادر المخطوطات"
},
{
"id": 969,
"name": "رسالة التلميذ - ضمن نوادر المخطوطات"
},
{
"id": 970,
"name": "رسالة ابن غرسية فى الشعوبية والردود عليها - ضمن نوادر المخطوطات"
},
{
"id": 972,
"name": "رسالة جامعة لفنون نافعة فى شرى الرقيق وتقليب العبيد - ضمن نوادر المخطوطات"
},
{
"id": 973,
"name": "هداية المريد فى تقليب العبيد - ضمن نوادر المخطوطات"
},
{
"id": 976,
"name": "اللمع في أسباب ورود الحديث"
},
{
"id": 977,
"name": "شرح «أدب القاضي للخصاف» للصدر الشهيد - ت الأفغاني",
"pre": "شرح «أدب القاضي للخصاف» للصدر الشهيد",
"suf": "ت الأفغاني"
},
{
"id": 981,
"name": "كتاب النيروز - ابن فارس - ضمن نوادر المخطوطات"
},
{
"id": 982,
"name": "الرسالة النيروزية - ابن سينا - ضمن نوادر المخطوطات"
},
{
"id": 983,
"name": "رسالة في النيروز مما فسره بطليموس الحكيم - ضمن نوادر المخطوطات"
},
{
"id": 984,
"name": "حكمة الإشراق في كتاب الآفاق - ضمن نوادر المخطوطات",
"pre": "حكمة الإشراق في كتاب الآفاق",
"suf": "ضمن نوادر المخطوطات"
},
{
"id": 985,
"name": "التصحيح والترجيح على مختصر القدوري"
},
{
"id": 986,
"name": "تذكير الأخيار بفضائل المكث في مكان أداء الصلاة وقراءة الأذكار"
},
{
"id": 987,
"name": "روضة العابدين"
},
{
"id": 988,
"name": "كنى الشعراء ومن غلبت كنيته على اسمه - ضمن نوادر المخطوطات",
"q": "Q6534991"
},
{
"id": 990,
"name": "ألقاب الشعراء ومن يعرف منهم بأمه - ضمن نوادر المخطوطات"
},
{
"id": 991,
"name": "العققة والبررة - ضمن نوادر المخطوطات"
},
{
"id": 992,
"name": "أسماء جبال تهامة وسكانها - ضمن نوادر المخطوطات"
},
{
"id": 993,
"name": "مرويات كتاب أخبار المدينة جمع وتوثيق ودراسة"
},
{
"id": 994,
"name": "رسالة في حكم ثمن الكلاب"
},
{
"id": 996,
"name": "الاستدراك على الاستيعاب"
},
{
"id": 1000,
"name": "وفيات الأعيان",
"q": "Q115633147"
},
{
"id": 1001,
"name": "ذخائر العقبى في مناقب ذوي القربى"
},
{
"id": 1002,
"name": "نفح الطيب من غصن الاندلس الرطيب ت إحسان عباس",
"q": "Q120886066"
},
{
"id": 1003,
"name": "فوات الوفيات",
"q": "Q120998496"
},
{
"id": 1004,
"name": "التعليقات السنية على العقيدة الواسطية - محمد خليفة التميمي"
},
{
"id": 1005,
"name": "تاريخ نيسابور «طبقة شيوخ الحاكم» - جمع البيروتي"
},
{
"id": 1006,
"name": "المسائل العقدية المتعلقة باسم الله عز وجل"
},
{
"id": 1007,
"name": "شرح التدمرية - محمد بن خليفة التميمي"
},
{
"id": 1008,
"name": "شرح القواعد المثلى في صفات الله وأسمائه الحسنى"
},
{
"id": 1009,
"name": "دولة الإسلام في الأندلس",
"q": "Q120647513"
},
{
"id": 1010,
"name": "النقد الأدبي ومدارسه الحديثة"
},
{
"id": 1011,
"name": "التخمير شرح المفصل في صنعة الإعراب"
},
{
"id": 1012,
"name": "ملامح يونانية في الأدب العربي"
},
{
"id": 1013,
"name": "شعر الخوارج"
},
{
"id": 1014,
"name": "تاريخ النقد الأدبي عند العرب"
},
{
"id": 1015,
"name": "تاريخ الأدب الأندلسي (عصر الطوائف والمرابطين)"
},
{
"id": 1016,
"name": "تاريخ الأدب الأندلسي (عصر سيادة قرطبة)"
},
{
"id": 1017,
"name": "بدر شاكر السياب دراسة في حياته وشعره"
},
{
"id": 1018,
"name": "اتجاهات الشعر العربي المعاصر",
"q": "Q112677433"
},
{
"id": 1019,
"name": "فن السيرة"
},
{
"id": 1020,
"name": "العرب في صقلية"
},
{
"id": 1021,
"name": "اختلاف الحديث - ت عبد العزيز",
"pre": "اختلاف الحديث",
"suf": "ت عبد العزيز"
},
{
"id": 1022,
"name": "تكملة السبكي على المجموع شرح المهذب - ط التضامن",
"pre": "تكملة السبكي على المجموع",
"suf": "ط التضامن"
},
{
"id": 1023,
"name": "شذرات من كتب مفقودة في التاريخ"
},
{
"id": 1024,
"name": "التشبيهات من أشعار أهل الأندلس"
},
{
"id": 1025,
"name": "فصل المقال في شرح كتاب الأمثال"
},
{
"id": 1026,
"name": "تكملة المطيعي على المجموع شرح المهذب - ط السلفية",
"pre": "تكملة المطيعي الأولى على المجموع",
"suf": "ط السلفية"
},
{
"id": 1027,
"name": "الكتيبة الكامنة في من لقيناه بالأندلس من شعراء المائة الثامنة"
},
{
"id": 1028,
"name": "التقريب لحد المنطق والمدخل إليه بالألفاظ العامية والأمثلة الفقهية"
},
{
"id": 1029,
"name": "أخبار وتراجم أندلسية"
},
{
"id": 1030,
"name": "السفر الخامس من كتاب الذيل"
},
{
"id": 1031,
"name": "طبقات الفقهاء",
"q": "Q116998195"
},
{
"id": 1032,
"name": "سرور النفس بمدارك الحواس الخمس"
},
{
"id": 1033,
"name": "أذكار الصلوات وما قبلها وما بعدها"
},
{
"id": 1034,
"name": "أمثال العرب ت إحسان عباس"
},
{
"id": 1035,
"name": "الذخيرة في محاسن أهل الجزيرة"
},
{
"id": 1036,
"name": "جوامع السيرة - ط المعارف",
"pre": "جوامع السيرة",
"q": "Q116761750"
},
{
"id": 1036,
"name": "جوامع السيرة ط المعارف",
"q": "Q116761750"
},
{
"id": 1037,
"name": "فهرس الفهارس",
"q": "Q124424728"
},
{
"id": 1038,
"name": "رسائل ابن حزم",
"q": "Q115776662"
},
{
"id": 1040,
"name": "الأعمال الصالحات التي يجري للإنسان أجرها وثوابها بعد الممات"
},
{
"id": 1041,
"name": "الإمامة العظمى - الريس"
},
{
"id": 1042,
"name": "بهجة النفوس والأسرار في تاريخ دار هجرة النبي المختار"
},
{
"id": 1043,
"name": "الروض المعطار في خبر الأقطار",
"q": "Q121076328"
},
{
"id": 1044,
"name": "تحفة الترك فيما يجب أن يعمل في الملك"
},
{
"id": 1045,
"name": "الطالع السعيد الجامع أسماء نجباء الصعيد"
},
{
"id": 1046,
"name": "الإنصاف والاعتدال عند الحافظ الذهبي"
},
{
"id": 1047,
"name": "النكت على شرح النووي على صحيح مسلم"
},
{
"id": 1048,
"name": "الحق الأبلج في دحض شبهات مفهوم البدعة للعرفج"
},
{
"id": 1049,
"name": "العقيدة التي حكاها أبو الفضل التميمي عن الإمام أحمد - المطبوع بآخر طبقات الحنابلة",
"pre": "العقيدة التي حكاها أبو الفضل التميمي عن الإمام أحمد",
"suf": "ت الفقي"
},
{
"id": 1050,
"name": "التحفة اللطيفة في تاريخ المدينة الشريفة - ط مركز دراسات المدينة",
"pre": "التحفة اللطيفة في تاريخ المدينة الشريفة",
"suf": "ط مركز دراسات المدينة"
},
{
"id": 1051,
"name": "تنبيه الحائر على عدم جواز المسح على الجورب المعاصر"
},
{
"id": 1053,
"name": "ذيل طبقات الحنابلة - لابن رجب - ت الفقي",
"pre": "«ذيل طبقات الحنابلة» لابن رجب",
"suf": "ت الفقي"
},
{
"id": 1054,
"name": "حصول المأمول بشرح مختصر الفصول في سيرة الرسول صلى الله عليه وسلم"
},
{
"id": 1055,
"name": "شرح غرامي صحيح - ابن عبد الهادي - ت الحفيان"
},
{
"id": 1056,
"name": "عقد الجمان في تاريخ أهل الزمان [648 - 712 هـ]"
},
{
"id": 1060,
"name": "سؤالات البرقاني للدارقطني ت مجدي السيد"
},
{
"id": 1062,
"name": "التيسير على النساء في الحج في ضوء السنة النبوية"
},
{
"id": 1063,
"name": "حقوق المرأة في ضوء السنة النبوية"
},
{
"id": 1064,
"name": "ضوابط التكفير في ضوء السنة النبوية"
},
{
"id": 1065,
"name": "معجم آيات القرآن"
},
{
"id": 1066,
"name": "الاختيار لتعليل المختار"
},
{
"id": 1067,
"name": "كيف تنصر نبيك صلى الله عليه وسلم"
},
{
"id": 1073,
"name": "موقف المسلم من الفتن في ضوء حديث عبد الله بن عمرو رضي الله عنهما"
},
{
"id": 1074,
"name": "محمد في التوراة والإنجيل والقرآن"
},
{
"id": 1075,
"name": "اتجاهات فكرية معاصرة - جامعة المدينة"
},
{
"id": 1076,
"name": "بيان خطا البخاري في تاريخه"
},
{
"id": 1077,
"name": "السنة لأبي بكر بن الخلال",
"q": "Q139550611"
},
{
"id": 1078,
"name": "الوفيات - للعراقي"
},
{
"id": 1079,
"name": "المنتخب من كتاب السياق لتاريخ نيسابور - ط إيران",
"pre": "المنتخب من كتاب السياق لتاريخ نيسابور",
"suf": "ط إيران"
},
{
"id": 1080,
"name": "المختصر من كتاب السياق لتاريخ نيسابور - لمجهول"
},
{
"id": 1081,
"name": "بلوغ الأماني بتراجم شيوخ أبي الشيخ الأصبهاني"
},
{
"id": 1082,
"name": "سبل السلام شرح بلوغ المرام - ت حلاق",
"pre": "سبل السلام شرح بلوغ المرام",
"suf": "ت حلاق"
},
{
"id": 1083,
"name": "تفسير الشعراوي"
},
{
"id": 1088,
"name": "المحرر في الحديث - ت القاسم",
"pre": "المحرر في الحديث",
"suf": "ت القاسم"
},
{
"id": 1089,
"name": "ألفية السيوطي نظم الدرر في علم الأثر - ت القاسم",
"pre": "ألفية السيوطي نظم الدرر في علم الأثر",
"suf": "ت القاسم"
},
{
"id": 1090,
"name": "متون طالب العلم - المستوى الخامس - 2"
},
{
"id": 1091,
"name": "متون طالب العلم - المستوى الخامس - 3"
},
{
"id": 1092,
"name": "متون طالب العلم - الإضافية - 1"
},
{
"id": 1093,
"name": "أحاديث منتخبة من أجزاء أبي منصور الخوجاني للسلفي"
},
{
"id": 1095,
"name": "متون طالب العلم - الإضافية - 2"
},
{
"id": 1096,
"name": "متون طالب العلم - الإضافية - 3",
"q": "Q125352723"
},
{
"id": 1097,
"name": "متون طالب العلم - الإضافية - 4"
},
{
"id": 1098,
"name": "متون طالب العلم - الإضافية - 5",
"q": "Q40378797"
},
{
"id": 1099,
"name": "متون طالب العلم - الإضافية - 6"
},
{
"id": 1101,
"name": "متون طالب العلم - الإضافية - 8"
},
{
"id": 1103,
"name": "متون طالب العلم - الإضافية - 10"
},
{
"id": 1107,
"name": "القول بما لم يسبق به قول"
},
{
"id": 1110,
"name": "أسد الغابة في معرفة الصحابة - ط العلمية",
"pre": "أسد الغابة في معرفة الصحابة",
"q": "Q116752568"
},
{
"id": 1110,
"name": "أسد الغابة في معرفة الصحابة ط العلمية",
"q": "Q116752568"
},
{
"id": 1111,
"name": "فقه الهندسة المالية الإسلامية"
},
{
"id": 1112,
"name": "المغالطات المنطقية",
"q": "Q115962634"
},
{
"id": 1113,
"name": "مختصر «المغالطات المنطقية»"
},
{
"id": 1116,
"name": "التنبيه والإيقاظ",
"q": "Q136030191"
},
{
"id": 1117,
"name": "السبر عند المحدثين"
},
{
"id": 1118,
"name": "التوسل المشروع والممنوع - الجهني"
},
{
"id": 1120,
"name": "معجزة القرآن",
"q": "Q4670102"
},
{
"id": 1121,
"name": "الهبات السنية العلية على أبيات الشاطبية الرائية"
},
{
"id": 1122,
"name": "مغالطات لغوية"
},
{
"id": 1123,
"name": "رسالة التوحيد المسمى بـ تقوية الإيمان"
},
{
"id": 1124,
"name": "نهاية التدريب نظم غاية التقريب - ت جراد"
},
{
"id": 1125,
"name": "شرح الوقاية - ت أبو الحاج"
},
{
"id": 1126,
"name": "مختصر طبقات الحنابلة - ت زمرلي",
"pre": "مختصر طبقات الحنابلة",
"suf": "ت زمرلي",
"q": "Q132420787"
},
{
"id": 1127,
"name": "رسم الوداد في إيضاح تحفة الأولاد في توحيد رب العباد"
},
{
"id": 1128,
"name": "ري الظمآن بمجالس شعب الإيمان"
},
{
"id": 1130,
"name": "طبقات القاري الأثمار الجنية في أسماء الحنفية - ط ديوان الوقف السني",
"pre": "الأثمار الجنية في طبقات الحنفية",
"suf": "ط ديوان الوقف السني",
"q": "Q116418351"
},
{
"id": 1130,
"name": "طبقات القاري الأثمار الجنية في أسماء الحنفية - ط ديوان الوقف السني",
"pre": "الأثمار الجنية في طبقات الحنفية",
"suf": "ط ديوان الوقف السني",
"q": "Q135209390"
},
{
"id": 1133,
"name": "المنتخب من ذيل المذيل"
},
{
"id": 1135,
"name": "شرح مشكلات القدوري"
},
{
"id": 1137,
"name": "مناقب الإمام الأعظم أبي حنيفة - ط بذيل الجواهر المضية",
"pre": "مناقب الإمام الأعظم",
"suf": "ط بذيل الجواهر المضية"
},
{
"id": 1139,
"name": "المتوارين"
},
{
"id": 1141,
"name": "فتح باب العناية بشرح النقاية"
},
{
"id": 1142,
"name": "فتح العزيز بشرح الوجيز = الشرح الكبير للرافعي"
},
{
"id": 1143,
"name": "الاستنباطات والفوائد السعدية من السور والآيات القرآنية"
},
{
"id": 1144,
"name": "لطائف المعارف فيما لمواسم العام من الوظائف - ت عوض الله",
"pre": "لطائف المعارف فيما لمواسم العام من الوظائف",
"suf": "ت عوض الله"
},
{
"id": 1146,
"name": "سلسلة الفوائد الحديثية والفقهية"
},
{
"id": 1147,
"name": "صحيح سنن النسائي"
},
{
"id": 1148,
"name": "ضعيف سنن النسائي"
},
{
"id": 1149,
"name": "بغية المقتصد شرح بداية المجتهد"
},
{
"id": 1150,
"name": "حصر حرف الظاء"
},
{
"id": 1151,
"name": "لطائف المعارف فيما لمواسم العام من الوظائف - ت عامر",
"pre": "لطائف المعارف فيما لمواسم العام من الوظائف",
"suf": "ت عامر"
},
{
"id": 1152,
"name": "لطائف المعارف فيما لمواسم العام من الوظائف - ت السواس",
"pre": "لطائف المعارف فيما لمواسم العام من الوظائف",
"suf": "ت السواس"
},
{
"id": 1153,
"name": "الشرح الكبير على المقنع - ط المنار",
"pre": "الشرح الكبير",
"suf": "ط المنار"
},
{
"id": 1154,
"name": "مختصر طبقات الحنابلة - ط الترقي",
"pre": "مختصر طبقات الحنابلة",
"suf": "ط الترقي",
"q": "Q132420816"
},
{
"id": 1155,
"name": "الشامل في زكاة الأسهم واستثمار أموال الزكاة"
},
{
"id": 1156,
"name": "الفتاوى اليومية من المسائل الفقهية"
},
{
"id": 1157,
"name": "الجامع الكبير لمحمد بن الحسن"
},
{
"id": 1158,
"name": "شرح سنن ابن ماجه لمغلطاي - ت أبو العينين",
"pre": "شرح سنن ابن ماجه لمغلطاي",
"suf": "ت أبو العينين"
},
{
"id": 1159,
"name": "المنح العلية في بيان السنن اليومية"
},
{
"id": 1160,
"name": "بغية الطلب فى تاريخ حلب - ط الفرقان",
"pre": "بغية الطلب فى تاريخ حلب",
"suf": "ت الرواضية"
},
{
"id": 1161,
"name": "تاريخ البرزالي المقتفي لتاريخ أبي شامة - ت العثيمين",
"pre": "تاريخ البرزالي المقتفي لتاريخ أبي شامة",
"suf": "ت العثيمين"
},
{
"id": 1163,
"name": "الجواهر المضية فى طبقات الحنفية - ت الحلو",
"pre": "الجواهر المضية في طبقات الحنفية",
"suf": "ت الحلو",
"q": "Q126183965"
},
{
"id": 1164,
"name": "استدراك ما فات من الإخوة والأخوات"
},
{
"id": 1165,
"name": "التكملة للفارسي"
},
{
"id": 1166,
"name": "تسمية الإخوة الذين روي عنهم الحديث"
},
{
"id": 1167,
"name": "تسمية من روي عنه من أولاد العشرة - ت الجوابرة",
"pre": "تسمية من روي عنه من أولاد العشرة",
"suf": "ت الجوابرة"
},
{
"id": 1168,
"name": "الأحكام لعبد الملك بن حبيب"
},
{
"id": 1172,
"name": "المغانم المطابة في معالم طابة"
},
{
"id": 1174,
"name": "جزء في بيع أمهات الأولاد"
},
{
"id": 1175,
"name": "حث الأتباع على تجريد الاتباع"
},
{
"id": 1176,
"name": "المدلسين"
},
{
"id": 1178,
"name": "فتح الرحيم في الصلاة والسلام على النبي الكريم صلى الله عليه وسلم"
},
{
"id": 1184,
"name": "الجوهر النقي"
},
{
"id": 1186,
"name": "طبقات المدلسين = تعريف أهل التقديس بمراتب الموصوفين بالتدليس"
},
{
"id": 1187,
"name": "التبيين لأسماء المدلسين"
},
{
"id": 1188,
"name": "القرآن وإعجازه العلمي"
},
{
"id": 1193,
"name": "نهج الوصول الي حقيقة محبة الرسول صلى الله عليه وسلم"
},
{
"id": 1194,
"name": "سنن ابن ماجه - ت هادي",
"pre": "سنن ابن ماجه",
"suf": "ت هادي"
},
{
"id": 1198,
"name": "سنن ابن ماجه - ت عبد الباقي",
"pre": "سنن ابن ماجه",
"suf": "ت عبد الباقي",
"q": "Q116878288"
},
{
"id": 1200,
"name": "المستدرك على الصحيحين - ط المنهاج القويم",
"pre": "المستدرك على الصحيحين",
"suf": "ط المنهاج القويم"
},
{
"id": 1201,
"name": "الدعاء ومنزلته من العقيدة الإسلامية"
},
{
"id": 1202,
"name": "العقد المفرد في الفقه على مذهب الإمام أحمد"
},
{
"id": 1205,
"name": "القواعد الكلية في باب القدر"
},
{
"id": 1206,
"name": "المختصر الصغير لابن عبد الحكم «خلافيات في الفقه»"
},
{
"id": 1207,
"name": "تحصيل عين الذهب من معدن جوهر الأدب في علم مجازات العرب"
},
{
"id": 1208,
"name": "تحفة الغريب بتراجم رجال معجمي الحافظ الطبراني الأوسط والصغير ممن ليس في التهذيب"
},
{
"id": 1209,
"name": "تيسير الودود بتراجم رجال منتقى ابن الجارود"
},
{
"id": 1210,
"name": "خلاصة التأصيل لعلم الجرح والتعديل - ط المعراج",
"pre": "خلاصة التأصيل لعلم الجرح والتعديل",
"suf": "ط المعراج"
},
{
"id": 1211,
"name": "سراج المريدين فى سبيل الدين"
},
{
"id": 1212,
"name": "معجم شيوخ ابن الأعرابي - ط العلمية",
"pre": "معجم شيوخ ابن الأعرابي",
"suf": "ط العلمية"
},
{
"id": 1214,
"name": "معجم لغة الفقهاء"
},
{
"id": 1216,
"name": "ضعيف سنن الترمذي"
},
{
"id": 1217,
"name": "تعطير الأنام في تعبير المنام"
},
{
"id": 1218,
"name": "نيل الأوطار شرح منتقى الأخبار - ت حلاق",
"pre": "نيل الأوطار",
"q": "Q124326482"
},
{
"id": 1218,
"name": "نيل الأوطار شرح منتقى الأخبار - ت حلاق",
"pre": "نيل الأوطار",
"q": "Q169234"
},
{
"id": 1222,
"name": "المستشرقون والسنة"
},
{
"id": 1224,
"name": "هدي الساري مقدمة فتح الباري - ط السلفية",
"pre": "هدي الساري",
"suf": "ط السلفية"
},
{
"id": 1230,
"name": "المسائل الفقهية في ضوء ما اتفق عليه في الطهارات"
},
{
"id": 1231,
"name": "المدخل إلي جامع الترمذي"
},
{
"id": 1232,
"name": "التحفة المكية في توضيح أهم القواعد الفقهية"
},
{
"id": 1233,
"name": "اللآليء المكية من كلام خير البرية"
},
{
"id": 1234,
"name": "درر من تفسير القرطبي"
},
{
"id": 1235,
"name": "شرح صفة الصلاة لابن القيم"
},
{
"id": 1236,
"name": "ربط الديون والالتزامات الآجلة بالذهب أو الفضة أو بسلة من العملات أو بمستوى الأسعار وحكمه شرعا"
},
{
"id": 1237,
"name": "السر المصون على كشف الظنون - قطعة منه"
},
{
"id": 1238,
"name": "شركات العقد في الشرع الإسلامي"
},
{
"id": 1239,
"name": "المدخل في تاريخ السنة",
"q": "Q129951710"
},
{
"id": 1240,
"name": "ذيل كشف الظنون - الطهراني"
},
{
"id": 1241,
"name": "هداية الراغب لشرح عمدة الطالب - ط ركائز",
"pre": "هداية الراغب",
"q": "Q134522469"
},
{
"id": 1242,
"name": "معجم المطبوعات العربية والمعربة",
"q": "Q108889739"
},
{
"id": 1242,
"name": "معجم المطبوعات العربية والمعربة",
"q": "Q124772915"
},
{
"id": 1246,
"name": "الصحيح المنتخل من كلام الأولين في بدع العمل",
"q": "Q124748035"
},
{
"id": 1249,
"name": "ما رواه الأكابر عن مالك لمحمد بن مخلد"
},
{
"id": 1250,
"name": "تهذيب مستمر الأوهام على ذوي المعرفة وأولي الأفهام - ت الشوامي",
"pre": "تهذيب مستمر الأوهام"
},
{
"id": 1251,
"name": "بغية المستفيد في شرح كتاب التوحيد",
"q": "Q136206418"
},
{
"id": 1252,
"name": "تقريب الوصول إلى ثلاثة الأصول"
},
{
"id": 1253,
"name": "محض الإصابة في تحرير عقيدة أهل السنة ومخالفيهم في الصحابة"
},
{
"id": 1254,
"name": "سنن سعيد بن منصور - بداية التفسير - ت الحميد"
},
{
"id": 1257,
"name": "المعتبر في عقيدة أهل السنة ومخالفيهم في القدر"
},
{
"id": 1258,
"name": "الرد السديد على مطاعن حسن المالكي على أئمة الدعوة ومقررات التوحيد"
},
{
"id": 1259,
"name": "تجريد الاتباع في بيان أسباب تفاضل الأعمال"
},
{
"id": 1260,
"name": "التحرير في شرح صحيح مسلم - الأصبهاني"
},
{
"id": 1261,
"name": "شرح صحيح البخاري - الأصبهاني"
},
{
"id": 1262,
"name": "المبدع شرح المقنع - ط ركائز",
"pre": "المبدع شرح المقنع"
},
{
"id": 1263,
"name": "المقاصد الحسنة في بيان كثير من الأحاديث المشتهرة على الألسنة - ت الغماري",
"pre": "المقاصد الحسنة",
"suf": "ت الغماري"
},
{
"id": 1266,
"name": "المقاصد الحسنة في بيان كثير من الأحاديث المشتهرة على الألسنة - ط الميمنة",
"pre": "المقاصد الحسنة",
"suf": "ط الميمنة"
},
{
"id": 1267,
"name": "كتاب الحج من مدونة أشهب"
},
{
"id": 1269,
"name": "الإيمان - أبو عبيد - ط المكتب الإسلامي",
"pre": "الإيمان لأبي عبيد"
},
{
"id": 1270,
"name": "هداية الراغب شرح عمدة الطالب - مع حاشية ابن عوض - ت التركي",
"pre": "هداية الراغب"
},
{
"id": 1271,
"name": "الكشف عن وجوه القراءات السبع وعللها وحججها",
"q": "Q124772554"
},
{
"id": 1272,
"name": "التجريد لبغية المريد في القراءات السبع - ت ضاري",
"pre": "التجريد لبغية المريد في القراءات السبع",
"q": "Q25451908"
},
{
"id": 1273,
"name": "التجريد لبغية المريد في القراءات السبع - ت بدر",
"pre": "التجريد لبغية المريد في القراءات السبع"
},
{
"id": 1274,
"name": "إحياء الآثار دراسة عقدية"
},
{
"id": 1275,
"name": "الإيمان - أبو عبيد - ط مسلم",
"pre": "الإيمان لأبي عبيد"
},
{
"id": 1278,
"name": "تهذيب التهذيب - ط دبي",
"pre": "تهذيب التهذيب"
},
{
"id": 1283,
"name": "إرشاد المبتدي وتذكرة المنتهي في القراءات العشر - ط العلمية",
"pre": "إرشاد المبتدي وتذكرة المنتهي في القراءات العشر"
},
{
"id": 1284,
"name": "صحيح البخاري - ط التأصيل",
"pre": "صحيح البخاري"
},
{
"id": 1286,
"name": "الميسر في القراءات الأربع عشرة"
},
{
"id": 1287,
"name": "شرح المقنع للبهاء المقدسي"
},
{
"id": 1289,
"name": "الإيضاح لما ورد في الكتاب والسنة بشأن الإصلاح",
"q": "Q125099162"
},
{
"id": 1290,
"name": "تهذيب التهذيب - ط المعرفة",
"pre": "تهذيب التهذيب"
},
{
"id": 1291,
"name": "نظم نور الإيضاح"
},
{
"id": 1293,
"name": "تهذيب التهذيب - ط الرسالة",
"pre": "تهذيب التهذيب",
"q": "Q108301572"
},
{
"id": 1295,
"name": "منهج الكرماني فى كتابه الكواكب الدراري في شرح صحيح البخاري"
},
{
"id": 1297,
"name": "الاستشفاء بالقرآن الكريم"
},
{
"id": 1301,
"name": "التعليقات على المسائل العقدية في كتاب التسهيل لعلوم التنزيل لابن جزي",
"q": "Q136709814"
},
{
"id": 1302,
"name": "التوضيح للمسائل العقدية في مقدمة الرسالة القيروانية",
"q": "Q136709850"
},
{
"id": 1303,
"name": "الأريج في علم أصول التخريج",
"q": "Q136709871"
},
{
"id": 1304,
"name": "اعتلال القلوب - الخرائطي"
},
{
"id": 1308,
"name": "مرويات غزوة حنين وحصار الطائف",
"q": "Q121258765"
},
{
"id": 1309,
"name": "غريب الحديث - أبو عبيد - ط الهندية"
},
{
"id": 1311,
"name": "أخلاق العلماء للآجري",
"q": "Q127327958"
},
{
"id": 1318,
"name": "صفات رب العالمين - ت تمالت",
"pre": "صفات رب العالمين"
},
{
"id": 1319,
"name": "تيسير مسائل الفقه شرح الروض المربع"
},
{
"id": 1326,
"name": "شرح المختصر الكبير للأبهري"
},
{
"id": 1327,
"name": "تعدد الزوجات بين حقائق التنزيل وافتراءات التضليل"
},
{
"id": 1329,
"name": "أوهام المحدثين الثقات"
},
{
"id": 1330,
"name": "حدائق الأولياء"
},
{
"id": 1331,
"name": "اختيارات الحافظ الذهبي الفقهية"
},
{
"id": 1332,
"name": "الآثار لمحمد بن الحسن"
},
{
"id": 1333,
"name": "إسبال الكلام على حديث ابن عباس في القيام"
},
{
"id": 1336,
"name": "أمالي الزجاجي"
},
{
"id": 1337,
"name": "حاشية السندي على سنن الترمذي"
},
{
"id": 1339,
"name": "سنن النسائي - ط الرسالة",
"pre": "سنن النسائي"
},
{
"id": 1340,
"name": "درة التنزيل وغرة التأويل",
"q": "Q7312630"
},
{
"id": 1341,
"name": "صحيح الأدب المفرد",
"q": "Q115789677"
},
{
"id": 1342,
"name": "أحاديث منتخبة من مغازي موسى بن عقبة"
},
{
"id": 1344,
"name": "صفة جزيرة الأندلس"
},
{
"id": 1345,
"name": "صفة صاحب الذوق السليم"
},
{
"id": 1346,
"name": "ضعيف الأدب المفرد",
"q": "Q115789740"
},
{
"id": 1347,
"name": "طبقات الأولياء"
},
{
"id": 1348,
"name": "شرح كشف الشبهات - البراك"
},
{
"id": 1349,
"name": "غرر الخصائص الواضحة",
"q": "Q125473102"
},
{
"id": 1350,
"name": "العلل لابن أبي حاتم ت الحميد",
"pre": "«العلل» لابن أبي حاتم",
"suf": "ت الحميد"
},
{
"id": 1351,
"name": "شرح نواقض الإسلام - البراك"
},
{
"id": 1352,
"name": "مجمع البحرين في زوائد المعجمين الأوسط والصغير للطبراني"
},
{
"id": 1353,
"name": "المعجم الكبير للطبراني جـ 13، 14"
},
{
"id": 1354,
"name": "دراسات أصولية تطبيقية على آيات الأحكام",
"q": "Q107100917"
},
{
"id": 1356,
"name": "المعتقد وأثره على مسائل أصول الفقه",
"q": "Q107344361"
},
{
"id": 1357,
"name": "حدود حرية الفكر في الشريعة الإسلامية"
},
{
"id": 1358,
"name": "الاتجار في العملات عبر وسائل الاتصال الحديثة"
},
{
"id": 1359,
"name": "فتح العلام في بيان مآخذ الأحكام"
},
{
"id": 1361,
"name": "صفة الجنة - الضياء المقدسي - المسندة - جـ 3",
"pre": "صفة الجنة - الضياء المقدسي - النسخة المسندة"
},
{
"id": 1362,
"name": "بر الوالدين - البخاري - ت مكي",
"pre": "بر الوالدين للبخاري"
},
{
"id": 1363,
"name": "سنن الترمذي - ط الرسالة",
"pre": "سنن الترمذي"
},
{
"id": 1364,
"name": "الإجابة لإيراد ما استدركته عائشة على الصحابة - ط الرسالة",
"pre": "الإجابة لإيراد ما استدركته عائشة على الصحابة"
},
{
"id": 1366,
"name": "الروايتين والوجهين - المسائل العقدية منه"
},
{
"id": 1368,
"name": "بر الوالدين - البخاري - ت عبد العاطي",
"pre": "بر الوالدين للبخاري"
},
{
"id": 1378,
"name": "القراءة خلف الإمام للبيهقي"
},
{
"id": 1379,
"name": "أنساب الأشراف - ت حميد الله",
"pre": "أنساب الأشراف"
},
{
"id": 1380,
"name": "الجامع - ابن وهب - ت مصطفى أبو الخير"
},
{
"id": 1382,
"name": "منهج علماء الحديث والسنة في أصول الدين"
},
{
"id": 1383,
"name": "مسند السراج"
},
{
"id": 1385,
"name": "الإكليل في استنباط التنزيل",
"q": "Q116944859"
},
{
"id": 1386,
"name": "تاريخ العلماء النحويين للتنوخي"
},
{
"id": 1388,
"name": "البرهان فى تناسب سور القرآن",
"q": "Q125908468"
},
{
"id": 1389,
"name": "التفسير البياني للقرآن الكريم"
},
{
"id": 1390,
"name": "الذريعة الى مكارم الشريعة"
},
{
"id": 1391,
"name": "القول البديع في الصلاة على الحبيب الشفيع"
},
{
"id": 1392,
"name": "المال في القرآن الكريم"
},
{
"id": 1393,
"name": "المستشرقون والمبشرون في العالم العربي والإسلامي"
},
{
"id": 1394,
"name": "تفسير النسفي = مدارك التنزيل وحقائق التأويل"
},
{
"id": 1395,
"name": "أصول الإيمان لمحمد بن عبد الوهاب - ت الجوابرة"
},
{
"id": 1396,
"name": "تحفة الأقران في ما قرئ بالتثليث من حروف القرآن"
},
{
"id": 1397,
"name": "الانتصار للقرآن للباقلاني"
},
{
"id": 1399,
"name": "درر الحكم لأبي منصور الثعالبي"
},
{
"id": 1402,
"name": "فنون الأفنان في عيون علوم القرآن"
},
{
"id": 1403,
"name": "كشف المعاني في المتشابه من المثاني"
},
{
"id": 1404,
"name": "مصاعد النظر للإشراف على مقاصد السور",
"q": "Q126115965"
},
{
"id": 1405,
"name": "أخذ المال على أعمال القرب"
},
{
"id": 1406,
"name": "المغرب في ترتيب المعرب - ت فاخوري ومختار",
"pre": "المغرب في ترتيب المعرب"
},
{
"id": 1407,
"name": "التفسير الميسر"
},
{
"id": 1408,
"name": "أخطاء وأوهام في أضخم مشروع تعسفي لهدم السنة"
},
{
"id": 1409,
"name": "الشبهات الثلاثون المثارة لإنكار السنة النبوية عرض وتفنيد ونقض"
},
{
"id": 1410,
"name": "المجاز عند الإمام ابن تيمية وتلاميذه بين الإنكار والإقرار"
},
{
"id": 1411,
"name": "سماحة الإسلام في الدعوة إلى الله"
},
{
"id": 1412,
"name": "عقوبة الارتداد عن الدين بين الأدلة الشرعية وشبهات المنكرين",
"q": "Q65280635"
},
{
"id": 1415,
"name": "عصمة القرآن الكريم وجهالات المبشرين",
"q": "Q57751059"
},
{
"id": 1416,
"name": "تحرير علوم الحديث",
"q": "Q135227427"
},
{
"id": 1417,
"name": "معترك الأقران في إعجاز القرآن"
},
{
"id": 1418,
"name": "نداء إلى الفاتيكان راجعوا أسفاركم المقدسة"
},
{
"id": 1419,
"name": "ملاك التأويل القاطع بذوي الإلحاد والتعطيل"
},
{
"id": 1421,
"name": "المشوق إلى القرآن",
"q": "Q20398769"
},
{
"id": 1424,
"name": "المستدرك على الصحيحين - ط الرسالة",
"pre": "المستدرك على الصحيحين"
},
{
"id": 1425,
"name": "يسألونك عن المعاملات المالية المعاصرة"
},
{
"id": 1426,
"name": "تفسير ابن أبي العز جمعا ودراسة"
},
{
"id": 1427,
"name": "ذم الكلام وأهله"
},
{
"id": 1428,
"name": "المعجم الكبير للطبراني من جـ 21"
},
{
"id": 1429,
"name": "تفسير أبي السعود = إرشاد العقل السليم إلى مزايا الكتاب الكريم",
"q": "Q115727209"
},
{
"id": 1430,
"name": "الرسالة لابن أبي زيد القيرواني - نسخة التتائي",
"pre": "الرسالة لابن أبي زيد القيرواني"
},
{
"id": 1431,
"name": "القرآن ونقض مطاعن الرهبان"
},
{
"id": 1432,
"name": "تنزيه الشريعة المرفوعة عن الأخبار الشنيعة الموضوعة"
},
{
"id": 1434,
"name": "درر رمضانية من كلام ابن القيم الجوزية"
},
{
"id": 1435,
"name": "سنن الترمذي - ت شاكر",
"pre": "سنن الترمذي",
"suf": "ت شاكر",
"q": "Q116878327"
},
{
"id": 1436,
"name": "يسألونك عن رمضان"
},
{
"id": 1437,
"name": "الطلاق تحسبونه هينا وهو عند الله عظيم"
},
{
"id": 1439,
"name": "الدليل إلى القرآن"
},
{
"id": 1440,
"name": "التاريخ الكبير لابن أبي خيثمة - السفر الثاني - ط الفاروق",
"q": "Q121085543"
},
{
"id": 1440,
"name": "التاريخ الكبير لابن أبي خيثمة - السفر الثاني - ط الفاروق",
"q": "Q55889810"
},
{
"id": 1441,
"name": "أخبار الدجال لعبد الغني المقدسي",
"q": "Q124615796"
},
{
"id": 1442,
"name": "معالم السنن (شرح سنن أبي داود)",
"pre": "معالم السنن"
},
{
"id": 1446,
"name": "صحيح ابن خزيمة",
"q": "Q116878268"
},
{
"id": 1448,
"name": "كتاب العلل الواقع بآخر جامع الترمذي - ط الرسالة",
"pre": "كتاب العلل الواقع بآخر جامع الترمذي"
},
{
"id": 1449,
"name": "الإنجاد في أبواب الجهاد"
},
{
"id": 1452,
"name": "الدعاوى المعاصرة المناوئة لدعوة الإمام محمد بن عبد الوهاب"
},
{
"id": 1453,
"name": "أمالي ابن بشران - الجزء الأول"
},
{
"id": 1454,
"name": "الرحلة في طلب الحديث - ت أبي أويس",
"pre": "الرحلة في طلب الحديث"
},
{
"id": 1455,
"name": "الفهرست - ت أيمن السيد",
"pre": "الفهرست"
},
{
"id": 1456,
"name": "مسند أبي داود الطيالسي",
"q": "Q116879270"
},
{
"id": 1457,
"name": "رحلة الفضلاء كما وردت بها الأنباء"
},
{
"id": 1458,
"name": "المخزون في علم الحديث"
},
{
"id": 1459,
"name": "جزء لوين"
},
{
"id": 1460,
"name": "الشعلة في شيوخ الخطيب في الرحلة"
},
{
"id": 1461,
"name": "تيسير اللطيف المنان في خلاصة تفسير القرآن - ت المزيد",
"pre": "تيسير اللطيف المنان في خلاصة تفسير القرآن"
},
{
"id": 1462,
"name": "فضل الصلاة على النبي لإسماعيل القاضي"
},
{
"id": 1463,
"name": "الرد على الشاذلي في حزبيه وما صنفه في آداب الطريق",
"q": "Q115910668"
},
{
"id": 1464,
"name": "أحكام القرآن لابن العربي ط العلمية",
"q": "Q127327500"
},
{
"id": 1465,
"name": "الاستدلال في التفسير دراسة في منهج الطبري"
},
{
"id": 1466,
"name": "السراج المنير في الإعانة على معرفة بعض معاني كلام ربنا الحكيم الخبير",
"q": "Q115641715"
},
{
"id": 1467,
"name": "الكبائر لمحمد بن عبد الوهاب ت الجوابرة"
},
{
"id": 1468,
"name": "الخطط التوفيقية الجديدة"
},
{
"id": 1469,
"name": "الأصل الجامع لإيضاح الدرر المنظومة في سلك جمع الجوامع"
},
{
"id": 1470,
"name": "النبأ العظيم - ت عمرو الشرقاوي",
"pre": "النبأ العظيم"
},
{
"id": 1471,
"name": "الجامع العام في فقه الصيام"
},
{
"id": 1472,
"name": "الجامع لأحكام الطهارة"
},
{
"id": 1473,
"name": "استدراك الزيادات على كتاب الرحلة"
},
{
"id": 1474,
"name": "جمع السبائك لأحكام المناسك"
},
{
"id": 1477,
"name": "الجامع في أمثال القرآن"
},
{
"id": 1480,
"name": "إتقان ما يحسن من الأخبار الدائرة على الألسن"
},
{
"id": 1481,
"name": "الفهرست - ت رضا تجدد",
"pre": "الفهرست"
},
{
"id": 1483,
"name": "الرواة عن مالك للرشيد العطار"
},
{
"id": 1484,
"name": "دليل الحيران على مورد الظمآن"
},
{
"id": 1485,
"name": "آداب الشافعي ومناقبه - ط العلمية",
"pre": "«آداب الشافعي ومناقبه» لابن أبي حاتم",
"q": "Q127328007"
},
{
"id": 1486,
"name": "جمهرة النسب - ابن الكلبي - ت علي عمر",
"pre": "جمهرة النسب - ابن الكلبي"
},
{
"id": 1487,
"name": "جمهرة أشعار العرب"
},
{
"id": 1488,
"name": "ديوان الإسلام",
"q": "Q135686792"
},
{
"id": 1489,
"name": "شرح العقيدة التدمرية - البراك"
},
{
"id": 1490,
"name": "استدراكات السلف في التفسير في القرون الثلاثة الأولى"
},
{
"id": 1491,
"name": "جامع مرويات استدراكات السلف في التفسير"
},
{
"id": 1492,
"name": "الجامع لفوائد بلوغ المرام"
},
{
"id": 1493,
"name": "الفهرست - ط المكتبة التجارية",
"pre": "الفهرست"
},
{
"id": 1494,
"name": "الإنباه فى ذكر القبائل الرواة - ت التركي",
"pre": "الإنباه فى ذكر القبائل الرواة"
},
{
"id": 1496,
"name": "تكملة فتح القدير نتائج الأفكار في كشف الرموز والأسرار"
},
{
"id": 1497,
"name": "إدارة الوقت من المنظور الإسلامي والإداري"
},
{
"id": 1498,
"name": "ري الظمآن بتراجم شيوخ ابن حبان"
},
{
"id": 1499,
"name": "الاستيعاب في معرفة الأصحاب - ت التركي",
"pre": "الاستيعاب في معرفة الأصحاب"
},
{
"id": 1500,
"name": "السر المكتوم في الفرق بين المالين المحمود والمذموم"
},
{
"id": 1501,
"name": "الترغيب والترهيب - إسماعيل الأصفهاني - ط اللؤلؤة",
"pre": "الترغيب والترهيب - إسماعيل الأصفهاني"
},
{
"id": 1503,
"name": "تفسير ابن كثير - ط ابن الجوزي"
},
{
"id": 1507,
"name": "مع الاثنى عشرية في الأصول والفروع"
},
{
"id": 1509,
"name": "تفسير ابن كثير - ط أولاد الشيخ"
},
{
"id": 1510,
"name": "محمد بن عبد الوهاب مصلح مظلوم ومفترى عليه",
"q": "Q123587261"
},
{
"id": 1512,
"name": "أمراض القلوب وشفاؤها",
"q": "Q115798096"
},
{
"id": 1514,
"name": "الروض الأنف - ت تدمري",
"q": "Q121008866"
},
{
"id": 1514,
"name": "الروض الأنف ت تدمري",
"q": "Q121008866"
},
{
"id": 1514,
"name": "الروض الأنف في شرح سيرة ابن هشام - ت السلامي (581)",
"q": "Q121008866"
},
{
"id": 1515,
"name": "نهاية الإيجاز في سيرة ساكن الحجاز"
},
{
"id": 1518,
"name": "أحاديث الموطأ وذكر اتفاق الرواة عن مالك واختلافهم"
},
{
"id": 1520,
"name": "طبقات الحنابلة - لابن أبي يعلى - ت العثيمين",
"pre": "«طبقات الحنابلة» لابن أبي يعلى"
},
{
"id": 1522,
"name": "ريحانة الألبا وزهرة الحياة الدنيا",
"q": "Q125505652"
},
{
"id": 1523,
"name": "أدب الاختلاف في الإسلام"
},
{
"id": 1524,
"name": "إمتاع الأسماع",
"q": "Q124614658"
},
{
"id": 1524,
"name": "إمتاع الأسماع بما للنبي من الأحوال والأموال والحفدة والمتاع",
"q": "Q124614658"
},
{
"id": 1526,
"name": "الجامع في العلل والفوائد"
},
{
"id": 1529,
"name": "الانتخاب في شرح أدب الكتاب = الكاتب",
"pre": "الانتخاب في شرح أدب الكُتّاب"
},
{
"id": 1531,
"name": "قفو الأثر في صفوة علوم الأثر"
},
{
"id": 1532,
"name": "بحوث في قضايا فقهية معاصرة"
},
{
"id": 1535,
"name": "حاشية الشهاب على تفسير البيضاوي = عناية القاضي وكفاية الراضي"
},
{
"id": 1536,
"name": "الغريب المصنف - قطعة ضمن مجلة الجامعة الإسلامية"
},
{
"id": 1537,
"name": "تفسير العثيمين: النمل"
},
{
"id": 1544,
"name": "البهجة في شرح التحفة"
},
{
"id": 1546,
"name": "تفسير النصوص في الفقه الإسلامي"
},
{
"id": 1547,
"name": "شرح معاني الآثار - ت البهرائجى",
"pre": "شرح معاني الآثار",
"q": "Q28923626"
},
{
"id": 1553,
"name": "بلوغ القرى في ذيل إتحاف الورى بأخبار أم القرى",
"q": "Q134055257"
},
{
"id": 1559,
"name": "أسد الغابة في معرفة الصحابة - المطبعة الوهبية",
"pre": "أسد الغابة في معرفة الصحابة",
"q": "Q136129925"
},
{
"id": 1560,
"name": "التبيان في قواعد النحو وتقويم اللسان"
},
{
"id": 1561,
"name": "وجاء النبي المنتظر"
},
{
"id": 1562,
"name": "أدب الطلب ومنتهى الأرب - ت السريحي",
"pre": "أدب الطلب ومنتهى الأرب"
},
{
"id": 1564,
"name": "أسد الغابة في معرفة الصحابة - ط الشعب",
"pre": "أسد الغابة في معرفة الصحابة"
},
{
"id": 1565,
"name": "نزهة النظر في توضيح نخبة الفكر - ت عتر",
"pre": "نزهة النظر في توضيح نخبة الفكر",
"suf": "ت عتر"
},
{
"id": 1566,
"name": "عيون الأدلة في مسائل الخلاف بين فقهاء الأمصار - ط أسفار",
"pre": "عيون الأدلة في مسائل الخلاف بين فقهاء الأمصار"
},
{
"id": 1567,
"name": "أدب الطلب ومنتهى الأرب - ت عبد الواحد",
"pre": "أدب الطلب ومنتهى الأرب"
},
{
"id": 1568,
"name": "الأوسط من السنن والإجماع والاختلاف - ط الفلاح",
"pre": "الأوسط لابن المنذر"
},
{
"id": 1571,
"name": "الكشكول"
},
{
"id": 1572,
"name": "شرح رسالة لطيفة جامعة في أصول الفقه المهمة"
},
{
"id": 1573,
"name": "العقد الثمين في شرح منظومة الشيخ ابن عثيمين"
},
{
"id": 1575,
"name": "المختصر في الجنايات والحدود والقضاء"
},
{
"id": 1576,
"name": "المختصر في الأنكحة والأطعمة والأيمان والنذور"
},
{
"id": 1578,
"name": "تذكرة الحفاظ لابن القيسراني =أطراف أحاديث كتاب المجروحين لابن حبان"
},
{
"id": 1579,
"name": "أطايب الزهر شرح نواقض الإسلام العشر",
"q": "Q136438382"
},
{
"id": 1581,
"name": "التلخيص الحبير - ط العلمية",
"pre": "التلخيص الحبير",
"suf": "ط العلمية",
"q": "Q121258832"
},
{
"id": 1582,
"name": "سبعون حديثا في الجهاد"
},
{
"id": 1583,
"name": "تذكرة الحفاظ = طبقات الحفاظ للذهبي",
"q": "Q113637996"
},
{
"id": 1584,
"name": "نزهة الخواطر وبهجة المسامع والنواظر = الإعلام بمن في تاريخ الهند من الأعلام",
"q": "Q115914408"
},
{
"id": 1585,
"name": "سراج الملوك",
"q": "Q20386210"
},
{
"id": 1586,
"name": "اللآلي في شرح أمالي القالي - وعليه سمط اللآلي"
},
{
"id": 1587,
"name": "شرح أدب الكاتب = الكتاب",
"pre": "شرح أدب الكاتب"
},
{
"id": 1589,
"name": "رسالة الغفران"
},
{
"id": 1590,
"name": "طبقات الأسماء المفردة من الصحابة والتابعين وأصحاب الحديث"
},
{
"id": 1591,
"name": "تصحيفات المحدثين - باشنفر"
},
{
"id": 1592,
"name": "طبقات النسابين",
"q": "Q124363996"
},
{
"id": 1593,
"name": "عقلاء المجانين لابن حبيب النيسابوري"
},
{
"id": 1594,
"name": "عنوان الدليل من مرسوم خط التنزيل"
},
{
"id": 1595,
"name": "غرائب التنبيهات على عجائب التشبيهات"
},
{
"id": 1596,
"name": "فتح الغفور في وضع الأيدي على الصدور"
},
{
"id": 1597,
"name": "فحولة الشعراء"
},
{
"id": 1598,
"name": "فرح الأسماع برخص السماع"
},
{
"id": 1599,
"name": "فضائل بيت المقدس - ابن الجوزي - ط الآفاق",
"pre": "فضائل بيت المقدس - ابن الجوزي",
"suf": "ط الآفاق"
},
{
"id": 1600,
"name": "فضائل القرآن وتلاوته للرازي"
},
{
"id": 1601,
"name": "أدب الكتاب للصولي"
},
{
"id": 1602,
"name": "إرشاد أولى البصائر والألباب لنيل الفقة بأقرب الطرق وأيسر الأسباب"
},
{
"id": 1603,
"name": "المؤتنف تكملة المؤتلف والمختلف"
},
{
"id": 1605,
"name": "العلم الظاهر في نفع النسب الطاهر - ط إسطنبول"
},
{
"id": 1606,
"name": "شرح المنظومة المسماة بعقود رسم المفتي - ط إسطنبول"
},
{
"id": 1607,
"name": "الفوائد المخصصة بأحكام كي الحمصة - ط إسطنبول"
},
{
"id": 1608,
"name": "منهل الواردين من بحار الفيض على ذخر المتأهلين في مسائل الحيض - ط إسطنبول"
},
{
"id": 1609,
"name": "رفع التردد في عقد الأصابع عند التشهد مع ذيلها"
},
{
"id": 1610,
"name": "مجموعة رسائل ابن عابدين - ط إسطنبول"
},
{
"id": 1612,
"name": "تنبيه ذوى الأفهام على أحكام التبليغ خلف الإمام - ط إسطنبول"
},
{
"id": 1613,
"name": "قرة العينين برفع اليدين في الصلاة"
},
{
"id": 1614,
"name": "شفاء العليل وبل الغليل في حكم الوصية بالختمات والتهاليل - ط إسطنبول"
},
{
"id": 1615,
"name": "منة الجليل لبيان إسقاط ما على الذمة من كثير وقليل - ط إسطنبول",
"q": "Q12186411"
},
{
"id": 1616,
"name": "تنبيه الغافل والوسنان على أحكام هلال رمضان - ط إسطنبول",
"q": "Q124747853"
},
{
"id": 1617,
"name": "إتحاف الذكي النبيه بجواب ما يقول الفقيه - ط إسطنبول",
"q": "Q124743592"
},
{
"id": 1618,
"name": "الإبانة عن أخذ الأجرة على الحضانة - ط إسطنبول"
},
{
"id": 1619,
"name": "تحرير النقول في نفقة الفروع والأصول - ط إسطنبول"
},
{
"id": 1620,
"name": "رفع الانتقاض ودفع الاعتراض على قولهم الأيمان مبنية على الألفاظ لا على الأغراض - ط إسطنبول"
},
{
"id": 1621,
"name": "رفع الاشتباه عن عبارة الأشباه - ط إسطنبول"
},
{
"id": 1622,
"name": "تنبيه الولاة والحكام على أحكام شاتم خير الأنام أو أحد أصحابه الكرام عليه وعليهم الصلاة والسلام"
},
{
"id": 1623,
"name": "الأقوال الواضحة الجلية، في تحرير مسئلة نقض القسمة ومسئلة الدرجة الجعلية - ط إسطنبول"
},
{
"id": 1624,
"name": "العقود الدرية في قول الواقف على الفريضة الشرعية - ط إسطنبول"
},
{
"id": 1625,
"name": "غاية المطلب في اشتراط الواقف عود النصيب إلى أهل الدرجة الأقرب فالأقرب - ط إسطنبول"
},
{
"id": 1626,
"name": "غاية البيان في أن وقف الاثنين على أنفسهما وقف لا وقفان - ط إسطنبول"
},
{
"id": 1627,
"name": "تنبيه الرقود على مسائل النقود - ط إسطنبول"
},
{
"id": 1628,
"name": "تحبير التحرير في إبطال القضا بالفسخ بالغبن الفاحش بلا تغرير - ط إسطنبول"
},
{
"id": 1629,
"name": "تنبيه ذوى الأفهام على بطلان الحكم بنقض الدعوى بعد الإبراء العام - ط إسطنبول",
"q": "Q20397499"
},
{
"id": 1630,
"name": "إعلام الأعلام بأحكام الإقرار العام - ط إسطنبول"
},
{
"id": 1631,
"name": "نشر العرف في بناء بعض الأحكام على العرف - ط إسطنبول"
},
{
"id": 1632,
"name": "تحرير العبارة فيمن هو أحق بالإجارة - ط إسطنبول"
},
{
"id": 1634,
"name": "مناهل السرور لمبتغى الحساب بالكسور - ط إسطنبول"
},
{
"id": 1635,
"name": "الرحيق المختوم شرح قلائد المنظوم - ط إسطنبول"
},
{
"id": 1636,
"name": "إجابة الغوث ببيان حال النقباء والنجباء والأبدال والأوتاد والغوث - ط إسطنبول"
},
{
"id": 1637,
"name": "سل الحسام الهندي لنصرة مولانا خالد النقشبندي - ط إسطنبول"
},
{
"id": 1638,
"name": "الفوائد العجيبة في إعراب الكلمات الغربية - ط إسطنبول",
"pre": "الفوائد العجيبة في إعراب الكلمات الغربية"
},
{
"id": 1639,
"name": "بغية الناسك في أدعية المناسك - ط إسطنبول"
},
{
"id": 1653,
"name": "أحكام عقود التمويل في الفقه الإسلامي",
"q": "Q136458561"
},
{
"id": 1655,
"name": "الأم للشافعي - ط الفكر",
"pre": "«الأم» للإمام الشافعي",
"suf": "ط الفكر"
},
{
"id": 1656,
"name": "الأنساب - السمعاني - ط أمين دمج",
"pre": "الأنساب - السمعاني"
},
{
"id": 1657,
"name": "الأنس الجليل بتاريخ القدس والخليل - ط دنديس",
"pre": "الأنس الجليل بتاريخ القدس والخليل"
},
{
"id": 1660,
"name": "الأنساب - السمعاني - ط الجنان والفكر",
"pre": "الأنساب - السمعاني"
},
{
"id": 1661,
"name": "مختصر المزني - ط الفكر بآخر كتاب الأم"
},
{
"id": 1663,
"name": "ضعيف الجامع الصغير وزيادته"
},
{
"id": 1665,
"name": "إحكام الأحكام شرح عمدة الأحكام",
"q": "Q127327465"
},
{
"id": 1666,
"name": "الأشباه والنظائر - ابن نجيم"
},
{
"id": 1670,
"name": "إتحاف الورى بأخبار أم القرى",
"q": "Q130242470"
},
{
"id": 1673,
"name": "فتح الباري بشرح البخاري - ط السلفية",
"pre": "«فتح الباري» لابن حجر",
"suf": "ط السلفية",
"q": "Q116945634"
},
{
"id": 1673,
"name": "فتح الباري لابن حجر",
"q": "Q116945634"
},
{
"id": 1679,
"name": "الروض المربع شرح زاد المستقنع - ط المؤيد والرسالة"
},
{
"id": 1680,
"name": "سؤالات السلمي للدارقطني"
},
{
"id": 1681,
"name": "صحيح البخاري - ط السلطانية",
"pre": "صحيح البخاري",
"suf": "ط السلطانية",
"q": "Q115544772"
},
{
"id": 1682,
"name": "العين",
"q": "Q136804615"
},
{
"id": 1685,
"name": "مختصر الإنصاف والشرح الكبير (مطبوع ضمن مجموعة مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثاني)"
},
{
"id": 1686,
"name": "الطبقات الكبرى - ط العلمية",
"q": "Q116749953"
},
{
"id": 1687,
"name": "لسان العرب",
"q": "Q114878607"
},
{
"id": 1689,
"name": "الطبقات الكبرى - متمم الصحابة - الطبقة الخامسة",
"q": "Q121009156"
},
{
"id": 1691,
"name": "السلفيون وقضية فلسطين في واقعنا المعاصر"
},
{
"id": 1692,
"name": "ميزان الاعتدال",
"q": "Q121085702"
},
{
"id": 1693,
"name": "سبل الهدى والرشاد في سيرة خير العباد",
"q": "Q121077934"
},
{
"id": 1694,
"name": "التحبير في المعجم الكبير",
"q": "Q12248567"
},
{
"id": 1694,
"name": "التحبير في المعجم الكبير",
"q": "Q135263865"
},
{
"id": 1699,
"name": "موطأ مالك - رواية يحيى - ت عبد الباقي",
"pre": "موطأ مالك - رواية يحيى",
"suf": "ت عبد الباقي"
},
{
"id": 1702,
"name": "الحسام الماحق لكل مشرك ومنافق"
},
{
"id": 1703,
"name": "الضروري في أصول الفقه = مختصر المستصفى"
},
{
"id": 1708,
"name": "فتاوى إسلامية"
},
{
"id": 1711,
"name": "شرح النووي على مسلم",
"q": "Q19456039"
},
{
"id": 1712,
"name": "شرح السيوطي على مسلم"
},
{
"id": 1714,
"name": "تاريخ أصبهان = أخبار أصبهان",
"q": "Q127446419"
},
{
"id": 1717,
"name": "الذخيرة للقرافي"
},
{
"id": 1719,
"name": "التمهيد - ابن عبد البر - ط المغربية",
"pre": "«التمهيد» لابن عبد البر",
"suf": "ط المغربية",
"q": "Q135278390"
},
{
"id": 1722,
"name": "الاستذكار",
"q": "Q130281118"
},
{
"id": 1723,
"name": "صلاة الغائب"
},
{
"id": 1726,
"name": "سنن أبي داود - ت محيي الدين عبد الحميد",
"pre": "سنن أبي داود",
"suf": "ت محيي الدين عبد الحميد",
"q": "Q116878292"
},
{
"id": 1727,
"name": "صحيح مسلم - ت عبد الباقي",
"pre": "صحيح مسلم",
"suf": "ت عبد الباقي",
"q": "Q116878092"
},
{
"id": 1729,
"name": "الإحسان في تقريب صحيح ابن حبان",
"q": "Q124616168"
},
{
"id": 1731,
"name": "نكت وتنبيهات في تفسير القرآن المجيد"
},
{
"id": 1733,
"name": "المعجم الكبير للطبراني",
"q": "Q120999320"
},
{
"id": 1736,
"name": "معجم الفروق اللغوية الحاوي لكتابي العسكري والجزائري - ط قم",
"pre": "معجم الفروق اللغوية الحاوي لكتابَي العسكري والجزائري",
"suf": "ط قُمّ"
},
{
"id": 1747,
"name": "أثر اختلاف الأسانيد والمتون في اختلاف الفقهاء"
},
{
"id": 1750,
"name": "الغريب المصنف - ت العبيدي"
},
{
"id": 1753,
"name": "الشفا بتعريف حقوق المصطفى - وحاشية الشمني"
},
{
"id": 1756,
"name": "رفع الأستار لإبطال أدلة القائلين بفناء النار"
},
{
"id": 1767,
"name": "كشف الإيهام لما تضمنه «تحرير التقريب» من الأوهام"
},
{
"id": 1768,
"name": "ألفية السيوطي نظم الدرر في علم الأثر - ت شاكر",
"pre": "ألفية السيوطي نظم الدرر في علم الأثر"
},
{
"id": 1779,
"name": "شرح التبصرة والتذكرة ألفية العراقي"
},
{
"id": 1784,
"name": "الانتصار للصحابة الأخيار في رد أباطيل حسن المالكي"
},
{
"id": 1791,
"name": "نور وهداية"
},
{
"id": 1875,
"name": "السنن والأحكام عن المصطفى عليه أفضل الصلاة والسلام",
"q": "Q108400528"
},
{
"id": 1892,
"name": "من تكلم فيه وهو موثق ت أمرير"
},
{
"id": 1893,
"name": "تعجيل المنفعة"
},
{
"id": 1922,
"name": "الفتاوى الحديثية لابن حجر الهيتمي",
"q": "Q124603445"
},
{
"id": 1932,
"name": "حديث ابن عمر في ترائي الهلال للخطيب البغدادي"
},
{
"id": 1933,
"name": "أحكام المجاهد بالنفس في سبيل الله عز وجل في الفقه الإسلامي",
"q": "Q12178010"
},
{
"id": 1956,
"name": "الأذكار للنووي ت الأرنؤوط"
},
{
"id": 1969,
"name": "التبيان في آداب حملة القرآن"
},
{
"id": 1975,
"name": "الفتح الكبير في ضم الزيادة إلى الجامع الصغير"
},
{
"id": 1994,
"name": "طبقات علماء الحديث",
"q": "Q113860052"
},
{
"id": 2021,
"name": "الجغرافيا المناخية والنباتية"
},
{
"id": 2022,
"name": "المحصول للرازي"
},
{
"id": 2037,
"name": "فن التحرير العربي"
},
{
"id": 2048,
"name": "المعتصر من شرح مختصر الأصول من علم الأصول"
},
{
"id": 2053,
"name": "أخطاء اللغة العربية المعاصرة عند الكتاب والإذاعيين"
},
{
"id": 2055,
"name": "مصادر الشعر الجاهلي"
},
{
"id": 2063,
"name": "التيسير في التفسير - أبو حفص النسفي",
"q": "Q134438709"
},
{
"id": 2094,
"name": "جغرافية المناخ والنبات"
},
{
"id": 2097,
"name": "قضايا الشعر المعاصر"
},
{
"id": 2099,
"name": "النحو المصفى"
},
{
"id": 2102,
"name": "العجاب في بيان الأسباب"
},
{
"id": 2113,
"name": "الشرق الأدنى القديم في مصر والعراق"
},
{
"id": 2118,
"name": "كشف الظنون عن أسامي الكتب والفنون",
"q": "Q120648872"
},
{
"id": 2118,
"name": "كشف الظنون عن أسامي الكتب والفنون - ط إسطنبول",
"pre": "كشف الظنون عن أسامي الكتب والفنون",
"q": "Q120648872"
},
{
"id": 2146,
"name": "المصطلحات الأربعة في القرآن"
},
{
"id": 2154,
"name": "تفسير القرآن العزيز لابن أبي زمنين"
},
{
"id": 2163,
"name": "إعراب القرآن وبيانه",
"q": "Q115640897"
},
{
"id": 2170,
"name": "الجرح والتعديل - ابن أبي حاتم",
"q": "Q119627962"
},
{
"id": 2170,
"name": "الجرح والتعديل لابن أبي حاتم",
"q": "Q119627962"
},
{
"id": 2171,
"name": "الكاشف",
"q": "Q124614689"
},
{
"id": 2171,
"name": "الكاشف في معرفة من له رواية في الكتب الستة",
"q": "Q124614689"
},
{
"id": 2176,
"name": "نواسخ القرآن = ناسخ القرآن ومنسوخه ت المليباري",
"q": "Q124614786"
},
{
"id": 2186,
"name": "المجموع شرح المهذب - ط المنيرية",
"pre": "المجموع شرح المهذب",
"suf": "ط المنيرية",
"q": "Q118186258"
},
{
"id": 2186,
"name": "المجموع شرح المهذب - ط المنيرية",
"pre": "المجموع شرح المهذب",
"suf": "ط المنيرية",
"q": "Q136709791"
},
{
"id": 2209,
"name": "ناسخ القرآن العزيز ومنسوخه لابن البارزي"
},
{
"id": 2215,
"name": "الفروق للقرافي = أنوار البروق في أنواء الفروق",
"q": "Q125912403"
},
{
"id": 2216,
"name": "الناسخ والمنسوخ - ابن حزم"
},
{
"id": 2228,
"name": "تاريخ القرآن الكريم",
"q": "Q125099626"
},
{
"id": 2229,
"name": "تفسير سفيان الثوري",
"q": "Q136709865"
},
{
"id": 2237,
"name": "ثبت مؤلفات الألباني"
},
{
"id": 2241,
"name": "إسبال المطر على قصب السكر نظم نخبة الفكر في مصطلح أهل الأثر"
},
{
"id": 2247,
"name": "لباب النقول"
},
{
"id": 2248,
"name": "القواعد الحسان في أسرار الطاعة والاستعداد لرمضان"
},
{
"id": 2266,
"name": "المستدرك على الصحيحين - ط العلمية",
"pre": "المستدرك على الصحيحين",
"q": "Q120985031"
},
{
"id": 2266,
"name": "المستدرك على الصحيحين للحاكم - ط العلمية",
"q": "Q120985031"
},
{
"id": 2275,
"name": "حقوق النبي صلى الله عليه وسلم على أمته في ضوء الكتاب والسنة"
},
{
"id": 2280,
"name": "محاضرات في النصرانية"
},
{
"id": 2305,
"name": "التفسير الوسيط - الزحيلي"
},
{
"id": 2331,
"name": "العلل ومعرفة الرجال لأحمد رواية ابنه عبد الله",
"q": "Q135102213"
},
{
"id": 2348,
"name": "رياض الصالحين - ت الفحل",
"q": "Q125471177"
},
{
"id": 2378,
"name": "تيسير العزيز الحميد في شرح كتاب التوحيد الذى هو حق الله على العبيد"
},
{
"id": 2386,
"name": "فتح المجيد شرح كتاب التوحيد"
},
{
"id": 2449,
"name": "تصحيفات المحدثين",
"q": "Q114906137"
},
{
"id": 2449,
"name": "تصحيفات المحدثين - العسكري",
"q": "Q114906137"
},
{
"id": 2491,
"name": "سؤالات حمزة للدارقطني"
},
{
"id": 2506,
"name": "بحر الدموع"
},
{
"id": 2512,
"name": "حماسة القرشي"
},
{
"id": 2547,
"name": "الوجيز للواحدي"
},
{
"id": 2554,
"name": "الشرح الكبير لمختصر الأصول",
"q": "Q12231689"
},
{
"id": 2569,
"name": "جمع الوسائل في شرح الشمائل"
},
{
"id": 2573,
"name": "كشاف اصطلاحات الفنون والعلوم",
"q": "Q120808017"
},
{
"id": 2582,
"name": "رسالة طرق حديث من كنت مولاه فعلي مولاه"
},
{
"id": 2615,
"name": "تخريج أحاديث وآثار كتاب في ظلال القرآن"
},
{
"id": 2671,
"name": "الفوائد المجموعة",
"q": "Q138979059"
},
{
"id": 2677,
"name": "كنز العمال في سنن الأقوال والأفعال - ط الرسالة"
},
{
"id": 2700,
"name": "مرويات الإمام الزهري في المغازي"
},
{
"id": 2749,
"name": "غرر الفوائد المجموعة"
},
{
"id": 2754,
"name": "سؤالات الترمذي للبخاري حول أحاديث في جامع الترمذي"
},
{
"id": 2771,
"name": "المدخل إلى دراسة المذاهب الفقهية",
"q": "Q131431896"
},
{
"id": 2863,
"name": "معرفة السنن والآثار"
},
{
"id": 2864,
"name": "بيان تلبيس الجهمية في تأسيس بدعهم الكلامية",
"q": "Q115910774"
},
{
"id": 2908,
"name": "الرد على من قال بفناء الجنة والنار"
},
{
"id": 2910,
"name": "الظاهرة القرآنية"
},
{
"id": 2911,
"name": "غريب الحديث - ابن الجوزي"
},
{
"id": 2918,
"name": "القاموس الفقهي لغة واصطلاحا"
},
{
"id": 2919,
"name": "اختلاف الفقهاء = اختلاف العلماء للمروزي"
},
{
"id": 2922,
"name": "نسب قريش",
"q": "Q116762723"
},
{
"id": 2977,
"name": "مختصر الخرقى"
},
{
"id": 2994,
"name": "بحر الدم فيمن تكلم فيه الإمام أحمد بمدح أو ذم"
},
{
"id": 3003,
"name": "هدية العارفين",
"q": "Q19491231"
},
{
"id": 3003,
"name": "هدية العارفين أسماء المؤلفين وآثار المصنفين",
"q": "Q19491231"
},
{
"id": 3018,
"name": "قواعد الشعر"
},
{
"id": 3055,
"name": "الدرر السنية في الأجوبة النجدية",
"q": "Q124364206"
},
{
"id": 3118,
"name": "مختصر تاريخ دمشق",
"q": "Q110238771"
},
{
"id": 3125,
"name": "مسائل الإمام أحمد وإسحاق بن راهويه"
},
{
"id": 3128,
"name": "الزيادات على كتاب الكبائر للبرديجي - الضياء المقدسي"
},
{
"id": 3197,
"name": "جماع العلم"
},
{
"id": 3255,
"name": "اقتربت الساعة فتوبوا أيها المذنبون"
},
{
"id": 3259,
"name": "غريب القرآن لابن قتيبة ت أحمد صقر",
"pre": "«غريب القرآن» لابن قتيبة"
},
{
"id": 3283,
"name": "حسن المحاضرة في تاريخ مصر والقاهرة",
"q": "Q121076344"
},
{
"id": 3284,
"name": "جامع الدروس العربية",
"q": "Q115471301"
},
{
"id": 3298,
"name": "خريدة العجائب وفريدة الغرائب"
},
{
"id": 3310,
"name": "تهذيب التهذيب",
"q": "Q116971729"
},
{
"id": 3310,
"name": "تهذيب التهذيب - ط الهندية",
"pre": "تهذيب التهذيب",
"q": "Q116971729"
},
{
"id": 3328,
"name": "أحكام القرآن للشافعي - جمع البيهقي ت عبد الخالق"
},
{
"id": 3334,
"name": "خصائص التراكيب دارسة تحليلية لمسائل علم المعاني"
},
{
"id": 3346,
"name": "العراق في أحاديث وآثار الفتن"
},
{
"id": 3485,
"name": "حسن الأسوة بما ثبت من الله ورسوله في النسوة"
},
{
"id": 3508,
"name": "تاريخ ابن معين - رواية الدوري",
"q": "Q134893654"
},
{
"id": 3525,
"name": "الزهد لأبي حاتم"
},
{
"id": 3538,
"name": "اللباب في قواعد اللغة وآلات الأدب النحو والصرف والبلاغة والعروض واللغة والمثل"
},
{
"id": 3565,
"name": "نهاية المحتاج إلى شرح المنهاج",
"q": "Q116871012"
},
{
"id": 3576,
"name": "البلدانيات للسخاوي"
},
{
"id": 3580,
"name": "أسرار التكرار في القرآن = البرهان في توجيه متشابه القرآن"
},
{
"id": 3583,
"name": "نزهة الألباء في طبقات الأدباء",
"q": "Q116999167"
},
{
"id": 3590,
"name": "المخصص",
"q": "Q126880659"
},
{
"id": 3610,
"name": "الجهاد - ابن المبارك"
},
{
"id": 3617,
"name": "القصاص والمذكرين"
},
{
"id": 3637,
"name": "التهذيب في الفقه الشافعي - كتاب السير منه"
},
{
"id": 3654,
"name": "من ذخائر ابن مالك في اللغة مسألة من كلام الإمام ابن مالك في الاشتقاق"
},
{
"id": 3722,
"name": "تهذيب الكمال في أسماء الرجال",
"q": "Q113613903"
},
{
"id": 3732,
"name": "العقل وفضله لابن أبي الدنيا"
},
{
"id": 3742,
"name": "الجاسوس على القاموس",
"q": "Q136804510"
},
{
"id": 3863,
"name": "فتح المتعال على القصيدة المسماة بلامية الأفعال"
},
{
"id": 3874,
"name": "قطف الثمر في بيان عقيدة أهل الأثر"
},
{
"id": 3901,
"name": "معجم المؤلفين",
"q": "Q113535201"
},
{
"id": 3944,
"name": "البيزرة"
},
{
"id": 3952,
"name": "لله ثم للتاريخ = كشف الأسرار وتبرئة الأئمة الأطهار"
},
{
"id": 3960,
"name": "المنخول من تعليقات الأصول"
},
{
"id": 3976,
"name": "الرد على الجهمية لابن منده - مجلة الجامعة الإسلامية"
},
{
"id": 3981,
"name": "جزء فيه طرق حديث عبد الرحمن بن أبي ليلى عن كعب بن عجرة في الصلاة على النبي صلى الله عليه وسلم"
},
{
"id": 4003,
"name": "فوائد ابن نصر"
},
{
"id": 4017,
"name": "تلخيص تاريخ نيسابور - الخليفة النيسابوري"
},
{
"id": 4033,
"name": "التخويف من النار والتعريف بحال دار البوار"
},
{
"id": 4092,
"name": "تبصير المنتبه بتحرير المشتبه"
},
{
"id": 4096,
"name": "أحاديث منتخبة من كتاب أمارات النبوة"
},
{
"id": 4118,
"name": "رفع الملام عن الأئمة الأعلام",
"q": "Q115943214"
},
{
"id": 4126,
"name": "المراح في المزاح"
},
{
"id": 4129,
"name": "التبر المسبوك في نصيحة الملوك"
},
{
"id": 4134,
"name": "نخبة الفكر - دراسة عنها وعن منهجها"
},
{
"id": 4135,
"name": "الهوامل والشوامل"
},
{
"id": 4137,
"name": "مقالات الإسلاميين ت زرزور",
"q": "Q139572026"
},
{
"id": 4151,
"name": "من روى عن النبي من الصحابة في الكبائر للبرديجي - مجلة الجامعة الإسلامية"
},
{
"id": 4182,
"name": "طبقات المحدثين بأصبهان والواردين عليها"
},
{
"id": 4215,
"name": "ظاهرة التقاص في النحو العربي"
},
{
"id": 4268,
"name": "جامع العلوم والحكم - ت الأرنؤوط",
"pre": "جامع العلوم والحكم",
"suf": "ت الأرنؤوط",
"q": "Q125469691"
},
{
"id": 4270,
"name": "فدائيون من عصر الرسول"
},
{
"id": 4289,
"name": "الأحكام الكبرى",
"q": "Q124619008"
},
{
"id": 4312,
"name": "العلم يدعو للإيمان"
},
{
"id": 4315,
"name": "جريدة «الشريعة» النبوية المحمدية"
},
{
"id": 4324,
"name": "جمهرة تراجم الفقهاء المالكية"
},
{
"id": 4363,
"name": "المرقبة العليا فيمن يستحق القضاء والفتيا = تاريخ قضاة الأندلس"
},
{
"id": 4371,
"name": "مكة والمدينة في الجاهلية وعهد الرسول صلى الله عليه وسلم"
},
{
"id": 4407,
"name": "مسند ابن الجعد"
},
{
"id": 4425,
"name": "فضائل الأعمال - الضياء المقدسي"
},
{
"id": 4426,
"name": "التمهيد لشرح كتاب التوحيد"
},
{
"id": 4432,
"name": "تصحيح الحديث عند ابن الصلاح"
},
{
"id": 4445,
"name": "البداية والنهاية - ت التركي",
"pre": "البداية والنهاية",
"suf": "ت التركي",
"q": "Q113496832"
},
{
"id": 4445,
"name": "البداية والنهاية ت التركي",
"pre": "البداية والنهاية",
"suf": "ت التركي",
"q": "Q113496832"
},
{
"id": 4469,
"name": "التحفة الربانية في شرح الأربعين حديثا النووية"
},
{
"id": 4673,
"name": "منهج الأشاعرة في العقيدة - الكبير"
},
{
"id": 4864,
"name": "مفتاح الجنة في الاحتجاج بالسنة"
},
{
"id": 4991,
"name": "طريقة كمية لدراسة معاجم التراجم الإسلامية في العصور الوسطى"
},
{
"id": 5023,
"name": "كيف نفهم التوحيد"
},
{
"id": 5056,
"name": "معنى لا إله إلا الله ومقتضاها وآثارها في الفرد والمجتمع",
"q": "Q136687232"
},
{
"id": 5064,
"name": "الإيجاز في شرح سنن أبي داود - النووي"
},
{
"id": 5075,
"name": "محمد بن عبد الوهاب داعية التوحيد والتجديد في العصر الحديث"
},
{
"id": 5143,
"name": "عقيدة أهل السنة والجماعة للعثيمين"
},
{
"id": 5165,
"name": "منهج التشريع الإسلامي وحكمته - ط الجامعة الإسلامية"
},
{
"id": 5167,
"name": "آثار الإمام محمد البشير الإبراهيمي"
},
{
"id": 5208,
"name": "شرح الصدور بتحريم رفع القبور"
},
{
"id": 5352,
"name": "نكت الإعراب = قواعد الإعراب ونزهة الطلاب",
"pre": "قواعد الإعراب ونزهة الطلاب"
},
{
"id": 5354,
"name": "ما لم ينشر من الأمالي الشجرية"
},
{
"id": 5367,
"name": "التصوف - المنشأ والمصادر"
},
{
"id": 5377,
"name": "تصويبات في فهم بعض الآيات"
},
{
"id": 5412,
"name": "حكم السحر والكهانة وما يتعلق بها"
},
{
"id": 5414,
"name": "الحواشى على سنن ابن ماجه"
},
{
"id": 5423,
"name": "المبسوط للسرخسي",
"pre": "«المبسوط» للسرخسي",
"q": "Q130281097"
},
{
"id": 5428,
"name": "التطفيل وحكايات الطفيليين"
},
{
"id": 5434,
"name": "شرح السير الكبير"
},
{
"id": 5437,
"name": "سورة الواقعة ومنهجها فى العقائد"
},
{
"id": 5459,
"name": "المستصفى"
},
{
"id": 5463,
"name": "منار السبيل في شرح الدليل"
},
{
"id": 5486,
"name": "شرح الشاطبية إبراز المعاني من حرز الأماني",
"q": "Q125914290"
},
{
"id": 5486,
"name": "شرح الشاطبية إبراز المعاني من حرز الأماني - ت عطوة",
"q": "Q125914290"
},
{
"id": 5487,
"name": "دقائق التفسير"
},
{
"id": 5502,
"name": "المصون في الأدب"
},
{
"id": 5507,
"name": "فضائل القرآن للنسائي"
},
{
"id": 5509,
"name": "جزء في تفسير الباقيات الصالحات"
},
{
"id": 5515,
"name": "الناسخ والمنسوخ - المقري"
},
{
"id": 5517,
"name": "قلائد المرجان في بيان الناسخ والمنسوخ في القرآن"
},
{
"id": 5526,
"name": "الأحرف السبعة للقرآن"
},
{
"id": 5527,
"name": "التيسير في القراءات السبع"
},
{
"id": 5530,
"name": "السبعة في القراءات",
"q": "Q124614009"
},
{
"id": 5531,
"name": "حجة القراءات"
},
{
"id": 5538,
"name": "مشكل إعراب القرآن لمكي"
},
{
"id": 5539,
"name": "تاريخ مكة المشرفة والمسجد الحرام والمدينة الشريفة والقبر الشريف"
},
{
"id": 5542,
"name": "البيان في عد آي القرآن",
"q": "Q115651867"
},
{
"id": 5548,
"name": "حجج القرآن"
},
{
"id": 5550,
"name": "فهم القرآن"
},
{
"id": 5551,
"name": "ما دل عليه القرآن مما يعضد الهيئة الجديدة القويمة بالبرهان"
},
{
"id": 5552,
"name": "المحكم في نقط المصاحف"
},
{
"id": 5554,
"name": "المناظرة في القرآن"
},
{
"id": 5555,
"name": "الشمعة المضية"
},
{
"id": 5556,
"name": "تحبير التيسير في القراءات العشر",
"q": "Q130374325"
},
{
"id": 5562,
"name": "المسند المستخرج على صحيح مسلم لأبي نعيم"
},
{
"id": 5567,
"name": "الجمع بين الصحيحين للحميدي"
},
{
"id": 5583,
"name": "مختصر الأحكام = مستخرج الطوسي على جامع الترمذي"
},
{
"id": 5586,
"name": "التقريب والتيسير للنووي"
},
{
"id": 5597,
"name": "تهذيب الآثار - الجزء المفقود"
},
{
"id": 5604,
"name": "القدر - ابن وهب - ت العثيم"
},
{
"id": 5610,
"name": "الجامع - معمر بن راشد"
},
{
"id": 5635,
"name": "مصباح الزجاجة في زوائد ابن ماجه"
},
{
"id": 5638,
"name": "تفسير العز بن عبد السلام"
},
{
"id": 5640,
"name": "الأحاديث المائة المشتملة على مائة نسبة إلى الصنائع"
},
{
"id": 5644,
"name": "الزاهر في معاني كلمات الناس"
},
{
"id": 5645,
"name": "خصائص علي"
},
{
"id": 5646,
"name": "نصيحة أهل الحديث"
},
{
"id": 5650,
"name": "أخبار وحكايات للغساني"
},
{
"id": 5651,
"name": "الأحاديث التي خولف فيها مالك بن أنس"
},
{
"id": 5654,
"name": "العجالة في الأحاديث المسلسلة"
},
{
"id": 5660,
"name": "جزء ابن عمشليق"
},
{
"id": 5668,
"name": "جزء بيبي"
},
{
"id": 5671,
"name": "جزء لؤلؤ"
},
{
"id": 5673,
"name": "حديث الستة من التابعين وذكر طرقه واختلاف وجوهه"
},
{
"id": 5675,
"name": "التماس السعد في الوفاء بالوعد"
},
{
"id": 5676,
"name": "عوالي الليث بن سعد"
},
{
"id": 5680,
"name": "مسند أمة الله مريم"
},
{
"id": 5683,
"name": "التمثيل والمحاضرة",
"q": "Q125516701"
},
{
"id": 5688,
"name": "الدينار من حديث المشايخ الكبار"
},
{
"id": 5693,
"name": "الفوائد المنتقاة والغرائب الحسان عن الشيوخ الكوفيين للصوري"
},
{
"id": 5695,
"name": "فوائد أبي بكر الشاشي"
},
{
"id": 5701,
"name": "ارق نفسك وأهلك بنفسك"
},
{
"id": 5702,
"name": "الأمالي المطلقة"
},
{
"id": 5705,
"name": "هداية الحيارى في أجوبة اليهود والنصارى - ط عطاءات العلم",
"pre": "هداية الحيارى في أجوبة اليهود والنصارى",
"q": "Q115796857"
},
{
"id": 5706,
"name": "المجالس الخمسة السلماسية للسلفي"
},
{
"id": 5709,
"name": "مجلس من أمالي أبي نعيم الأصبهاني"
},
{
"id": 5713,
"name": "الأربعون البلدانية لابن عساكر"
},
{
"id": 5715,
"name": "الأربعون العشارية للعراقي"
},
{
"id": 5716,
"name": "الأربعون في الحث على الجهاد"
},
{
"id": 5719,
"name": "الإمتاع بالأربعين المتباينة السماع"
},
{
"id": 5721,
"name": "فضائل بيت المقدس - الضياء المقدسي",
"q": "Q118187302"
},
{
"id": 5721,
"name": "فضائل بيت المقدس - ضياء الدين المقدسي",
"q": "Q118187302"
},
{
"id": 5722,
"name": "فضائل مكة - الحسن البصري"
},
{
"id": 5723,
"name": "مشيخة ابن شاذان الصغرى"
},
{
"id": 5724,
"name": "مشيخة أبي بكر بن عبد الدائم"
},
{
"id": 5725,
"name": "مشيخة أبي طاهر ابن أبي الصقر"
},
{
"id": 5726,
"name": "انتخاب العوالي والشيوخ الأخيار من فهارس"
},
{
"id": 5727,
"name": "الانتصار لأصحاب الحديث"
},
{
"id": 5728,
"name": "مشيخة ابن الحطاب أبي عبد الله الرازي وثبت مسموعاته"
},
{
"id": 5729,
"name": "الأمالي الحلبية"
},
{
"id": 5732,
"name": "حديث شعبة بن الحجاج"
},
{
"id": 5733,
"name": "حديث مصعب الزبيري"
},
{
"id": 5736,
"name": "مجموع فيه عشرة أجزاء حديثية"
},
{
"id": 5737,
"name": "مجموع فيه مصنفات أبي جعفر ابن البختري"
},
{
"id": 5738,
"name": "الزهر النضر في حال الخضر"
},
{
"id": 5740,
"name": "مشيخة ابن البخاري"
},
{
"id": 5742,
"name": "جذوة المقتبس في ذكر ولاة الأندلس",
"q": "Q123415126"
},
{
"id": 5744,
"name": "الأوائل لأبي عروبة الحراني"
},
{
"id": 5748,
"name": "تنوير الغبش في فضل السودان والحبش"
},
{
"id": 5756,
"name": "عمدة القاري شرح صحيح البخاري"
},
{
"id": 5757,
"name": "تنوير الحوالك شرح موطأ مالك"
},
{
"id": 5760,
"name": "عون المعبود وحاشية ابن القيم"
},
{
"id": 5767,
"name": "شرح حديث لبيك اللهم لبيك"
},
{
"id": 5769,
"name": "التيسير بشرح الجامع الصغير"
},
{
"id": 5772,
"name": "المتواري على أبواب البخاري"
},
{
"id": 5776,
"name": "منتقى من الجزء الأول والثالث من حديث المروزي"
},
{
"id": 5777,
"name": "غنية الملتمس إيضاح الملتبس"
},
{
"id": 5779,
"name": "أسماء من يعرف بكنيته"
},
{
"id": 5780,
"name": "الأسامي والكنى - الإمام أحمد"
},
{
"id": 5782,
"name": "التاريخ الأوسط"
},
{
"id": 5789,
"name": "ذيل ذيل تاريخ مولد العلماء ووفياتهم"
},
{
"id": 5790,
"name": "ذيل تاريخ مولد العلماء ووفياتهم"
},
{
"id": 5791,
"name": "تاريخ مولد العلماء ووفياتهم",
"q": "Q134955012"
},
{
"id": 5793,
"name": "اللباب في تهذيب الأنساب",
"q": "Q120886355"
},
{
"id": 5794,
"name": "الأنساب المتفقة = المؤتلف والمختلف - ت الحوت"
},
{
"id": 5795,
"name": "تقييد المهمل وتمييز المشكل - شيوخ البخاري المهملون - ط المغرب",
"pre": "تقييد المهمل وتمييز المشكل - شيوخ البخاري المهملون"
},
{
"id": 5797,
"name": "تكملة الإكمال - ابن نقطة"
},
{
"id": 5798,
"name": "تهذيب مستمر الأوهام على ذوي المعرفة وأولي الأفهام - ت كسروي",
"pre": "تهذيب مستمر الأوهام"
},
{
"id": 5799,
"name": "جزء الأوهام في المشايخ النبل"
},
{
"id": 5800,
"name": "ذكر من اختلف العلماء ونقاد الحديث فيه"
},
{
"id": 5802,
"name": "ريح النسرين فيمن عاش من الصحابة مائة وعشرين"
},
{
"id": 5803,
"name": "غوامض الأسماء المبهمة"
},
{
"id": 5804,
"name": "مشتبه أسامي المحدثين"
},
{
"id": 5805,
"name": "معجم السفر"
},
{
"id": 5806,
"name": "معرفة أسامي أرداف النبي"
},
{
"id": 5809,
"name": "نزهة الألباب في الألقاب",
"q": "Q124407449"
},
{
"id": 5812,
"name": "توضيح المشتبه",
"q": "Q116751972"
},
{
"id": 5813,
"name": "فتح الباب في الكنى والألقاب"
},
{
"id": 5815,
"name": "الأسماء المبهمة في الأنباء المحكمة"
},
{
"id": 5816,
"name": "الثقات لابن حبان",
"q": "Q121009378"
},
{
"id": 5817,
"name": "الرواة الثقات المتكلم فيهم بما لا يوجب ردهم"
},
{
"id": 5818,
"name": "تاريخ أسماء الثقات"
},
{
"id": 5820,
"name": "تسمية فقهاء الأمصار",
"q": "Q135658057"
},
{
"id": 5823,
"name": "طبقات الحفاظ للسيوطي",
"q": "Q126902731"
},
{
"id": 5825,
"name": "الثقات للعجلي ت البستوي",
"q": "Q135658323"
},
{
"id": 5827,
"name": "الكامل في الضعفاء - تراجم ساقطة ت الحسيني"
},
{
"id": 5830,
"name": "الضعفاء والمتروكون لابن الجوزي",
"q": "Q121070720"
},
{
"id": 5832,
"name": "الكشف الحثيث"
},
{
"id": 5834,
"name": "المجروحين لابن حبان ت زايد",
"q": "Q135651640"
},
{
"id": 5836,
"name": "المغني في الضعفاء"
},
{
"id": 5837,
"name": "المنفردات والوحدان",
"q": "Q127326448"
},
{
"id": 5838,
"name": "تحفة التحصيل في ذكر رواة المراسيل"
},
{
"id": 5839,
"name": "تسمية من لم يرو عنه غير رجل واحد"
},
{
"id": 5843,
"name": "الضعفاء لأبي نعيم"
},
{
"id": 5847,
"name": "ذيل ميزان الاعتدال"
},
{
"id": 5848,
"name": "مختصر الكامل في الضعفاء"
},
{
"id": 5849,
"name": "إسعاف المبطأ برجال الموطأ"
},
{
"id": 5850,
"name": "الإكمال في ذكر من له رواية في مسند الإمام أحمد من الرجال"
},
{
"id": 5851,
"name": "التعديل والتجريح لمن خرج له البخاري في الجامع الصحيح"
},
{
"id": 5853,
"name": "تسمية من أخرجهم البخاري ومسلم"
},
{
"id": 5858,
"name": "خلاصة تذهيب تهذيب الكمال",
"q": "Q119626603"
},
{
"id": 5860,
"name": "رجال صحيح مسلم",
"q": "Q117338208"
},
{
"id": 5861,
"name": "الإيثار بمعرفة رواة الآثار"
},
{
"id": 5862,
"name": "من روى عنهم البخاري في الصحيح"
},
{
"id": 5864,
"name": "الروضة الريا فيمن دفن بداريا"
},
{
"id": 5871,
"name": "وفيات المصريين"
},
{
"id": 5876,
"name": "التاريخ الكبير لابن أبي خيثمة - أخبار المكيين - ط الوطن"
},
{
"id": 5880,
"name": "كتاب بغداد"
},
{
"id": 5881,
"name": "ذكر أسماء التابعين ومن بعدهم ممن صحت روايته عن الثقات عند البخاري ومسلم"
},
{
"id": 5885,
"name": "الطبقات للنسائي"
},
{
"id": 5889,
"name": "المعين في طبقات المحدثين",
"q": "Q135524164"
},
{
"id": 5890,
"name": "المقصد الأرشد في ذكر أصحاب الإمام أحمد",
"q": "Q116984282"
},
{
"id": 5890,
"name": "المقصد الارشد",
"q": "Q116984282"
},
{
"id": 5893,
"name": "تسمية من روي عنه من أولاد العشرة - ت جماز",
"pre": "تسمية من روي عنه من أولاد العشرة",
"suf": "ت جماز"
},
{
"id": 5895,
"name": "تقييد المهمل وتمييز المشكل - ألقاب الصحابة والتابعين - ط الفضيلة",
"pre": "تقييد المهمل وتمييز المشكل - ألقاب الصحابة والتابعين في المسندين الصحيحين"
},
{
"id": 5897,
"name": "كتاب العلل الواقع بآخر جامع الترمذي - ت شاكر",
"pre": "كتاب العلل الواقع بآخر جامع الترمذي",
"suf": "ت شاكر"
},
{
"id": 5899,
"name": "مشكل الحديث وبيانه"
},
{
"id": 5902,
"name": "ألفية العراقي التبصرة والتذكرة - ت الفحل",
"pre": "ألفية العراقي التبصرة والتذكرة",
"suf": "ت الفحل"
},
{
"id": 5903,
"name": "الفرائد على مجمع الزوائد «ترجمة الرواة الذين لم يعرفهم الحافظ الهيثمي»"
},
{
"id": 5906,
"name": "كشف المشكل من حديث الصحيحين"
},
{
"id": 5907,
"name": "التحقيق في أحاديث الخلاف"
},
{
"id": 5908,
"name": "الدراية في تخريج أحاديث الهداية"
},
{
"id": 5911,
"name": "تحفة المحتاج إلى أدلة المنهاج"
},
{
"id": 5913,
"name": "الفقه الميسر"
},
{
"id": 5914,
"name": "ضعيف أبي داود - الأم"
},
{
"id": 5918,
"name": "المحرر في الحديث - ت المرعشلي",
"pre": "المحرر في الحديث",
"suf": "ت المرعشلي"
},
{
"id": 5919,
"name": "الإلمام بأحاديث الأحكام"
},
{
"id": 5920,
"name": "خلاصة الأحكام"
},
{
"id": 5922,
"name": "البدر المنير في تخريج الأحاديث والأثار الواقعة في الشرح الكبير",
"q": "Q121078384"
},
{
"id": 5923,
"name": "بيان الوهم والإيهام في كتاب الأحكام",
"q": "Q135691695"
},
{
"id": 5930,
"name": "السنة لابن أبي عاصم",
"q": "Q124619163"
},
{
"id": 5937,
"name": "إيثار الحق على الخلق في رد الخلافات"
},
{
"id": 5940,
"name": "نخبة الفكر - ط دار الحديث",
"pre": "نخبة الفكر",
"suf": "ط دار الحديث"
},
{
"id": 5945,
"name": "سؤالات أبي داود للإمام أحمد"
},
{
"id": 5947,
"name": "سؤالات ابن أبي شيبة لابن المديني"
},
{
"id": 5950,
"name": "سؤالات الحاكم للدارقطني"
},
{
"id": 5954,
"name": "من كلام أبي زكريا يحيى بن معين في الرجال"
},
{
"id": 5955,
"name": "المدرج إلى المدرج"
},
{
"id": 5956,
"name": "الغاية فى شرح الهداية فى علم الرواية",
"q": "Q136697288"
},
{
"id": 5959,
"name": "المنهل الروي في مختصر علوم الحديث النبوي"
},
{
"id": 5963,
"name": "فتح المغيث بشرح ألفية الحديث"
},
{
"id": 5968,
"name": "الاقتراح في بيان الاصطلاح"
},
{
"id": 5970,
"name": "التقريرات السنية شرح المنظومة البيقونية في مصطلح الحديث"
},
{
"id": 5973,
"name": "الرفع والتكميل"
},
{
"id": 5975,
"name": "المختصر في علم الأثر"
},
{
"id": 5976,
"name": "المقنع في علوم الحديث"
},
{
"id": 5978,
"name": "النكت على مقدمة ابن الصلاح للزركشي"
},
{
"id": 5979,
"name": "اليواقيت والدرر شرح شرح نخبة الفكر"
},
{
"id": 5980,
"name": "بلغة الأريب في مصطلح آثار الحبيب"
},
{
"id": 5981,
"name": "توجيه النظر إلى أصول الأثر"
},
{
"id": 5983,
"name": "ثمرات النظر في علم الأثر"
},
{
"id": 5984,
"name": "المختصر في أصول الحديث = رسالة في أصول الحديث"
},
{
"id": 5988,
"name": "مقدمة في أصول الحديث"
},
{
"id": 5989,
"name": "شرح نخبة الفكر للقاري"
},
{
"id": 5990,
"name": "الأنجم الزاهرات على حل ألفاظ الورقات"
},
{
"id": 5992,
"name": "رسوم التحديث في علوم الحديث"
},
{
"id": 5993,
"name": "الوقوف على الموقوف"
},
{
"id": 5995,
"name": "نزهة الحفاظ"
},
{
"id": 5996,
"name": "إيضاح الإشكال"
},
{
"id": 5997,
"name": "المدخل إلى كتاب الإكليل"
},
{
"id": 6000,
"name": "البيان والتعريف في أسباب ورود الحديث الشريف"
},
{
"id": 6001,
"name": "التطريف في التصحيف"
},
{
"id": 6002,
"name": "مسألة العلو والنزول في الحديث"
},
{
"id": 6003,
"name": "تالي تلخيص المتشابه"
},
{
"id": 6004,
"name": "رسائل في علوم الحديث"
},
{
"id": 6008,
"name": "المستخرج على المستدرك للحاكم = أمالي العراقي"
},
{
"id": 6009,
"name": "نزهة السامعين في رواية الصحابة عن التابعين"
},
{
"id": 6011,
"name": "السنن الأبين والمورد الأمعن في المحاكمة بين الإمامين في السند المعنعن"
},
{
"id": 6013,
"name": "رسالة أبي داود إلى أهل مكة"
},
{
"id": 6015,
"name": "فضل الأخبار وشرح مذاهب أهل الآثار = شروط الأئمة"
},
{
"id": 6016,
"name": "صيانة صحيح مسلم",
"q": "Q136463318"
},
{
"id": 6018,
"name": "أدب الإملاء والاستملاء"
},
{
"id": 6021,
"name": "تذكرة المؤتسي فيمن حدث ونسي"
},
{
"id": 6022,
"name": "اصطناع المعروف لابن أبي الدنيا"
},
{
"id": 6023,
"name": "سلسلة الذهب"
},
{
"id": 6025,
"name": "موضح أوهام الجمع والتفريق"
},
{
"id": 6027,
"name": "المدخل إلى الصحيح - ط الرسالة"
},
{
"id": 6028,
"name": "فضائل سنن الترمذي"
},
{
"id": 6030,
"name": "الإلماع إلى معرفة أصول الرواية وتقييد السماع",
"q": "Q127427460"
},
{
"id": 6031,
"name": "الوجيز في ذكر المجاز والمجيز"
},
{
"id": 6032,
"name": "كشف المغطا في فضل الموطا"
},
{
"id": 6035,
"name": "القول المسدد في الذب عن مسند أحمد"
},
{
"id": 6037,
"name": "مشكلات موطأ مالك بن أنس"
},
{
"id": 6038,
"name": "العلل لابن المديني",
"q": "Q135658020"
},
{
"id": 6039,
"name": "طلبة الطلبة"
},
{
"id": 6040,
"name": "تحسين القبيح وتقبيح الحسن"
},
{
"id": 6044,
"name": "العلل ومعرفة الرجال لأحمد رواية المروذي وغيره ت صبحي السامرائي"
},
{
"id": 6046,
"name": "المراسيل لابن أبي حاتم"
},
{
"id": 6048,
"name": "التمييز لمسلم"
},
{
"id": 6049,
"name": "علل الأحاديث في صحيح مسلم"
},
{
"id": 6051,
"name": "الفوائد الموضوعة في الأحاديث الموضوعة"
},
{
"id": 6053,
"name": "الآثار المرفوعة في الأخبار الموضوعة"
},
{
"id": 6056,
"name": "الأسرار المرفوعة في الأخبار الموضوعة"
},
{
"id": 6060,
"name": "ذخيرة الحفاظ"
},
{
"id": 6061,
"name": "التذكرة في الأحاديث المشتهرة = اللآلئ المنثورة في الأحاديث المشهورة"
},
{
"id": 6062,
"name": "اللآلئ المصنوعة في الأحاديث الموضوعة"
},
{
"id": 6063,
"name": "اللؤلؤ المرصوع"
},
{
"id": 6064,
"name": "المصنوع في معرفة الحديث الموضوع"
},
{
"id": 6065,
"name": "المغني عن الحفظ والكتاب"
},
{
"id": 6068,
"name": "تلخيص كتاب الموضوعات"
},
{
"id": 6070,
"name": "الموضوعات للصغاني"
},
{
"id": 6071,
"name": "أحاديث مختارة من موضوعات الجورقاني وابن الجوزي"
},
{
"id": 6072,
"name": "الفردوس بمأثور الخطاب"
},
{
"id": 6073,
"name": "تحذير الخواص من أكاذيب القصاص"
},
{
"id": 6075,
"name": "عمدة الأحكام من كلام خير الأنام صلى الله عليه وسلم"
},
{
"id": 6076,
"name": "أسنى المطالب في أحاديث مختلفة المراتب"
},
{
"id": 6077,
"name": "الجد الحثيث في بيان ما ليس بحديث"
},
{
"id": 6079,
"name": "النخبة البهية في الأحاديث المكذوبة على خير البرية"
},
{
"id": 6080,
"name": "معرفة التذكرة"
},
{
"id": 6083,
"name": "أطراف الغرائب والأفراد"
},
{
"id": 6084,
"name": "أخصر المختصرات - ت العجمي - ط 1",
"q": "Q131552453"
},
{
"id": 6094,
"name": "النكت والفوائد السنية على مشكل المحرر"
},
{
"id": 6104,
"name": "مختصر الفتاوى المصرية - ط الفقي",
"pre": "مختصر الفتاوى المصرية",
"suf": "ط الفقي"
},
{
"id": 6105,
"name": "مسائل الإمام أحمد رواية ابنه عبد الله"
},
{
"id": 6106,
"name": "مسائل الإمام أحمد رواية ابنه أبي الفضل صالح"
},
{
"id": 6115,
"name": "كشف المخدرات لشرح أخصر المختصرات",
"q": "Q132528322"
},
{
"id": 6117,
"name": "المسائل التي حلف عليها أحمد بن حنبل"
},
{
"id": 6120,
"name": "الإقناع للماوردي"
},
{
"id": 6121,
"name": "الإقناع في حل ألفاظ أبي شجاع",
"q": "Q115768743"
},
{
"id": 6123,
"name": "السراج الوهاج على متن المنهاج"
},
{
"id": 6125,
"name": "المقدمة الحضرمية"
},
{
"id": 6128,
"name": "الوسيط في المذهب"
},
{
"id": 6131,
"name": "حلية العلماء في معرفة مذاهب الفقهاء - أجزاء منه"
},
{
"id": 6133,
"name": "خبايا الزوايا"
},
{
"id": 6134,
"name": "دقائق المنهاج"
},
{
"id": 6136,
"name": "غاية البيان شرح زبد ابن رسلان"
},
{
"id": 6137,
"name": "فتاوى ابن الصلاح"
},
{
"id": 6140,
"name": "كفاية الأخيار في حل غاية الاختصار"
},
{
"id": 6146,
"name": "نهاية الزين"
},
{
"id": 6157,
"name": "الحاوي الكبير"
},
{
"id": 6160,
"name": "الجامع الصغير - ومعه النافع الكبير",
"q": "Q124472508"
},
{
"id": 6161,
"name": "الحجة على أهل المدينة"
},
{
"id": 6163,
"name": "الكسب - بشرح السرخسي - ت زكار"
},
{
"id": 6164,
"name": "الأصل لمحمد بن الحسن - ت الأفغاني",
"pre": "«الأصل» لمحمد بن الحسن",
"suf": "ت الأفغاني",
"q": "Q116821412"
},
{
"id": 6167,
"name": "المنفرجتان"
},
{
"id": 6170,
"name": "بداية المبتدي"
},
{
"id": 6172,
"name": "جواهر العقود ومعين القضاة والموقعين والشهود"
},
{
"id": 6173,
"name": "تحفة الملوك"
},
{
"id": 6178,
"name": "النتف في الفتاوى للسغدي"
},
{
"id": 6179,
"name": "لسان الحكام"
},
{
"id": 6185,
"name": "ملتقى الأبحر"
},
{
"id": 6190,
"name": "الخلاصة الفقهية على مذهب السادة المالكية"
},
{
"id": 6193,
"name": "القوانين الفقهية"
},
{
"id": 6196,
"name": "جامع الأمهات"
},
{
"id": 6206,
"name": "أحكام القرآن لإسماعيل القاضي",
"q": "Q125913296"
},
{
"id": 6222,
"name": "اختلاف العلماء للطحاوي - اختصار الجصاص"
},
{
"id": 6225,
"name": "الإخلاص والنية لابن أبي الدنيا"
},
{
"id": 6226,
"name": "اللباب في الجمع بين السنة والكتاب"
},
{
"id": 6227,
"name": "مختصر الخلافيات للبيهقي"
},
{
"id": 6228,
"name": "اختلاف الأئمة العلماء لابن هبيرة"
},
{
"id": 6230,
"name": "المكاسب والورع والشبهة"
},
{
"id": 6233,
"name": "مسألة الطائفين"
},
{
"id": 6234,
"name": "طبقات المفسرين للسيوطي",
"q": "Q121085859"
},
{
"id": 6238,
"name": "الاستخراج لأحكام الخراج"
},
{
"id": 6243,
"name": "أسنى المتاجر وبيان أحكام من غلب على وطنه النصاري ولم يهاجر وما يترتب عليه من العقوبات والزواجر"
},
{
"id": 6244,
"name": "الآداب والأحكام المتعلقة بدخول الحمام"
},
{
"id": 6245,
"name": "الأمنية في إدراك النية"
},
{
"id": 6247,
"name": "الإفصاح عن أحاديث النكاح"
},
{
"id": 6248,
"name": "الاتباع لابن أبي العز"
},
{
"id": 6251,
"name": "الفرائض وشرح آيات الوصية"
},
{
"id": 6253,
"name": "اللمعة في تحقيق الركعة لإدراك الجمعة"
},
{
"id": 6254,
"name": "المسائل التسع"
},
{
"id": 6255,
"name": "المسائل الفقهية لابن قداح"
},
{
"id": 6256,
"name": "ملحق فتاوى لابن قداح لم تتضمنها مسائله"
},
{
"id": 6257,
"name": "بسط الكف في إتمام الصف"
},
{
"id": 6260,
"name": "دفع التشنيع في مسألة التسميع"
},
{
"id": 6262,
"name": "فض الوعاء في أحاديث رفع اليدين بالدعاء"
},
{
"id": 6266,
"name": "تحفة المودود بأحكام المولود - ت الأرنؤوط",
"pre": "تحفة المودود بأحكام المولود",
"suf": "ت الأرنؤوط"
},
{
"id": 6275,
"name": "الفروسية المحمدية - ت مشهور",
"pre": "الفروسية المحمدية"
},
{
"id": 6276,
"name": "الباعث على إنكار البدع والحوادث"
},
{
"id": 6277,
"name": "السماع لابن القيسراني"
},
{
"id": 6278,
"name": "الإمام في بيان أدلة الأحكام"
},
{
"id": 6280,
"name": "الكوكب الدري فيما يتخرج على الأصول النحوية من الفروع الفقهية"
},
{
"id": 6281,
"name": "المحصول لابن العربي"
},
{
"id": 6284,
"name": "قواعد الفقه"
},
{
"id": 6285,
"name": "الأصول والضوابط"
},
{
"id": 6289,
"name": "التمهيد في تخريج الفروع على الأصول"
},
{
"id": 6291,
"name": "الفوائد في اختصار المقاصد"
},
{
"id": 6297,
"name": "الورقات"
},
{
"id": 6298,
"name": "تخريج الفروع على الأصول"
},
{
"id": 6299,
"name": "مختصر المؤمل في الرد إلى الأمر الأول"
},
{
"id": 6301,
"name": "أصول السرخسي = تمهيد الفصول في الأصول - ت الأفغاني"
},
{
"id": 6302,
"name": "أصول الشاشي"
},
{
"id": 6308,
"name": "المختصر في أصول الفقه - ت مظهربقا",
"pre": "المختصر في أصول الفقه"
},
{
"id": 6309,
"name": "المدخل إلى مذهب الإمام أحمد لابن بدران",
"q": "Q124424628"
},
{
"id": 6311,
"name": "رسالة في أصول الفقه"
},
{
"id": 6315,
"name": "أصول الفقه إجابة السائل شرح بغية الآمل"
},
{
"id": 6319,
"name": "المعتمد في أصول الفقه"
},
{
"id": 6320,
"name": "المعونة في الجدل"
},
{
"id": 6321,
"name": "النبذة الكافية في أحكام أصول الدين"
},
{
"id": 6323,
"name": "التلخيص في أصول الفقه"
},
{
"id": 6327,
"name": "تيسير التحرير شرح كتاب التحرير في أصول الفقه"
},
{
"id": 6330,
"name": "شرح القواعد الفقهية"
},
{
"id": 6334,
"name": "نزهة الأعين النواظر في علم الوجوه والنظائر",
"q": "Q125914433"
},
{
"id": 6336,
"name": "التحبير شرح التحرير"
},
{
"id": 6337,
"name": "تقويم النظر في مسائل خلافية ذائعة"
},
{
"id": 6338,
"name": "رفع الحاجب عن مختصر ابن الحاجب"
},
{
"id": 6342,
"name": "زغل العلم"
},
{
"id": 6344,
"name": "تقرير الاستناد في تفسير الاجتهاد"
},
{
"id": 6345,
"name": "آداب الفتوى والمفتي والمستفتي"
},
{
"id": 6347,
"name": "إجمال الإصابة في أقوال الصحابة"
},
{
"id": 6348,
"name": "إرشاد النقاد إلى تيسير الاجتهاد"
},
{
"id": 6349,
"name": "إيثار الإنصاف في آثار الخلاف"
},
{
"id": 6350,
"name": "الإنصاف في التنبيه على الأسباب التي أوجبت الاختلاف بين المسلمين"
},
{
"id": 6352,
"name": "الاجتهاد"
},
{
"id": 6353,
"name": "الاحتجاج بالشافعي"
},
{
"id": 6354,
"name": "القول السديد في بعض مسائل الاجتهاد والتقليد"
},
{
"id": 6355,
"name": "تحقيق المراد في أن النهي يقتضي الفساد"
},
{
"id": 6356,
"name": "صفة الفتوى"
},
{
"id": 6357,
"name": "عقد الجيد في أحكام الاجتهاد والتقليد"
},
{
"id": 6359,
"name": "القول المفيد في أدلة الاجتهاد والتقليد"
},
{
"id": 6362,
"name": "توضيح المقاصد شرح نونية ابن القيم الكافية الشافية"
},
{
"id": 6364,
"name": "غاية المرام في علم الكلام"
},
{
"id": 6365,
"name": "التوحيد للماتريدي"
},
{
"id": 6369,
"name": "الفقه المنهجي على مذهب الإمام الشافعي"
},
{
"id": 6371,
"name": "أصول الدين"
},
{
"id": 6372,
"name": "معالم أصول الدين"
},
{
"id": 6376,
"name": "التبصير في الدين وتمييز الفرقة الناجية عن الفرق الهالكين"
},
{
"id": 6382,
"name": "العقيدة السفارينية = الدرة المضية في عقد أهل الفرقة المرضية",
"q": "Q138673313"
},
{
"id": 6387,
"name": "الفقه الأبسط"
},
{
"id": 6388,
"name": "الفقه الأكبر"
},
{
"id": 6389,
"name": "تمهيد الأوائل وتلخيص الدلائل"
},
{
"id": 6392,
"name": "التوحيد لمحمد عبده"
},
{
"id": 6394,
"name": "فتاوى مهمة لعموم الأمة"
},
{
"id": 6397,
"name": "قواعد العقائد"
},
{
"id": 6398,
"name": "لمع الأدلة في قواعد عقائد أهل السنة والجماعة"
},
{
"id": 6400,
"name": "الأدلة الرضية لمتن الدرر البهية في المسائل الفقهية"
},
{
"id": 6404,
"name": "اختصاص القرآن بعوده إلى الرحيم الرحمن"
},
{
"id": 6410,
"name": "الأربعون في دلائل التوحيد"
},
{
"id": 6415,
"name": "الرد على من يقول القرآن مخلوق"
},
{
"id": 6418,
"name": "أصول السنة لأحمد بن حنبل"
},
{
"id": 6425,
"name": "ذم التأويل"
},
{
"id": 6429,
"name": "فتيا وجوابها في ذكر الاعتقاد"
},
{
"id": 6434,
"name": "النعوت الأسماء والصفات"
},
{
"id": 6439,
"name": "الأربعون الكيلانية"
},
{
"id": 6446,
"name": "الحجة في بيان المحجة",
"q": "Q114958310"
},
{
"id": 6449,
"name": "الإمامة والرد على الرافضة"
},
{
"id": 6451,
"name": "آكام المرجان في أحكام الجان"
},
{
"id": 6452,
"name": "منهج ودراسات لآيات الأسماء والصفات - ط الدار السلفية"
},
{
"id": 6453,
"name": "أدلة معتقد أبي حنيفة في أبوي الرسول عليه الصلاة والسلام"
},
{
"id": 6454,
"name": "أقاويل الثقات في تأويل الأسماء والصفات والآيات المحكمات والمشتبهات"
},
{
"id": 6455,
"name": "إرشاد الثقات إلى اتفاق الشرائع على التوحيد والمعاد والنبوات"
},
{
"id": 6456,
"name": "افتراق الأمة إلى نيف وسبعين فرقة"
},
{
"id": 6457,
"name": "الآيات البينات في عدم سماع الأموات"
},
{
"id": 6461,
"name": "الحدائق في المطالب العالية الفلسفية العويصة"
},
{
"id": 6462,
"name": "الروح - ابن القيم - ط العلمية",
"pre": "الروح - ابن القيم",
"suf": "ط العلمية"
},
{
"id": 6463,
"name": "العلو للعلي الغفار"
},
{
"id": 6465,
"name": "المقصد الأسنى"
},
{
"id": 6467,
"name": "تحريم النظر في كتب الكلام"
},
{
"id": 6468,
"name": "تفسير أسماء الله الحسنى للزجاج"
},
{
"id": 6470,
"name": "تنزيه الأنبياء عما نسب إليهم حثالة الأغبياء"
},
{
"id": 6472,
"name": "حقيقة التوحيد"
},
{
"id": 6474,
"name": "رسالة في أن القرآن غير مخلوق"
},
{
"id": 6475,
"name": "رسالة في إثبات الاستواء والفوقية ومسألة الحرف والصوت في القرآن المجيد"
},
{
"id": 6481,
"name": "رفع الشبهة والغرر عمن يحتج على فعل المعاصي بالقدر"
},
{
"id": 6484,
"name": "شرح السنة للمزني"
},
{
"id": 6485,
"name": "شرح الصدور بشرح حال الموتى والقبور"
},
{
"id": 6487,
"name": "النصيحة في صفات الرب جل وعلا"
},
{
"id": 6488,
"name": "تميز الصدق من المين في محاورة الرجلين"
},
{
"id": 6490,
"name": "كلمة الإخلاص وتحقيق معناها - ط المكتب الإسلامي",
"pre": "كلمة الإخلاص وتحقيق معناها - ط المكتب الإسلامي"
},
{
"id": 6492,
"name": "ماهية العقل ومعناه واختلاف الناس فيه"
},
{
"id": 6494,
"name": "معارج القدس في مدارج معرفه النفس"
},
{
"id": 6495,
"name": "معنى لا إله إلا الله - الزركشي"
},
{
"id": 6496,
"name": "منار الهدى في بيان الوقف والابتدا ت عبد الرحيم الطرهوني"
},
{
"id": 6498,
"name": "العقيدة التي حكاها أبو الفضل التميمي عن الإمام أحمد - ت السيروان",
"pre": "العقيدة التي حكاها أبو الفضل التميمي عن الإمام أحمد",
"suf": "ت السيروان"
},
{
"id": 6504,
"name": "كشف الأوهام والإلتباس عن تشبيه بعض الأغبياء من الناس"
},
{
"id": 6513,
"name": "كتاب الأصنام"
},
{
"id": 6515,
"name": "فتييان تتعلقان بتكفير الجهمية"
},
{
"id": 6516,
"name": "اعتقادات فرق المسلمين والمشركين"
},
{
"id": 6517,
"name": "الإعلام بما في دين النصارى من الفساد والأوهام"
},
{
"id": 6518,
"name": "التعرف لمذهب أهل التصوف"
},
{
"id": 6519,
"name": "الصوارم الحداد القاطعة لعلائق أرباب الاتحاد"
},
{
"id": 6520,
"name": "الفرق بين الفرق"
},
{
"id": 6521,
"name": "الفصل في الملل والأهواء والنحل"
},
{
"id": 6523,
"name": "أعلام وأقزام في ميزان الإسلام"
},
{
"id": 6529,
"name": "بذل المجهود في إفحام اليهود ت الشرقاوي"
},
{
"id": 6531,
"name": "المنتقى من منهاج الاعتدال"
},
{
"id": 6532,
"name": "تحفة الحكام في نكت العقود والأحكام"
},
{
"id": 6534,
"name": "إيضاح الدلائل في الفرق بين المسائل"
},
{
"id": 6537,
"name": "التنبيه والرد على أهل الأهواء والبدع"
},
{
"id": 6538,
"name": "المنح الشافيات بشرح مفردات الإمام أحمد"
},
{
"id": 6541,
"name": "الرد على القائلين بوحدة الوجود"
},
{
"id": 6542,
"name": "الرد على من ذهب إلى تصحيح علم الغيب من جهة الخط"
},
{
"id": 6544,
"name": "الصواعق المحرقة على أهل الرفض والضلال والزندقة"
},
{
"id": 6546,
"name": "المناظرة التقريرية بين الشيخ رحمت الله الهندي والقسيس بفندر"
},
{
"id": 6547,
"name": "إيضاح الدليل في قطع حجج أهل التعطيل"
},
{
"id": 6549,
"name": "تبيين كذب المفتري فيما نسب إلى الأشعري"
},
{
"id": 6550,
"name": "حز الغلاصم في إفحام المخاصم عند جريان النظر في أحكام القدر"
},
{
"id": 6554,
"name": "فضائح الباطنية"
},
{
"id": 6555,
"name": "مرهم العلل المعضلة في الرد على أئمة المعتزلة"
},
{
"id": 6556,
"name": "مناصحة الإمام وهب بن منبه لرجل تأثر بالخوارج"
},
{
"id": 6558,
"name": "نعمة الذريعة في نصرة الشريعة"
},
{
"id": 6569,
"name": "دلائل النبوة - إسماعيل الأصبهاني"
},
{
"id": 6582,
"name": "المقتفى من سيرة المصطفى"
},
{
"id": 6583,
"name": "خلاصة سير سيد البشر"
},
{
"id": 6585,
"name": "الفخر المتوالي فيمن انتسب للنبي من الخدم والموالي"
},
{
"id": 6587,
"name": "وسيلة الإسلام بالنبي عليه الصلاة والسلام"
},
{
"id": 6588,
"name": "غاية السول في خصائص الرسول"
},
{
"id": 6589,
"name": "الشمائل الشريفة - مستل من فيض القدير للمناوي"
},
{
"id": 6590,
"name": "الخصائص الكبرى"
},
{
"id": 6591,
"name": "غاية السول في سيرة الرسول"
},
{
"id": 6593,
"name": "المختصر الكبير في سيرة الرسول"
},
{
"id": 6594,
"name": "سلوة الكئيب بوفاة الحبيب صلى الله عليه وسلم"
},
{
"id": 6596,
"name": "كتاب الأربعين في مناقب أمهات المؤمنين"
},
{
"id": 6599,
"name": "المنتخب من كتاب أزواج النبي صلى الله عليه وسلم"
},
{
"id": 6601,
"name": "فضائل الصحابة للنسائي"
},
{
"id": 6603,
"name": "تحفة الصديق في فضائل أبي بكر الصديق"
},
{
"id": 6607,
"name": "التاريخ المنصوري = تلخيص الكشف والبيان في حوادث الزمان"
},
{
"id": 6608,
"name": "التكملة لكتاب الصلة",
"q": "Q120998571"
},
{
"id": 6610,
"name": "فتح الغفار الجامع لأحكام سنة نبينا المختار"
},
{
"id": 6615,
"name": "تاريخ خليفة بن خياط",
"q": "Q114711300"
},
{
"id": 6616,
"name": "تكملة تاريخ الطبري",
"q": "Q116059326"
},
{
"id": 6617,
"name": "سمط النجوم العوالي في أنباء الأوائل والتوالي",
"q": "Q119322521"
},
{
"id": 6624,
"name": "تاريخ ابن الوردي",
"q": "Q121086174"
},
{
"id": 6625,
"name": "أخبار بني عبيد"
},
{
"id": 6626,
"name": "الأنس الجليل",
"q": "Q125914475"
},
{
"id": 6626,
"name": "الأنس الجليل بتاريخ القدس والخليل - ط النجف",
"pre": "الأنس الجليل بتاريخ القدس والخليل",
"q": "Q125914475"
},
{
"id": 6627,
"name": "الاستقصا لأخبار دول المغرب الأقصى",
"q": "Q120648048"
},
{
"id": 6628,
"name": "البرق الشامي"
},
{
"id": 6630,
"name": "الحلة السيراء",
"q": "Q121086331"
},
{
"id": 6631,
"name": "الروضتين في أخبار الدولتين النورية والصلاحية"
},
{
"id": 6633,
"name": "المغرب في حلى المغرب"
},
{
"id": 6637,
"name": "تاريخ البصروي",
"q": "Q126364934"
},
{
"id": 6638,
"name": "تاريخ الدولة العلية العثمانية",
"q": "Q113541212"
},
{
"id": 6640,
"name": "تاريخ اليمن خلال القرن الحادي عشر = تاريخ طبق الحلوى وصحاف المن والسلوى"
},
{
"id": 6641,
"name": "طبقات صلحاء اليمن = تاريخ البريهي"
},
{
"id": 6646,
"name": "نبذة العصر في أخبار ملوك بني نصر"
},
{
"id": 6649,
"name": "التمهيد والبيان في مقتل الشهيد عثمان"
},
{
"id": 6650,
"name": "أخبار أبي حفص عمر بن عبد العزيز"
},
{
"id": 6651,
"name": "أخبار أبي حنيفة وأصحابه - ط عالم الكتب",
"pre": "«أخبار أبي حنيفة وأصحابه» للصيمري"
},
{
"id": 6653,
"name": "ثلاث تراجم نفيسة للأئمة الأعلام"
},
{
"id": 6654,
"name": "جزء فيه ذكر أبى القاسم الطبراني"
},
{
"id": 6655,
"name": "سيرة الإمام أحمد بن حنبل - لابنه صالح"
},
{
"id": 6656,
"name": "سيرة عمر بن عبد العزيز"
},
{
"id": 6658,
"name": "منهج النقد في علوم الحديث"
},
{
"id": 6659,
"name": "الأعلام العلية في مناقب ابن تيمية - ط المكتب الإسلامي",
"pre": "الأعلام العلية في مناقب ابن تيمية",
"suf": "ط المكتب الإسلامي"
},
{
"id": 6660,
"name": "الرد الوافر"
},
{
"id": 6661,
"name": "الشهادة الزكية في ثناء الأئمة على ابن تيمية"
},
{
"id": 6662,
"name": "تقريظ لابن حجر على الرد الوافر"
},
{
"id": 6663,
"name": "العقود الدرية في مناقب ابن تيمية - ت الفقي",
"pre": "العقود الدرية في مناقب ابن تيمية",
"suf": "ت الفقي"
},
{
"id": 6666,
"name": "رسالة ابن القيم إلى أحد إخوانه - ط الشرق الأوسط",
"pre": "رسالة ابن القيم إلى أحد إخوانه"
},
{
"id": 6667,
"name": "السلوك لمعرفة دول الملوك",
"q": "Q121080223"
},
{
"id": 6668,
"name": "السلوك في طبقات العلماء والملوك",
"q": "Q116753104"
},
{
"id": 6669,
"name": "مورد اللطافة في من ولي السلطنة والخلافة"
},
{
"id": 6671,
"name": "البدر الطالع بمحاسن من بعد القرن السابع",
"q": "Q125914513"
},
{
"id": 6672,
"name": "الملحق التابع للبدر الطالع بمحاسن من بعد القرن السابع"
},
{
"id": 6674,
"name": "الدرر الكامنة في أعيان المائة الثامنة",
"q": "Q116944989"
},
{
"id": 6674,
"name": "الدرر الكامنة في أعيان المائة الثامنة - ط الهندية الثانية",
"pre": "الدرر الكامنة في أعيان المائة الثامنة",
"q": "Q116944989"
},
{
"id": 6675,
"name": "الضوء اللامع لأهل القرن التاسع",
"q": "Q120763514"
},
{
"id": 6676,
"name": "النور السافر عن أخبار القرن العاشر",
"q": "Q121009395"
},
{
"id": 6677,
"name": "الوافي بالوفيات",
"q": "Q113528574"
},
{
"id": 6678,
"name": "خلاصة الأثر في أعيان القرن الحادي عشر",
"q": "Q132407821"
},
{
"id": 6684,
"name": "المنتقى شرح الموطإ"
},
{
"id": 6686,
"name": "طبقات الصوفية للسلمي ويليه ذكر النسوة المتعبدات الصوفيات",
"q": "Q120762852"
},
{
"id": 6687,
"name": "عيون الأنباء في طبقات الأطباء",
"q": "Q125914528"
},
{
"id": 6696,
"name": "الإنباه على قبائل الرواة",
"q": "Q116971870"
},
{
"id": 6696,
"name": "الإنباه على قبائل الرواة - ت الإبياري",
"pre": "الإنباه على قبائل الرواة",
"q": "Q116971870"
},
{
"id": 6700,
"name": "تلقيح فهوم أهل الأثر"
},
{
"id": 6701,
"name": "فضائل الأندلس وأهلها"
},
{
"id": 6706,
"name": "المحن"
},
{
"id": 6707,
"name": "سفر نامه",
"q": "Q120998959"
},
{
"id": 6708,
"name": "مضمار الحقائق وسر الخلائق"
},
{
"id": 6710,
"name": "منادمة الأطلال ومسامرة الخيال"
},
{
"id": 6717,
"name": "أخبار الوافدات من النساء على معاوية بن أبي سفيان"
},
{
"id": 6718,
"name": "أخبار الوافدين من الرجال على معاوية بن أبي سفيان"
},
{
"id": 6721,
"name": "مسند أبي حنيفة رواية أبي نعيم"
},
{
"id": 6722,
"name": "أخبار المصحفين"
},
{
"id": 6723,
"name": "الشقائق النعمانية في علماء الدولة العثمانية"
},
{
"id": 6724,
"name": "الوفيات - لابن رافع"
},
{
"id": 6725,
"name": "الجواهر المضية في طبقات الحنفية - ط النظامية",
"pre": "الجواهر المضية في طبقات الحنفية",
"suf": "ط النظامية"
},
{
"id": 6729,
"name": "طبقات المفسرين للأدنه وي"
},
{
"id": 6730,
"name": "الديباج المذهب في معرفة أعيان علماء المذهب",
"q": "Q137436547"
},
{
"id": 6733,
"name": "الانتقاء في فضائل الثلاثة الأئمة الفقهاء",
"q": "Q116997656"
},
{
"id": 6736,
"name": "طبقات الشافعية لابن قاضى شهبة",
"q": "Q125914591"
},
{
"id": 6738,
"name": "طبقات فحول الشعراء",
"q": "Q116978120"
},
{
"id": 6739,
"name": "طبقات الشافعية الكبرى للسبكي",
"q": "Q120648510"
},
{
"id": 6741,
"name": "طبقات الفقهاء الشافعية"
},
{
"id": 6743,
"name": "يتيمة الدهر",
"q": "Q115788788"
},
{
"id": 6744,
"name": "بغية الوعاة",
"q": "Q116998587"
},
{
"id": 6744,
"name": "بغية الوعاة في طبقات اللغويين والنحاة",
"q": "Q116998587"
},
{
"id": 6749,
"name": "الترغيب في الدعاء والحث عليه لعبد الغني المقدسي"
},
{
"id": 6752,
"name": "التنبيه على أوهام أبي علي في أماليه"
},
{
"id": 6753,
"name": "الذيل على جزء بقي بن مخلد من أحاديث الحوض"
},
{
"id": 6763,
"name": "المتحابين في الله"
},
{
"id": 6766,
"name": "تعزية المسلم"
},
{
"id": 6768,
"name": "ثواب قضاء حوائج الإخوان"
},
{
"id": 6769,
"name": "ذم الثقلاء"
},
{
"id": 6772,
"name": "عمل اليوم والليلة للنسائي"
},
{
"id": 6780,
"name": "أدب المجالسة وحمد اللسان"
},
{
"id": 6782,
"name": "الرسالة المغنية في السكوت ولزوم البيوت"
},
{
"id": 6785,
"name": "الورع - المروذي",
"q": "Q135412649"
},
{
"id": 6786,
"name": "عيوب النفس"
},
{
"id": 6789,
"name": "الثبات عند الممات"
},
{
"id": 6820,
"name": "الاستقامة",
"q": "Q115800514"
},
{
"id": 6826,
"name": "الزهد والورع والعبادة"
},
{
"id": 6827,
"name": "التحفة العراقية",
"q": "Q115800521"
},
{
"id": 6829,
"name": "جلاء الأفهام - ت الأرنؤوط",
"pre": "جلاء الأفهام"
},
{
"id": 6832,
"name": "الفوائد لابن القيم - ط العلمية",
"pre": "الفوائد لابن القيم"
},
{
"id": 6840,
"name": "مفتاح دار السعادة ومنشور ولاية العلم والإرادة - ط العلمية",
"pre": "مفتاح دار السعادة ومنشور ولاية العلم والإرادة",
"suf": "ط العلمية",
"q": "Q137738973"
},
{
"id": 6841,
"name": "صيغ الحمد"
},
{
"id": 6843,
"name": "سلاح المؤمن في الدعاء"
},
{
"id": 6844,
"name": "تحفة الذاكرين بعدة الحصن الحصين"
},
{
"id": 6847,
"name": "الترغيب والترهيب - المنذري - ط العلمية"
},
{
"id": 6848,
"name": "الكبائر للذهبي"
},
{
"id": 6850,
"name": "مختصر شعب الإيمان"
},
{
"id": 6853,
"name": "آداب النفوس للمحاسبي"
},
{
"id": 6854,
"name": "أدب الطلب ومنتهى الأرب - ت الخشت",
"pre": "أدب الطلب ومنتهى الأرب"
},
{
"id": 6856,
"name": "إيقاظ همم أولي الأبصار للاقتداء بسيد المهاجرين والأنصار"
},
{
"id": 6858,
"name": "التذكرة في الوعظ"
},
{
"id": 6861,
"name": "الحث على طلب العلم والاجتهاد في جمعه"
},
{
"id": 6862,
"name": "العاقبة في ذكر الموت"
},
{
"id": 6864,
"name": "الروض الأنف - ت الوكيل",
"q": "Q115624871"
},
{
"id": 6864,
"name": "الروض الأنف ت الوكيل",
"q": "Q115624871"
},
{
"id": 6864,
"name": "الروض الأنف في شرح سيرة ابن هشام - ت الوكيل",
"q": "Q115624871"
},
{
"id": 6865,
"name": "النصيحة الولدية"
},
{
"id": 6869,
"name": "ديوان أبي إسحاق الإلبيري"
},
{
"id": 6870,
"name": "ذم الهوى"
},
{
"id": 6871,
"name": "رسالة المسترشدين"
},
{
"id": 6873,
"name": "قصيدة عنوان الحكم"
},
{
"id": 6874,
"name": "الأخلاق والسير في مداواة النفوس"
},
{
"id": 6875,
"name": "مقاصد الرعاية لحقوق الله عز وجل"
},
{
"id": 6876,
"name": "منازل السائرين"
},
{
"id": 6878,
"name": "نشر طي التعريف في فضل حملة العلم الشريف والرد على ماقتهم السخيف"
},
{
"id": 6879,
"name": "يقظة أولي الاعتبار"
},
{
"id": 6884,
"name": "السنن والمبتدعات المتعلقة بالأذكار والصلوات"
},
{
"id": 6886,
"name": "قطر الولي على حديث الولي = ولاية الله والطريق إليها"
},
{
"id": 6887,
"name": "ياقوتة الصراط في تفسير غريب القرآن"
},
{
"id": 6890,
"name": "وصية الشيخ السلمي"
},
{
"id": 6893,
"name": "الأمثال من الكتاب والسنة"
},
{
"id": 6895,
"name": "المستقصى في أمثال العرب",
"q": "Q133459747"
},
{
"id": 6896,
"name": "ثمار القلوب في المضاف والمنسوب"
},
{
"id": 6897,
"name": "جمهرة الأمثال",
"q": "Q121787826"
},
{
"id": 6899,
"name": "قصر الأمل لابن أبي الدنيا"
},
{
"id": 6900,
"name": "أحاديث الشعر"
},
{
"id": 6901,
"name": "الحماسة البصرية"
},
{
"id": 6902,
"name": "الحماسة المغربية",
"q": "Q125490885"
},
{
"id": 6903,
"name": "السحر الحلال في الحكم والأمثال"
},
{
"id": 6904,
"name": "المفضليات"
},
{
"id": 6905,
"name": "الأصمعيات"
},
{
"id": 6907,
"name": "شرح ديوان الحماسة للتبريزي"
},
{
"id": 6908,
"name": "شرح ديوان المتنبي المنسوب للعكبري",
"q": "Q110251046"
},
{
"id": 6908,
"name": "شرح ديوان المتنبي للعكبري",
"q": "Q110251046"
},
{
"id": 6909,
"name": "ديوان المعاني",
"q": "Q125516624"
},
{
"id": 6910,
"name": "المغني لابن قدامة - ت التركي",
"pre": "«المغني» لابن قدامة",
"suf": "ت التركي",
"q": "Q130276131"
},
{
"id": 6911,
"name": "عيار الشعر"
},
{
"id": 6917,
"name": "العروض"
},
{
"id": 6919,
"name": "زيارة القبور والاستنجاد بالمقبور"
},
{
"id": 6920,
"name": "درة الغواص في أوهام الخواص"
},
{
"id": 6921,
"name": "سهم الألحاظ في وهم الألفاظ"
},
{
"id": 6922,
"name": "غلط الفقهاء"
},
{
"id": 6923,
"name": "إصلاح غلط المحدثين"
},
{
"id": 6925,
"name": "الألفاظ = الكتابة والتعبير"
},
{
"id": 6933,
"name": "الإتباع والمزاوجة"
},
{
"id": 6934,
"name": "الإتباع - أبو علي القالي"
},
{
"id": 6935,
"name": "الإتباع - السيوطي"
},
{
"id": 6936,
"name": "المزهر في علوم اللغة وأنواعها"
},
{
"id": 6938,
"name": "الأذكياء"
},
{
"id": 6939,
"name": "الشعور بالعور",
"q": "Q135458584"
},
{
"id": 6940,
"name": "المدهش",
"q": "Q134466483"
},
{
"id": 6942,
"name": "المجلى في شرح القواعد المثلى في صفات الله وأسمائه الحسنى"
},
{
"id": 6944,
"name": "روضة العقلاء ونزهة الفضلاء"
},
{
"id": 6945,
"name": "طبائع النساء وما جاء فيها من عجائب وأخبار وأسرار"
},
{
"id": 6948,
"name": "بستان الواعظين ورياض السامعين"
},
{
"id": 6951,
"name": "معاهد التنصيص على شواهد التلخيص",
"q": "Q137612306"
},
{
"id": 6952,
"name": "أخبار الظراف والمتماجنين"
},
{
"id": 6955,
"name": "ريحانة الكتاب ونجعة المنتاب"
},
{
"id": 6956,
"name": "التبصرة بالتجارة في وصف ما يستظرف في البلدان من الأمتعة الرفيعة والأعلاق النفيسة والجواهر الثمينة"
},
{
"id": 6961,
"name": "الجمل في النحو"
},
{
"id": 6965,
"name": "المقتضب"
},
{
"id": 6966,
"name": "اللامات",
"q": "Q125914625"
},
{
"id": 6969,
"name": "شرح شذور الذهب لابن هشام",
"q": "Q116821297"
},
{
"id": 6970,
"name": "شرح قطر الندى وبل الصدى"
},
{
"id": 6972,
"name": "مغني اللبيب عن كتب الأعاريب"
},
{
"id": 6973,
"name": "موصل الطلاب إلى قواعد الإعراب"
},
{
"id": 6974,
"name": "الفعلان - المطبوع خطأ باسم «نقعة الصديان»"
},
{
"id": 6975,
"name": "همع الهوامع في شرح جمع الجوامع"
},
{
"id": 6977,
"name": "اتحاف الفاضل بالفعل المبني لغير الفاعل"
},
{
"id": 6978,
"name": "اعتراض الشرط على الشرط"
},
{
"id": 6979,
"name": "الألفاظ المهموزة"
},
{
"id": 6981,
"name": "رسالة الحدود"
},
{
"id": 6983,
"name": "العدد في اللغة"
},
{
"id": 6984,
"name": "الفصول المفيدة في الواو المزيدة"
},
{
"id": 6986,
"name": "اللباب في علل البناء والإعراب"
},
{
"id": 6987,
"name": "اللمع في العربية لابن جني"
},
{
"id": 6988,
"name": "المسائل السفرية"
},
{
"id": 6989,
"name": "حروف المعاني والصفات"
},
{
"id": 6990,
"name": "رسالة أي المشددة"
},
{
"id": 6991,
"name": "رسالة المباحث المرضية"
},
{
"id": 6992,
"name": "رسالة في اسم الفاعل"
},
{
"id": 6993,
"name": "سبب وضع علم العربية"
},
{
"id": 6994,
"name": "عقود الهمز"
},
{
"id": 6995,
"name": "علل التثنية"
},
{
"id": 6996,
"name": "مسائل خلافية في النحو"
},
{
"id": 6997,
"name": "منازل الحروف"
},
{
"id": 6998,
"name": "إعراب لامية الشنفرى"
},
{
"id": 6999,
"name": "الانتخاب لكشف الأبيات المشكلة الإعراب"
},
{
"id": 7000,
"name": "الفوائد العجيبة في إعراب الكلمات الغريبة - ت حاتم الضامن",
"pre": "الفوائد العجيبة في إعراب الكلمات الغريبة"
},
{
"id": 7001,
"name": "إعراب ما يشكل من ألفاظ الحديث"
},
{
"id": 7002,
"name": "البلغة في الفرق بين المذكر والمؤنث"
},
{
"id": 7003,
"name": "علل النحو"
},
{
"id": 7012,
"name": "غريب الحديث - ابن قتيبة"
},
{
"id": 7014,
"name": "تفسير غريب ما في الصحيحين البخاري ومسلم"
},
{
"id": 7015,
"name": "الفائق في غريب الحديث"
},
{
"id": 7016,
"name": "نظم المتناثر"
},
{
"id": 7028,
"name": "المعجم الوسيط",
"q": "Q110402829"
},
{
"id": 7030,
"name": "تاج العروس من جواهر القاموس",
"q": "Q116052647"
},
{
"id": 7031,
"name": "تهذيب اللغة",
"q": "Q120716567"
},
{
"id": 7032,
"name": "جمهرة اللغة",
"q": "Q136804773"
},
{
"id": 7036,
"name": "الحدود الأنيقة والتعريفات الدقيقة"
},
{
"id": 7037,
"name": "الكليات"
},
{
"id": 7038,
"name": "دستور العلماء = جامع العلوم في اصطلاحات الفنون"
},
{
"id": 7039,
"name": "معجم مقاليد العلوم في الحدود والرسوم"
},
{
"id": 7043,
"name": "تحرير ألفاظ التنبيه"
},
{
"id": 7046,
"name": "اتفاق المباني وافتراق المعاني"
},
{
"id": 7047,
"name": "إكمال الإعلام بتثليث الكلام",
"q": "Q136804496"
},
{
"id": 7048,
"name": "الأزمنة وتلبية الجاهلية"
},
{
"id": 7049,
"name": "الألفاظ المختلفة في المعاني المؤتلفة"
},
{
"id": 7050,
"name": "الحلبة في أسماء الخيل"
},
{
"id": 7051,
"name": "الراموز على الصحاح"
},
{
"id": 7052,
"name": "كتاب السلاح من «الغريب المصنف» ت الضامن"
},
{
"id": 7053,
"name": "العشرات في غريب اللغة"
},
{
"id": 7055,
"name": "الفرق لابن أبي ثابت"
},
{
"id": 7056,
"name": "الفرق للسجستاني"
},
{
"id": 7057,
"name": "اللطائف في اللغة = معجم أسماء الأشياء"
},
{
"id": 7059,
"name": "فلك القاموس"
},
{
"id": 7060,
"name": "في التعريب والمعرب وهو المعروف بحاشية ابن بري"
},
{
"id": 7061,
"name": "كفاية المتحفظ ونهاية المتلفظ في اللغة العربية"
},
{
"id": 7062,
"name": "ما جاء على فعلت وأفعلت بمعنى واحد"
},
{
"id": 7063,
"name": "تصحيح لسان العرب"
},
{
"id": 7225,
"name": "الرد على سير الأوزاعي"
},
{
"id": 7227,
"name": "السياسة لابن سينا"
},
{
"id": 7228,
"name": "السياسة للفارابي"
},
{
"id": 7229,
"name": "السياسة للوزير المغربي"
},
{
"id": 7231,
"name": "السير الصغير - من الأصل لمحمد بن الحسن - ت خدوري"
},
{
"id": 7233,
"name": "المصباح المضي في كتاب النبي الأمي ورسله إلى ملوك الأرض من عربي وعجمي"
},
{
"id": 7235,
"name": "المنهج المسلوك في سياسة الملوك"
},
{
"id": 7236,
"name": "بدائع السلك في طبائع الملك"
},
{
"id": 7237,
"name": "تحرير السلوك في تدبير الملوك"
},
{
"id": 7239,
"name": "تسهيل النظر وتعجيل الظفر في أخلاق الملك"
},
{
"id": 7240,
"name": "تهذيب الرياسة وترتيب السياسة"
},
{
"id": 7241,
"name": "حسن السلوك الحافظ دولة الملوك"
},
{
"id": 7242,
"name": "درر السلوك في سياسة الملوك"
},
{
"id": 7243,
"name": "رسل الملوك ومن يصلح للرسالة والسفارة"
},
{
"id": 7248,
"name": "مناهج التأليف عند العلماء العرب",
"q": "Q123415148"
},
{
"id": 7249,
"name": "مناهل العرفان في علوم القرآن",
"q": "Q116944954"
},
{
"id": 7251,
"name": "منهج الشيخ محمد رشيد رضا في العقيدة"
},
{
"id": 7252,
"name": "منهج القرآن الكريم في دعوة المشركين إلى الإسلام"
},
{
"id": 7254,
"name": "منهج الإمام أحمد في إعلال الأحاديث"
},
{
"id": 7258,
"name": "أساليب الغزو الفكري للعالم الإسلامي"
},
{
"id": 7259,
"name": "أصول مسائل العقيدة عند السلف وعند المبتدعة"
},
{
"id": 7260,
"name": "التحفة المهدية شرح العقيدة التدمرية"
},
{
"id": 7262,
"name": "التلقين في الفقة المالكي"
},
{
"id": 7263,
"name": "الحسبة في الإسلام، أو وظيفة الحكومة الإسلامية"
},
{
"id": 7264,
"name": "الدراري المضية شرح الدرر البهية",
"q": "Q130281104"
},
{
"id": 7265,
"name": "أثر الإيمان في تحصين الأمة الإسلامية ضد الأفكار الهدامة"
},
{
"id": 7266,
"name": "الإتحافات السنية بالأحاديث القدسية ومعه النفحات السلفية بشرح الأحاديث القدسية"
},
{
"id": 7267,
"name": "الأحاديث الواردة في البيوع المنهي عنها"
},
{
"id": 7268,
"name": "إثبات صفة العلو - ابن قدامة",
"q": "Q130633221"
},
{
"id": 7270,
"name": "القواعد والضوابط الفقهية المتضمنة للتيسير"
},
{
"id": 7271,
"name": "المقتنى في سرد الكنى",
"q": "Q125914654"
},
{
"id": 7283,
"name": "القاموس المحيط",
"q": "Q120833288"
},
{
"id": 7287,
"name": "الجبال والأمكنة والمياه"
},
{
"id": 7289,
"name": "مجموع الفتاوى",
"q": "Q115683684"
},
{
"id": 7292,
"name": "تأويل مختلف الحديث"
},
{
"id": 7299,
"name": "المفصل فى تاريخ العرب قبل الإسلام",
"q": "Q120985941"
},
{
"id": 7300,
"name": "تحقيق النصوص ونشرها"
},
{
"id": 7301,
"name": "الجليس الصالح الكافي والأنيس الناصح الشافي"
},
{
"id": 7302,
"name": "الجيم",
"q": "Q136804552"
},
{
"id": 7307,
"name": "ذيل تذكرة الحفاظ للحسيني"
},
{
"id": 7310,
"name": "علم المقاصد الشرعية"
},
{
"id": 7311,
"name": "غاية المريد في علم التجويد"
},
{
"id": 7312,
"name": "التعريفات",
"q": "Q124423369"
},
{
"id": 7313,
"name": "لحظ الألحاظ بذيل طبقات الحفاظ"
},
{
"id": 7314,
"name": "مباحث في التفسير الموضوعي"
},
{
"id": 7315,
"name": "ذيل طبقات الحفاظ للسيوطي"
},
{
"id": 7317,
"name": "مباحث في علوم القرآن لصبحي الصالح"
},
{
"id": 7318,
"name": "مختصر العلو للعلي العظيم"
},
{
"id": 7320,
"name": "معالم تاريخ الشرق الأدني القديم"
},
{
"id": 7323,
"name": "مقدمة في أصول البحث العلمي وتحقيق التراث"
},
{
"id": 7326,
"name": "تذكره الآباء وتسليه الأبناء = الدراري في ذكر الزراري"
},
{
"id": 7328,
"name": "نشأة النحو وتاريخ أشهر النحاة"
},
{
"id": 7329,
"name": "نصب المجانيق لنسف قصة الغرانيق"
},
{
"id": 7331,
"name": "نظم حكم الأمويين ورسومهم في الأندلس"
},
{
"id": 7332,
"name": "نهاية السول شرح منهاج الوصول"
},
{
"id": 7334,
"name": "وسطية أهل السنة بين الفرق"
},
{
"id": 7335,
"name": "آل رسول الله وأولياؤه",
"q": "Q124300764"
},
{
"id": 7339,
"name": "القول المفيد على كتاب التوحيد"
},
{
"id": 7340,
"name": "الكنى والأسماء - للإمام مسلم",
"q": "Q134778585"
},
{
"id": 7341,
"name": "اللمحة في شرح الملحة"
},
{
"id": 7342,
"name": "السيل الجرار المتدفق على حدائق الأزهار"
},
{
"id": 7344,
"name": "الصارم المسلول على شاتم الرسول",
"q": "Q115910450"
},
{
"id": 7345,
"name": "الصواعق المرسلة على الجهمية والمعطلة - ط العاصمة"
},
{
"id": 7349,
"name": "الشذا الفياح من علوم ابن الصلاح"
},
{
"id": 7350,
"name": "العرش للذهبي"
},
{
"id": 7351,
"name": "العلل المتناهية في الأحاديث الواهية"
},
{
"id": 7357,
"name": "الأسلوب"
},
{
"id": 7360,
"name": "الإقناع في فقه الإمام أحمد بن حنبل"
},
{
"id": 7361,
"name": "الانتصار في الرد على المعتزلة القدرية الأشرار"
},
{
"id": 7362,
"name": "الإنصاف في مسائل الخلاف بين النحويين البصريين والكوفيين"
},
{
"id": 7365,
"name": "الأصول في النحو"
},
{
"id": 7366,
"name": "الأمثال القرآنية القياسية المضروبة للإيمان بالله"
},
{
"id": 7367,
"name": "الكافي في فقه أهل المدينة"
},
{
"id": 7368,
"name": "حاشية الآجرومية"
},
{
"id": 7369,
"name": "حاشية الدرة المضية في عقد الفرقة المرضية"
},
{
"id": 7370,
"name": "أحكام القرآن للجصاص ط العلمية",
"q": "Q121076031"
},
{
"id": 7371,
"name": "حاشية مقدمة التفسير لابن قاسم"
},
{
"id": 7372,
"name": "معالم أصول الفقه عند أهل السنة والجماعة"
},
{
"id": 7373,
"name": "موضوعات صالحة للخطب والوعظ",
"q": "Q124300779"
},
{
"id": 7374,
"name": "وظائف رمضان"
},
{
"id": 7375,
"name": "العمدة من الفوائد والآثار الصحاح في مشيخة شهدة"
},
{
"id": 7377,
"name": "فقه المعاملات"
},
{
"id": 7380,
"name": "الإيضاح في علوم البلاغة"
},
{
"id": 7414,
"name": "زهر الأكم في الأمثال والحكم",
"q": "Q133820208"
},
{
"id": 7418,
"name": "لب اللباب في تحرير الأنساب"
},
{
"id": 7434,
"name": "التحفة اللطيفة في تاريخ المدينة الشريفة - ط العلمية",
"pre": "التحفة اللطيفة في تاريخ المدينة الشريفة",
"suf": "ط العلمية"
},
{
"id": 7435,
"name": "التدوين في أخبار قزوين"
},
{
"id": 7436,
"name": "التربية الإسلامية أصولها وتطورها في البلاد العربية"
},
{
"id": 7439,
"name": "البرهان في أصول الفقه"
},
{
"id": 7441,
"name": "الثمر الداني شرح رسالة ابن أبي زيد القيرواني"
},
{
"id": 7444,
"name": "الروضة الندية شرح الدرر البهية ط المعرفة"
},
{
"id": 7447,
"name": "الروايات التفسيرية في فتح الباري"
},
{
"id": 7450,
"name": "سيرة ابن هشام - ت طه عبد الرؤوف سعد"
},
{
"id": 7452,
"name": "الضوء اللامع المبين عن مناهج المحدثين"
},
{
"id": 7454,
"name": "قصة الأدب في الحجاز",
"q": "Q125914693"
},
{
"id": 7455,
"name": "علم الفرائض والمواريث في الشريعة الإسلامية والقانون السوري"
},
{
"id": 7456,
"name": "تذكرة الطالبين في بيان الموضوع وأصناف الوضاعين"
},
{
"id": 7460,
"name": "المحرر في الفقه على مذهب أحمد - ومعه النكت والفوائد السنية"
},
{
"id": 7467,
"name": "المجموع في ترجمة العلامة المحدث الشيخ حماد بن محمد الأنصاري (رحمه الله)"
},
{
"id": 7468,
"name": "المدخل إلى علم الجغرافيا والبيئة"
},
{
"id": 7470,
"name": "60 سؤال وجواب في أحكام الحيض"
},
{
"id": 7472,
"name": "أبو بكر الصديق أول الخلفاء الراشدين - ت شيحا",
"pre": "أبو بكر الصديق أول الخلفاء الراشدين"
},
{
"id": 7473,
"name": "أبيات مختارة تشتمل على عقيدة، نصائح، مواعظ، وصايا، حكم، أمثال، أدب"
},
{
"id": 7477,
"name": "آثار الشيخ محمد بن عبد الوهاب",
"q": "Q125946023"
},
{
"id": 7478,
"name": "دلائل النبوة - البيهقي",
"q": "Q121009416"
},
{
"id": 7478,
"name": "دلائل النبوة للبيهقي",
"q": "Q121009416"
},
{
"id": 7479,
"name": "أثر الدعوة الوهابية في الإصلاح الديني والعمراني في جزيرة العرب وغيرها",
"q": "Q124728565"
},
{
"id": 7480,
"name": "موارد الظمآن لدروس الزمان"
},
{
"id": 7481,
"name": "أثر العبادات في حياة المسلم"
},
{
"id": 7482,
"name": "أثر دعوة الشيخ محمد بن عبد الوهاب في حركة عثمان بن فودي الإصلاحية في غرب أفريقيا (مطبوع ضمن بحوث ندوة دعوة الشيخ محمد بن عبد الوهاب)"
},
{
"id": 7485,
"name": "أحاديث في الفتن والحوادث (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الحادي عشر)"
},
{
"id": 7486,
"name": "أحاديث في الفتن والحوادث ط القاسم",
"q": "Q131831706"
},
{
"id": 7487,
"name": "احتساب الشيخ محمد بن عبد الوهاب (رحمه الله)"
},
{
"id": 7488,
"name": "النفح الشذي في شرح جامع الترمذي"
},
{
"id": 7489,
"name": "أحكام تمني الموت (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثالث)"
},
{
"id": 7490,
"name": "أحكام عصاة المؤمنين من كلام شيخ الإسلام ابن تيمية - كجك"
},
{
"id": 7491,
"name": "اختلاف أقوال النقاد في الرواة المختلف فيهم مع دراسة هذه الظاهره عند ابن معين"
},
{
"id": 7492,
"name": "اختلاف الفقهاء لابن جرير"
},
{
"id": 7494,
"name": "آداب الزفاف في السنة المطهرة",
"q": "Q115788182"
},
{
"id": 7495,
"name": "آداب المشي إلى الصلاة - ضمن مؤلفات الشيخ محمد بن عبد الوهاب"
},
{
"id": 7496,
"name": "أدب الموعظة"
},
{
"id": 7497,
"name": "إدراك المعلم للأساليب التربوية الفاعلة في حلقات الجمعيات الخيرية لتعليم وتحفيظ القرآن الكريم"
},
{
"id": 7498,
"name": "أذكار الطهارة والصلاة"
},
{
"id": 7499,
"name": "أربع قواعد تدور الأحكام عليها ويليها نبذة في اتباع النصوص مع احترام العلماء (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثالث)"
},
{
"id": 7500,
"name": "أزواج بالكذب"
},
{
"id": 7501,
"name": "أسئلة وأجوبة في إعراب القرآن"
},
{
"id": 7502,
"name": "أسرار العربية"
},
{
"id": 7503,
"name": "أسماء الله وصفاته وموقف أهل السنه منها"
},
{
"id": 7504,
"name": "أصول الإيمان لمحمد بن عبد الوهاب - ضمن مجموع مؤلفاته"
},
{
"id": 7506,
"name": "اعتقاد أئمة السلف أهل الحديث"
},
{
"id": 7508,
"name": "إصلاح المنطق"
},
{
"id": 7509,
"name": "أصول الدين عند الإمام أبي حنيفة"
},
{
"id": 7512,
"name": "أعلام السيرة النبوية في القرن الثاني للهجرة"
},
{
"id": 7513,
"name": "إغاثة اللهفان في حكم طلاق الغضبان - ت عفيفي",
"pre": "إغاثة اللهفان في حكم طلاق الغضبان"
},
{
"id": 7514,
"name": "أغلو في بعض القرابة وجفاء في الأنبياء والصحابة"
},
{
"id": 7515,
"name": "افتراءات المنصرين على القرآن الكريم أنه يؤيد زعم ألوهية المسيح عليه السلام"
},
{
"id": 7516,
"name": "إقامة الحجة والدليل وإيضاح المحجة والسبيل"
},
{
"id": 7517,
"name": "معجم الصواب اللغوي"
},
{
"id": 7520,
"name": "الإتحاف فى الرد على الصحاف"
},
{
"id": 7523,
"name": "الآثار المروية في صفة المعية"
},
{
"id": 7524,
"name": "الأجوبة النافعة عن أسئلة لجنة مسجد الجامعة",
"q": "Q115788220"
},
{
"id": 7525,
"name": "الأحاديث العوالي من جزء ابن عرفة العبدي",
"q": "Q115798528"
},
{
"id": 7527,
"name": "الأخلاق الفاضلة قواعد ومنطلقات لاكتسابها"
},
{
"id": 7528,
"name": "الأدب الصغير والأدب الكبير"
},
{
"id": 7529,
"name": "الإرشاد إلى صحيح الاعتقاد والرد على أهل الشرك والإلحاد",
"q": "Q136687195"
},
{
"id": 7530,
"name": "الأسباب المفيدة في اكتساب الأخلاق الحميدة"
},
{
"id": 7531,
"name": "حديث الجويباري في مسائل عبد الله بن سلام للبيهقي"
},
{
"id": 7532,
"name": "الأحاديث المشكلة الواردة في تفسير القرآن الكريم"
},
{
"id": 7533,
"name": "نونية القحطاني"
},
{
"id": 7534,
"name": "الغرة المنيفة في تحقيق بعض مسائل الإمام أبي حنيفة"
},
{
"id": 7535,
"name": "الفاحشة عمل قوم لوط"
},
{
"id": 7536,
"name": "الفتنة ووقعة الجمل"
},
{
"id": 7537,
"name": "السنة النبوية ومكانتها - نور قاروت"
},
{
"id": 7538,
"name": "السنة النبوية ومكانتها - با جمعان"
},
{
"id": 7539,
"name": "الاستشراق وموقفه من السنة النبوية"
},
{
"id": 7540,
"name": "الإسراء والمعراج وذكر أحاديثهما وتخريجها وبيان صحيحها",
"q": "Q115788257"
},
{
"id": 7543,
"name": "الأضرار الناجمة عن تعاطي المسكرات والمخدرات"
},
{
"id": 7545,
"name": "الأعياد وأثرها على المسلمين"
},
{
"id": 7546,
"name": "الاقتصاد في الاعتقاد للمقدسي"
},
{
"id": 7547,
"name": "الألفاظ والمصطلحات المتعلقة بتوحيد الربوبية"
},
{
"id": 7548,
"name": "الإمام أبو الحسن الدارقطني وآثاره العلمية"
},
{
"id": 7553,
"name": "الانتصار لأهل السنة والحديث في رد أباطيل حسن المالكي",
"q": "Q138840835"
},
{
"id": 7554,
"name": "الانتصار لحزب الله الموحدين والرد على المجادل عن المشركين"
},
{
"id": 7556,
"name": "الإنصاف في حقيقة الأولياء ومالهم من الكرامات والألطاف"
},
{
"id": 7557,
"name": "الاهتمام بالسنة النبوية بلغة الهوسا"
},
{
"id": 7558,
"name": "الإهتمام بالسيرة النبوية باللغة الإنجليزية"
},
{
"id": 7559,
"name": "الإهتمام بالسيرة النبوية باللغة البنغالية"
},
{
"id": 7560,
"name": "الإهتمام بالسيرة النبوية باللغة الروسية"
},
{
"id": 7561,
"name": "الاهتمام بالسيرة النبوية باللغة الفرنسية (عرض وتحليل)"
},
{
"id": 7562,
"name": "قوت المغتذي على جامع الترمذي"
},
{
"id": 7563,
"name": "الإيمان بين السلف والمتكلمين"
},
{
"id": 7564,
"name": "الإيمان لابن تيمية",
"q": "Q115285459"
},
{
"id": 7565,
"name": "البحث الصريح في أيما هو الدين الصحيح"
},
{
"id": 7566,
"name": "البحث المسفر عن تحريم كل مسكر ومفتر"
},
{
"id": 7567,
"name": "البراهين الإسلامية في رد الشبهة الفارسية"
},
{
"id": 7568,
"name": "البيان المبدي لشناعة القول المجدي"
},
{
"id": 7569,
"name": "البيان والإشهار لكشف زيغ الملحد الحاج مختار",
"q": "Q123587204"
},
{
"id": 7570,
"name": "البيهقي وموقفه من الإلهيات"
},
{
"id": 7571,
"name": "البيوع المحرمة والمنهي عنها"
},
{
"id": 7572,
"name": "التبيان في أيمان القرآن - ت الفقي",
"pre": "التبيان في أيمان القرآن"
},
{
"id": 7573,
"name": "التبيين لدعوات المرضى والمصابين"
},
{
"id": 7574,
"name": "التحذير من تعظيم الآثار غير المشروعة"
},
{
"id": 7575,
"name": "التحفة السنية شرح منظومة ابن أبي داود الحائية"
},
{
"id": 7579,
"name": "التصنيف في السنة النبوية وعلومها في القرن الخامس الهجري"
},
{
"id": 7580,
"name": "التصنيف في السنة النبوية"
},
{
"id": 7581,
"name": "التقييد والإيضاح شرح مقدمة ابن الصلاح"
},
{
"id": 7582,
"name": "البلاغة 2 - المعاني - جامعة المدينة"
},
{
"id": 7583,
"name": "التمسك بالقرآن الكريم وأثره في حياة المسلمين"
},
{
"id": 7585,
"name": "التحرير الأدبي"
},
{
"id": 7586,
"name": "أثر علل الحديث في اختلاف الفقهاء"
},
{
"id": 7587,
"name": "السنة النبوية ومكانتها - رقية نياز"
},
{
"id": 7589,
"name": "التنبيه في الفقه الشافعي"
},
{
"id": 7590,
"name": "التنبيهات المختصرة شرح الواجبات المتحتمات المعرفة"
},
{
"id": 7591,
"name": "التنجيم والمنجمون وحكم ذلك في الإسلام"
},
{
"id": 7592,
"name": "التوسل أنواعه وأحكامه",
"q": "Q115788441"
},
{
"id": 7593,
"name": "التوضيح المفيد لمسائل كتاب التوحيد"
},
{
"id": 7597,
"name": "التوضيح عن توحيد الخلاق في جواب أهل العراق",
"q": "Q124423968"
},
{
"id": 7598,
"name": "السنة النبوية وحي - أبو لبابة بن الطاهر حسين"
},
{
"id": 7599,
"name": "السنة النبوية وحي - آيت سعيد"
},
{
"id": 7600,
"name": "السنة النبوية وحي - شيخة بنت مفرج"
},
{
"id": 7603,
"name": "الجواهر المضية لمجدد الدعوة النجدية"
},
{
"id": 7604,
"name": "الحبة السوداء في الحديث النبوي والطب الحديث"
},
{
"id": 7605,
"name": "الحث على اتباع السنة والتحذير من البدع وبيان خطرها"
},
{
"id": 7606,
"name": "الحج والعمرة والزيارة"
},
{
"id": 7607,
"name": "الحديث حجة بنفسه في العقائد والأحكام"
},
{
"id": 7608,
"name": "الحركة الوهابية (رد على مقال لمحمد البهى في نقد الوهابية)"
},
{
"id": 7609,
"name": "الحسنة والسيئة"
},
{
"id": 7610,
"name": "الحيدة والاعتذار في الرد على من قال بخلق القرآن"
},
{
"id": 7611,
"name": "السنة النبوية وحي - خليل خاطر"
},
{
"id": 7612,
"name": "الخطب المنبرية (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثاني عشر)"
},
{
"id": 7613,
"name": "الخلاف بين العلماء"
},
{
"id": 7614,
"name": "الدرة البهية شرح القصيدة التائية في حل المشكلة القدرية"
},
{
"id": 7615,
"name": "الدعوة الإصلاحية في بلاد نجد على يد الإمام محمد بن عبد الوهاب وأعلامها من بعده"
},
{
"id": 7616,
"name": "الدعوة إلى التمسك بالقرآن الكريم وأثره في حياة المسلم"
},
{
"id": 7617,
"name": "الدفاع عن الصحابي أبي بكرة ومروياته والاستدلال لمنع ولاية النساء على الرجال"
},
{
"id": 7618,
"name": "الذكر الجماعي بين الاتباع والابتداع"
},
{
"id": 7620,
"name": "الرد على البردة"
},
{
"id": 7623,
"name": "الرد على الجهمية والزنادقة للإمام أحمد ت صبري"
},
{
"id": 7624,
"name": "الرد على الرفاعي والبوطي في كذبهما على أهل السنة ودعوتهما إلى البدع والضلال"
},
{
"id": 7625,
"name": "الرد على شبهات المستعينين بغير الله"
},
{
"id": 7626,
"name": "الرد على المنطقيين",
"q": "Q115910425"
},
{
"id": 7627,
"name": "الرد على مزاعم المستشرقين جولد تسهير ويوسف شاخت ومن أيدهما من المستغربين"
},
{
"id": 7629,
"name": "الرسائل الشخصية (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء السادس)",
"q": "Q125429273"
},
{
"id": 7630,
"name": "عن الرسائل الشخصية للشيخ محمد بن عبد الوهاب (مطبوع ضمن بحوث ندوة دعوة الشيخ محمد بن عبد الوهاب، الجزء الأول)"
},
{
"id": 7631,
"name": "الرسالة الأكملية في ما يجب لله من صفات الكمال",
"q": "Q115910671"
},
{
"id": 7632,
"name": "الرسالة التبوكية زاد المهاجر إلى ربه - ت غازي",
"pre": "الرسالة التبوكية زاد المهاجر إلى ربه"
},
{
"id": 7635,
"name": "الرسالة المدنية في تحقيق المجاز والحقيقة في صفات الله (مطبوع ضمن الفتوى الحموية الكبرى)",
"q": "Q115910650"
},
{
"id": 7636,
"name": "الرسالة المستطرفة لبيان مشهور كتب السنة المشرفة",
"q": "Q135284817"
},
{
"id": 7637,
"name": "الرسالة المفيدة"
},
{
"id": 7639,
"name": "الزواج"
},
{
"id": 7640,
"name": "السابق واللاحق في تباعد ما بين وفاة راويين عن شيخ واحد"
},
{
"id": 7641,
"name": "السرايا والبعوث النبوية حول المدينة ومكة"
},
{
"id": 7642,
"name": "الفهرست",
"q": "Q121001589"
},
{
"id": 7642,
"name": "الفهرست - ت إبراهيم رمضان",
"pre": "الفهرست",
"suf": "ت إبراهيم رمضان",
"q": "Q121001589"
},
{
"id": 7645,
"name": "السيرة النبوية عند الهيثمي في كتابه مجمع الزوائد ومنبع الفوائد"
},
{
"id": 7646,
"name": "السيرة النبوية في دائرة المعارف البريطانية"
},
{
"id": 7647,
"name": "السيرة النبوية من خلال أهم كتب التفسير"
},
{
"id": 7648,
"name": "الشبهات التي أثيرت حول دعوة الشيخ محمد بن عبد الوهاب (مطبوع ضمن بحوث ندوة دعوة الشيخ محمد بن عبد الوهاب)"
},
{
"id": 7649,
"name": "الشبهات المزعومة حول القرآن الكريم في دائرتي المعارف الإسلامية والبريطانية"
},
{
"id": 7650,
"name": "الشماريخ في علم التاريخ"
},
{
"id": 7651,
"name": "الشيخ عبد الرحمن بن سعدي وجهوده في تو ضيح العقيدة"
},
{
"id": 7652,
"name": "الشيخ عبد العزيز بن باز رحمه الله نموذج من الرعيل الأول"
},
{
"id": 7653,
"name": "الشيخ عمر بن محمد فلاته رحمه الله وكيف عرفته",
"q": "Q118109067"
},
{
"id": 7654,
"name": "الشيخ محمد بن عبد الوهاب المجدد المفترى عليه"
},
{
"id": 7656,
"name": "الشيخ الإمام محمد بن عبد الوهاب ومنهجه في مباحث العقيدة"
},
{
"id": 7659,
"name": "الشيخ محمد بن عثيمين من العلماء الربانيين"
},
{
"id": 7660,
"name": "الصفات الإلهية تعريفها، أقسامها"
},
{
"id": 7661,
"name": "الصلاة - ابن القيم - ط زكريا يوسف",
"pre": "الصلاة لابن القيم"
},
{
"id": 7662,
"name": "الصلاة وصف مفصل للصلاة بمقدماتها مقرونة بالدليل من الكتاب والسنة، وبيان لأحكامها وآدابها وشروطها وسننها من التكبير حتى التسليم"
},
{
"id": 7663,
"name": "الصواعق المرسلة الشهابية على الشبه الداحضة الشامية"
},
{
"id": 7664,
"name": "الضياء الشارق في رد شبهات الماذق المارق"
},
{
"id": 7666,
"name": "الطبقات الكبرى - متمم التابعين"
},
{
"id": 7668,
"name": "الشيخ محمد بن عبد الوهاب في مرآة علماء الشرق والغرب"
},
{
"id": 7669,
"name": "شجرة النور الزكية في طبقات المالكية",
"q": "Q131310565"
},
{
"id": 7691,
"name": "تحفة الفقهاء",
"q": "Q130271121"
},
{
"id": 7729,
"name": "البحر الذي زخر في شرح ألفية الأثر - قسم 1 - ت الأندونوسي"
},
{
"id": 7749,
"name": "الدرة المضية في القراءات الثلاث المتتمة للعشر"
},
{
"id": 7754,
"name": "متن الشاطبية = حرز الأماني ووجه التهاني في القراءات السبع"
},
{
"id": 7755,
"name": "الكرم والجود للبرجلاني"
},
{
"id": 7767,
"name": "الإيمان - ابن أبي شيبة",
"pre": "الإيمان لابن أبي شيبة"
},
{
"id": 7776,
"name": "صحيفة همام بن منبه"
},
{
"id": 7777,
"name": "العلم - زهير بن حرب",
"pre": "العلم لزهير بن حرب"
},
{
"id": 7795,
"name": "متن «طيبة النشر» في القراءات العشر"
},
{
"id": 7798,
"name": "تفسير الطبري = جامع البيان ط هجر",
"q": "Q97221368"
},
{
"id": 7798,
"name": "تفسير الطبري جامع البيان - ت التركي",
"pre": "تفسير الطبري",
"q": "Q97221368"
},
{
"id": 7798,
"name": "تفسير الطبري جامع البيان - ط هجر",
"q": "Q97221368"
},
{
"id": 7807,
"name": "أحكام الصيام والقيام وزكاة الفطر"
},
{
"id": 7808,
"name": "شرح الحديث المقتفى في مبعث النبي المصطفى",
"q": "Q135689251"
},
{
"id": 7818,
"name": "الإملاء والترقيم في الكتابة العربية"
},
{
"id": 7819,
"name": "من حديث ابن العسكري عن شيوخه"
},
{
"id": 7822,
"name": "أشعار أولاد الخلفاء وأخبارهم"
},
{
"id": 7830,
"name": "خاص الخاص"
},
{
"id": 7834,
"name": "الرد الجميل على المشككين في الإسلام من القرآن والتوراة والإنجيل والعلم"
},
{
"id": 7835,
"name": "التحصين من كيد الشياطين"
},
{
"id": 7840,
"name": "ملحة الإعراب"
},
{
"id": 7844,
"name": "الحذر من السحر"
},
{
"id": 7849,
"name": "إشارات الإعجاز"
},
{
"id": 7852,
"name": "الدليل المغني لشيوخ الإمام أبي الحسن الدارقطني"
},
{
"id": 7853,
"name": "نثر الدر في المحاضرات"
},
{
"id": 7861,
"name": "السنن الكبرى - البيهقي - ط العلمية",
"pre": "السنن الكبرى - البيهقي",
"suf": "ط العلمية"
},
{
"id": 7867,
"name": "طبقات الشعراء لابن المعتز",
"q": "Q134476353"
},
{
"id": 7891,
"name": "شرح السنة للبغوي",
"q": "Q120152015"
},
{
"id": 7895,
"name": "سنن الترمذي - ت بشار",
"pre": "سنن الترمذي",
"suf": "ت بشار"
},
{
"id": 7911,
"name": "حديث الدراج"
},
{
"id": 8061,
"name": "مكائد الشيطان"
},
{
"id": 8071,
"name": "ذم الكذب - من الصمت وآداب اللسان"
},
{
"id": 8137,
"name": "مسائل الجاهلية"
},
{
"id": 8140,
"name": "موطأ مالك - رواية أبي مصعب الزهري"
},
{
"id": 8150,
"name": "ذكر وتذكير"
},
{
"id": 8156,
"name": "بيان المختصر شرح مختصر ابن الحاجب"
},
{
"id": 8173,
"name": "رسوم دار الخلافة"
},
{
"id": 8175,
"name": "مناهج التربية أسسها وتطبيقاتها"
},
{
"id": 8176,
"name": "مرقاة المفاتيح شرح مشكاة المصابيح",
"q": "Q120490014"
},
{
"id": 8178,
"name": "الإبانة عن أصول الديانة - ت فوقية",
"pre": "الإبانة عن أصول الديانة",
"suf": "ت فوقية",
"q": "Q123558168"
},
{
"id": 8180,
"name": "الرسالة للشافعي"
},
{
"id": 8182,
"name": "الفروق للكرابيسي"
},
{
"id": 8183,
"name": "بدائع الصنائع في ترتيب الشرائع"
},
{
"id": 8184,
"name": "أخبار الراضي بالله والمتقي لله = تاريخ الدولة العباسية",
"q": "Q117304324"
},
{
"id": 8185,
"name": "آداب الأكل"
},
{
"id": 8186,
"name": "آداب العشرة وذكر الصحبة والأخوة"
},
{
"id": 8187,
"name": "أسرار البلاغة - ت محمود شاكر"
},
{
"id": 8188,
"name": "أسواق الذهب",
"q": "Q136259420"
},
{
"id": 8189,
"name": "أشعار النساء"
},
{
"id": 8190,
"name": "إعتاب الكتاب"
},
{
"id": 8194,
"name": "التمهيد في علم التجويد"
},
{
"id": 8195,
"name": "الموقظة - ت أبي غدة",
"pre": "الموقظة",
"suf": "ت أبي غدة"
},
{
"id": 8196,
"name": "أمالي اليزيدي"
},
{
"id": 8197,
"name": "خلاصة الكلام شرح عمدة الأحكام"
},
{
"id": 8199,
"name": "مفهوم التفسير والتأويل والاستنباط والتدبر والمفسر"
},
{
"id": 8200,
"name": "نزهة الجلساء في أشعار النساء"
},
{
"id": 8202,
"name": "أمالي الباغندي"
},
{
"id": 8203,
"name": "الآداب للبيهقي",
"q": "Q124616600"
},
{
"id": 8204,
"name": "الأربعون حديثا للآجري"
},
{
"id": 8205,
"name": "الأربعون للنسوي"
},
{
"id": 8206,
"name": "الإبانة الكبرى - ابن بطة",
"q": "Q115787867"
},
{
"id": 8207,
"name": "الأمر بالمعروف والنهي عن المنكر- ابن أبي الدنيا"
},
{
"id": 8208,
"name": "البدع والنهي عنها"
},
{
"id": 8209,
"name": "الترغيب في فضائل الأعمال وثواب ذلك لابن شاهين"
},
{
"id": 8210,
"name": "التوحيد لابن منده - ت الفقيهي",
"pre": "التوحيد لابن منده",
"suf": "ت الفقيهي",
"q": "Q124619146"
},
{
"id": 8212,
"name": "الجمعة وفضلها لأحمد بن علي المروزي"
},
{
"id": 8213,
"name": "الحث على التجارة - من «الجامع» للخلال - ت الحداد",
"pre": "الحث على التجارة - من «الجامع» للخلال",
"suf": "ت الحداد"
},
{
"id": 8215,
"name": "الزهد لأبي داود"
},
{
"id": 8216,
"name": "الزهد لابن أبي الدنيا",
"q": "Q125499689"
},
{
"id": 8218,
"name": "القراءة خلف الإمام للبخاري"
},
{
"id": 8219,
"name": "القضاء لسريج بن يونس"
},
{
"id": 8220,
"name": "اليقين لابن أبي الدنيا"
},
{
"id": 8221,
"name": "تثبيت الإمامة وترتيب الخلافة لأبي نعيم الأصبهاني"
},
{
"id": 8222,
"name": "تحريم النرد والشطرنج والملاهي للآجري"
},
{
"id": 8223,
"name": "تخريج الأحاديث المرفوعة المسندة في كتاب التاريخ الكبير"
},
{
"id": 8224,
"name": "تسمية ما انتهى إلينا من الرواه عن سعيد بن منصور لأبي نعيم"
},
{
"id": 8225,
"name": "جزء فيه مجلسان من إملاء النسائي"
},
{
"id": 8226,
"name": "جزء من حديث ابن شاهين"
},
{
"id": 8227,
"name": "حديث أبي الفضل الزهري"
},
{
"id": 8228,
"name": "ذم البغى لابن أبي الدنيا"
},
{
"id": 8229,
"name": "معاني القراءات للأزهري"
},
{
"id": 8230,
"name": "ذم الملاهي لابن أبي الدنيا"
},
{
"id": 8232,
"name": "رؤية الله لابن النحاس"
},
{
"id": 8233,
"name": "سبعة مجالس من أمالي أبي طاهر المخلص"
},
{
"id": 8234,
"name": "صفة الجنة لابن أبي الدنيا ت سليم"
},
{
"id": 8235,
"name": "صفة النفاق وذم المنافقين للفريابي"
},
{
"id": 8236,
"name": "غرائب مالك بن أنس لابن المظفر"
},
{
"id": 8237,
"name": "فضائل الخلفاء الراشدين لأبي نعيم الأصبهاني"
},
{
"id": 8238,
"name": "فضائل الصحابة للدارقطني"
},
{
"id": 8239,
"name": "فضل الرمي وتعليمه للطبراني"
},
{
"id": 8240,
"name": "فوائد أبي يعلى الخليلي"
},
{
"id": 8241,
"name": "ذم الغيبة والنميمة لابن أبي الدنيا"
},
{
"id": 8242,
"name": "كلام الليالي والأيام لابن أبي الدنيا"
},
{
"id": 8243,
"name": "مساوئ الأخلاق للخرائطي"
},
{
"id": 8244,
"name": "معجم ابن المقرئ"
},
{
"id": 8245,
"name": "أدب النفوس للآجري"
},
{
"id": 8246,
"name": "الأربعون على مذهب المتحققين من الصوفية لأبي نعيم الأصبهاني"
},
{
"id": 8247,
"name": "الأربعون في شيوخ الصوفية للماليني"
},
{
"id": 8248,
"name": "الأمر بالمعروف والنهي عن المنكر - من «الجامع» للخلال"
},
{
"id": 8249,
"name": "تاريخ داريا - عبد الجبار الخولاني"
},
{
"id": 8251,
"name": "البعث لابن أبي داود"
},
{
"id": 8252,
"name": "البيتوتة"
},
{
"id": 8253,
"name": "التوبة لابن أبي الدنيا"
},
{
"id": 8254,
"name": "التوكل على الله لابن أبي الدنيا"
},
{
"id": 8255,
"name": "الدعاء - المحاملي"
},
{
"id": 8256,
"name": "الرقة والبكاء لابن أبي الدنيا"
},
{
"id": 8257,
"name": "إبطال الحيل لابن بطة",
"q": "Q115785568"
},
{
"id": 8258,
"name": "إثبات عذاب القبر للبيهقي",
"q": "Q115785709"
},
{
"id": 8259,
"name": "الصبر والثواب عليه لابن أبي الدنيا"
},
{
"id": 8266,
"name": "العقوبات لابن أبي الدنيا"
},
{
"id": 8267,
"name": "الفوائد المنتقاة العوالي الحسان للسمرقندي"
},
{
"id": 8268,
"name": "الفوائد لأبي الشيخ الأصبهاني"
},
{
"id": 8269,
"name": "القبل والمعانقة والمصافحة لابن الأعرابي"
},
{
"id": 8271,
"name": "القراءة عند القبور - من «الجامع» للخلال"
},
{
"id": 8272,
"name": "أحاديث الشاموخي"
},
{
"id": 8273,
"name": "المطر والرعد والبرق لابن أبي الدنيا"
},
{
"id": 8274,
"name": "المنتقى من كتاب الطبقات لأبي عروبة الحراني"
},
{
"id": 8275,
"name": "ثلاثة مجالس من أمالي ابن مردويه"
},
{
"id": 8276,
"name": "أحكام العيدين للفريابي"
},
{
"id": 8279,
"name": "سحر البلاغة وسر البراعة"
},
{
"id": 8305,
"name": "مرزبان نامه"
},
{
"id": 8314,
"name": "العواصم من القواصم ط دار الجيل"
},
{
"id": 8316,
"name": "النكت على كتاب ابن الصلاح لابن حجر",
"q": "Q136669500"
},
{
"id": 8317,
"name": "مصرع التصوف = تنبيه الغبي إلى تكفير ابن عربي وتحذير العباد من أهل العناد ببدعة الاتحاد"
},
{
"id": 8320,
"name": "تفسير السمعاني"
},
{
"id": 8323,
"name": "غياث الأمم في التياث الظلم"
},
{
"id": 8338,
"name": "الثالث والثمانون من الفوائد الأفراد"
},
{
"id": 8340,
"name": "الغذاء والتغذية"
},
{
"id": 8343,
"name": "نظرية المقاصد عند الإمام الشاطبي"
},
{
"id": 8345,
"name": "سياست نامه = سير الملوك"
},
{
"id": 8346,
"name": "تفسير الماوردي = النكت والعيون"
},
{
"id": 8349,
"name": "معرفة القراء الكبار على الطبقات والأعصار",
"q": "Q121009887"
},
{
"id": 8350,
"name": "كتابة البحث العلمي صياغة جديدة"
},
{
"id": 8352,
"name": "شرح العقيدة الطحاوية - ط الرسالة",
"pre": "شرح العقيدة الطحاوية"
},
{
"id": 8353,
"name": "لوامع الأنوار البهية",
"q": "Q133824076"
},
{
"id": 8354,
"name": "تنشئة الطفل وسبل الوالدين في معاملته ومواجهة مشكلاته"
},
{
"id": 8360,
"name": "مشكاة المصابيح",
"q": "Q125470000"
},
{
"id": 8361,
"name": "السنن الكبرى - النسائي - ط الرسالة",
"q": "Q115641605"
},
{
"id": 8362,
"name": "شفاء الغرام بأخبار البلد الحرام",
"q": "Q121259276"
},
{
"id": 8363,
"name": "مختصر الصواعق المرسلة على الجهمية والمعطلة"
},
{
"id": 8367,
"name": "أهداف التربية الإسلامية"
},
{
"id": 8368,
"name": "البحث العلمى أساسياته النظرية وممارسته العملية"
},
{
"id": 8370,
"name": "مدارج السالكين - ط الكتاب العربي",
"pre": "مدارج السالكين",
"suf": "ط الكتاب العربي"
},
{
"id": 8372,
"name": "صيد الأفكار في الأدب والأخلاق والحكم والأمثال"
},
{
"id": 8376,
"name": "البداية والنهاية - ت شيري",
"pre": "البداية والنهاية",
"q": "Q118094376"
},
{
"id": 8376,
"name": "البداية والنهاية ت شيري",
"q": "Q118094376"
},
{
"id": 8378,
"name": "أنموذج جليل في أسئلة وأجوبة عن غرائب آي التنزيل"
},
{
"id": 8379,
"name": "الوجيز في إيضاح قواعد الفقة الكلية"
},
{
"id": 8380,
"name": "فتاوى نور على الدرب لابن باز - بعناية الطيار والموسى - قسم العقيدة"
},
{
"id": 8381,
"name": "فتاوى اللجنة الدائمة - المجموعة الأولى"
},
{
"id": 8382,
"name": "الطريق إلى الإسلام"
},
{
"id": 8383,
"name": "الطهارة (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثالث)"
},
{
"id": 8384,
"name": "العرب في العصور القديمة",
"q": "Q125915318"
},
{
"id": 8459,
"name": "المغرب في ترتيب المعرب - ط الكتاب العربي",
"pre": "المغرب في ترتيب المعرب"
},
{
"id": 8460,
"name": "مآثر الإنافة في معالم الخلافة"
},
{
"id": 8463,
"name": "المغني لابن قدامة - ط مكتبة القاهرة",
"pre": "«المُغني» لابن قدامة - ط مكتبة القاهرة",
"q": "Q121076394"
},
{
"id": 8466,
"name": "إبراز الحكم من حديث رفع القلم",
"q": "Q133503106"
},
{
"id": 8473,
"name": "تفسير ابن كثير - ت السلامة",
"q": "Q109834492"
},
{
"id": 8474,
"name": "أحاديث أيوب السختيانى"
},
{
"id": 8476,
"name": "فتاوى ورسائل سماحة الشيخ محمد بن إبراهيم بن عبد اللطيف آل الشيخ"
},
{
"id": 8477,
"name": "التاريخ الكبير لابن أبي خيثمة - السفر الثالث - ط الفاروق"
},
{
"id": 8487,
"name": "التهذيب في اختصار المدونة"
},
{
"id": 8488,
"name": "الجموع البهية للعقيدة السلفية"
},
{
"id": 8490,
"name": "الإجابة لإيراد ما استدركته عائشة على الصحابة - ت رفعت فوزي",
"pre": "الإجابة لإيراد ما استدركته عائشة على الصحابة"
},
{
"id": 8491,
"name": "الناسخ والمنسوخ - قتادة"
},
{
"id": 8493,
"name": "مسند الحميدي"
},
{
"id": 8494,
"name": "الزهد لأحمد بن حنبل",
"q": "Q115795932"
},
{
"id": 8496,
"name": "الحسبة - جامعة المدينة"
},
{
"id": 8497,
"name": "فن المقالة"
},
{
"id": 8501,
"name": "الأدب وفنونه - دراسة ونقد"
},
{
"id": 8502,
"name": "مجلة الأحكام العدلية"
},
{
"id": 8505,
"name": "الكامل في اللغة والأدب",
"q": "Q121001816"
},
{
"id": 8506,
"name": "إعجاز القرآن والبلاغة النبوية للرافعي"
},
{
"id": 8514,
"name": "العقد الثمين في شرح أحاديث أصول الدين"
},
{
"id": 8515,
"name": "العناية بالقرآن الكريم في العهد النبوي الشريف"
},
{
"id": 8517,
"name": "العناية بالقرآن الكريم وعلومه من بداية القرن الرابع الهجري إلى عصرنا الحاضر"
},
{
"id": 8518,
"name": "العين والأثر في عقائد أهل الأثر",
"q": "Q137940278"
},
{
"id": 8519,
"name": "الغارة التنصيرية على أصالة القرآن الكريم"
},
{
"id": 8520,
"name": "العيوب المنهجية في كتابات المستشرق شاخت المتعلقة بالسنة النبوية"
},
{
"id": 8522,
"name": "ألفية ابن مالك - ط التعاون",
"pre": "ألفية ابن مالك",
"suf": "ط التعاون"
},
{
"id": 8523,
"name": "القطعية من الأدلة الأربعة"
},
{
"id": 8524,
"name": "القواعد الأربع (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الأول)"
},
{
"id": 8526,
"name": "القواعد والفوائد الأصولية وما يتبعها من الأحكام الفرعية"
},
{
"id": 8527,
"name": "القول السديد في الرد على من أنكر تقسيم التوحيد"
},
{
"id": 8528,
"name": "حياة الصحابة"
},
{
"id": 8529,
"name": "القول السديد شرح كتاب التوحيد ط النفائس"
},
{
"id": 8530,
"name": "القول المبين في سيرة سيد المرسلين"
},
{
"id": 8531,
"name": "الكبائر لمحمد بن عبد الوهاب (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الأول)"
},
{
"id": 8532,
"name": "الكلمات النافعة في المكفرات الواقعة"
},
{
"id": 8533,
"name": "الكنز اللغوي في اللسان العربي"
},
{
"id": 8534,
"name": "اللباب في الفقه الشافعي",
"q": "Q132089987"
},
{
"id": 8536,
"name": "اللمع في أصول الفقه للشيرازي",
"q": "Q126496168"
},
{
"id": 8537,
"name": "المؤلفات في الحديث وعلومه في العهد الجمهوري في تركيا - ببليوغرافيا"
},
{
"id": 8538,
"name": "المجتمع والأسرة في الإسلام"
},
{
"id": 8540,
"name": "شرح سنن أبي داود للعيني",
"q": "Q120736985"
},
{
"id": 8541,
"name": "المحاضرة الدفاعيةعن السنة المحمدية"
},
{
"id": 8542,
"name": "المختلف فيهم"
},
{
"id": 8543,
"name": "المداينة"
},
{
"id": 8544,
"name": "شرح سنن ابن ماجه لمغلطاي - ت عويضة",
"pre": "شرح سنن ابن ماجه لمغلطاي",
"suf": "ت عويضة"
},
{
"id": 8546,
"name": "المدينة المنورة النبوية فضلها، فضل ساكنيها، زيارتها"
},
{
"id": 8549,
"name": "فصل الخطاب في شرح مسائل الجاهلية ت يوسف السعيد"
},
{
"id": 8550,
"name": "المسائل المهمة فيما يحتاج إليه العاقد عند الخطوب المدلهمة"
},
{
"id": 8552,
"name": "المصاحف المخطوطة في القرن الحادي عشر الهجري"
},
{
"id": 8553,
"name": "المصارحة في أحكام المصافحة"
},
{
"id": 8554,
"name": "المصفى بأكف أهل الرسوخ من علم الناسخ والمنسوخ"
},
{
"id": 8555,
"name": "المطلب الحميد في بيان مقاصد التوحيد"
},
{
"id": 8556,
"name": "المطلق والمقيد"
},
{
"id": 8558,
"name": "المعاجم المفهرسة لألفاظ القرآن الكريم"
},
{
"id": 8559,
"name": "المعجب في تلخيص أخبار المغرب",
"q": "Q123415367"
},
{
"id": 8560,
"name": "المعجم الموسوعي لألفاظ القرآن الكريم وقراءاته"
},
{
"id": 8561,
"name": "مقامات عبد الرحمن بن حسن"
},
{
"id": 8562,
"name": "المقترب في بيان المضطرب"
},
{
"id": 8563,
"name": "المقومات الشخصية لمعلم القرآن الكريم"
},
{
"id": 8564,
"name": "المكتبة الإسلامية"
},
{
"id": 8565,
"name": "إعانة المستفيد بشرح كتاب التوحيد",
"q": "Q136687193"
},
{
"id": 8566,
"name": "المنار المنيف في الصحيح والضعيف - ت أبي غدة",
"pre": "المنار المنيف في الصحيح والضعيف"
},
{
"id": 8567,
"name": "المنظومة البيقونية"
},
{
"id": 8569,
"name": "المقدمات في الجغرافيا الطبيعية"
},
{
"id": 8570,
"name": "الموجز في قواعد اللغة العربية"
},
{
"id": 8571,
"name": "المورد العذب الزلال في كشف شبه أهل الضلال (مطبوع ضمن الرسائل والمسائل النجية، الجزء الرابع، القسم الأول)"
},
{
"id": 8572,
"name": "الموسوعة الحديثية الشاملة بين الواقع والمأمول"
},
{
"id": 8573,
"name": "إتحاف الجماعة بما جاء في الفتن والملاحم وأشراط الساعة",
"q": "Q115786255"
},
{
"id": 8574,
"name": "الموسوعة الحديثية بين الواقع والمأمول"
},
{
"id": 8575,
"name": "التصريح بما تواتر في نزول المسيح"
},
{
"id": 8578,
"name": "النجاة النجاة يا عباد الله"
},
{
"id": 8585,
"name": "التحفة المدنية في العقيدة السلفية"
},
{
"id": 8586,
"name": "التعليقات على متن لمعة الاعتقاد لابن جبرين"
},
{
"id": 8588,
"name": "التوحيد وبيان العقيدة السلفية النقية"
},
{
"id": 8589,
"name": "التوضيح والبيان لشجرة الإيمان"
},
{
"id": 8590,
"name": "الحوادث والبدع"
},
{
"id": 8594,
"name": "جهود علماء الحنفية في إبطال عقائد القبورية"
},
{
"id": 8596,
"name": "النصيرية طغاة سورية أو العلويون كما سماهم الفرنسيون"
},
{
"id": 8599,
"name": "رسالة في حكم السحر والكهانة مع بعض الفتاوى المهمة"
},
{
"id": 8600,
"name": "شرح ثلاثة الأصول لصالح الفوزان",
"q": "Q136687228"
},
{
"id": 8601,
"name": "شرح السنة للبربهاري"
},
{
"id": 8602,
"name": "النقد الصحيح لما اعترض من أحاديث المصابيح"
},
{
"id": 8605,
"name": "شرح عقيدة الإمام المجدد محمد بن عبد الوهاب"
},
{
"id": 8608,
"name": "قواعد الأحكام في مصالح الأنام"
},
{
"id": 8609,
"name": "تقريب التهذيب",
"q": "Q116748765"
},
{
"id": 8610,
"name": "عقيدة التوحيد وبيان ما يضادها من الشرك الأكبر والأصغر والتعطيل والبدع وغير ذلك"
},
{
"id": 8612,
"name": "مجموع فتاوى فضيلة الشيخ صالح بن فوزان"
},
{
"id": 8613,
"name": "فتاوى ورسائل الشيخ عبد الرزاق عفيفي"
},
{
"id": 8618,
"name": "التحجيل في تخريج ما لم يخرج من الأحاديث والآثار في إرواء الغليل"
},
{
"id": 8620,
"name": "أخبار الزمان"
},
{
"id": 8622,
"name": "الصارم المنكي في الرد على السبكي"
},
{
"id": 8624,
"name": "النكاح والطلاق أو الزواج والفراق"
},
{
"id": 8630,
"name": "نقد مراتب الإجماع"
},
{
"id": 8631,
"name": "أحكام الأحوال الشخصية في الشريعة الإسلامية"
},
{
"id": 8632,
"name": "الضعفاء الصغير للبخاري ت أبي العينين"
},
{
"id": 8633,
"name": "مدخل في علوم القراءات",
"q": "Q120763688"
},
{
"id": 8634,
"name": "الأشباه والنظائر - السبكي"
},
{
"id": 8635,
"name": "الفتح السماوي"
},
{
"id": 8636,
"name": "تخريج أحاديث الكشاف"
},
{
"id": 8637,
"name": "ذيل القول المسدد"
},
{
"id": 8638,
"name": "فقه الأسرة"
},
{
"id": 8639,
"name": "صفحات في علوم القراءات",
"q": "Q120886620"
},
{
"id": 8640,
"name": "فقه النكاح والفرائض"
},
{
"id": 8641,
"name": "تطور الأدب الحديث في مصر"
},
{
"id": 8642,
"name": "الوحي المحمدي"
},
{
"id": 8643,
"name": "الوقف القرآني وأثره في الترجيح عند الحنفية"
},
{
"id": 8644,
"name": "نزول القرآن على سبعة أحرف"
},
{
"id": 8645,
"name": "بين العقيدة والقيادة",
"q": "Q114357912"
},
{
"id": 8646,
"name": "تاريخ الفلسفة الحديثة"
},
{
"id": 8647,
"name": "العقائد الإسلامية"
},
{
"id": 8648,
"name": "فتاوي الخليلي على المذهب الشافعي"
},
{
"id": 8649,
"name": "الفرائد الحسان في عد آى القرآن"
},
{
"id": 8650,
"name": "الهادي شرح طيبة النشر في القراءات العشر",
"q": "Q120474550"
},
{
"id": 8651,
"name": "فن الكتابة الصحفية"
},
{
"id": 8653,
"name": "المغني في تصريف الأفعال"
},
{
"id": 8656,
"name": "الحديث والمحدثون",
"q": "Q114877608"
},
{
"id": 8657,
"name": "الرياض النضرة في مناقب العشرة"
},
{
"id": 8658,
"name": "تفسير ابن أبي حاتم",
"q": "Q120646057"
},
{
"id": 8660,
"name": "المحتسب في تبيين وجوه شواذ القراءات والإيضاح عنها - ط المجلس الأعلى",
"pre": "المحتسب في تبيين وجوه شواذ القراءات والإيضاح عنها",
"suf": "ط المجلس الأعلى"
},
{
"id": 8661,
"name": "كيف تكتب بحثا أو رسالة دراسة منهجية لكتابة البحوث وإعداد رسائل الماجستير والدكتوراة"
},
{
"id": 8663,
"name": "التوضيح الأبهر لتذكرة ابن الملقن في علم الأثر"
},
{
"id": 8665,
"name": "دستور الأخلاق في القرآن"
},
{
"id": 8666,
"name": "الفن ومذاهبه في الشعر العربي"
},
{
"id": 8667,
"name": "الممتع الكبير في التصريف"
},
{
"id": 8668,
"name": "معالم حضارات الشرق الأدني القديم"
},
{
"id": 8669,
"name": "أضواء على الثقافة الاسلامية"
},
{
"id": 8670,
"name": "البحث اللغوي عند العرب"
},
{
"id": 8671,
"name": "الإسرائيليات والموضوعات في كتب التفسير"
},
{
"id": 8672,
"name": "المفيد في مهمات التوحيد"
},
{
"id": 8674,
"name": "بحوث في تاريخ السنة المشرفة"
},
{
"id": 8675,
"name": "خزانة الأدب وغاية الأرب لابن حجة الحموي"
},
{
"id": 8676,
"name": "الإبانة عن معاني القراءات"
},
{
"id": 8677,
"name": "منجد المقرئين ومرشد الطالبين",
"q": "Q125915359"
},
{
"id": 8678,
"name": "السياسة الشرعية في الشئون الدستورية والخارجية والمالية"
},
{
"id": 8679,
"name": "اتجاهات التفسير في القرن الرابع عشر"
},
{
"id": 8680,
"name": "نقض الدارمي على المريسي - ت الألمعي"
},
{
"id": 8681,
"name": "تيسير مصطلح الحديث"
},
{
"id": 8682,
"name": "الطبقات - لخليفة بن خياط - ت زكار",
"q": "Q117338134"
},
{
"id": 8734,
"name": "الإسلام في أفريقيا عبر التاريخ"
},
{
"id": 8783,
"name": "الأنوار الرحمانية لهداية الفرقة التيجانية"
},
{
"id": 8791,
"name": "البدعة ضوابطها وأثرها السيء في الأمة"
},
{
"id": 8814,
"name": "العبرة في شهر الصوم"
},
{
"id": 8826,
"name": "الشاء",
"q": "Q137193519"
},
{
"id": 8827,
"name": "الأربعون المختارة من حديث الإمام أبي حنيفة"
},
{
"id": 8855,
"name": "القول المبين في أخطاء المصلين"
},
{
"id": 8862,
"name": "مرعاة المفاتيح شرح مشكاة المصابيح"
},
{
"id": 8874,
"name": "القواعد المثلى في صفات الله وأسمائه الحسنى"
},
{
"id": 8880,
"name": "الدارس في تاريخ المدارس",
"q": "Q118186511"
},
{
"id": 8884,
"name": "ذيل التقييد في رواة السنن والأسانيد",
"q": "Q121079702"
},
{
"id": 8889,
"name": "الفتح المبين بشرح الأربعين"
},
{
"id": 8937,
"name": "المصالح المرسلة - ط الجامعة الإسلامية"
},
{
"id": 8949,
"name": "الأدب المقارن - جامعة المدينة (ماجستير)"
},
{
"id": 8954,
"name": "أصول الدعوة وطرقها 2 - جامعة المدينة"
},
{
"id": 8958,
"name": "المنهج لمريد العمرة والحج"
},
{
"id": 8959,
"name": "المنهل المأهول بالبناء للمجهول لأبي الخير محمد بن ظهيرة تحقيق ودراسة"
},
{
"id": 8967,
"name": "صفوة التفاسير"
},
{
"id": 8970,
"name": "الدعوات الكبير"
},
{
"id": 8983,
"name": "الواسطة بين الحق والخلق",
"q": "Q115910925"
},
{
"id": 9026,
"name": "أهمية الدعوة"
},
{
"id": 9051,
"name": "جزء أحمد بن عصام"
},
{
"id": 9057,
"name": "الدر المصون في علوم الكتاب المكنون"
},
{
"id": 9059,
"name": "تحفة المحتاج في شرح المنهاج وحواشي الشرواني والعبادي",
"q": "Q116886680"
},
{
"id": 9060,
"name": "شرح مسند أبي حنيفة"
},
{
"id": 9061,
"name": "نظم العقيان في أعيان الأعيان"
},
{
"id": 9062,
"name": "كشف الأسرار عن أصول فخر الإسلام البزدوي"
},
{
"id": 9063,
"name": "الكشف المبدي"
},
{
"id": 9065,
"name": "نكت القرآن الدالة على البيان في أنواع العلوم والأحكام"
},
{
"id": 9066,
"name": "النكت في القرآن الكريم"
},
{
"id": 9068,
"name": "نصائح منهجية لطالب علم السنة النبوية"
},
{
"id": 9074,
"name": "الأمر بالمعروف والنهي عن المنكر - عبد الغني المقدسي"
},
{
"id": 9075,
"name": "الرد على ابن القطان في كتابه بيان الوهم والإيهام"
},
{
"id": 9076,
"name": "المتفق والمفترق"
},
{
"id": 9077,
"name": "القواعد الحسان لتفسير القرآن"
},
{
"id": 9078,
"name": "محاضرات الأدباء ومحاورات الشعراء والبلغاء",
"q": "Q125501320"
},
{
"id": 9080,
"name": "الهدية الهادية إلى الطائفة التجانية"
},
{
"id": 9081,
"name": "أمثال العرب ط الهلال",
"q": "Q114853384"
},
{
"id": 9082,
"name": "علل الدارقطني = العلل الواردة في الأحاديث النبوية"
},
{
"id": 9083,
"name": "دليل الحاج والمعتمر وزائر مسجد الرسول صلى الله عليه وسلم"
},
{
"id": 9085,
"name": "تذييل سلافة العصر"
},
{
"id": 9086,
"name": "فتح الرحمن بكشف ما يلتبس في القرآن"
},
{
"id": 9087,
"name": "فتاوى يسألونك"
},
{
"id": 9088,
"name": "جزء أبي الجهم"
},
{
"id": 9089,
"name": "الوسائل المفيدة للحياة السعيدة"
},
{
"id": 9091,
"name": "مرآة الجنان وعبرة اليقظان"
},
{
"id": 9092,
"name": "العقائد الإسلامية لابن باديس"
},
{
"id": 9093,
"name": "الأنواء في مواسم العرب لابن قتيبة الدينوري"
},
{
"id": 9096,
"name": "المجموع اللفيف"
},
{
"id": 9097,
"name": "لمسات بيانية في نصوص من التنزيل - كتاب"
},
{
"id": 9098,
"name": "نظم الدرر في تناسب الآيات والسور",
"q": "Q120115794"
},
{
"id": 9099,
"name": "المحاضرات والمحاورات"
},
{
"id": 9100,
"name": "المقتطف من أزاهر الطرف"
},
{
"id": 9102,
"name": "الزهر الفائح في ذكر من تنزه عن الذنوب والقبائح"
},
{
"id": 9103,
"name": "بغية المتطوع في صلاة التطوع"
},
{
"id": 9105,
"name": "التكميل لما فات تخريجه من إرواء الغليل"
},
{
"id": 9106,
"name": "جزء القاضي الأشناني"
},
{
"id": 9107,
"name": "المخلصيات"
},
{
"id": 9108,
"name": "اللباب في علوم الكتاب",
"q": "Q115730072"
},
{
"id": 9109,
"name": "مبادئ الأصول"
},
{
"id": 9110,
"name": "شريعة القرآن من دلائل إعجازه"
},
{
"id": 9111,
"name": "بلوغ المرام من أدلة الأحكام ت الزهيري",
"q": "Q125471341"
},
{
"id": 9112,
"name": "غاية الوصول في شرح لب الأصول"
},
{
"id": 9118,
"name": "مذكراتي السياسية"
},
{
"id": 9133,
"name": "عودة الحجاب"
},
{
"id": 9134,
"name": "شرح شذور الذهب للجوجري"
},
{
"id": 9140,
"name": "آثار ابن باديس"
},
{
"id": 9160,
"name": "أمالي القالي",
"q": "Q133820044"
},
{
"id": 9170,
"name": "الثقات للعجلي ت قلعجي"
},
{
"id": 9182,
"name": "تفسير الإمام الشافعي"
},
{
"id": 9196,
"name": "الآحاد والمثاني لابن أبي عاصم",
"q": "Q121254033"
},
{
"id": 9198,
"name": "أصناف المغرورين"
},
{
"id": 9199,
"name": "اكتفاء القنوع بما هو مطبوع"
},
{
"id": 9200,
"name": "شرح أصول اعتقاد أهل السنة والجماعة"
},
{
"id": 9208,
"name": "الإبل"
},
{
"id": 9209,
"name": "الأجوبة المفيدة لمهمات العقيدة"
},
{
"id": 9211,
"name": "الاشتقاق",
"q": "Q115624808"
},
{
"id": 9212,
"name": "جزء علي بن محمد الحميري"
},
{
"id": 9214,
"name": "البدع الحولية"
},
{
"id": 9217,
"name": "الاقتصاد في الاعتقاد للغزالي"
},
{
"id": 9220,
"name": "الإكليل في المتشابه والتأويل",
"q": "Q115805745"
},
{
"id": 9221,
"name": "الإماء الشواعر"
},
{
"id": 9222,
"name": "الإملاء المختصر في شرح غريب السير"
},
{
"id": 9225,
"name": "البديع في نقد الشعر",
"q": "Q134731595"
},
{
"id": 9226,
"name": "البيان والإعراب عما بأرض مصر من الأعراب"
},
{
"id": 9228,
"name": "الجراثيم"
},
{
"id": 9229,
"name": "الدر المنثور في طبقات ربات الخدور",
"q": "Q121254160"
},
{
"id": 9230,
"name": "الصحيح المسند من الأحاديث القدسية"
},
{
"id": 9231,
"name": "تفسير الراغب الأصفهاني"
},
{
"id": 9233,
"name": "العقود اللؤلؤية في تاريخ الدولة الرسولية"
},
{
"id": 9235,
"name": "الغصون اليانعة في محاسن شعراء المائة السابعة"
},
{
"id": 9236,
"name": "الفاخر"
},
{
"id": 9241,
"name": "الفصول في سيرة الرسول"
},
{
"id": 9242,
"name": "نيل الأوطار شرح منتقى الأخبار - ط الحديث",
"pre": "نيل الأوطار"
},
{
"id": 9244,
"name": "المبهج في تفسير أسماء شعراء ديوان الحماسة"
},
{
"id": 9246,
"name": "المنقذ من الضلال"
},
{
"id": 9247,
"name": "المنهج المقترح لفهم المصطلح"
},
{
"id": 9248,
"name": "النكت العصرية في أخبار الوزراء المصرية"
},
{
"id": 9249,
"name": "أنساب الخيل في الجاهلية والإسلام وأخبارها"
},
{
"id": 9250,
"name": "إيضاح شواهد الإيضاح"
},
{
"id": 9252,
"name": "مجمل اللغة لابن فارس",
"q": "Q136804793"
},
{
"id": 9253,
"name": "بستان الأحبار مختصر نيل الأوطار"
},
{
"id": 9254,
"name": "توفيق الرحمن في دروس القرآن"
},
{
"id": 9256,
"name": "جواهر البلاغة في المعاني والبيان والبديع"
},
{
"id": 9257,
"name": "اتباع لا ابتداع - قواعد وأسس في السنة والبدعة"
},
{
"id": 9260,
"name": "شرح رياض الصالحين لابن عثيمين"
},
{
"id": 9261,
"name": "كيمياء السعادة"
},
{
"id": 9262,
"name": "أحاديث الطائفة الظاهرة"
},
{
"id": 9263,
"name": "معجم ديوان الأدب"
},
{
"id": 9264,
"name": "ميزان العمل"
},
{
"id": 9267,
"name": "هكذا علمتني الحياة"
},
{
"id": 9268,
"name": "الهجمات المغرضة على التاريخ الإسلامي"
},
{
"id": 9270,
"name": "الأسماء والصفات - البيهقي",
"q": "Q124619156"
},
{
"id": 9271,
"name": "مطلع الأنوار ونزهة البصائر والأبصار"
},
{
"id": 9273,
"name": "الأدلة الشرعية على تحريم مصافحة المرأة الأجنبية"
},
{
"id": 9277,
"name": "الإخنائية أو الرد على الإخنائي ت العنزي",
"q": "Q115798881"
},
{
"id": 9279,
"name": "الخصال المكفرة للذنوب",
"q": "Q125896591"
},
{
"id": 9282,
"name": "بذل المجهود في تحرير أسئلة تغير النقود"
},
{
"id": 9283,
"name": "رسالة إنقاذ الهالكين في حكم أخذ الأجرة على تلاوة القرآن الكريم"
},
{
"id": 9287,
"name": "الجامع الأموي في دمشق"
},
{
"id": 9289,
"name": "فقه التاجر المسلم"
},
{
"id": 9292,
"name": "البعث والنشور للبيهقي ت حيدر"
},
{
"id": 9293,
"name": "الدرر البهية والروضة الندية والتعليقات الرضية"
},
{
"id": 9294,
"name": "الجزء الثاني من حديث يحيى بن معين الفوائد رواية أبي بكر المروزي"
},
{
"id": 9300,
"name": "الجامع في الخاتم للبيهقي"
},
{
"id": 9305,
"name": "الجزء الأول من أمالي أبي إسحاق"
},
{
"id": 9306,
"name": "الجوع لابن أبي الدنيا"
},
{
"id": 9307,
"name": "الفرج بعد الشدة لابن أبي الدنيا"
},
{
"id": 9310,
"name": "الفوائد والزهد والرقائق والمراثي"
},
{
"id": 9311,
"name": "المجالس العشرة الأمالي للحسن الخلال"
},
{
"id": 9312,
"name": "تسمية ما روي عن الفضل بن دكين لأبي نعيم الأصبهاني"
},
{
"id": 9313,
"name": "جزء ابن عرفة"
},
{
"id": 9314,
"name": "جزء محمد بن عاصم الثقفي"
},
{
"id": 9317,
"name": "فضائل القرآن لابن الضريس",
"q": "Q135451562"
},
{
"id": 9320,
"name": "فضائل القرآن للفريابي"
},
{
"id": 9322,
"name": "فضائل عثمان بن عفان لعبد الله بن أحمد"
},
{
"id": 9323,
"name": "فوائد أبي محمد الفاكهي"
},
{
"id": 9324,
"name": "مكارم الأخلاق للطبراني"
},
{
"id": 9329,
"name": "تدريب الراوي في شرح تقريب النواوي",
"q": "Q126127776"
},
{
"id": 9336,
"name": "فرق معاصرة تنتسب إلى الإسلام وبيان موقف الإسلام منها"
},
{
"id": 9344,
"name": "مسند الشافعي"
},
{
"id": 9347,
"name": "فوائد ابن منده"
},
{
"id": 9348,
"name": "اختلاف الحديث - ط الفكر بآخر كتاب الأم",
"pre": "اختلاف الحديث",
"suf": "ط الفكر بآخر كتاب الأم"
},
{
"id": 9351,
"name": "الطبقات الكبرى - ط دار صادر",
"q": "Q120648816"
},
{
"id": 9353,
"name": "أحاديث ستة في معان ستة"
},
{
"id": 9354,
"name": "أحاديث عن 19 من أصحاب ابن طبرزد"
},
{
"id": 9356,
"name": "أخبار الشيوخ وأخلاقهم"
},
{
"id": 9357,
"name": "أخبار وأشعار لأبي عبد الله الحميدي"
},
{
"id": 9361,
"name": "أربعون حديثا عن أربعين شيخا في أربعين لابن المقرب"
},
{
"id": 9368,
"name": "إسلام زيد بن حارثة وغيره من أحاديث الشيوخ"
},
{
"id": 9369,
"name": "إعلام العالم بعد رسوخه بناسخ الحديث ومنسوخه"
},
{
"id": 9370,
"name": "الأربعون التيمية",
"q": "Q115800086"
},
{
"id": 9371,
"name": "الأربعون حديثا من المساواة"
},
{
"id": 9372,
"name": "الأربعون البلدانية لأبي طاهر"
},
{
"id": 9374,
"name": "كتاب الأربعين في الجهاد والمجاهدين"
},
{
"id": 9375,
"name": "الأربعون من عوالي المجيزين"
},
{
"id": 9376,
"name": "الأربعون من مسانيد المشايخ العشرين للقشيري"
},
{
"id": 9377,
"name": "الأمالي السفرية الحلبية"
},
{
"id": 9378,
"name": "الاستعانة بالفاتحة على نجاح الأمور"
},
{
"id": 9379,
"name": "البر والصلة لابن الجوزي"
},
{
"id": 9380,
"name": "التسوية بين حدثنا وأخبرنا"
},
{
"id": 9381,
"name": "التوحيد للمقدسي"
},
{
"id": 9382,
"name": "الثاني من شعار الأبرار في الأدعية والأذكار"
},
{
"id": 9383,
"name": "الجزء الأول والثاني من فوائد ابن بشران"
},
{
"id": 9384,
"name": "الرقة والبكاء لابن قدامة"
},
{
"id": 9385,
"name": "العدة للكرب والشدة - الضياء المقدسي"
},
{
"id": 9387,
"name": "العشرة من مرويات صالح بن أحمد وزياداتها"
},
{
"id": 9388,
"name": "المنار المنيف في الصحيح والضعيف - ط عطاءات العلم",
"pre": "المنار المنيف في الصحيح والضعيف",
"q": "Q115796523"
},
{
"id": 9389,
"name": "المشيخة البغدادية - الأموي - ت بشار"
},
{
"id": 9390,
"name": "تحريم القتل وتعظيمه"
},
{
"id": 9391,
"name": "تحريم نكاح المتعة"
},
{
"id": 9392,
"name": "ترتيب الأمالي الخميسية للشجري"
},
{
"id": 9393,
"name": "تنوير الفكرة بحديث بهز بن حكيم"
},
{
"id": 9394,
"name": "جزء الجركاني"
},
{
"id": 9395,
"name": "جزء من أحاديث أبي بكر الصولي"
},
{
"id": 9396,
"name": "جزء من أحاديث أبي عمر السلمي عن شيوخه"
},
{
"id": 9397,
"name": "جزء ابن نجيد - ط العلمية",
"pre": "جزء ابن نجيد"
},
{
"id": 9398,
"name": "جزء من أحاديث ابن المقير عن شيوخه"
},
{
"id": 9399,
"name": "جزء من أحاديث القزاز عن شيوخه"
},
{
"id": 9403,
"name": "العناية شرح الهداية - بهامش فتح القدير ط الحلبي"
},
{
"id": 9412,
"name": "نسخة إبراهيم بن سعد - ضمن مجموع الفوائد لابن منده"
},
{
"id": 9413,
"name": "جزء يعلى بن عباد"
},
{
"id": 9416,
"name": "حديث أبي نعيم عن أبي علي الصواف لأبي نعيم الأصبهاني"
},
{
"id": 9420,
"name": "جواب بعض الخدم لأهل النعم عن تصحيف حديث احتجم"
},
{
"id": 9426,
"name": "حديث التقي بن المجد"
},
{
"id": 9427,
"name": "الموشح في مآخذ العلماء على الشعراء",
"q": "Q121259539"
},
{
"id": 9428,
"name": "أحكام أهل الملل والردة - من الجامع للخلال - ت كسروي"
},
{
"id": 9429,
"name": "صبح الأعشى في صناعة الإنشا - ط العلمية",
"q": "Q114763488"
},
{
"id": 9429,
"name": "صبح الأعشى في صناعة الإنشاء",
"q": "Q114763488"
},
{
"id": 9430,
"name": "التنبيهات اللطيفة على ما احتوت عليه العقيدة الواسطية من المباحث المنيفة"
},
{
"id": 9434,
"name": "فضائل فاطمة لابن شاهين"
},
{
"id": 9438,
"name": "دعاوى الطاعنين في القرآن الكريم = الطعن في القرآن الكريم والرد على الطاعنين"
},
{
"id": 9442,
"name": "سلسلة الأحاديث الصحيحة وشيء من فقهها وفوائدها",
"q": "Q113851235"
},
{
"id": 9448,
"name": "حديث السلفي عن حاكم الكوفة"
},
{
"id": 9449,
"name": "فضائل رمضان لابن شاهين"
},
{
"id": 9450,
"name": "حديث العثماني للديباجي"
},
{
"id": 9452,
"name": "حديث المصافحة للسلفي"
},
{
"id": 9463,
"name": "الأنوار الكاشفة لما في كتاب «أضواء على السنة» - ط السلفية",
"pre": "الأنوار الكاشفة لما في كتاب «أضواء على السنة»",
"suf": "ط السلفية"
},
{
"id": 9472,
"name": "إحياء علوم الدين",
"q": "Q121009858"
},
{
"id": 9484,
"name": "خمسة أحاديث من أمالي الحافظ العراقي"
},
{
"id": 9486,
"name": "فقه السنة",
"q": "Q130281127"
},
{
"id": 9492,
"name": "الصوم جنة"
},
{
"id": 9495,
"name": "نهي الصحبة عن النزول بالركبة"
},
{
"id": 9499,
"name": "قواعد العلل وقرائن الترجيح"
},
{
"id": 9508,
"name": "التلويح على التوضيح لمتن التنقيح"
},
{
"id": 9510,
"name": "ذكر ابن أبي الدنيا وما وقع عاليا من حديثه"
},
{
"id": 9512,
"name": "ذم اللواط للآجري"
},
{
"id": 9523,
"name": "ذكر الإمام أبي عبد الله بن منده"
},
{
"id": 9527,
"name": "رسالة لطيفة جامعة في أصول الفقه المهمة"
},
{
"id": 9532,
"name": "تفسير ابن باديس في مجالس التذكير من كلام الحكيم الخبير"
},
{
"id": 9539,
"name": "عرف العنبر في وصف المنبر"
},
{
"id": 9543,
"name": "طبقات الحنابلة - لابن أبي يعلى - ت الفقي",
"pre": "«طبقات الحنابلة» لابن أبي يعلى",
"suf": "ت الفقي",
"q": "Q116983967"
},
{
"id": 9548,
"name": "متن الأخضري في العبادات على مذهب الإمام مالك"
},
{
"id": 9550,
"name": "الفن الواقع والمأمول - قصص توبة الفنانين والفنانات"
},
{
"id": 9552,
"name": "شرح علل الترمذي",
"q": "Q135231177"
},
{
"id": 9556,
"name": "عشرة أحاديث من الجزء المنتقى الأول والثاني من حديث الليث"
},
{
"id": 9561,
"name": "فضائل شهر رمضان لعبد الغني المقدسي"
},
{
"id": 9563,
"name": "فوائد أبي بكر القاسم المطرز وأماليه"
},
{
"id": 9564,
"name": "فوائد ابن أخي ميمي الدقاق"
},
{
"id": 9567,
"name": "غاية المقصد فى زوائد المسند"
},
{
"id": 9568,
"name": "متن العقيدة الطحاوية - شرح وتعليق الألباني"
},
{
"id": 9569,
"name": "تذكرة المحتاج إلى أحاديث المنهاج"
},
{
"id": 9573,
"name": "الوصف المناسب لشرع الحكم"
},
{
"id": 9576,
"name": "كشف الخفاء ت هنداوي"
},
{
"id": 9579,
"name": "أبجد العلوم",
"q": "Q115785319"
},
{
"id": 9582,
"name": "الموسوعة الميسرة في الأديان والمذاهب والأحزاب المعاصرة"
},
{
"id": 9584,
"name": "التقييد لمعرفة رواة السنن والمسانيد"
},
{
"id": 9585,
"name": "دعاوى المناوئين لشيخ الإسلام ابن تيمية - عرض ونقد"
},
{
"id": 9587,
"name": "الشيعة والتصحيح"
},
{
"id": 9592,
"name": "فوائد ابن الباغبان"
},
{
"id": 9593,
"name": "ما وضح واستبان في فضائل شهر شعبان"
},
{
"id": 9594,
"name": "مجلس إملاء في رؤية الله تعالى للدقاق"
},
{
"id": 9595,
"name": "مكارم الأخلاق للخرائطي"
},
{
"id": 9597,
"name": "القواعد والإشارات في أصول القراءات"
},
{
"id": 9598,
"name": "اللغات في القرآن"
},
{
"id": 9605,
"name": "مجلس في حديث جابر"
},
{
"id": 9607,
"name": "سلك الدرر في أعيان القرن الثاني عشر",
"q": "Q124052566"
},
{
"id": 9608,
"name": "مجلسان من أمالي نظام الملك"
},
{
"id": 9610,
"name": "شرح كتاب التوحيد من صحيح البخاري - الغنيمان"
},
{
"id": 9615,
"name": "مسند الشافعي - ترتيب سنجر"
},
{
"id": 9617,
"name": "المجتبى من مشكل إعراب القرآن"
},
{
"id": 9618,
"name": "الأمراض أو الطب النبوي - الضياء المقدسي"
},
{
"id": 9619,
"name": "مشيخة ابن الجوزي"
},
{
"id": 9620,
"name": "مشيخة البياني"
},
{
"id": 9621,
"name": "أخبار مكة - الأزرقي - ت ملحس",
"pre": "أخبار مكة - الأزرقي",
"q": "Q116749902"
},
{
"id": 9621,
"name": "أخبار مكة للأزرقي",
"q": "Q116749902"
},
{
"id": 9622,
"name": "معجم مشايخ محمد بن عبد الواحد الدقاق"
},
{
"id": 9624,
"name": "من حديث عبد الله بن يزيد المقرئ"
},
{
"id": 9627,
"name": "المعونة على مذهب عالم المدينة"
},
{
"id": 9628,
"name": "من عاش مائة وعشرين سنة من الصحابة لابن منده"
},
{
"id": 9631,
"name": "آثار البلاد وأخبار العباد",
"q": "Q125700724"
},
{
"id": 9632,
"name": "تحفة الأطفال والغلمان في تجويد القرآن"
},
{
"id": 9633,
"name": "نسخة عبد الله بن صالح كاتب الليث"
},
{
"id": 9634,
"name": "الطيوريات"
},
{
"id": 9637,
"name": "فصل الخطاب في شرح مسائل الجاهلية ت محب الدين الخطيب"
},
{
"id": 9640,
"name": "المروءة"
},
{
"id": 9642,
"name": "الأباطيل والمناكير والصحاح والمشاهير",
"q": "Q138978866"
},
{
"id": 9644,
"name": "الصلاة لأبي نعيم الفضل بن دكين"
},
{
"id": 9647,
"name": "الأدب المفرد - بأحكام الألباني - ت الزهيري"
},
{
"id": 9652,
"name": "الإملاء الأنفس في ترجمة عسعس"
},
{
"id": 9654,
"name": "الدلائل في غريب الحديث"
},
{
"id": 9655,
"name": "الرسل والرسالات"
},
{
"id": 9664,
"name": "سباعيات أبي المعالي الفراوي"
},
{
"id": 9667,
"name": "العقيدة في الله"
},
{
"id": 9675,
"name": "مباحث في إعجاز القرآن"
},
{
"id": 9677,
"name": "منهج أهل السنة والجماعة في السمع والطاعة"
},
{
"id": 9679,
"name": "نصاب الاحتساب"
},
{
"id": 9680,
"name": "أم القرى"
},
{
"id": 9681,
"name": "الجوهر النفيس في سياسة الرئيس"
},
{
"id": 9682,
"name": "الخلافة"
},
{
"id": 9683,
"name": "الدرة الغراء في نصيحة السلاطين والقضاة والأمراء"
},
{
"id": 9685,
"name": "تحرير الأحكام في تدبير أهل الإسلام"
},
{
"id": 9690,
"name": "الفتاوى الكبرى لابن تيمية",
"q": "Q115910708"
},
{
"id": 9697,
"name": "خلق أفعال العباد للبخاري",
"q": "Q135179670"
},
{
"id": 9698,
"name": "أصول السنة لابن أبي زمنين"
},
{
"id": 9700,
"name": "شيخ الإسلام ابن تيمية لم يكن ناصبيا"
},
{
"id": 9701,
"name": "إعلام السائلين عن كتب سيد المرسلين لابن طولون"
},
{
"id": 9702,
"name": "تهذيب الأسماء واللغات",
"q": "Q116753641"
},
{
"id": 9709,
"name": "الأحاديث الصحاح الغرائب للمزي"
},
{
"id": 9725,
"name": "شرح العقيدة السفارينية"
},
{
"id": 9728,
"name": "جوامع السيرة - ط العلمية",
"pre": "جوامع السيرة"
},
{
"id": 9754,
"name": "فنون العجائب لأبي سعيد النقاش"
},
{
"id": 9757,
"name": "المحكم والمحيط الأعظم",
"q": "Q131742669"
},
{
"id": 9758,
"name": "الولاء والبراء في الإسلام"
},
{
"id": 9759,
"name": "نيل المرام من تفسير آيات الأحكام"
},
{
"id": 9760,
"name": "الأخبار الطوال",
"q": "Q114787319"
},
{
"id": 9762,
"name": "الإدارة في عصر الرسول صلى الله عليه وآله وسلم"
},
{
"id": 9763,
"name": "الأدب النبوي"
},
{
"id": 9764,
"name": "إذهاب الحزن وشفاء الصدر السقيم"
},
{
"id": 9766,
"name": "القضاء والقدر - الأشقر"
},
{
"id": 9767,
"name": "الإصابة في تمييز الصحابة",
"q": "Q116752596"
},
{
"id": 9768,
"name": "أعلام النبوة للماوردي"
},
{
"id": 9769,
"name": "أقضية رسول الله صلى الله عليه وآله وسلم"
},
{
"id": 9770,
"name": "الاكتفا بما تضمنه من مغازي رسول الله والثلاثة الخلفا",
"q": "Q139713223"
},
{
"id": 9771,
"name": "سنن الدارقطني",
"q": "Q135686136"
},
{
"id": 9772,
"name": "إنارة الدجى في مغازي خير الورى صلى الله عليه وآله وسلم",
"q": "Q135214489"
},
{
"id": 9773,
"name": "أنساب الأشراف - ط الفكر",
"pre": "أنساب الأشراف",
"q": "Q114665392"
},
{
"id": 9773,
"name": "أنساب الأشراف للبلاذري",
"q": "Q114665392"
},
{
"id": 9775,
"name": "صب العذاب على من سب الأصحاب"
},
{
"id": 9776,
"name": "التحرير والتنوير",
"q": "Q115641984"
},
{
"id": 9776,
"name": "تفسير ابن عاشور التحرير والتنوير",
"q": "Q115641984"
},
{
"id": 9777,
"name": "معجم المعالم الجغرافية في السيرة النبوية"
},
{
"id": 9779,
"name": "البردة شرحا وإعرابا وبلاغة لطلاب المعاهد والجامعات"
},
{
"id": 9780,
"name": "شرح بهجة المحافل وبغية الأماثل"
},
{
"id": 9781,
"name": "بينات الرسول صلى الله عليه وآله وسلم ومعجزاته"
},
{
"id": 9783,
"name": "تاريخ الطبري = تاريخ الرسل والملوك، وصلة تاريخ الطبري",
"q": "Q114456807"
},
{
"id": 9784,
"name": "تاريخ الخميس في أحوال أنفس النفيس"
},
{
"id": 9788,
"name": "معجم الأدباء = إرشاد الأريب إلى معرفة الأديب",
"q": "Q114956888"
},
{
"id": 9789,
"name": "تثبيت دلائل النبوة"
},
{
"id": 9790,
"name": "تخريج الدلالات السمعية"
},
{
"id": 9791,
"name": "تطور كتابة السيرة النبوية"
},
{
"id": 9792,
"name": "ثلاثية البردة بردة الرسول صلى الله عليه وآله وسلم"
},
{
"id": 9793,
"name": "جمهرة أنساب العرب - ابن حزم",
"q": "Q114955882"
},
{
"id": 9794,
"name": "منار القاري شرح مختصر صحيح البخاري"
},
{
"id": 9795,
"name": "حدائق الأنوار ومطالع الأسرار في سيرة النبي المختار",
"q": "Q124475412"
},
{
"id": 9797,
"name": "حياة محمد صلى الله عليه وآله وسلم"
},
{
"id": 9798,
"name": "تفسير ابن كمال باشا"
},
{
"id": 9799,
"name": "عقد الدرر في أخبار المنتظر"
},
{
"id": 9800,
"name": "خاتم النبيين صلى الله عليه وآله وسلم"
},
{
"id": 9801,
"name": "الدر المنضود في الصلاة والسلام على صاحب المقام المحمود"
},
{
"id": 9802,
"name": "دراسة في السيرة"
},
{
"id": 9804,
"name": "التعليق الممجد على موطأ محمد"
},
{
"id": 9807,
"name": "حوادث الدهور في مدى الأيام والشهور - ق 1"
},
{
"id": 9808,
"name": "عوالي الحارث"
},
{
"id": 9810,
"name": "حاشية السندي على سنن ابن ماجه"
},
{
"id": 9811,
"name": "المناسك لابن أبي عروبة"
},
{
"id": 9812,
"name": "مجلس من فوائد الليث بن سعد"
},
{
"id": 9816,
"name": "الدليل إلى المتون العلمية",
"q": "Q133802866"
},
{
"id": 9818,
"name": "قذائف الحق"
},
{
"id": 9820,
"name": "الرحيق المختوم",
"q": "Q121008886"
},
{
"id": 9821,
"name": "الرسالة المحمدية"
},
{
"id": 9823,
"name": "شرح البخاري للسفيري = المجالس الوعظية في شرح أحاديث خير البرية"
},
{
"id": 9824,
"name": "الرسول القائد"
},
{
"id": 9825,
"name": "الرسول صلى الله عليه وآله وسلم في عيون غربية منصفة"
},
{
"id": 9826,
"name": "كتاب الأربعين في فضل الرحمة والراحمين لابن طولون الصالحي"
},
{
"id": 9827,
"name": "مختصر الأسئلة والأجوبة الأصولية على العقيدة الواسطية"
},
{
"id": 9830,
"name": "الله يتجلى في عصر العلم"
},
{
"id": 9831,
"name": "هداية المرتاب وغاية الحفاظ والطلاب في تبيين متشابه الكتاب"
},
{
"id": 9832,
"name": "صلاة الاستسقاء"
},
{
"id": 9833,
"name": "تنبيه الهاجد إلى ما وقع من النظر فى كتب الأماجد"
},
{
"id": 9834,
"name": "القيامة الصغرى"
},
{
"id": 9835,
"name": "رجال حول الرسول"
},
{
"id": 9836,
"name": "موقف الإمامين البخاري ومسلم من اشتراط اللقيا والسماع في السند المعنعن بين المتعاصرين"
},
{
"id": 9837,
"name": "الإيمان حقيقته، خوارمه، نواقضه عند أهل السنة والجماعة"
},
{
"id": 9838,
"name": "مفيد الأنام ونور الظلام في تحرير الأحكام لحج بيت الله الحرام"
},
{
"id": 9841,
"name": "الإيمان والرد على أهل البدع (مطبوع ضمن مجموعة الرسائل والمسائل النجدية لبعض علماء نجد الأعلام، الجزء الثاني)"
},
{
"id": 9842,
"name": "التشريع الجنائي الإسلامي مقارنا بالقانون الوضعي"
},
{
"id": 9843,
"name": "روايات ونسخ الجامع الصحيح"
},
{
"id": 9844,
"name": "حكم التمثيل"
},
{
"id": 9846,
"name": "مجموعة الفوائد البهية على منظومة القواعد الفقهية"
},
{
"id": 9847,
"name": "الموجز في مراجع التراجم والبلدان والمصنفات وتعريفات العلوم"
},
{
"id": 9848,
"name": "صحيح أشراط الساعة"
},
{
"id": 9849,
"name": "الفقه على المذاهب الأربعة",
"q": "Q120493587"
},
{
"id": 9850,
"name": "تصحيح خطأ تاريخي حول الوهابية",
"q": "Q123584938"
},
{
"id": 9851,
"name": "نهاية المطلب في دراية المذهب"
},
{
"id": 9854,
"name": "حقيقة الشيعة «حتى لا ننخدع»"
},
{
"id": 9855,
"name": "جزء فيه أحاديث من مسموعات للشيخ الحافظ أبي ذر عبيد بن أحمد بن محمد الهروي (وهو مطبوع ضمن كتاب الفوائد)"
},
{
"id": 9856,
"name": "بصائر ذوي التمييز في لطائف الكتاب العزيز",
"q": "Q120645182"
},
{
"id": 9859,
"name": "المنهج القويم في اختصار اقتضاء الصراط المستقيم",
"q": "Q136304579"
},
{
"id": 9862,
"name": "سيرة ابن اسحاق = السير والمغازي"
},
{
"id": 9863,
"name": "جواب الحافظ المنذري عن أسئلة في الجرح والتعديل"
},
{
"id": 9865,
"name": "القيامة الكبرى"
},
{
"id": 9869,
"name": "المعجم المختص بالمحدثين"
},
{
"id": 9870,
"name": "برنامج التجيبي",
"q": "Q136669280"
},
{
"id": 9872,
"name": "زبدة الحلب في تاريخ حلب",
"q": "Q114792807"
},
{
"id": 9873,
"name": "السيرة الحلبية = إنسان العيون في سيرة الأمين المأمون",
"q": "Q116753167"
},
{
"id": 9874,
"name": "عالم الجن والشياطين"
},
{
"id": 9875,
"name": "أصل صفة صلاة النبي صلى الله عليه وسلم",
"q": "Q115788206"
},
{
"id": 9878,
"name": "تيسير العلام شرح عمدة الأحكام"
},
{
"id": 9879,
"name": "جزء من شرح تنقيح الفصول في علم الأصول - رسالة ماجستير"
},
{
"id": 9883,
"name": "جواهر القرآن"
},
{
"id": 9884,
"name": "حلية طالب العلم"
},
{
"id": 9885,
"name": "مذكرة أصول الفقه على روضة الناظر- ط مكتبة العلوم والحكم",
"pre": "مذكرة أصول الفقه على روضة الناظر",
"suf": "ط مكتبة العلوم والحكم"
},
{
"id": 9886,
"name": "جمهرة الأجزاء الحديثية"
},
{
"id": 9891,
"name": "رسالة في تحقيق معنى النظم والصياغة"
},
{
"id": 9895,
"name": "بيان حقيقة التوحيد الذي جاءت به الرسل ودحض الشبهات التي أثيرت حوله",
"q": "Q136687215"
},
{
"id": 9896,
"name": "السيرة النبوية في ضوء القرآن والسنة"
},
{
"id": 9897,
"name": "السيرة النبوية منهجية دراستها واستعراض أحداثها"
},
{
"id": 9898,
"name": "السيرة النبوية وأخبار الخلفاء من الثقات لابن حبان"
},
{
"id": 9899,
"name": "السيرة النبوية والتاريخ الإسلامي"
},
{
"id": 9900,
"name": "الرحيق المختوم مع زيادات"
},
{
"id": 9903,
"name": "حراسة الفضيلة"
},
{
"id": 9904,
"name": "شرح ابن عقيل على ألفية ابن مالك",
"q": "Q121086587"
},
{
"id": 9911,
"name": "تاريخ الخلفاء الراشدين الفتوحات والإنجازات السياسية"
},
{
"id": 9914,
"name": "السيرة النبوية لأبي الحسن الندوي"
},
{
"id": 9918,
"name": "شرح الشفا"
},
{
"id": 9922,
"name": "مسند عثمان بن عفان لأبي القاسم البغوي"
},
{
"id": 9923,
"name": "شرح كشف الشبهات ويليه شرح الأصول الستة"
},
{
"id": 9924,
"name": "فتاوى أركان الإسلام"
},
{
"id": 9925,
"name": "السنة والتشريع - موسى شاهين لاشين"
},
{
"id": 9933,
"name": "قدم العالم وتسلسل الحوادث"
},
{
"id": 9937,
"name": "من تاريخ النحو العربي"
},
{
"id": 9938,
"name": "الإرشادات في تقوية الأحاديث بالشواهد والمتابعات",
"q": "Q135746522"
},
{
"id": 9939,
"name": "علم نفس النمو"
},
{
"id": 9942,
"name": "الأصول من علم الأصول"
},
{
"id": 9943,
"name": "جلاء العينين في محاكمة الأحمدين"
},
{
"id": 9944,
"name": "المصنف - ابن أبي شيبة - ت الحوت",
"pre": "مصنف ابن أبي شيبة",
"suf": "ت الحوت",
"q": "Q124815435"
},
{
"id": 9945,
"name": "بهجة قلوب الأبرار وقرة عيون الأخيار ط الرشد"
},
{
"id": 9947,
"name": "الجديد في شرح كتاب التوحيد"
},
{
"id": 9948,
"name": "المجالسة وجواهر العلم"
},
{
"id": 9950,
"name": "الملخص في شرح كتاب التوحيد",
"q": "Q135905576"
},
{
"id": 9953,
"name": "الرسالة القشيرية"
},
{
"id": 9964,
"name": "الفوز الكبير في أصول التفسير"
},
{
"id": 9965,
"name": "تبيين الامتنان بالأمر بالاختتان لابن عساكر"
},
{
"id": 9967,
"name": "عالم الملائكة الأبرار"
},
{
"id": 9968,
"name": "الإشارات في علم العبارات"
},
{
"id": 9969,
"name": "أصول التربية الإسلامية وأساليبها في البيت والمدرسة والمجتمع"
},
{
"id": 9970,
"name": "اللغة العربية معناها ومبناها"
},
{
"id": 9971,
"name": "في الميزان الجديد"
},
{
"id": 9972,
"name": "الاتجاهات الحديثة في تخطيط المناهج الدراسية في ضوء التوجيهات الإسلامية"
},
{
"id": 9973,
"name": "المنهاج القويم شرح المقدمة الحضرمية"
},
{
"id": 9974,
"name": "مدرسة الحديث في مصر"
},
{
"id": 9976,
"name": "التطبيق النحوي"
},
{
"id": 9977,
"name": "الصاحبي في فقه اللغة العربية ومسائلها وسنن العرب في كلامها"
},
{
"id": 9978,
"name": "تحفة الطالب بمعرفة أحاديث مختصر ابن الحاجب"
},
{
"id": 9979,
"name": "الشبهات وأثرها في العقوبة الجنائية في الفقه الإسلامي مقارنا بالقانون"
},
{
"id": 9980,
"name": "الجنايات في الفقه الإسلامي دراسة مقارنة بين الفقه الإسلامي والقانون"
},
{
"id": 9981,
"name": "الأدب العربي المعاصر في مصر",
"q": "Q121259626"
},
{
"id": 9983,
"name": "منهاج المحدثين في القرن الأول الهجري وحتى عصرنا الحاضر",
"q": "Q136697808"
},
{
"id": 9984,
"name": "البلغة في تراجم أئمة النحو واللغة"
},
{
"id": 9985,
"name": "شرح التصريح على التوضيح أو التصريح بمضمون التوضيح في النحو"
},
{
"id": 9986,
"name": "الخصائص",
"q": "Q125896651"
},
{
"id": 9987,
"name": "الوسيط في علوم ومصطلح الحديث"
},
{
"id": 9988,
"name": "توضيح المقاصد والمسالك بشرح ألفية ابن مالك"
},
{
"id": 9989,
"name": "الحضارة الإسلامية أسسها ووسائلها وصور من تطبيقات المسلمين لها ولمحات من تأثيرها في سائر الأمم"
},
{
"id": 9990,
"name": "موجز عن الفتوحات الإسلامية"
},
{
"id": 9991,
"name": "مدخل لدراسة العقيدة الإسلامية"
},
{
"id": 9992,
"name": "أسرار ترتيب القرآن",
"q": "Q115731931"
},
{
"id": 9992,
"name": "تناسق الدرر في تناسب السور = أسرار ترتيب القرآن",
"q": "Q115731931"
},
{
"id": 9993,
"name": "قواعد التحديث من فنون مصطلح الحديث"
},
{
"id": 9994,
"name": "جلباب المرأة المسلمة في الكتاب والسنة",
"q": "Q115789647"
},
{
"id": 9995,
"name": "تاريخ التشريع الإسلامي",
"q": "Q125915394"
},
{
"id": 9996,
"name": "دراسات في علم اللغة"
},
{
"id": 9997,
"name": "علوم البلاغة"
},
{
"id": 9998,
"name": "دراسات في فقه اللغة"
},
{
"id": 9999,
"name": "أسواق العرب في الجاهلية والإسلام",
"q": "Q121253740"
},
{
"id": 10000,
"name": "الأدب الجاهلي في آثار الدارسين قديما وحديثا"
},
{
"id": 10001,
"name": "شعر الفتوح الإسلامية في صدر الإسلام"
},
{
"id": 10002,
"name": "دراسات في علوم القرآن - محمد بكر إسماعيل"
},
{
"id": 10003,
"name": "فن المقال الصحفي في أدب طه حسين"
},
{
"id": 10004,
"name": "الاستشراق والتبشير"
},
{
"id": 10005,
"name": "مشارق الأنوار على صحاح الآثار - ط عطاءات العلم",
"pre": "مشارق الأنوار على صحاح الآثار"
},
{
"id": 10006,
"name": "تاريخ الفكر الديني الجاهلي",
"q": "Q124613946"
},
{
"id": 10007,
"name": "طرق تدريس التربية الإسلامية نماذج لإعداد دروسها"
},
{
"id": 10008,
"name": "ديكارت مبادئ الفلسفة"
},
{
"id": 10009,
"name": "مناهج البحث في العلوم السياسية"
},
{
"id": 10010,
"name": "إتحاف فضلاء البشر في القراءات الأربعة عشر",
"q": "Q134033272"
},
{
"id": 10011,
"name": "تنبيه الخلان بتكميل مورد الظمآن مطبوع ضمن كتاب دليل الحيران على مورد الظمآن"
},
{
"id": 10013,
"name": "الفكر السامي في تاريخ الفقه الإسلامي"
},
{
"id": 10014,
"name": "رسم المصحف العثماني وأوهام المستشرقين في قراءات القرآن الكريم"
},
{
"id": 10015,
"name": "مختصر في قواعد التفسير"
},
{
"id": 10016,
"name": "العقد التليد في اختصار الدر النضيد = المعيد في أدب المفيد والمستفيد"
},
{
"id": 10017,
"name": "الإقناع في القراءات السبع"
},
{
"id": 10018,
"name": "النحو الواضح في قواعد اللغة العربية"
},
{
"id": 10019,
"name": "علم اللغة مقدمة للقارئ العربي"
},
{
"id": 10021,
"name": "المنهاج الواضح للبلاغة"
},
{
"id": 10025,
"name": "التذكرة للحميدي"
},
{
"id": 10045,
"name": "تجريد التوحيد المفيد"
},
{
"id": 10046,
"name": "تحذير أهل الأيمان عن الحكم بغير ما أنزل الرحمن"
},
{
"id": 10059,
"name": "تزكية النفوس"
},
{
"id": 10088,
"name": "أيسر التفاسير للجزائري"
},
{
"id": 10089,
"name": "تفسير ابن عربي للقرآن حقيقته وخطره"
},
{
"id": 10091,
"name": "تفسير الكتاب العزيز وإعرابه"
},
{
"id": 10095,
"name": "تلخيص صفة صلاة النبي صلى الله عليه وآله وسلم"
},
{
"id": 10096,
"name": "تلوين الخطاب لابن كمال باشا دراسة وتحقيق"
},
{
"id": 10098,
"name": "تنبيه الحذاق على بطلان ما شاع بين الأنام من حديث النور المنسوب لمصنف عبد الرزاق"
},
{
"id": 10103,
"name": "تنقيح المناظرة في تصحيح المخابرة"
},
{
"id": 10120,
"name": "الحديث الموضوعي - جامعة المدينة"
},
{
"id": 10169,
"name": "حكم القراءة على الأموات"
},
{
"id": 10189,
"name": "الأدب المقارن - جامعة المدينة (بكالوريوس)"
},
{
"id": 10257,
"name": "ذكرياتي في إفريقيا"
},
{
"id": 10262,
"name": "مفيد العلوم ومبيد الهموم"
},
{
"id": 10269,
"name": "فضائل الرمي لإسحاق القراب"
},
{
"id": 10272,
"name": "العلل ومعرفة الرجال لأحمد رواية المروذي وغيره ت وصي الله عباس"
},
{
"id": 10273,
"name": "البحر المديد في تفسير القرآن المجيد"
},
{
"id": 10275,
"name": "نشوار المحاضرة وأخبار المذاكرة"
},
{
"id": 10277,
"name": "ففروا إلى الله - القلموني"
},
{
"id": 10280,
"name": "تبييض الصحيفة بأصول الأحاديث الضعيفة"
},
{
"id": 10281,
"name": "بغية الإيضاح لتلخيص المفتاح في علوم البلاغة"
},
{
"id": 10283,
"name": "نهاية الأرب في فنون الأدب",
"q": "Q114648205"
},
{
"id": 10284,
"name": "المستدرك على مجموع الفتاوى",
"q": "Q115910754"
},
{
"id": 10306,
"name": "التعليم في بلاد المسلمين"
},
{
"id": 10312,
"name": "شرح الأثيوبي على ألفية السيوطي في الحديث = إسعاف ذوي الوطر بشرح نظم الدرر في علم الأثر"
},
{
"id": 10321,
"name": "التمسك بالسنن والتحذير من البدع"
},
{
"id": 10322,
"name": "التنبيهات المجملة على المواضع المشكلة"
},
{
"id": 10329,
"name": "التفسير الموضوعي 2 - جامعة المدينة"
},
{
"id": 10340,
"name": "الحدود في علم النحو"
},
{
"id": 10369,
"name": "أصول الدعوة وطرقها 4 - جامعة المدينة"
},
{
"id": 10391,
"name": "الرقية الشرعية من الكتاب والسنة"
},
{
"id": 10414,
"name": "الفروق اللغوية - ت محمد سليم",
"pre": "الفروق اللغوية",
"suf": "ت محمد سليم"
},
{
"id": 10423,
"name": "الصفات الإلهية في الكتاب والسنة النبوية في ضوء الإثبات والتنزيه"
},
{
"id": 10426,
"name": "نجعة الرائد وشرعة الوارد في المترادف والمتوارد"
},
{
"id": 10428,
"name": "الرسائل للجاحظ",
"q": "Q134476203"
},
{
"id": 10432,
"name": "الإحكام في أصول الأحكام - ابن حزم"
},
{
"id": 10437,
"name": "مثير الغرام الساكن إلى أشرف الأماكن ط دار الحديث"
},
{
"id": 10438,
"name": "الجامع لكتب الضعفاء والمتروكين والكذابين"
},
{
"id": 10442,
"name": "سلسلة الآثار الصحيحة أو الصحيح المسند من أقوال الصحابة والتابعين"
},
{
"id": 10443,
"name": "جامع العلوم والحكم - ت أبي النور",
"pre": "جامع العلوم والحكم",
"suf": "ت الأحمدي أبي النور"
},
{
"id": 10446,
"name": "رقية الأبرار"
},
{
"id": 10448,
"name": "الأحكام الملمة على الدروس المهمة لعامة الأمة"
},
{
"id": 10450,
"name": "تذكرة الأريب في تفسير الغريب"
},
{
"id": 10452,
"name": "مغاني الأخيار في شرح أسامي رجال معاني الآثار"
},
{
"id": 10458,
"name": "القول السديد شرح كتاب التوحيد ط الوزارة"
},
{
"id": 10460,
"name": "جمال القراء وكمال الإقراء - ط المأمون",
"pre": "جمال القراء وكمال الإقراء",
"suf": "ط المأمون",
"q": "Q120645994"
},
{
"id": 10461,
"name": "مناقب الإمام أبي حنيفة وصاحبيه"
},
{
"id": 10463,
"name": "تفسير ابن رجب الحنبلي"
},
{
"id": 10470,
"name": "التعليق على فتح الباري"
},
{
"id": 10471,
"name": "اعتقاد أهل السنة شرح أصحاب الحديث"
},
{
"id": 10472,
"name": "اعتقاد أئمة الحديث"
},
{
"id": 10480,
"name": "الأحاديث المختارة",
"q": "Q118124632"
},
{
"id": 10483,
"name": "ألفية السيوطي نظم الدرر في علم الأثر - ت الفحل",
"pre": "ألفية السيوطي نظم الدرر في علم الأثر",
"suf": "ت الفحل"
},
{
"id": 10485,
"name": "العقود الدرية في مناقب ابن تيمية - ط عطاءات العلم",
"pre": "العقود الدرية في مناقب ابن تيمية",
"suf": "ط عطاءات العلم",
"q": "Q115797544"
},
{
"id": 10486,
"name": "شرح صحيح البخاري - ابن بطال",
"pre": "«شرح صحيح البخاري» لابن بطال"
},
{
"id": 10487,
"name": "الإبطال لنظرية الخلط بين دين الإسلام وغيره من الأديان"
},
{
"id": 10488,
"name": "تنبيه الغافلين بأحاديث سيد الأنبياء والمرسلين للسمرقندي"
},
{
"id": 10490,
"name": "معرفة الصحابة لأبي نعيم",
"q": "Q116762289"
},
{
"id": 10495,
"name": "حلية الأولياء وطبقات الأصفياء - ط السعادة",
"q": "Q120999035"
},
{
"id": 10496,
"name": "لباب الآداب لأسامة بن منقذ"
},
{
"id": 10497,
"name": "الأمثال المولدة"
},
{
"id": 10500,
"name": "الحدود والتعزيرات عند ابن القيم"
},
{
"id": 10501,
"name": "البخلاء للجاحظ"
},
{
"id": 10506,
"name": "البغال"
},
{
"id": 10508,
"name": "الفاضل"
},
{
"id": 10509,
"name": "اللطائف والظرائف",
"q": "Q134476460"
},
{
"id": 10511,
"name": "المحاسن والأضداد"
},
{
"id": 10512,
"name": "روض الأخيار المنتخب من ربيع الأبرار",
"q": "Q125505015"
},
{
"id": 10518,
"name": "طوق الحمامة لابن حزم"
},
{
"id": 10521,
"name": "الإمتاع والمؤانسة"
},
{
"id": 10525,
"name": "إنباه الرواة على أنباه النحاة",
"q": "Q116971836"
},
{
"id": 10526,
"name": "معالم القربة في طلب الحسبة"
},
{
"id": 10527,
"name": "مشارق الأنوار على صحاح الآثار - ط المغرب",
"pre": "مشارق الأنوار على صحاح الآثار"
},
{
"id": 10529,
"name": "الأوائل للعسكري"
},
{
"id": 10531,
"name": "أخلاق أهل القرآن",
"q": "Q127327882"
},
{
"id": 10532,
"name": "الأوراق قسم أخبار الشعراء"
},
{
"id": 10533,
"name": "الأمثال - ابن رفاعة"
},
{
"id": 10538,
"name": "البرصان والعرجان والعميان والحولان"
},
{
"id": 10540,
"name": "المقال وتطوره في الأدب المعاصر"
},
{
"id": 10541,
"name": "إصلاح المساجد من البدع والعوائد",
"q": "Q136510615"
},
{
"id": 10542,
"name": "الضعفاء الصغير للبخاري ت زايد"
},
{
"id": 10543,
"name": "فنون التحرير الصحفي بين النظرية والتطبيق المقال الصحفي"
},
{
"id": 10545,
"name": "المنصف لابن جني، شرح كتاب التصريف لأبي عثمان المازني"
},
{
"id": 10546,
"name": "المدارس النحوية"
},
{
"id": 10547,
"name": "المذاهب الفكرية المعاصرة ودورها في المجتمعات وموقف المسلم منها"
},
{
"id": 10548,
"name": "تاريخ آداب العرب"
},
{
"id": 10549,
"name": "شرح العقيدة الطحاوية - ط المكتب الإسلامي التاسعة",
"pre": "شرح العقيدة الطحاوية",
"q": "Q136697556"
},
{
"id": 10550,
"name": "الفلك الدائر على المثل السائر"
},
{
"id": 10551,
"name": "المثل السائر في أدب الكاتب والشاعر ت الحوفي"
},
{
"id": 10552,
"name": "السيرة النبوية والدعوة في العهد المكي"
},
{
"id": 10553,
"name": "العملية الإرشادية"
},
{
"id": 10554,
"name": "مشارق الأنوار على صحاح الآثار - ت الشامي",
"pre": "مشارق الأنوار على صحاح الآثار"
},
{
"id": 10604,
"name": "الدخيل في التفسير - جامعة المدينة"
},
{
"id": 10609,
"name": "رسالة إلى المدرسين والمدرسات"
},
{
"id": 10614,
"name": "البيان والتبيين",
"q": "Q114648059"
},
{
"id": 10618,
"name": "تنبيه القارئ"
},
{
"id": 10619,
"name": "اللؤلؤ والمرجان فيما اتفق عليه الشيخان"
},
{
"id": 10620,
"name": "الأربعون لمحمد بن أسلم الطوسي",
"q": "Q131337439"
},
{
"id": 10627,
"name": "الفوائد المعللة لأبي زرعة الدمشقي"
},
{
"id": 10628,
"name": "القبور لابن أبي الدنيا"
},
{
"id": 10631,
"name": "المنتخب من مسند عبد بن حميد ت مصطفى العدوي"
},
{
"id": 10636,
"name": "فضائح الصوفية"
},
{
"id": 10637,
"name": "دلائل النبوة - أبو نعيم الأصبهاني"
},
{
"id": 10639,
"name": "الأذكار للنووي ط ابن حزم"
},
{
"id": 10640,
"name": "التوقيف على مهمات التعاريف"
},
{
"id": 10641,
"name": "النحو الوافي"
},
{
"id": 10646,
"name": "التذكرة الحمدونية",
"q": "Q114814447"
},
{
"id": 10649,
"name": "الشرح الممتع على زاد المستقنع",
"q": "Q116877802"
},
{
"id": 10652,
"name": "جامع تفاسير الأحلام = تنبيه الأفهام بتأويل الأحلام"
},
{
"id": 10657,
"name": "تنقيح التحقيق - ابن عبد الهادي - ط أضواء السلف",
"pre": "تنقيح التحقيق - ابن عبد الهادي"
},
{
"id": 10659,
"name": "مسانيد فراس المكتب"
},
{
"id": 10660,
"name": "شعب الإيمان - ط الرشد",
"pre": "شعب الإيمان",
"suf": "ط الرشد"
},
{
"id": 10664,
"name": "حياة الحيوان الكبرى",
"q": "Q126871424"
},
{
"id": 10665,
"name": "دمية القصر وعصرة أهل العصر"
},
{
"id": 10668,
"name": "ربيع الأبرار ونصوص الأخيار",
"q": "Q125474668"
},
{
"id": 10670,
"name": "الرسائل الأدبية"
},
{
"id": 10695,
"name": "الدرر في اختصار المغازي والسير",
"q": "Q124005269"
},
{
"id": 10699,
"name": "تبسيط العقائد الإسلامية"
},
{
"id": 10703,
"name": "قواعد تفسير الأحلام = البدر المنير في علم التعبير"
},
{
"id": 10704,
"name": "الحاوي في الطب"
},
{
"id": 10705,
"name": "العلاج بالأعشاب"
},
{
"id": 10706,
"name": "القانون في الطب"
},
{
"id": 10709,
"name": "الرسائل السياسية",
"q": "Q134476348"
},
{
"id": 10710,
"name": "رسائل المقريزي"
},
{
"id": 10713,
"name": "أسماء مؤلفات شيخ الإسلام ابن تيمية"
},
{
"id": 10714,
"name": "المعجم المفهرس = تجريد أسانيد الكتب المشهورة والأجزاء المنثورة",
"q": "Q135264669"
},
{
"id": 10717,
"name": "الحطة في ذكر الصحاح الستة",
"q": "Q136511082"
},
{
"id": 10719,
"name": "بذل المجهود في إفحام اليهود ت طويلة"
},
{
"id": 10720,
"name": "أدب المفتي والمستفتي",
"q": "Q128120642"
},
{
"id": 10726,
"name": "فهرسة ابن خير - ط العلمية"
},
{
"id": 10728,
"name": "فهرس ابن عطية",
"q": "Q135293423"
},
{
"id": 10730,
"name": "قطف الثمر في رفع أسانيد المصنفات"
},
{
"id": 10731,
"name": "فهرسة اللبلي"
},
{
"id": 10732,
"name": "فهرسة علي بن خليفة المساكني"
},
{
"id": 10733,
"name": "إتمام الدراية لقراء النقاية",
"q": "Q125913640"
},
{
"id": 10734,
"name": "أسماء الكتب المتمم لكشف الظنون",
"pre": "أسماء الكتب",
"suf": "ط الأولى"
},
{
"id": 10735,
"name": "برنامج المجاري"
},
{
"id": 10736,
"name": "ثبت أبي جعفر أحمد بن علي"
},
{
"id": 10737,
"name": "معجم الكتب"
},
{
"id": 10739,
"name": "لقطة العجلان مما تمس إلى معرفته حاجة الإنسان",
"q": "Q135436721"
},
{
"id": 10740,
"name": "برنامج الوادي آشي"
},
{
"id": 10744,
"name": "النظام القضائي في الفقه الإسلامي"
},
{
"id": 10746,
"name": "حاضر العالم الإسلامي"
},
{
"id": 10747,
"name": "نور اللمعة في خصائص الجمعة"
},
{
"id": 10748,
"name": "اللغة وعلم اللغة"
},
{
"id": 10751,
"name": "علم نفس النمو من الجنين إلى الشيخوخة"
},
{
"id": 10752,
"name": "دعوة الرسل عليهم السلام"
},
{
"id": 10756,
"name": "مجالس رمضان - ابن عثيمين"
},
{
"id": 10757,
"name": "صحيح الجامع الصغير وزيادته",
"q": "Q116878283"
},
{
"id": 10758,
"name": "الفوائد الجليلة في مسلسلات ابن عقيلة"
},
{
"id": 10765,
"name": "أحكام القرآن للطحاوي",
"q": "Q127327249"
},
{
"id": 10767,
"name": "علم أصول الفقه ط مكتبة الدعوة"
},
{
"id": 10768,
"name": "زهر الآداب وثمر الألباب",
"q": "Q123472284"
},
{
"id": 10776,
"name": "فقه النوازل"
},
{
"id": 10777,
"name": "شرح العقيدة الطحاوية - ط الأوقاف السعودية - بتعليقات أحمد شاكر",
"pre": "شرح العقيدة الطحاوية - ط الأوقاف السعودية"
},
{
"id": 10778,
"name": "المسلسلات المختصرة المقدمة أمام المجالس المبتكرة"
},
{
"id": 10779,
"name": "الخطابة الإسلامية"
},
{
"id": 10781,
"name": "شرح مختصر الروضة",
"q": "Q127432972"
},
{
"id": 10782,
"name": "كشف الكربة في وصف أهل الغربة"
},
{
"id": 10784,
"name": "الرسالة العرشية",
"q": "Q115910420"
},
{
"id": 10791,
"name": "المسالك والممالك للاصطخري أو مسالك الممالك - ليدن"
},
{
"id": 10797,
"name": "الاشارات الى معرفة الزيارات"
},
{
"id": 10798,
"name": "بغية الطلب فى تاريخ حلب",
"q": "Q114687858"
},
{
"id": 10798,
"name": "بغية الطلب فى تاريخ حلب - ت زكار",
"pre": "بغية الطلب فى تاريخ حلب",
"suf": "ت زكار",
"q": "Q114687858"
},
{
"id": 10799,
"name": "فضائل رمضان لابن أبي الدنيا"
},
{
"id": 10801,
"name": "الإحكام في أصول الأحكام - الآمدي"
},
{
"id": 10802,
"name": "الضعفاء والمتروكون للدارقطني"
},
{
"id": 10803,
"name": "الأنوار في شمائل النبي المختار"
},
{
"id": 10805,
"name": "الضعفاء والمتروكون للنسائي"
},
{
"id": 10806,
"name": "حماسة الخالديين = الأشباه والنظائر من أشعار المتقدمين والجاهليين والمخضرمين"
},
{
"id": 10808,
"name": "البلدان لليعقوبي",
"q": "Q114966099"
},
{
"id": 10809,
"name": "حدود العالم من المشرق الى المغرب"
},
{
"id": 10810,
"name": "شرح عمدة الفقه - ابن تيمية - كتاب الحج"
},
{
"id": 10814,
"name": "إشكال وجوابه في حديث أم حرام بنت ملحان"
},
{
"id": 10815,
"name": "أحكام الجراحة الطبية والآثار المترتبة عليها"
},
{
"id": 10816,
"name": "صحيح الأثر وجميل العبر من سيرة خير البشر (صلى الله عليه وسلم)"
},
{
"id": 10826,
"name": "بغية الملتمس في سباعيات حديث الإمام مالك بن أنس"
},
{
"id": 10842,
"name": "الفصل للوصل المدرج في النقل"
},
{
"id": 10843,
"name": "تعليقات الدارقطني على المجروحين لابن حبان"
},
{
"id": 10845,
"name": "أنوار الهلالين في التعقبات على الجلالين"
},
{
"id": 10847,
"name": "أهداف دعوة الشيخ محمد بن عبد الوهاب"
},
{
"id": 10860,
"name": "أهدى سبيل إلى علمي الخليل"
},
{
"id": 10871,
"name": "أهمية العناية بالتفسير والحديث والفقه"
},
{
"id": 10875,
"name": "المحيط البرهاني"
},
{
"id": 10883,
"name": "رحلة ابن جبير ط دار الهلال"
},
{
"id": 10895,
"name": "منحة القريب المجيب في الرد على عباد الصليب"
},
{
"id": 10896,
"name": "نقض كلام المفترين على الحنابلة السلفيين"
},
{
"id": 10898,
"name": "أهمية دراسة السيرة النبوية للمعلمين"
},
{
"id": 10899,
"name": "أهمية دراسة السيرة النبوية والعناية بها في حياة المسلمين"
},
{
"id": 10900,
"name": "أهوال القبور وأحوال أهلها إلى النشور"
},
{
"id": 10901,
"name": "آيات متشابهات الألفاظ في القرآن الكريم وكيف التمييز بينها"
},
{
"id": 10902,
"name": "رجال صحيح البخاري = الهداية والإرشاد في معرفة أهل الثقة والسداد"
},
{
"id": 10903,
"name": "الوحي والإنسان - قراءة معرفية"
},
{
"id": 10906,
"name": "سير أعلام النبلاء - ط الرسالة",
"pre": "سير أعلام النبلاء",
"suf": "ط الرسالة",
"q": "Q113078038"
},
{
"id": 10907,
"name": "تكملة سير أعلام النبلاء - ط الرسالة العالمية"
},
{
"id": 10908,
"name": "العدة شرح العمدة"
},
{
"id": 10909,
"name": "العمدة في محاسن الشعر وآدابه",
"q": "Q114757242"
},
{
"id": 10910,
"name": "القاعدة الذهبية لا ضرر ولا ضرار"
},
{
"id": 10911,
"name": "القوافي للتنوخي"
},
{
"id": 10912,
"name": "الكواكب السائرة بأعيان المئة العاشرة",
"q": "Q120985041"
},
{
"id": 10913,
"name": "المؤتلف والمختلف في أسماء الشعراء",
"q": "Q121254233"
},
{
"id": 10914,
"name": "المختار من شعر شعراء الأندلس"
},
{
"id": 10915,
"name": "إيجاز التعريف في علم التصريف"
},
{
"id": 10916,
"name": "المقابسات"
},
{
"id": 10917,
"name": "المقصد لتلخيص ما في المرشد"
},
{
"id": 10918,
"name": "المقنع في رسم مصاحف الأمصار"
},
{
"id": 10920,
"name": "النقط"
},
{
"id": 10921,
"name": "الوفيات - لابن قنفذ",
"q": "Q135657916"
},
{
"id": 10922,
"name": "بشارة المحبوب بتكفير الذنوب"
},
{
"id": 10924,
"name": "بشرى الكئيب بلقاء الحبيب"
},
{
"id": 10925,
"name": "تاج التراجم في طبقات الحنفية",
"pre": "«تاج التراجم» لابن قطلوبغا"
},
{
"id": 10927,
"name": "تاريخ بيت المقدس"
},
{
"id": 10929,
"name": "تنبيه الغافلين وإرشاد الجاهلين"
},
{
"id": 10930,
"name": "أنيس الفقهاء في تعريفات الألفاظ المتداولة بين الفقهاء"
},
{
"id": 11023,
"name": "تنبيه النائم الغمر على مواسم العمر - ط ابن حزم",
"pre": "تنبيه النائم الغمر على مواسم العمر",
"suf": "ط ابن حزم"
},
{
"id": 11030,
"name": "قرى الضيف لابن أبي الدنيا"
},
{
"id": 11036,
"name": "طرح التثريب في شرح التقريب",
"q": "Q130281056"
},
{
"id": 11037,
"name": "حديث يحيى بن معين رواية أبي منصور الشيباني"
},
{
"id": 11055,
"name": "تهافت الفلاسفة"
},
{
"id": 11056,
"name": "ثمرات الأوراق في المحاضرات"
},
{
"id": 11061,
"name": "معجم الجرح والتعديل لرجال السنن الكبرى"
},
{
"id": 11064,
"name": "حق الجار"
},
{
"id": 11066,
"name": "بأي عقل ودين يكون التفجير والتدمير جهادا؟! ويحكم ... أفيقوا يا شباب!!"
},
{
"id": 11067,
"name": "ببلوغرافيا لكتب الحديث والسنة بالغة الإنكليزية"
},
{
"id": 11068,
"name": "أخبار الحمقى والمغفلين"
},
{
"id": 11069,
"name": "بحوث وفتاوى في المسح على الخفين"
},
{
"id": 11070,
"name": "بعض فوائد صلح الحديبية (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثاني عشر)"
},
{
"id": 11071,
"name": "بغية المرتاد في الرد على المتفلسفة والقرامطة والباطنية"
},
{
"id": 11073,
"name": "بيان المحجة في الرد على اللجة (مطبوع ضمن الرسائل والمسائل النجدية، الجزء الرابع، القسم الأول)"
},
{
"id": 11074,
"name": "بيان كلمة التوحيد والرد على الكشميري عبد المحمود (مطبوع ضمن الرسائل والمسائل النجدية، الجزء الرابع، القسم الأول)"
},
{
"id": 11075,
"name": "بناء المجتمع الإسلامي"
},
{
"id": 11076,
"name": "تأثر الدعوات الإصلاحية في أندونيسيا بدعوة الشيخ محمد بن عبد الوهاب (مطبوع ضمن بحوث ندوة دعوة الشيخ محمد بن عبد الوهاب)"
},
{
"id": 11077,
"name": "تاريخ جرجان"
},
{
"id": 11078,
"name": "تاريخ شبه الجزيرة العربية في عصورها القديمة",
"q": "Q121254444"
},
{
"id": 11079,
"name": "تأسيس التقديس في كشف تلبيس داود بن جرجيس"
},
{
"id": 11080,
"name": "تجربتي مع الإعجاز العلمي في السنة النبوية"
},
{
"id": 11081,
"name": "تحريم آلات الطرب",
"q": "Q115789669"
},
{
"id": 11082,
"name": "تحفة الطالب والجليس في كشف شبه داود بن جرجيس"
},
{
"id": 11083,
"name": "تاريخ أسماء الضعفاء والكذابين"
},
{
"id": 11084,
"name": "تاريخ العرب القديم",
"q": "Q107564545"
},
{
"id": 11085,
"name": "تأملات في دعوة الشيخ محمد بن عبد الوهاب"
},
{
"id": 11087,
"name": "تحقيق الرجحان بصوم يوم الشك من رمضان"
},
{
"id": 11088,
"name": "تحقيق منيف الرتبة لمن ثبت له شريف الصحبة"
},
{
"id": 11089,
"name": "تدريس القرآن الكريم في السجون ودور الملاحظة الاجتماعية"
},
{
"id": 11090,
"name": "تدوين السنة النبوية في القرنين الثاني والثالث للهجرة"
},
{
"id": 11091,
"name": "تدوين السنة النبوية نشأته وتطوره من القرن الأول إلى نهاية القرن التاسع الهجري"
},
{
"id": 11092,
"name": "تسلية الأعمى عن بلية العمى"
},
{
"id": 11093,
"name": "تذكرة المؤتسي شرح عقيدة الحافظ عبد الغني المقدسي"
},
{
"id": 11094,
"name": "[شرح] تسهيل العقيدة الإسلامية - ط 2",
"pre": "تسهيل العقيدة الإسلامية",
"suf": "ط 2"
},
{
"id": 11095,
"name": "تسهيل الفرائض"
},
{
"id": 11096,
"name": "تسهيل المناسك"
},
{
"id": 11097,
"name": "تصحيح حديث إفطار الصائم قبل سفرة بعد الفجر"
},
{
"id": 11098,
"name": "تطهير الاعتقاد عن أدران الإلحاد ويليه شرح الصدور في تحريم رفع القبور"
},
{
"id": 11099,
"name": "تفسير آيات من القرآن الكريم (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الخامس)"
},
{
"id": 11100,
"name": "تقريب التدمرية"
},
{
"id": 11101,
"name": "تقويم أساليب تعليم القرآن الكريم وعلومه في وسائل الإعلام"
},
{
"id": 11102,
"name": "تقويم الأعمال التي تناولت الإعجاز العلمي والطبي في السنة النبوية"
},
{
"id": 11103,
"name": "تقويم تعليم حفظ القرآن الكريم وتعليمه في حلقات جمعيات تحفيظ القرآن الكريم"
},
{
"id": 11106,
"name": "تقويم طرق تعليم القرآن وعلومه في مدارس تحفيظ القرآن الكريم"
},
{
"id": 11108,
"name": "تلخيص أحكام الجنائز"
},
{
"id": 11109,
"name": "تلخيص فقة الفرائض"
},
{
"id": 11122,
"name": "تمام المنة في التعليق على فقه السنة",
"q": "Q115789627"
},
{
"id": 11123,
"name": "تنبيه ذوي الألباب السليمة عن والوقوع في الألفاظ المبتدعة الوخيمة"
},
{
"id": 11124,
"name": "توجيه وتنبيه إلى هواة الصيد ومحبيه"
},
{
"id": 11125,
"name": "توضيح مقاصد المصطلحات العلمية في الرسالة التدمرية"
},
{
"id": 11126,
"name": "ثلاثة الأصول (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الأول)"
},
{
"id": 11131,
"name": "جمع القرآن الكريم حفظا وكتابة"
},
{
"id": 11132,
"name": "جمع القرآن الكريم في عهد الخلفاء الراشدين - عبد القيوم السندي"
},
{
"id": 11134,
"name": "جمع القرآن الكريم في عهد الخلفاء الراشدين - فهد الرومي"
},
{
"id": 11136,
"name": "أصول الدعوة وطرقها 1 - جامعة المدينة"
},
{
"id": 11137,
"name": "جزء فيه ذكر اعتقاد السلف في الحروف والأصوات"
},
{
"id": 11138,
"name": "جهود الاستشراق الروسي في مجال السنة والسيرة"
},
{
"id": 11139,
"name": "جهود العلماء في تصنيف السيرة النبوية في القرنين الثامن والتاسع الهجريين"
},
{
"id": 11140,
"name": "جهود المحدثين في بيان علل الحديث"
},
{
"id": 11144,
"name": "جهود علماء المسلمين في تمييز صحيح السيرة النبوية من ضعيفها"
},
{
"id": 11146,
"name": "جواب أهل السنة النبوية في نقض كلام الشيعة والزيدية (مطبوع ضمن الرسائل والمسائل النجدية، الجزء الرابع، القسم الأول)"
},
{
"id": 11147,
"name": "حادي الأرواح إلى بلاد الأفراح - ط المدني",
"pre": "حادي الأرواح إلى بلاد الأفراح"
},
{
"id": 11148,
"name": "حاشية ثلاثة الأصول"
},
{
"id": 11149,
"name": "حاشية كتاب التوحيد"
},
{
"id": 11150,
"name": "حجاب المرأة ولباسها في الصلاة"
},
{
"id": 11151,
"name": "عروس الأفراح في شرح تلخيص المفتاح"
},
{
"id": 11153,
"name": "حجية خبر الآحاد في العقائد والأحكام - عامر حسن صبري"
},
{
"id": 11154,
"name": "حجية خبر الآحاد في العقائد والأحكام - فرحانة بنت علي شويتة"
},
{
"id": 11155,
"name": "حجية خبر الآحاد في العقائد والأحكام - محمد جميل مبارك"
},
{
"id": 11156,
"name": "حركة التجديد والإصلاح في نجد"
},
{
"id": 11158,
"name": "حصول المأمول بشرح ثلاثة الأصول"
},
{
"id": 11162,
"name": "حقوق آل البيت"
},
{
"id": 11163,
"name": "حقيقة الجهاد في سبيل الله ومحرمة الخروج على حاكم المسلمين"
},
{
"id": 11164,
"name": "حقيقة دعوة الإمام الشيخ محمد بن عبد الوهاب السلفية"
},
{
"id": 11166,
"name": "حكم تارك الصلاة - العثيمين"
},
{
"id": 11167,
"name": "حماية الرسول صلى الله عليه وسلم حمى التوحيد"
},
{
"id": 11168,
"name": "حوار حول منهج المحدثين في نقد الروايات سندا ومتنا"
},
{
"id": 11171,
"name": "حياة الشيخ محمد بن عبد الوهاب وحقيقة دعوته"
},
{
"id": 11172,
"name": "خبر الواحد وحجيته"
},
{
"id": 11173,
"name": "خصائص التفكير الفقهي عند الشيخ محمد بن عبد الوهاب (مطبوع ضمن بحوث ندوة دعوة الشيخ محمد بن عبد الوهاب، الجزء الأول)"
},
{
"id": 11174,
"name": "خصائص مسند الإمام أحمد"
},
{
"id": 11175,
"name": "خطبة الحاجة التي كان رسول الله صلى الله عليه وسلم يعلمها أصحابه"
},
{
"id": 11177,
"name": "داعية التوحيد محمد بن عبد الوهاب"
},
{
"id": 11180,
"name": "دحض دعوى المستشرقين أن القرآن من عند النبي صلى الله عليه وسلم"
},
{
"id": 11181,
"name": "دحض شبهات على التوحيد من سوء الفهم لثلاثة أحاديث"
},
{
"id": 11182,
"name": "دراسات إسبانية للسيرة النبوية"
},
{
"id": 11183,
"name": "دراسات في الأديان اليهودية والنصرانية"
},
{
"id": 11184,
"name": "دراسة في نصوص العصر الجاهلي تحليل وتذوق"
},
{
"id": 11186,
"name": "دعاوي المناوئين لدعوة الشيخ محمد بن عبد الوهاب",
"q": "Q123653396"
},
{
"id": 11187,
"name": "دعاوى النصارى في مجيء المسيح عليه السلام"
},
{
"id": 11188,
"name": "دعايات مكثفة ضد الشيخ محمد بن عبد الوهاب",
"q": "Q125433185"
},
{
"id": 11189,
"name": "دعوة الإمام محمد بن عبد الوهاب سلفية لا وهابية"
},
{
"id": 11192,
"name": "الأسئلة والأجوبة الفقهية"
},
{
"id": 11194,
"name": "عمدة الأحكام الكبرى"
},
{
"id": 11195,
"name": "دعوة إلى السنة في تطبيق السنة منهجا وأسلوبا"
},
{
"id": 11196,
"name": "دليل الطالب لنيل المطالب"
},
{
"id": 11199,
"name": "أصول النحو 1 - جامعة المدينة"
},
{
"id": 11200,
"name": "البلاغة 1 - البيان والبديع - جامعة المدينة"
},
{
"id": 11201,
"name": "دور علماء مكة المكرمة في خدمة السنة والسيرة النبوية"
},
{
"id": 11203,
"name": "رحلة ابن جبير ط دار بيروت"
},
{
"id": 11207,
"name": "رؤية النبي صلى الله عليه وسلم لربه"
},
{
"id": 11209,
"name": "رد الطعون الواردة في الموسوعة العبرية عن الإسلام ورسوله صلى الله عليه وسلم"
},
{
"id": 11210,
"name": "رسائل وفتاوى الشيخ حمد بن ناصر بن عثمان بن معمر (مطبوع ضمن مجموعة الرسائل والمسائل النجدية، الجزء الثاني)"
},
{
"id": 11211,
"name": "رسائل وفتاوى عبد الرحمن بن حسن بن محمد عبد الوهاب"
},
{
"id": 11212,
"name": "رسائل وفتاوى أبا بطين"
},
{
"id": 11213,
"name": "رسالة السجزي إلى أهل زبيد في الرد على من أنكر الحرف والصوت"
},
{
"id": 11214,
"name": "رسالة إلى أهل الثغر بباب الأبواب"
},
{
"id": 11216,
"name": "رسالة في أصول الدين"
},
{
"id": 11217,
"name": "رسالة في الرد على الرافضة (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثاني عشر)"
},
{
"id": 11218,
"name": "رسالة في القرآن وكلام الله"
},
{
"id": 11221,
"name": "فضل الإسلام (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزءالأول)"
},
{
"id": 11222,
"name": "فضل الصلاة على النبي صلى الله عليه وسلم وبيان معناها وكيفيتها وشيء مما ألف فيها"
},
{
"id": 11223,
"name": "رسالة في القضاء والقدر"
},
{
"id": 11224,
"name": "رسالة في زكاة الحلي"
},
{
"id": 11225,
"name": "رسالة في سجود السهو"
},
{
"id": 11226,
"name": "رسالة مهمة للإمام المجاهد العلامة عبد العزيز بن محمد بن سعود"
},
{
"id": 11228,
"name": "رفقا أهل السنة بأهل السنة"
},
{
"id": 11229,
"name": "روضة المحبين ونزهة المشتاقين - ط العلمية",
"pre": "روضة المحبين ونزهة المشتاقين",
"suf": "ط العلمية"
},
{
"id": 11230,
"name": "زاد المستقنع في اختصار المقنع - ت العسكر",
"pre": "زاد المستقنع في اختصار المقنع",
"suf": "ت العسكر"
},
{
"id": 11232,
"name": "فضل المدينة وآداب سكناها وزيارتها"
},
{
"id": 11233,
"name": "فضل أهل البيت وعلو مكانتهم عند أهل السنة والجماعة"
},
{
"id": 11234,
"name": "زيادة الإيمان ونقصانه وحكم الاستثناء فيه"
},
{
"id": 11235,
"name": "فقه اللغة وسر العربية",
"q": "Q115789127"
},
{
"id": 11236,
"name": "سؤالات أبي عبيد الآجري أبا داود السجستاني في الجرح والتعديل",
"q": "Q135658272"
},
{
"id": 11237,
"name": "سؤالات البرقاني للدارقطني ت القشقري"
},
{
"id": 11238,
"name": "سجود التلاوة معانيه وأحكامه"
},
{
"id": 11239,
"name": "سر الفصاحة"
},
{
"id": 11240,
"name": "سنة الجمعة"
},
{
"id": 11241,
"name": "شبهات القرآنيين حول السنة النبوية"
},
{
"id": 11242,
"name": "شبهات القرآنيين"
},
{
"id": 11243,
"name": "شذا العرف في فن الصرف"
},
{
"id": 11244,
"name": "شرح الأربعين النووية لابن دقيق العيد"
},
{
"id": 11245,
"name": "سوء الخلق"
},
{
"id": 11246,
"name": "طالب العلم بين أمانة التحمل ومسؤولية الأداء"
},
{
"id": 11247,
"name": "طريقك الى الإخلاص والفقه في الدين"
},
{
"id": 11248,
"name": "شرح العقيدة الأصفهانية",
"q": "Q115911456"
},
{
"id": 11249,
"name": "شرح العقيدة الواسطية - خالد المصلح"
},
{
"id": 11250,
"name": "شرح العقيدة الواسطية - العثيمين"
},
{
"id": 11251,
"name": "شرح عمدة الفقه - ابن تيمية - من كتاب الصلاة"
},
{
"id": 11252,
"name": "شرح القواعد الأربع",
"q": "Q136687225"
},
{
"id": 11253,
"name": "شرح المعلقات السبع للزوزني"
},
{
"id": 11254,
"name": "شرح المنظومة البيقونية في مصطلح الحديث"
},
{
"id": 11255,
"name": "شرح ثلاثة الأصول لابن باز"
},
{
"id": 11256,
"name": "شرح التدمرية - الخميس"
},
{
"id": 11257,
"name": "شرح ثلاثة الأصول للعثيمين",
"q": "Q124532465"
},
{
"id": 11258,
"name": "شرح حديث النزول",
"q": "Q115910958"
},
{
"id": 11259,
"name": "شرح حديث جبريل في تعليم الدين"
},
{
"id": 11261,
"name": "عباد الله اسلمو تسلموا"
},
{
"id": 11262,
"name": "شرح شروط الصلاة وأركانها وواجباتها لشيخ الإسلام محمد بن عبد الوهاب"
},
{
"id": 11263,
"name": "شرح كتاب آداب المشي إلى الصلاة أو العبادات (الصلاة، الزكاة، الصيام)"
},
{
"id": 11264,
"name": "شرح كشف الشبهات لمحمد بن إبراهيم آل الشيخ"
},
{
"id": 11265,
"name": "شرح مسائل الجاهلية",
"q": "Q125898511"
},
{
"id": 11266,
"name": "شروط الصلاة وأركانها وواجباتها (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثالث)"
},
{
"id": 11267,
"name": "صفحات رمضانية"
},
{
"id": 11269,
"name": "رحلة السيرافى"
},
{
"id": 11272,
"name": "صفحات مشرقة من حياة السلف - سفيان الثوري"
},
{
"id": 11273,
"name": "صلاة العيدين في المصلى هي السنة"
},
{
"id": 11274,
"name": "عدة الصابرين وذخيرة الشاكرين - ط دار ابن كثير",
"pre": "عدة الصابرين وذخيرة الشاكرين"
},
{
"id": 11275,
"name": "فن الإلقاء"
},
{
"id": 11276,
"name": "عدة رسائل في مسائل فقهية (مطبوع ضمن مجموعة الرسائل والمسائل النجدية، الجزء الثاني)"
},
{
"id": 11277,
"name": "عظات وعبر من أحاديث سيد البشر صلى الله عليه وسلم"
},
{
"id": 11279,
"name": "عقيدة الحافظ تقي الدين عبد الغني بن عبد الواحد المقدسي"
},
{
"id": 11281,
"name": "ضمانات حقوق المرأة الزوجية"
},
{
"id": 11282,
"name": "عقيدة التوحيد في القرآن الكريم"
},
{
"id": 11284,
"name": "فوائد من شرح كتاب التوحيد"
},
{
"id": 11285,
"name": "قاعدة جامعة في توحيد الله وإخلاص الوجه والعمل له عبادة واستعانة"
},
{
"id": 11288,
"name": "قاعدة في الانغماس في العدو وهل يباح"
},
{
"id": 11289,
"name": "قاعدة في المحبة"
},
{
"id": 11290,
"name": "قاعدة مختصرة في وجوب طاعة الله ورسوله وولاة الأمور"
},
{
"id": 11291,
"name": "عقيدة أهل السنة في الصحابة لعبد المحسن العباد"
},
{
"id": 11292,
"name": "قطف الجني الداني شرح مقدمة رسالة ابن أبي زيد القيرواني"
},
{
"id": 11293,
"name": "علم الأخلاق الإسلامية"
},
{
"id": 11294,
"name": "علم التخريج ودوره في حفظ السنة النبوية - محمد بن ظافر الشهري"
},
{
"id": 11295,
"name": "علم التخريج ودوره في حفظ السنة النبوية - محمد محمود بكار"
},
{
"id": 11296,
"name": "علم التخريج ودوره في خدمة السنة النبوية - عبد الغفور البوشلي"
},
{
"id": 11297,
"name": "علم الرجال نشأته وتطوره من القرن الأول إلى نهاية القرن التاسع"
},
{
"id": 11298,
"name": "علم العروض والقافية"
},
{
"id": 11299,
"name": "علم اللغة العربية"
},
{
"id": 11300,
"name": "علم علل الحديث ودوره في حفظ السنة النبوية"
},
{
"id": 11301,
"name": "قواعد التجويد على رواية حفص عن عاصم بن أبي النجود"
},
{
"id": 11302,
"name": "تلبيس إبليس - ت المزيد والسحيباني",
"pre": "تلبيس ابليس"
},
{
"id": 11303,
"name": "قواعد تناول الإعجاز العلمي والطبي في السنة وضوابطه"
},
{
"id": 11305,
"name": "عناية العلماء بالإسناد وعلم الجرح والتعديل - صالح الرفاعي"
},
{
"id": 11306,
"name": "عناية العلماء بالإسناد وعلم الجرح والتعديل - عبد العزيز فارح"
},
{
"id": 11307,
"name": "قيام رمضان فضله وكيفية أدائه ومشروعية الجماعة فيه ومعه بحث قيم عن الاعتكاف"
},
{
"id": 11308,
"name": "عناية المسلمين بإبراز وجوه الإعجاز في القرآن الكريم - حسن عبد الفتاح أحمد"
},
{
"id": 11309,
"name": "عناية المسلمين بإبراز وجوه الإعجاز في القرآن الكريم - محمد السيد جبريل"
},
{
"id": 11310,
"name": "عناية المسلمين باللغة العربية خدمة للقرآن الكريم - أحمد محمد الخراط"
},
{
"id": 11311,
"name": "عناية المسلمين باللغة العربية خدمة للقرآن الكريم - سليمان بن إبراهيم بن محمد العايد"
},
{
"id": 11312,
"name": "عناية المسلمين بالوقف خدمة للقرآن الكريم"
},
{
"id": 11313,
"name": "السياسة الشرعية - جامعة المدينة"
},
{
"id": 11314,
"name": "أسباب النزول ت الحميدان",
"q": "Q115754123"
},
{
"id": 11315,
"name": "عمدة الفقه",
"q": "Q125915231"
},
{
"id": 11316,
"name": "الإيمان - أبو عبيد - ط المعارف",
"pre": "الإيمان لأبي عبيد"
},
{
"id": 11317,
"name": "التوابين لابن قدامة"
},
{
"id": 11318,
"name": "التوحيد لابن عبد الوهاب"
},
{
"id": 11319,
"name": "الزاهر في غريب ألفاظ الشافعي"
},
{
"id": 11321,
"name": "أصول النحو 2 - جامعة المدينة"
},
{
"id": 11323,
"name": "غزوة مؤتة والسرايا والبعوث النبوية الشمالية"
},
{
"id": 11324,
"name": "فتاوى ومسائل (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الرابع)"
},
{
"id": 11325,
"name": "فتح القوي المتين في شرح الأربعين وتتمة الخمسين للنووي وابن رجب رحمهما الله"
},
{
"id": 11326,
"name": "فتح الله الحميد المجيد في شرح كتاب التوحيد"
},
{
"id": 11327,
"name": "فتح المعين بشرح قرة العين بمهمات الدين"
},
{
"id": 11328,
"name": "فضائل القرآن لمحمد بن عبد الوهاب"
},
{
"id": 11329,
"name": "فائدة جليلة في قواعد الأسماء الحسنى"
},
{
"id": 11331,
"name": "الصفات للدارقطني ت الفقيهي"
},
{
"id": 11332,
"name": "العلم للعثيمين"
},
{
"id": 11333,
"name": "القدر للفريابي"
},
{
"id": 11334,
"name": "كتاب التوحيد وقرة عيون الموحدين في تحقيق دعوة الأنبياء والمرسلين"
},
{
"id": 11339,
"name": "كتاب جمل الغرائب للنيسابوري وأهميته في علم غريب الحديث"
},
{
"id": 11340,
"name": "كتاب سيرة النبي صلى الله عليه وسلم"
},
{
"id": 11342,
"name": "فضل الكلاب على كثير ممن لبس الثياب"
},
{
"id": 11344,
"name": "كتابة الحديث النبوي في عهد النبي صلى الله عليه وسلم بين النهي والإذن"
},
{
"id": 11345,
"name": "كتابة الحديث بين النهي والإذن"
},
{
"id": 11346,
"name": "كتابة الحديث في عهد النبي صلى الله عليه وسلم بين النهي والإذن"
},
{
"id": 11347,
"name": "كتابة الحديث في عهد النبي صلى الله عليه وسلم وصحابته وأثرها في حفظ السنة النبوية"
},
{
"id": 11348,
"name": "كتابة السنة النبوية في عهد النبي صلى الله عليه وسلم والصحابة وأثرها في حفظ السنة النبوية"
},
{
"id": 11349,
"name": "كتابة السنة في عهد النبي صلى الله عليه وسلم والصحابة وأثرها في حفظ السنة النبوية"
},
{
"id": 11350,
"name": "كتب غريب القرآن الكريم"
},
{
"id": 11352,
"name": "كشف الشبهتين"
},
{
"id": 11353,
"name": "كشف غياهب الظلام عن أوهام جلاء الأوهام",
"q": "Q123587181"
},
{
"id": 11354,
"name": "كشف ما ألقاه إبليس من البهرج والتلبيس على قلب داود بن جرجيس"
},
{
"id": 11355,
"name": "مختصر خليل"
},
{
"id": 11356,
"name": "كلمات في مناسبات"
},
{
"id": 11357,
"name": "كيف تتخلص من السحر"
},
{
"id": 11358,
"name": "كيف تحفظ القرآن الكريم"
},
{
"id": 11359,
"name": "كيف دخل التتر بلاد المسلمين"
},
{
"id": 11360,
"name": "كيف نستفيد من الكتب الحديثية الستة"
},
{
"id": 11361,
"name": "كيف يؤدي الموظف الأمانة"
},
{
"id": 11362,
"name": "كيف يجب علينا أن نفسر القرآن الكريم"
},
{
"id": 11363,
"name": "لطائف المعارف فيما لمواسم العام من الوظائف - ط ابن حزم",
"pre": "لطائف المعارف فيما لمواسم العام من الوظائف",
"suf": "ط ابن حزم"
},
{
"id": 11364,
"name": "لمحات في الثقافة الإسلامية"
},
{
"id": 11365,
"name": "لمحات في المكتبة والبحث والمصادر"
},
{
"id": 11366,
"name": "تعليق مختصر على لمعة الاعتقاد للعثيمين"
},
{
"id": 11367,
"name": "ما له حكم الرفع من أقوال الصحابة وأفعالهم"
},
{
"id": 11368,
"name": "مباحث في علوم القرآن لمناع القطان",
"q": "Q115729523"
},
{
"id": 11369,
"name": "مبحث الاجتهاد والخلاف (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثالث)"
},
{
"id": 11370,
"name": "متن أبي شجاع المسمى الغاية والتقريب"
},
{
"id": 11371,
"name": "الآجرومية"
},
{
"id": 11372,
"name": "متن الرحبية = بغية الباحث عن جمل الموارث"
},
{
"id": 11373,
"name": "الرسالة لابن أبي زيد القيرواني"
},
{
"id": 11375,
"name": "نونية ابن القيم الكافية الشافية - ط مكتبة ابن تيمية"
},
{
"id": 11376,
"name": "متن قطر الندى وبل الصدى"
},
{
"id": 11377,
"name": "مجموعة أسئلة تهم الأسرة المسلمة"
},
{
"id": 11378,
"name": "مجموعة الرسائل والمسائل النجدية (الجزء الرابع، القسم الثاني)"
},
{
"id": 11379,
"name": "مجموعة الرسائل والمسائل النجدية (الجزء الثالث)"
},
{
"id": 11380,
"name": "مجموعة الرسائل والمسائل والفتاوى"
},
{
"id": 11381,
"name": "مجموعة رسائل في التوحيد والإيمان (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الأول)",
"q": "Q121252452"
},
{
"id": 11382,
"name": "محمد بن عبد الوهاب عقيدته السلفية ودعوته الإصلاحية وثناء العلماء عليه"
},
{
"id": 11383,
"name": "مختصر تفسير سورة الأنفال (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثاني عشر)"
},
{
"id": 11384,
"name": "مختصر [شرح] تسهيل العقيدة الإسلامية - ط 2",
"pre": "مختصر تسهيل العقيدة الإسلامية",
"suf": "ط 2"
},
{
"id": 11385,
"name": "تحفة الأشراف بمعرفة الأطراف",
"q": "Q113613990"
},
{
"id": 11389,
"name": "مختصر مغني اللبيب عن كتاب الأعاريب"
},
{
"id": 11391,
"name": "مركز بحوث ودراسات المدينة المنورة ودوره في خدمة السيرة النبوية"
},
{
"id": 11392,
"name": "مرويات السيرة لأكرم العمري"
},
{
"id": 11393,
"name": "مرويات السيرة لمسفر الدميني"
},
{
"id": 11394,
"name": "مرويات غزوة الحديبية جمع وتخريج ودراسة"
},
{
"id": 11395,
"name": "مرويات غزوة الخندق"
},
{
"id": 11398,
"name": "تقرير علمي رد على كتاب \"مستعدين للمجاوبة\" لـ سمير مرقص"
},
{
"id": 11400,
"name": "النظرات"
},
{
"id": 11401,
"name": "ابن قيم الجوزية وجهوده في خدمة السنة النبوية وعلومها",
"q": "Q121009077"
},
{
"id": 11402,
"name": "أبو زرعة الرازي وجهوده في السنة النبوية"
},
{
"id": 11404,
"name": "فتوح مصر والمغرب",
"q": "Q120885092"
},
{
"id": 11405,
"name": "تلبيس ابليس - ط المنيرية",
"pre": "تلبيس ابليس"
},
{
"id": 11406,
"name": "المدخل لابن الحاج"
},
{
"id": 11407,
"name": "تلبيس إبليس - ط المنهاج",
"pre": "تلبيس إبليس"
},
{
"id": 11408,
"name": "تلبيس ابليس - ط الكتاب العربي",
"pre": "تلبيس ابليس"
},
{
"id": 11421,
"name": "اختلاف الدارين وآثاره في أحكام الشريعة الإسلامية"
},
{
"id": 11422,
"name": "أسس علم اللغة"
},
{
"id": 11425,
"name": "مرويات غزوة بني المصطلق وهي غزوة المريسيع"
},
{
"id": 11426,
"name": "الواضح في علوم القرآن"
},
{
"id": 11428,
"name": "نصب الراية",
"q": "Q126392472"
},
{
"id": 11430,
"name": "الموسوعة الفقهية الكويتية",
"q": "Q117450103"
},
{
"id": 11435,
"name": "الموافقات",
"q": "Q123414411"
},
{
"id": 11436,
"name": "البرهان في علوم القرآن",
"q": "Q120500637"
},
{
"id": 11437,
"name": "إرشاد الفحول إلى تحقيق الحق من علم الأصول"
},
{
"id": 11438,
"name": "تلبيس إبليس - ط الفكر",
"pre": "تلبيس إبليس",
"q": "Q137775266"
},
{
"id": 11439,
"name": "عصر الخلافة الراشدة محاولة لنقد الرواية التاريخية وفق منهج المحدثين"
},
{
"id": 11443,
"name": "مزاعم المستشرقين حول القرآن الكريم"
},
{
"id": 11444,
"name": "مغني المحتاج إلى معرفة معاني ألفاظ المنهاج",
"q": "Q115768848"
},
{
"id": 11446,
"name": "درر الحكام شرح غرر الأحكام"
},
{
"id": 11450,
"name": "مزاعم وأخطاء وتناقضات وشبهات بودلي في كتابه الرسول، حياة محمد دراسة نقدية"
},
{
"id": 11454,
"name": "حديثان أحدهما في فضل رجب لأبي معشر الطبري"
},
{
"id": 11456,
"name": "أسباب النزول ت زغلول"
},
{
"id": 11462,
"name": "وجوب تطبيق الحدود الشرعية"
},
{
"id": 11468,
"name": "أسنى المطالب في شرح روض الطالب - ط الميمنية",
"pre": "أسنى المطالب في شرح روض الطالب"
},
{
"id": 11469,
"name": "الأزمنة والأمكنة"
},
{
"id": 11475,
"name": "جزء بكر بن بكار"
},
{
"id": 11479,
"name": "جياد المسلسلات للسيوطي"
},
{
"id": 11484,
"name": "مراصد الاطلاع على أسماء الأمكنة والبقاع",
"q": "Q121008728"
},
{
"id": 11485,
"name": "الصداقة والصديق"
},
{
"id": 11490,
"name": "علم اللغة"
},
{
"id": 11495,
"name": "الطرق الحكمية في السياسة الشرعية - ط البيان"
},
{
"id": 11496,
"name": "إعلام الموقعين عن رب العالمين - ط العلمية",
"pre": "إعلام الموقعين عن رب العالمين",
"suf": "ط العلمية"
},
{
"id": 11498,
"name": "فتاوى السبكي"
},
{
"id": 11500,
"name": "المواعظ والاعتبار في ذكر الخطط والآثار - ت أيمن فؤاد سيد",
"pre": "المواعظ والاعتبار بذكر الخطط والآثار",
"q": "Q136131582"
},
{
"id": 11521,
"name": "المقدمات الأساسية في علوم القرآن"
},
{
"id": 11522,
"name": "الطريق إلى الولد الصالح"
},
{
"id": 11523,
"name": "الوجيز في شرح قراءات القرأة الثمانية أئمة الأمصار الخمسة"
},
{
"id": 11524,
"name": "اللواء الركن محمود شيت خطاب"
},
{
"id": 11526,
"name": "الصراع الفكري في البلاد المستعمرة"
},
{
"id": 11527,
"name": "الإسلام والتوازن الاقتصادي بين الأفراد والدول"
},
{
"id": 11528,
"name": "رسم المصحف وضبطه بين التوقيف والاصطلاحات الحديثة"
},
{
"id": 11529,
"name": "أحكام الأضحية والذكاة"
},
{
"id": 11539,
"name": "حاشية الصبان على شرح الأشمونى لألفية ابن مالك"
},
{
"id": 11540,
"name": "مناهج البحث في اللغة"
},
{
"id": 11541,
"name": "المدخل إلى علم اللغة ومناهج البحث اللغوي"
},
{
"id": 11542,
"name": "التوجيه والإرشاد النفسي"
},
{
"id": 11543,
"name": "المدخل في فن التحرير الصحفي"
},
{
"id": 11544,
"name": "الفن ومذاهبه في النثر العربي",
"q": "Q137649251"
},
{
"id": 11545,
"name": "الفكر الصوفي في ضوء الكتاب والسنة"
},
{
"id": 11546,
"name": "المعارك الأدبية"
},
{
"id": 11547,
"name": "الصحيح المسند من أسباب النزول",
"q": "Q123281647"
},
{
"id": 11562,
"name": "المفتاح في الصرف"
},
{
"id": 11563,
"name": "اللغة"
},
{
"id": 11564,
"name": "الأمور الميسرة لقيام الليل"
},
{
"id": 11565,
"name": "في الأدب الحديث"
},
{
"id": 11566,
"name": "المواعظ والاعتبار بذكر الخطط والآثار",
"q": "Q120999072"
},
{
"id": 11566,
"name": "المواعظ والاعتبار بذكر الخطط والآثار - ط العلمية",
"pre": "المواعظ والاعتبار بذكر الخطط والآثار",
"q": "Q120999072"
},
{
"id": 11568,
"name": "آكام المرجان فى ذكر المدائن المشهورة فى كل مكان"
},
{
"id": 11569,
"name": "تعليقة على العلل لابن أبي حاتم ت جاد الله"
},
{
"id": 11570,
"name": "أضواء على أوضاعنا السياسية"
},
{
"id": 11571,
"name": "الحد الفاصل بين الإيمان والكفر"
},
{
"id": 11572,
"name": "مسائل لخصها الشيخ محمد بن عبد الوهاب من كلام بن تيمية (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الثاني عشر)"
},
{
"id": 11573,
"name": "مسائل وفتاوى نجدية (طبع ضمن الرسائل والمسائل النجدية، الجزء الرابع، القسم الأول)"
},
{
"id": 11575,
"name": "مشاهير علماء نجد وغيرهم - ط 1",
"pre": "مشاهير علماء نجد وغيرهم",
"suf": "ط 1",
"q": "Q118387585"
},
{
"id": 11576,
"name": "مصادر السيرة النبوية",
"q": "Q124475129"
},
{
"id": 11577,
"name": "مزيد النعمة لجمع أقوال الأئمة"
},
{
"id": 11578,
"name": "مسألة فى المرابطة بالثغور أفضل أم المجاورة بمكة شرفها الله تعالى"
},
{
"id": 11620,
"name": "اقتضاء الصراط المستقيم لمخالفة أصحاب الجحيم",
"q": "Q115284371"
},
{
"id": 11655,
"name": "تحقيق ما للهند من مقولة مقبولة في العقل أو مرذولة"
},
{
"id": 11661,
"name": "البديع في البديع لابن المعتز"
},
{
"id": 11680,
"name": "المسالك والممالك للاصطخري أو مسالك الممالك - مصر",
"q": "Q117463494"
},
{
"id": 11681,
"name": "رحلة بنيامين التطيلى"
},
{
"id": 11682,
"name": "الإحاطة في أخبار غرناطة",
"q": "Q120763297"
},
{
"id": 11684,
"name": "الاستبصار فى عجائب الامصار"
},
{
"id": 11685,
"name": "البلدان لابن الفقيه"
},
{
"id": 11686,
"name": "تاريخ ابن يونس المصرى",
"q": "Q121076448"
},
{
"id": 11688,
"name": "إغاثة اللهفان في مصايد الشيطان - ت الفقي",
"pre": "إغاثة اللهفان في مصايد الشيطان",
"suf": "ت الفقي"
},
{
"id": 11723,
"name": "الآثار الواردة عن عمر بن عبد العزيز في العقيدة"
},
{
"id": 11724,
"name": "إسفار الفصيح"
},
{
"id": 11727,
"name": "الإبهاج في شرح المنهاج - ط العلمية",
"pre": "الإبهاج في شرح المنهاج",
"suf": "ط العلمية"
},
{
"id": 11728,
"name": "الإتقان في علوم القرآن",
"q": "Q115728353"
},
{
"id": 11730,
"name": "مجموعة الرسائل والمسائل لابن تيمية - رشيد رضا"
},
{
"id": 11731,
"name": "التربية الإسلامية أصولها ومنهجها ومعلمها"
},
{
"id": 11732,
"name": "من قضايا التربية الدينية في المجتمع الإسلامي"
},
{
"id": 11735,
"name": "دراسات في الفن الصحفي"
},
{
"id": 11736,
"name": "الدعوة الإسلامية في عهدها المكي مناهجها وغاياتها"
},
{
"id": 11737,
"name": "تخريج أحاديث فضائل الشام ودمشق لأبي الحسن الربعي"
},
{
"id": 11738,
"name": "نمو الإنسان من مرحلة الجنين إلى مرحلة المسنين"
},
{
"id": 11740,
"name": "طريق الهداية مبادئ ومقدمات علم التوحيد عند أهل السنة والجماعة"
},
{
"id": 11741,
"name": "الأصلان في علوم القرآن"
},
{
"id": 11742,
"name": "شرح الأشمونى لألفية ابن مالك"
},
{
"id": 11743,
"name": "معتقد أهل السنة والجماعة في توحيد الأسماء والصفات"
},
{
"id": 11746,
"name": "تاريخ اربل"
},
{
"id": 11748,
"name": "الأزهر وأثره في النهضة الأدبية الحديثة"
},
{
"id": 11749,
"name": "حقوق الإنسان في الإسلام لجمل الليل"
},
{
"id": 11750,
"name": "شرح شافية ابن الحاجب - ركن الدين الاستراباذي"
},
{
"id": 11751,
"name": "دراسات لغوية في أمهات كتب اللغة"
},
{
"id": 11752,
"name": "الإسلام وحقوق الإنسان في ضوء المتغيرات العالمية"
},
{
"id": 11753,
"name": "حقوق الإنسان والقضايا الكبرى"
},
{
"id": 11754,
"name": "تطور الصحافة المصرية 1798 - 1981"
},
{
"id": 11755,
"name": "وحي القلم"
},
{
"id": 11756,
"name": "الفكر الإسلامي الحديث وصلته بالاستعمار الغربي"
},
{
"id": 11758,
"name": "تاريخ بيهق/تعريب"
},
{
"id": 11766,
"name": "تاريخ واسط",
"q": "Q135102222"
},
{
"id": 11767,
"name": "الخراج وصناعة الكتابة",
"q": "Q121260059"
},
{
"id": 11768,
"name": "الزواج في ظل الإسلام"
},
{
"id": 11769,
"name": "رحلة ابن بطوطة ط أكاديمية المملكة المغربية",
"q": "Q115862676"
},
{
"id": 11772,
"name": "رساله ابن فضلان = رحلة ابن فضلان الى بلاد الترك والروس والصقالبة"
},
{
"id": 11780,
"name": "صورة الأرض",
"q": "Q121009915"
},
{
"id": 11781,
"name": "رسالة المسلسلات"
},
{
"id": 11782,
"name": "البيان المغرب في أخبار الأندلس والمغرب",
"q": "Q115774925"
},
{
"id": 11783,
"name": "التصاريف لتفسير القرآن مما اشتبهت أسمائه وتصرفت معانيه"
},
{
"id": 11785,
"name": "المسالك والممالك للمهلبي = العزيزي"
},
{
"id": 11786,
"name": "كنوز الذهب فى تاريخ حلب"
},
{
"id": 11787,
"name": "نزهة المشتاق فى اختراق الآفاق",
"q": "Q120648765"
},
{
"id": 11788,
"name": "نهر الذهب فى تاريخ حلب",
"q": "Q121009999"
},
{
"id": 11789,
"name": "مرشد الزوار الى قبور الابرار",
"q": "Q136413138"
},
{
"id": 11790,
"name": "مسالك الأبصار في ممالك الأمصار",
"q": "Q120985052"
},
{
"id": 11790,
"name": "مسالك الأبصار في ممالك الأمصار - ط المجمع الثقافي",
"pre": "مسالك الأبصار في ممالك الأمصار",
"q": "Q120985052"
},
{
"id": 11797,
"name": "رسالة ابن القيم إلى أحد إخوانه - ط عطاءات العلم",
"pre": "رسالة ابن القيم إلى أحد إخوانه",
"q": "Q115796731"
},
{
"id": 11800,
"name": "المسالك والممالك لابن خرداذبة",
"q": "Q120985067"
},
{
"id": 11802,
"name": "معجم ما استعجم من اسماء البلاد والمواضع",
"q": "Q120980595"
},
{
"id": 11809,
"name": "المطلع على ألفاظ المقنع"
},
{
"id": 11811,
"name": "الملخص الفقهي",
"q": "Q125915412"
},
{
"id": 11812,
"name": "الملل والنحل",
"q": "Q125915475"
},
{
"id": 11813,
"name": "المهذب في فقه الإمام الشافعي - الشيرازي"
},
{
"id": 11814,
"name": "المسودة في أصول الفقه"
},
{
"id": 11816,
"name": "المعتصر من المختصر من مشكل الآثار"
},
{
"id": 11817,
"name": "النبوات لابن تيمية",
"q": "Q115910769"
},
{
"id": 11818,
"name": "النهاية في الفتن والملاحم - ت محمد عبد العزيز"
},
{
"id": 11820,
"name": "الهداية في شرح بداية المبتدي"
},
{
"id": 11821,
"name": "الولاية في النكاح"
},
{
"id": 11825,
"name": "أوضح المسالك إلى ألفية ابن مالك - ت هبود"
},
{
"id": 11928,
"name": "معجم المسائل النحوية والصرفية الواردة في القرآن الكريم"
},
{
"id": 11930,
"name": "المنتقى من كتاب مكارم الأخلاق ومعاليها"
},
{
"id": 11940,
"name": "معيار الاختيار فى ذكر المعاهد والديار"
},
{
"id": 11986,
"name": "تداخل الأصول اللغوية وأثره في بناء المعجم"
},
{
"id": 11988,
"name": "النجوم الزاهرة فى ملوك مصر والقاهرة",
"q": "Q116767481"
},
{
"id": 11990,
"name": "توضيح الأفكار لمعاني تنقيح الأنظار"
},
{
"id": 11991,
"name": "جهود الشيخ محمد الأمين الشنقيطي في تقرير عقيدة السلف"
},
{
"id": 11993,
"name": "حاشية الطحطاوي على مراقي الفلاح شرح نور الإيضاح"
},
{
"id": 11995,
"name": "تاريخ الخلفاء - ط المنهاج",
"pre": "تاريخ الخلفاء",
"q": "Q129496642"
},
{
"id": 11996,
"name": "تاريخ الأدب العربي لشوقي ضيف",
"q": "Q120999095"
},
{
"id": 11997,
"name": "تاريخ الخلفاء",
"q": "Q114836121"
},
{
"id": 11997,
"name": "تاريخ الخلفاء - ت إبراهيم صالح",
"pre": "تاريخ الخلفاء",
"q": "Q114836121"
},
{
"id": 11998,
"name": "تاريخ عجائب الآثار في التراجم والأخبار"
},
{
"id": 12001,
"name": "تحقيق التجريد في شرح كتاب التوحيد"
},
{
"id": 12002,
"name": "تخجيل من حرف التوراة والإنجيل"
},
{
"id": 12003,
"name": "بدائع الفوائد - ط الكتاب العربي"
},
{
"id": 12005,
"name": "جمهرة خطب العرب في عصور العربية الزاهرة",
"q": "Q121254576"
},
{
"id": 12007,
"name": "دراسات في تاريخ العرب القديم",
"q": "Q121254644"
},
{
"id": 12009,
"name": "رحلة ابن بطوطة ط دار الشرق العربي"
},
{
"id": 12010,
"name": "روضة الناظر وجنة المناظر - ت شعبان"
},
{
"id": 12011,
"name": "دراسات في علوم القرآن - فهد الرومي",
"q": "Q120999145"
},
{
"id": 12012,
"name": "دراسة نقدية في المرويات الواردة في شخصية عمر بن الخطاب وسياسته الإدارية"
},
{
"id": 12014,
"name": "رياض الصالحين - ت الرسالة الثاني",
"q": "Q125469863"
},
{
"id": 12017,
"name": "سر صناعة الإعراب"
},
{
"id": 12018,
"name": "شرح الفصول المهمة في مواريث الأمة"
},
{
"id": 12019,
"name": "شرح الكوكب المنير = شرح مختصر التحرير"
},
{
"id": 12021,
"name": "شفاء العليل في مسائل القضاء والقدر والحكمة والتعليل - ط المعرفة"
},
{
"id": 12024,
"name": "شرح الكافية الشافية",
"q": "Q116821232"
},
{
"id": 12027,
"name": "صيانة الإنسان عن وسوسة الشيخ دحلان",
"q": "Q123584080"
},
{
"id": 12028,
"name": "صيد الخاطر"
},
{
"id": 12029,
"name": "طريق الهجرتين وباب السعادتين - ط الدار السلفية",
"pre": "طريق الهجرتين وباب السعادتين",
"q": "Q136434788"
},
{
"id": 12031,
"name": "صفة الصفوة",
"q": "Q120149617"
},
{
"id": 12033,
"name": "عيون الرسائل والأجوبة على المسائل"
},
{
"id": 12034,
"name": "غاية الأماني في الرد على النبهاني",
"q": "Q125915493"
},
{
"id": 12036,
"name": "فتح الوهاب بشرح منهج الطلاب"
},
{
"id": 12037,
"name": "ضياء السالك إلى أوضح المسالك"
},
{
"id": 12038,
"name": "عقيدة أهل السنة في الصحابة لناصر بن علي"
},
{
"id": 12039,
"name": "عقيدة محمد بن عبد الوهاب السلفية وأثرها في العالم الإسلامي"
},
{
"id": 12040,
"name": "غاية النهاية في طبقات القراء",
"q": "Q120648794"
},
{
"id": 12040,
"name": "غاية النهاية في طبقات القراء - ط الخانجي",
"q": "Q120648794"
},
{
"id": 12042,
"name": "غريب الحديث - الخطابي"
},
{
"id": 12045,
"name": "فتوح الشام",
"q": "Q121078450"
},
{
"id": 12046,
"name": "في تاريخ الأدب الجاهلي"
},
{
"id": 12047,
"name": "فتنة مقتل عثمان بن عفان"
},
{
"id": 12048,
"name": "فقه الأدعية والأذكار"
},
{
"id": 12049,
"name": "قواطع الأدلة في الأصول"
},
{
"id": 12050,
"name": "الأفعال - ابن القطاع الصقلي"
},
{
"id": 12051,
"name": "السنة لابن أبي عاصم ومعها ظلال الجنة للألباني"
},
{
"id": 12052,
"name": "الفروع وتصحيح الفروع"
},
{
"id": 12054,
"name": "قواعد الجغرافيا العامة الطبيعية والبشرية"
},
{
"id": 12055,
"name": "دلائل الإعجاز ت شاكر",
"pre": "دلائل الإعجاز"
},
{
"id": 12059,
"name": "مباحث العقيدة في سورة الزمر"
},
{
"id": 12061,
"name": "مجموعة الحديث على أبواب الفقه - ضمن مؤلفات الشيخ محمد بن عبد الوهاب"
},
{
"id": 12062,
"name": "محض الصواب في فضائل أمير المؤمنين عمر بن الخطاب",
"q": "Q134414376"
},
{
"id": 12063,
"name": "لسان الميزان",
"q": "Q120885811"
},
{
"id": 12063,
"name": "لسان الميزان - ط الهندية",
"pre": "لسان الميزان",
"q": "Q120885811"
},
{
"id": 12064,
"name": "مجموعة الرسائل والمسائل النجدية (الجزء الأول)"
},
{
"id": 12066,
"name": "من أعلام المجددين"
},
{
"id": 12067,
"name": "من أعلام أهل السنة والجماعة عبد الله بن المبارك"
},
{
"id": 12068,
"name": "مصادر تلقي السيرة النبوية",
"q": "Q124472392"
},
{
"id": 12070,
"name": "مصطلحات في كتب العقائد"
},
{
"id": 12071,
"name": "معاجم معاني ألفاظ القرآن الكريم"
},
{
"id": 12072,
"name": "معاجم مفردات القرآن (موازنات ومقترحات)"
},
{
"id": 12073,
"name": "معالم في السلوك وتزكية النفوس"
},
{
"id": 12074,
"name": "معتقد أهل السنة والجماعة في أسماء الله الحسنى"
},
{
"id": 12076,
"name": "معطية الأمان من حنث الأيمان",
"q": "Q132398098"
},
{
"id": 12077,
"name": "مفاتيح العلوم"
},
{
"id": 12078,
"name": "مفيد المستفيد في كفر تارك التوحيد (مطبوع ضمن مؤلفات الشيخ محمد بن عبد الوهاب، الجزء الأول)"
},
{
"id": 12079,
"name": "مقالة التعطيل والجعد بن درهم"
},
{
"id": 12080,
"name": "مقدمات في علم مقالات الفرق"
},
{
"id": 12081,
"name": "مقدمة في أصول التفسير لابن تيمية"
},
{
"id": 12082,
"name": "مكارم الأخلاق لابن عثيمين"
},
{
"id": 12084,
"name": "من أخلاق الرسول الكريم صلى الله عليه وسلم"
},
{
"id": 12085,
"name": "من أصول الفقه على منهج أهل الحديث"
},
{
"id": 12086,
"name": "النفحة المسكية فى الرحلة المكية"
},
{
"id": 12088,
"name": "من هدي السلف في طلب العلم"
},
{
"id": 12089,
"name": "منازل الأئمة الأربعة أبي حنيفة ومالك والشافعي وأحمد"
},
{
"id": 12090,
"name": "مناسك الحج والعمرة"
},
{
"id": 12091,
"name": "منهاج أهل الحق والاتباع في مخالفة أهل الجهل والابتداع"
},
{
"id": 12092,
"name": "منسك الحج"
},
{
"id": 12093,
"name": "المقدمة الجزرية - ط المغني",
"pre": "المقدمة الجزرية",
"suf": "ط المغني"
},
{
"id": 12094,
"name": "منهاج التأسيس والتقديس في كشف شبهات داود بن جرجيس"
},
{
"id": 12095,
"name": "من تكلم فيه وهو موثق ت الرحيلي"
},
{
"id": 12096,
"name": "منهاج الطالبين وعمدة المفتين في الفقه",
"q": "Q115783681"
},
{
"id": 12097,
"name": "منهاج أهل السنة والجماعة في العقيدة والعمل"
},
{
"id": 12098,
"name": "منهج ابن الأثير الجزري في مصنفه النهاية في غريب الحديث والأثر"
},
{
"id": 12099,
"name": "منهج السالكين وتوضيح الفقة في الدين"
},
{
"id": 12100,
"name": "منهج الطلاب في فقه الإمام الشافعي رضي الله عنه",
"q": "Q116889943"
},
{
"id": 12101,
"name": "منهج شيخ الإسلام محمد بن عبد الوهاب في التأليف"
},
{
"id": 12102,
"name": "منهج شيخ الإسلام محمد بن عبد الوهاب في التفسير"
},
{
"id": 12103,
"name": "منهجية التأليف في السيرة عند ابن كثير"
},
{
"id": 12104,
"name": "مواقف الطوائف من توحيد الأسماء والصفات"
},
{
"id": 12105,
"name": "موقف أصحاب الأهواء والفرق من السنة النبوية ورواتها جذورهم ووسائلهم وأهدافهم قديما وحديثا"
},
{
"id": 12106,
"name": "موقف الإمام والمأموم"
},
{
"id": 12108,
"name": "نحو معجم تاريخي للمصطلحات القرآنية المعرفة"
},
{
"id": 12109,
"name": "نداءات الرحمن لأهل الإيمان"
},
{
"id": 12110,
"name": "نزول القرآن الكريم والعناية به في عهد الرسول صلى الله عليه وسلم"
},
{
"id": 12112,
"name": "نزول القران الكريم وتاريخه وما يتعلق به"
},
{
"id": 12114,
"name": "نزول القرآن الكريم والعناية به في عهد النبي صلى الله عليه وسلم"
},
{
"id": 12115,
"name": "هداية الرواة - مع تخريج المشكاة الثاني للألباني"
},
{
"id": 12116,
"name": "نشأة النثر الحديث وتطوره"
},
{
"id": 12117,
"name": "نور الإيضاح ونجاة الأرواح في الفقه الحنفي"
},
{
"id": 12120,
"name": "هذه مفاهيمنا"
},
{
"id": 12121,
"name": "وقفة مع بعض الترجمات الإنجليزية لمعاني القرآن الكريم"
},
{
"id": 12129,
"name": "المعارف",
"q": "Q114755560"
},
{
"id": 12145,
"name": "المصباح المنير في غريب الشرح الكبير",
"q": "Q136804690"
},
{
"id": 12153,
"name": "قاعدة في الصبر"
},
{
"id": 12164,
"name": "أصول الدعوة وطرقها 3 - جامعة المدينة"
},
{
"id": 12179,
"name": "أحكام اللمس في الطهارة"
},
{
"id": 12202,
"name": "أصول الدعوة - جامعة المدينة"
},
{
"id": 12205,
"name": "المحبر",
"q": "Q121009112"
},
{
"id": 12212,
"name": "المنمق في أخبار قريش",
"q": "Q116752553"
},
{
"id": 12216,
"name": "حاشية الروض المربع لابن قاسم"
},
{
"id": 12217,
"name": "تفسير البغوي - إحياء التراث"
},
{
"id": 12220,
"name": "إطراف المسند المعتلي بأطراف المسند الحنبلي",
"q": "Q117324875"
},
{
"id": 12221,
"name": "فتوح البلدان",
"q": "Q116752858"
},
{
"id": 12222,
"name": "كتاب الردة للواقدي",
"q": "Q121260527"
},
{
"id": 12226,
"name": "أخبار الدولة العباسية",
"q": "Q114706066"
},
{
"id": 12227,
"name": "البحر الرائق شرح كنز الدقائق ومنحة الخالق وتكملة الطوري"
},
{
"id": 12228,
"name": "العنوان في القراءات السبع"
},
{
"id": 12284,
"name": "مباحث في الحديث المسلسل"
},
{
"id": 12286,
"name": "الأعلام للزركلي",
"q": "Q113504685"
},
{
"id": 12288,
"name": "الاستيعاب في معرفة الأصحاب",
"q": "Q116749659"
},
{
"id": 12288,
"name": "الاستيعاب في معرفة الأصحاب - ت البجاوي",
"pre": "الاستيعاب في معرفة الأصحاب",
"q": "Q116749659"
},
{
"id": 12289,
"name": "الإنباء في تاريخ الخلفاء"
},
{
"id": 12293,
"name": "مجموع فتاوى ورسائل العثيمين"
},
{
"id": 12300,
"name": "المشوق إلى القراءة وطلب العلم"
},
{
"id": 12304,
"name": "تفسير المنار",
"q": "Q125897123"
},
{
"id": 12317,
"name": "الأنساب - السمعاني - ط الهندية",
"pre": "«الأنساب» للسمعاني",
"q": "Q117326767"
},
{
"id": 12317,
"name": "الأنساب - السمعاني - ط الهندية",
"pre": "الأنساب - السمعاني",
"q": "Q117326767"
},
{
"id": 12317,
"name": "الأنساب للسمعاني",
"q": "Q117326767"
},
{
"id": 12318,
"name": "البدء والتاريخ",
"q": "Q114790473"
},
{
"id": 12320,
"name": "تاريخ ابن خلدون",
"q": "Q114684142"
},
{
"id": 12347,
"name": "روائع البيان تفسير آيات الأحكام",
"q": "Q119076903"
},
{
"id": 12348,
"name": "تاريخ مختصر الدول",
"q": "Q135989890"
},
{
"id": 12375,
"name": "السلفيون والأئمة الأربعة - رضي الله عنهم -"
},
{
"id": 12380,
"name": "علم أصول الفقه وخلاصة تاريخ التشريع ط المدني"
},
{
"id": 12392,
"name": "أدب الخواص"
},
{
"id": 12393,
"name": "التفسير والمفسرون"
},
{
"id": 12396,
"name": "تجارب الأمم وتعاقب الهمم",
"q": "Q114785529"
},
{
"id": 12397,
"name": "تاريخ الإسلام - ت تدمري",
"q": "Q115057795"
},
{
"id": 12398,
"name": "شذرات الذهب في أخبار من ذهب",
"q": "Q113580573"
},
{
"id": 12400,
"name": "الفخري في الآداب السلطانية والدول الإسلامية"
},
{
"id": 12402,
"name": "معجم قبائل العرب القديمة والحديثة",
"q": "Q120985090"
},
{
"id": 12403,
"name": "المعرفة والتاريخ - ت العمري - ط العراق",
"q": "Q114720338"
},
{
"id": 12404,
"name": "مقاتل الطالبيين"
},
{
"id": 12406,
"name": "المنتظم في تاريخ الملوك والأمم",
"q": "Q114811014"
},
{
"id": 12415,
"name": "السنن الصغير للبيهقي"
},
{
"id": 12416,
"name": "الطبقات الكبرى - متمم الصحابة - الطبقة الرابعة",
"q": "Q121009841"
},
{
"id": 12417,
"name": "عجائب المقدور في أخبار تيمور"
},
{
"id": 12421,
"name": "مشكاة الأنوار"
},
{
"id": 12444,
"name": "العرش وما روي فيه"
},
{
"id": 12445,
"name": "الإجماع لابن المنذر - ت فؤاد - ط المسلم",
"pre": "«الإجماع» لابن المنذر",
"suf": "ت فؤاد ط المسلم"
},
{
"id": 12446,
"name": "مراتب الإجماع"
},
{
"id": 12515,
"name": "جزء من حديث الأوزاعي لابن حذلم"
},
{
"id": 12520,
"name": "مسند أبي يعلى - ت حسين أسد",
"pre": "مسند أبي يعلى",
"suf": "ت حسين أسد",
"q": "Q116878401"
},
{
"id": 12521,
"name": "صفة جزيرة العرب",
"q": "Q121252799"
},
{
"id": 12524,
"name": "فضائل القرآن - أبو عبيد"
},
{
"id": 12528,
"name": "المنتخب من كتاب السياق لتاريخ نيسابور - ط الفكر",
"pre": "المنتخب من كتاب السياق لتاريخ نيسابور",
"suf": "ط الفكر"
},
{
"id": 12531,
"name": "معجم الشيوخ الكبير للذهبي",
"q": "Q125915198"
},
{
"id": 12532,
"name": "ملء العيبة بما جمع بطول الغيبة - جـ 5",
"pre": "«ملء العَيبة» جـ5"
},
{
"id": 12534,
"name": "الموطأ لابن وهب - قطعة منه - ت الصيني"
},
{
"id": 12541,
"name": "أخلاق الوزيرين = مثالب الوزيرين"
},
{
"id": 12546,
"name": "ذكر من لم يكن عنده إلا حديث واحد للخلال"
},
{
"id": 12549,
"name": "مجلس من أمالي طراد الزينبي"
},
{
"id": 12569,
"name": "التأويل خطورته وآثاره"
},
{
"id": 12570,
"name": "إتحاف ذوي المروة والإنافة بما جاء في الصدقة والضيافة"
},
{
"id": 12576,
"name": "الإباضية وهل هم خوارج"
},
{
"id": 12578,
"name": "أحاديث ومرويات في الميزان 1 - حديث قلب القرآن يس"
},
{
"id": 12579,
"name": "الكامل في ضعفاء الرجال",
"q": "Q135657546"
},
{
"id": 12581,
"name": "المؤتلف والمختلف - الدارقطني",
"q": "Q114832357"
},
{
"id": 12581,
"name": "المؤتلف والمختلف للدارقطني",
"q": "Q114832357"
},
{
"id": 12624,
"name": "الإسلام أصوله ومبادئه"
},
{
"id": 12698,
"name": "سؤالات ابن الجنيد ليحيى بن معين"
},
{
"id": 12703,
"name": "الإجابة لإيراد ما استدركته عائشة على الصحابة - ت الأفغاني",
"pre": "الإجابة لإيراد ما استدركته عائشة على الصحابة"
},
{
"id": 12704,
"name": "الأهوال لابن أبي الدنيا"
},
{
"id": 12713,
"name": "أحاديث ومرويات في الميزان 2 - حديث الفينة"
},
{
"id": 12714,
"name": "الجنة والنار"
},
{
"id": 12715,
"name": "المختصر في أخبار البشر",
"q": "Q124005304"
},
{
"id": 12716,
"name": "النوادر السلطانية والمحاسن اليوسفية = سيرة صلاح الدين الأيوبي"
},
{
"id": 12718,
"name": "بداية الهداية"
},
{
"id": 12719,
"name": "بستان العارفين للنووي"
},
{
"id": 12720,
"name": "تهذيب الأخلاق وتطهير الأعراق"
},
{
"id": 12721,
"name": "الفوائد العوالي المؤرخة من الصحاح والغرائب لمحمد بن علي الصوري"
},
{
"id": 12722,
"name": "ذيل مرآة الزمان"
},
{
"id": 12723,
"name": "رسائل السنة والشيعة لرشيد رضا"
},
{
"id": 12724,
"name": "رفع الإصر عن قضاة مصر"
},
{
"id": 12725,
"name": "صراع مع الملاحدة حتى العظم"
},
{
"id": 12726,
"name": "فاكهة الخلفاء ومفاكهة الظرفاء"
},
{
"id": 12727,
"name": "فصل المقال لابن رشد"
},
{
"id": 12728,
"name": "كواشف زيوف"
},
{
"id": 12729,
"name": "لا تحزن"
},
{
"id": 12730,
"name": "مختصر القواعد السلفية في الصفات الربانية"
},
{
"id": 12731,
"name": "اتحاف السائل بما لفاطمة من المناقب والفضائل"
},
{
"id": 12732,
"name": "خزانة الأدب ولب لباب لسان العرب للبغدادي",
"q": "Q125916444"
},
{
"id": 12733,
"name": "كناشة النوادر"
},
{
"id": 12735,
"name": "النهي عن سب الأصحاب - الضياء المقدسي",
"q": "Q19456371"
},
{
"id": 12735,
"name": "النهي عن سب الأصحاب للضياء المقدسي",
"q": "Q19456371"
},
{
"id": 12736,
"name": "ذكر النار لعبد الغني المقدسي"
},
{
"id": 12737,
"name": "صفة الجنة لابن أبي الدنيا ت العساسلة"
},
{
"id": 12738,
"name": "تذكرة الموضوعات للفتني"
},
{
"id": 12739,
"name": "محاسبة النفس لابن أبي الدنيا"
},
{
"id": 12740,
"name": "صفة الجنة - الضياء المقدسي - المختصرة",
"pre": "صفة الجنة - الضياء المقدسي - النسخة المختصرة"
},
{
"id": 12741,
"name": "عوالي أبي حنيفة"
},
{
"id": 12742,
"name": "فضائل أبي بكر الصديق للعشاري"
},
{
"id": 12743,
"name": "فضائل الشام للسمعاني"
},
{
"id": 12744,
"name": "فضائل شهر رجب للخلال"
},
{
"id": 12745,
"name": "فضل عشر ذي الحجة للطبراني"
},
{
"id": 12746,
"name": "فضل قيام الليل والتهجد للآجري"
},
{
"id": 12747,
"name": "مدح التواضع لابن عساكر"
},
{
"id": 12748,
"name": "المسند الجامع"
},
{
"id": 12749,
"name": "مشيخة الآبنوسي"
},
{
"id": 12750,
"name": "معجم الشيوخ لابن عساكر",
"pre": "معجم الشيوخ"
},
{
"id": 12751,
"name": "مقتل علي لابن أبي الدنيا"
},
{
"id": 12752,
"name": "مناقب الأسد الغالب علي بن أبي طالب لابن الجزري"
},
{
"id": 12754,
"name": "العميد في علم التجويد"
},
{
"id": 12756,
"name": "أحاديث معلة ظاهرها الصحة",
"q": "Q115787425"
},
{
"id": 12757,
"name": "غاية المقصود فى الرد على النصارى واليهود"
},
{
"id": 12759,
"name": "الإعجاز البياني للقرآن ومسائل ابن الأزرق"
},
{
"id": 12760,
"name": "أصول مذهب الشيعة الإمامية الإثني عشرية - عرض ونقد -"
},
{
"id": 12761,
"name": "القائد إلى تصحيح العقائد"
},
{
"id": 12762,
"name": "سلسلة الأحاديث الضعيفة والموضوعة وأثرها السيئ في الأمة",
"q": "Q115789704"
},
{
"id": 12763,
"name": "مسألة التقريب بين أهل السنة والشيعة"
},
{
"id": 12764,
"name": "موسوعة أقوال أبي الحسن الدارقطني في رجال الحديث وعلله"
},
{
"id": 12765,
"name": "موسوعة أقوال الإمام أحمد بن حنبل في رجال الحديث وعلله"
},
{
"id": 12766,
"name": "موقف ابن تيمية من الأشاعرة",
"q": "Q125915281"
},
{
"id": 12767,
"name": "التنكيل بما في تأنيب الكوثري من الأباطيل - ط المكتب الإسلامي",
"pre": "التنكيل بما في تأنيب الكوثري من الأباطيل",
"suf": "ط المكتب الإسلامي"
},
{
"id": 12769,
"name": "قاعدة عظيمة في الفرق بين عبادات أهل الإسلام والإيمان وعبادات أهل الشرك والنفاق"
},
{
"id": 12770,
"name": "سلم أخلاق النبوة"
},
{
"id": 12784,
"name": "بيع المرابحة للآمر بالشراء"
},
{
"id": 12791,
"name": "أطواق الحمامة في حمل الصحابة على السلامة"
},
{
"id": 12796,
"name": "بيان العلم الأصيل والمزاحم الدخيل"
},
{
"id": 12798,
"name": "دراسات في التصوف"
},
{
"id": 12802,
"name": "الثورة البائسة"
},
{
"id": 12810,
"name": "تفسير مجاهد"
},
{
"id": 12812,
"name": "الموالاة والمعاداة في الشريعة الإسلامية"
},
{
"id": 12817,
"name": "رسالة الملائكة - ت الميمني - ط العلمية",
"pre": "رسالة الملائكة "
},
{
"id": 12820,
"name": "غرائب التفسير وعجائب التأويل"
},
{
"id": 12821,
"name": "خريدة القصر وجريدة العصر - قسم شعراء العراق جـ 1"
},
{
"id": 12823,
"name": "التاريخ الكبير للبخاري بحواشي محمود خليل"
},
{
"id": 12824,
"name": "أنموذج اللبيب في خصائص الحبيب"
},
{
"id": 12825,
"name": "البلاغة العربية"
},
{
"id": 12826,
"name": "الأصول العلمية للدعوة السلفية"
},
{
"id": 12827,
"name": "الدلائل في حكم موالاة أهل الإشراك"
},
{
"id": 12828,
"name": "الفرج بعد الشدة للتنوخي",
"q": "Q123438060"
},
{
"id": 12829,
"name": "خلاصة التأصيل لعلم الجرح والتعديل - ط عالم الفوائد",
"pre": "خلاصة التأصيل لعلم الجرح والتعديل",
"suf": "ط عالم الفوائد"
},
{
"id": 12831,
"name": "كتاب الولاة وكتاب القضاة - ط العلمية",
"pre": "كتاب الولاة وكتاب القضاة",
"suf": "ط العلمية",
"q": "Q120648105"
},
{
"id": 12833,
"name": "خريدة القصر وجريدة العصر - قسم شعراء العراق جـ 4 المجلد الثاني 2"
},
{
"id": 12834,
"name": "رسائل فلسفية للرازي"
},
{
"id": 12836,
"name": "الأربعون النووية"
},
{
"id": 12837,
"name": "مناظرات ابن تيمية لأهل الملل والنحل"
},
{
"id": 12838,
"name": "يسألونك عن الزكاة"
},
{
"id": 12839,
"name": "تبصير أولي الألباب ببدعة تقسيم الدين إلى قشر ولباب"
},
{
"id": 12842,
"name": "أمالي ابن بشران - الجزء الثاني"
},
{
"id": 12843,
"name": "الإقناع لابن المنذر",
"pre": "«الإقناع» لابن المنذر"
},
{
"id": 12844,
"name": "الزيادات على كتاب المزني"
},
{
"id": 12845,
"name": "المستغيثين بالله تعالى عند المهمات والحاجات"
},
{
"id": 12846,
"name": "المنتقى من الفوائد الحسان في الحديث"
},
{
"id": 12847,
"name": "النصيحة للراعي والرعية للتبريزي"
},
{
"id": 12848,
"name": "بلاغات النساء"
},
{
"id": 12851,
"name": "تفسير يحيى بن سلام"
},
{
"id": 12852,
"name": "جزء ابن ثرثال - ط العلمية",
"pre": "جزء ابن ثرثال"
},
{
"id": 12853,
"name": "جزء في مسائل عن أبي عبد الله أحمد بن حنبل"
},
{
"id": 12855,
"name": "جزء فيه منتقى من سيرة ابن هشام"
},
{
"id": 12856,
"name": "خريدة القصر وجريدة العصر - قسم شعراء المغرب والأندلس جـ 2"
},
{
"id": 12857,
"name": "رباعيات الخيام"
},
{
"id": 12858,
"name": "رسالة التوابع والزوابع"
},
{
"id": 12860,
"name": "طبقات الشافعيين",
"q": "Q124005324"
},
{
"id": 12861,
"name": "كتاب الأربعين في صفات رب العالمين"
},
{
"id": 12862,
"name": "كشف الأستار عن زوائد البزار"
},
{
"id": 12863,
"name": "مسند خليفة بن خياط"
},
{
"id": 12864,
"name": "من اسمه عطاء من رواة الحديث"
},
{
"id": 12865,
"name": "نظم اللآلي بالمائة العوالي"
},
{
"id": 12867,
"name": "مقام الرشاد بين التقليد والاجتهاد"
},
{
"id": 12872,
"name": "مختصر قيام الليل وقيام رمضان وكتاب الوتر"
},
{
"id": 12876,
"name": "تفسير الجلالين"
},
{
"id": 12877,
"name": "تنوير المقباس من تفسير ابن عباس"
},
{
"id": 12884,
"name": "الدر المنثور في التفسير بالمأثور",
"q": "Q117742927"
},
{
"id": 12886,
"name": "معجم أهم مصنفات التراجم المطبوعة"
},
{
"id": 12888,
"name": "ذخيرة العقبى في شرح المجتبى",
"q": "Q117324918"
},
{
"id": 12899,
"name": "فقه العبادات على المذهب الحنبلي",
"q": "Q116767481"
},
{
"id": 12913,
"name": "الإنصاف فيما قيل في المولد من الغلو والإجحاف"
},
{
"id": 12917,
"name": "محاضرات في علوم القرآن - غانم قدورى"
},
{
"id": 12918,
"name": "التحذير من وسائل التنصير"
},
{
"id": 12929,
"name": "مجمع الأمثال",
"q": "Q114870650"
},
{
"id": 12936,
"name": "مجابو الدعوة لابن أبي الدنيا"
},
{
"id": 12957,
"name": "مسألة سبحان لنفطويه"
},
{
"id": 12958,
"name": "من وافقت كنيته كنية زوجه لابن حيويه"
},
{
"id": 12978,
"name": "فقه العبادات على المذهب المالكي",
"q": "Q120886660"
},
{
"id": 12980,
"name": "أخلاق النبي لأبي الشيخ الأصبهاني",
"q": "Q127327980"
},
{
"id": 12980,
"name": "أخلاق النبي وآدابه - أبو الشيخ الأصبهاني",
"q": "Q127327980"
},
{
"id": 12981,
"name": "مسند البزار = البحر الزخار",
"q": "Q116879306"
},
{
"id": 12982,
"name": "آداب الصحبة لأبي عبد الرحمن السلمي"
},
{
"id": 12985,
"name": "اقتضاء العلم العمل"
},
{
"id": 12986,
"name": "إكرام الضيف لإبراهيم الحربي"
},
{
"id": 12987,
"name": "الآثار لأبي يوسف"
},
{
"id": 12989,
"name": "الأحاديث الطوال للطبراني"
},
{
"id": 12990,
"name": "الإخوان لابن أبي الدنيا"
},
{
"id": 12991,
"name": "الأدب المفرد - ت عبد الباقي",
"q": "Q124616606"
},
{
"id": 12992,
"name": "الأربعون الصغرى للبيهقي"
},
{
"id": 12993,
"name": "الإرشاد في معرفة علماء الحديث للخليلي",
"q": "Q135686562"
},
{
"id": 12994,
"name": "الإشراف في منازل الأشراف لابن أبي الدنيا",
"q": "Q124363975"
},
{
"id": 12995,
"name": "الأشربة لأحمد بن حنبل"
},
{
"id": 12996,
"name": "الاعتبار وأعقاب السرور لابن أبي الدنيا"
},
{
"id": 12997,
"name": "الاعتقاد للبيهقي",
"q": "Q124616620"
},
{
"id": 12998,
"name": "الأمالي والقراءة"
},
{
"id": 12999,
"name": "الأموال - أبو عبيد",
"q": "Q129485943"
},
{
"id": 13000,
"name": "الإنصاف لابن عبد البر"
},
{
"id": 13001,
"name": "الأوائل لابن أبي عاصم"
},
{
"id": 13002,
"name": "الأوائل للطبراني"
},
{
"id": 13003,
"name": "الأولياء لابن أبي الدنيا"
},
{
"id": 13004,
"name": "الأوهام التي في مدخل الحاكم للأزدي"
},
{
"id": 13005,
"name": "الإيمان - ابن منده"
},
{
"id": 13006,
"name": "الإيمان للعدني"
},
{
"id": 13007,
"name": "البر والصلة للحسين بن حرب"
},
{
"id": 13009,
"name": "التواضع والخمول لابن أبي الدنيا"
},
{
"id": 13010,
"name": "التوبيخ والتنبيه لأبي الشيخ الأصبهاني"
},
{
"id": 13011,
"name": "التوحيد لابن خزيمة",
"q": "Q124619053"
},
{
"id": 13012,
"name": "الجامع لأخلاق الراوي وآداب السامع للخطيب البغدادي",
"q": "Q135028002"
},
{
"id": 13013,
"name": "الجهاد - ابن أبي عاصم"
},
{
"id": 13014,
"name": "الحلم لابن أبي الدنيا"
},
{
"id": 13015,
"name": "الحوض والكوثر لبقي بن مخلد"
},
{
"id": 13016,
"name": "الدعاء - الطبراني"
},
{
"id": 13018,
"name": "الديات لابن أبي عاصم"
},
{
"id": 13019,
"name": "الذرية الطاهرة للدولابي"
},
{
"id": 13020,
"name": "الرحلة في طلب الحديث - ت عتر",
"pre": "الرحلة في طلب الحديث"
},
{
"id": 13021,
"name": "الرخصة في تقبيل اليد لابن المقرئ"
},
{
"id": 13022,
"name": "الرد على الجهمية لابن منده - ط المكتبة الأثرية"
},
{
"id": 13023,
"name": "الرد على الجهمية للدارمي - ت البدر",
"q": "Q135190793"
},
{
"id": 13024,
"name": "الرضا عن الله بقضائه لابن أبي الدنيا"
},
{
"id": 13025,
"name": "الزهد الكبير للبيهقي",
"q": "Q125499717"
},
{
"id": 13026,
"name": "الزهد لابن أبي عاصم"
},
{
"id": 13027,
"name": "الزهد لهناد بن السري"
},
{
"id": 13028,
"name": "الزهد والرقائق - ابن المبارك - ت الأعظمي"
},
{
"id": 13029,
"name": "الزهد وصفة الزاهدين لابن الأعرابي"
},
{
"id": 13031,
"name": "المحمدون من الشعراء"
},
{
"id": 13032,
"name": "السنة للمروزي"
},
{
"id": 13033,
"name": "السنن المأثورة للشافعي"
},
{
"id": 13034,
"name": "السنن الواردة في الفتن للداني"
},
{
"id": 13035,
"name": "الشريعة للآجري",
"q": "Q125517125"
},
{
"id": 13036,
"name": "الشكر لابن أبي الدنيا"
},
{
"id": 13037,
"name": "الشمائل المحمدية للترمذي - ت الجليمي"
},
{
"id": 13038,
"name": "الصفات للدارقطني ت الغنيمان"
},
{
"id": 13039,
"name": "الصمت وآداب اللسان"
},
{
"id": 13040,
"name": "الصيام للفريابي"
},
{
"id": 13041,
"name": "الضعفاء الكبير للعقيلي",
"q": "Q135621535"
},
{
"id": 13042,
"name": "العزلة للخطابي"
},
{
"id": 13043,
"name": "العظمة لأبي الشيخ الأصبهاني"
},
{
"id": 13044,
"name": "العمر والشيب لابن أبي الدنيا"
},
{
"id": 13045,
"name": "الغرباء للآجري"
},
{
"id": 13046,
"name": "الفتن لحنبل بن إسحاق"
},
{
"id": 13047,
"name": "الفتن لنعيم بن حماد"
},
{
"id": 13048,
"name": "الفقيه والمتفقه - الخطيب البغدادي"
},
{
"id": 13053,
"name": "القضاء والقدر - البيهقي"
},
{
"id": 13054,
"name": "القناعة لابن السني"
},
{
"id": 13055,
"name": "الكفاية في علم الرواية للخطيب البغدادي",
"q": "Q134973051"
},
{
"id": 13056,
"name": "الكنى والأسماء - للدولابي"
},
{
"id": 13057,
"name": "المتمنين لابن أبي الدنيا"
},
{
"id": 13058,
"name": "المحتضرين لابن أبي الدنيا"
},
{
"id": 13059,
"name": "المحدث الفاصل ت عجاج",
"q": "Q135230866"
},
{
"id": 13061,
"name": "المدخل إلى السنن الكبرى - البيهقي - ت الأعظمي"
},
{
"id": 13062,
"name": "المذكر والتذكير لابن أبي عاصم"
},
{
"id": 13063,
"name": "المراسيل لأبي داود"
},
{
"id": 13064,
"name": "المرض والكفارات لابن أبي الدنيا",
"q": "Q19443162"
},
{
"id": 13066,
"name": "المسند للشاشي",
"q": "Q117326622"
},
{
"id": 13067,
"name": "المصاحف لابن أبي داود"
},
{
"id": 13068,
"name": "المعجم الصغير للطبراني",
"q": "Q135103917"
},
{
"id": 13069,
"name": "المفاريد لأبي يعلى الموصلي"
},
{
"id": 13070,
"name": "المنامات لابن أبي الدنيا"
},
{
"id": 13071,
"name": "المنتقى - ابن الجارود - ط الثقافية",
"pre": "المنتقى - ابن الجارود",
"suf": "ط الثقافية"
},
{
"id": 13072,
"name": "المنتقى من مسند المقلين لدعلج السجزي"
},
{
"id": 13073,
"name": "الناسخ والمنسوخ - النحاس"
},
{
"id": 13074,
"name": "النزول للدارقطني"
},
{
"id": 13075,
"name": "النفقة على العيال لابن أبي الدنيا",
"q": "Q119632319"
},
{
"id": 13076,
"name": "الهم والحزن لابن أبي الدنيا"
},
{
"id": 13077,
"name": "الوجل والتوثق بالعمل لابن أبي الدنيا"
},
{
"id": 13078,
"name": "الورع لابن أبي الدنيا"
},
{
"id": 13079,
"name": "طبقات علماء إفريقية"
},
{
"id": 13080,
"name": "الروايتين والوجهين - المسائل الأصولية منه",
"pre": "«الروايتين والوجهين» المسائل الأصولية منه"
},
{
"id": 13081,
"name": "أمالي المحاملي رواية ابن يحيى البيع"
},
{
"id": 13082,
"name": "أمثال الحديث لأبي الشيخ الأصبهاني",
"q": "Q125491081"
},
{
"id": 13083,
"name": "أمثال الحديث للرامهرمزي",
"q": "Q124616273"
},
{
"id": 13084,
"name": "بحر الفوائد المسمى بمعاني الأخبار للكلاباذي"
},
{
"id": 13085,
"name": "بيان خطأ من أخطأ على الشافعي للبيهقي"
},
{
"id": 13086,
"name": "تاريخ المدينة لابن شبة"
},
{
"id": 13087,
"name": "تعظيم قدر الصلاة - محمد بن نصر المروزي"
},
{
"id": 13088,
"name": "المسائل والأجوبة لابن تيمية"
},
{
"id": 13089,
"name": "تقييد العلم للخطيب البغدادي"
},
{
"id": 13090,
"name": "تهذيب الآثار - مسند ابن عباس"
},
{
"id": 13091,
"name": "تهذيب الآثار - مسند علي"
},
{
"id": 13092,
"name": "تهذيب الآثار - مسند عمر"
},
{
"id": 13096,
"name": "جزء ابن الغطريف"
},
{
"id": 13097,
"name": "الجزء 23 من حديث أبي الطاهر الذهلي انتقاء الدارقطني"
},
{
"id": 13098,
"name": "جزء أبي عروبة الحراني برواية الحاكم"
},
{
"id": 13099,
"name": "جزء الألف دينار للقطيعي"
},
{
"id": 13100,
"name": "جزء البطاقة للكناني"
},
{
"id": 13101,
"name": "جزء البغوي"
},
{
"id": 13102,
"name": "جزء المؤمل"
},
{
"id": 13103,
"name": "جزء فيه أحاديث نافع بن أبي نعيم لابن المقرئ"
},
{
"id": 13104,
"name": "جزء حنبل بن إسحاق"
},
{
"id": 13105,
"name": "جزء فيه أحاديث ابن حيان"
},
{
"id": 13106,
"name": "جزء قراءات النبي - أبو عمر الدوري"
},
{
"id": 13108,
"name": "جزء ما رواه الزبير عن غير جابر لأبي الشيخ الأصبهاني"
},
{
"id": 13109,
"name": "حجة الوداع لابن حزم"
},
{
"id": 13110,
"name": "حديث محمد بن عبد الله الأنصاري"
},
{
"id": 13111,
"name": "حديث نضر الله امرأ - ابن ممك"
},
{
"id": 13112,
"name": "حديث هشام بن عمار"
},
{
"id": 13113,
"name": "حسن الظن بالله لابن أبي الدنيا"
},
{
"id": 13114,
"name": "حياة الأنبياء في قبورهم للبيهقي"
},
{
"id": 13116,
"name": "دلائل النبوة - الفريابي"
},
{
"id": 13117,
"name": "ذم المسكر لابن أبي الدنيا"
},
{
"id": 13118,
"name": "رياضة الأبدان لأبي نعيم الأصبهاني"
},
{
"id": 13122,
"name": "سنن سعيد بن منصور - الفرائض إلى الجهاد - ت الأعظمي"
},
{
"id": 13124,
"name": "شرح مذاهب أهل السنة لابن شاهين"
},
{
"id": 13125,
"name": "شرف أصحاب الحديث للخطيب البغدادي"
},
{
"id": 13126,
"name": "شعار أصحاب الحديث لأبي أحمد الحاكم"
},
{
"id": 13127,
"name": "صريح السنة للطبري"
},
{
"id": 13128,
"name": "صفة النار لابن أبي الدنيا"
},
{
"id": 13130,
"name": "طرق حديث من كذب علي متعمدا للطبراني"
},
{
"id": 13131,
"name": "العلل الكبير للترمذي = ترتيب علل الترمذي الكبير"
},
{
"id": 13132,
"name": "عمل اليوم والليلة لابن السني"
},
{
"id": 13133,
"name": "غريب الحديث - إبراهيم الحربي"
},
{
"id": 13134,
"name": "فضائل الأوقات للبيهقي"
},
{
"id": 13135,
"name": "فضائل التسمية بأحمد ومحمد"
},
{
"id": 13136,
"name": "فضائل الصحابة لأحمد بن حنبل",
"q": "Q115795168"
},
{
"id": 13137,
"name": "فضائل المدينة للجندي"
},
{
"id": 13138,
"name": "فضائل سورة الإخلاص للحسن الخلال"
},
{
"id": 13140,
"name": "فضيلة الشكر لله على نعمته"
},
{
"id": 13141,
"name": "فضيلة العادلين من الولاة لأبي نعيم"
},
{
"id": 13142,
"name": "فوائد ابن ماسي"
},
{
"id": 13143,
"name": "فوائد أبي ذر الهروي"
},
{
"id": 13144,
"name": "فوائد أبي علي الصواف"
},
{
"id": 13146,
"name": "فوائد العراقيين لأبي سعيد النقاش"
},
{
"id": 13147,
"name": "فوائد تمام"
},
{
"id": 13148,
"name": "فوائد حديث أبي عمير لابن القاص"
},
{
"id": 13149,
"name": "قضاء الحوائج لابن أبي الدنيا"
},
{
"id": 13150,
"name": "كرامات الأولياء للالكائي - من شرح أصول اعتقاد أهل السنة والجماعة للالكائي"
},
{
"id": 13152,
"name": "مداراة الناس لابن أبي الدنيا"
},
{
"id": 13153,
"name": "مسند إبراهيم بن أدهم الزاهد لابن منده"
},
{
"id": 13154,
"name": "مسند ابن أبي أوفى ليحيى بن محمد بن صاعد"
},
{
"id": 13155,
"name": "مسند ابن أبي شيبة"
},
{
"id": 13156,
"name": "مسند أبي بكر الصديق لأحمد بن علي المروزي"
},
{
"id": 13158,
"name": "مسند أسامة بن زيد"
},
{
"id": 13159,
"name": "مسند إسحاق بن راهويه",
"q": "Q116878689"
},
{
"id": 13160,
"name": "مسند الحارث = بغية الباحث عن زوائد مسند الحارث"
},
{
"id": 13161,
"name": "مسند الروياني"
},
{
"id": 13162,
"name": "مسند الشاميين للطبراني"
},
{
"id": 13163,
"name": "مسند الشهاب",
"q": "Q127440047"
},
{
"id": 13163,
"name": "مسند الشهاب القضاعي",
"q": "Q127440047"
},
{
"id": 13164,
"name": "مسند المقلين من الأمراء والسلاطين لتمام بن محمد الدمشقي"
},
{
"id": 13165,
"name": "مسند بلال بن رباح"
},
{
"id": 13166,
"name": "مسند سعد بن أبي وقاص",
"q": "Q135418344"
},
{
"id": 13167,
"name": "مسند عائشة لابن أبي داود"
},
{
"id": 13168,
"name": "مسند عبد الرحمن بن عوف للبرتي"
},
{
"id": 13169,
"name": "مسند عبد الله بن عمر للطرسوسي"
},
{
"id": 13170,
"name": "المنتخب من مسند عبد بن حميد ت صبحي السامرائي"
},
{
"id": 13171,
"name": "مسند عمر بن الخطاب للنجاد"
},
{
"id": 13172,
"name": "مسند عمر بن الخطاب ليعقوب بن شيبة"
},
{
"id": 13173,
"name": "مسند عمر بن عبد العزيز للباغندي"
},
{
"id": 13174,
"name": "المصنف - عبد الرزاق - ت الأعظمي",
"pre": "مصنف عبد الرزاق",
"suf": "ت الأعظمي"
},
{
"id": 13175,
"name": "معجم أبي يعلى الموصلي"
},
{
"id": 13176,
"name": "معجم أسامي شيوخ أبي بكر الإسماعيلي"
},
{
"id": 13177,
"name": "معجم الشيوخ لابن جميع الصيداوي"
},
{
"id": 13178,
"name": "معجم الصحابة لابن قانع",
"q": "Q121008841"
},
{
"id": 13179,
"name": "معرفة علوم الحديث للحاكم",
"q": "Q135216883"
},
{
"id": 13180,
"name": "مكارم الأخلاق لابن أبي الدنيا"
},
{
"id": 13181,
"name": "من اسمه شعبة للأصبهاني"
},
{
"id": 13182,
"name": "من حديث خيثمة بن سليمان"
},
{
"id": 13183,
"name": "من عاش بعد الموت لابن أبي الدنيا"
},
{
"id": 13184,
"name": "ناسخ الحديث ومنسوخه لابن شاهين"
},
{
"id": 13185,
"name": "نسخة أبي مسهر وغيره"
},
{
"id": 13186,
"name": "وصايا العلماء عند حضور الموت لابن زبر الربعي",
"q": "Q135657785"
},
{
"id": 13187,
"name": "إصلاح المال",
"q": "Q119630655"
},
{
"id": 13223,
"name": "الترغيب والترهيب - المنذري - ت عمارة"
},
{
"id": 13225,
"name": "مصطلحات المذاهب الفقهية وأسرار الفقه المرموز"
},
{
"id": 13226,
"name": "الروض النضر في ترجمة أدباء العصر"
},
{
"id": 13231,
"name": "التفسير البسيط"
},
{
"id": 13234,
"name": "الشامل في فقه الإمام مالك"
},
{
"id": 13235,
"name": "طبقات النحويين واللغويين"
},
{
"id": 13237,
"name": "إعراب ثلاثين سورة"
},
{
"id": 13239,
"name": "ليس في كلام العرب"
},
{
"id": 13240,
"name": "القراءات روايتا ورش وحفص دراسة تحليلية مقارنة"
},
{
"id": 13241,
"name": "الشافي في شرح مسند الشافعي"
},
{
"id": 13242,
"name": "نثل النبال بمعجم الرجال"
},
{
"id": 13243,
"name": "بذل الإحسان بتقريب سنن النسائي أبي عبد الرحمن"
},
{
"id": 13244,
"name": "من تكلم فيه الدارقطني في كتاب السنن من الضعفاء والمتروكين والمجهولين"
},
{
"id": 13245,
"name": "التعليقة على كتاب سيبويه"
},
{
"id": 13246,
"name": "الروايتين والوجهين - المسائل الفقهية منه",
"pre": "«الروايتين والوجهين» المسائل الفقهية منه"
},
{
"id": 13247,
"name": "تسهيل الفوائد وتكميل المقاصد",
"q": "Q115943327"
},
{
"id": 13249,
"name": "كتاب الألفاظ لابن السكيت"
},
{
"id": 13250,
"name": "مناقب الإمام أحمد"
},
{
"id": 13252,
"name": "التوضيح لشرح الجامع الصحيح"
},
{
"id": 13253,
"name": "المعلم بفوائد مسلم",
"q": "Q136658900"
},
{
"id": 13256,
"name": "حلية الفقهاء"
},
{
"id": 13257,
"name": "شرح التسهيل لابن مالك",
"q": "Q115943299"
},
{
"id": 13269,
"name": "تذكير الأنام بسنن وآداب الصيام"
},
{
"id": 13274,
"name": "تحفة المجد الصريح في شرح كتاب الفصيح"
},
{
"id": 13277,
"name": "التوضيح الرشيد في شرح كتاب التوحيد"
},
{
"id": 13280,
"name": "الجامع الصحيح فيما كان على شرط الشيخين أو أحدهما ولم يخرجاه"
},
{
"id": 13281,
"name": "منهج الإمام الدارقطني في نقد الحديث في كتاب العلل"
},
{
"id": 13282,
"name": "الإفهام في شرح عمدة الأحكام"
},
{
"id": 13283,
"name": "آداب الحوار من خلال سيرة مصعب بن عمير رضي الله عنه"
},
{
"id": 13295,
"name": "النكت الجياد المنتخبة من كلام شيخ النقاد"
},
{
"id": 13296,
"name": "لبيك حج الفقراء"
},
{
"id": 13297,
"name": "سيرة السيدة عائشة أم المؤمنين"
},
{
"id": 13301,
"name": "شرح المفصل لابن يعيش",
"q": "Q116821397"
},
{
"id": 13304,
"name": "تحفة الأريب بما في القرآن من الغريب"
},
{
"id": 13443,
"name": "التفكر والاعتبار بآيات الكسوف والزلازل والإعصار"
},
{
"id": 13550,
"name": "الإشارات الإلهية إلي المباحث الأصولية"
},
{
"id": 13551,
"name": "مذكرات أحمد باي"
},
{
"id": 13553,
"name": "سيرة الصحابي الجليل مصعب بن عمير - رضي الله عنه -"
},
{
"id": 13555,
"name": "صلاة الاستخارة مسائل فقهية وفوائد تربوية"
},
{
"id": 13564,
"name": "برنامجك في رمضان"
},
{
"id": 13566,
"name": "الأذكار للنووي ت مستو"
},
{
"id": 13571,
"name": "الإرشاد إلى سبيل الرشاد"
},
{
"id": 13572,
"name": "الإفصاح عن معاني الصحاح"
},
{
"id": 13576,
"name": "منهج الأشاعرة في العقيدة - تعقيب على مقالات الصابوني"
},
{
"id": 13577,
"name": "العزيز شرح الوجيز = الشرح الكبير للرافعي - ط العلمية"
},
{
"id": 13580,
"name": "أسرار المحبين في رمضان"
},
{
"id": 13604,
"name": "توضيح الأحكام من بلوغ المرام"
},
{
"id": 13605,
"name": "الكواكب الدراري في شرح صحيح البخاري"
},
{
"id": 13606,
"name": "صحيح السيرة النبوية - إبراهيم العلي"
},
{
"id": 13607,
"name": "الصواعق الشديدة على اتباع الهيئة الجديدة"
},
{
"id": 13609,
"name": "شرح نقائض جرير والفرزدق",
"q": "Q114760860"
},
{
"id": 13614,
"name": "تحفة الأبرار شرح مصابيح السنة"
},
{
"id": 13619,
"name": "صحيح فقه السنة وأدلته وتوضيح مذاهب الأئمة"
},
{
"id": 13620,
"name": "النهر الفائق شرح كنز الدقائق"
},
{
"id": 13624,
"name": "الإقناع في مسائل الإجماع ت الصعيدي",
"pre": "الإقناع في مسائل الإجماع",
"suf": "ت الصعيدي"
},
{
"id": 13625,
"name": "مذكرة القول الراجح مع الدليل - الطهارة"
},
{
"id": 13631,
"name": "مجمع بحار الأنوار"
},
{
"id": 13635,
"name": "مع الناس"
},
{
"id": 13637,
"name": "نهج الرشاد في نظم الاعتقاد"
},
{
"id": 13642,
"name": "الإعلام في إيضاح ما خفي على الإمام"
},
{
"id": 13644,
"name": "الإعلام بقواطع الإسلام"
},
{
"id": 13652,
"name": "حادي الأرواح إلى بلاد الأفراح - ط عطاءات العلم",
"pre": "حادي الأرواح إلى بلاد الأفراح",
"q": "Q115796690"
},
{
"id": 13658,
"name": "جمهرة رسائل العرب في عصور العربية"
},
{
"id": 13664,
"name": "منتهى الإرادات في جمع المقنع مع التنقيح وزيادات - ت التركي",
"pre": "منتهى الإرادات",
"suf": "ط مع حاشية ابن قائد"
},
{
"id": 13665,
"name": "المجتنى"
},
{
"id": 13666,
"name": "كنز الكتاب ومنتخب الأدب"
},
{
"id": 13667,
"name": "نخب الأفكار في تنقيح مباني الأخبار في شرح معاني الآثار"
},
{
"id": 13669,
"name": "التدخين وكيف نحمي الجيل الجديد منه"
},
{
"id": 13680,
"name": "الأطول شرح تلخيص مفتاح العلوم"
},
{
"id": 13682,
"name": "حصان طروادة الغارة الفكرية على الديار السنية"
},
{
"id": 13691,
"name": "صور وخواطر"
},
{
"id": 13699,
"name": "كوثر المعاني الدراري في كشف خبايا صحيح البخاري"
},
{
"id": 13733,
"name": "لب اللباب «مختصر شرح فصول الآداب»"
},
{
"id": 13768,
"name": "الإعجاز العلمي إلى أين"
},
{
"id": 13769,
"name": "الإعلام بفوائد عمدة الأحكام"
},
{
"id": 13771,
"name": "انتقاض الاعتراض في الرد على العيني في شرح البخاري"
},
{
"id": 13782,
"name": "تقويم الأدلة في أصول الفقه"
},
{
"id": 13783,
"name": "النجم الوهاج في شرح المنهاج",
"q": "Q121010011"
},
{
"id": 13784,
"name": "منحة السلوك في شرح تحفة الملوك"
},
{
"id": 13785,
"name": "الفوائد المنتخبات في شرح أخصر المختصرات",
"q": "Q131580067"
},
{
"id": 13786,
"name": "التبيين عن مذاهب النحويين البصريين والكوفيين"
},
{
"id": 13791,
"name": "التحقيق والبيان في شرح البرهان في أصول الفقه"
},
{
"id": 13846,
"name": "معجم المفسرين «من صدر الإسلام وحتى العصر الحاضر»"
},
{
"id": 13873,
"name": "التفسير اللغوي للقرآن الكريم"
},
{
"id": 13892,
"name": "شرح مقدمة التسهيل لعلوم التنزيل لابن جزي"
},
{
"id": 13893,
"name": "أنواع التصنيف المتعلقة بتفسير القرآن الكريم"
},
{
"id": 13896,
"name": "المحرر في علوم القرآن"
},
{
"id": 13897,
"name": "فصول في أصول التفسير"
},
{
"id": 13899,
"name": "شرح مقدمة في أصول التفسير لابن تيمية"
},
{
"id": 13900,
"name": "بيان إعجاز القرآن"
},
{
"id": 13921,
"name": "مذكرات مالك بن نبي - العفن"
},
{
"id": 13922,
"name": "التعليقة الكبيرة - أبو يعلى - من الاعتكاف للبيوع"
},
{
"id": 13925,
"name": "وجهة العالم الإسلامي - المسألة اليهودية"
},
{
"id": 13939,
"name": "التعريفات الفقهية"
},
{
"id": 13960,
"name": "فتح المنعم شرح صحيح مسلم"
},
{
"id": 13981,
"name": "النكت في إعجاز القرآن"
},
{
"id": 13995,
"name": "إيضاح المدارك في الإفصاح عن العواتك"
},
{
"id": 14014,
"name": "سر الاستغفار عقب الصلوات",
"q": "Q136524795"
},
{
"id": 14031,
"name": "آثار حجج التوحيد في مؤاخذة العبيد"
},
{
"id": 14032,
"name": "رسوخ الأحبار في منسوخ الأخبار"
},
{
"id": 14041,
"name": "التقفية في اللغة"
},
{
"id": 14045,
"name": "إتحاف الأخصا بفضائل المسجد الأقصى",
"q": "Q130633793"
},
{
"id": 14045,
"name": "إتحاف الأخصا بفضائل المسجد الأقصى - ت أحمد رمضان",
"q": "Q130633793"
},
{
"id": 14075,
"name": "مجمع الآداب في معجم الألقاب"
},
{
"id": 14080,
"name": "الرسالة الشافية"
},
{
"id": 14088,
"name": "الاعتقاد الخالص من الشك والانتقاد",
"q": "Q131784521"
},
{
"id": 14100,
"name": "تاريخ الجزائر الثقافي"
},
{
"id": 14102,
"name": "درة الضرع لحديث أم زرع"
},
{
"id": 14103,
"name": "التمهيد في أصول الفقه"
},
{
"id": 14106,
"name": "المنهل الحديث في شرح الحديث"
},
{
"id": 14119,
"name": "مصابيح السنة",
"q": "Q125470749"
},
{
"id": 14132,
"name": "مائة من عظماء أمة الإسلام غيروا مجرى التاريخ"
},
{
"id": 14153,
"name": "الروض الندي شرح كافي المبتدي"
},
{
"id": 14161,
"name": "العذر بالجهل تحت المجهر الشرعي"
},
{
"id": 14174,
"name": "جواب في الإيمان ونواقضه"
},
{
"id": 14176,
"name": "الجمع والفرق = الفروق"
},
{
"id": 14185,
"name": "الإسلام دين كامل - ضمن «محاضرات الشنقيطي»"
},
{
"id": 14197,
"name": "نيل الابتهاج بتطريز الديباج",
"q": "Q136815231"
},
{
"id": 14207,
"name": "عمدة الحازم في الزوائد على مختصر أبي القاسم"
},
{
"id": 14211,
"name": "الرسالة التبوكية زاد المهاجر إلى ربه - ط عطاءات العلم",
"pre": "الرسالة التبوكية زاد المهاجر إلى ربه",
"q": "Q115796386"
},
{
"id": 14218,
"name": "الإحكام في تمييز الفتاوى عن الأحكام وتصرفات القاضي والإمام"
},
{
"id": 14221,
"name": "التروك النبوية - تأصيلا وتطبيقا"
},
{
"id": 14224,
"name": "العدة في شرح العمدة في أحاديث الأحكام لابن العطار"
},
{
"id": 14240,
"name": "الكتاب والسنة يجب أن يكونا مصدر القوانين في مصر ومعه «الشرع واللغة»"
},
{
"id": 14243,
"name": "حكم الجاهلية"
},
{
"id": 14245,
"name": "الإشراف على نكت مسائل الخلاف"
},
{
"id": 14246,
"name": "الاقتراح في أصول النحو ط القلم"
},
{
"id": 14248,
"name": "فقه أشراط الساعة"
},
{
"id": 14249,
"name": "الدر الثمين والمورد المعين"
},
{
"id": 14250,
"name": "الدر المختار شرح تنوير الأبصار وجامع البحار"
},
{
"id": 14251,
"name": "ماذا تعرف عن الله"
},
{
"id": 14252,
"name": "الغيث الهامع شرح جمع الجوامع"
},
{
"id": 14253,
"name": "التنبيهات المستنبطة على الكتب المدونة والمختلطة"
},
{
"id": 14255,
"name": "إيضاح الوقف والابتداء"
},
{
"id": 14260,
"name": "مجالس مع فضيلة الشيخ محمد الأمين الشنقيطي"
},
{
"id": 14261,
"name": "كتاب فيه لغات القرآن"
},
{
"id": 14262,
"name": "كنز الدقائق"
},
{
"id": 14264,
"name": "متخير الألفاظ"
},
{
"id": 14265,
"name": "في سبيل الإصلاح"
},
{
"id": 14269,
"name": "المنهج العلمي لطلاب العلم الشرعي"
},
{
"id": 14272,
"name": "النكت العلمية على الروضة الندية"
},
{
"id": 14275,
"name": "اشتقاق أسماء الله"
},
{
"id": 14277,
"name": "المعجم المفصل في شواهد العربية"
},
{
"id": 14278,
"name": "ديوان الأفوه الأودي"
},
{
"id": 14280,
"name": "نفائس الأصول في شرح المحصول"
},
{
"id": 14283,
"name": "موعظة الحبيب وتحفة الخطيب"
},
{
"id": 14285,
"name": "الأصل لمحمد بن الحسن - ت بوينوكالن",
"pre": "«الأصل» لمحمد بن الحسن",
"suf": "ت بوينوكالن"
},
{
"id": 14296,
"name": "قصص من التاريخ"
},
{
"id": 14297,
"name": "شرح الزرقاني على مختصر خليل وحاشية البناني"
},
{
"id": 14298,
"name": "أثر عمل المرأة في النفقة الزوجية"
},
{
"id": 14299,
"name": "عقود الزبرجد على مسند الإمام أحمد - ت القضاة"
},
{
"id": 14309,
"name": "التحبير لإيضاح معاني التيسير"
},
{
"id": 14310,
"name": "مسائل أبي الوليد ابن رشد"
},
{
"id": 14313,
"name": "رفع النقاب عن تنقيح الشهاب"
},
{
"id": 14315,
"name": "الإعلام بنقد كتاب الروض البسام"
},
{
"id": 14316,
"name": "المنيحة بسلسلة الأحاديث الصحيحة"
},
{
"id": 14317,
"name": "أنيس الساري (تخريج أحاديث فتح الباري)"
},
{
"id": 14320,
"name": "البارع في اللغة"
},
{
"id": 14321,
"name": "التخريج عند الفقهاء والأصوليين"
},
{
"id": 14323,
"name": "المنتخب من كلام العرب"
},
{
"id": 14324,
"name": "الهداية إلى أوهام الكفاية"
},
{
"id": 14325,
"name": "كفاية النبيه في شرح التنبيه"
},
{
"id": 14326,
"name": "فقه السيرة النبوية لمنير الغضبان"
},
{
"id": 14328,
"name": "رحمة للعالمين (مترجم) - المنصورفوري"
},
{
"id": 14329,
"name": "المرآة"
},
{
"id": 14335,
"name": "عيون المسائل للسمرقندي الحنفي"
},
{
"id": 14368,
"name": "نفح العبير"
},
{
"id": 14381,
"name": "آثار عبد الرحمن بن يحيى المعلمي اليماني",
"q": "Q115786367"
},
{
"id": 14386,
"name": "عمدة الطالب لنيل المآرب",
"q": "Q138646151"
},
{
"id": 14404,
"name": "فتح الرحمن في تفسير القرآن",
"q": "Q138801701"
},
{
"id": 14435,
"name": "معركة النص"
},
{
"id": 14440,
"name": "صحيح موارد الظمآن إلى زوائد ابن حبان"
},
{
"id": 14442,
"name": "التوضيح في شرح مختصر ابن الحاجب"
},
{
"id": 14443,
"name": "تصحيح الفصيح وشرحه"
},
{
"id": 14447,
"name": "خطبة الكتاب المؤمل للرد إلى الأمر الأول"
},
{
"id": 14450,
"name": "مرشد الحيران إلى معرفة أحوال الإنسان"
},
{
"id": 14452,
"name": "إعلام الساجد بأحكام المساجد"
},
{
"id": 14456,
"name": "فكر ومباحث"
},
{
"id": 14462,
"name": "التقصي لما في الموطأ من حديث النبي صلى الله عليه وسلم = تجريد التمهيد لما في الموطأ من المعاني والأسانيد"
},
{
"id": 14463,
"name": "الروض الباسم في تراجم شيوخ الحاكم"
},
{
"id": 14467,
"name": "عيون المسائل للقاضي عبد الوهاب المالكي"
},
{
"id": 14468,
"name": "فقه الأولويات في الخطاب السلفي المعاصر بعد الثورة"
},
{
"id": 14469,
"name": "إتحاف الحثيث بإعراب ما يشكل من ألفاظ الحديث",
"q": "Q115786311"
},
{
"id": 14471,
"name": "فتح المعبود في الرد على ابن محمود"
},
{
"id": 14474,
"name": "المعاملات المالية أصالة ومعاصرة"
},
{
"id": 14483,
"name": "الدر الثمين في أسماء المصنفين"
},
{
"id": 14500,
"name": "شرح عمدة الفقه - ابن تيمية - كتاب الطهارة"
},
{
"id": 14512,
"name": "تاريخ الأنطاكي"
},
{
"id": 14516,
"name": "غربة الإسلام"
},
{
"id": 14526,
"name": "أحكام العبادات المترتبة على طلوع الفجر الثاني"
},
{
"id": 14527,
"name": "الأحكام المترتبة على الحيض والنفاس والاستحاضة"
},
{
"id": 14528,
"name": "الأسهم - حكمها وآثارها"
},
{
"id": 14530,
"name": "الإنباه إلى حكم تارك الصلاة"
},
{
"id": 14531,
"name": "السراج في بيان غريب القرآن"
},
{
"id": 14532,
"name": "القنوت في الوتر"
},
{
"id": 14533,
"name": "اللباب في تفسير الاستعاذة والبسملة وفاتحة الكتاب",
"q": "Q125896843"
},
{
"id": 14534,
"name": "المختصر في أحكام السفر"
},
{
"id": 14535,
"name": "الهدايا للموظفين - أحكامها وكيفية التصرف فيها"
},
{
"id": 14536,
"name": "تفسير القرآن العظيم - جزء عم"
},
{
"id": 14537,
"name": "حقوق اليتامى كما جاءت في سورة النساء"
},
{
"id": 14538,
"name": "قبول الأخبار ومعرفة الرجال"
},
{
"id": 14539,
"name": "شرح كتاب الصوم من صحيح البخاري"
},
{
"id": 14542,
"name": "صور من حياة الصحابيات"
},
{
"id": 14543,
"name": "لمحات مهمة في الوصية"
},
{
"id": 14544,
"name": "إجابة الدعوة وشروطها"
},
{
"id": 14552,
"name": "تحرير الكلام في مسائل الإلتزام"
},
{
"id": 14555,
"name": "شرح ابن ناجي التنوخي على متن الرسالة"
},
{
"id": 14556,
"name": "شرح زروق على متن الرسالة"
},
{
"id": 14557,
"name": "مصادر الفقه المالكي"
},
{
"id": 14561,
"name": "نتاج الفكر في أحكام الذكر"
},
{
"id": 14565,
"name": "المقصور والممدود لابن ولاد"
},
{
"id": 14566,
"name": "مسائل الإمام ابن باز"
},
{
"id": 14567,
"name": "معرفة الفرق بين الضاد والظاء"
},
{
"id": 14568,
"name": "منظومة المقصور والممدود"
},
{
"id": 14569,
"name": "المقصور والممدود المنسوب لأبي عمر الزاهد"
},
{
"id": 14571,
"name": "الأحاديث الضعيفة والموضوعة التي حكم عليها الحافظ ابن كثير في تفسيره"
},
{
"id": 14572,
"name": "التعليق على الرحيق المختوم"
},
{
"id": 14579,
"name": "موسوعة الأعمال الكاملة للإمام محمد الخضر حسين"
},
{
"id": 14580,
"name": "المهمات في شرح الروضة والرافعي"
},
{
"id": 14582,
"name": "الاستيعاب في بيان الأسباب"
},
{
"id": 14590,
"name": "التفريع في فقه الإمام مالك بن أنس"
},
{
"id": 14591,
"name": "التبصرة للخمي"
},
{
"id": 14592,
"name": "حسن التنبه لما ورد في التشبه"
},
{
"id": 14593,
"name": "ديوان الأحكام الكبرى أو الإعلام بنوازل الأحكام وقطر من سير الحكام",
"pre": "الإعلام بنوازل الأحكام"
},
{
"id": 14594,
"name": "عقد الجواهر الثمينة في مذهب عالم المدينة"
},
{
"id": 14596,
"name": "موسوعة القواعد الفقهية"
},
{
"id": 14601,
"name": "بذل المجهود في حل سنن أبي داود",
"q": "Q115744006"
},
{
"id": 14603,
"name": "الفرق بين الضاد والظاء"
},
{
"id": 14605,
"name": "مختصر خليل - ومعه شفاء الغليل في حل مقفل خليل"
},
{
"id": 14606,
"name": "أحاديث تعظيم الربا على الزنا «دراسة نقدية»"
},
{
"id": 14607,
"name": "شرح غريب ألفاظ المدونة"
},
{
"id": 14608,
"name": "عيون الأدلة في مسائل الخلاف بين فقهاء الأمصار - كتاب الطهارة - ط جامعة الإمام",
"pre": "عيون الأدلة في مسائل الخلاف بين فقهاء الأمصار"
},
{
"id": 14616,
"name": "الأشاعرة في ميزان أهل السنة",
"q": "Q136436372"
},
{
"id": 14757,
"name": "أعلام مالقة"
},
{
"id": 14761,
"name": "المنهج الحركي للسيرة النبوية"
},
{
"id": 14786,
"name": "الممتع في صنعة الشعر"
},
{
"id": 14789,
"name": "الفتح القسي في الفتح القدسي = حروب صلاح الدين وفتح بيت المقدس"
},
{
"id": 14827,
"name": "تيسير البيان لأحكام القرآن"
},
{
"id": 15043,
"name": "بحوث ومقالات في اللغة"
},
{
"id": 15555,
"name": "تكملة المعاجم العربية",
"q": "Q118287690"
},
{
"id": 16050,
"name": "موطأ مالك - رواية محمد بن الحسن الشيباني"
},
{
"id": 16083,
"name": "المسائل الفقهية المستجدة في النكاح مع بيان ما أخذ به القانون الكويتي"
},
{
"id": 16231,
"name": "إجماع المحدثين"
},
{
"id": 16232,
"name": "منهج الإمام البخاري"
},
{
"id": 16360,
"name": "التفسير النبوي"
},
{
"id": 16362,
"name": "مفرج الكروب في أخبار بني أيوب"
},
{
"id": 16363,
"name": "نزهة الأنام فى تاريخ الإسلام"
},
{
"id": 16364,
"name": "نزهة المالك والمملوك في مختصر سيرة من ولي مصر من الملوك"
},
{
"id": 16373,
"name": "سلسلة جهاد شعب الجزائر"
},
{
"id": 16377,
"name": "شروح حماسة أبي تمام دراسة موازنة في مناهجها وتطبيقها"
},
{
"id": 16406,
"name": "الأفعال - ابن القوطية"
},
{
"id": 16421,
"name": "تثقيف اللسان وتلقيح الجنان"
},
{
"id": 16422,
"name": "نونية ابن القيم الكافية الشافية - ط عطاءات العلم",
"q": "Q115796850"
},
{
"id": 16435,
"name": "شرح حماسة أبي تمام للفارسي",
"q": "Q137674779"
},
{
"id": 16439,
"name": "المقتبس من أنباء أهل الأندلس"
},
{
"id": 16449,
"name": "الحب في الله"
},
{
"id": 16494,
"name": "الاقتضاب في غريب الموطأ وإعرابه على الأبواب"
},
{
"id": 16521,
"name": "موجز دائرة المعارف الإسلامية",
"q": "Q114391642"
},
{
"id": 16526,
"name": "الكافي شرح أصول البزدوي"
},
{
"id": 16541,
"name": "تقويم اللسان",
"q": "Q136804751"
},
{
"id": 16544,
"name": "تهذيب الأجوبة ط عالم الكتب"
},
{
"id": 16545,
"name": "ديوان ذي الرمة - بشرح أبي نصر الباهلي"
},
{
"id": 16546,
"name": "شرح مختصر الطحاوي للجصاص",
"pre": "«شرح مختصر الطحاوي» للجصاص"
},
{
"id": 16550,
"name": "البستان الجامع لجميع تواريخ أهل الزمان"
},
{
"id": 16555,
"name": "مسند الفاروق لابن كثير ت إمام"
},
{
"id": 16562,
"name": "نهاية الوصول في دراية الأصول"
},
{
"id": 16584,
"name": "الكوثر الجاري إلى رياض أحاديث البخاري"
},
{
"id": 16595,
"name": "ارتشاف الضرب من لسان العرب"
},
{
"id": 16599,
"name": "النفح الشذي شرح جامع الترمذي ط الصميعي"
},
{
"id": 16618,
"name": "لوائح الأنوار السنية ولواقح الأفكار السنية"
},
{
"id": 16625,
"name": "الذكر والدعاء والعلاج بالرقي من الكتاب والسنة"
},
{
"id": 16626,
"name": "فهرسة ابن خير - ت بشار",
"q": "Q135285745"
},
{
"id": 16636,
"name": "بغية النقاد النقلة"
},
{
"id": 16663,
"name": "الجامع لعلوم الإمام أحمد - أصول الفقه"
},
{
"id": 16664,
"name": "العقد المذهب في طبقات حملة المذهب"
},
{
"id": 16676,
"name": "معجم البدع"
},
{
"id": 16684,
"name": "مصابيح الجامع",
"q": "Q126074976"
},
{
"id": 16714,
"name": "المقاصد النحوية في شرح شواهد شروح الألفية",
"q": "Q114812159"
},
{
"id": 16727,
"name": "إخلاص الوداد في صدق الميعاد"
},
{
"id": 16728,
"name": "معيد النعم ومبيد النقم"
},
{
"id": 16738,
"name": "الهداية في تخريج أحاديث البداية"
},
{
"id": 16759,
"name": "الأمثال والحكم - الماوردي"
},
{
"id": 16772,
"name": "حاشية الخلوتي على منتهى الإرادات"
},
{
"id": 16775,
"name": "المسائل البصريات",
"q": "Q133819931"
},
{
"id": 16782,
"name": "الغريبين في القرآن والحديث"
},
{
"id": 16787,
"name": "تفسير الموطأ للقنازعي"
},
{
"id": 16812,
"name": "الوجازة في الأثبات والإجازة"
},
{
"id": 16817,
"name": "مجموعة رسائل العلامة قاسم بن قطلوبغا"
},
{
"id": 16818,
"name": "دراسات في تميز الأمة الإسلامية وموقف المستشرقين منه"
},
{
"id": 16820,
"name": "شرح القواعد السعدية"
},
{
"id": 16822,
"name": "المذهب الحنبلي دراسة في تاريخه وسماته",
"q": "Q125915521"
},
{
"id": 16826,
"name": "تمهيد القواعد بشرح تسهيل الفوائد"
},
{
"id": 16865,
"name": "مجموعة الرسائل والمسائل النجدية - ط المنار",
"q": "Q125778211"
},
{
"id": 16876,
"name": "الفروق الفقهية للباحسين - ط 1"
},
{
"id": 16877,
"name": "قرة العين بالمسرة بوفاء الدين"
},
{
"id": 16879,
"name": "التوكل"
},
{
"id": 16884,
"name": "طرق الكشف عن مقاصد الشارع"
},
{
"id": 16897,
"name": "تشييد الاختيار لتحريم الطبل والمزمار"
},
{
"id": 16928,
"name": "مجموع رسائل الحافظ العلائي جـ 1"
},
{
"id": 16932,
"name": "تسديد الإصابة فيما شجر بين الصحابة"
},
{
"id": 16934,
"name": "بحر المذهب للروياني"
},
{
"id": 16946,
"name": "أعلام الحديث (شرح صحيح البخاري)",
"pre": "أعلام الحديث"
},
{
"id": 16952,
"name": "المنور في راجح المحرر"
},
{
"id": 16953,
"name": "المسند المصنف المعلل"
},
{
"id": 16957,
"name": "شاعر المليون أخطاء شرعية، ومغالطة شعرية"
},
{
"id": 16965,
"name": "دعوة العاملات المنزليات إلى الله تعالى"
},
{
"id": 16968,
"name": "المختصر الفقهي لابن عرفة"
},
{
"id": 16974,
"name": "إيضاح المحصول من برهان الأصول"
},
{
"id": 16976,
"name": "المفاتيح في شرح المصابيح"
},
{
"id": 16983,
"name": "تحرير المنقول وتهذيب علم الأصول"
},
{
"id": 16985,
"name": "وجوب تطبيق الشريعة الإسلامية في كل عصر"
},
{
"id": 16989,
"name": "كشف المنن في علامات الساعة والملاحم والفتن"
},
{
"id": 16991,
"name": "الذهب المسبوك في تحقيق روايات غزوة تبوك"
},
{
"id": 16999,
"name": "الدر النثير والعذب النمير"
},
{
"id": 17018,
"name": "تراجم المؤلفين التونسيين",
"q": "Q131385347"
},
{
"id": 17027,
"name": "ذيل الصواعق لمحو الأباطيل والمخارق"
},
{
"id": 17037,
"name": "دراسات لأسلوب القرآن الكريم"
},
{
"id": 17048,
"name": "نزهة الأنظار في عجائب التواريخ والأخبار",
"q": "Q125940563"
},
{
"id": 17049,
"name": "اتقاء الحرام والشبهات في طلب الرزق"
},
{
"id": 17050,
"name": "الأحاديث الواردة في قراءة سورة الكهف يوم الجمعة"
},
{
"id": 17051,
"name": "البيان «مقدمة وخاتمة» لكتاب كشف الشبهات"
},
{
"id": 17052,
"name": "التقوى تعريفها وفضلها ومحذوراتها وقصص من أحوالها"
},
{
"id": 17053,
"name": "التوحيد وأثره في حياة المسلم"
},
{
"id": 17054,
"name": "الرد القوي على الرفاعي والمجهول وابن علوي وبيان أخطائهم في المولد النبوي"
},
{
"id": 17055,
"name": "القول المحرر في الأمر بالمعروف والنهي عن المنكر"
},
{
"id": 17056,
"name": "الذيل والتكملة لكتابي الموصول والصلة",
"q": "Q115001603"
},
{
"id": 17058,
"name": "شرح كتاب الحج من بلوغ المرام"
},
{
"id": 17062,
"name": "روايات الجامع الصحيح ونسخه «دراسة نظرية تطبيقية»"
},
{
"id": 17063,
"name": "كشف المناهج والتناقيح في تخريج أحاديث المصابيح"
},
{
"id": 17064,
"name": "التفسير والمفسرون في غرب أفريقيا"
},
{
"id": 17065,
"name": "الروضة الندية شرح متن الجزرية"
},
{
"id": 17066,
"name": "فتح الرحمن في بيان هجر القرآن"
},
{
"id": 17068,
"name": "الله يحدث عباده عن نفسه"
},
{
"id": 17069,
"name": "المحنة وأثرها في منهج الإمام أحمد النقدي"
},
{
"id": 17070,
"name": "تعظيم الله جل جلاله «تأملات وقصائد»"
},
{
"id": 17071,
"name": "ثقة المسلم بالله تعالى في ضوء الكتاب والسنة"
},
{
"id": 17072,
"name": "حقيقة المثل الأعلى وآثاره"
},
{
"id": 17073,
"name": "شرح عمدة الفقه - ابن تيمية - صفة الصلاة",
"q": "Q115911570"
},
{
"id": 17074,
"name": "خطوات إلى السعادة"
},
{
"id": 17076,
"name": "ذكريات - علي الطنطاوي"
},
{
"id": 17077,
"name": "الأضداد لابن الأنباري",
"q": "Q136804628"
},
{
"id": 17079,
"name": "دراسة وتحقيق قاعدة «الأصل في العبادات المنع»"
},
{
"id": 17080,
"name": "ذوق الصلاة عند ابن القيم"
},
{
"id": 17081,
"name": "سنة الترك ودلالتها على الأحكام الشرعية"
},
{
"id": 17082,
"name": "مواعظ الصحابة لعمر المقبل"
},
{
"id": 17083,
"name": "هذه أخلاقنا حين نكون مؤمنين حقا"
},
{
"id": 17090,
"name": "المقالات المسفرة عن دلائل المغفرة"
},
{
"id": 17091,
"name": "ثمر الثمام شرح «غاية الإحكام في آداب الفهم والإفهام»"
},
{
"id": 17094,
"name": "مقاصد الشريعة الإسلامية",
"q": "Q134414600"
},
{
"id": 17097,
"name": "نيل الأمل في ذيل الدول"
},
{
"id": 17100,
"name": "الفوائد الذهبية من سير أعلام النبلاء جـ 2"
},
{
"id": 17101,
"name": "رحلة الصديق إلى البلد العتيق"
},
{
"id": 17102,
"name": "قواعد معرفة البدع"
},
{
"id": 17103,
"name": "عمدة الأحكام - ت الزهيري",
"pre": "عمدة الأحكام",
"suf": "ت الزهيري"
},
{
"id": 17104,
"name": "النظم المستعذب في تفسير غريب ألفاظ المهذب"
},
{
"id": 17116,
"name": "التذييل والتكميل في شرح كتاب التسهيل"
},
{
"id": 17118,
"name": "الوجيز في أصول الفقه الإسلامي"
},
{
"id": 17124,
"name": "المجموع المغيث في غريبي القرآن والحديث"
},
{
"id": 17126,
"name": "موسوعة أحكام الطهارة - الدبيان - ط 2",
"pre": "«موسوعة أحكام الطهارة» للدبيان",
"suf": "ط 2"
},
{
"id": 17128,
"name": "اللباب «شرح فصول الآداب»"
},
{
"id": 17130,
"name": "فصول الآداب ومكارم الأخلاق المشروعة"
},
{
"id": 17131,
"name": "التنكيت على الموطأ"
},
{
"id": 17132,
"name": "مشارق الأنوار الوهاجة ومطالع الأسرار البهاجة في شرح سنن الإمام ابن ماجه"
},
{
"id": 17213,
"name": "البواكير"
},
{
"id": 17261,
"name": "مسائل تحليل الحائض من الإحرام"
},
{
"id": 17321,
"name": "أصول الإنشاء والخطابة"
},
{
"id": 17324,
"name": "تنبيه الإخوان على الأخطاء في مسألة خلق القرآن"
},
{
"id": 17325,
"name": "الإيضاح والتبيين لما وقع فيه الأكثرون من مشابهة المشركين"
},
{
"id": 17326,
"name": "الرد على الكاتب المفتون"
},
{
"id": 17328,
"name": "إنكار التكبير الجماعي وغيره"
},
{
"id": 17329,
"name": "عقيدة أهل الإيمان في خلق آدم على صورة الرحمن"
},
{
"id": 17330,
"name": "إيضاح المحجة في الرد على صاحب طنجة"
},
{
"id": 17331,
"name": "تبرئة الخليفة العادل والرد على المجادل بالباطل"
},
{
"id": 17332,
"name": "تغليظ الملام على المتسرعين إلى الفتيا وتغيير الأحكام"
},
{
"id": 17333,
"name": "الإجابة الجلية على الأسئلة الكويتية"
},
{
"id": 17334,
"name": "دلائل الأثر على تحريم التمثيل بالشعر"
},
{
"id": 17337,
"name": "الرد القويم على المجرم الأثيم"
},
{
"id": 17348,
"name": "الانتباه لما قال الحاكم ولم يخرجاه وهو في أحدهما أو روياه"
},
{
"id": 17349,
"name": "التاج المكلل من جواهر مآثر الطراز الآخر والأول"
},
{
"id": 17350,
"name": "رياض الأفهام في شرح عمدة الأحكام"
},
{
"id": 17352,
"name": "ضعيف موارد الظمآن إلى زوائد ابن حبان"
},
{
"id": 17354,
"name": "نوازل الزكاة"
},
{
"id": 17355,
"name": "نزهة الألباب في قول الترمذي «وفي الباب»"
},
{
"id": 17360,
"name": "فصول في الثقافة والأدب"
},
{
"id": 17361,
"name": "فصول في الدعوة والإصلاح"
},
{
"id": 17363,
"name": "التذكرة في الفقه على مذهب الإمام أحمد"
},
{
"id": 17368,
"name": "المختصر المفيد في عقائد أئمة التوحيد"
},
{
"id": 17372,
"name": "الجواهر والدرر في ترجمة شيخ الإسلام ابن حجر",
"q": "Q120648520"
},
{
"id": 17373,
"name": "مسائل في الفتن"
},
{
"id": 17375,
"name": "تفسير حدائق الروح والريحان في روابي علوم القرآن"
},
{
"id": 17376,
"name": "أساليب بلاغية"
},
{
"id": 17378,
"name": "إرشاد السالك إلى حل ألفية ابن مالك"
},
{
"id": 17387,
"name": "أسرار البلاغة - ت هنداوي"
},
{
"id": 17392,
"name": "مجموعة رسائل التوجيهات الإسلامية لإصلاح الفرد والمجتمع"
},
{
"id": 17393,
"name": "إعلان النكير على المفتونين بالتصوير"
},
{
"id": 17394,
"name": "إقامة البرهان في الرد على من أنكر خروج المهدي والدجال ونزول المسيح في آخر الزمان"
},
{
"id": 17395,
"name": "الرد على من أجاز تهذيب اللحية"
},
{
"id": 17401,
"name": "السراج الوهاج لمحو أباطيل الشلبي عن الإسراء والمعراج"
},
{
"id": 17402,
"name": "تنبيهات على رسالتين للشيخ أبي بكر الجزائري"
},
{
"id": 17405,
"name": "إثبات علو الله ومباينته لخلقه والرد على من زعم أن معية الله للخلق ذاتية",
"q": "Q116877990"
},
{
"id": 17414,
"name": "ما يفعله الأطباء والداعون بدفع شر الطاعون"
},
{
"id": 17417,
"name": "شرح عمدة الفقه - ابن تيمية - كتاب الصيام"
},
{
"id": 17418,
"name": "أدوات الإعراب"
},
{
"id": 17419,
"name": "تحفة الراكع والساجد بأحكام المساجد"
},
{
"id": 17437,
"name": "كشف اللثام شرح عمدة الأحكام",
"q": "Q125504951"
},
{
"id": 17438,
"name": "الاستضعاف وأحكامه في الفقه الإسلامي"
},
{
"id": 17439,
"name": "الإسلام والحكم"
},
{
"id": 17441,
"name": "ضرورة الاهتمام بالسنن النبوية"
},
{
"id": 17442,
"name": "إحكام النظر في أحكام النظر بحاسة البصر"
},
{
"id": 17451,
"name": "القول المعروف في فضل المعروف"
},
{
"id": 17458,
"name": "تحقيق الفوائد الغياثية"
},
{
"id": 17502,
"name": "قصتنا مع اليهود"
},
{
"id": 17503,
"name": "الحجاب في الشرع والفطرة"
},
{
"id": 17505,
"name": "حياة السلف بين القول والعمل"
},
{
"id": 17527,
"name": "المداوي لعلل الجامع الصغير وشرحي المناوي"
},
{
"id": 17529,
"name": "معارف الإنعام وفضل الشهور والأيام"
},
{
"id": 17530,
"name": "صب الخمول على من وصل أذاه إلى الصالحين من أولياء الله"
},
{
"id": 17531,
"name": "التخريج الصغير والتحبير الكبير"
},
{
"id": 17532,
"name": "ضبط من غبر فيمن قيده ابن حجر"
},
{
"id": 17533,
"name": "إيضاح طرق الاستقامة في بيان أحكام الولاية والإمامة"
},
{
"id": 17534,
"name": "تذكرة الحفاظ وتبصرة الأيقاظ"
},
{
"id": 17535,
"name": "النهاية في اتصال الرواية"
},
{
"id": 17551,
"name": "الأعلام العلية في مناقب ابن تيمية - ط عطاءات العلم",
"pre": "الأعلام العلية في مناقب ابن تيمية",
"suf": "ط عطاءات العلم"
},
{
"id": 17563,
"name": "الجامع لسيرة شيخ الإسلام ابن تيمية خلال سبعة قرون وتكملة الجامع"
},
{
"id": 17581,
"name": "التسعينية",
"q": "Q115800771"
},
{
"id": 17582,
"name": "الدرر المنتقاة من الكلمات الملقاة"
},
{
"id": 17616,
"name": "مختصر صحيح مسلم للمنذري ت الألباني"
},
{
"id": 17620,
"name": "وفاة النبي - صلى الله عليه وسلم - «وأظلمت المدينة»"
},
{
"id": 17657,
"name": "الجوهر المنضد في طبقات متأخري أصحاب أحمد",
"q": "Q116984201"
},
{
"id": 17660,
"name": "وصية تقي الدين السبكي لولده محمد"
},
{
"id": 17662,
"name": "سيماء المرأة في الإسلام بين النفس والصورة"
},
{
"id": 17665,
"name": "من حديث النفس"
},
{
"id": 17666,
"name": "الجامع الصحيح للسيرة النبوية"
},
{
"id": 17667,
"name": "الأفعال - سعيد المعافري"
},
{
"id": 17668,
"name": "علم البديع"
},
{
"id": 17669,
"name": "علم البيان"
},
{
"id": 17670,
"name": "علم المعاني"
},
{
"id": 17671,
"name": "علوم البلاغة «البديع والبيان والمعاني»"
},
{
"id": 17673,
"name": "القواعد التطبيقية في اللغة العربية"
},
{
"id": 17674,
"name": "بغية المستفيد في علم التجويد",
"q": "Q131555401"
},
{
"id": 17680,
"name": "الجامع في أحكام صفة الصلاة - الدبيان"
},
{
"id": 17681,
"name": "الاقتضاب في شرح أدب الكتاب = الكاتب",
"pre": "الاقتضاب في شرح أدب الكُتّاب"
},
{
"id": 17682,
"name": "أسهل المدارك «شرح إرشاد السالك في مذهب إمام الأئمة مالك»"
},
{
"id": 17687,
"name": "الكناش في فني النحو والصرف"
},
{
"id": 17712,
"name": "شرح الشواهد الشعرية في أمات الكتب النحوية"
},
{
"id": 17715,
"name": "شرح ألفية ابن مالك المسمى تحرير الخصاصة في تيسير الخلاصة"
},
{
"id": 17719,
"name": "شرح المكودي على الألفية في علمي الصرف والنحو"
},
{
"id": 17724,
"name": "شرح شواهد المغني"
},
{
"id": 17726,
"name": "شرح كتاب سيبويه للسيرافي"
},
{
"id": 17729,
"name": "الأحكام الصغرى",
"q": "Q124618950"
},
{
"id": 17731,
"name": "مفهوم تجديد الدين"
},
{
"id": 17735,
"name": "مفتاح طريق الأولياء"
},
{
"id": 17736,
"name": "الفصيحة العجما في الكلام على حديث «أحبب حبيبك هونا ما»"
},
{
"id": 17738,
"name": "نبذة لطيفة ونصيحة شريفة"
},
{
"id": 17739,
"name": "الفانيد في حلاوة الأسانيد"
},
{
"id": 17740,
"name": "مختصر تنزيه المسجد الحرام عن بدع الجهلة العوام"
},
{
"id": 17741,
"name": "تعليق لطيف على آخر حديث في رياض الصالحين"
},
{
"id": 17742,
"name": "الإنصاف في حكم الإعتكاف"
},
{
"id": 17744,
"name": "ردع الإخوان عن محدثات آخر جمعة رمضان"
},
{
"id": 17745,
"name": "المعين على تفهم الأربعين ت دغش"
},
{
"id": 17747,
"name": "البدر التمام شرح بلوغ المرام ت الزبن"
},
{
"id": 17748,
"name": "ثمرة التسارع إلى الحب في الله تعالى وترك التقاطع",
"q": "Q136524795"
},
{
"id": 17757,
"name": "بلوغ المرام من أدلة الأحكام - ت الفحل"
},
{
"id": 17768,
"name": "التجريد للقدوري"
},
{
"id": 17772,
"name": "تعليقات الشيخ البراك على المخالفات العقدية في فتح الباري"
},
{
"id": 17773,
"name": "توضيح مقاصد العقيدة الواسطية - البراك"
},
{
"id": 17774,
"name": "شرح الأصول الثلاثة - البراك"
},
{
"id": 17775,
"name": "شرح القواعد الأربع - البراك"
},
{
"id": 17791,
"name": "شرح المصابيح لابن الملك"
},
{
"id": 17792,
"name": "نشر ألوية التشريف بالإعلام والتعريف بمن له ولاية عمارة ما سقط من البيت الشريف"
},
{
"id": 17793,
"name": "تحذير الجمهور من مفاسد شهادة الزور"
},
{
"id": 17794,
"name": "جزء فيه ذكر حال عكرمة مولى عبد الله بن عباس وما قيل فيه"
},
{
"id": 17795,
"name": "عقد الجمان في بيان شعب الإيمان"
},
{
"id": 17796,
"name": "إرشاد العباد في فضل الجهاد"
},
{
"id": 17797,
"name": "العروس المجلية في أسانيد الحديث المسلسل بالأولية"
},
{
"id": 17798,
"name": "إعلام الموقعين عن رب العالمين - ت مشهور",
"pre": "إعلام الموقعين عن رب العالمين",
"suf": "ت مشهور"
},
{
"id": 17800,
"name": "فقه النوازل للأقليات المسلمة"
},
{
"id": 17801,
"name": "معاني النحو"
},
{
"id": 17802,
"name": "مقالات في كلمات"
},
{
"id": 17804,
"name": "التورق المصرفي"
},
{
"id": 17806,
"name": "الإعلام الملتزم بفضيلة زمزم"
},
{
"id": 17807,
"name": "الخلاصة في معرفة الحديث"
},
{
"id": 17810,
"name": "توصيف الأقضية في الشريعة الإسلامية"
},
{
"id": 17811,
"name": "الفوائد الجسام على قواعد ابن عبد السلام"
},
{
"id": 17812,
"name": "التعليقة للقاضي حسين"
},
{
"id": 17814,
"name": "بلاغ الرسالة القرآنية"
},
{
"id": 17816,
"name": "السيف المسلول على من سب الرسول"
},
{
"id": 17817,
"name": "الغنية لطالبي طريق الحق"
},
{
"id": 17819,
"name": "المذكر والمؤنث"
},
{
"id": 17821,
"name": "الثبات والشمول في الشريعة الإسلامية"
},
{
"id": 17823,
"name": "سفر السعادة وسفير الإفادة"
},
{
"id": 17827,
"name": "شفاء الغليل في بيان الشبه والمخيل ومسالك التعليل"
},
{
"id": 17829,
"name": "عمدة الحفاظ في تفسير أشرف الألفاظ"
},
{
"id": 17832,
"name": "المفطرات الطبية المعاصرة دراسة فقهية طبية مقارنة"
},
{
"id": 17835,
"name": "الموسوعة الحديثية - ديوان الوقف السني"
},
{
"id": 17842,
"name": "المعلم بشيوخ البخاري ومسلم"
},
{
"id": 17843,
"name": "الوقف والابتداء في كتاب الله عز وجل"
},
{
"id": 17844,
"name": "مسائل حرب الكرماني كتاب الطهارة والصلاة - ت السريع"
},
{
"id": 17845,
"name": "إفادة المبتدي المستفيد فى حكم إتيان المأموم بالتسميع"
},
{
"id": 17847,
"name": "إجازة الشيخ العلامة عبد اللطيف بن عبد الرحمن آل الشيخ"
},
{
"id": 17848,
"name": "رسالة لطيفة في شرح حديث أنت ومالك لأبيك"
},
{
"id": 17850,
"name": "تحرير الأقوال في صوم الست من شوال"
},
{
"id": 17851,
"name": "قطع الجدال في أحكام الاستقبال «للكعبة المشرفة»"
},
{
"id": 17857,
"name": "مقدمة إملاء الاستذكار للحافظ أبي عمر ابن عبد البر القرطبي"
},
{
"id": 17861,
"name": "القصيدة الوضاحية في مدح السيدة عائشة أم المؤمنين رضي الله عنها"
},
{
"id": 17862,
"name": "شرح كلمة الإخلاص لابن رجب"
},
{
"id": 17865,
"name": "فقه عمل اليوم والليلة"
},
{
"id": 17869,
"name": "الأدب والمروءة"
},
{
"id": 17870,
"name": "شرح القصيدة الدالية للكلوذاني"
},
{
"id": 17871,
"name": "الإشارة في أصول الفقه - ط العلمية",
"pre": "الإشارة في أصول الفقه",
"suf": "ط العلمية"
},
{
"id": 17872,
"name": "الحدود في الأصول"
},
{
"id": 17874,
"name": "تقريب الوصول إلي علم الأصول"
},
{
"id": 17878,
"name": "الأجوبة المرضية فيما سئل السخاوي عنه من الأحاديث النبوية"
},
{
"id": 17879,
"name": "الإبانة في اللغة العربية"
},
{
"id": 17881,
"name": "الردود والنقود شرح مختصر ابن الحاجب"
},
{
"id": 17882,
"name": "الاصطلام - ط المنار"
},
{
"id": 17883,
"name": "التقريب والإرشاد (الصغير)"
},
{
"id": 17885,
"name": "التهذيب في الفقه الشافعي"
},
{
"id": 17894,
"name": "قواعد ابن رجب - ت مشهور",
"pre": "قواعد ابن رجب",
"suf": "ت مشهور"
},
{
"id": 17898,
"name": "ما صح من آثار الصحابة في الفقه"
},
{
"id": 17900,
"name": "مصباح الأريب في تقريب الرواة الذين ليسوا في تقريب التهذيب"
},
{
"id": 17901,
"name": "آراء ابن الجوزي التربوية"
},
{
"id": 17903,
"name": "الأحكام الوسطى",
"q": "Q124619017"
},
{
"id": 17904,
"name": "ديوان الهذليين",
"q": "Q121256102"
},
{
"id": 17905,
"name": "البديع في علم العربية"
},
{
"id": 17908,
"name": "الانتهاض في ختم «الشفا» لعياض"
},
{
"id": 17916,
"name": "تخليص الشواهد وتلخيص الفوائد"
},
{
"id": 18007,
"name": "دفع إيهام الاضطراب عن آيات الكتاب - ط مكتبة ابن تيمية",
"pre": "دفع إيهام الاضطراب عن آيات الكتاب",
"suf": "ط مكتبة ابن تيمية"
},
{
"id": 18085,
"name": "التنبيهات على رسالة الألباني في الصلاة"
},
{
"id": 18089,
"name": "الرد على الجهمية للدارمي - ت الشوامي"
},
{
"id": 18091,
"name": "نقض الدارمي على المريسي - ت الشوامي"
},
{
"id": 18098,
"name": "العقيدة الواسطية - ت ابن مانع",
"pre": "العقيدة الواسطية"
},
{
"id": 18100,
"name": "شرح الإلمام بأحاديث الأحكام"
},
{
"id": 18102,
"name": "المختصر في تفسير القرآن الكريم"
},
{
"id": 18103,
"name": "اللامع الصبيح بشرح الجامع الصحيح"
},
{
"id": 18106,
"name": "منحة الباري بشرح صحيح البخاري"
},
{
"id": 18108,
"name": "المعجم العربي لأسماء الملابس"
},
{
"id": 18111,
"name": "شرح المنظومة البيقونية ليوسف جودة"
},
{
"id": 18115,
"name": "شرح ابن الناظم على ألفية ابن مالك"
},
{
"id": 18116,
"name": "اختلاف أقوال مالك وأصحابه"
},
{
"id": 18118,
"name": "التيسير في أصول واتجاهات التفسير"
},
{
"id": 18122,
"name": "التفسير والتأويل في القرآن"
},
{
"id": 18124,
"name": "جلاء الأفهام - ط عطاءات العلم",
"pre": "جلاء الأفهام",
"q": "Q115796688"
},
{
"id": 18128,
"name": "الوابل الصيب - ط عطاءات العلم",
"pre": "الوابل الصيب",
"q": "Q115796541"
},
{
"id": 18144,
"name": "مستخرج أبي عوانة - ط الجامعة الإسلامية",
"pre": "مستخرج أبي عوانة",
"suf": "ط الجامعة الإسلامية",
"q": "Q116877675"
},
{
"id": 18146,
"name": "روضة المستبين في شرح كتاب التلقين"
},
{
"id": 18147,
"name": "كنز الدرر وجامع الغرر",
"q": "Q116059448"
},
{
"id": 18152,
"name": "فتيا في صيغة الحمد"
},
{
"id": 18159,
"name": "الطرق الحكمية في السياسة الشرعية - ط عطاءات العلم",
"q": "Q115796490"
},
{
"id": 18162,
"name": "الأساس في التفسير"
},
{
"id": 18169,
"name": "الفروسية المحمدية - ط عطاءات العلم",
"pre": "الفروسية المحمدية",
"q": "Q115796493"
},
{
"id": 18176,
"name": "التوشيح شرح الجامع الصحيح"
},
{
"id": 18192,
"name": "الأشباه والنظائر لابن الملقن ت الأزهري"
},
{
"id": 18194,
"name": "التعليق على الموطأ في تفسير لغاته وغوامض إعرابه ومعانيه"
},
{
"id": 18197,
"name": "إصلاح غلط أبي عبيد في غريب الحديث"
},
{
"id": 18222,
"name": "شرح سنن النسائي المسمى شروق أنوار المنن الكبرى الإلهية بكشف أسرار السنن الصغرى النسائية"
},
{
"id": 18251,
"name": "أبنية الأسماء والأفعال والمصادر",
"q": "Q115786226"
},
{
"id": 18252,
"name": "أدب القاضي - ابن القاص"
},
{
"id": 18254,
"name": "التكملة والذيل والصلة للصغاني"
},
{
"id": 18257,
"name": "التنبيه على حدوث التصحيف"
},
{
"id": 18259,
"name": "التنبيه على مشكلات الهداية"
},
{
"id": 18260,
"name": "الجامع في السنن والآداب والمغازي والتاريخ"
},
{
"id": 18261,
"name": "الرد على الشافعي لابن اللباد"
},
{
"id": 18262,
"name": "المرتجل في شرح الجمل لابن الخشاب"
},
{
"id": 18263,
"name": "القواعد الأصولية والفقهية المتعلقة بالمسلم غير المجتهد"
},
{
"id": 18264,
"name": "المخارج في الحيل - من الأصل لمحمد بن الحسن - ط الثقافة الدينية"
},
{
"id": 18265,
"name": "المسائل الحلبيات"
},
{
"id": 18267,
"name": "المسائل العسكريات في النحو العربي"
},
{
"id": 18268,
"name": "الكوكب الوهاج شرح صحيح مسلم بن الحجاج"
},
{
"id": 18270,
"name": "بحوث ومقالات في اللغة والأدب وتقويم النصوص (مقالات محمد أجمل الإصلاحي)"
},
{
"id": 18272,
"name": "السراج المنير شرح الجامع الصغير في حديث البشير النذير"
},
{
"id": 18273,
"name": "توجيه اللمع"
},
{
"id": 18274,
"name": "تيسير الوصول إلى منهاج الأصول"
},
{
"id": 18275,
"name": "رسائل في اللغة (رسائل ابن السيد البطليوسي)"
},
{
"id": 18276,
"name": "رسالة الملائكة - ت الجندي",
"pre": "رسالة الملائكة"
},
{
"id": 18277,
"name": "شرح التعريف بضروري التصريف"
},
{
"id": 18278,
"name": "شرح المقدمة المحسبة"
},
{
"id": 18279,
"name": "شرح المنهج المنتخب إلى قواعد المذهب"
},
{
"id": 18280,
"name": "شرح كتاب الحدود في النحو"
},
{
"id": 18281,
"name": "الفائق في أصول الفقه"
},
{
"id": 18283,
"name": "فوائت كتاب سيبويه"
},
{
"id": 18285,
"name": "كتاب الفنون لابن عقيل"
},
{
"id": 18287,
"name": "نوادر الفقهاء"
},
{
"id": 18294,
"name": "إتحاف أعلام الناس بجمال أخبار حاضرة مكناس"
},
{
"id": 18315,
"name": "الزيادات على الموضوعات"
},
{
"id": 18318,
"name": "الكلام على مسألة السماع"
},
{
"id": 18328,
"name": "الاستغاثة في الرد على البكري",
"q": "Q115800449"
},
{
"id": 18332,
"name": "الأساس في السنة وفقهها - السيرة النبوية"
},
{
"id": 18337,
"name": "التبيان في أيمان القرآن - ط عطاءات العلم",
"pre": "التبيان في أيمان القرآن",
"q": "Q115794881"
},
{
"id": 18338,
"name": "الأساس في السنة وفقهها - العقائد الإسلامية"
},
{
"id": 18339,
"name": "الأساس في السنة وفقهها - العبادات في الإسلام"
},
{
"id": 18353,
"name": "حاشية ابن قائد على منتهى الإرادات"
},
{
"id": 18381,
"name": "الفتوى الحموية الكبرى",
"q": "Q115910713"
},
{
"id": 18428,
"name": "الخطابة عند العرب"
},
{
"id": 18493,
"name": "تحفة الناظر وغنية الذاكر في حفظ الشعائر وتغيير المناكر"
},
{
"id": 18562,
"name": "الفروق للسامري جـ 1 ط الصميعي"
},
{
"id": 18567,
"name": "المنهاج في شعب الإيمان"
},
{
"id": 18568,
"name": "التعيين في شرح الأربعين"
},
{
"id": 18569,
"name": "الميسر في شرح مصابيح السنة للتوربشتي"
},
{
"id": 18571,
"name": "السراج المنير في ترتيب أحاديث صحيح الجامع الصغير",
"q": "Q115789507"
},
{
"id": 18604,
"name": "إرشاد العباد إلى معاني لمعة الاعتقاد"
},
{
"id": 18605,
"name": "التعليق على القواعد المثلى"
},
{
"id": 18606,
"name": "الذب عن مذهب الإمام مالك"
},
{
"id": 18607,
"name": "الجامع لمسائل المدونة"
},
{
"id": 18608,
"name": "روضة القضاة وطريق النجاة"
},
{
"id": 18609,
"name": "شرح الرسالة"
},
{
"id": 18610,
"name": "قضاء الأرب في أسئلة حلب"
},
{
"id": 18611,
"name": "موافقة الخبر الخبر في تخريج أحاديث المختصر"
},
{
"id": 18612,
"name": "إغاثة اللهفان في مصايد الشيطان - ط عطاءات العلم",
"pre": "إغاثة اللهفان في مصايد الشيطان",
"suf": "ط عطاءات العلم",
"q": "Q115794736"
},
{
"id": 18632,
"name": "اجتماع الجيوش الإسلامية - ط عطاءات العلم",
"pre": "اجتماع الجيوش الإسلامية",
"suf": "ط عطاءات العلم",
"q": "Q115794829"
},
{
"id": 18641,
"name": "المتفق والمفترق فيمن ذكر بكنيته من الرواة في الكتب الستة"
},
{
"id": 18645,
"name": "تنبيه الرجل العاقل على تمويه الجدل الباطل"
},
{
"id": 18667,
"name": "المثل العليا في الإسلام - ضمن «محاضرات الشنقيطي»"
},
{
"id": 18686,
"name": "تفسير الثعلبي = الكشف والبيان عن تفسير القرآن ط دار التفسير"
},
{
"id": 18795,
"name": "النبأ العظيم - ط القلم",
"pre": "النبأ العظيم"
},
{
"id": 19065,
"name": "تاريخ ابن حجي"
},
{
"id": 19188,
"name": "الشرح الكبير على المقنع - ت التركي",
"pre": "الشرح الكبير",
"suf": "ت التركي"
},
{
"id": 19199,
"name": "سلم الوصول إلى طبقات الفحول"
},
{
"id": 19225,
"name": "إغاثة اللهفان في حكم طلاق الغضبان - ط عطاءات العلم",
"pre": "إغاثة اللهفان في حكم طلاق الغضبان",
"q": "Q115794686"
},
{
"id": 19228,
"name": "الإنصاف في معرفة الراجح من الخلاف - ت التركي",
"pre": "الإنصاف",
"suf": "ت التركي"
},
{
"id": 19230,
"name": "التدريب في الفقه الشافعي"
},
{
"id": 19233,
"name": "المقنع في فقه الإمام أحمد - ت الأرناؤوط",
"pre": "المقنع",
"suf": "ت الأرناؤوط"
},
{
"id": 19234,
"name": "بحوث وتحقيقات عبد العزيز الميمني"
},
{
"id": 19235,
"name": "التحصيل من المحصول"
},
{
"id": 19236,
"name": "شرح قواعد الإعراب"
},
{
"id": 19237,
"name": "ميزان الأصول في نتائج العقول"
},
{
"id": 19298,
"name": "مشكلة الثقافة"
},
{
"id": 19449,
"name": "الانتصار للسلف الأخيار"
},
{
"id": 19482,
"name": "الأحاديث القدسية الأربعينية ت الحويني"
},
{
"id": 19542,
"name": "الحسام المسلول على منتقصي أصحاب الرسول"
},
{
"id": 20364,
"name": "السيرة النبوية - دروس وعبر",
"q": "Q124472774"
},
{
"id": 20555,
"name": "الرحلة إلى إفريقيا"
},
{
"id": 20561,
"name": "عجالة المحتاج إلى توجيه المنهاج"
},
{
"id": 20562,
"name": "شرح ألفية ابن مالك للشاطبي = المقاصد الشافية"
},
{
"id": 20578,
"name": "بهجة الناظرين إلى تراجم المتأخرين من الشافعية البارعين"
},
{
"id": 20583,
"name": "ترتيب الفروق واختصارها"
},
{
"id": 20587,
"name": "الإيمان الأوسط - ط ابن الجوزي",
"q": "Q115285824"
},
{
"id": 20588,
"name": "عدة البروق في جمع ما في المذهب من الجموع والفروق"
},
{
"id": 20589,
"name": "غاية المنتهى في جمع الإقناع والمنتهى ط غراس"
},
{
"id": 20590,
"name": "فتح العلام بشرح الإعلام بأحاديث الأحكام"
},
{
"id": 20591,
"name": "فتح الودود في شرح سنن أبي داود"
},
{
"id": 20593,
"name": "منهج الإمام جمال الدين السرمري في تقرير العقيدة"
},
{
"id": 20594,
"name": "خصائص سيد العالمين وما له من المناقب العجائب"
},
{
"id": 20638,
"name": "الجمع بين الصحيحين لعبد الحق"
},
{
"id": 20641,
"name": "جمهرة مقالات محمود شاكر"
},
{
"id": 20642,
"name": "جمهرة مقالات أحمد شاكر"
},
{
"id": 20643,
"name": "تفسير ابن بدران = جواهر الأفكار ومعادن الأسرار المستخرجة من كلام العزيز الجبار",
"q": "Q137921895"
},
{
"id": 20647,
"name": "مجموع رسائل الحافظ ابن عبد الهادي"
},
{
"id": 20650,
"name": "معلمة الفقه المالكي"
},
{
"id": 20687,
"name": "معرفة المأمور به والمحذور في زيارة القبور"
},
{
"id": 20699,
"name": "الممتع في شرح المقنع - ت ابن دهيش ط 3"
},
{
"id": 20761,
"name": "الإنابة إلى معرفة المختلف فيهم من الصحابة"
},
{
"id": 20762,
"name": "الدر الفريد وبيت القصيد",
"q": "Q125500682"
},
{
"id": 20763,
"name": "الفروق الفقهية للدمشقي - ط الحكمة"
},
{
"id": 20764,
"name": "المنهل العذب المورود شرح سنن أبي داود"
},
{
"id": 20766,
"name": "أضواء البيان في إيضاح القرآن بالقرآن - ط عطاءات العلم",
"pre": "أضواء البيان في إيضاح القرآن بالقرآن",
"suf": "ط عطاءات العلم",
"q": "Q115797488"
},
{
"id": 20769,
"name": "المصالح المرسلة - ضمن «محاضرات الشنقيطي»"
},
{
"id": 20770,
"name": "بيان الناسخ والمنسوخ من آي الذكر الحكيم - ضمن «محاضرات الشنقيطي»"
},
{
"id": 20771,
"name": "فتوى في تحريم التعليم المختلط - ضمن «محاضرات الشنقيطي»"
},
{
"id": 20772,
"name": "منهج ودراسات لآيات الأسماء والصفات - ضمن «محاضرات الشنقيطي»"
},
{
"id": 20773,
"name": "منهج التشريع الإسلامي وحكمته - ضمن «محاضرات الشنقيطي»"
},
{
"id": 20824,
"name": "كتاب الرؤيا"
},
{
"id": 20854,
"name": "معارج القبول بشرح سلم الوصول"
},
{
"id": 20855,
"name": "تفسير القرطبي = الجامع لأحكام القرآن",
"q": "Q115683910"
},
{
"id": 20859,
"name": "الجامع لعلوم الإمام أحمد - علوم الحديث"
},
{
"id": 20860,
"name": "العقد المنظوم في الخصوص والعموم"
},
{
"id": 20861,
"name": "المجمع المؤسس للمعجم المفهرس",
"q": "Q118220660"
},
{
"id": 20866,
"name": "الجامع لعلوم الإمام أحمد - شرح الأحاديث والآثار"
},
{
"id": 20868,
"name": "الجامع لعلوم الإمام أحمد - علل الحديث"
},
{
"id": 20869,
"name": "الجامع لعلوم الإمام أحمد - التفسير وعلوم القرآن"
},
{
"id": 20870,
"name": "الجامع لعلوم الإمام أحمد - الترجمة"
},
{
"id": 20872,
"name": "الحلل الإبريزية من التعليقات البازية على صحيح البخاري"
},
{
"id": 20875,
"name": "الجامع لعلوم الإمام أحمد - المقدمات"
},
{
"id": 20876,
"name": "قواعد الترجيح المتعلقة بالنص عند ابن عاشور في تفسيره التحرير والتنوير"
},
{
"id": 20878,
"name": "الجامع لعلوم الإمام أحمد - الفقه"
},
{
"id": 20879,
"name": "الجامع لعلوم الإمام أحمد - العقيدة"
},
{
"id": 20881,
"name": "الجامع لعلوم الإمام أحمد - الرجال"
},
{
"id": 20882,
"name": "الجامع لعلوم الإمام أحمد - الأدب والزهد"
},
{
"id": 20891,
"name": "فتوح الغيب في الكشف عن قناع الريب (حاشية الطيبي على الكشاف)"
},
{
"id": 20892,
"name": "نشر البنود على مراقي السعود"
},
{
"id": 20907,
"name": "الدين الخالص أو إرشاد الخلق إلى دين الحق"
},
{
"id": 20937,
"name": "أمالي المرتضى غرر الفوائد ودرر القلائد (معتزلي)"
},
{
"id": 20944,
"name": "مختصر سنن أبي داود للمنذري ت حلاق",
"pre": "«مختصر سنن أبي داود» للمنذري",
"suf": "ت حلاق"
},
{
"id": 20948,
"name": "شعاع من المحراب"
},
{
"id": 20949,
"name": "المقصور والممدود لأبي علي القالي"
},
{
"id": 20961,
"name": "الإيضاح العضدي"
},
{
"id": 20966,
"name": "القطع والائتناف"
},
{
"id": 20970,
"name": "ترتيب العلوم للمرعشي"
},
{
"id": 20973,
"name": "شرح الفصيح لابن هشام اللخمي"
},
{
"id": 20979,
"name": "أصول الفقه - آيات وأحاديث الأحكام من أمالي الأستاذ الإمام"
},
{
"id": 20983,
"name": "الإشارة في أصول الفقه - ت فركوس",
"pre": "الإشارة في أصول الفقه",
"suf": "ت فركوس"
},
{
"id": 20985,
"name": "شرح التسهيل = تعليق الفرائد على تسهيل الفوائد - ق 1",
"pre": "«شرح التسهيل» للدماميني"
},
{
"id": 20986,
"name": "البرهان في وجوه البيان",
"q": "Q134476450"
},
{
"id": 20989,
"name": "العقد الثمين فى تاريخ البلد الأمين",
"q": "Q116753217"
},
{
"id": 20990,
"name": "قلائد الجمان في فرائد شعراء هذا الزمان",
"q": "Q135924823"
},
{
"id": 21011,
"name": "الأنوار النعمانية في الدعوة الربانية"
},
{
"id": 21017,
"name": "المعجم الاشتقاقي المؤصل"
},
{
"id": 21102,
"name": "الصورة الأدبية تاريخ ونقد"
},
{
"id": 21104,
"name": "خلاصة البدر المنير"
},
{
"id": 21105,
"name": "المنتحل"
},
{
"id": 21107,
"name": "تكملة إكمال الإكمال - ابن الصابوني - ط العلمية",
"pre": "تكملة إكمال الإكمال - ابن الصابوني",
"suf": "ط العلمية"
},
{
"id": 21108,
"name": "شرح معاني الآثار - ط مصر"
},
{
"id": 21113,
"name": "الأوسط في السنن والإجماع والاختلاف - ت حنيف",
"pre": "الأوسط لابن المنذر",
"suf": "ت حنيف",
"q": "Q130271244"
},
{
"id": 21315,
"name": "فضائل القرآن للمستغفري"
},
{
"id": 21473,
"name": "الأربعون لابن المقرئ"
},
{
"id": 21474,
"name": "الإلزامات والتتبع للدارقطني"
},
{
"id": 21475,
"name": "البخلاء للخطيب البغدادي"
},
{
"id": 21476,
"name": "أمالي ابن سمعون الواعظ",
"q": "Q137807837"
},
{
"id": 21477,
"name": "تلخيص المتشابه في الرسم"
},
{
"id": 21478,
"name": "حديث الهميان"
},
{
"id": 21479,
"name": "مسند الموطأ للجوهري"
},
{
"id": 21481,
"name": "معرفة الصحابة لابن منده",
"q": "Q125915656"
},
{
"id": 21482,
"name": "من حديث ابن المقرئ"
},
{
"id": 21483,
"name": "من حديث البغوي وابن صاعد والهاشمي لابن زنبور الوراق"
},
{
"id": 21484,
"name": "حديث البدر بن الهيثم القاضي"
},
{
"id": 21485,
"name": "صفة النفاق ونعت المنافقين لأبي نعيم"
},
{
"id": 21486,
"name": "مدخل إلى التفسير وعلوم القرآن"
},
{
"id": 21487,
"name": "مسائل الإمام أحمد رواية أبي داود السجستاني"
},
{
"id": 21488,
"name": "مسند ابن زيدان"
},
{
"id": 21489,
"name": "الأحاديث العشرة العشارية الاختيارية لابن حجر"
},
{
"id": 21491,
"name": "القول في علم النجوم للخطيب"
},
{
"id": 21493,
"name": "سير السلف الصالحين - إسماعيل الأصبهاني",
"q": "Q120648850"
},
{
"id": 21494,
"name": "معجم شيوخ ابن الأعرابي - ط ابن الجوزي",
"pre": "معجم شيوخ ابن الأعرابي",
"suf": "ط ابن الجوزي"
},
{
"id": 21495,
"name": "مسند الشافعي - ترتيب السندي"
},
{
"id": 21496,
"name": "اللباب في شرح الكتاب"
},
{
"id": 21498,
"name": "الصبح المنبي عن حيثية المتنبي"
},
{
"id": 21499,
"name": "الفرقان بين أولياء الرحمن وأولياء الشيطان",
"q": "Q115910729"
},
{
"id": 21500,
"name": "الكلم النوابغ"
},
{
"id": 21501,
"name": "تربية القرآن يا ولدي"
},
{
"id": 21502,
"name": "تسلية أهل المصائب"
},
{
"id": 21503,
"name": "تلخيص السفسطة"
},
{
"id": 21504,
"name": "جوامع الدعاء"
},
{
"id": 21505,
"name": "جواهر الأدب في أدبيات وإنشاء لغة العرب"
},
{
"id": 21506,
"name": "درء تعارض العقل والنقل",
"q": "Q115911258"
},
{
"id": 21507,
"name": "زوائد مسائل الجاهلية"
},
{
"id": 21508,
"name": "شاعرات العرب في الجاهلية والإسلام",
"q": "Q121084652"
},
{
"id": 21510,
"name": "قلائد العقيان في محاسن الرؤساء والقضاة والكتاب والأدباء والأعيان",
"q": "Q19439168"
},
{
"id": 21511,
"name": "مجانبة أهل الثبور المصلين في المشاهد وعند القبور"
},
{
"id": 21512,
"name": "مختصر منهاج السنة"
},
{
"id": 21513,
"name": "معلم التجويد"
},
{
"id": 21514,
"name": "نوادر المخطوطات",
"q": "Q124024840"
},
{
"id": 21515,
"name": "أبو بكر الصديق أول الخلفاء الراشدين - ط الحلبي",
"pre": "أبو بكر الصديق أول الخلفاء الراشدين",
"q": "Q133501989"
},
{
"id": 21515,
"name": "أبو بكر الصديق أول الخلفاء الراشدين ط إحياء الكتب العربية",
"q": "Q133501989"
},
{
"id": 21516,
"name": "إرشاد السالك إلى أشرف المسالك في فقه الإمام مالك"
},
{
"id": 21517,
"name": "التعليقات السنية على العقيدة الواسطية - فيصل آل مبارك"
},
{
"id": 21519,
"name": "العلاج والرقى"
},
{
"id": 21521,
"name": "شرح مقدمة التفسير لابن تيمية - العثيمين"
},
{
"id": 21522,
"name": "منتقى الأذكار"
},
{
"id": 21523,
"name": "التعليقات المختصرة على متن العقيدة الطحاوية",
"q": "Q136687200"
},
{
"id": 21525,
"name": "شرح مشكل الوسيط"
},
{
"id": 21526,
"name": "أصلح الأديان للإنسانية عقيدة وشريعة"
},
{
"id": 21527,
"name": "شريعة الله يا ولدي"
},
{
"id": 21529,
"name": "المهذب في علم أصول الفقه المقارن"
},
{
"id": 21530,
"name": "القول الأصدق في بيان ما خالف فيه الأصبهاني الأزرق"
},
{
"id": 21536,
"name": "التذكرة بأحوال الموتى وأمور الآخرة",
"q": "Q115769213"
},
{
"id": 21536,
"name": "التذكرة بأحوال الموتى وأمور الآخرة - ت الصادق",
"pre": "التذكرة بأحوال الموتى وأمور الآخرة",
"q": "Q115769213"
},
{
"id": 21537,
"name": "مجموع فتاوى ومقالات متنوعة - ابن باز",
"pre": "«مجموع فتاوى ومقالات متنوعة» لابن باز",
"q": "Q124873266"
},
{
"id": 21538,
"name": "تلخيص الأصول"
},
{
"id": 21539,
"name": "حقيقة البدعة وأحكامها"
},
{
"id": 21542,
"name": "الدرر المنتثرة في الأحاديث المشتهرة"
},
{
"id": 21543,
"name": "تطريز رياض الصالحين"
},
{
"id": 21544,
"name": "حديث علي بن حجر عن إسماعيل بن جعفر"
},
{
"id": 21545,
"name": "الزهد لوكيع",
"q": "Q134590966"
},
{
"id": 21546,
"name": "ذم الدنيا"
},
{
"id": 21547,
"name": "شرح الورقات في أصول الفقه - المحلي"
},
{
"id": 21549,
"name": "مختصر تفسير ابن كثير"
},
{
"id": 21550,
"name": "تخريج أحاديث الإحياء = المغني عن حمل الأسفار"
},
{
"id": 21551,
"name": "الانتصار للصحب والآل من افتراءات السماوي الضال"
},
{
"id": 21552,
"name": "الأنساب المتفقة - ط ليدن"
},
{
"id": 21553,
"name": "التذكرة في الفقه الشافعي"
},
{
"id": 21554,
"name": "التعازي [والمراثي والمواعظ والوصايا]"
},
{
"id": 21556,
"name": "المنتخب من معجم شيوخ السمعاني"
},
{
"id": 21557,
"name": "الوجيز في حكم تجويد الكتاب العزيز"
},
{
"id": 21559,
"name": "بدائع البدائه"
},
{
"id": 21560,
"name": "تحفة الأبرار بنكت الأذكار للنووي"
},
{
"id": 21561,
"name": "تفسير جزء عم للشيخ مساعد الطيار"
},
{
"id": 21562,
"name": "تفصيل النشأتين وتحصيل السعادتين"
},
{
"id": 21563,
"name": "أخبار النساء لابن الجوزي"
},
{
"id": 21564,
"name": "الاعتبار",
"q": "Q121008688"
},
{
"id": 21565,
"name": "جواب في الحلف بغير الله والصلاة إلى القبور، ويليه: فصل في الاستغاثة"
},
{
"id": 21566,
"name": "المصطلح الأصولي ومشكلة المفاهيم"
},
{
"id": 21567,
"name": "شرح شافية ابن الحاجب - الرضي الأستراباذي"
},
{
"id": 21568,
"name": "أساس البلاغة",
"q": "Q136804009"
},
{
"id": 21569,
"name": "الطريق إلى الامتياز"
},
{
"id": 21570,
"name": "المقصد العلي في زوائد أبي يعلى الموصلي"
},
{
"id": 21571,
"name": "الباعث الحثيث إلى اختصار علوم الحديث"
},
{
"id": 21574,
"name": "شرح المعلقات التسع"
},
{
"id": 21575,
"name": "ماذا خسر العالم بانحطاط المسلمين"
},
{
"id": 21576,
"name": "الفتاوى الذهبية في بيع وشراء الذهب"
},
{
"id": 21577,
"name": "الجمعة للنسائي"
},
{
"id": 21578,
"name": "الكلم الطيب"
},
{
"id": 21579,
"name": "زاد الداعية إلى الله"
},
{
"id": 21580,
"name": "فتح رب البرية شرح المقدمة الجزرية في علم التجويد"
},
{
"id": 21581,
"name": "مصطلح الحديث"
},
{
"id": 21582,
"name": "الآداب الشرعية والمنح المرعية",
"q": "Q125491292"
},
{
"id": 21584,
"name": "نهاية الرتبة في طلب الحسبة - الشيزري"
},
{
"id": 21585,
"name": "مناسك الحج والعمرة والمشروع في الزيارة"
},
{
"id": 21586,
"name": "نبذ في الصيام"
},
{
"id": 21587,
"name": "نبذة في العقيدة الإسلامية"
},
{
"id": 21588,
"name": "غمز عيون البصائر في شرح الأشباه والنظائر"
},
{
"id": 21589,
"name": "الفواكه الدواني على رسالة ابن أبي زيد القيرواني"
},
{
"id": 21590,
"name": "سبل السلام شرح بلوغ المرام - ط الحديث",
"pre": "سبل السلام",
"suf": "ط الحديث",
"q": "Q120514457"
},
{
"id": 21592,
"name": "المنثور في القواعد الفقهية"
},
{
"id": 21593,
"name": "البحر المحيط في أصول الفقه",
"q": "Q126494988"
},
{
"id": 21593,
"name": "البحر المحيط في أصول الفقه - ط الكتبي",
"pre": "البحر المحيط في أصول الفقه",
"q": "Q126494988"
},
{
"id": 21595,
"name": "تبصرة الحكام في أصول الأقضية ومناهج الأحكام"
},
{
"id": 21596,
"name": "الجوهرة النيرة على مختصر القدوري"
},
{
"id": 21597,
"name": "حاشية العدوي على كفاية الطالب الرباني"
},
{
"id": 21598,
"name": "حاشية الجمل على شرح المنهج = فتوحات الوهاب بتوضيح شرح منهج الطلاب"
},
{
"id": 21599,
"name": "حاشية البجيرمي على الخطيب = تحفة الحبيب على شرح الخطيب",
"q": "Q125504973"
},
{
"id": 21600,
"name": "معين الحكام فيما يتردد بين الخصمين من الأحكام"
},
{
"id": 21601,
"name": "التلخيص الحبير - ط قرطبة",
"pre": "التلخيص الحبير",
"suf": "ط قرطبة"
},
{
"id": 21602,
"name": "صفة الجنة لأبي نعيم الأصبهاني"
},
{
"id": 21603,
"name": "حاشية البجيرمي على شرح المنهج = التجريد لنفع العبيد"
},
{
"id": 21604,
"name": "الشرح الكبير للشيخ الدردير وحاشية الدسوقي"
},
{
"id": 21605,
"name": "التقرير والتحبير على كتاب التحرير"
},
{
"id": 21607,
"name": "حاشية الصاوي على الشرح الصغير = بلغة السالك لأقرب المسالك"
},
{
"id": 21608,
"name": "حاشية العطار على شرح الجلال المحلي على جمع الجوامع"
},
{
"id": 21609,
"name": "الإنصاف في معرفة الراجح من الخلاف - ت الفقي",
"pre": "الإنصاف في معرفة الراجح من الخلاف",
"suf": "ت الفقي"
},
{
"id": 21610,
"name": "شرح حدود ابن عرفة"
},
{
"id": 21611,
"name": "التاج والإكليل لمختصر خليل"
},
{
"id": 21613,
"name": "حاشية ابن عابدين = رد المحتار - ط الحلبي",
"q": "Q121084618"
},
{
"id": 21613,
"name": "حاشية ابن عابدين = رد المحتار ط الحلبي",
"q": "Q121084618"
},
{
"id": 21614,
"name": "منح الجليل شرح مختصر خليل"
},
{
"id": 21615,
"name": "تفسير الأحلام = منتخب الكلام في تفسير الأحلام"
},
{
"id": 21618,
"name": "مستخرج أبي عوانة - ط المعرفة",
"pre": "مستخرج أبي عوانة",
"suf": "ط المعرفة",
"q": "Q116877790"
},
{
"id": 21619,
"name": "المبدع في شرح المقنع",
"q": "Q121008806"
},
{
"id": 21619,
"name": "المبدع في شرح المقنع - ط العلمية",
"pre": "المبدع في شرح المقنع",
"q": "Q121008806"
},
{
"id": 21623,
"name": "فتاوى الرملي"
},
{
"id": 21628,
"name": "الفتاوى الكبرى الفقهية"
},
{
"id": 21629,
"name": "الزواجر عن اقتراف الكبائر",
"q": "Q125516806"
},
{
"id": 21634,
"name": "المشيخة البغدادية لأبي طاهر السلفي (1 - 35) ت المزيدي",
"pre": "المشيخة البغدادية لأبي طاهر السلفي "
},
{
"id": 21639,
"name": "مجمع الضمانات"
},
{
"id": 21640,
"name": "الفتاوى العالمكيرية = الفتاوى الهندية"
},
{
"id": 21642,
"name": "كشاف القناع عن متن الإقناع - ت مصيلحي",
"pre": "كشاف القناع",
"suf": "ت مصيلحي"
},
{
"id": 21643,
"name": "شرح ميارة = الإتقان والإحكام في شرح تحفة الحكام"
},
{
"id": 21644,
"name": "مجمع الأنهر في شرح ملتقى الأبحر"
},
{
"id": 21654,
"name": "بريقة محمودية في شرح طريقة محمدية وشريعة نبوية في سيرة أحمدية"
},
{
"id": 21660,
"name": "فيض القدير",
"q": "Q125469719"
},
{
"id": 21662,
"name": "تحفة الأحوذي"
},
{
"id": 21670,
"name": "مشيخة يعقوب بن سفيان الفسوي"
},
{
"id": 21677,
"name": "مطالب أولي النهى في شرح غاية المنتهى"
},
{
"id": 21687,
"name": "العقود الدرية في تنقيح الفتاوى الحامدية"
},
{
"id": 21688,
"name": "فتح العلي المالك في الفتوى على مذهب الإمام مالك"
},
{
"id": 21692,
"name": "درر الحكام في شرح مجلة الأحكام"
},
{
"id": 21693,
"name": "شرح منتهى الإرادات للبهوتي = دقائق أولي النهى ط عالم الكتب",
"pre": "«شرح المنتهى» للبهوتي",
"suf": "ط عالم الكتب"
},
{
"id": 21701,
"name": "إرشاد الساري لشرح صحيح البخاري - ط عطاءات العلم",
"pre": "إرشاد الساري لشرح صحيح البخاري"
},
{
"id": 21710,
"name": "معجم مقاييس اللغة",
"q": "Q121011017"
},
{
"id": 21710,
"name": "مقاييس اللغة",
"q": "Q121011017"
},
{
"id": 21712,
"name": "الكامل في التاريخ - ت تدمري",
"q": "Q114660797"
},
{
"id": 21713,
"name": "زاد المعاد في هدي خير العباد - ت الرسالة الثاني",
"pre": "«زاد المعاد» ت الرسالة الثاني"
},
{
"id": 21714,
"name": "اجتماع الجيوش الإسلامية - ت المعتق",
"pre": "اجتماع الجيوش الإسلامية",
"suf": "ت المعتق"
},
{
"id": 21715,
"name": "إرشاد الساري لشرح صحيح البخاري - ط بولاق",
"pre": "إرشاد الساري إلى شرح صحيح البخاري"
},
{
"id": 21716,
"name": "إرشاد الساري لشرح صحيح البخاري - ط العلمية",
"pre": "إرشاد الساري إلى شرح صحيح البخاري"
},
{
"id": 21719,
"name": "الأشباه والنظائر - السيوطي"
},
{
"id": 21720,
"name": "الاعتصام للشاطبي ت الهلالي"
},
{
"id": 21721,
"name": "البيان في مذهب الإمام الشافعي"
},
{
"id": 21723,
"name": "الحاوي للفتاوي",
"q": "Q126118588"
},
{
"id": 21729,
"name": "القواعد النورانية",
"q": "Q115910705"
},
{
"id": 21730,
"name": "قواعد ابن رجب - ط الخانجي",
"pre": "قواعد ابن رجب",
"suf": "ط الخانجي"
},
{
"id": 21731,
"name": "الكافي في فقه الإمام أحمد"
},
{
"id": 21735,
"name": "المقدمات الممهدات"
},
{
"id": 21739,
"name": "بداية المجتهد ونهاية المقتصد",
"q": "Q120514205"
},
{
"id": 21743,
"name": "شرح الزركشي على مختصر الخرقي"
},
{
"id": 21744,
"name": "فتح القدير للكمال بن الهمام - ط الحلبي"
},
{
"id": 21747,
"name": "أحكام أهل الذمة - ط رمادي"
},
{
"id": 21751,
"name": "البيان والتحصيل",
"q": "Q129451552"
},
{
"id": 21759,
"name": "أبحاث هيئة كبار العلماء"
},
{
"id": 21760,
"name": "فتاوى الطب والمرضى"
},
{
"id": 21761,
"name": "جامع خطب عرفة لعبد العزيز آل الشيخ",
"q": "Q136416429"
},
{
"id": 21765,
"name": "إتحاف الخيرة المهرة بزوائد المسانيد العشرة",
"q": "Q125912642"
},
{
"id": 21766,
"name": "التفسير المظهري"
},
{
"id": 21767,
"name": "كتاب الله عز وجل ومكانته العظيمة"
},
{
"id": 21769,
"name": "الموسوعة القرآنية خصائص السور",
"q": "Q120489667"
},
{
"id": 21770,
"name": "حقيقة شهادة أن محمدا رسول الله صلى الله عليه وسلم"
},
{
"id": 21772,
"name": "فتاوى اللجنة الدائمة - المجموعة الثانية"
},
{
"id": 21780,
"name": "بين الرشاد والتيه"
},
{
"id": 21781,
"name": "تأملات"
},
{
"id": 21783,
"name": "حديث إن لله تسعة وتسعين اسما لأبي نعيم الأصبهاني"
},
{
"id": 21784,
"name": "تحت راية القرآن"
},
{
"id": 21785,
"name": "خصائص التعبير القرآني وسماته البلاغية"
},
{
"id": 21786,
"name": "القواعد الفقهية وتطبيقاتها في المذاهب الأربعة"
},
{
"id": 21788,
"name": "إكفار الملحدين في ضروريات الدين"
},
{
"id": 21791,
"name": "تفسير عبد الرزاق"
},
{
"id": 21794,
"name": "رؤية الله للدارقطني"
},
{
"id": 21795,
"name": "مسند الدارمي - ت حسين أسد"
},
{
"id": 21796,
"name": "أصول في التفسير"
},
{
"id": 21797,
"name": "الإبداع في بيان كمال الشرع وخطر الابتداع"
},
{
"id": 21799,
"name": "التوهم في وصف أحوال الآخرة"
},
{
"id": 21801,
"name": "المناهي اللفظية"
},
{
"id": 21802,
"name": "المنتقى من فرائد الفوائد"
},
{
"id": 21805,
"name": "تفسير العثيمين: القصص"
},
{
"id": 21807,
"name": "تفسير العثيمين: العنكبوت"
},
{
"id": 21808,
"name": "تفسير العثيمين: الروم"
},
{
"id": 21809,
"name": "جامع المسانيد والسنن",
"q": "Q117324903"
},
{
"id": 21810,
"name": "رسالة الحجاب"
},
{
"id": 21812,
"name": "شرح الأربعين النووية للعثيمين"
},
{
"id": 21813,
"name": "شرح تنقيح الفصول"
},
{
"id": 21814,
"name": "شرح حديث جابر في صفة حجة النبي لابن عثيمين"
},
{
"id": 21817,
"name": "فتح رب البرية بتلخيص الحموية"
},
{
"id": 21819,
"name": "مفاتيح الأغاني في القراءات والمعاني"
},
{
"id": 21821,
"name": "التفسير الوسيط للواحدي"
},
{
"id": 21840,
"name": "دور المسلم ورسالته في الثلث الأخير من القرن العشرين"
},
{
"id": 21841,
"name": "شروط النهضة"
},
{
"id": 21843,
"name": "حاشيتا قليوبي وعميرة"
},
{
"id": 21848,
"name": "الغرر البهية في شرح البهجة الوردية",
"q": "Q125917051"
},
{
"id": 21944,
"name": "الحبائك في أخبار الملائك"
},
{
"id": 22002,
"name": "إخبار أهل الرسوخ في الفقه والتحديث بمقدار المنسوخ من الحديث"
},
{
"id": 22053,
"name": "فضل رجب لابن عساكر"
},
{
"id": 22273,
"name": "اعتقاد الأئمة الأربعة"
},
{
"id": 22274,
"name": "الحجاب للمنفلوطي"
},
{
"id": 22301,
"name": "التسلي والاغتباط بثواب من تقدم من الأفراط"
},
{
"id": 22334,
"name": "التخريج لصحيح الحديث"
},
{
"id": 22340,
"name": "الحث على حفظ العلم وذكر كبار الحفاظ"
},
{
"id": 22341,
"name": "العقد التمام فيمن زوجه النبي عليه الصلاة والسلام"
},
{
"id": 22347,
"name": "القناعة والتعفف"
},
{
"id": 22362,
"name": "النكت شرح زيادات الزيادات للسرخسي - وشرح العتابي"
},
{
"id": 22364,
"name": "الزبد في الفقه الشافعي"
},
{
"id": 22367,
"name": "جامع بيان العلم وفضله",
"q": "Q125473393"
},
{
"id": 22371,
"name": "معانى القرآن للأخفش"
},
{
"id": 22381,
"name": "فوائد أبي بكر الأبهري"
},
{
"id": 22391,
"name": "الشافية في علم التصريف - معها الوافية نظم الشافية"
},
{
"id": 22396,
"name": "تيسير علم أصول الفقه"
},
{
"id": 22397,
"name": "مناظرة بين الإسلام والنصرانية"
},
{
"id": 22418,
"name": "فوائد ابن شاهين"
},
{
"id": 22526,
"name": "الأربعون في التصوف للسلمي"
},
{
"id": 22547,
"name": "شرح مشكل الآثار"
},
{
"id": 22549,
"name": "تفسير ابن المنذر"
},
{
"id": 22551,
"name": "الزهد والرقائق للخطيب البغدادي"
},
{
"id": 22565,
"name": "الدعوة إلى الله وأخلاق الدعاة"
},
{
"id": 22566,
"name": "الفرق بين النصيحة والتعيير"
},
{
"id": 22579,
"name": "أخبار مكة - الفاكهي - ط 2",
"pre": "أخبار مكة - الفاكهي",
"suf": "ط 2",
"q": "Q116752093"
},
{
"id": 22592,
"name": "إرواء الغليل في تخريج أحاديث منار السبيل",
"q": "Q115788196"
},
{
"id": 22593,
"name": "الهداية الى بلوغ النهاية"
},
{
"id": 22615,
"name": "أصول الدعوة"
},
{
"id": 22623,
"name": "التاج في أخلاق الملوك"
},
{
"id": 22642,
"name": "النشر في القراءات العشر",
"q": "Q125899042"
},
{
"id": 22643,
"name": "الوفاة"
},
{
"id": 22647,
"name": "العبودية",
"q": "Q115910683"
},
{
"id": 22648,
"name": "قاعدة تتضمن ذكر ملابس النبي وسلاحه ودوابه - القرمانية - جواب فتيا في لبس النبي"
},
{
"id": 22649,
"name": "قاعدة جليلة في التوسل والوسيلة",
"q": "Q115943238"
},
{
"id": 22650,
"name": "قاعدة حسنة في الباقيات الصالحات"
},
{
"id": 22651,
"name": "مسألة في الكنائس"
},
{
"id": 22653,
"name": "جامع الرسائل لابن تيمية - رشاد سالم",
"q": "Q115910952"
},
{
"id": 22654,
"name": "الأثبات في مخطوطات الأئمة: شيخ الإسلام ابن تيمية، والعلامة ابن القيم، والحافظ ابن رجب"
},
{
"id": 22657,
"name": "تركة النبي"
},
{
"id": 22659,
"name": "الإكمال - لابن ماكولا - ط العلمية",
"q": "Q114876014"
},
{
"id": 22665,
"name": "العقيدة الواسطية - ت أشرف عبد المقصود",
"pre": "العقيدة الواسطية",
"q": "Q115910397"
},
{
"id": 22665,
"name": "العقيدة الواسطية: اعتقاد الفرقة الناجية المنصورة إلى قيام الساعة أهل السنة والجماعة",
"q": "Q115910397"
},
{
"id": 22666,
"name": "التدمرية",
"q": "Q115800626"
},
{
"id": 22667,
"name": "تحقيق القول في مسألة: عيسى كلمة الله والقرآن كلام الله"
},
{
"id": 22668,
"name": "مسألة فيما إذا كان في العبد محبة لما هو خير وحق ومحمود في نفسه"
},
{
"id": 22669,
"name": "سير أعلام النبلاء - ط الحديث",
"q": "Q120648548"
},
{
"id": 22676,
"name": "المرشد الوجيز إلى علوم تتعلق بالكتاب العزيز"
},
{
"id": 22678,
"name": "أوائل المؤلفين في السيرة النبوية"
},
{
"id": 22707,
"name": "هداية الحيارى في أجوبة اليهود والنصارى - ط دار القلم",
"pre": "هداية الحيارى في أجوبة اليهود والنصارى"
},
{
"id": 22712,
"name": "تحرير المقال في موازنة الأعمال وحكم غير المكلفين في العقبى والمآل"
},
{
"id": 22720,
"name": "اختيار الأولى في شرح حديث اختصام الملأ الأعلى - ت الدوسري",
"pre": "اختيار الأولى في شرح حديث اختصام الملأ الأعلى",
"suf": "ت الدوسري"
},
{
"id": 22721,
"name": "إظهار الحق"
},
{
"id": 22726,
"name": "الفقه الميسر في ضوء الكتاب والسنة"
},
{
"id": 22769,
"name": "مراح لبيد لكشف معنى القرآن المجيد"
},
{
"id": 22771,
"name": "تاريخ الإسلام - ط التوفيقية",
"q": "Q124614051"
},
{
"id": 22788,
"name": "الصلة في تاريخ أئمة الأندلس لابن بشكوال",
"pre": "«الصلة في تاريخ أئمة الأندلس» لابن بشكوال"
},
{
"id": 22793,
"name": "العدة في أصول الفقه"
},
{
"id": 22797,
"name": "مناقب الشافعي للبيهقي"
},
{
"id": 22798,
"name": "نضرة النعيم في مكارم أخلاق الرسول الكريم"
},
{
"id": 22799,
"name": "تاريخ دمشق لابن القلانسي"
},
{
"id": 22800,
"name": "فضائل القرآن لابن كثير"
},
{
"id": 22804,
"name": "المطالب العالية بزوائد المسانيد الثمانية",
"q": "Q125915713"
},
{
"id": 22808,
"name": "فضل أبي بكر الصديق رضي الله عنه"
},
{
"id": 22812,
"name": "أحاديث القصاص",
"q": "Q115798081"
},
{
"id": 22812,
"name": "أحاديث القصاص - ت الصباغ",
"pre": "أحاديث القصاص",
"q": "Q115798081"
},
{
"id": 22828,
"name": "الشعراء الصعاليك في العصر الجاهلي"
},
{
"id": 22835,
"name": "تفسير الألوسي = روح المعاني",
"q": "Q125898701"
},
{
"id": 22835,
"name": "تفسير الألوسي روح المعاني - ط العلمية",
"q": "Q125898701"
},
{
"id": 22842,
"name": "موعظة المؤمنين من إحياء علوم الدين",
"q": "Q136521811"
},
{
"id": 22848,
"name": "تنقيح التحقيق - الذهبي"
},
{
"id": 22852,
"name": "الاعتقاد لابن أبي يعلى"
},
{
"id": 22853,
"name": "تكميل النفع بما لم يثبت به وقف ولا رفع"
},
{
"id": 22855,
"name": "أجنحة المكر الثلاثة"
},
{
"id": 22859,
"name": "في النقد الأدبي"
},
{
"id": 22860,
"name": "المذاهب الأدبية في الشعر الحديث لجنوب المملكة العربية السعودية"
},
{
"id": 22862,
"name": "النبوة والأنبياء في اليهودية والمسيحية والإسلام"
},
{
"id": 22867,
"name": "المعاجم العربية مع اعتناء خاص بمعجم العين للخليل بن أحمد"
},
{
"id": 22868,
"name": "الاعتبار في الناسخ والمنسوخ من الآثار"
},
{
"id": 22869,
"name": "هداية القاري إلى تجويد كلام الباري"
},
{
"id": 22870,
"name": "مقدمة ابن الصلاح = معرفة أنواع علوم الحديث - ت عتر",
"q": "Q120635850"
},
{
"id": 22872,
"name": "توثيق السنة في القرن الثاني الهجري أسسه واتجاهاته"
},
{
"id": 22874,
"name": "الصفدية",
"q": "Q115800670"
},
{
"id": 22877,
"name": "الأحكام السلطانية لأبي يعلى الفراء"
},
{
"id": 22881,
"name": "الأحكام السلطانية للماوردي"
},
{
"id": 22882,
"name": "إثارة الفوائد المجموعة في الإشارة إلى الفرائد المسموعة"
},
{
"id": 22883,
"name": "الفصل والوصل في القرآن الكريم"
},
{
"id": 22884,
"name": "المقرر على أبواب المحرر"
},
{
"id": 22885,
"name": "الحور العين"
},
{
"id": 22886,
"name": "نداء الريان في فقه الصوم وفضل رمضان"
},
{
"id": 22888,
"name": "مختصر كتاب الاعتصام"
},
{
"id": 22889,
"name": "صفات الله عز وجل الواردة في الكتاب والسنة"
},
{
"id": 22890,
"name": "المنتخب من كتب شيخ الإسلام"
},
{
"id": 22891,
"name": "التوسط والاقتصاد"
},
{
"id": 22892,
"name": "الشكوى والعتاب"
},
{
"id": 22895,
"name": "منع جواز المجاز في المنزل للتعبد والإعجاز"
},
{
"id": 22910,
"name": "غريب القرآن للسجستاني"
},
{
"id": 22912,
"name": "الصحيح المسبور من التفسير بالمأثور"
},
{
"id": 22915,
"name": "التفسير المنير - الزحيلي",
"q": "Q120758558"
},
{
"id": 22916,
"name": "الجدول في إعراب القرآن"
},
{
"id": 22918,
"name": "أضواء البيان في إيضاح القرآن بالقرآن - ط الفكر",
"pre": "أضواء البيان في إيضاح القرآن بالقرآن",
"suf": "ط الفكر",
"q": "Q115756274"
},
{
"id": 22921,
"name": "إبطال التأويلات - ط إيلاف",
"pre": "إبطال التأويلات",
"suf": "ط إيلاف"
},
{
"id": 22922,
"name": "مختصر معارج القبول"
},
{
"id": 22928,
"name": "التبيان في إعراب القرآن",
"q": "Q125898908"
},
{
"id": 22934,
"name": "شرح العقيدة الواسطية - الهراس"
},
{
"id": 23001,
"name": "شرح العقيدة الطحاوية - البراك - ط المؤسسة",
"pre": "شرح العقيدة الطحاوية - البراك"
},
{
"id": 23018,
"name": "الكتاب لسيبويه",
"q": "Q125908221"
},
{
"id": 23023,
"name": "تبيين الحقائق شرح كنز الدقائق وحاشية الشلبي"
},
{
"id": 23077,
"name": "عقود الزبرجد على مسند الإمام أحمد - مجلة الجامعة الإسلامية"
},
{
"id": 23082,
"name": "نظام الإثبات في الفقه الإسلامي"
},
{
"id": 23087,
"name": "موقف الخميني من الشيعة والتشيع"
},
{
"id": 23088,
"name": "شرح العقيدة الطحاوية - البراك - ط التدمرية",
"pre": "شرح العقيدة الطحاوية - البراك"
},
{
"id": 23100,
"name": "معجم الصحابة للبغوي"
},
{
"id": 23101,
"name": "مسند ابن المبارك"
},
{
"id": 23102,
"name": "الدعاء - الضبي"
},
{
"id": 23103,
"name": "دليل الداعية"
},
{
"id": 23118,
"name": "نسخة وكيع عن الأعمش",
"q": "Q135298990"
},
{
"id": 23119,
"name": "دار الطراز في عمل الموشحات"
},
{
"id": 23120,
"name": "التلمود تاريخه وتعاليمه"
},
{
"id": 23137,
"name": "المعجزة الكبرى القرآن"
},
{
"id": 23138,
"name": "الشعر في خراسان من الفتح إلى نهاية العصر الأموي"
},
{
"id": 23139,
"name": "أدب الطفولة بين القرآن الكريم والسنة الشريفة"
},
{
"id": 23140,
"name": "شرحان على مراح الأرواح في علم الصرف"
},
{
"id": 23141,
"name": "البحث الأدبي بين النظر والتطبيق"
},
{
"id": 23142,
"name": "التصوير القرآني للقيم الخلقية والتشريعية"
},
{
"id": 23143,
"name": "التصوير النبوي للقيم الخلقية والتشريعية في الحديث الشريف"
},
{
"id": 23144,
"name": "القرآن وعلوم الأرض"
},
{
"id": 23156,
"name": "المنهل الصافي والمستوفى بعد الوافي",
"q": "Q121076648"
},
{
"id": 23163,
"name": "أداء ما وجب من بيان وضع الوضاعين في رجب",
"q": "Q127328024"
},
{
"id": 23177,
"name": "المقاصد الحسنة في بيان كثير من الأحاديث المشتهرة على الألسنة - ت الخشت",
"pre": "المقاصد الحسنة"
},
{
"id": 23193,
"name": "مختار الصحاح",
"q": "Q133567470"
},
{
"id": 23235,
"name": "الصحاح تاج اللغة وصحاح العربية",
"q": "Q136804563"
},
{
"id": 23307,
"name": "المستشرقون والتراث"
},
{
"id": 23358,
"name": "شمس العلوم ودواء كلام العرب من الكلوم",
"q": "Q136804890"
},
{
"id": 23415,
"name": "ميلاد مجتمع"
},
{
"id": 23427,
"name": "الشوارد = ما تفرد به بعض أئمة اللغة"
},
{
"id": 23578,
"name": "تفسير الثعلبي = الكشف والبيان عن تفسير القرآن",
"q": "Q120645546"
},
{
"id": 23579,
"name": "أحكام القرآن للجصاص ت قمحاوي",
"q": "Q127327431"
},
{
"id": 23582,
"name": "أحكام القرآن للكيا الهراسي",
"q": "Q116877960"
},
{
"id": 23584,
"name": "إعراب القرآن للدعاس",
"q": "Q115640158"
},
{
"id": 23585,
"name": "إعراب القرآن للباقولي - منسوب خطأ للزجاج"
},
{
"id": 23586,
"name": "ظاهرة الإرجاء في الفكر الإسلامي"
},
{
"id": 23587,
"name": "إعراب القرآن للنحاس",
"q": "Q115779959"
},
{
"id": 23588,
"name": "تفسير البيضاوي = أنوار التنزيل وأسرار التأويل",
"q": "Q120476153"
},
{
"id": 23589,
"name": "التفسير الواضح"
},
{
"id": 23590,
"name": "التفسير الوسيط لطنطاوي",
"q": "Q120484142"
},
{
"id": 23591,
"name": "البحر المحيط في التفسير - ط الفكر",
"pre": "البحر المحيط في التفسير"
},
{
"id": 23593,
"name": "إيجاز البيان عن معاني القرآن"
},
{
"id": 23594,
"name": "تفسير السمرقندي = بحر العلوم"
},
{
"id": 23595,
"name": "بيان المعاني"
},
{
"id": 23596,
"name": "تأويل مشكل القرآن"
},
{
"id": 23598,
"name": "التبيان في تفسير غريب القرآن"
},
{
"id": 23599,
"name": "تفسير آيات الأحكام - السايس"
},
{
"id": 23600,
"name": "تفسير التستري - ط العلمية",
"pre": "تفسير التستري"
},
{
"id": 23603,
"name": "التفسير الحديث"
},
{
"id": 23604,
"name": "تفسير ابن كثير - ط العلمية",
"q": "Q115701544"
},
{
"id": 23606,
"name": "التفسير القيم = تفسير القرآن الكريم لابن القيم"
},
{
"id": 23607,
"name": "التفسير القرآني للقرآن"
},
{
"id": 23608,
"name": "تفسير المراغي"
},
{
"id": 23610,
"name": "الموسوعة القرآنية"
},
{
"id": 23611,
"name": "المدخل المفصل إلى فقه الإمام أحمد وتخريجات الأصحاب",
"q": "Q125915731"
},
{
"id": 23612,
"name": "روح البيان"
},
{
"id": 23613,
"name": "تفسير النيسابوري = غرائب القرآن ورغائب الفرقان"
},
{
"id": 23614,
"name": "تفسير مقاتل بن سليمان",
"q": "Q120489862"
},
{
"id": 23618,
"name": "تفسير الثعالبي = الجواهر الحسان في تفسير القرآن",
"q": "Q125915759"
},
{
"id": 23619,
"name": "زاد المسير في علم التفسير"
},
{
"id": 23621,
"name": "غريب القرآن لابن قتيبة ت سعيد اللحام",
"pre": "«غريب القرآن» لابن قتيبة"
},
{
"id": 23622,
"name": "مسائل نافع بن الأزرق = غريب القرآن في شعر العرب"
},
{
"id": 23623,
"name": "فتح القدير للشوكاني",
"q": "Q117742808"
},
{
"id": 23624,
"name": "الفواتح الإلهية والمفاتح الغيبية"
},
{
"id": 23625,
"name": "الفتوحات الربانية على الأذكار النواوية"
},
{
"id": 23626,
"name": "تفسير ابن جزي التسهيل لعلوم التنزيل"
},
{
"id": 23627,
"name": "تفسير الزمخشري الكشاف عن حقائق غوامض التنزيل",
"q": "Q121084688"
},
{
"id": 23627,
"name": "تفسير الكشاف - ومعه الانتصاف ومشاهد الإنصاف والكافي الشاف",
"q": "Q121084688"
},
{
"id": 23628,
"name": "تفسير الخازن لباب التأويل في معاني التنزيل"
},
{
"id": 23629,
"name": "لطائف الإشارات = تفسير القشيري",
"q": "Q136508880"
},
{
"id": 23630,
"name": "مجاز القرآن",
"q": "Q120998341"
},
{
"id": 23631,
"name": "تفسير القاسمي محاسن التأويل",
"q": "Q136504892"
},
{
"id": 23632,
"name": "تفسير ابن عطية = المحرر الوجيز في تفسير الكتاب العزيز",
"q": "Q116984845"
},
{
"id": 23634,
"name": "معاني القرآن للفراء"
},
{
"id": 23635,
"name": "تفسير الرازي = مفاتيح الغيب أو التفسير الكبير",
"q": "Q115728260"
},
{
"id": 23636,
"name": "المفردات في غريب القرآن",
"q": "Q125516517"
},
{
"id": 23640,
"name": "التذكرة في علوم الحديث لابن الملقن"
},
{
"id": 23644,
"name": "مرآة الزمان في تواريخ الأعيان",
"q": "Q117215115"
},
{
"id": 23645,
"name": "الشفا بتعريف حقوق المصطفى - محذوف الأسانيد"
},
{
"id": 23646,
"name": "شمائل الرسول صلى الله عليه وآله وسلم"
},
{
"id": 23647,
"name": "الشمائل المحمدية للترمذي - ط إحياء التراث"
},
{
"id": 23649,
"name": "الطب النبوي لابن القيم"
},
{
"id": 23652,
"name": "العمدة في إعراب البردة قصيدة البوصيري"
},
{
"id": 23653,
"name": "عيون الأثر",
"q": "Q125193553"
},
{
"id": 23654,
"name": "غزوات النبي"
},
{
"id": 23657,
"name": "فقه السيرة النبوية مع موجز لتاريخ الخلافة الراشدة",
"q": "Q124474868"
},
{
"id": 23659,
"name": "فقه السيرة للغزالي"
},
{
"id": 23660,
"name": "ألفية السيرة النبوية - نظم الدرر السنية الزكية",
"q": "Q124535798"
},
{
"id": 23661,
"name": "القصيدة الوردية في سيرة خير البرية"
},
{
"id": 23667,
"name": "مجموعة الوثائق السياسية للعهد النبوي والخلافة الراشدة"
},
{
"id": 23668,
"name": "محمد صلى الله عليه وآله وسلم في الكتب المقدسة"
},
{
"id": 23669,
"name": "محمد صلى الله عليه وآله وسلم في مكة"
},
{
"id": 23670,
"name": "مختارات من أجمل الشعر في مدح الرسول"
},
{
"id": 23671,
"name": "المدائح النبوية حتى نهاية العصر الملوكي"
},
{
"id": 23672,
"name": "المدائح النبوية في أدب القرنين السادس والسابع للهجرة"
},
{
"id": 23674,
"name": "المستشرقون والسيرة النبوية"
},
{
"id": 23675,
"name": "مستعذب الإخبار بأطيب الأخبار"
},
{
"id": 23677,
"name": "المعالم الأثيرة في السنة والسيرة",
"q": "Q135657717"
},
{
"id": 23678,
"name": "معجزات النبي من البداية والنهاية - ت السيد إبراهيم"
},
{
"id": 23679,
"name": "معجم أعلام شعراء المدح النبوي",
"q": "Q121253437"
},
{
"id": 23680,
"name": "مغازي الواقدي",
"q": "Q121077364"
},
{
"id": 23683,
"name": "منتهى السؤل على وسائل الوصول إلى شمائل الرسول",
"q": "Q125474503"
},
{
"id": 23683,
"name": "منتهى السؤل على وسائل الوصول إلى شمائل الرسول (ص)",
"q": "Q125474503"
},
{
"id": 23684,
"name": "مواقف حلف فيها النبي صلى الله عليه وآله وسلم"
},
{
"id": 23685,
"name": "المواهب اللدنية بالمنح المحمدية",
"q": "Q121084970"
},
{
"id": 23686,
"name": "موسوعة الطير والحيوان في الحديث النبوي"
},
{
"id": 23687,
"name": "نساء النبي"
},
{
"id": 23688,
"name": "التراتيب الإدارية = نظام الحكومة النبوية"
},
{
"id": 23691,
"name": "النهاية في غريب الحديث والأثر",
"q": "Q136804723"
},
{
"id": 23692,
"name": "نور اليقين في سيرة سيد المرسلين"
},
{
"id": 23694,
"name": "وسائل الوصول إلى شمائل الرسول صلى الله عليه وآله وسلم"
},
{
"id": 23695,
"name": "وفاء الوفاء بأخبار دار المصطفى",
"q": "Q124614086"
},
{
"id": 23696,
"name": "أحسن التقاسيم في معرفة الأقاليم",
"q": "Q125915954"
},
{
"id": 23700,
"name": "أسد الغابة في معرفة الصحابة - ط الفكر",
"pre": "أسد الغابة في معرفة الصحابة",
"q": "Q117326687"
},
{
"id": 23700,
"name": "أسد الغابة في معرفة الصحابة ط الفكر",
"q": "Q117326687"
},
{
"id": 23708,
"name": "البداية والنهاية - ط السعادة",
"pre": "البداية والنهاية",
"q": "Q114679727"
},
{
"id": 23708,
"name": "البداية والنهاية ط السعادة",
"q": "Q114679727"
},
{
"id": 23718,
"name": "التنبيه والإشراف",
"q": "Q121011034"
},
{
"id": 23735,
"name": "معجم البلدان",
"q": "Q114913343"
},
{
"id": 23741,
"name": "الإعجاز والإيجاز",
"q": "Q125516721"
},
{
"id": 23764,
"name": "تاريخ بغداد - ط العلمية",
"pre": "تاريخ بغداد",
"suf": "ط العلمية",
"q": "Q120763443"
},
{
"id": 23764,
"name": "تاريخ بغداد وذيوله ط العلمية",
"q": "Q120763443"
},
{
"id": 23775,
"name": "الحيوان",
"q": "Q121260830"
},
{
"id": 23785,
"name": "الشعر والشعراء",
"q": "Q121077529"
},
{
"id": 23787,
"name": "الصناعتين: الكتابة والشعر"
},
{
"id": 23788,
"name": "الطراز لأسرار البلاغة وعلوم حقائق الإعجاز"
},
{
"id": 23789,
"name": "العقد الفريد",
"q": "Q120648618"
},
{
"id": 23790,
"name": "عيون الأخبار",
"q": "Q125491032"
},
{
"id": 23794,
"name": "المثل السائر في أدب الكاتب والشاعر ت محيي الدين عبد الحميد"
},
{
"id": 23798,
"name": "النكت الوفية بما في شرح الألفية"
},
{
"id": 23799,
"name": "مقدمة ابن الصلاح معرفة أنواع علم الحديث - ت الفحل والهميم"
},
{
"id": 23802,
"name": "المستطرف في كل فن مستظرف",
"q": "Q125472840"
},
{
"id": 23833,
"name": "سيرة ابن هشام - ت السقا",
"q": "Q120885568"
},
{
"id": 23833,
"name": "سيرة ابن هشام - ت السقا ورفاقه",
"q": "Q120885568"
},
{
"id": 23833,
"name": "سيرة ابن هشام ت السقا",
"q": "Q120885568"
},
{
"id": 23849,
"name": "المسالك والممالك للبكري",
"q": "Q120885797"
},
{
"id": 24229,
"name": "مجلس أبي نصر الغازي"
},
{
"id": 24831,
"name": "مشيخة ابن طهمان"
},
{
"id": 25011,
"name": "أحسن ما سمعت"
},
{
"id": 25782,
"name": "الأمالي في آثار الصحابة لعبد الرزاق الصنعاني"
},
{
"id": 25783,
"name": "جزء الحسن بن موسى الأشيب"
},
{
"id": 25787,
"name": "التبصرة في أصول الفقه"
},
{
"id": 25791,
"name": "غذاء الألباب في شرح منظومة الآداب",
"q": "Q125499283"
},
{
"id": 25793,
"name": "الأشربة وذكر اختلاف الناس فيها لابن قتيبة",
"q": "Q137781363"
},
{
"id": 25794,
"name": "مسند أحمد - ط الرسالة",
"pre": "مسند أحمد",
"suf": "ط الرسالة",
"q": "Q115484580"
},
{
"id": 25800,
"name": "جامع الأصول",
"q": "Q120762925"
},
{
"id": 25803,
"name": "أحوال الرجال"
},
{
"id": 25815,
"name": "أبو بكر الصديق أفضل الصحابة وأحقهم بالخلافة",
"q": "Q124300771"
},
{
"id": 25815,
"name": "أبو بكر الصديق أفضل الصحابة، وأحقهم بالخلافة",
"q": "Q124300771"
},
{
"id": 25837,
"name": "المعاني الكبير في أبيات المعاني"
},
{
"id": 25841,
"name": "العبر في خبر من غبر - وذيوله ت زغلول",
"q": "Q121011063"
},
{
"id": 25846,
"name": "المختلطين للعلائي"
},
{
"id": 25864,
"name": "جامع التحصيل في أحكام المراسيل",
"q": "Q123414958"
},
{
"id": 25868,
"name": "ذكر المدلسين"
},
{
"id": 25873,
"name": "سؤالات الاثرم لأحمد بن حنبل"
},
{
"id": 25881,
"name": "صحيح سنن أبي داود ط غراس"
},
{
"id": 25946,
"name": "مشيخة النسائي = تسمية الشيوخ"
},
{
"id": 25950,
"name": "المنهيات"
},
{
"id": 26001,
"name": "إنباء الغمر بأبناء العمر - ط الهندية",
"pre": "إنباء الغمر بأبناء العمر"
},
{
"id": 26006,
"name": "الاختلاط بين الرجال والنساء"
},
{
"id": 26033,
"name": "صلة الخلف بموصول السلف",
"q": "Q118220498"
},
{
"id": 26039,
"name": "مسند الفاروق لابن كثير ت قلعجي"
},
{
"id": 26075,
"name": "المنتخب من علل الخلال"
},
{
"id": 26094,
"name": "الهداية على مذهب الإمام أحمد"
},
{
"id": 26097,
"name": "المهذب فيما وقع في القرآن من المعرب",
"q": "Q125916031"
},
{
"id": 26099,
"name": "الجنى الداني في حروف المعاني"
},
{
"id": 26102,
"name": "الموشى = الظرف والظرفاء",
"q": "Q134476371"
},
{
"id": 26106,
"name": "تحفة الأمراء في تاريخ الوزراء"
},
{
"id": 26108,
"name": "تحفة القادم"
},
{
"id": 26111,
"name": "المتكلمون في الرجال"
},
{
"id": 26112,
"name": "ذكر من يعتمد قوله في الجرح والتعديل"
},
{
"id": 26113,
"name": "قاعدة في الجرح والتعديل"
},
{
"id": 26114,
"name": "قاعدة في المؤرخين"
},
{
"id": 26140,
"name": "الحجة في القراءات السبع"
},
{
"id": 26141,
"name": "الحكم الجديرة بالإذاعة - ت الأرنؤوط",
"pre": "الحكم الجديرة بالإذاعة",
"suf": "ت الأرنؤوط"
},
{
"id": 26142,
"name": "أحكام العيدين"
},
{
"id": 26183,
"name": "الموازنة بين شعر أبي تمام والبحتري"
},
{
"id": 26209,
"name": "سؤالات السلفي لخميس الحوزي"
},
{
"id": 26217,
"name": "الشورى في الشريعة الإسلامية"
},
{
"id": 26230,
"name": "مسائل ابن أبي شيبة عن شيوخه"
},
{
"id": 26237,
"name": "تعليق من أمالي ابن دريد"
},
{
"id": 26317,
"name": "إنباء الغمر بأبناء العمر - ت حبشي",
"pre": "إنباء الغمر بأبناء العمر"
},
{
"id": 26324,
"name": "إتحاف المهرة بالفوائد المبتكرة من أطراف العشرة",
"q": "Q113622182"
},
{
"id": 26324,
"name": "إتحاف المهرة لابن حجر",
"q": "Q113622182"
},
{
"id": 26333,
"name": "الخراج لأبي يوسف"
},
{
"id": 26336,
"name": "إخبار العلماء بأخبار الحكماء"
},
{
"id": 26337,
"name": "حديث سفيان بن عيينة رواية المروزي"
},
{
"id": 26338,
"name": "أخبار النحويين البصريين - السيرافي"
},
{
"id": 26339,
"name": "منتقى حديث أبي الحسن العبدويي"
},
{
"id": 26341,
"name": "نسخة طالوت بن عباد"
},
{
"id": 26343,
"name": "أخبار ابن أبي ذئب لابن زبر الربعي"
},
{
"id": 26345,
"name": "جزء ابن الجلابي"
},
{
"id": 26349,
"name": "أدب الكاتب = أدب الكتاب لابن قتيبة"
},
{
"id": 26350,
"name": "أزهار الرياض في أخبار القاضي عياض"
},
{
"id": 26351,
"name": "التبصرة لابن الجوزي"
},
{
"id": 26353,
"name": "حديث أبي سعيد الأشج"
},
{
"id": 26356,
"name": "العزلة والانفراد"
},
{
"id": 26359,
"name": "حديث ابن مخلد عن ابن كرامة وغيره"
},
{
"id": 26365,
"name": "عوالي مالك رواية أبي أحمد الحاكم"
},
{
"id": 26366,
"name": "عوالي مالك رواية أبي اليمن الكندي"
},
{
"id": 26370,
"name": "عوالي مالك رواية عمر بن الحاجب"
},
{
"id": 26373,
"name": "صلاة التسبيح للخطيب"
},
{
"id": 26378,
"name": "موجبات الجنة لابن الفاخر"
},
{
"id": 26382,
"name": "العبرات للمنفلوطي"
},
{
"id": 26383,
"name": "تاريخ الرقة"
},
{
"id": 26385,
"name": "معجم المناهي اللفظية"
},
{
"id": 26389,
"name": "معجم الشيوخ للسبكي"
},
{
"id": 26390,
"name": "أخبار الصلاة لعبد الغني المقدسي",
"q": "Q124616123"
},
{
"id": 26395,
"name": "جزء الغضائري"
},
{
"id": 26421,
"name": "الاعتقاد القادري"
},
{
"id": 26423,
"name": "البصائر والذخائر"
},
{
"id": 26424,
"name": "أمالي المحاملي رواية ابن الصلت"
},
{
"id": 26425,
"name": "أمالي المحاملي رواية ابن مهدي الفارسي"
},
{
"id": 26426,
"name": "الآثار المروية في الأطعمة السرية لابن بشكوال"
},
{
"id": 26428,
"name": "نزهة الناظر في ذكر من حدث عن البغوي"
},
{
"id": 26429,
"name": "الطب النبوي لأبي نعيم الأصفهاني"
},
{
"id": 26430,
"name": "صفة النبي لمحمد بن هارون"
},
{
"id": 26432,
"name": "مشيخة النعال"
},
{
"id": 26435,
"name": "تفسير إن إبراهيم كان أمة لابن طولون"
},
{
"id": 26437,
"name": "وفيات جماعة من المحدثين لأبي مسعود الحاجي"
},
{
"id": 26440,
"name": "مسند حديث مالك لإسماعيل القاضي"
},
{
"id": 26441,
"name": "أربعون حديثا من مسند بريد للدارقطني"
},
{
"id": 26443,
"name": "ما رواه الأكابر عن الأصاغر لأبي بكر الباغندي"
},
{
"id": 26449,
"name": "مسند عابس الغفاري لابن أبي غرزة"
},
{
"id": 26450,
"name": "فوائد عبد الغني بن سعيد الأزدي"
},
{
"id": 26452,
"name": "الرد على من يقول الم حرف لابن منده"
},
{
"id": 26456,
"name": "مناقب علي لابن المغازلي"
},
{
"id": 26458,
"name": "التحديد في الإتقان والتجويد لأبي عمرو الداني"
},
{
"id": 26460,
"name": "الاختلاف في اللفظ والرد على الجهمية لابن قتيبة"
},
{
"id": 26461,
"name": "المكتفى في الوقف والابتدا لأبي عمرو الداني"
},
{
"id": 26462,
"name": "أحاديث في ذم الكلام وأهله",
"q": "Q124615761"
},
{
"id": 26463,
"name": "الغنية في شيوخ القاضي عياض"
},
{
"id": 26464,
"name": "التبصير في معالم الدين للطبري"
},
{
"id": 26465,
"name": "التوبة لابن عساكر"
},
{
"id": 26467,
"name": "ذم ذي الوجهين واللسانين لابن عساكر"
},
{
"id": 26468,
"name": "فضل شهر رمضان لابن عساكر"
},
{
"id": 26469,
"name": "فضل يوم عرفة لابن عساكر"
},
{
"id": 26470,
"name": "جزء فيه تفسير القرآن برواية أبي جعفر الترمذي"
},
{
"id": 26471,
"name": "المشيخة البغدادية - الأموي - ت عامر صبري"
},
{
"id": 26473,
"name": "مشيخة السهروردي"
},
{
"id": 26474,
"name": "جزء فيه ما انتقى ابن مردويه على الطبراني"
},
{
"id": 26481,
"name": "ما قرب سنده من حديث أبي القاسم السمرقندي"
},
{
"id": 26484,
"name": "الجوهرة في نسب النبي وأصحابه العشرة",
"q": "Q114811856"
},
{
"id": 26487,
"name": "الأربعون للبكري"
},
{
"id": 26488,
"name": "الفرائض للثوري"
},
{
"id": 26489,
"name": "الديباج للختلي"
},
{
"id": 26490,
"name": "الأربعون للمؤيد بن محمد الطوسي"
},
{
"id": 26495,
"name": "مشيخة محيي الدين اليونيني"
},
{
"id": 26497,
"name": "مجلسان من الأمالي أحدهما في صفات الله لابن مردويه"
},
{
"id": 26500,
"name": "المنتخب من غرائب مالك لابن المقرئ"
},
{
"id": 26501,
"name": "ذم من لا يعمل بعلمه لابن عساكر"
},
{
"id": 26504,
"name": "أحاديث منتقاة من جزء ابن الفرات انتقاء العلائي"
},
{
"id": 26505,
"name": "الفوائد والأخبار لابن حمكان"
},
{
"id": 26507,
"name": "الغوامض والمبهمات لعبد الغني بن سعيد"
},
{
"id": 26510,
"name": "الخطب والمواعظ - أبو عبيد"
},
{
"id": 26514,
"name": "الخامس من الأفراد لابن شاهين"
},
{
"id": 26517,
"name": "جزء من حديث ابن شاهين رواية ابن المهتدي"
},
{
"id": 26520,
"name": "تحرير التحبير في صناعة الشعر والنثر"
},
{
"id": 26525,
"name": "جمهرة نسب قريش وأخبارها",
"q": "Q120763272"
},
{
"id": 26527,
"name": "فضائل الشام ودمشق لأبي الحسن الربعي"
},
{
"id": 26533,
"name": "فوائد أبي القاسم الحرفي رواية الثقفي"
},
{
"id": 26535,
"name": "شرح المقدمة الحضرمية المسمى بشرى الكريم بشرح مسائل التعليم"
},
{
"id": 26536,
"name": "شرح ديوان الحماسة",
"q": "Q133820230"
},
{
"id": 26537,
"name": "كليلة ودمنة",
"q": "Q120985114"
},
{
"id": 26538,
"name": "محك النظر"
},
{
"id": 26539,
"name": "تراث أبي الحسن الحرالي المراكشي"
},
{
"id": 26540,
"name": "مختلف القبائل ومؤتلفها"
},
{
"id": 26541,
"name": "مسبوك الذهب في فضل العرب وشرف العلم على شرف النسب"
},
{
"id": 26542,
"name": "المشيخة الكبرى - قاضي المارستان"
},
{
"id": 26545,
"name": "منتقى حديث أبي نعيم الأزهري"
},
{
"id": 26548,
"name": "من حديث سفيان الثوري - ت عامر صبري"
},
{
"id": 26549,
"name": "مصارع العشاق",
"q": "Q121257308"
},
{
"id": 26550,
"name": "سنن أبي بكر الأثرم"
},
{
"id": 26551,
"name": "مطلع البدرين فيمن يؤتى أجره مرتين"
},
{
"id": 26552,
"name": "معجم الشعراء",
"q": "Q120998353"
},
{
"id": 26553,
"name": "جزء أبي حامد ابن بلال"
},
{
"id": 26554,
"name": "صفة النبي وأجزاء أخرى - الضياء المقدسي"
},
{
"id": 26556,
"name": "نسخة نبيط بن شريط"
},
{
"id": 26557,
"name": "أحاديث عوال من مسموعات ابن هامل"
},
{
"id": 26558,
"name": "أمالي عبد الغافر الفارسي"
},
{
"id": 26559,
"name": "حديث أبي الطيب الحوراني"
},
{
"id": 26560,
"name": "سلوك طريف السلف في مشايخ عبد الحق بن خلف"
},
{
"id": 26561,
"name": "عوالي هشام بن عروة وغيره لأبي الحجاج الدمشقي"
},
{
"id": 26562,
"name": "مجلسان من أمالي أبي الحسين بن بشران"
},
{
"id": 26563,
"name": "جزء أبي العباس العصمي"
},
{
"id": 26564,
"name": "جزء الحسن بن رشيق العسكري"
},
{
"id": 26565,
"name": "جزء فيه مصافحات مسلم النسائي للدمياطي"
},
{
"id": 26566,
"name": "فوائد الحنائي = الحنائيات"
},
{
"id": 26567,
"name": "أحاديث من المسند الصحيح لأبي حامد ابن الشرقي"
},
{
"id": 26568,
"name": "شرح الزرقاني على المواهب اللدنية بالمنح المحمدية",
"q": "Q116945020"
},
{
"id": 26569,
"name": "أشراط الساعة وذهاب الأخيار وبقاء الأشرار لعبد الملك بن حبيب"
},
{
"id": 26572,
"name": "العوالي لأبي الشيخ"
},
{
"id": 26574,
"name": "معجم قبائل المملكة العربية السعودية",
"q": "Q121010046"
},
{
"id": 26575,
"name": "معيار العلم في فن المنطق"
},
{
"id": 26576,
"name": "حديث محمد بن بشار بندار"
},
{
"id": 26577,
"name": "ذكر الأقران لأبي الشيخ"
},
{
"id": 26578,
"name": "مفاكهة الخلان في حوادث الزمان",
"q": "Q126336050"
},
{
"id": 26579,
"name": "ستة مجالس لأبي يعلى الفراء"
},
{
"id": 26581,
"name": "مفتاح العلوم"
},
{
"id": 26582,
"name": "مفحمات الأقران في مبهمات القرآن"
},
{
"id": 26583,
"name": "السنة في مواجهة الأباطيل"
},
{
"id": 26584,
"name": "فوائد أبي القاسم الحرفي رواية الأنصاري"
},
{
"id": 26585,
"name": "مقامات الحريري"
},
{
"id": 26586,
"name": "مقامات الزمخشري"
},
{
"id": 26588,
"name": "فوائد الكوفيين لأبي الغنائم النرسي"
},
{
"id": 26591,
"name": "مسألة التسمية لمحمد بن طاهر المقدسي"
},
{
"id": 26592,
"name": "مسند أبي هريرة لأبي إسحاق العسكري"
},
{
"id": 26595,
"name": "من روى عن النبي من الصحابة في الكبائر للبرديجي - ط أطلس"
},
{
"id": 26641,
"name": "خمسة أحاديث تخريج ابن بلبان"
},
{
"id": 26647,
"name": "الخراج ليحيى بن آدم"
},
{
"id": 26654,
"name": "عوالي مالك رواية زاهر بن طاهر الشحامي"
},
{
"id": 26655,
"name": "عوالي مالك رواية سليم الرازي"
},
{
"id": 26658,
"name": "منتقى من السفينة البغدادية للسلفي"
},
{
"id": 26660,
"name": "فضل التهليل وثوابه الجزيل لابن البناء"
},
{
"id": 26662,
"name": "الدرة الثمينة في أخبار المدينة - ط دار الأرقم",
"pre": "الدرة الثمينة في أخبار المدينة",
"suf": "ط دار الأرقم"
},
{
"id": 26664,
"name": "ناسخ الحديث ومنسوخه للأثرم"
},
{
"id": 26665,
"name": "الفوائد الحسان لابن النقور"
},
{
"id": 26668,
"name": "حديث السراج"
},
{
"id": 26669,
"name": "أحاديث السفر لأبي اليمن"
},
{
"id": 26670,
"name": "قصيدة السلفي"
},
{
"id": 26674,
"name": "مثير العزم الساكن إلى أشرف الأماكن ط الراية"
},
{
"id": 26675,
"name": "مأخذ العلم لابن فارس"
},
{
"id": 26676,
"name": "مجالس العلماء للزجاجي"
},
{
"id": 26677,
"name": "حفظ العمر لابن الجوزي"
},
{
"id": 26678,
"name": "تنبيه النائم الغمر على مواسم العمر - ط البشائر",
"pre": "تنبيه النائم الغمر على مواسم العمر",
"suf": "ط البشائر"
},
{
"id": 26680,
"name": "فوائد الفوائد لابن خزيمة"
},
{
"id": 26697,
"name": "السنة النبوية في مواجهة شبهات الاستشراق - أنور الجندي"
},
{
"id": 26707,
"name": "ذم الملاهي لابن عساكر"
},
{
"id": 26710,
"name": "مناقب النساء الصحابيات لعبد الغني المقدسي"
},
{
"id": 26713,
"name": "الرسالة الوافية لأبي عمرو الداني"
},
{
"id": 26716,
"name": "عوالي جزء ابن الفرات انتقاء الذهبي"
},
{
"id": 26719,
"name": "فضيلة ذكر الله لابن عساكر"
},
{
"id": 26722,
"name": "مشيخة شرف الدين اليونيني"
},
{
"id": 26723,
"name": "أحاديث شهر رمضان لأبي اليمن بن عساكر",
"q": "Q124616068"
},
{
"id": 26726,
"name": "الأربعون على الطبقات لعلي بن المفضل المقدسي"
},
{
"id": 26730,
"name": "فوائد أبي أحمد الحاكم"
},
{
"id": 26731,
"name": "مشيخة أبي بكر المراغي"
},
{
"id": 26733,
"name": "حديث أبي عبد الرحمن المقرئ - الضياء المقدسي"
},
{
"id": 26735,
"name": "فضل أم المؤمنين عائشة لابن عساكر"
},
{
"id": 26738,
"name": "مجلس من أمالي ابن الأنباري"
},
{
"id": 26740,
"name": "حديث ابن ديزيل"
},
{
"id": 26741,
"name": "جزء ابن فيل"
},
{
"id": 26742,
"name": "الأربعون الأبدال العوالي لابن عساكر"
},
{
"id": 26743,
"name": "الزيادات في كتاب الجود والسخاء للطبراني"
},
{
"id": 26745,
"name": "حديث مجاعة بن الزبير"
},
{
"id": 26746,
"name": "عروس الأجزاء"
},
{
"id": 26747,
"name": "حديث الإفك لعبد الغني المقدسي"
},
{
"id": 26750,
"name": "عوالي مالك رواية الخطيب"
},
{
"id": 26754,
"name": "عوالي مالك رواية هشام بن عمار"
},
{
"id": 26758,
"name": "أخبار الثقلاء للخلال"
},
{
"id": 26764,
"name": "إتحاف الزائر وإطراف المقيم للسائر لأبي اليمن ابن عساكر"
},
{
"id": 26768,
"name": "مناقب الشافعي للآبري",
"pre": "«مناقب الشافعي» للآبُري"
},
{
"id": 26776,
"name": "مسلسل العيدين للكتاني وللخطيب البغدادي"
},
{
"id": 26802,
"name": "مشيخة القزويني"
},
{
"id": 26803,
"name": "عمدة الكتاب لأبي جعفر النحاس"
},
{
"id": 26808,
"name": "أدب النساء لعبد الملك بن حبيب"
},
{
"id": 26813,
"name": "تاريخ دنيسر"
},
{
"id": 26816,
"name": "جزء سعدان"
},
{
"id": 26823,
"name": "الصلاة على النبي لابن أبي عاصم"
},
{
"id": 26842,
"name": "كتاب الأربعين في إرشاد السائرين إلى منازل المتقين أو الأربعين الطائية"
},
{
"id": 26844,
"name": "الرباعي في الحديث لعبد الغني بن سعيد"
},
{
"id": 26851,
"name": "حديث أهل حردان لابن عساكر"
},
{
"id": 26857,
"name": "مشيخة أبي المنجى ابن اللتي"
},
{
"id": 26861,
"name": "ذم قرناء السوء لابن عساكر"
},
{
"id": 26862,
"name": "الأربعون لأبي البركات النيسابوري"
},
{
"id": 26863,
"name": "التعازي لأبي الحسن المدائني"
},
{
"id": 26864,
"name": "الفتوة لأبي عبد الرحمن السلمي"
},
{
"id": 26865,
"name": "الجامع - ابن وهب - ت رفعت فوزي"
},
{
"id": 26866,
"name": "أخبار لحفظ القرآن لابن عساكر"
},
{
"id": 26871,
"name": "الإغراب للنسائي"
},
{
"id": 26872,
"name": "المحبة لله لأبي إسحاق الختلي"
},
{
"id": 26874,
"name": "حلم معاوية لابن أبي الدنيا"
},
{
"id": 26875,
"name": "منتقى من أخبار الأصمعي للربعي"
},
{
"id": 26876,
"name": "المنثور من الحكايات والسؤالات لابن طاهر المقدسي"
},
{
"id": 26877,
"name": "جزء من حديث الكلابي"
},
{
"id": 26878,
"name": "اللطائف من دقائق المعارف في علوم الحفاظ الأعارف"
},
{
"id": 26883,
"name": "الوقوف والترجل - من «الجامع» للخلال"
},
{
"id": 26884,
"name": "الترغيب والترهيب - إسماعيل الأصبهاني - ت شعبان",
"pre": "الترغيب والترهيب - إسماعيل الأصبهاني",
"q": "Q130595565"
},
{
"id": 26884,
"name": "الترغيب والترهيب - إسماعيل الأصفهاني - ت شعبان",
"pre": "الترغيب والترهيب - إسماعيل الأصبهاني",
"q": "Q130595565"
},
{
"id": 26886,
"name": "المنظوم والمنثور من الحديث"
},
{
"id": 26887,
"name": "الناسخ والمنسوخ وتنزيل القرآن - المنسوب للزهري"
},
{
"id": 26889,
"name": "أسامي مشايخ البخاري لابن مندة"
},
{
"id": 26890,
"name": "إثبات الشفاعة للذهبي",
"q": "Q116878022"
},
{
"id": 26891,
"name": "عوالي مسلم لابن حجر"
},
{
"id": 26892,
"name": "المقلق لابن الجوزي"
},
{
"id": 26893,
"name": "ترجمة مسلمة بن مخلد للمزي"
},
{
"id": 26894,
"name": "تعظيم الفتيا - ابن الجوزي"
},
{
"id": 26895,
"name": "الكنى لمن لا يعرف له اسم للأزدي"
},
{
"id": 26906,
"name": "انتخاب كتاب من وافقت كنيته اسم أبيه للخطيب"
},
{
"id": 26918,
"name": "ذكر اسم كل صحابي ممن لا أخ له يوافق اسمه للأزدي"
},
{
"id": 26919,
"name": "من وافق اسمه اسم أبيه للأزدي"
},
{
"id": 26920,
"name": "من وافق اسمه كنية أبيه للأزدي"
},
{
"id": 26921,
"name": "المزكيات"
},
{
"id": 26922,
"name": "الحج للماجشون"
},
{
"id": 26923,
"name": "الحج مما ليس في المدونة للعتبي"
},
{
"id": 26924,
"name": "الكلام على وصول القراءة للميت لابن سرور المقدسي"
},
{
"id": 26925,
"name": "نفحات النسمات في وصول إهداء الثواب للأموات",
"pre": "«نفحات النسمات في وصول إهداء الثواب للأموات» - ضمن مجموع في إهداء ثواب قراءة القرآن"
},
{
"id": 26926,
"name": "هدية الأحياء إلى الأموات وما يصل إليهم للهكاري"
},
{
"id": 26929,
"name": "أمهات النبي لابن حبيب",
"q": "Q124393879"
},
{
"id": 26961,
"name": "التعليق الرشيق في التختم بالعقيق للناجي"
},
{
"id": 26985,
"name": "الأحاديث العيدية المسلسلة للسلفي"
},
{
"id": 26986,
"name": "الفوائد والأخبار لابن دريد"
},
{
"id": 26988,
"name": "الفرق بين الضاد والظاء فى كتاب الله عز وجل وفى المشهور من الكلام"
},
{
"id": 27083,
"name": "غيث النفع في القراءات السبع",
"q": "Q120493727"
},
{
"id": 27084,
"name": "طبقات المفسرين للداوودي",
"q": "Q121011102"
},
{
"id": 27085,
"name": "جزء يشتمل على ثمانية وخمسين حديثا"
},
{
"id": 27086,
"name": "حديث السكن بن جميع"
},
{
"id": 27087,
"name": "حديث السلفي عن الأبهريين"
},
{
"id": 27088,
"name": "ختم كتاب الشفا لابن ناصر الدين"
},
{
"id": 27089,
"name": "رسالة البيهقي للجويني"
},
{
"id": 27090,
"name": "رسالة فيمن يدعي أن من ذرية العباس حمزة الخلف للناجي"
},
{
"id": 27091,
"name": "شروط النصارى لابن زبر الربعي"
},
{
"id": 27092,
"name": "جزء فيه شروط عمر بن الخطاب على النصارى، وحديث واصل الدمشقي ومناظرته لهم"
},
{
"id": 27093,
"name": "عقلاء المجانين للضراب"
},
{
"id": 27094,
"name": "علة الحديث المسلسل في يوم العيدين لأبي محمد الجرجاني"
},
{
"id": 27095,
"name": "فضائل القرآن - الضياء المقدسي"
},
{
"id": 27096,
"name": "فضل الجهاد لأحمد بن عبد الواحد المقدسي"
},
{
"id": 27097,
"name": "فضل يوم عرفة لأبي بكر الوراق"
},
{
"id": 27098,
"name": "فوائد ابن الصلت وأبي أحمد الفرضي"
},
{
"id": 27099,
"name": "فوائد ابن بجير"
},
{
"id": 27100,
"name": "مجلس في التواضع للجوهري"
},
{
"id": 27101,
"name": "مجلس من حديث ابن العطار"
},
{
"id": 27102,
"name": "مسلسل العيدين للصيرفي"
},
{
"id": 27103,
"name": "مشيخة ابن إمام الصخرة"
},
{
"id": 27104,
"name": "مشيخة أبي حفص المراغي"
},
{
"id": 27105,
"name": "منتخب من كتاب الشعراء لأبي نعيم الأصبهاني"
},
{
"id": 27106,
"name": "وفاة الشيوخ الذين أدركهم البغوي"
},
{
"id": 27112,
"name": "ديوان امرئ القيس ت المصطاوي"
},
{
"id": 28040,
"name": "السنة ومكانتها من التشريع لعبد الحليم محمود"
},
{
"id": 28107,
"name": "موطأ مالك - رواية يحيى - ت الأعظمي",
"pre": "موطأ مالك - رواية يحيى",
"suf": "ت الأعظمي"
},
{
"id": 28112,
"name": "مقامات السيوطي"
},
{
"id": 28113,
"name": "مقامات بديع الزمان الهمذاني"
},
{
"id": 28114,
"name": "مكفرات الذنوب وموجبات الجنة"
},
{
"id": 28115,
"name": "من غاب عنه المطرب"
},
{
"id": 28168,
"name": "نزهة المجالس ومنتخب النفائس"
},
{
"id": 28170,
"name": "نسب عدنان وقحطان"
},
{
"id": 28171,
"name": "المعجم الأوسط للطبراني"
},
{
"id": 28172,
"name": "نسب معد واليمن الكبير",
"pre": "نسب معد واليمن الكبير",
"q": "Q120648837"
},
{
"id": 28173,
"name": "نشوة السكران من صهباء تذكار الغزلان"
},
{
"id": 28174,
"name": "نشوة الطرب في تاريخ جاهلية العرب",
"q": "Q120999286"
},
{
"id": 28175,
"name": "نفح الأزهار في منتخبات الأشعار"
},
{
"id": 28181,
"name": "نقد الشعر"
},
{
"id": 28182,
"name": "نكث الهميان في نكت العميان",
"q": "Q137585253"
},
{
"id": 28183,
"name": "هواتف الجنان للخرائطي"
},
{
"id": 28237,
"name": "الهواتف = هواتف الجنان لابن أبي الدنيا"
},
{
"id": 28740,
"name": "معجم أصحاب القاضي أبي علي الصدفي"
},
{
"id": 29031,
"name": "هذا نبيك يا ولدي"
},
{
"id": 29289,
"name": "الزهد للمعافى بن عمران الموصلي"
},
{
"id": 29344,
"name": "السير لأبي إسحاق الفزاري"
},
{
"id": 29511,
"name": "معجم اللغة العربية المعاصرة",
"q": "Q134083855"
},
{
"id": 29555,
"name": "الانتصار لسيبويه على المبرد"
},
{
"id": 29558,
"name": "فتح ذي الجلال والإكرام بشرح بلوغ المرام ط المكتبة الإسلامية"
},
{
"id": 29559,
"name": "السبيكة الذهبية على المنظومة الرحبية - ضمن رسالتان في الفرائض"
},
{
"id": 29560,
"name": "قلادة النحر في وفيات أعيان الدهر"
},
{
"id": 29561,
"name": "الحجج القاطعة في المواريث الواقعة - ضمن رسالتان في الفرائض"
},
{
"id": 29566,
"name": "العين حق"
},
{
"id": 29570,
"name": "الغرر النقية على الدرر البهية"
},
{
"id": 29574,
"name": "تفسير سورة الفاتحة لابن رجب"
},
{
"id": 29575,
"name": "ذكر معاني أبنية الأسماء الموجودة في المفصل"
},
{
"id": 29577,
"name": "كلمات السداد على متن الزاد"
},
{
"id": 29591,
"name": "اللامع العزيزي شرح ديوان المتنبي"
},
{
"id": 29596,
"name": "شرح طيبة النشر لابن الجزري"
},
{
"id": 29600,
"name": "شرح درة الغواص للشهاب الخفاجي"
},
{
"id": 29601,
"name": "الحواشي على درة الغواص لابن بري وابن ظفر"
},
{
"id": 29604,
"name": "التكملة والذيل على درة الغواص = التكملة فيما يلحن فيه العامة"
},
{
"id": 29605,
"name": "الملاحن"
},
{
"id": 29613,
"name": "معجم متن اللغة",
"q": "Q120998984"
},
{
"id": 29675,
"name": "الصبر مطية النجاح"
},
{
"id": 29677,
"name": "العواصم والقواصم في الذب عن سنة أبي القاسم"
},
{
"id": 29710,
"name": "أذكار وآداب الصباح والمساء"
},
{
"id": 29719,
"name": "المدخل لدراسة القرآن الكريم"
},
{
"id": 29723,
"name": "تاريخ العرب وحضارتهم في الأندلس",
"q": "Q121258394"
},
{
"id": 29729,
"name": "الألغاز النحوية = الطراز في الألغاز"
},
{
"id": 29736,
"name": "آيات عتاب المصطفى في ضوء العصمة والإجتهاد"
},
{
"id": 29741,
"name": "معجم شيوخ الطبري"
},
{
"id": 29742,
"name": "رجال الحاكم في المستدرك",
"q": "Q123281693"
},
{
"id": 29743,
"name": "تفسير الإيجي جامع البيان في تفسير القرآن"
},
{
"id": 29744,
"name": "مجلسان من أمالي طراد الزينبي"
},
{
"id": 29745,
"name": "إرشاد القاصي والداني إلى تراجم شيوخ الطبراني"
},
{
"id": 29796,
"name": "بداية العابد وكفاية الزاهد - ت العجمي",
"q": "Q131917947"
},
{
"id": 29857,
"name": "مجموع فيه ثلاثة أجزاء حديثية - جرار"
},
{
"id": 29864,
"name": "الكنز في القراءات العشر",
"q": "Q127692631"
},
{
"id": 29877,
"name": "استيفاء الأقوال في تحريم الإسبال على الرجال"
},
{
"id": 29878,
"name": "مقدمة ابن الصلاح ومحاسن الاصطلاح"
},
{
"id": 29879,
"name": "تراجم رجال الدارقطني في سننه",
"q": "Q115787468"
},
{
"id": 29881,
"name": "قادة فتح الأندلس"
},
{
"id": 29883,
"name": "لا جديد في أحكام الصلاة"
},
{
"id": 29884,
"name": "الجامع لمسائل أصول الفقه وتطبيقاتها على المذهب الراجح"
},
{
"id": 29909,
"name": "فريدة الدهر في تأصيل وجمع القراءات"
},
{
"id": 29910,
"name": "علوم القرآن الكريم - نور الدين عتر"
},
{
"id": 29911,
"name": "أعلام الموقعين عن رب العالمين - ط عطاءات العلم",
"pre": "أعلام الموقعين عن رب العالمين",
"suf": "ط عطاءات العلم",
"q": "Q114703386"
},
{
"id": 29915,
"name": "مجموعة مهمة في التجويد والقراءات"
},
{
"id": 29967,
"name": "أبو هريرة راوية الإسلام",
"q": "Q115786029"
},
{
"id": 29982,
"name": "المعجم الصغير لرواة الإمام ابن جرير الطبري"
},
{
"id": 29986,
"name": "مشتبهات القرآن"
},
{
"id": 29988,
"name": "مختصر التبيين لهجاء التنزيل"
},
{
"id": 30001,
"name": "شروط الطلاق - الزومان"
},
{
"id": 30002,
"name": "محاسن الدين الإسلامي"
},
{
"id": 30004,
"name": "فيض الجليل على متن الدليل",
"q": "Q136375234"
},
{
"id": 30005,
"name": "الولاء والبراء في الإسلام"
},
{
"id": 30006,
"name": "عجائب المخلوقات وغرائب الموجودات"
},
{
"id": 30007,
"name": "علل الوقوف = الوقف والابتداء - ت العيدي",
"pre": "علل الوقوف"
},
{
"id": 30008,
"name": "العجالة في شرح الرسالة"
},
{
"id": 30009,
"name": "الجواهر من فقه الحنفية"
},
{
"id": 30010,
"name": "نيل المنى بذيل بلوغ القرى لتكملة إتحاف الورى",
"q": "Q125537771"
},
{
"id": 30012,
"name": "نحو الفقهاء = مجرد مقالات أبي إسحاق الشاطبي في العربية"
},
{
"id": 30013,
"name": "نيل الأماني في توضيح مقدمة القسطلاني - ط عطاءات العلم",
"pre": "نيل الأماني في توضيح مقدمة القسطلاني - مطبوع مع إرشاد الساري"
},
{
"id": 30014,
"name": "نيل الأماني في توضيح مقدمة القسطلاني - ط الميمنية",
"pre": "نيل الأماني في توضيح مقدمة القسطلاني"
},
{
"id": 30015,
"name": "محاسن التوحيد وارتباطها بأركان الإيمان"
},
{
"id": 30016,
"name": "مسند أبي بكر الصديق - لابن كثير"
},
{
"id": 30017,
"name": "المنحة الإلهية في شرح الفتوى الحموية"
},
{
"id": 30018,
"name": "أسد الغابة في معرفة الصحابة - ت الرفاعي",
"pre": "أسد الغابة في معرفة الصحابة"
},
{
"id": 30020,
"name": "عنوان الزمان بتراجم الشيوخ والأقران جـ 1 - 5",
"pre": "عنوان الزمان بتراجم الشيوخ والأقران"
},
{
"id": 30023,
"name": "حوادث الزمان ووفيات الشيوخ والأقران"
},
{
"id": 30025,
"name": "الأمالي بجامع دمشق"
},
{
"id": 30026,
"name": "إنباء الهصر بأنباء العصر"
},
{
"id": 30029,
"name": "التعليق والبيان على الدين الحق للشيخ عبد الرحمن بن حماد العمر"
},
{
"id": 30030,
"name": "الإعلام في شرح فضل الإسلام"
},
{
"id": 30031,
"name": "التذكرة بأحوال الموتى وأمور الآخرة - ت آل زهوي",
"pre": "التذكرة بأحوال الموتى وأمور الآخرة"
},
{
"id": 30032,
"name": "الأحاديث الواردة في أحسن الناس"
},
{
"id": 30033,
"name": "الأحاديث الواردة في الابتلاء"
},
{
"id": 30034,
"name": "الأحاديث الواردة في التحذير من الشرك وبيان خطره"
},
{
"id": 30035,
"name": "الأحاديث الواردة في العين حقيقتها والوقاية والعلاج"
},
{
"id": 30036,
"name": "الأحاديث الواردة في ذكر أحكام الشيب وبيان فضله"
},
{
"id": 30038,
"name": "سوس العالمة"
},
{
"id": 30039,
"name": "توضيح المقصود من حائية ابن أبي داود"
},
{
"id": 30040,
"name": "غاية النهاية في طبقات القراء - ط الصحابة"
},
{
"id": 30041,
"name": "لطائف الإشارات لفنون القراءات"
},
{
"id": 30042,
"name": "بيان النظم في القرآن الكريم",
"q": "Q132466201"
},
{
"id": 30043,
"name": "القراءات المشهورة في الأمصار الآتية مجيء التواتر",
"pre": "أسماء الصحابة الرواة وما لكل واحد من العدد - مطبوع مع جوامع السيرة"
},
{
"id": 30044,
"name": "أسماء الصحابة الرواة وما لكل واحد من العدد",
"pre": "أسماء الصحابة الرواة وما لكل واحد من العدد - مطبوع مع جوامع السيرة"
},
{
"id": 30045,
"name": "مجلس الروضة - طراد الزينبي"
},
{
"id": 30046,
"name": "أصحاب الفتيا من الصحابة ومن بعدهم على مراتبهم في كثرة الفتيا",
"pre": "أصحاب الفتيا من الصحابة ومن بعدهم على مراتبهم في كثرة الفتيا - مطبوع مع جوامع السيرة"
},
{
"id": 30048,
"name": "جمل فتوح الإسلام بعد رسول الله صلى الله عليه وسلم (مطبوع مع جوامع السيرة)",
"pre": "جمل فتوح الإسلام بعد رسول الله صلى الله عليه وسلم - مطبوع مع جوامع السيرة"
},
{
"id": 30049,
"name": "مختصر العبارات لمعجم مصطلحات القراءات"
},
{
"id": 30050,
"name": "أسماء الخلفاء والولاة وذكر مددهم (مطبوع مع جوامع السيرة)",
"pre": "أسماء الخلفاء والولاة وذكر مددهم - مطبوع مع جوامع السيرة"
},
{
"id": 30051,
"name": "منية السول في تفضيل الرسول (صلى الله عليه وسلم)"
},
{
"id": 30052,
"name": "شرح مختصر الكرخي",
"q": "Q132794767"
},
{
"id": 30053,
"name": "الكاشف لدقائق المفردات القرآنية"
},
{
"id": 30054,
"name": "حديث مطين"
},
{
"id": 30056,
"name": "المختصر من دروس رمضان والعشر"
},
{
"id": 30057,
"name": "التعليقة الكبيرة - أبو يعلى - من الأشربة للأيمان"
},
{
"id": 30058,
"name": "مسلك الراغب لشرح دليل الطالب",
"q": "Q133254178"
},
{
"id": 30058,
"name": "مسلك الراغب لشرح دليل الطالب - ت الهزاني وإدريس",
"pre": "مسلك الراغب لشرح دليل الطالب",
"q": "Q133254178"
},
{
"id": 30059,
"name": "بدائع الزهور في وقائع الدهور - ت محمد مصطفى",
"pre": "بدائع الزهور في وقائع الدهور"
},
{
"id": 30060,
"name": "المختار من بدائع الزهور في وقائع الدهور - ط مدبولي",
"pre": "المختار من بدائع الزهور في وقائع الدهور"
},
{
"id": 30061,
"name": "اللمع في الحوادث والبدع"
},
{
"id": 30062,
"name": "أخبار مكة - الأزرقي - ت علي عمر",
"pre": "أخبار مكة - الأزرقي"
},
{
"id": 30063,
"name": "البدر السافر عن أنس المسافر",
"q": "Q133820050"
},
{
"id": 30064,
"name": "موسوعة أحكام الصلوات الخمس"
},
{
"id": 30065,
"name": "موسوعة الفقه على المذاهب الأربعة - ياسر النجار"
},
{
"id": 30066,
"name": "فتح وهاب المآرب على دليل الطالب - ت الجماز",
"pre": "فتح وهاب المآرب على دليل الطالب",
"q": "Q133871227"
},
{
"id": 30067,
"name": "طبقات القراء السبعة وذكر مناقبهم وقراءاتهم"
},
{
"id": 30068,
"name": "جواهر السلوك في أمر الخلفاء والملوك"
},
{
"id": 30069,
"name": "عقود الجمان في وقائع الأزمان"
},
{
"id": 30070,
"name": "صفحات لم تنشر من بدائع الزهور فى وقائع الدهور"
},
{
"id": 30072,
"name": "تقريب تقريب التهذيب"
},
{
"id": 30073,
"name": "اليوم الآخر أحداث وعبر"
},
{
"id": 30074,
"name": "نزهة الأمم في العجائب والحكم"
},
{
"id": 30076,
"name": "نهاية السول في رواة الستة الأصول - ت عبد المنعم إبراهيم",
"pre": "نهاية السول في رواة الستة الأصول"
},
{
"id": 30078,
"name": "الذهب المسبوك في وعظ الملوك"
},
{
"id": 30079,
"name": "فقه الصيام ومستجداته المعاصرة"
},
{
"id": 30080,
"name": "فتح ذي الجلال في تخريج أحاديث الظلال"
},
{
"id": 30081,
"name": "كتائب أعلام الأخيار من فقهاء مذهب النعمان المختار",
"q": "Q135207496"
},
{
"id": 30082,
"name": "المختصر في أصول الفقه"
},
{
"id": 30083,
"name": "تكملة السبكي على المجموع شرح المهذب - قطعة جديدة",
"pre": "تكملة السبكي على المجموع"
},
{
"id": 30084,
"name": "القواعد الأم للفقه"
},
{
"id": 30085,
"name": "تلبيس إبليس - ت خير الدين وائلي"
},
{
"id": 30086,
"name": "التعريف والإخبار بتخريج أحاديث الاختيار"
},
{
"id": 30087,
"name": "معجم المصطلحات والألفاظ الفقهية"
},
{
"id": 30088,
"name": "نهاية السول في رواة الستة الأصول - ت عبد القيوم - ناقص",
"pre": "نهاية السول في رواة الستة الأصول"
},
{
"id": 30089,
"name": "صور من حياة الصحابة"
},
{
"id": 30090,
"name": "جامع المسائل والقواعد في علم الأصول والمقاصد"
},
{
"id": 30091,
"name": "أبو شامة مؤرخ دمشق في عصر الأيوبيين"
},
{
"id": 30092,
"name": "رسالة في الأدب لأصحاب الطلب"
},
{
"id": 30093,
"name": "سيل الأقلام بفوائد من كتاب العلم من صحيح الإمام"
},
{
"id": 30094,
"name": "سبط ابن الجوزي المؤرخ الواعظ"
},
{
"id": 30096,
"name": "التسهيل في فقه الإمام أحمد - وزارة الأوقاف الكويتية"
},
{
"id": 30097,
"name": "البداية والنهاية - ط دار ابن كثير",
"pre": "البداية والنهاية"
},
{
"id": 30098,
"name": "البداية والنهاية - ط دار ابن كثير - التكملة",
"pre": "البداية والنهاية - ط دار ابن كثير السادسة"
},
{
"id": 30099,
"name": "تغير الأجل وأثره في الديون"
},
{
"id": 30100,
"name": "المنتخب من حديث شيوخ بغداد"
},
{
"id": 30101,
"name": "مشارق الأنوار النبوية من صحاح الأخبار المصطفوية"
},
{
"id": 30102,
"name": "مسند الجن"
},
{
"id": 30103,
"name": "عوالي طراد الزينبي"
},
{
"id": 30104,
"name": "التحفة البهية في شرح رسالة العبودية"
},
{
"id": 30105,
"name": "المعجم الأصغر"
},
{
"id": 30106,
"name": "جزء ابن فارس"
},
{
"id": 30107,
"name": "إيضاح المريب من تعليق اعلام الأريب بحدوث بدعة المحاريب"
},
{
"id": 30108,
"name": "نتائج الأفكار في تخريج أحاديث الأذكار"
},
{
"id": 30109,
"name": "قطعة من نتائج الأفكار في تخريج أحاديث الأذكار"
},
{
"id": 30110,
"name": "جزء السقطي"
},
{
"id": 30111,
"name": "التاريخ للفلاس",
"q": "Q134701173"
},
{
"id": 30112,
"name": "تلقيح العقول في فضائل الرسول صلى الله عليه وسلم"
},
{
"id": 30113,
"name": "جزء ابن نجيد - ت جرار",
"pre": "جزء ابن نجيد"
},
{
"id": 30114,
"name": "جزء ابن ثرثال - ت جرار",
"pre": "جزء ابن ثرثال"
},
{
"id": 30115,
"name": "تقريب الأسانيد وترتيب المسانيد"
},
{
"id": 30116,
"name": "حديث أبي إسحاق الحبال"
},
{
"id": 30117,
"name": "أحاديث منصور بن عمار"
},
{
"id": 30118,
"name": "مجلس ابن هزارمرد"
},
{
"id": 30119,
"name": "البدعة وأثرها"
},
{
"id": 30120,
"name": "تراجم الأوائل والخلفاء (الأعلام الصغرى)"
},
{
"id": 30121,
"name": "القول المسدد في شرح رسالة الإمام أحمد"
},
{
"id": 30122,
"name": "جزء المناديلي"
},
{
"id": 30123,
"name": "أحاديث المناديلي"
},
{
"id": 30124,
"name": "خمسة أحاديث من رواية ابن العربي المتأخر"
},
{
"id": 30125,
"name": "جزء فيه من الأخبار والحكايات من كلام العلماء"
},
{
"id": 30126,
"name": "رسالة الإمام مالك في السنن والمواعظ والآداب"
},
{
"id": 30127,
"name": "المقدمة ذات النقاب في الألقاب"
},
{
"id": 30128,
"name": "أحكام الطلاق (الطلاق السني والطلاق البدعي)"
},
{
"id": 30129,
"name": "تزكية النفس مفهومها ومراتبها وأسبابها"
},
{
"id": 30130,
"name": "أسنى المطالب في شرح روض الطالب - ط العلمية",
"pre": "أسنى المطالب في شرح روض الطالب"
},
{
"id": 30131,
"name": "الرسالة الندية في القواعد الفقهية"
},
{
"id": 30132,
"name": "التيسير والتبصير لما فات البخاري في العلل الكبير"
},
{
"id": 30133,
"name": "الدرة في الحج والعمرة"
},
{
"id": 30135,
"name": "مسالك الجلالة في اختصار المناهل الزلالة"
},
{
"id": 30136,
"name": "صفحات مضيئة من حياة عبد الله القصير"
},
{
"id": 30137,
"name": "فصل المقال في هدايا العمال",
"q": "Q135600747"
},
{
"id": 30138,
"name": "اللؤلؤ والمرجان في محاسن دين الإسلام"
},
{
"id": 30139,
"name": "تأكيد الوثاق في اشتراط الإشهاد عند الطلاق"
},
{
"id": 30140,
"name": "المختصر الوافي لأهم مسائل الطهارة",
"q": "Q135475282"
},
{
"id": 30141,
"name": "منار الإسلام بترتيب كتاب الوهم والإيهام",
"q": "Q135688958"
},
{
"id": 30143,
"name": "المفردات",
"q": "Q135475098"
},
{
"id": 30144,
"name": "بلاد العرب"
},
{
"id": 30145,
"name": "القبول شروطه وموجباته ودرجاته وعلاماته ومحبطاته"
},
{
"id": 30146,
"name": "أحاديث ضعاف وعليها العمل بغير خلاف"
},
{
"id": 30147,
"name": "مسلك الراغب لشرح دليل الطالب - ت تركي النصر",
"pre": "مسلك الراغب لشرح دليل الطالب",
"q": "Q135725690"
},
{
"id": 30148,
"name": "لماذا التوحيد أولا",
"q": "Q135746403"
},
{
"id": 30150,
"name": "البينات في شرح كشف الشبهات"
},
{
"id": 30151,
"name": "بيت القصيد في شرح كتاب التوحيد"
},
{
"id": 30153,
"name": "وجوه إعجاز القرآن العظيم",
"q": "Q136131575"
},
{
"id": 30154,
"name": "الأبدع في شرح القواعد الأربع",
"q": "Q136344036"
},
{
"id": 30156,
"name": "الإغاثة في شرح الأصول الثلاثة",
"q": "Q136344067"
},
{
"id": 30157,
"name": "ترشيح التوشيح وتوضيح الترجيح",
"q": "Q136343830"
},
{
"id": 30158,
"name": "أنشاب الكثب في أنساب الكتب",
"q": "Q136908401"
},
{
"id": 30159,
"name": "شرح التفريع",
"q": "Q136908184"
},
{
"id": 30160,
"name": "السعة والضيق في الأبواب الفقهية"
},
{
"id": 30161,
"name": "التكميل على تحفة التحصيل"
},
{
"id": 30162,
"name": "المختصر في أصول الفقه - ط أسفار",
"pre": "المختصر في أصول الفقه",
"q": "Q136913166"
},
{
"id": 30163,
"name": "التعليقة في أصول الفقه للكيا - قطعة منه"
},
{
"id": 30164,
"name": "الكفيل بالوصول إلى ثمرات الأصول"
},
{
"id": 30165,
"name": "الجامع لأحكام الوقف والهبات والوصايا"
},
{
"id": 30166,
"name": "المنتقى من مسموعات الضياء المقدسي بمرو"
},
{
"id": 30167,
"name": "الحافظ العراقي وأثره في السنة",
"q": "Q137416781"
},
{
"id": 30168,
"name": "النوادر - معلى بن منصور"
},
{
"id": 30169,
"name": "الدخيل في تفسير القرآن الكريم"
},
{
"id": 30170,
"name": "تنقيح الفصول في علم الأصول"
},
{
"id": 30171,
"name": "الدرر الكامنة في أعيان المائة الثامنة - ط الهندية الأولى",
"pre": "الدرر الكامنة في أعيان المائة الثامنة"
},
{
"id": 30172,
"name": "غرر المحصول فى علم الأصول"
},
{
"id": 30174,
"name": "موهوب الجليل في شرح مختصر خليل"
},
{
"id": 30175,
"name": "نهاية الإقدام في مآخذ الأحكام"
},
{
"id": 30176,
"name": "مجمع الغرائب ومنبع الرغائب",
"q": "Q137702091"
},
{
"id": 30178,
"name": "تحفة السائل في بيان ما في عمدة الأحكام من المسائل"
},
{
"id": 30179,
"name": "معراج الدراية في شرح الهداية"
},
{
"id": 30181,
"name": "تاريخ الخلفاء - ت عبد الحميد",
"pre": "تاريخ الخلفاء"
},
{
"id": 30182,
"name": "تاريخ الخلفاء - ط الباز",
"pre": "تاريخ الخلفاء"
},
{
"id": 30183,
"name": "تاريخ الخلفاء - ت عكاوي",
"pre": "تاريخ الخلفاء"
},
{
"id": 30185,
"name": "جامع أحكام صلاة الإمام"
},
{
"id": 30186,
"name": "تفسير ابن جزي التسهيل لعلوم التنزيل"
},
{
"id": 30188,
"name": "مسالك الأبصار في ممالك الأمصار - ط عالم الكتب",
"pre": "مسالك الأبصار في ممالك الأمصار"
},
{
"id": 30189,
"name": "مسالك الأبصار في ممالك الأمصار - ط العلمية",
"pre": "مسالك الأبصار في ممالك الأمصار"
},
{
"id": 30190,
"name": "مجالس رمضانية"
},
{
"id": 30191,
"name": "قطعة من إكمال تهذيب الكمال - ط الفاروق"
},
{
"id": 30255,
"name": "معجم الشيخة مريم - ط الثقافة",
"pre": "معجم الشيخة مريم",
"suf": "ط الثقافة"
},
{
"id": 30259,
"name": "الأفراد - الدارقطني"
},
{
"id": 30267,
"name": "تسمية ما ورد به الخطيب دمشق من الكتب - ومصنفاته"
},
{
"id": 30271,
"name": "تفسير القرآن الكريم وإعرابه وبيانه - الدرة"
},
{
"id": 30275,
"name": "المنتقى من فتاوى الأئمة الأعلام"
},
{
"id": 30277,
"name": "الروض الناضر في سيرة الإمام أبي جعفر الباقر"
},
{
"id": 30278,
"name": "عبق الرياحين في سيرة ذي الجناحين"
},
{
"id": 30281,
"name": "ما قاله الثقلان في أولياء الرحمن"
},
{
"id": 30327,
"name": "مشيخة ابن جماعة - تخريج البرزالي"
},
{
"id": 30518,
"name": "مباحث التفسير لابن المظفر الرازي"
},
{
"id": 30531,
"name": "الديباج المذهب في مصطلح الحديث"
},
{
"id": 30621,
"name": "الحرز الثمين للحصن الحصين"
},
{
"id": 30622,
"name": "شرح حلية طالب العلم - الشثري"
},
{
"id": 30623,
"name": "الأمالي الشارحة لمفردات الفاتحة"
},
{
"id": 30625,
"name": "مصنفات طراد الزينبي وأجزاء أخرى"
},
{
"id": 30626,
"name": "المنتقى من مسند أبي بكر محمد بن هارون الروياني"
},
{
"id": 30628,
"name": "الاختيارات الفقهية للشيخ محمد بن إبراهيم في مسائل العبادات"
},
{
"id": 30725,
"name": "تسعة مجالس من أمالي طراد الزينبي"
},
{
"id": 30739,
"name": "التنصير تعريفه أهدافه وسائله حسرات المنصرين"
},
{
"id": 30741,
"name": "تاريخ أبي زرعة الدمشقي",
"q": "Q134954477"
},
{
"id": 30743,
"name": "تاريخ علماء الأندلس",
"q": "Q116997332"
},
{
"id": 30744,
"name": "تحفة المحبين والأصحاب فى معرفة ما للمدنيين من الأنساب"
},
{
"id": 30797,
"name": "المناقب المزيدية في أخبار الملوك الأسدية"
},
{
"id": 30798,
"name": "التنصير مفهومه وأهدافه ووسائله وسبل مواجهته"
},
{
"id": 30800,
"name": "التوحيد للناشئة والمبتدئين"
},
{
"id": 30810,
"name": "المستشرقون والتنصير"
},
{
"id": 30811,
"name": "الوجيز في عقيدة السلف الصالح أهل السنة والجماعة"
},
{
"id": 30813,
"name": "أشراط الساعة - الغفيلي",
"pre": "«أشراط الساعة» للغفيلي"
},
{
"id": 30821,
"name": "أعلام السنة المنشورة لاعتقاد الطائفة الناجية المنصورة = 200 سؤال وجواب في العقيدة الاسلامية"
},
{
"id": 30822,
"name": "بيان التوحيد الذي بعث الله به الرسل جميعا وبعث به خاتمهم محمدا عليه السلام"
},
{
"id": 30823,
"name": "تلبيس مردود في قضايا حية"
},
{
"id": 30828,
"name": "حكم بناء الكنائس والمعابد الشركية في بلاد المسلمين"
},
{
"id": 30833,
"name": "دين الحق"
},
{
"id": 30834,
"name": "رسالة في أسس العقيدة"
},
{
"id": 30836,
"name": "شبهات حول السنة"
},
{
"id": 30842,
"name": "صفات المنافقين"
},
{
"id": 30846,
"name": "التوحيد للفوزان",
"q": "Q136687206"
},
{
"id": 30847,
"name": "أصول الإيمان في ضوء الكتاب والسنة"
},
{
"id": 30850,
"name": "كشف الشبهات - ط الأوقاف السعودية",
"pre": "كشف الشبهات",
"suf": "ط الأوقاف السعودية"
},
{
"id": 30855,
"name": "لمعة الاعتقاد"
},
{
"id": 30856,
"name": "ما يجب أن يعرفه المسلم عن دينه"
},
{
"id": 30858,
"name": "مجمل اعتقاد أئمة السلف"
},
{
"id": 30862,
"name": "محبة الرسول بين الاتباع والابتداع"
},
{
"id": 30863,
"name": "مذكرة التوحيد"
},
{
"id": 30866,
"name": "فصل الخطاب في شرح مسائل الجاهلية ت علي مخلوف"
},
{
"id": 30868,
"name": "مصباح الظلام في الرد على من كذب الشيخ الإمام ونسبه إلى تكفير أهل الإيمان والإسلام",
"q": "Q123584311"
},
{
"id": 30870,
"name": "وجوب تحكيم شرع الله ونبذ ما خالفه"
},
{
"id": 30874,
"name": "إمام المسجد مقوماته العلمية والخلقية"
},
{
"id": 30885,
"name": "قمع الدجاجلة الطاعنين في معتقد أئمة الإسلام الحنابلة"
},
{
"id": 30887,
"name": "حقائق حول المولد النبوي"
},
{
"id": 30888,
"name": "إسلامية لا وهابية"
},
{
"id": 30889,
"name": "وجوب العمل بسنة الرسول صلى الله عليه وسلم وكفر من أنكرها"
},
{
"id": 30897,
"name": "العواصم من القواصم ط الأوقاف السعودية"
},
{
"id": 30898,
"name": "الأصول الشرعية عند حلول الشبهات"
},
{
"id": 30899,
"name": "سمات المؤمنين في الفتن وتقلب الأحوال"
},
{
"id": 30900,
"name": "الدعاء من الكتاب والسنة"
},
{
"id": 30901,
"name": "الأثر التربوي للمسجد"
},
{
"id": 30903,
"name": "الأمر بالمعروف والنهي عن المنكر- ابن تيمية",
"q": "Q115805890"
},
{
"id": 30907,
"name": "القدوة مبادئ ونماذج"
},
{
"id": 30908,
"name": "منهج الدعوة والحسبة بين أهل السنة وأهل البدعة"
},
{
"id": 30910,
"name": "الأمة الوسط والمنهاج النبوي في الدعوة إلى الله"
},
{
"id": 30911,
"name": "الأمر بالمعروف والنهي عن المنكر في ضوء الكتاب والسنة"
},
{
"id": 30912,
"name": "الأديان الوضعية - جامعة المدينة"
},
{
"id": 30914,
"name": "الإمام محمد بن عبد الوهاب دعوته وسيرته"
},
{
"id": 30915,
"name": "البدع والمخالفات في الحج"
},
{
"id": 30916,
"name": "البصيرة في الدعوة إلى الله"
},
{
"id": 30917,
"name": "التحذير من البدع"
},
{
"id": 30918,
"name": "التدرج في دعوة النبي"
},
{
"id": 30919,
"name": "الحكمة في الدعوة إلى الله تعالى"
},
{
"id": 30920,
"name": "الضياء اللامع من الخطب الجوامع"
},
{
"id": 30921,
"name": "الفواكه الشهية في الخطب المنبرية والخطب المنبرية على المناسبات"
},
{
"id": 30924,
"name": "الوصايا الجلية للاستفادة من الدروس العلمية"
},
{
"id": 30925,
"name": "أثر العلماء في تحقيق رسالة المسجد"
},
{
"id": 30926,
"name": "تذكرة الصوام بشيء من فضائل الصيام والقيام وما يتعلق بهما من أحكام"
},
{
"id": 30927,
"name": "أصول البحث الأدبي ومصادره - جامعة المدينة"
},
{
"id": 30928,
"name": "خطب الجمعة ومسؤوليات الخطباء"
},
{
"id": 30929,
"name": "خطب مختارة"
},
{
"id": 30930,
"name": "دعوة الشيخ محمد عبد الوهاب وأثرها في العالم الإسلامي"
},
{
"id": 30935,
"name": "سلسلة أهل الذكر"
},
{
"id": 30944,
"name": "مجموعة رسائل وفتاوى في مسائل مهمة تمس إليها حاجة العصر"
},
{
"id": 30945,
"name": "مختصر إظهار الحق"
},
{
"id": 30948,
"name": "مسؤولية إمام المسجد"
},
{
"id": 30955,
"name": "مفهوم الحكمة في الدعوة"
},
{
"id": 31061,
"name": "فقه الدعوة في صحيح الإمام البخاري"
},
{
"id": 31064,
"name": "أسلوب خطبة الجمعة"
},
{
"id": 31067,
"name": "منبر الجمعة أمانة ومسؤولية"
},
{
"id": 31068,
"name": "منهج في إعداد خطبة الجمعة"
},
{
"id": 31069,
"name": "خطبة الجمعة ودورها في تربية الأمة"
},
{
"id": 31072,
"name": "موضوعات خطبة الجمعة"
},
{
"id": 31076,
"name": "التفسير الموضوعي 1 - جامعة المدينة"
},
{
"id": 31077,
"name": "الإعجاز اللغوي في القرآن الكريم - جامعة المدينة"
},
{
"id": 31079,
"name": "الشيخ محمد بن عبد الوهاب حياته ودعوته في الرؤية الاستشراقية"
},
{
"id": 31080,
"name": "الإعجاز العلمي في القرآن الكريم - جامعة المدينة"
},
{
"id": 31083,
"name": "الأديان والمذاهب - جامعة المدينة"
},
{
"id": 31086,
"name": "التحاكم إلى الكتاب والسنة في حفظ الأمن وحماية الأرواح"
},
{
"id": 31088,
"name": "حرمة الإفساد في الأرض"
},
{
"id": 31209,
"name": "نظرة في مفهوم الإرهاب والموقف منه في الإسلام"
},
{
"id": 31215,
"name": "ترتيب المدارك وتقريب المسالك",
"q": "Q130397545"
},
{
"id": 31215,
"name": "ترتيب المدارك وتقريب المسالك - ط المغربية",
"pre": "ترتيب المدارك وتقريب المسالك",
"q": "Q130397545"
},
{
"id": 31219,
"name": "المفيد في تقريب أحكام الأذان"
},
{
"id": 31221,
"name": "تعليم الصلاة"
},
{
"id": 31225,
"name": "فتاوى عاجلة لمنسوبي الصحة"
},
{
"id": 31226,
"name": "فتاوى مهمة تتعلق بالحج والعمرة"
},
{
"id": 31227,
"name": "كيفية صلاة النبي صلى الله عليه وسلم"
},
{
"id": 31228,
"name": "مجموعة رسائل في الحجاب والسفور"
},
{
"id": 31234,
"name": "منزلة الصلاة في الإسلام"
},
{
"id": 31235,
"name": "التحقيق والإيضاح لكثير من مسائل الحج والعمرة والزيارة على ضوء الكتاب"
},
{
"id": 31236,
"name": "صلاة المسافر = السفر وأحكامه في ضوء الكتاب والسنة"
},
{
"id": 31237,
"name": "السياسة الشرعية في إصلاح الراعي والرعية - ط الأوقاف السعودية",
"pre": "السياسة الشرعية في إصلاح الراعي والرعية",
"suf": "ط الأوقاف السعودية",
"q": "Q115910440"
},
{
"id": 31238,
"name": "الفرائض"
},
{
"id": 31239,
"name": "تطهير الجنان والقواعد الأربع ومنهج السالكين"
},
{
"id": 31241,
"name": "الفوائد الجلية في المباحث الفرضية"
},
{
"id": 31245,
"name": "المشروع والممنوع في المسجد - محمد العرفج"
},
{
"id": 31246,
"name": "آداب المشي إلى الصلاة ط الوزارة"
},
{
"id": 31248,
"name": "أحكام المساجد في الشريعة الإسلامية"
},
{
"id": 31249,
"name": "أحكام صلاة المريض"
},
{
"id": 31251,
"name": "تحريم حلق اللحى - وجوب إعفاء اللحية"
},
{
"id": 31252,
"name": "تحفة الإخوان بأجوبة مهمة تتعلق بأركان الإسلام"
},
{
"id": 31254,
"name": "تنبيهات على أحكام تختص بالمؤمنات",
"q": "Q136687217"
},
{
"id": 31256,
"name": "ثلاث رسائل في الصلاة"
},
{
"id": 31258,
"name": "حكم شرب الدخان وإمامة من يتجاهر به"
},
{
"id": 31259,
"name": "خطبة الجمعة وأحكامها الفقهية"
},
{
"id": 31260,
"name": "رسالة في الفقه الميسر"
},
{
"id": 31261,
"name": "رسالتان في الصلاة"
},
{
"id": 31267,
"name": "فتاوى تتعلق بأحكام الحج والعمرة والزيارة"
},
{
"id": 31270,
"name": "مشكلة السرف في المجتمع المسلم وعلاجها في ضوء الإسلام"
},
{
"id": 31271,
"name": "من الأحكام الفقهية في الطهارة والصلاة والجنائز"
},
{
"id": 31274,
"name": "المشروع والممنوع في المسجد - فالح الصغير"
},
{
"id": 31285,
"name": "المختصر في فقه العبادات"
},
{
"id": 31287,
"name": "عمارة المساجد المعنوية وفضلها"
},
{
"id": 31288,
"name": "فصول ومسائل تتعلق بالمساجد"
},
{
"id": 31292,
"name": "وظيفة المسجد في المجتمع"
},
{
"id": 31294,
"name": "المنهج الشرعي في بيان حقيقة الجهاد وضوابطه"
},
{
"id": 31295,
"name": "مهمات حول الجهاد"
},
{
"id": 31297,
"name": "خطبة الجمعة في الكتاب والسنة"
},
{
"id": 31303,
"name": "تحفة الأخيار ببيان جملة نافعة مما ورد في الكتاب والسنة من الأدعية والأذكار"
},
{
"id": 31304,
"name": "بهجة قلوب الأبرار وقرة عيون الأخيار ط الوزارة"
},
{
"id": 31307,
"name": "حصن المسلم من أذكار الكتاب والسنة"
},
{
"id": 31316,
"name": "ترتيب المدارك وتقريب المسالك - ت بكير",
"pre": "ترتيب المدارك وتقريب المسالك"
},
{
"id": 31318,
"name": "الذكر والدعاء"
},
{
"id": 31321,
"name": "كيف تربي ولدك"
},
{
"id": 31324,
"name": "التبرج وخطر مشاركة المرأة للرجل في ميدان عمله"
},
{
"id": 31341,
"name": "رسالة في الدماء الطبيعية للنساء"
},
{
"id": 31343,
"name": "القنوات الفضائية"
},
{
"id": 31348,
"name": "عقوق الوالدين: أسبابه - مظاهره - سبل العلاج"
},
{
"id": 31349,
"name": "قطيعة الرحم: المظاهر - الأسباب - سبل العلاج"
},
{
"id": 31350,
"name": "توجيهات إسلامية لمحمد بن جميل زينو"
},
{
"id": 31356,
"name": "دليل مكتبة المرأة المسلمة"
},
{
"id": 31360,
"name": "ولا تقربوا الفواحش"
},
{
"id": 31363,
"name": "تيسير اللطيف المنان في خلاصة تفسير القرآن - ط الأوقاف السعودية",
"pre": "تيسير اللطيف المنان في خلاصة تفسير القرآن"
},
{
"id": 31364,
"name": "مختصر تفسير البغوي المسمى بمعالم التنزيل"
},
{
"id": 31366,
"name": "ذيل طبقات الحنابلة - لابن رجب - ت العثيمين",
"pre": "«ذيل طبقات الحنابلة» لابن رجب",
"suf": "ت العثيمين",
"q": "Q116984024"
},
{
"id": 31366,
"name": "ذيل طبقات الحنابلة - لابن رجب - ت العثيمين",
"pre": "ذيل طبقات الحنابلة - لابن رجب",
"suf": "ت العثيمين",
"q": "Q116984024"
},
{
"id": 31370,
"name": "تصحيح التصحيف وتحرير التحريف"
},
{
"id": 31371,
"name": "حلية البشر في تاريخ القرن الثالث عشر",
"q": "Q122312879"
},
{
"id": 31372,
"name": "خلاصة الوفا بأخبار دار المصطفى"
},
{
"id": 31373,
"name": "المنصف للسارق والمسروق منه"
},
{
"id": 31375,
"name": "في السلوك الإسلامي القويم"
},
{
"id": 31378,
"name": "فيض المعين"
},
{
"id": 31379,
"name": "كشف الأسرار في حكم الطيور والأزهار"
},
{
"id": 31381,
"name": "مختصر فتح رب الأرباب بما أهمل في لب اللباب من واجب الأنساب"
},
{
"id": 31382,
"name": "نهاية الأرب في معرفة أنساب العرب",
"q": "Q120763312"
},
{
"id": 31448,
"name": "بحوث ندوة أثر القرآن في تحقيق الوسطية ودفع الغلو"
},
{
"id": 31457,
"name": "مختصر زاد المعاد"
},
{
"id": 31465,
"name": "مختصر سيرة الرسول صلى الله عليه وسلم لمحمد بن عبد الوهاب"
},
{
"id": 31471,
"name": "أفعال الرسول صلى الله عليه وسلم ودلالتها على الأحكام الشرعية"
},
{
"id": 31475,
"name": "وجوب العدل وتحريم الظلم على الناس كافة"
},
{
"id": 31485,
"name": "الإسلام والدستور"
},
{
"id": 31489,
"name": "حقوق الإنسان في الإسلام للتركي"
},
{
"id": 31504,
"name": "الجوانب الإعلامية في خطب الرسول صلى الله عليه وسلم"
},
{
"id": 31507,
"name": "القناعة مفهومها منافعها الطريق إليها"
},
{
"id": 31513,
"name": "الخطابة - جامعة المدينة"
},
{
"id": 31514,
"name": "نقد القومية العربية على ضوء الإسلام والواقع"
},
{
"id": 31563,
"name": "الأمن في حياة الناس وأهميته في الإسلام"
},
{
"id": 31564,
"name": "قضية وحوار العنف في العمل الإسلامي المعاصر"
},
{
"id": 31566,
"name": "متطلبات المحافظة على نعمة الأمن والاستقرار"
},
{
"id": 31573,
"name": "كمال الدين الإسلامي وحقيقته ومزاياه"
},
{
"id": 32184,
"name": "القرآنيون، نشأهم - عقائدهم - أدلتهم"
},
{
"id": 32193,
"name": "تحفة المسؤول في شرح مختصر منتهى السول"
},
{
"id": 32194,
"name": "شرح كفاية المتحفظ تحرير الرواية في تقرير الكفاية"
},
{
"id": 32195,
"name": "ضوء الشموع شرح المجموع"
},
{
"id": 32196,
"name": "غريب الحديث - أبو عبيد - ط المصرية"
},
{
"id": 32197,
"name": "فتح الرحمن بشرح زبد ابن رسلان"
},
{
"id": 32254,
"name": "آراء محمد رشيد رضا العقائدية في أشراط الساعة الكبرى وآثارها الفكرية"
},
{
"id": 32381,
"name": "الدر المنظوم من كلام المصطفى المعصوم صلى الله عليه وسلم"
},
{
"id": 32384,
"name": "الرد على السبكي في مسألة تعليق الطلاق",
"q": "Q115910627"
},
{
"id": 32476,
"name": "الفوائد السنية في شرح الألفية"
},
{
"id": 32528,
"name": "التبيان في تخريج وتبويب أحاديث بلوغ المرام"
},
{
"id": 32535,
"name": "موسوعة الإجماع في الفقه الإسلامي - ط الفضيلة",
"pre": "«موسوعة الإجماع» ط الفضيلة"
},
{
"id": 32674,
"name": "القضايا الكبرى"
},
{
"id": 32881,
"name": "منهج القرآن في القضاء والقدر"
},
{
"id": 34562,
"name": "أحلي الكلام في مناجاة ذى الجلال والإكرام"
},
{
"id": 34886,
"name": "مجالس التذكير من حديث البشير النذير"
},
{
"id": 35077,
"name": "ديوان لبيد بن ربيعة العامري"
},
{
"id": 35096,
"name": "الموسوعة الفقهية الميسرة في فقه الكتاب والسنة المطهرة"
},
{
"id": 35100,
"name": "تاريخ الإسلام - ت بشار",
"pre": "تاريخ الإسلام",
"suf": "ت بشار",
"q": "Q113519441"
},
{
"id": 35101,
"name": "الحجة للقراء السبعة"
},
{
"id": 35104,
"name": "قصة الحضارة"
},
{
"id": 35115,
"name": "البيان في مداخل الشيطان"
},
{
"id": 35120,
"name": "فتح القريب المجيب في شرح ألفاظ التقريب = القول المختار في شرح غاية الاختصار"
},
{
"id": 35155,
"name": "الصارم البتار للإجهاز على من خالف الكتاب والسنة والإجماع والآثار"
},
{
"id": 35182,
"name": "الكافل بنيل السول في علم الأصول"
},
{
"id": 35261,
"name": "فتح الباقي بشرح ألفية العراقي"
},
{
"id": 35276,
"name": "أجوبة التسولي عن مسائل الأمير عبد القادر في الجهاد"
},
{
"id": 35312,
"name": "المنظومة التبريزية في العقيدة الصحيحة السنية"
},
{
"id": 35453,
"name": "تنبيه الغافلين عن أعمال الجاهلين وتحذير السالكين من أفعال الجاهلين"
},
{
"id": 35622,
"name": "الاعتداء في الدعاء صور وضوابط ونماذج من الدعاء الصحيح"
},
{
"id": 35723,
"name": "الرؤى عند أهل السنة والجماعة والمخالفين"
},
{
"id": 35760,
"name": "فتح العلي الحميد في شرح كتاب مفيد المستفيد في كفر تارك التوحيد"
},
{
"id": 35888,
"name": "نفحة اليمن فيما يزول بذكره الشجن"
},
{
"id": 36031,
"name": "تكملة معجم المؤلفين - ط 1"
},
{
"id": 36040,
"name": "ذم القضاء وتقلد الأحكام"
},
{
"id": 36041,
"name": "ذم المكس"
},
{
"id": 36042,
"name": "أوقات مليئة بالحسنات مع النية الصالحة"
},
{
"id": 36043,
"name": "الإسلام والليبرالية نقيضان لا يجتمعان"
},
{
"id": 36046,
"name": "الاحتجاج بالأثر على من أنكر المهدي المنتظر"
},
{
"id": 36047,
"name": "إجلاء الحقيقة في سيرة عائشة الصديقة"
},
{
"id": 36066,
"name": "الأجوبة العراقية على الأسئلة اللاهورية"
},
{
"id": 36070,
"name": "الأساليب البديعة في فضل الصحابة وإقناع الشيعة"
},
{
"id": 36072,
"name": "الذخائر والعبقريات"
},
{
"id": 36073,
"name": "الشفاء في بديع الاكتفاء"
},
{
"id": 36074,
"name": "العتاب بين الأصدقاء"
},
{
"id": 36075,
"name": "الفلاكة والمفلوكون"
},
{
"id": 36076,
"name": "الكلمات البينات في قوله تعالى: {وبشر الذين آمنوا وعملوا الصالحات أن لهم جنات}"
},
{
"id": 36077,
"name": "اللؤلؤ في الأدب"
},
{
"id": 36079,
"name": "المفاخرة بين الماء والهواء"
},
{
"id": 36080,
"name": "الناهية عن طعن أمير المؤمنين معاوية"
},
{
"id": 36081,
"name": "النكت الشنيعة في بيان الخلاف بين الله تعالى والشيعة"
},
{
"id": 36082,
"name": "الوحشيات = الحماسة الصغرى",
"q": "Q134466450"
},
{
"id": 36083,
"name": "تاريخ البيمارستانات في الإسلام",
"q": "Q138604022"
},
{
"id": 36085,
"name": "طبائع الاستبداد ومصارع الاستعباد"
},
{
"id": 36086,
"name": "عمدة الكتاب وعدة ذوي الألباب"
},
{
"id": 36087,
"name": "فتح رب البرية في شرح نظم الآجرومية"
},
{
"id": 36088,
"name": "ما يجوز للشاعر في الضرورة"
},
{
"id": 36091,
"name": "مختصر التحفة الاثني عشرية"
},
{
"id": 36095,
"name": "من عجائب الدعاء - الجزء الأول"
},
{
"id": 36096,
"name": "نداء إلى العفيفات {وأن يستعففن خير لهن}"
},
{
"id": 36097,
"name": "نهاية الرتبة في طلب الحسبة - ابن بسام"
},
{
"id": 36102,
"name": "الهادي والمهتدي"
},
{
"id": 36104,
"name": "المبسوط في القراءات العشر"
},
{
"id": 36105,
"name": "الجوس في المنسوب إلى دوس"
},
{
"id": 36110,
"name": "الكنز الأكبر من الأمر بالمعروف والنهي عن المنكر - ابن داود الحنبلي"
},
{
"id": 36111,
"name": "بذل النصائح الشرعية فيما على السلطان وولاة الأمور وسائر الرعية"
},
{
"id": 36112,
"name": "الأمر بالمعروف والنهي عن المنكر- أبو يعلى"
},
{
"id": 36114,
"name": "مسند الدارمي - ت الزهراني"
},
{
"id": 36116,
"name": "التيسير في أحكام التسعير"
},
{
"id": 36118,
"name": "حقوق المرأة في ضوء الكتاب والسنة"
},
{
"id": 36127,
"name": "الغرامية في مصطلح الحديث"
},
{
"id": 36128,
"name": "بغية الإربة في معرفة أحكام الحسبة لابن الديبع"
},
{
"id": 36129,
"name": "آداب الحسبة"
},
{
"id": 36147,
"name": "الشاذ والمنكر وزيادة الثقة - موازنة بين المتقدمين والمتأخرين"
},
{
"id": 36148,
"name": "المبشرون والمستشرقون في موقفهم من الإسلام"
},
{
"id": 36150,
"name": "اختصار الأخبار عما كان بثغر سبتة من سني الآثار"
},
{
"id": 36153,
"name": "المولد النبوي هل نحتفل"
},
{
"id": 36154,
"name": "أمنا عائشة"
},
{
"id": 36155,
"name": "تهذيب اقتضاء الصراط المستقيم"
},
{
"id": 36156,
"name": "دروس وعبر من صحيح القصص النبوي"
},
{
"id": 36157,
"name": "دليل الواعظ إلى أدلة المواعظ"
},
{
"id": 36158,
"name": "رأس السنة هل نحتفل"
},
{
"id": 36159,
"name": "شريعة الله لا شريعة البشر"
},
{
"id": 36160,
"name": "شم النسيم هل نحتفل"
},
{
"id": 36162,
"name": "عرفوا الحق فتركوا الباطل"
},
{
"id": 36163,
"name": "عيد الأم هل نحتفل"
},
{
"id": 36165,
"name": "كشف شبهات الصوفية"
},
{
"id": 36166,
"name": "معاوية بن أبي سفيان أمير المؤمنين وكاتب وحي النبي الأمين صلى الله عليه وسلم - كشف شبهات ورد مفتريات"
},
{
"id": 36168,
"name": "الشيعة هم العدو فاحذرهم"
},
{
"id": 36170,
"name": "الصلاة على رسول الله - صلى الله عليه وآله وسلم - فضلها ومعناها وكيفيتها ومواضعها والتحذير من تركها"
},
{
"id": 36172,
"name": "إمعان النظر في مشروعية البغض والهجر"
},
{
"id": 36173,
"name": "جهود علماء الأزهر في بيان حقيقة دين الشيعة = الشيعة الوجه الآخر شقاق لا وفاق"
},
{
"id": 36176,
"name": "إحسان سلوك العبد المملوك إلى ملك الملوك"
},
{
"id": 36181,
"name": "الرد على اللمع"
},
{
"id": 36185,
"name": "مختصر الفقه الإسلامي في ضوء القرآن والسنة"
},
{
"id": 36190,
"name": "جامع تراث العلامة الألباني في العقيدة = موسوعة العقيدة"
},
{
"id": 36191,
"name": "السمو الروحي الأعظم والجمال الفني في البلاغة النبوية"
},
{
"id": 36193,
"name": "الأساليب والإطلاقات العربية"
},
{
"id": 36194,
"name": "التحرير شرح الدليل - كتاب الطهارة"
},
{
"id": 36195,
"name": "شرح الموقظة للذهبي"
},
{
"id": 36328,
"name": "حطم صنمك وكن عند نفسك صغيرا"
},
{
"id": 36348,
"name": "الأحاديث القدسية"
},
{
"id": 36349,
"name": "طريقك إلى تقوية إيمانك"
},
{
"id": 36357,
"name": "لسان الميزان - ت أبي غدة",
"pre": "لسان الميزان"
},
{
"id": 36359,
"name": "الخشوع في الصلاة - الصباغ"
},
{
"id": 36379,
"name": "أصول الفقه الذي لا يسع الفقيه جهله",
"q": "Q139666215"
},
{
"id": 36391,
"name": "ظاهرة ضعف الإيمان"
},
{
"id": 36422,
"name": "ديوان طرفة بن العبد"
},
{
"id": 36423,
"name": "الفاضح لمذهب الشيعة الإمامية"
},
{
"id": 36427,
"name": "الروض الباسم في الذب عن سنة أبي القاسم - صلى الله عليه وسلم -"
},
{
"id": 36432,
"name": "أوضح التفاسير"
},
{
"id": 36446,
"name": "جمع الفوائد من جامع الأصول ومجمع الزوائد"
},
{
"id": 36496,
"name": "أحكام الاكتتاب في الشركات المساهمة"
},
{
"id": 36497,
"name": "الأربعون القرآنية"
},
{
"id": 36499,
"name": "الإرشاد إلى توحيد رب العباد"
},
{
"id": 36500,
"name": "الأسئلة والأجوبة في العقيدة"
},
{
"id": 36501,
"name": "التدريب وأهميته في العمل الإسلامي"
},
{
"id": 36502,
"name": "التنازع والتوازن في حياة المسلم"
},
{
"id": 36503,
"name": "التوبة إلى الله"
},
{
"id": 36504,
"name": "التوريث الدعوي"
},
{
"id": 36505,
"name": "الحملة الصليبية على العالم الإسلامي والعالم"
},
{
"id": 36506,
"name": "إعراب القرآن - إسماعيل الأصبهاني"
},
{
"id": 36511,
"name": "الزواج بنية الطلاق من خلال أدلة الكتاب والسنة ومقاصد الشريعة الإسلامية"
},
{
"id": 36515,
"name": "إكمال تهذيب الكمال - ط الفاروق",
"q": "Q125916329"
},
{
"id": 36516,
"name": "المنهج الصحيح"
},
{
"id": 36525,
"name": "الهمة طريق إلى القمة"
},
{
"id": 36527,
"name": "كيفية المناظرة مع الشيعة والرد عليهم"
},
{
"id": 36529,
"name": "تسبيح ومناجاة وثناء على ملك الأرض والسماء"
},
{
"id": 36533,
"name": "غاية المنوة في آداب الصحبة وحقوق الأخوة"
},
{
"id": 36536,
"name": "زكاة الأسهم والسندات والورق النقدي"
},
{
"id": 36537,
"name": "سجود التلاوة وأحكامه"
},
{
"id": 36538,
"name": "على عتبات الحضارة - بحث في السنن وعوامل التخلق والانهيار"
},
{
"id": 36539,
"name": "فضل علم الوقف والابتداء وحكم الوقف على رؤوس الآيات"
},
{
"id": 36541,
"name": "معالم على طريق العفة"
},
{
"id": 36543,
"name": "الفتح الرباني من فتاوى الإمام الشوكاني"
},
{
"id": 36552,
"name": "الإيماء إلى زوائد الأمالي والأجزاء"
},
{
"id": 36558,
"name": "الاعتصام للشاطبي ت الشقير والحميد والصيني"
},
{
"id": 36569,
"name": "قرة العين بفتاوى علماء الحرمين"
},
{
"id": 36570,
"name": "فتاوى الأئمة في النوازل المدلهمة"
},
{
"id": 36571,
"name": "الأجوبة الكافية عن الأسئلة الشامية"
},
{
"id": 36572,
"name": "التحف الربانية في جواب الأسئلة اللمدانية"
},
{
"id": 36573,
"name": "أجوبة محققة عن أسئلة مفرقة - ط إسطنبول"
},
{
"id": 36575,
"name": "فتاوى في التوحيد"
},
{
"id": 36612,
"name": "ثلاثون عملا تطيل في العمر"
},
{
"id": 36615,
"name": "اليقين في معرفة رب العالمين"
},
{
"id": 36616,
"name": "الجرح والتعديل - القاسمي",
"q": "Q136689693"
},
{
"id": 36624,
"name": "الفرقان في بيان إعجاز القرآن"
},
{
"id": 36626,
"name": "المورد في عمل المولد"
},
{
"id": 36949,
"name": "المقدمة الزهرا في إيضاح الإمامة الكبرى"
},
{
"id": 36950,
"name": "المنجد في اللغة",
"q": "Q125896475"
},
{
"id": 36951,
"name": "حسن السمت في الصمت"
},
{
"id": 36957,
"name": "الكامل في القراءات العشر والأربعين الزائدة عليها"
},
{
"id": 37007,
"name": "رسائل البشرى في السياحة بألمانيا وسويسرا"
},
{
"id": 37022,
"name": "رحلة ابن خلدون"
},
{
"id": 37025,
"name": "الفتح على أبي الفتح"
},
{
"id": 37027,
"name": "الرحلة الشامية"
},
{
"id": 37029,
"name": "التحف في مذاهب السلف ط الصحابة"
},
{
"id": 37030,
"name": "التحف في مذاهب السلف ت حلاق"
},
{
"id": 37031,
"name": "الإفادة والاعتبار في الأمور المشاهدة والحوادث المعاينة بأرض مصر"
},
{
"id": 37032,
"name": "أبو الطيب المتنبي وما له وما عليه",
"q": "Q115785644"
},
{
"id": 37033,
"name": "رياضة النفس"
},
{
"id": 37051,
"name": "التعريف بالمصطلح الشريف"
},
{
"id": 37054,
"name": "أدب النفس"
},
{
"id": 37056,
"name": "الكشف عن مساوي شعر المتنبي"
},
{
"id": 37057,
"name": "المآخذ على شراح ديوان أبي الطيب المتنبي"
},
{
"id": 37059,
"name": "المرأة العربية في جاهليتها وإسلامها"
},
{
"id": 37060,
"name": "المطالع البدرية في المنازل الرومية"
},
{
"id": 37063,
"name": "خطط الشام"
},
{
"id": 37064,
"name": "خلاصة الجواهر الزكية في فقه المالكية"
},
{
"id": 37065,
"name": "شرح معاني شعر المتنبي لابن الإفليلي - السفر الأول"
},
{
"id": 37067,
"name": "نحو القلوب"
},
{
"id": 37071,
"name": "زهرة التفاسير"
},
{
"id": 37162,
"name": "من روائع أبى الحسن الندوى في الدعوة إلى الله"
},
{
"id": 37174,
"name": "رد البهتان عن إعراب آيات من القرآن الكريم"
},
{
"id": 37325,
"name": "موسوعة مواقف السلف في العقيدة والمنهج والتربية"
},
{
"id": 37326,
"name": "متن العشماوية"
},
{
"id": 37333,
"name": "المفصل في أحكام العقيقة"
},
{
"id": 37338,
"name": "زهر العريش في تحريم الحشيش"
},
{
"id": 37344,
"name": "عمدة السالك وعدة الناسك"
},
{
"id": 37345,
"name": "رحلة الشتاء والصيف"
},
{
"id": 37346,
"name": "الحق المبين في معرفة الملائكة المقربين"
},
{
"id": 37347,
"name": "طرق الاستدلال بالسنة والاستنباط منها"
},
{
"id": 37348,
"name": "رسالة الشرك ومظاهره",
"q": "Q133895394"
},
{
"id": 37349,
"name": "موقف الاستشراق من السنة والسيرة النبوية"
},
{
"id": 37350,
"name": "القول المعتبر في بيان الإعجاز للحروف المقطعة من فواتح السور"
},
{
"id": 37361,
"name": "تفسير القرآن من الجامع لابن وهب"
},
{
"id": 37417,
"name": "الاستشراق والمستشرقون ما لهم وما عليهم"
},
{
"id": 37425,
"name": "الخلاصة البهية في ترتيب أحداث السيرة النبوية"
},
{
"id": 37426,
"name": "العلمانية - الليبرالية - الديمقراطية - الدولة المدنية في ميزان الإسلام"
},
{
"id": 37456,
"name": "نزهة النظر في توضيح نخبة الفكر - ت الرحيلي ط 3",
"pre": "نزهة النظر في توضيح نخبة الفكر",
"suf": "ت الرحيلي ط 3"
},
{
"id": 37458,
"name": "فتح البيان في مقاصد القرآن",
"q": "Q115787436"
},
{
"id": 37460,
"name": "الأمثال السائرة من شعر المتنبي",
"q": "Q133819850"
},
{
"id": 37461,
"name": "الروزنامجة"
},
{
"id": 37466,
"name": "إفادة الخبر بنصه في زيادة العمر ونقصه"
},
{
"id": 37468,
"name": "الإبانة عن سرقات المتنبي لفظا ومعنى"
},
{
"id": 37469,
"name": "الإتباع - أبو الطيب اللغوي"
},
{
"id": 37471,
"name": "التلخيص في معرفة أسماء الأشياء"
},
{
"id": 37473,
"name": "التيجان في ملوك حمير",
"q": "Q121009327"
},
{
"id": 37475,
"name": "الجامع الكبير في صناعة المنظوم من الكلام والمنثور"
},
{
"id": 37476,
"name": "الرد على النحاة"
},
{
"id": 37477,
"name": "السماع والقياس"
},
{
"id": 37478,
"name": "الشيعة والتشيع - فرق وتاريخ"
},
{
"id": 37481,
"name": "انبعاث الإسلام في الأندلس"
},
{
"id": 37482,
"name": "متن موطأة الفصيح نظم فصيح ثعلب"
},
{
"id": 37483,
"name": "تاريخ نزول القرآن"
},
{
"id": 37484,
"name": "تلخيص العبارة في نحو أهل الإشارة"
},
{
"id": 37486,
"name": "رسالة في الشاي والقهوة والدخان",
"q": "Q136645143"
},
{
"id": 37487,
"name": "شرح أبيات سيبويه"
},
{
"id": 37488,
"name": "شرح القصائد العشر"
},
{
"id": 37489,
"name": "ضرائر الشعر"
},
{
"id": 37491,
"name": "قشر الفسر"
},
{
"id": 37492,
"name": "كتاب الشعر أو شرح الأبيات المشكلة الإعراب"
},
{
"id": 37494,
"name": "لوعة الشاكي ودمعة الباكي"
},
{
"id": 37528,
"name": "عودة الصفويين"
},
{
"id": 37530,
"name": "نفحات من علوم القرآن"
},
{
"id": 37531,
"name": "موسوعة فقه القلوب"
},
{
"id": 37532,
"name": "موسوعة الفقه الإسلامي - التويجري"
},
{
"id": 37535,
"name": "التوصل إلى حقيقة التوسل"
},
{
"id": 37537,
"name": "الحجج الباهرة في إفحام الطائفة الكافرة الفاجرة"
},
{
"id": 37540,
"name": "الأدب الصغير ت خلف"
},
{
"id": 37541,
"name": "الحسام الممدود في الرد على اليهود"
},
{
"id": 37542,
"name": "حقيقة التأويل - ط أطلس",
"pre": "حقيقة التأويل",
"suf": "ط أطلس"
},
{
"id": 37545,
"name": "شرح زاد المستقنع - الشنقيطي - الطهارة ط الإفتاء"
},
{
"id": 37547,
"name": "الجامع لأحكام الصلاة - عادل بن سعد"
},
{
"id": 37548,
"name": "الشيعة والسنة"
},
{
"id": 37549,
"name": "بلوغ الغاية من تهذيب بداية الهداية"
},
{
"id": 37550,
"name": "الشيعة والقرآن"
},
{
"id": 37551,
"name": "إكمال تهذيب الكمال - التراجم الساقطة من حرف الحاء"
},
{
"id": 37552,
"name": "الشيعة وأهل البيت"
},
{
"id": 37553,
"name": "الرد على الدكتور عبد الواحد وافي في كتابه بين الشيعة وأهل السنة"
},
{
"id": 37554,
"name": "الرد على الرافضة أو القضاب المشتهر على رقاب ابن المطهر"
},
{
"id": 37555,
"name": "أحكام العقيقة"
},
{
"id": 37558,
"name": "كلمات مضيئة في الدعوة إلي الله"
},
{
"id": 37559,
"name": "شم العوارض في ذم الروافض"
},
{
"id": 37560,
"name": "إنتاج المستشرقين وأثره في الفكر الإسلامي الحديث"
},
{
"id": 37561,
"name": "إلى الإسلام من جديد"
},
{
"id": 37562,
"name": "تعريف عام بدين الإسلام"
},
{
"id": 37563,
"name": "مقتطفات من كتاب من روائع حضارتنا"
},
{
"id": 37566,
"name": "جالب السرور لربات الخدور"
},
{
"id": 37571,
"name": "منازل الحور العين في قلوب العارفين برب العالمين"
},
{
"id": 37572,
"name": "تأخير نصر الدين لطف بالمؤمنين ومكر بالكافرين والمنافقين"
},
{
"id": 37573,
"name": "عوائق في طريق العبودية"
},
{
"id": 37576,
"name": "إحسان خلق الإنسان"
},
{
"id": 37578,
"name": "ثمار يانعة وتعليقات نافعة"
},
{
"id": 37579,
"name": "عيوب تشييد البناء في دار الفناء"
},
{
"id": 37580,
"name": "دعوى الإصلاح"
},
{
"id": 37582,
"name": "أكثر من 1000 سنة في اليوم والليلة"
},
{
"id": 37585,
"name": "الصحيح من دعاء الحاج والمعتمر"
},
{
"id": 37586,
"name": "الوجوه والنظائر لأبي هلال العسكري - معتزلي"
},
{
"id": 37587,
"name": "طوق النجاة"
},
{
"id": 37588,
"name": "مشكلة الأفكار في العالم الإسلامي"
},
{
"id": 37590,
"name": "تحقيق المطالب بشرح دليل الطالب - المنياوي - قطعة من الطهارة"
},
{
"id": 37591,
"name": "التمهيد - شرح مختصر الأصول من علم الأصول"
},
{
"id": 37592,
"name": "موقف الجمهوريين من السنة النبوية"
},
{
"id": 37593,
"name": "دفاع عن السنة ورد شبه المستشرقين ط مجمع البحوث"
},
{
"id": 37595,
"name": "قادة الغرب يقولون دمروا الإسلام أبيدوا أهله"
},
{
"id": 37596,
"name": "فكرة كمنويلث إسلامي"
},
{
"id": 37602,
"name": "الشرح المختصر لنخبة الفكر"
},
{
"id": 37604,
"name": "الإبطال والرفض لعدوان من تجرأ على كشف الشبهات بالنقض"
},
{
"id": 37610,
"name": "جزء تحفة عيد الفطر"
},
{
"id": 37612,
"name": "في مهب المعركة"
},
{
"id": 37613,
"name": "الإسلام بين جهل أبنائه وعجز علمائه"
},
{
"id": 37614,
"name": "مقالات الإسلاميين ت ريتر"
},
{
"id": 37615,
"name": "الوافي في كيفية ترتيل القرآن الكريم"
},
{
"id": 37618,
"name": "المطالب العالية محققا"
},
{
"id": 37630,
"name": "الاجتهاد في مناط الحكم الشرعي دراسة تأصيلية تطبيقية"
},
{
"id": 37632,
"name": "نثار الأزهار في الليل والنهار"
},
{
"id": 37633,
"name": "نضرة البهار في محاورة الليل والنهار"
},
{
"id": 37635,
"name": "علم فهرسة الحديث"
},
{
"id": 37637,
"name": "ردة ولا ابا بكر لها - أبو الحسن الندوي"
},
{
"id": 37638,
"name": "السنة ومكانتها للسباعي ط المكتب الإسلامي"
},
{
"id": 37639,
"name": "السنة ومكانتها للسباعي ط الوراق"
},
{
"id": 37644,
"name": "علماء السلف وأهل الوقت"
},
{
"id": 37647,
"name": "المسلم في عالم الاقتصاد"
},
{
"id": 37649,
"name": "جامع البيان في القراءات السبع"
},
{
"id": 37650,
"name": "فكرة الإفريقية الآسيوية"
},
{
"id": 37651,
"name": "جلال الدين السيوطي عصره وحياته وآثاره وجهوده في الدرس اللغوي"
},
{
"id": 37652,
"name": "الأحاديث القدسية الأربعينية ت عبد العزيز مختار"
},
{
"id": 37653,
"name": "جمال القراء وكمال الإقراء - ت عبد الحق",
"pre": "جمال القراء وكمال الإقراء",
"suf": "ت عبد الحق"
},
{
"id": 37654,
"name": "جماليات المفردة القرآنية"
},
{
"id": 37659,
"name": "الدكتور علي جمعة إلى أين"
},
{
"id": 37676,
"name": "جمع القرآن - دراسة تحليلية لمروياته"
},
{
"id": 37680,
"name": "الجوانب الصوتية في كتب الاحتجاج للقراءات"
},
{
"id": 37682,
"name": "الحاكم الجشمي ومنهجه في التفسير"
},
{
"id": 37691,
"name": "الحديث في علوم القرآن والحديث"
},
{
"id": 37697,
"name": "دلائل الإعجاز ت هنداوي",
"pre": "دلائل الإعجاز"
},
{
"id": 37713,
"name": "الانتصارات الإسلامية في كشف شبه النصرانية"
},
{
"id": 37716,
"name": "المختار في الرد على النصارى"
},
{
"id": 37757,
"name": "مؤتمر النجف = الحجج القطعية لاتفاق الفرق الإسلامية"
},
{
"id": 37816,
"name": "الإخنائية أو الرد على الإخنائي ت زهوي",
"q": "Q115799280"
},
{
"id": 37824,
"name": "الخطوط العريضة للأسس التي قام عليها دين الشيعة الإمامية الاثني عشرية"
},
{
"id": 37826,
"name": "الرد على من ينكر حجية السنة"
},
{
"id": 37827,
"name": "وجهة العالم الإسلامي"
},
{
"id": 37831,
"name": "صلاح البيوت"
},
{
"id": 37834,
"name": "الناسخ والمنسوخ - أبو عبيد"
},
{
"id": 37837,
"name": "المختصر النصيح في تهذيب الكتاب الجامع الصحيح"
},
{
"id": 37886,
"name": "كف الرعاع عن محرمات اللهو والسماع"
},
{
"id": 37972,
"name": "دفاع عن السنة ورد شبه المستشرقين ط مكتبة السنة"
},
{
"id": 37973,
"name": "دراسات أصولية في القرآن الكريم"
},
{
"id": 37987,
"name": "المعجزة القرآنية حقائق علمية قاطعة"
},
{
"id": 37996,
"name": "علم التفسير كيف نشأ وتطور حتى انتهى إلى عصرنا الحاضر"
},
{
"id": 37998,
"name": "علوم القرآن عند الشاطبي من خلال كتابه الموافقات"
},
{
"id": 38000,
"name": "عون الحنان في شرح الأمثال في القرآن"
},
{
"id": 38007,
"name": "فقه قراءة القرآن"
},
{
"id": 38011,
"name": "فهارس علوم القرآن الكريم لمخطوطات دار الكتب الظاهرية"
},
{
"id": 38014,
"name": "في علوم القرآن دراسات ومحاضرات"
},
{
"id": 38020,
"name": "القراءات المتواترة وأثرها في الرسم القرآني والأحكام الشرعية"
},
{
"id": 38025,
"name": "القول السديد في علم التجويد",
"q": "Q120649334"
},
{
"id": 38031,
"name": "مدخل إلى تفسير القرآن وعلومه"
},
{
"id": 38032,
"name": "المدخل إلى علوم القرآن الكريم"
},
{
"id": 38033,
"name": "كيف تقرأ القرآن الكريم برواية الإمام قالون عن نافع المدني"
},
{
"id": 38039,
"name": "مباحث في علم القراءات مع بيان أصول رواية حفص"
},
{
"id": 38049,
"name": "المشترك اللفظي في الحقل القرآني"
},
{
"id": 38050,
"name": "المختصر المفيد في أحكام التجويد - بآخر مصحف القراءات والتجويد"
},
{
"id": 38067,
"name": "معجم حفاظ القرآن عبر التاريخ"
},
{
"id": 38068,
"name": "معجم علوم القرآن",
"q": "Q120998379"
},
{
"id": 38071,
"name": "مفاتيح للتعامل مع القرآن"
},
{
"id": 38075,
"name": "الوافي في شرح الشاطبية",
"q": "Q115769953"
},
{
"id": 38076,
"name": "مقدمات في علم القراءات"
},
{
"id": 38080,
"name": "المكرر في ما تواتر من القراءات السبع وتحرر",
"q": "Q125904028"
},
{
"id": 38085,
"name": "من بلاغة القرآن"
},
{
"id": 38086,
"name": "من روائع القرآن"
},
{
"id": 38091,
"name": "منار الهدى في بيان الوقف والابتدا ومعه المقصد لتلخيص ما في المرشد"
},
{
"id": 38092,
"name": "المنار في علوم القرآن مع مدخل في أصول التفسير ومصادره"
},
{
"id": 38093,
"name": "مناهج المفسرين"
},
{
"id": 38095,
"name": "منهج الإمام الطاهر بن عاشور في التفسير"
},
{
"id": 38099,
"name": "موسوعة التفسير قبل عهد التدوين"
},
{
"id": 38100,
"name": "الخطر اليهودي بروتوكولات حكماء صهيون"
},
{
"id": 38103,
"name": "موسوعة علوم القرآن"
},
{
"id": 38104,
"name": "الميزان في أحكام تجويد القرآن"
},
{
"id": 38107,
"name": "معالم مكة التأريخية والأثرية"
},
{
"id": 38112,
"name": "النسخ عند الفخر الرازي"
},
{
"id": 38114,
"name": "اللؤلؤ المكنون في سيرة النبي المأمون"
},
{
"id": 38121,
"name": "نواسخ القرآن = ناسخ القرآن ومنسوخه ت آل زهوي"
},
{
"id": 38131,
"name": "وظيفة الصورة الفنية في القرآن"
},
{
"id": 38133,
"name": "جواهر قرآنية 1000 سؤال وجواب في القرآن"
},
{
"id": 38149,
"name": "نحو مير = مبادئ قواعد اللغة العربية"
},
{
"id": 38152,
"name": "الدين المعاملة"
},
{
"id": 38155,
"name": "مجموعة القصائد الزهديات"
},
{
"id": 38157,
"name": "رسالة في فضل الخلفاء الراشدين"
},
{
"id": 38158,
"name": "مراصد المطالع في تناسب المقاطع والمطالع"
},
{
"id": 38159,
"name": "الرحلة التتويجية لعاصمة البلاد الإنجليزية"
},
{
"id": 38160,
"name": "التنبيه على الألفاظ في الغريبين"
},
{
"id": 38161,
"name": "تحفة الإخوان بما جاء في الموالاة والمعاداة والحب والبغض والهجران"
},
{
"id": 38162,
"name": "السيوف البواتر لمن يقدم صلاة الصبح على الفجر الآخر"
},
{
"id": 38171,
"name": "تخريج أحاديث إحياء علوم الدين"
},
{
"id": 38186,
"name": "كشف أسرار الباطنية وأخبار القرامطة"
},
{
"id": 38188,
"name": "هل افتدانا المسيح على الصليب"
},
{
"id": 38189,
"name": "هل العهد الجديد كلمة الله"
},
{
"id": 38190,
"name": "هل العهد القديم كلمة الله"
},
{
"id": 38191,
"name": "هل بشر الكتاب المقدس بمحمد صلى الله عليه وسلم"
},
{
"id": 38193,
"name": "مجموع فيه مصنفات أبي الحسن ابن الحمامي وأجزاء حديثية أخرى"
},
{
"id": 38194,
"name": "مجموع فيه مصنفات أبي العباس الأصم وإسماعيل الصفار"
},
{
"id": 38209,
"name": "مذكرات شاهد للقرن"
},
{
"id": 38212,
"name": "قواعد الإملاء"
},
{
"id": 38213,
"name": "أحكام النساء - مستخلصا من كتب الألباني"
},
{
"id": 38740,
"name": "شرح طيبة النشر للنويري"
},
{
"id": 39268,
"name": "المدخل إلى السنن الكبرى - البيهقي - ت عوامة"
},
{
"id": 73353,
"name": "موجز التاريخ الإسلامي من عهد آدم إلى عصرنا الحاضر",
"q": "Q114356578"
},
{
"id": 95526,
"name": "التضمين النحوي في القرآن الكريم"
},
{
"id": 95559,
"name": "المحرر في أسباب نزول القرآن من خلال الكتب التسعة"
},
{
"id": 95560,
"name": "المعاني البديعة في معرفة اختلاف أهل الشريعة"
},
{
"id": 95563,
"name": "أحكام النساء - من «الجامع» للخلال"
},
{
"id": 95564,
"name": "التذهيب في أدلة متن الغاية والتقريب"
},
{
"id": 95565,
"name": "التقييد الكبير للبسيلي"
},
{
"id": 95566,
"name": "التكفير وضوابطه - السقار"
},
{
"id": 95567,
"name": "الحوار مع أتباع الأديان - مشروعيته وآدابه"
},
{
"id": 95569,
"name": "القراءات وأثرها في علوم العربية"
},
{
"id": 95570,
"name": "الله جل جلاله واحد أم ثلاثة"
},
{
"id": 95571,
"name": "المجيد في إعراب القرآن المجيد"
},
{
"id": 95574,
"name": "تنزيه القرآن الكريم عن دعاوى المبطلين"
},
{
"id": 95575,
"name": "جيش التوشيح"
},
{
"id": 95576,
"name": "حكمة الإشراق إلى كتاب الآفاق - ط المدني",
"pre": "حكمة الإشراق إلى كتاب الآفاق",
"suf": "ط المدني"
},
{
"id": 95577,
"name": "شرح الشاطبية سراج القارئ المبتدي وتذكار المقرئ المنتهي"
},
{
"id": 95578,
"name": "فتاوى قاضي الجماعة ابن سراج الأندلسي"
},
{
"id": 95580,
"name": "مسائل منثورة في التفسير والعربية والمعاني"
},
{
"id": 95581,
"name": "مطمح الأنفس ومسرح التأنس في ملح أهل الأندلس"
},
{
"id": 95584,
"name": "الأفعال الناسخة"
},
{
"id": 95585,
"name": "شرح النظم الجامع لقراءة الإمام نافع"
},
{
"id": 95590,
"name": "تفسير الماتريدي = تأويلات أهل السنة"
},
{
"id": 95661,
"name": "جواهر الدرر في نظم مبادئ أصول ابن باديس الأبر"
},
{
"id": 95662,
"name": "التحالف السياسي في الإسلام"
},
{
"id": 95667,
"name": "الدين العالمي ومنهج الدعوة إليه"
},
{
"id": 95692,
"name": "الاقتراح في أصول النحو ط البيروتي"
},
{
"id": 95695,
"name": "الشفاعة في الحديث النبوي"
},
{
"id": 95696,
"name": "الوسيط في تراجم أدباء شنقيط",
"q": "Q126871669"
},
{
"id": 95700,
"name": "شأن الدعاء"
},
{
"id": 95735,
"name": "مجموع رسائل ابن رجب"
},
{
"id": 95829,
"name": "مناهل الصفا في تخريج أحاديث الشفا"
},
{
"id": 95843,
"name": "ديوان محمد العيد آل خليفة"
},
{
"id": 95845,
"name": "السنة المفترى عليها"
},
{
"id": 95860,
"name": "شرح لامية العجم للدميري",
"q": "Q125473200"
},
{
"id": 95864,
"name": "الكوكب الزهري نظم مختصر الأخضري"
},
{
"id": 95865,
"name": "الدرة السنية منظومة في علم الفرائض"
},
{
"id": 95866,
"name": "اللؤلؤ المنظوم في نظم منثور ابن آجروم"
},
{
"id": 95991,
"name": "الدفاع عن السنة - جامعة المدينة (بكالوريوس)"
},
{
"id": 95992,
"name": "الدفاع عن السنة - جامعة المدينة (ماجستير)"
},
{
"id": 96159,
"name": "الشناعة على من رد أحاديث الشفاعة"
},
{
"id": 96165,
"name": "الثقات ممن لم يقع في الكتب الستة"
},
{
"id": 96174,
"name": "الإسلام وأوضاعنا القانونية"
},
{
"id": 96175,
"name": "التحفة الوسيمة شرح على الدرة اليتيمة"
},
{
"id": 96177,
"name": "الجواهر الكنزية لنظم ما جمع في العزية"
},
{
"id": 96178,
"name": "السنة قبل التدوين"
},
{
"id": 96179,
"name": "الغصن الداني في ترجمة وحياة الشيخ عبد الرحمن التنلاني"
},
{
"id": 96180,
"name": "العواصم من القواصم ت الطالبي"
},
{
"id": 96228,
"name": "التكميل في الجرح والتعديل ومعرفة الثقات والضعفاء والمجاهيل"
},
{
"id": 96229,
"name": "علوم الحديث ومصطلحه"
},
{
"id": 96230,
"name": "الاتجاهات العامة للاجتهاد ومكانة الحديث الآحادي الصحيح فيها"
},
{
"id": 96231,
"name": "الإحكام شرح أصول الأحكام لابن قاسم"
},
{
"id": 96232,
"name": "الإيضاح في مناسك الحج والعمرة"
},
{
"id": 96233,
"name": "تجريد الأسماء والكنى المذكورة في كتاب المتفق والمفترق"
},
{
"id": 96236,
"name": "ذيل لب اللباب في تحرير الأنساب",
"q": "Q117338046"
},
{
"id": 96237,
"name": "صحيح القصص النبوي للحويني"
},
{
"id": 96239,
"name": "بهجة المحافل وأجمل الوسائل بالتعريف برواة الشمائل"
},
{
"id": 96241,
"name": "آفات اللسان"
},
{
"id": 96242,
"name": "أحكام الألفاظ وأحكام الطلاق والأيمان والنذور"
},
{
"id": 96243,
"name": "أحكام الهجر والهجرة في الإسلام"
},
{
"id": 96244,
"name": "القبلية في ميزان الشرع وحقيقة تكافؤ النسب في الزواج."
},
{
"id": 96245,
"name": "المسلم وحقوق الآخرين"
},
{
"id": 96246,
"name": "الولاء والبراء والعداء في الإسلام"
},
{
"id": 96247,
"name": "بسط القول والإسهاب في بيان حكم مودة المؤمن للكافر"
},
{
"id": 96249,
"name": "شفاء الضرر بفهم التوكل والقضاء والقدر"
},
{
"id": 96250,
"name": "فقه الابتلاء وأقدار الله المؤلمة"
},
{
"id": 96251,
"name": "فقه الدعوة إلى الله والأمر بالمعروف والنهي عن المنكر"
},
{
"id": 96252,
"name": "معالم الطريق إلى الله"
},
{
"id": 96254,
"name": "نحو ثقافة إسلامية أصيلة"
},
{
"id": 96257,
"name": "النوادر والزيادات على ما في المدونة من غيرها من الأمهات"
},
{
"id": 96262,
"name": "الإسعاف فى أحكام الأوقاف"
},
{
"id": 96265,
"name": "شخصية المسلم كما يصوغها الإسلام في الكتاب والسنة"
},
{
"id": 96269,
"name": "دلالة الاقتران ووجه الاحتجاج بها عند الأصوليين"
},
{
"id": 96270,
"name": "تفنيد الشبهات حول ميراث المرأة في الإسلام"
},
{
"id": 96272,
"name": "الولاء والبراء في الإسلام - البركاتي"
},
{
"id": 96276,
"name": "قبسات من هدي النبي في رمضان"
},
{
"id": 96277,
"name": "مسائل أجاب عنها الحافظ ابن حجر العسقلاني"
},
{
"id": 96278,
"name": "علو الهمة"
},
{
"id": 96283,
"name": "التجريد الصريح لأحاديث الجامع الصحيح",
"q": "Q124619235"
},
{
"id": 96296,
"name": "العذب النمير من مجالس الشنقيطي في التفسير"
},
{
"id": 96299,
"name": "خواطر حول الوهابية"
},
{
"id": 96301,
"name": "الموسوعة القرآنية المتخصصة"
},
{
"id": 96334,
"name": "فتاوى الحج"
},
{
"id": 96335,
"name": "ديوان الشيخ أحمد سحنون"
},
{
"id": 96336,
"name": "منكرات الأفراح"
},
{
"id": 96337,
"name": "السيوف المشرقة ومختصر الصواقع المحرقة"
},
{
"id": 96338,
"name": "العثمانية"
},
{
"id": 96450,
"name": "ورد الصباح والمساء من الكتاب والسنة"
},
{
"id": 96451,
"name": "أبراج الزجاج في سيرة الحجاج"
},
{
"id": 96452,
"name": "إجابة النداء"
},
{
"id": 96453,
"name": "أحكام الجنائز"
},
{
"id": 96454,
"name": "أركان الصلاة"
},
{
"id": 96455,
"name": "آفات اللسان في ضوء الكتاب والسنة"
},
{
"id": 96456,
"name": "الاختلاط بين الرجال والنساء"
},
{
"id": 96457,
"name": "الأذان والإقامة"
},
{
"id": 96458,
"name": "الاعتصام بالكتاب والسنة أصل السعادة في الدنيا والآخرة ونجاة من مضلات الفتن"
},
{
"id": 96459,
"name": "الإمامة في الصلاة"
},
{
"id": 96460,
"name": "الثمر المجتنى مختصر شرح أسماء الله الحسنى في ضوء الكتاب والسنة"
},
{
"id": 96461,
"name": "الجنة والنار من الكتاب والسنة المطهرة"
},
{
"id": 96462,
"name": "الجهاد في سبيل الله تعالى"
},
{
"id": 96463,
"name": "الخشوع في الصلاة في ضوء الكتاب والسنة"
},
{
"id": 96464,
"name": "الخلق الحسن في ضوء الكتاب والسنة"
},
{
"id": 96465,
"name": "الربا"
},
{
"id": 96466,
"name": "الزكاة في الإسلام في ضوء الكتاب والسنة"
},
{
"id": 96467,
"name": "الصيام في الإسلام في ضوء الكتاب والسنة"
},
{
"id": 96468,
"name": "العروة الوثقى في ضوء الكتاب والسنة"
},
{
"id": 96469,
"name": "العلاج بالرقى من الكتاب والسنة"
},
{
"id": 96470,
"name": "العلاقة المثلى بين الدعاة ووسائل الإتصال الحديثة في ضوء الكتاب والسنة"
},
{
"id": 96471,
"name": "العمرة والحج والزيارة في ضوء الكتاب والسنة"
},
{
"id": 96472,
"name": "الغفلة"
},
{
"id": 96473,
"name": "الغناء والمعازف في ضوء الكتاب والسنة وآثار الصحابة - رضي الله عنهم -"
},
{
"id": 96474,
"name": "الفوز العظيم والخسران المبين في ضوء الكتاب والسنة"
},
{
"id": 96475,
"name": "المساجد"
},
{
"id": 96476,
"name": "المفاهيم الصحيحة للجهاد في سبيل الله تعالى في ضوء الكتاب والسنة"
},
{
"id": 96477,
"name": "النور والظلمات في ضوء الكتاب والسنة"
},
{
"id": 96478,
"name": "الهدي النبوي في تربية الأولاد في ضوء الكتاب والسنة"
},
{
"id": 96479,
"name": "أنواع الصبر ومجالاته"
},
{
"id": 96480,
"name": "بر الوالدين - ابن وهف"
},
{
"id": 96481,
"name": "بيان عقيدة أهل السنة والجماعة ولزوم اتباعها في ضوء الكتاب والسنة"
},
{
"id": 96482,
"name": "تبريد حرارة المصيبة عند موت الأحباب وفقد ثمرات الأفئدة وفلذات الأكباد في ضوء الكتاب والسنة"
},
{
"id": 96483,
"name": "ثواب القرب المهداة إلى أموات المسلمين"
},
{
"id": 96484,
"name": "رمي الجمرات في ضوء الكتاب والسنة وآثار الصحابة رضي الله عنهم"
},
{
"id": 96485,
"name": "زكاة الأثمان"
},
{
"id": 96486,
"name": "زكاة الخارج من الأرض"
},
{
"id": 96487,
"name": "زكاة الفطر"
},
{
"id": 96488,
"name": "زكاة بهيمة الأنعام السائمة"
},
{
"id": 96489,
"name": "زكاة عروض التجارة والأسهم والسندات"
},
{
"id": 96490,
"name": "سجود السهو"
},
{
"id": 96491,
"name": "سلامة الصدر"
},
{
"id": 96492,
"name": "سيرة الشاب الصالح عبد الرحمن بن سعيد بن علي بن وهف القحطاني"
},
{
"id": 96493,
"name": "شرح أسماء الله الحسنى في ضوء الكتاب والسنة"
},
{
"id": 96494,
"name": "شرح العقيدة الواسطية - ابن وهف"
},
{
"id": 96495,
"name": "شرح حصن المسلم من أذكار الكتاب والسنة"
},
{
"id": 96496,
"name": "شروط الدعاء وموانع الإجابة في ضوء الكتاب والسنة"
},
{
"id": 96497,
"name": "شروط الصلاة في ضوء الكتاب والسنة"
},
{
"id": 96498,
"name": "صدقة التطوع في الإسلام"
},
{
"id": 96500,
"name": "صلاة التطوع"
},
{
"id": 96501,
"name": "صلاة الجماعة"
},
{
"id": 96502,
"name": "صلاة الجمعة"
},
{
"id": 96503,
"name": "صلاة الخوف"
},
{
"id": 96504,
"name": "صلاة العيدين"
},
{
"id": 96505,
"name": "صلاة الكسوف"
},
{
"id": 96506,
"name": "صلاة المريض"
},
{
"id": 96508,
"name": "صلة الأرحام"
},
{
"id": 96509,
"name": "طهور المسلم في ضوء الكتاب والسنة"
},
{
"id": 96510,
"name": "عظمة القرآن وتعظيمه وأثره في النفوس في ضوء الكتاب والسنة"
},
{
"id": 96511,
"name": "غزوة فتح مكة في ضوء السنة المطهرة"
},
{
"id": 96512,
"name": "فضائل الصيام وقيام صلاة التراويح"
},
{
"id": 96513,
"name": "قرة عيون المصلين في بيان صفة صلاة المحسنين من التكبير إلى التسليم في ضوء الكتاب والسنة"
},
{
"id": 96514,
"name": "قضية التكفير بين أهل السنة وفرق الضلال في ضوء الكتاب والسنة"
},
{
"id": 96515,
"name": "قيام الليل لسعيد بن وهف القحطاني"
},
{
"id": 96516,
"name": "كيفية دعوة الملحدين إلى الله تعالى في ضوء الكتاب والسنة"
},
{
"id": 96517,
"name": "كيفية دعوة الوثنيين إلى الله تعالى في ضوء الكتاب والسنة"
},
{
"id": 96518,
"name": "كيفية دعوة أهل الكتاب إلى الله تعالى في ضوء الكتاب والسنة"
},
{
"id": 96519,
"name": "كيفية دعوة عصاة المسلمين إلى الله تعالى في ضوء الكتاب والسنة"
},
{
"id": 96520,
"name": "مجموع رسائل عبد الرحمن بن وهف القحطاني"
},
{
"id": 96521,
"name": "مرشد المعتمر والحاج والزائر في ضوء الكتاب والسنة"
},
{
"id": 96522,
"name": "مصارف الزكاة في الإسلام"
},
{
"id": 96523,
"name": "مفهوم الحكمة في الدعوة إلى الله تعالى في ضوء الكتاب والسنة"
},
{
"id": 96524,
"name": "مقومات الداعية الناجح في ضوء الكتاب والسنة"
},
{
"id": 96525,
"name": "مكفرات الذنوب والخطايا وأسباب المغفرة من الكتاب والسنة"
},
{
"id": 96526,
"name": "من أحكام سورة المائدة"
},
{
"id": 96527,
"name": "منزلة الزكاة في الإسلام"
},
{
"id": 96529,
"name": "مواقف التابعين وأتباعهم في الدعوة إلى الله تعالى"
},
{
"id": 96530,
"name": "مواقف الصحابة - رضي الله عنهم - في الدعوة إلى الله تعالى"
},
{
"id": 96531,
"name": "مواقف العلماء عبر العصور في الدعوة إلى الله تعالى"
},
{
"id": 96532,
"name": "مواقف النبي - صلى الله عليه وسلم - في الدعوة إلى الله تعالى"
},
{
"id": 96533,
"name": "مواقف لا تنسى - من سيرة والدتي رحمها الله"
},
{
"id": 96534,
"name": "نور الإخلاص وظلمات إرادة الدنيا بعمل الآخرة في ضوء الكتاب والسنة"
},
{
"id": 96535,
"name": "نور الإسلام وظلمات الكفر في ضوء الكتاب والسنة"
},
{
"id": 96536,
"name": "نور الإيمان وظلمات النفاق في ضوء الكتاب والسنة"
},
{
"id": 96537,
"name": "نور التقوى وظلمات المعاصي في ضوء الكتاب والسنة"
},
{
"id": 96538,
"name": "نور التوحيد وظلمات الشرك في ضوء الكتاب والسنة"
},
{
"id": 96539,
"name": "نور السنة وظلمات البدعة في ضوء الكتاب والسنة"
},
{
"id": 96540,
"name": "نور الشيب وحكم تغييره في ضوء الكتاب والسنة"
},
{
"id": 96541,
"name": "نور الهدى وظلمات الضلال في ضوء الكتاب والسنة"
},
{
"id": 96542,
"name": "وداع الرسول صلى الله عليه وسلم لأمته"
},
{
"id": 96546,
"name": "عقيدة المسلم في ضوء الكتاب والسنة"
},
{
"id": 96547,
"name": "مناسك الحج والعمرة في الإسلام في ضوء الكتاب والسنة"
},
{
"id": 96548,
"name": "إظهار الحق والصواب في حكم الحجاب"
},
{
"id": 96549,
"name": "شرح الدعاء من الكتاب والسنة"
},
{
"id": 96550,
"name": "صلاة المؤمن"
},
{
"id": 96551,
"name": "مختصر تلخيص الذهبي لمستدرك الحاكم"
},
{
"id": 96556,
"name": "المال والحكم في الإسلام"
},
{
"id": 96557,
"name": "دراسات وتوجيهات إسلامية",
"q": "Q125505039"
},
{
"id": 96559,
"name": "الإسلام وأوضاعنا السياسية"
},
{
"id": 96603,
"name": "معجم أعلام الجزائر",
"q": "Q121003792"
},
{
"id": 96604,
"name": "مكانة الإمام أبي حنيفة في الحديث"
},
{
"id": 96605,
"name": "نظرة تاريخية في حدوث المذاهب الفقهية الأربعة"
},
{
"id": 96606,
"name": "اختلاف أبي حنيفة وابن أبي ليلى"
},
{
"id": 96607,
"name": "الغارة على العالم الإسلامي"
},
{
"id": 96608,
"name": "الفصيح"
},
{
"id": 96609,
"name": "علل الحديث - الفلاس"
},
{
"id": 96610,
"name": "شرح الأزهرية"
},
{
"id": 96611,
"name": "عنوان الدراية فيمن عرف من العلماء في المائة السابعة ببجاية"
},
{
"id": 96612,
"name": "العلمانية - نشأتها وتطورها"
},
{
"id": 96615,
"name": "مجمع الزوائد ومنبع الفوائد ت حسين أسد"
},
{
"id": 96616,
"name": "أصول بلا أصول"
},
{
"id": 96617,
"name": "الإعلام بحرمة أهل العلم والإسلام"
},
{
"id": 96618,
"name": "شرح ألفية العراقي - ابن العيني"
},
{
"id": 96629,
"name": "مفردات القرآن للفراهي"
},
{
"id": 96720,
"name": "حملة الأوغاد على خير العباد"
},
{
"id": 96721,
"name": "رحمة للعالمين - سعيد بن وهف"
},
{
"id": 96722,
"name": "السلفيون وحوار هادئ مع الدكتور علي جمعة"
},
{
"id": 96753,
"name": "تفسير ابن عرفة النسخة الكاملة"
},
{
"id": 96768,
"name": "السبحة تاريخها وحكمها"
},
{
"id": 96770,
"name": "متن شذور الذهب"
},
{
"id": 96782,
"name": "الشفاعة",
"q": "Q115787434"
},
{
"id": 96783,
"name": "المقترح في أجوبة بعض أسئلة المصطلح",
"q": "Q123281719"
},
{
"id": 96784,
"name": "تحفة المجيب على أسئلة الحاضر والغريب",
"q": "Q123281740"
},
{
"id": 96785,
"name": "ردود أهل العلم على الطاعنين في حديث السحر",
"q": "Q123281757"
},
{
"id": 96786,
"name": "غارة الفصل على المعتدين على كتب العلل",
"q": "Q123281773"
},
{
"id": 96787,
"name": "مجموعة رسائل علمية",
"q": "Q123281787"
},
{
"id": 96788,
"name": "مشاهداتي في المملكة العربية السعودية",
"q": "Q123281797"
},
{
"id": 96789,
"name": "مقتل الشيخ جميل الرحمن الأفغاني",
"q": "Q123281817"
},
{
"id": 96842,
"name": "الباعث على شرح الحوادث",
"q": "Q123281826"
},
{
"id": 96844,
"name": "المسائل الماردينية"
},
{
"id": 96845,
"name": "تنبيه المؤمن الأواه بفضائل لا إله إلا الله"
},
{
"id": 96850,
"name": "البدعة الشرعية"
},
{
"id": 96855,
"name": "مهارات التواصل مع الأولاد"
},
{
"id": 96856,
"name": "ألفية أم المؤمنين عائشة - الروضة الأنيقة في نصرة العفيفة الصديقة"
},
{
"id": 96857,
"name": "من أجل التغيير"
},
{
"id": 96858,
"name": "مذكرة على العقيدة الواسطية - العثيمين"
},
{
"id": 96868,
"name": "نشر الصحيفة في ذكر الصحيح من أقوال أئمة الجرح والتعديل في أبي حنيفة",
"q": "Q123281884"
},
{
"id": 96876,
"name": "نيل المآرب بشرح دليل الطالب",
"q": "Q135574893"
},
{
"id": 96878,
"name": "مفتاح السعيدية في شرح الألفية الحديثية"
},
{
"id": 96879,
"name": "الأخلاق الزكية في آداب الطالب المرضية"
},
{
"id": 96881,
"name": "معجم وتفسير لغوى لكلمات القرآن"
},
{
"id": 96882,
"name": "قيمة الزمن عند العلماء"
},
{
"id": 96917,
"name": "لعنة جماعة الأمة القبطية"
},
{
"id": 96918,
"name": "موسوعة الأخلاق والزهد والرقائق"
},
{
"id": 96922,
"name": "علماء المغرب ومقاومتهم للبدع والتصوف والقبورية والمواسم"
},
{
"id": 96924,
"name": "العلمانية والمذهب المالكي"
},
{
"id": 96925,
"name": "التوسط بين مالك وابن القاسم في المسائل التي اختلفا فيها من مسائل المدونة"
},
{
"id": 96926,
"name": "الإلحاد الخميني في أرض الحرمين"
},
{
"id": 96927,
"name": "العلمانيون العرب وموقفهم من الإسلام"
},
{
"id": 96928,
"name": "رد الجميل في الذب عن إرواء الغليل"
},
{
"id": 96930,
"name": "إقامة الدليل على علو رتبة إرواء الغليل"
},
{
"id": 96931,
"name": "العلمانية المفهوم والمظاهر والأسباب"
},
{
"id": 96939,
"name": "حكم الغناء في مذهب المالكية"
},
{
"id": 96948,
"name": "الانتهاء لمعرفة الأحاديث التي لم يفت بها الفقهاء"
},
{
"id": 96955,
"name": "ديوان الضعفاء"
},
{
"id": 96956,
"name": "ذيل ديوان الضعفاء"
},
{
"id": 96958,
"name": "إعانة الطالب في بداية علم الفرائض"
},
{
"id": 96963,
"name": "التذييل علي كتب الجرح والتعديل"
},
{
"id": 96964,
"name": "وا محمداه إن شانئك هو الأبتر"
},
{
"id": 96966,
"name": "عجالة المبتدي وفضالة المنتهي في النسب"
},
{
"id": 97799,
"name": "المطالع النصرية للمطابع المصرية في الأصول الخطية"
},
{
"id": 97802,
"name": "ملحمة حر"
},
{
"id": 97803,
"name": "عقود الجمان في علم المعاني والبيان"
},
{
"id": 97806,
"name": "عقيدة السلف - مقدمة أبي زيد القيرواني لكتابه الرسالة"
},
{
"id": 97808,
"name": "مقاصد المكلفين فيما يتعبد به لرب العالمين"
},
{
"id": 97809,
"name": "حاشية اللبدي على نيل المآرب",
"q": "Q131596850"
},
{
"id": 97927,
"name": "قانون التأويل"
},
{
"id": 97928,
"name": "عجالة الإملاء على الترغيب والترهيب - ط المعارف - ناقصة",
"q": "Q131901211"
},
{
"id": 97932,
"name": "ما شاع ولم يثبت في السيرة النبوية"
},
{
"id": 97933,
"name": "سبل السلام من صحيح سيرة خير الأنام عليه الصلاة والسلام",
"q": "Q124646473"
},
{
"id": 97958,
"name": "الأنس بذكر الله"
},
{
"id": 98083,
"name": "فصول البدائع في أصول الشرائع"
},
{
"id": 98084,
"name": "بصائر في الفتن"
},
{
"id": 98086,
"name": "الوجيز في فقه السنة والكتاب العزيز"
},
{
"id": 98087,
"name": "مختصر منهاج القاصدين"
},
{
"id": 98088,
"name": "أصول الوصول إلى الله تعالى"
},
{
"id": 98089,
"name": "كيف أتوب"
},
{
"id": 98093,
"name": "الداء والدواء = الجواب الكافي - ط عطاءات العلم",
"pre": "الداء والدواء",
"q": "Q115794928"
},
{
"id": 98096,
"name": "الدروس اليومية من السنن والأحكام الشرعية"
},
{
"id": 98119,
"name": "أدلة تحريم حلق اللحية"
},
{
"id": 98121,
"name": "وقفات مع قضايا معاصرة شبهات ردود"
},
{
"id": 98123,
"name": "شواهد التوضيح والتصحيح لمشكلات الجامع الصحيح",
"q": "Q115943338"
},
{
"id": 98124,
"name": "فيض الباري على صحيح البخاري",
"q": "Q125885551"
},
{
"id": 98126,
"name": "موارد الظمآن إلى زوائد ابن حبان - ت حسين أسد"
},
{
"id": 98127,
"name": "الأخوة أيها الإخوة"
},
{
"id": 98135,
"name": "اللحية لماذا"
},
{
"id": 98137,
"name": "منطلقات طالب العلم"
},
{
"id": 98138,
"name": "سنن ابن ماجه - ت الأرنؤوط",
"pre": "سنن ابن ماجه",
"suf": "ت الأرنؤوط",
"q": "Q133824209"
},
{
"id": 98139,
"name": "مسند أحمد - ت شاكر - ط دار الحديث",
"pre": "مسند أحمد",
"suf": "ت أحمد شاكر",
"q": "Q116878582"
},
{
"id": 98141,
"name": "عودوا الى خير الهدي"
},
{
"id": 105571,
"name": "مشارق الأنوار على صحاح الآثار - ط العلمية",
"pre": "مشارق الأنوار على صحاح الآثار"
},
{
"id": 115098,
"name": "التفسير الوسيط - مجمع البحوث",
"q": "Q117720372"
},
{
"id": 115119,
"name": "إتحاف القاري بسد بياضات فتح الباري",
"q": "Q133502035"
},
{
"id": 115120,
"name": "الإخاء الديني ومجمع الأديان وموقف الإسلام"
},
{
"id": 115121,
"name": "الإسلام ومواجهة المذاهب الهدامة"
},
{
"id": 115122,
"name": "الإمام المازري"
},
{
"id": 115123,
"name": "أخبار مكة - الأزرقي - ت ابن دهيش",
"pre": "أخبار مكة - الأزرقي"
},
{
"id": 115127,
"name": "الدلالات العقدية للآيات الكونية"
},
{
"id": 115129,
"name": "التيسير في أحاديث التفسير"
},
{
"id": 115130,
"name": "تاريخ الزواوة"
},
{
"id": 115131,
"name": "سهام الإسلام"
},
{
"id": 115132,
"name": "في سبيل العقيدة الإسلامية"
},
{
"id": 115133,
"name": "كتاب التوحيد المسمى التخلي عن التقليد والتحلي بالأصل المفيد"
},
{
"id": 115134,
"name": "الاعتصام بالإسلام"
},
{
"id": 117359,
"name": "سنن أبي داود - ت الأرنؤوط",
"pre": "سنن أبي داود",
"suf": "ت الأرنؤوط",
"q": "Q115743500"
},
{
"id": 117360,
"name": "أهل الفترة ومن في حكمهم"
},
{
"id": 117361,
"name": "التبشير والاستعمار في البلاد العربية عرض لجهود المبشرين التي ترمي إلى اخضاع الشرق للاستعمار الغربي"
},
{
"id": 117366,
"name": "أخبار فخ وخبر يحيي بن عبد الله وأخيه إدريس بن عبد الله"
},
{
"id": 119492,
"name": "الإشراف على مذاهب العلماء لابن المنذر",
"pre": "«الإشراف» لابن المنذر"
},
{
"id": 120139,
"name": "إتحاف المطالع بوفيات أعلام القرن الثالث عشر والرابع"
},
{
"id": 120141,
"name": "أسماء خيل العرب وأنسابها وذكر فرسانها",
"q": "Q121076167"
},
{
"id": 120143,
"name": "أعلام المغرب والأندلس في القرن الثامن"
},
{
"id": 120145,
"name": "إنباء الأمراء بأنباء الوزراء"
},
{
"id": 120146,
"name": "أنس المسجون وراحة المحزون"
},
{
"id": 120922,
"name": "أمالي ابن الشجري ت الطناحي",
"q": "Q125490816"
},
{
"id": 121373,
"name": "المنهاج المختصر في علمي النحو والصرف"
},
{
"id": 121374,
"name": "إمتاع الفضلاء بتراجم القراء فيما بعد القرن الثامن الهجري"
},
{
"id": 121375,
"name": "حصوننا مهددة من داخلها"
},
{
"id": 121376,
"name": "شرح التلقين"
},
{
"id": 121378,
"name": "التنبيه على مبادئ التوجيه - قسم العبادات"
},
{
"id": 121380,
"name": "موسوعة الأخلاق - الخراز"
},
{
"id": 121381,
"name": "مختصر صحيح الإمام البخاري"
},
{
"id": 121382,
"name": "صحيح ابن خزيمة ط 3"
},
{
"id": 122091,
"name": "العقيدة السلفية فى كلام رب البرية وكشف أباطيل المبتدعة الردية"
},
{
"id": 122096,
"name": "التنوير شرح الجامع الصغير"
},
{
"id": 122142,
"name": "تشنيف المسامع بجمع الجوامع"
},
{
"id": 122170,
"name": "تحرير النشر = إتحاف البررة بما سكت عنه نشر العشرة"
},
{
"id": 122171,
"name": "أحكام التيمم دراسة فقهية مقارنة"
},
{
"id": 122173,
"name": "درج الدرر في تفسير الآي والسور ط الحكمة"
},
{
"id": 122187,
"name": "درج الدرر في تفسير الآي والسور ط الفكر"
},
{
"id": 122231,
"name": "استدراك وتعقيب على الشيخ شعيب الأرنؤوط في تأويله بعض أحاديث الصفات"
},
{
"id": 122232,
"name": "الواضح في أصول الفقه"
},
{
"id": 122234,
"name": "الكافية في علم النحو"
},
{
"id": 122235,
"name": "الشافية في علمي التصريف والخط"
},
{
"id": 122236,
"name": "الإشارة إلى سيرة المصطفى وتاريخ من بعده من الخلفا"
},
{
"id": 122237,
"name": "أخبار سلاجقة الروم = مختصر سلجوقنامه",
"q": "Q121010185"
},
{
"id": 122255,
"name": "أشرف الوسائل إلى فهم الشمائل"
},
{
"id": 122256,
"name": "أصول الفقه - ابن مفلح"
},
{
"id": 122257,
"name": "شرح المشكاة للطيبي الكاشف عن حقائق السنن",
"q": "Q124370651"
},
{
"id": 122392,
"name": "الاتجاهات الفقهية عند أصحاب الحديث في القرن الثالث الهجري"
},
{
"id": 122393,
"name": "تهافت العلمانية في الصحافة العربية"
},
{
"id": 122394,
"name": "الأغصان الندية شرح الخلاصة البهية بترتيب أحداث السيرة النبوية"
},
{
"id": 122396,
"name": "السيرة النبوية الصحيحة محاولة لتطبيق قواعد المحدثين في نقد روايات السيرة النبوية",
"q": "Q124472916"
},
{
"id": 122397,
"name": "المستخرج من كتب الناس للتذكرة والمستطرف من أحوال الرجال للمعرفة"
},
{
"id": 122400,
"name": "التاريخ وأسماء المحدثين وكناهم"
},
{
"id": 122401,
"name": "القبس في شرح موطأ مالك بن أنس"
},
{
"id": 122402,
"name": "مطالع الأنوار على صحاح الآثار"
},
{
"id": 122405,
"name": "الروض البسام بترتيب وتخريج فوائد تمام"
},
{
"id": 122406,
"name": "إكمال المعلم بفوائد مسلم",
"q": "Q136511109"
},
{
"id": 122409,
"name": "المجتبى من المجتنى"
},
{
"id": 123510,
"name": "شرح مسند الشافعي"
},
{
"id": 123511,
"name": "موسوعة مسائل الجمهور في الفقه الإسلامي"
},
{
"id": 123581,
"name": "المعجم لعبد الخالق بن أسد الحنفي"
},
{
"id": 123608,
"name": "التلخيص الحبير - ط أضواء السلف",
"pre": "التلخيص الحبير",
"suf": "ط أضواء السلف"
},
{
"id": 123656,
"name": "محاضرات في تاريخ الجزائر الحديث"
},
{
"id": 123658,
"name": "المزدكية هي أصل الاشتراكية"
},
{
"id": 123659,
"name": "تاريخ الجزائر المعاصر"
},
{
"id": 123660,
"name": "تاريخ الجزائر في القديم والحديث"
},
{
"id": 123661,
"name": "رائد التجديد الإسلامي محمد بن العنابي"
},
{
"id": 123662,
"name": "شيخ الإسلام عبد الكريم الفكون داعية السلفية",
"q": "Q124614097"
},
{
"id": 123663,
"name": "عدة المريد الصادق"
},
{
"id": 123664,
"name": "الجزائر الثائرة"
},
{
"id": 123665,
"name": "المسالك في شرح موطأ مالك"
},
{
"id": 123666,
"name": "إتحاف المرتقي بتراجم شيوخ البيهقي",
"q": "Q125916417"
},
{
"id": 123667,
"name": "السلسبيل النقي في تراجم شيوخ البيهقي"
},
{
"id": 123668,
"name": "السيرة النبوية كما جاءت في الأحاديث الصحيحة"
},
{
"id": 123669,
"name": "الصحيح من أحاديث السيرة النبوية"
},
{
"id": 123671,
"name": "الموسوعة في صحيح السيرة النبوية - العهد المكي"
},
{
"id": 123672,
"name": "عجالة الراغب المتمني في تخريج كتاب «عمل اليوم والليلة» لابن السني"
},
{
"id": 123685,
"name": "مناهج التحصيل ونتائج لطائف التأويل في شرح المدونة وحل مشكلاتها"
},
{
"id": 124334,
"name": "شرح التصريف للثمانيني"
},
{
"id": 124335,
"name": "شرح القصائد السبع الطوال الجاهليات"
},
{
"id": 124336,
"name": "مختصر القدوري"
},
{
"id": 124338,
"name": "المقدمة الجزولية في النحو"
},
{
"id": 124358,
"name": "النظريات العلمية الحديثة مسيرتها الفكرية وأسلوب الفكر التغريبي العربي في التعامل معها دراسة نقدية"
},
{
"id": 124365,
"name": "خلاصة الأفكار شرح مختصر المنار"
},
{
"id": 124590,
"name": "البلاغة العمرية"
},
{
"id": 124754,
"name": "غاية السول إلى علم الأصول"
},
{
"id": 124755,
"name": "أمالي ابن الحاجب"
},
{
"id": 124909,
"name": "معالم الدين من أحاديث الصادق الأمين"
},
{
"id": 124910,
"name": "الفتح الرباني لترتيب مسند الإمام أحمد بن حنبل الشيباني"
},
{
"id": 127654,
"name": "إرشاد طلاب الحقائق إلى معرفة سنن خير الخلائق صلى الله عليه وسلم"
},
{
"id": 127656,
"name": "اختصار صحيح البخاري وبيان غريبه",
"q": "Q124616382"
},
{
"id": 127657,
"name": "الأجوبة عن المسائل المستغربة من كتاب البخاري"
},
{
"id": 127660,
"name": "الإيماء إلى أطراف أحاديث كتاب الموطأ"
},
{
"id": 127663,
"name": "التعليقة الكبيرة - أبو يعلى - من الصلاة للجنائز"
},
{
"id": 127668,
"name": "القناعة في ما يحسن الإحاطة من أشراط الساعة"
},
{
"id": 127669,
"name": "القواعد للحصني"
},
{
"id": 127671,
"name": "تحرير الفتاوي على التنبيه والمنهاج والحاوي"
},
{
"id": 127677,
"name": "جمع الجوامع المعروف بـ «الجامع الكبير»"
},
{
"id": 127698,
"name": "التاريخ المعتبر في أنباء من غبر"
},
{
"id": 127700,
"name": "الرصف لما روي عن النبي صلى الله عليه وسلم من الفعل والوصف"
},
{
"id": 127703,
"name": "الغاية في اختصار النهاية"
},
{
"id": 127708,
"name": "المطلع على دقائق زاد المستقنع «المعاملات المالية»"
},
{
"id": 127709,
"name": "المطلع على دقائق زاد المستقنع «فقه الجنايات والحدود»"
},
{
"id": 127710,
"name": "المطلع على دقائق زاد المستقنع «فقه القضاء والشهادات»"
},
{
"id": 127711,
"name": "المطلع على دقائق زاد المستقنع «فقه الأسرة»"
},
{
"id": 127713,
"name": "المهيأ في كشف أسرار الموطأ"
},
{
"id": 127715,
"name": "تحرير تقريب التهذيب"
},
{
"id": 127717,
"name": "شرح مختصر أصول الفقه للجراعي"
},
{
"id": 130550,
"name": "المقدمة في فقه العصر"
},
{
"id": 130963,
"name": "تاريخ علماء أهل مصر"
},
{
"id": 130964,
"name": "الموسوعة الميسرة في تراجم أئمة التفسير والإقراء والنحو واللغة",
"q": "Q124614368"
},
{
"id": 131003,
"name": "الدر النقي في شرح ألفاظ الخرقي"
},
{
"id": 131336,
"name": "الخلافيات - البيهقي - ت النحال"
},
{
"id": 131521,
"name": "شرح سنن أبي داود لابن رسلان"
},
{
"id": 132374,
"name": "إيضاح المسالك إلى قواعد الإمام مالك - ت بو طاهر"
},
{
"id": 132387,
"name": "القطوف الدانية فيما انفرد به الدارمي عن الثمانية"
},
{
"id": 132388,
"name": "الكفارات أحكام وضوابط"
},
{
"id": 132391,
"name": "النظرات الماتعة في سورة الفاتحة"
},
{
"id": 132392,
"name": "النظرات الوقادة في خروج الحسين بن علي رضي الله عنه واستشهاده"
},
{
"id": 132394,
"name": "جهد المحتفي في أمر العالم المختفي"
},
{
"id": 132412,
"name": "نسبة ومنسوب"
},
{
"id": 132415,
"name": "الدرر اللوامع في شرح جمع الجوامع"
},
{
"id": 132416,
"name": "سفر السعادة للفيروزابادي"
},
{
"id": 132424,
"name": "الحسبة في الإسلام"
},
{
"id": 132425,
"name": "الحسبة لابن المبرد"
},
{
"id": 132427,
"name": "الكنز الأكبر في الأمر بالمعروف والنهي عن المنكر- ابن قاضي عجلون"
},
{
"id": 132428,
"name": "تفسير العثيمين: لقمان"
},
{
"id": 132429,
"name": "تفسير العثيمين: السجدة"
},
{
"id": 132434,
"name": "رسالة عمر بن عثمان بن العباس الجرسيفي في الحسبة"
},
{
"id": 132443,
"name": "عش مع الخلفاء والملوك"
},
{
"id": 132524,
"name": "المفهم لما أشكل من تلخيص كتاب مسلم"
},
{
"id": 132527,
"name": "تسهيل السابلة لمريد معرفة الحنابلة",
"q": "Q132372741"
},
{
"id": 132530,
"name": "فائت تسهيل السابلة"
},
{
"id": 132617,
"name": "الفوائد البهية في تراجم الحنفية - ومعه التعليقات السنية",
"q": "Q130321059"
},
{
"id": 132618,
"name": "الإشاعة لأشراط الساعة"
},
{
"id": 132619,
"name": "الاختيارات الفقهية لشيخ الإسلام ابن تيمية لدى تلاميذه"
},
{
"id": 132620,
"name": "رؤوس المسائل للزمخشري"
},
{
"id": 132962,
"name": "بداية المحتاج في شرح المنهاج"
},
{
"id": 132963,
"name": "النكت على صحيح البخاري"
},
{
"id": 132964,
"name": "التجريد على التنقيح"
},
{
"id": 132965,
"name": "درة الحجال فى أسماء الرجال"
},
{
"id": 132970,
"name": "تحفة اللبيب بمن تكلم فيهم الحافظ ابن حجر من الرواة في غير «التقريب»"
},
{
"id": 132971,
"name": "الاستغناء في معرفة المشهورين من حملة العلم بالكنى"
},
{
"id": 132972,
"name": "صفة المفتي والمستفتي - ت أبي جنة"
},
{
"id": 132973,
"name": "البحور الزاخرة في علوم الآخرة"
},
{
"id": 132974,
"name": "إرشاد السالك إلى أفعال المناسك"
},
{
"id": 133350,
"name": "شرح تحفة أهل الطلب في تجريد أصول قواعد ابن رجب"
},
{
"id": 133357,
"name": "أحكام القرآن لابن الفرس",
"q": "Q127327876"
},
{
"id": 133358,
"name": "المساعد على تسهيل الفوائد"
},
{
"id": 133359,
"name": "النظر الفسيح عند مضائق الأنظار في الجامع الصحيح"
},
{
"id": 133360,
"name": "إيضاح المسالك إلى قواعد الإمام مالك - ت الغرياني"
},
{
"id": 133362,
"name": "بذل النظر في الأصول"
},
{
"id": 133363,
"name": "نقد «نصوص حديثية في الثقافة العامة»"
},
{
"id": 133364,
"name": "فصل في تزكية النفس"
},
{
"id": 133365,
"name": "كشف النقاب عما في «كلمات» أبي غدة من الأباطيل والافتراءات"
},
{
"id": 133366,
"name": "الصحيح المسند مما ليس في الصحيحين",
"q": "Q123281569"
},
{
"id": 133367,
"name": "الناسخ والمنسوخ - ابن العربي"
},
{
"id": 133368,
"name": "تحقيقات وأنظار في القرآن والسنة"
},
{
"id": 133369,
"name": "توضيح الأحكام شرح تحفة الحكام"
},
{
"id": 133374,
"name": "الخلاصة في تدبر القرآن الكريم"
},
{
"id": 133375,
"name": "الصدف الحاوي لدرر عقيدة الإمام الطحاوي"
},
{
"id": 133376,
"name": "القواعد والأصول وتطبيقات التدبر"
},
{
"id": 133379,
"name": "كشف الأسرار عن القول التليد فيما لحق مسألة الحجاب من تحريف وتبديل وتصحيف"
},
{
"id": 133380,
"name": "مختصر أخلاق حملة القرآن"
},
{
"id": 133381,
"name": "فهرس المخطوطات العربية في المكتبة الوطنية النمساوية"
},
{
"id": 133395,
"name": "تتمة الأعلام - محمد خير رمضان"
},
{
"id": 133397,
"name": "الجامع في الجرح والتعديل"
},
{
"id": 133411,
"name": "شرح العضد على مختصر المنتهى الأصولي ومعه حاشية السعد والجرجاني"
},
{
"id": 133412,
"name": "ديوان جرير بشرح محمد بن حبيب"
},
{
"id": 133413,
"name": "زبد العلوم وصاحب المنطوق والمفهوم"
},
{
"id": 133415,
"name": "طريقة الخلاف في الفقه بين الأئمة الأسلاف"
},
{
"id": 133416,
"name": "فتح الأقفال وحل الإشكال بشرح لامية الأفعال المشهور بالشرح الكبير"
},
{
"id": 133417,
"name": "النوادر في اللغة لأبي زيد الأنصاري"
},
{
"id": 133419,
"name": "منتخب الأحكام لابن أبي زمنين"
},
{
"id": 142167,
"name": "شرط القراءة على الشيوخ للسلفي"
},
{
"id": 143160,
"name": "تاريخ التراث العربي لسزكين - العلوم الشرعية",
"q": "Q135270784"
},
{
"id": 143162,
"name": "تاريخ التراث العربي لسزكين - الشعر",
"q": "Q120998471"
},
{
"id": 143164,
"name": "تاريخ التراث العربي لسزكين - الكيمياء والنبات"
},
{
"id": 143165,
"name": "تاريخ التراث العربي لسزكين - اللغة"
},
{
"id": 143167,
"name": "فضائل مكة - الجندي"
},
{
"id": 143170,
"name": "الإيضاح في علل النحو"
},
{
"id": 143640,
"name": "فقه الإسلام = شرح بلوغ المرام"
},
{
"id": 143911,
"name": "الرتب العليات النورانية في فضل القراءات القرآنية"
},
{
"id": 144113,
"name": "الكاشف المبين عن غلط المحققين"
},
{
"id": 144114,
"name": "موسوعة فضائل سور وآيات القرآن - القسم الصحيح"
},
{
"id": 144222,
"name": "السحب الوابلة على ضرائح الحنابلة",
"q": "Q116984045"
},
{
"id": 145166,
"name": "نزهة الأفكار في شرح قرة الأبصار"
},
{
"id": 145168,
"name": "شرح المعالم في أصول الفقه"
},
{
"id": 145171,
"name": "نثر الورود شرح حائية ابن أبي داود"
},
{
"id": 145172,
"name": "غاية المريد شرح كتاب التوحيد"
},
{
"id": 145203,
"name": "من معارك الإسلام الفاصلة = موسوعة الغزوات الكبرى"
},
{
"id": 145204,
"name": "جامع تراث العلامة الألباني في الفقه"
},
{
"id": 145205,
"name": "جامع تراث العلامة الألباني في المنهج والأحداث الكبرى"
},
{
"id": 145206,
"name": "وبل الغمامة في شرح عمدة الفقه لابن قدامة"
},
{
"id": 145209,
"name": "الشرك في القديم والحديث"
},
{
"id": 145210,
"name": "تذكرة أولي النهى والعرفان بأيام الله الواحد الديان وذكر حوادث الزمان"
},
{
"id": 145211,
"name": "روضة التقرير في اختلاف القراءات بين الإرشاد والتيسير"
},
{
"id": 145212,
"name": "لمعات التنقيح في شرح مشكاة المصابيح"
},
{
"id": 145333,
"name": "التفسير والمفسرون في العصر الحديث - فضل عباس"
},
{
"id": 145334,
"name": "المقفى الكبير",
"q": "Q137208729"
},
{
"id": 145376,
"name": "جامع المسائل - ابن تيمية - ط عطاءات العلم",
"q": "Q115797654"
},
{
"id": 145410,
"name": "بدائع الفوائد - ط عطاءات العلم",
"q": "Q115796558"
},
{
"id": 145411,
"name": "مفتاح دار السعادة ومنشور ولاية العلم والإرادة - ط عطاءات العلم",
"pre": "مفتاح دار السعادة ومنشور ولاية العلم والإرادة",
"suf": "ط عطاءات العلم",
"q": "Q115796845"
},
{
"id": 145421,
"name": "أصل كلمة «شاطر»"
},
{
"id": 145422,
"name": "التسويف في نشر الرسالة الجامعية، والتدقيق المبالغ فيه في البحوث والتآليف، والتريث في إخراجها مع وجود الحاجة إليه"
},
{
"id": 145424,
"name": "السمبوسة في كتب التراث ـ النشرة الرابعة"
},
{
"id": 145425,
"name": "الموازنة بين «الفائق» للزمخشري (ت 538 هـ) و «النهاية» لابن الأثير (ت 606 هـ)"
},
{
"id": 145426,
"name": "إن الله يزع بالسلطان ما لا يزع بالقرآن - تخريجا وشرحا"
},
{
"id": 145427,
"name": "سبب تسمية «الشقة» بهذا الاسم"
},
{
"id": 145428,
"name": "مجيء (أبو) في موضع نصب أو جر على الحكاية"
},
{
"id": 145429,
"name": "مصطلحات أئمة الحديث الخاصة ويليه القرائن الموصلة إلى فهم مقاصدهم في الجرح والتعديل"
},
{
"id": 145430,
"name": "منهج الدميري في كتابه حياة الحيوان"
},
{
"id": 145431,
"name": "منهج العلامة القسطلاني في كتابه «إرشاد الساري لشرح صحيح البخاري»"
},
{
"id": 145432,
"name": "ندب العيد"
},
{
"id": 145433,
"name": "نواة المكتبة"
},
{
"id": 145434,
"name": "البراهين المعتبرة في هدم قواعد المبتدعة"
},
{
"id": 145435,
"name": "صحيح وضعيف تاريخ الطبري"
},
{
"id": 146126,
"name": "حلية العلماء في معرفة مذاهب الفقهاء - ط الرسالة الحديثة"
},
{
"id": 146127,
"name": "المهذب في اختصار السنن الكبير"
},
{
"id": 146418,
"name": "موسوعة محاسن الإسلام ورد شبهات اللئام"
},
{
"id": 147062,
"name": "حاشية الدسوقي على مختصر المعاني"
},
{
"id": 147064,
"name": "الوجيز في الفقه على مذهب الإمام أحمد بن حنبل"
},
{
"id": 147065,
"name": "غذاء الأرواح بالمحادثة والمزاح"
},
{
"id": 147066,
"name": "كشف النقاب عن مؤلفات الأصحاب"
},
{
"id": 147072,
"name": "إضافات للنعت الأكمل لأصحاب الإمام أحمد بن حنبل"
},
{
"id": 147073,
"name": "النعت الأكمل لأصحاب الإمام أحمد بن حنبل",
"q": "Q132456962"
},
{
"id": 147090,
"name": "التيه والمخرج"
},
{
"id": 147096,
"name": "صراع الفكر والاتباع"
},
{
"id": 147097,
"name": "صفات الطائفة المنصورة ومفاهمها"
},
{
"id": 147104,
"name": "الإبهاج في شرح المنهاج - ط دبي",
"pre": "الإبهاج في شرح المنهاج",
"suf": "ط دبي"
},
{
"id": 147311,
"name": "مختصر الإفادات في ربع العبادات والآداب وزيادات",
"q": "Q131552502"
},
{
"id": 147312,
"name": "الكتاب الفريد في إعراب القرآن المجيد"
},
{
"id": 147313,
"name": "تحبير المختصر وهو الشرح الوسط لبهرام على مختصر خليل"
},
{
"id": 147320,
"name": "درر الفرائد المستحسنة في شرح منظومة ابن الشحنة"
},
{
"id": 147374,
"name": "معجم أسر بريدة",
"q": "Q124614461"
},
{
"id": 147594,
"name": "السبيل إلى منهج أهل السنة والجماعة"
},
{
"id": 147597,
"name": "جمهرة مقالات ورسائل الشيخ الإمام محمد الطاهر ابن عاشور"
},
{
"id": 147603,
"name": "منهج الدعوة في ضوء الواقع المعاصر"
},
{
"id": 147656,
"name": "أخصر المختصرات - ط ركائز",
"q": "Q131552409"
},
{
"id": 147657,
"name": "الدلائل والإشارات على أخصر المختصرات",
"q": "Q133181159"
},
{
"id": 147658,
"name": "الروض المربع بشرح زاد المستقنع - ط ركائز"
},
{
"id": 147659,
"name": "الفتوحات الربانية بشرح الدرة المضية في علم القواعد الفرضية"
},
{
"id": 147660,
"name": "الفوائد المرضية بشرح الدرة المضية في علم القواعد الفرضية",
"q": "Q136349733"
},
{
"id": 147661,
"name": "بداية العابد وكفاية الزاهد - ت ركائز",
"q": "Q133256783"
},
{
"id": 147662,
"name": "الموقظة - ط ركائز",
"pre": "الموقظة",
"suf": "ط ركائز"
},
{
"id": 147663,
"name": "منية الساجد بشرح بداية العابد وكفاية الزاهد"
},
{
"id": 147665,
"name": "مناسك الحج لابن تيمية ط ركائز"
},
{
"id": 147666,
"name": "التفسير المأمون على منهج التنزيل والصحيح المسنون"
},
{
"id": 147668,
"name": "رسالة العكبري في أصول الفقه ت السبيعي"
},
{
"id": 147669,
"name": "قاعدة مختصرة في قتال الكفار ومهادنتهم وتحريم قتلهم لمجرد كفرهم"
},
{
"id": 147670,
"name": "مسألة في توحيد الفلاسفة"
},
{
"id": 147671,
"name": "مطالع الدقائق في تحرير الجوامع والفوارق"
},
{
"id": 147673,
"name": "اختيارات شيخ الإسلام ابن تيمية لابن عبد الهادي"
},
{
"id": 147674,
"name": "اختيارات شيخ الإسلام ابن تيمية للبرهان ابن القيم"
},
{
"id": 147675,
"name": "اختيارات شيخ الإسلام ابن تيمية لدى مترجميه"
},
{
"id": 147811,
"name": "البعث والنشور للبيهقي ت الشوامي"
},
{
"id": 147812,
"name": "التيسير في القراءات السبع ت الشغدلي"
},
{
"id": 147912,
"name": "ثلاث صلوات عظيمة مهجورة فأحيها يا عبد الله"
},
{
"id": 147913,
"name": "مفتاح الوصول إلى بناء الفروع على الأصول"
},
{
"id": 147914,
"name": "مثارات الغلط في الأدلة"
},
{
"id": 148084,
"name": "الشاهد الشعري في تفسير القرآن الكريم أهميته، وأثره، ومناهج المفسرين في الاستشهاد به"
},
{
"id": 148091,
"name": "معجم تاريخ التراث الإسلامي في مكتبات العالم - المخطوطات والمطبوعات"
},
{
"id": 148095,
"name": "شرح سنن ابن ماجه للهرري = مرشد ذوي الحجا والحاجة إلى سنن ابن ماجه"
},
{
"id": 148096,
"name": "المدخل إلى تقويم اللسان"
},
{
"id": 148097,
"name": "الجامع الصحيح مما ليس في الصحيحين",
"q": "Q123281918"
},
{
"id": 148181,
"name": "معجم الدخيل في اللغة العربية الحديثة ولهجاتها",
"q": "Q116450267"
},
{
"id": 148271,
"name": "جامع المسانيد لابن الجوزي"
},
{
"id": 148486,
"name": "السنن الكبرى - البيهقي - ت التركي",
"pre": "«السنن الكبير» للبيهقي",
"suf": "ت التركي"
},
{
"id": 148529,
"name": "النبوغ المغربي في الأدب العربي",
"q": "Q124614479"
},
{
"id": 148530,
"name": "تاريخ الغزو الفكري والتعريب خلال مرحلة ما بين الحربين العالميتين"
},
{
"id": 148531,
"name": "درء القول القبيح بالتحسين والتقبيح"
},
{
"id": 148532,
"name": "شمس الله تشرق على الغرب = فضل العرب على أوروبا"
},
{
"id": 148533,
"name": "مقالات الطناحي صفحات في التراث والتراجم واللغة والأدب"
},
{
"id": 148534,
"name": "موائد الحيس في فوائد القيس"
},
{
"id": 148535,
"name": "حماسة البحتري",
"q": "Q134476272"
},
{
"id": 148536,
"name": "ديوان ابن أبي حصينة"
},
{
"id": 148537,
"name": "ديوان ابن الخياط"
},
{
"id": 148538,
"name": "ديوان ابن نباتة المصري"
},
{
"id": 148539,
"name": "ديوان أبي الأسود الدؤلي"
},
{
"id": 148540,
"name": "شعر أبي حية النميري"
},
{
"id": 148870,
"name": "البحر المحيط الثجاج في شرح صحيح الإمام مسلم بن الحجاج"
},
{
"id": 148883,
"name": "رياض النفوس في طبقات علماء القيروان وإفريقية"
},
{
"id": 148896,
"name": "قرة عين المحتاج في شرح مقدمة صحيح مسلم بن الحجاج"
},
{
"id": 149015,
"name": "منة المنعم في شرح صحيح مسلم"
},
{
"id": 149016,
"name": "ديوان أبي دهبل الجمحي"
},
{
"id": 149213,
"name": "تذهيب تهذيب الكمال في أسماء الرجال"
},
{
"id": 149481,
"name": "ديوان عمرو بن قميئة"
},
{
"id": 149482,
"name": "ديوان معاوية بن أبي سفيان"
},
{
"id": 149483,
"name": "ديوان سلامة بن جندل"
},
{
"id": 149485,
"name": "ديوان سويد بن أبي كاهل اليشكري"
},
{
"id": 149697,
"name": "لوامع الدرر في هتك استار المختصر"
},
{
"id": 149871,
"name": "ديوان عامر بن الطفيل"
},
{
"id": 149872,
"name": "ديوان عمارة بن عقيل"
},
{
"id": 149873,
"name": "ديوان قيس بن الخطيم"
},
{
"id": 149874,
"name": "ديوان ليلى الأخيلية"
},
{
"id": 149875,
"name": "ديوان الحارث بن حلزة اليشكري"
},
{
"id": 150303,
"name": "تفسير العثيمين: الأحزاب"
},
{
"id": 150304,
"name": "تفسير العثيمين: سبأ"
},
{
"id": 150481,
"name": "الباعث الحثيث شرح اختصار علوم الحديث ط ابن الجوزي"
},
{
"id": 150578,
"name": "الإعراب المفصل لكتاب الله المرتل"
},
{
"id": 150599,
"name": "سلاسل الذهب"
},
{
"id": 150600,
"name": "العدة في إعراب العمدة"
},
{
"id": 150601,
"name": "تقويم اللسانين",
"q": "Q135116670"
},
{
"id": 150639,
"name": "مرقاة الصعود إلى سنن أبي داود"
},
{
"id": 150676,
"name": "جواهر الدرر في حل ألفاظ المختصر"
},
{
"id": 150846,
"name": "النصيحة بالتحذير من تخريب «ابن عبد المنان» لكتب الأئمة الرجيحة وتضعيفه لمئات الأحاديث الصحيحة",
"q": "Q115789689"
},
{
"id": 150934,
"name": "اصطلاح المذهب عند المالكية"
},
{
"id": 150935,
"name": "الفكر العربي في عصر النهضة"
},
{
"id": 150936,
"name": "المرشد إلى فهم أشعار العرب"
},
{
"id": 150937,
"name": "المستشرقون لنجيب العقيقي"
},
{
"id": 150938,
"name": "حاشية التوضيح والتصحيح لمشكلات كتاب التنقيح"
},
{
"id": 150939,
"name": "حضارة العرب - غوستاف لوبون"
},
{
"id": 150960,
"name": "الزيادة والإحسان في علوم القرآن"
},
{
"id": 150961,
"name": "الفواكه العديدة في المسائل المفيدة"
},
{
"id": 150962,
"name": "الكوكب الدري على جامع الترمذي"
},
{
"id": 150963,
"name": "كشف المغطى من المعاني والألفاظ الواقعة في الموطا"
},
{
"id": 150964,
"name": "معجم تيمور الكبير في الألفاظ العامية"
},
{
"id": 150966,
"name": "شرح أبيات مغني اللبيب"
},
{
"id": 150967,
"name": "شرح «أدب القاضي للخصاف» للصدر الشهيد - ت سرحان",
"pre": "شرح «أدب القاضي للخصاف» للصدر الشهيد",
"suf": "ت سرحان"
},
{
"id": 150969,
"name": "حاشية الصاوي على الشرح الصغير ط الحلبي"
},
{
"id": 151007,
"name": "الإلمام بشرح عمدة الأحكام"
},
{
"id": 151009,
"name": "المجرد في أسماء رجال سنن ابن ماجه"
},
{
"id": 151010,
"name": "المسائل والأجوبة لابن قتيبة"
},
{
"id": 151012,
"name": "البلاغة الصافية في المعاني والبيان والبديع"
},
{
"id": 151013,
"name": "النظم البلاغي بين النظرية والتطبيق"
},
{
"id": 151015,
"name": "خصائص النظم في «خصائص العربية» لابن جني"
},
{
"id": 151016,
"name": "دلائل الإعجاز بين أبي سعيد السيرافي والجرجاني"
},
{
"id": 151017,
"name": "فتح الكبير المتعال إعراب المعلقات العشر الطوال"
},
{
"id": 151018,
"name": "من قضايا البلاغة والنقد عند عبد القادر الجرجاني"
},
{
"id": 151019,
"name": "صون المنطق والكلام عن فني المنطق والكلام"
},
{
"id": 151020,
"name": "جهد القريحة في تجريد النصيحة"
},
{
"id": 151039,
"name": "الرد على التعقيب الحثيث للشيخ عبد الله الحبشي"
},
{
"id": 151040,
"name": "قرة العين في تلخيص تراجم رجال الصحيحين"
},
{
"id": 151045,
"name": "أول مرة أتدبر القرآن"
},
{
"id": 151099,
"name": "المجروحين لابن حبان ت حمدي",
"q": "Q135651691"
},
{
"id": 151100,
"name": "الإجماع لابن المنذر - ت أبي عبد الأعلى",
"pre": "«الإجماع» لابن المنذر",
"suf": "ت أبي عبد الأعلى"
},
{
"id": 151109,
"name": "ورثة الأنبياء شرح حديث أبي الدرداء"
},
{
"id": 151110,
"name": "شرح حديث «ما ذئبان جائعان»"
},
{
"id": 151111,
"name": "شرح حديث «لبيك اللهم لبيك»"
},
{
"id": 151112,
"name": "شرح حديث عمار بن ياسر - رضي الله عنه -"
},
{
"id": 151113,
"name": "شرح حديث «مثل الإسلام»"
},
{
"id": 151114,
"name": "غاية النفع في شرح حديث «تمثيل المؤمن بخامة الزرع»"
},
{
"id": 151115,
"name": "الحكم الجديرة بالإذاعة - ضمن مجموع رسائل ابن رجب",
"pre": "الحكم الجديرة بالإذاعة",
"suf": "ضمن مجموع رسائل ابن رجب"
},
{
"id": 151116,
"name": "ذم قسوة القلب"
},
{
"id": 151117,
"name": "ذم الخمر"
},
{
"id": 151118,
"name": "الذل والانكسار للعزيز الجبار"
},
{
"id": 151119,
"name": "كشف الكربة في وصف حال أهل الغربة"
},
{
"id": 151120,
"name": "جزء من الكلام على حديث شداد بن أوس «إذا كنز الناس الذهب والفضة»"
},
{
"id": 151121,
"name": "البشارة العظمى للمؤمن بأن حظه من النار الحمى"
},
{
"id": 151122,
"name": "تسلية نفوس النساء والرجال عند فقد الأطفال"
},
{
"id": 151123,
"name": "الفرق بين النصيحة والتعيير"
},
{
"id": 151124,
"name": "جزء فيه الكلام على حديث يتبع الميت ثلاث"
},
{
"id": 151125,
"name": "صدقة السر وفضلها"
},
{
"id": 151126,
"name": "نزهة الأسماع في مسألة السماع «أحكام الغناء والمعازف»"
},
{
"id": 151127,
"name": "سيرة عبد الملك بن عمر بن عبد العزيز"
},
{
"id": 151128,
"name": "تفسير سورة النصر"
},
{
"id": 151129,
"name": "تفسير سورة الإخلاص"
},
{
"id": 151130,
"name": "مقدمة تشتمل على أن جميع الرسل كان دينهم الإسلام"
},
{
"id": 151131,
"name": "القول الصواب في تزويج أمهات أولاد الغياب"
},
{
"id": 151132,
"name": "رسالة في رؤية هلال ذي الحجة"
},
{
"id": 151133,
"name": "قاعدة في إخراج الزكاة على الفور"
},
{
"id": 151134,
"name": "الرد على من اتبع غير المذاهب الأربعة"
},
{
"id": 151135,
"name": "مختصر في معاملة الظالم السارق"
},
{
"id": 151136,
"name": "أحكام الخواتيم"
},
{
"id": 151137,
"name": "شرح حديث «إن أغبط أوليائي»"
},
{
"id": 151138,
"name": "الكلام على قوله تعالى {إنما يخشى الله من عباده العلماء}"
},
{
"id": 151140,
"name": "فضل علم السلف على علم الخلف"
},
{
"id": 151141,
"name": "كلمة الإخلاص وتحقيق معناها - ضمن رسائل ابن رجب",
"pre": "كلمة الإخلاص وتحقيق معناها - ضمن رسائل ابن رجب"
},
{
"id": 151142,
"name": "نور الاقتباس في مشكاة وصية النبي - صلى الله عليه وسلم - لابن عباس"
},
{
"id": 151143,
"name": "فضائل الشام"
},
{
"id": 151144,
"name": "استنشاق نسيم الأنس من نفحات رياض القدس"
},
{
"id": 151146,
"name": "اختيار الأولى في شرح حديث اختصام الملأ الأعلى - ضمن مجموع رسائل ابن رجب",
"pre": "اختيار الأولى في شرح حديث اختصام الملأ الأعلى",
"suf": "ضمن مجموع رسائل ابن رجب"
},
{
"id": 151147,
"name": "التخويف من النار والتعريف بحال دار البوار"
},
{
"id": 151148,
"name": "المحجة في سير الدلجة"
},
{
"id": 151153,
"name": "الجامع لما في المصنفات الجوامع من أسماء الصحابة"
},
{
"id": 151154,
"name": "الصحيح المأثور في عالم البرزخ والقبور"
},
{
"id": 151156,
"name": "تفسير العثيمين: فاطر"
},
{
"id": 151157,
"name": "تفسير العثيمين: يس"
},
{
"id": 151158,
"name": "تفسير العثيمين: الصافات"
},
{
"id": 151159,
"name": "تفسير العثيمين: ص"
},
{
"id": 151160,
"name": "تفسير العثيمين: الزمر"
},
{
"id": 151161,
"name": "تفسير العثيمين: غافر"
},
{
"id": 151162,
"name": "تفسير العثيمين: فصلت"
},
{
"id": 151163,
"name": "تفسير العثيمين: الشورى"
},
{
"id": 151164,
"name": "تفسير العثيمين: الزخرف"
},
{
"id": 151165,
"name": "تفسير العثيمين: من سورة محمد - ط مكتبة الطبري"
},
{
"id": 151166,
"name": "تفسير العثيمين: الحجرات - الحديد"
},
{
"id": 151167,
"name": "تفسير العثيمين: من جزء قد سمع وتبارك - ط مكتبة الطبري"
},
{
"id": 151168,
"name": "تفسير العثيمين: جزء عم"
},
{
"id": 151169,
"name": "ذخر المتأهلين والنساء للإمام البركوي"
},
{
"id": 151171,
"name": "المسالك القويمة بتراجم رجال ابن خزيمة، في الصحيح والتوحيد والفوائد"
},
{
"id": 151173,
"name": "المغربية في شرح العقيدة القيروانية"
},
{
"id": 151177,
"name": "آراء الصاوي في العقيدة والسلوك"
},
{
"id": 151178,
"name": "الآثار المروية عن أئمة السلف في العقيدة من خلال كتب ابن أبي الدنيا"
},
{
"id": 151179,
"name": "التفسير والبيان لأحكام القرآن"
},
{
"id": 151180,
"name": "تذكرة السامع والمتكلم في أدب العالم والمتعلم",
"q": "Q133819973"
},
{
"id": 151185,
"name": "الركن الخامس"
},
{
"id": 151187,
"name": "شرح كتاب الحج من نهاية التدريب في نظم غاية التقريب للعمريطي"
},
{
"id": 151200,
"name": "آراء ابن حجر الهيتمي الاعتقادية (عرض وتقويم في ضوء عقيدة السلف)",
"q": "Q136913478"
},
{
"id": 151201,
"name": "آراء القرطبي والمازري الاعتقادية",
"q": "Q137212662"
},
{
"id": 151202,
"name": "إرواء الظمي بتراجم رجال سنن الدارمي"
},
{
"id": 151203,
"name": "استجلاب ارتقاء الغرف بحب أقرباء الرسول - صلى الله عليه وسلم - وذوي الشرف"
}
]
0mrvpi5kf4n084dx0lzpwozszms33fr
وحدة:Cite Shamela/ملعب
828
63237
275467
2026-09-15T10:35:22Z
حبيشان
29714
استيراد من ar.wiktionary.org
275467
Scribunto
text/plain
local string=mw.ustring
function cite(frame)
local b,c,v,p,s,q,txt,book_id,u
local args = {}
local targs = {}
for k, v in pairs(frame.args) do
if v ~= "" then args[k] = v end
end
for k, v in pairs(frame:getParent().args) do
if v ~= "" then args[k] = v end
end
txt = args[1]
if string.find(txt,'https://shamela.ws/book/') ~= nil then
local q,c,u,ch,p
if string.match(txt,'^([^\n]+)\n%-%-%-%-%-%-%-%-\n([^\n]+) %- المكتبة الشاملة\n%-%-%-%-%-%-%-%-\nالرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$') then
q,c,u = string.match(txt,'^([^\n]+)\n%-%-%-%-%-%-%-%-\n([^\n]+) %- المكتبة الشاملة\n%-%-%-%-%-%-%-%-\nالرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$')
elseif string.match(txt,'(ص[^\n]+) %- المكتبة الشاملة\n%-%-%-%-%-%-%-%-\nالرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$') then
c,u = string.match(txt,'(ص[^\n]+) %- المكتبة الشاملة\n%-%-%-%-%-%-%-%-\nالرابط:(https://shamela.ws/book/%d+/%d+#p%d+)$')
elseif string.match(txt,'(https://shamela.ws/book/%d+/%d+#p%d+)$') or string.match(txt,'(https://shamela.ws/book/%d+)$') then
u = string.match(txt,'(https://shamela.ws/book/%d+/%d+#p%d+)$') or string.match(txt,'(https://shamela.ws/book/%d+)$')
else
error('صيغة غير قياسية')
end
book_id = string.match(u,'^https://shamela.ws/book/(%d+)$') or string.match(u,'^https://shamela.ws/book/(%d+)/')
if not book_id then
return error("تحقق من رابط الموقع")
else
book_id=tonumber(book_id)
if c and string.match(u,'^https://shamela.ws/book/(%d+)/(%d+)') then
p,ch = string.match(c,'^ص([^\n ]+) %- [^\n]+ %- ([^\n%-]+)$')
if ch then
targs['chapter-url'] = u
targs.chapter = ch
else
targs.url= u
end
if p then
targs.page= p
end
else
targs['url'] = u
end
if q then
targs.quote = q
targs.via = '[[المكتبة الشاملة]]'
end
end
else
q = string.match(txt,':[%s\n]*«([^%)]+)»$')
if q then
targs.quote = q
targs.via = '[[المكتبة الشاملة]]'
end
b,c = string.match(txt,'^([^%(0-9]+) %(([^%)]+)%)')
if not b then
return error("صيغة غير قياسية")
elseif string.sub(b,1,1) == '«' and string.sub(b,-1,-1) == '»' then
b = mw.text.trim(string.sub(b,2,-2))
end
if c then
if string.match(c,'^ص(%d+)$') then
p = string.match(c,'^ص(%d+)$')
elseif string.match(c,'^ص(%d+) ([ء-ي].+)$') then
p,s = string.match(c,'^ص(%d+) ([ء-ي].+)$')
elseif string.match(c,'^([^/]+)/ (%d+)$') then
v,p = string.match(c,'^([^/]+)/ (%d+)$')
elseif string.match(c,'^([^/]+)/ (%d+) ([ء-ي].+)$') then
v,p,s = string.match(c,'^([^/]+)/ (%d+) ([ء-ي].+)$')
else
return error("صيغة غير قياسية")
end
if p then
targs.page = p
end
if v then
targs.volume = v
end
end
mw.log(txt,b,c,v,p,s,q)
end
if b or book_id then
shamela = mw.loadData('Module:Cite Shamela/data')
if book_id then
for k,v in pairs(shamela) do
if v.id == book_id then
b = v.name
targs.qid = v.q
break
end
end
elseif b then
for k,v in pairs(shamela) do
if (v.pre or v.name) == b and s == v.suf then
book_id = v.id
targs.qid = v.q
break
end
end
end
end
if targs.qid == nil then
return ('<strong class="error">لم يعثر على بيانات الكتاب في ويكي بيانات</strong>')
end
return table.concat ({frame:expandTemplate ({title='استشهاد بويكي بيانات/نسخ', args=targs}), '<!-- إخراج تلقائي من قالب:استشهاد بالشاملة -->'})
end
return {
cite = cite
}
qkr6gtpa5766nf4u2y6x9i3enb12hfv
وحدة:I18n
828
63238
275468
2026-09-15T10:36:46Z
حبيشان
29714
استيراد من ar.wiktionary.org
275468
Scribunto
text/plain
local p = {}
-- Credit to http://stackoverflow.com/a/1283608/2644759
-- cc-by-sa 3.0
local function tableMerge(t1, t2, overwrite)
for k,v in pairs(t2) do
if type(v) == "table" and type(t1[k]) == "table" then
-- since type(t1[k]) == type(v) == "table", so t1[k] and v is true
tableMerge(t1[k], v, overwrite) -- t2[k] == v
else
if overwrite or t1[k] == nil then t1[k] = v end
end
end
return t1
end
function p.loadI18n(name, i18n_arg)
local exist, res = pcall(require, name)
if exist and next(res) ~= nil then
if i18n_arg then
tableMerge(i18n_arg, res.i18n, true)
elseif type(i18n) == "table" then
-- merge to global i18n
tableMerge(i18n, res.i18n, true)
end
end
end
function p.loadI18nFrame(frame, i18n_arg)
p.loadI18n(frame:getTitle().."/i18n", i18n_arg)
end
return p
pggbb6d78fzqixjoboirtmh9ljkxsuq
وحدة:I18n/complex date
828
63239
275469
2026-09-15T10:36:49Z
حبيشان
29714
استيراد من ar.wiktionary.org
275469
Scribunto
text/plain
--[[
__ __ _ _ ___ _ ___ __ _ _ _
| \/ | ___ __| |_ _| | ___ _|_ _/ |( _ ) _ __ / /__ ___ _ __ ___ _ __ | | _____ __ __| | __ _| |_ ___
| |\/| |/ _ \ / _` | | | | |/ _ (_)| || |/ _ \| '_ \ / / __/ _ \| '_ ` _ \| '_ \| |/ _ \ \/ / / _` |/ _` | __/ _ \
| | | | (_) | (_| | |_| | | __/_ | || | (_) | | | |/ / (_| (_) | | | | | | |_) | | __/> < | (_| | (_| | || __/
|_| |_|\___/ \__,_|\__,_|_|\___(_)___|_|\___/|_| |_/_/ \___\___/|_| |_| |_| .__/|_|\___/_/\_\ \__,_|\__,_|\__\___|
|_|
This code was copied from Commons please request changes there.
Maintainers:
*Jarekt
]]
local function Ordinal(...)
return require('Module:Ordinal-cd')._Ordinal(...)
end
local function Roman(...)
return require('Module:Roman-cd')._Numeral(...)
end
-- ==========================================================================
-- === Local Helper functions ==============================================
-- ==========================================================================
-- form of French "of" based on "precision", which is wikibase compatible date precision format:
-- 6=millennium, 7=century, 8=decade, 9=year, 10=month, 11=day
-- 1 2 3 4 5 mill cent deca year month day
local frOf = {'du','du','du','du','du', 'du', 'du', 'de', 'de', 'de', 'du'}
local function decYear(state,lang,case)
--Declension of word "year" in several languages
if state.precision == 9 then
yearCase = {
fi={xxx='vuosien', gen='vuoden', ill='vuoteen', ptv='vuotta', ela='vuodesta', ine='vuonna'},
sl={insP='letoma', ins='letom', gen='leta', loc='letu'},
hsb={insP='lětami', ins='lětom', gen='lěta', loc='lěće'}
}
return yearCase[lang][case] .. ' '
else
return ''
end
end
local function decCentury(lang,case)
--Declension of word "century" in several languages
centuryCase = {
pl={nom='wiek', gen='wieku', ins='wiekiem', loc='wieku', default = 'wiek'},
hsb={nom='lětstotk', gen='lětstotka', ins='lětstotkom', loc='lětstotku', default = 'lětstotk'}
}
return centuryCase[lang][case] or centuryCase[lang]['default']
end
local function decMillennium(lang,case)
--Declension of word "century" in several languages
millenniumCase = {
pl={nom='tysiąclecie', gen='tysiąclecia', ins='tysiącleciem', loc='tysiącleciu', default = 'tysiąclecie'},
hsb={nom='lěttysac', gen='lěttysaca', ins='lěttysacom', loc='lěttysacu', default = 'lěttysac'}
}
return millenniumCase[lang][case] or millenniumCase[lang]['default']
end
-- ==========================================================================
-- === Output data structure ===============================================
-- ==========================================================================
local p = {}
--[[
Multiple formats are possible:
1) string with key words "$date1" and "$date2" which will be replaced later by the date strings
2) function which can be used to create output string
* Function INPUTS:
- date1 and date2 string with date strings. "$date1" and "$date2" can also be used which will be replaced latter
- state is a table with full description of the phrase we are trying to construct. It includes state.precision1 (and 2)
which is wikibase compatible date precision format: 6=millennium, 7=century, 8=decade, 9=year, 10=month, 11=day
3) table with following fields:
* table[1] is either string or a function
* table.case is a 2 element table with Grammatical cases used by given language to alter
month name or other adjective related to date # 1 and 2
]]
p.Translations = {
-- ==========================================
-- === Two date phrases =====================
-- ==========================================
['from-until'] = {
nDates = 2,
ar='من $date1 إلى $date2',
['be-tarask']={'з $date1 да $date2', case={'gen','gen'}},
bn='$date1 থেকে $date2 পর্যন্ত',
ca='$date1 fins $date2',
cs='$date1 až $date2',
da='fra $date1 til $date2',
de='$date1 bis $date2',
el='από $date1 έως $date2',
en='from $date1 until $date2',
['en-gb']='from $date1 until $date2',
['en-ca']='from $date1 until $date2',
eo='de $date1 al $date2',
es='de $date1 a $date2',
et='$date1 kuni $date2',
fa='از $date1 تا $date2',
fi='$date1–$date2', -- välisenä aikana
fr=function(date1, date2, state) -- could actually be better should be "d'octobre à mars 2013' not "de octore 2013 à mars 2013"
if state.precision > 10 then -- precision > month
return 'du $date1 au $date2'
else -- "DE septebmbre" / "D'octobre"
return require("Module:Linguistic").of(date1, 'fr') .. " à $date2"
end
end,
gl='de $date1 a $date2', --Template:From until used 'desde $date1 ata $date2'
he='מ- $date1 עד $date2',
hr='od $date1 do $date2',
hsb={'wot $date1 do $date2', case={'gen','gen'}},
hu='$date1 – $date2',
it='dal $date1 al $date2',
ja='$date1から$date2まで',
mk='од $date1 до $date2',
ml='$date1 മുതൽ $date2 വരെ',
nb='fra $date1 til $date2',
nds='$date1 bet $date2',
nn='fra $date1 til $date2',
nl='$date1 tot $date2',
no='fra $date1 til $date2',
pl={'od $date1 do $date2', case={'gen','gen'}},
ro='din $date1 până în $date2',
pt='de $date1 a $date2',
qu="$date1 p'unchawmanta $date2 p\'unchawkama",
ru={'с $date1 по $date2', case={'gen','gen'}},
sk={'od $date1 do $date2', case={'gen','gen'}},
sl={'od $date1 do $date2', case={'gen','gen'}},
sv='från $date1 till $date2',
uk={'з $date1 до $date2', case={'gen','gen'}},
ur='از $date1 تا $date2',
vi='từ $date1 đến $date2',
['zh-hans']='从$date1到$date2',
['zh-hant']='從$date1到$date2',
default='<span style="color:red">$date1 - $date2</span>',
},
['between']={
nDates = 2,
ar='بين $date1 و $date2',
['be-tarask']={'між $date1 і $date2', case={'ins','ins'}},
bn='$date1 এবং $date2-এর মাঝামাঝি',
ca='entre $date1 i $date2',
cs={'mezi $date1 a $date2', case={'ins','ins'}},
da='mellem $date1 og $date2',
de='zwischen $date1 und $date2',
el='μεταξύ $date1 και $date2',
en='between $date1 and $date2',
['en-gb']='between $date1 and $date2',
['en-ca']='between $date1 and $date2',
eo='inter $date1 kaj $date2',
es='entre $date1 y $date2',
et='$date1 ja $date2 vahel',
fa='بین $date1 و $date2',
fi={function(date1, date2, state) return decYear(state,'fi','xxx') .. '$date1 ja $date2 välisenä aikana' end, case={'gen','gen'}},
fr='entre $date1 et $date2',
gl='entre $date1 e $date2',
he='בין $date1 ו- $date2',
hr='između $date1 i $date2',
hsb={'mjez $date1 a $date2', case={'ins','ins'}},
hu='$date1 és $date2 között',
hi='$date1 और $date2 के बीच',
it='tra il $date1 e il $date2',
ja='$date1と$date2の間',
mk='помеѓу $date1 и $date2',
ml='$date1, $date2 എന്നിവയ്ക്കിടയ്ക്ക്',
nb='mellom $date1 og $date2',
nds='twischen $date1 un $date2',
nn='mellom $date1 og $date2',
nl='tussen $date1 en $date2',
no='mellom $date1 og $date2',
pl={'między $date1 a $date2', case={'ins','ins'}},
ro='între $date1 și $date2',
pt='entre $date1 e $date2',
qu="$date1 p'unchawpa $date2 p'unchawpapas chawpin",
ru={'между $date1 и $date2', case={'ins','ins'}},
sk={'medzi $date1 a $date2', case={'ins','ins'}},
sl={function(date1, date2, state) return 'med ' .. decYear(state,'sl','insP') .. '$date1 in $date2' end, case={'ins','ins'}},
sv='mellan $date1 och $date2',
uk={'між $date1 та $date2', case={'ins','ins'}},
ur='بین $date1 و $date2',
vec='tra el $date1 e el $date2',
vi='giữa $date1 và $date2',
['zh-hans']='在$date1到$date2之间',
['zh-hant']='在$date1到$date2之間',
default='<span style="color:red">$date1 - $date2</span>',
},
['or'] = {
nDates = 2,
ar='$date1 أو $date2',
['be-tarask']='$date1 ці $date2',
bn='$date1 অথবা $date2',
ca='$date1 o $date2',
cs='$date1 nebo $date2',
da='$date1 eller $date2',
de='$date1 oder $date2',
el='$date1 ή $date2',
en='$date1 or $date2',
['en-gb']='$date1 or $date2',
['en-ca']='$date1 or $date2',
eo='$date1 aŭ $date2',
es='$date1 o $date2',
et='$date1 või $date2',
fa='$date1 یا $date2',
fi='$date1 tai $date2',
fr='$date1 ou $date2',
gl='$date1 ou $date2',
he='$date1 או $date2',
hr='$date1 ili $date2',
hsb='$date1 abo $date2',
hu='$date1 vagy $date2',
it='$date1 o $date2',
ja='$date1または$date2',
mk='$date1 или $date2',
ml='$date1 അഥവാ $date2',
nb='$date1 eller $date2',
nn='$date1 eller $date2',
nds='$date1 oder $date2',
nl='$date1 of $date2',
no='$date1 eller $date2',
pl='$date1 lub $date2',
pt='$date1 ou $date2',
qu='$date1 icha $date2',
ro='$date1 sau $date2',
ru='$date1 или $date2',
sk='$date1 alebo $date2',
sl='$date1 ali $date2',
sv='$date1 eller $date2',
uk='$date1 або $date2',
ur='$date1 یا $date2',
th='$date1 หรือ $date2',
vi='$date1 hoặc $date2',
['zh-hans']='$date1或$date2',
['zh-hant']='$date1或$date2',
default=function(date1, date2, state) return require("Module:linguistic").conj({date1, date2}, state.lang, 'or') end,
},
['and'] = {
nDates = 2,
ar='$date1 و $date2',
['be-tarask']='$date1 і $date2',
bn='$date1 এবং $date2',
ca='$date1 i $date2',
cs='$date1 a $date2',
da='$date1 og $date2',
de='$date1 und $date2',
el='$date1 και $date2',
en='$date1 and $date2',
['en-gb']='$date1 and $date2',
['en-ca']='$date1 and $date2',
eo='$date1 kaj $date2',
es='$date1 y $date2',
et='$date1 ja $date2',
fa='$date1 و $date2',
fi='$date1 ja $date2',
fr='$date1 et $date2',
gl='$date1 e $date2',
he='$date1 ו- $date2',
hu='$date1 és $date2',
hsb='$date1 a $date2',
it='$date1 e $date2',
ja='$date1および$date2',
mk='$date1 и $date2',
ml='$date1 ഒപ്പം $date2',
nb='$date1 og $date2',
nn='$date1 og $date2',
nds='$date1 un $date2',
nl='$date1 en $date2',
no='$date1 og $date2',
pl='$date1 i $date2',
pt='$date1 e $date2',
qu='$date1wan $date2pas',
ro='$date1 și $date2',
ru='$date1 и $date2',
sk='$date1 a $date2',
sl='$date1 in $date2',
sv='$date1 och $date2',
uk='$date1 та $date2',
ur='$date1 و $date2',
vi='$date1 và $date2',
['zh-hans']='$date1和$date2',
['zh-hant']='$date1和$date2',
default=function(date1, date2, state) return require("Module:linguistic").conj({date1, date2}, state.lang, 'and') end,
},
-- ==========================================
-- === Prepositions =========================
-- ==========================================
['by'] = {
nDates = 1,
ar='قرابة $date1',
['be-tarask']={'да $date1', case={'gen',''}},
bn='$date1 কর্তৃক',
ca='vers $date1',
cs={'kolem $date1', case={'gen',''}},
da='mod $date1',
de='spätestens $date1',
el='έως $date1',
en='by $date1',
['en-gb']='by $date1',
['en-ca']='by $date1',
eo='ne post $date1',
es='para $date1',
et='hiljemalt $date1',
fa='توسط $date1',
fi={function(date1, state) return decYear(state,'fi','ill') .. '$date1 mennessä' end, case={'ill',''}},
fr='$date1 (au plus tard)',
gl='cara a $date1',
he='עד $date1',
hr='do $date1',
hsb={'do $date1', case={'gen',''}},
it='entro il $date1',
ja='$date1まで',
mk='кон $date1',
ml='$date1-ൽ',
nb='innen $date1',
nn='innan $date1',
nds='$date1 oder vördem al',
nl='tegen $date1',
no='innen $date1',
pl={'przed $date1', case={'ins',''}},
pt='por $date1',
qu="$date1 p'unchawkama",
ro='de $date1',
ru={'к $date1', case={'dat',''}},
sk={'okolo $date1', case={'gen',''}},
sl={function(date1, state) return 'najpozneje ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='senast $date1',
uk={'до $date1', case={'dat',''}},
ur='توسط $date1',
vi='vào $date1', -- need to insert "đã" somewhere later in the sentence -->
['zh-hans']='$date1前后',
['zh-hant']='$date1前后',
default='<span style="color:red">by $date1</span>',
},
['before'] = {
nDates = 1,
ar='قبل $date1',
['be-tarask']={'перад $date1', case={'ins',''}},
bn='$date1-এর আগে',
bg='Преди $date1',
ca='abans $date1',
cs={'před $date1', case={'ins',''}},
da='før $date1',
de='vor $date1',
el='πριν από $date1',
en='before $date1',
['en-gb']='before $date1',
['en-ca']='before $date1',
eo='antaŭ $date1',
es='antes de $date1',
et='enne $date1',
fa='پیش از $date1',
fi={function(date1, state) return 'ennen ' .. decYear(state,'fi','ptv') .. '$date1' end, case={'ptv',''}},
fr='avant $date1',
gl='antes do $date1',
he='לפני $date1',
hr='prije $date1',
hsb={'do $date1', case={'gen',''}},
hu='$date1 előtt',
it='prima del $date1',
ja='$date1より前',
mk='пред $date1',
ml='$date1-നു മുമ്പ്',
nb='før $date1',
nn='før $date1',
nds='vör $date1',
nl='voor $date1',
no='før $date1',
pl={'przed $date1', case={'ins',''}},
pt='antes de $date1',
qu="$date1 p'unchaw ñawpan",
ro='înainte de $date1',
ru={'ранее $date1', case={'gen',''}},
sk={'pred $date1', case={'ins',''}},
sl={function(date1, state) return 'pred ' .. decYear(state,'sl','ins') .. ' $date1' end, case={'ins',''}},
sv='före $date1',
uk={'до $date1', case={'gen',''}},
ur='قبل $date1',
vi='trước $date1',
['zh-hans']='在$date1之前',
['zh-hant']='在$date1之前',
default='<span style="color:red">before $date1</span>',
},
['from'] = {
nDates = 1,
ar='من $date1',
['be-tarask']={'з $date1', case={'gen',''}},
bn='$date1 থেকে',
cs={'od $date1', case={'gen',''}},
de='Seit $date1',
el='από $date1',
en='from $date1',
['en-gb']='from $date1',
['en-ca']='from $date1',
eo='ekde $date1',
es='desde $date1',
et='alates $date1',
fa='از $date1',
fi={function(date1, state) return decYear(state,'fi','ela') .. '$date1 alkaen' end, case={'ela',''}},
fr= function(date1, state) return 'à partir '.. frOf[state.precision] ..' $date1' end,
gl='desde o $date1',
he='מ- $date1',
hr='od $date1',
hsb={'wot $date1', case={'gen',''}},
it='dal $date1',
ja='$date1から',
nds='vonaf $date1',
mk='од $date1',
nb='fra $date1',
nn='frå $date1',
ml='$date1 മുതൽ',
nl='vanaf $date1',
no='fra $date1',
pl={'od $date1', case={'gen',''}},
qu="$date1 p'unchawmanta",
ro='din $date1',
ru={'С $date1', case={'gen',''}},
sk={'od $date1', case={'gen',''}},
sl={function(date1, state) return 'od ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='från $date1',
uk={'з $date1', case={'gen',''}},
ur='از $date1',
vi='từ $date1',
['zh-hans']='自$date1',
['zh-hant']='自$date1',
default='<span style="color:red">from $date1</span>',
},
['until'] = {
nDates = 1,
['be-tarask']={'усутыч да $date1', case={'gen',''}},
bn='$date1 পর্যন্ত',
cs={'do $date1', case={'gen', ''}},
de='bis $date1',
en='until $date1',
['en-gb']='until $date1',
['en-ca']='until $date1',
eo='ĝis $date1',
es='hasta $date1',
fr=function(date1, state)
if state.precision > 10 then -- precision > month
return "jusqu'au $date1"
else
return "jusqu'à $date1"
end
end,
hr='do $date1',
hsb={'do $date1', case={'gen',''}},
it='al $date1',
nb='til $date1',
nl='tot $date1',
nn='til $date1',
ml='$date1 വരെ',
pl={'do $date1', case={'gen',''}},
ru={'вплоть до $date1', case={'gen',''}},
sk={'do $date1', case={'gen', ''}},
uk={'аж до $date1', case={'gen',''}},
ur='تک $date1',
['zh-hans']='直到$date1',
['zh-hant']='直到$date1',
default='<span style="color:red">until $date1</span>',
},
['after'] = {
nDates = 1,
ar='بعد $date1',
['be-tarask']={'пасьля $date1', case={'gen',''}},
bn='$date1-এর পরে',
ca='després de $date1',
cs={'po $date1', case={'loc',''}},
de='nach $date1',
da='efter $date1',
el='μετά από $date1',
en='after $date1',
['en-gb']='after $date1',
['en-ca']='after $date1',
eo='post $date1',
es='después de $date1',
et='pärast $date1',
fa='پس از $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 jälkeen' end, case={'gen',''}},
fr='après $date1',
gl='despois do $date1',
he='לאחר $date1',
hr='nakon $date1',
hu='$date1 után',
hsb={'po $date1', case={'loc',''}},
it='dopo il $date1',
ja='$date1より後',
mk='по $date1',
ml='$date1-നു ശേഷം',
nb='etter $date1',
nn='etter $date1',
nds='na $date1',
nl='na $date1',
no='etter $date1',
pl={'po $date1', case={'loc',''}},
pt='após $date1',
qu="$date1 p'unchaw qhipan",
ro='după $date1',
ru={'после $date1', case={'gen',''}},
sk={'po $date1', case={'loc',''}},
sl={function(date1, state) return 'po ' .. decYear(state,'sl','loc') .. ' $date1' end, case={'loc',''}},
sv='efter $date1',
uk={'після $date1', case={'gen',''}},
ur='بعد $date1',
vi='sau $date1',
['zh-hans']='在$date1之后',
['zh-hant']='在$date1之後',
default='<span style="color:red">after $date1</span>',
},
-- ==========================================
-- === Adjectives ===========================
-- ==========================================
['early'] = {
nDates = 1,
ar='بداية $date1',
['be-tarask']={'пачатак $date1', case={'gen',''}},
bn='$date1-এর শুরুতে',
ca='al principi de $date1',
cs={'začátek $date1', case={'gen',''}},
da='tidlig $date1',
de='Anfang $date1',
el='αρχές του $date1',
en='early $date1',
['en-gb']='early $date1',
['en-ca']='early $date1',
eo='komence de $date1',
es='a principios de $date1',
et='$date1 algus',
fa='اوایل $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 alku' end, case={'gen',''}},
fr='début $date1',
gl='a principios de $date1',
he='תחילת $date1',
hr='početak $date1',
hsb={'spočatk $date1', case={'gen',''}},
hu='$date1 elején',
it='inizio del $date1',
ja='$date1初頭',
mk='почеток на $date1',
ml='$date1 ആദ്യപാദം',
nb='tidlig $date1',
nn='tidleg $date1',
nds='Anfang $date1',
nl='begin $date1',
no='tidlig $date1',
pl={'początek $date1', case={'gen',''}},
pt='a princípios de $date1',
qu="$date1 ñawpaq p'unchawkunapi",
ro='începând cu $date1',
ru={'начало $date1', case={'gen',''}},
sk={'začiatok $date1', case={'gen',''}},
sl=function(date1, state)-- could actually be better should be "d'octobre à mars 2013' not "de octore 2013 à mars 2013"
if state.precision == 9 then -- precision > month
return 'zgodnje leto $date1'
else -- "DE septebmbre" / "D'octobre"
return 'zgodnji $date1'
end
end,
sv='början av $date1',
uk={'початок $date1', case={'gen',''}},
ur='ابتدا $date1',
vi='đầu năm $date1',
['zh-hans']='$date1早期',
['zh-hant']='$date1早期',
default='<span style="color:red">early $date1</span>',
},
['mid'] = {
nDates = 1,
ar='منتصف $date1',
['be-tarask']={'сярэдзіна $date1', case={'gen',''}},
bn='$date1-এর মাঝামাঝি',
ca='a mitjan $date1',
cs={'polovina $date1', case={'gen',''}},
da='midten af $date1',
de='Mitte $date1',
el='μέσα του $date1',
en='mid $date1',
['en-gb']='mid $date1',
['en-ca']='mid $date1',
eo='meze de $date1',
es='a mediados de $date1',
et='$date1 keskel',
fa='اواسط $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 puoliväli' end, case={'gen',''}},
fr='mi $date1',
gl='a mediados de $date1',
he='אמצע $date1',
hr='sredina $date1',
hsb={'srjedź $date1', case={'gen',''}},
hu='$date1 közepén',
it='metà del $date1',
ja='$date1半ば',
mk='средина на $date1',
ml='$date1 മദ്ധ്യം',
nb='midten av $date1',
nn='midten av $date1',
nds='Midd $date1',
nl='midden $date1',
no='midten av $date1',
pl={'środek $date1', case={'gen',''}},
pt='meados de $date1',
qu="$date1 chawpin p'unchawkunapi",
ro='mijlocul lui $date1',
ru={'середина $date1', case={'gen',''}},
sk={'polovica $date1', case={'gen',''}},
sl={function(date1, state) return 'sredina ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='mitten av $date1',
uk={'середина $date1', case={'gen',''}},
ur='وسط $date1',
vi='giữa năm $date1',
['zh-hans']='$date1中期',
['zh-hant']='$date1中期',
default='<span style="color:red">mid $date1</span>',
},
['late'] = {
nDates = 1,
ar='نهاية $date1',
bn='$date1-এর শেষে',
['be-tarask']={'канец $date1', case={'gen',''}},
ca='al final de $date1',
cs='konec $date1',
da='sen $date1',
de='Ende $date1',
el='τέλη του $date1',
en='late $date1',
['en-gb']='late $date1',
['en-ca']='late $date1',
eo='fine de $date1',
es='a fines de $date1',
et='$date1 lõpp',
fa='اواخر $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 loppu' end, case={'gen',''}},
fr='fin $date1',
gl='a finais de $date1',
he='סוף $date1',
hr='kraj $date1',
hsb={'kónc $date1', case={'gen',''}},
hu='$date1 végén',
it='fine del $date1',
ja='$date1末',
mk='крајот на $date1',
ml='$date1 അന്ത്യപാദം',
nb='sent $date1',
no='seint $date1',
nds='Enn $date1',
nl='eind $date1',
no='sent $date1',
pl={'koniec $date1', case={'gen',''}},
pt='ao final de $date1',
qu="$date1 qhipaq p'unchawkunapi",
ro='sfârșitul lui $date1',
ru={'конец $date1', case={'gen',''}},
sk={'koniec $date1', case={'gen',''}},
sl={function(date1, state) return 'pozno ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='slutet av $date1',
uk={'кінець $date1', case={'gen',''}},
ur='اخیر $date1',
vi='cuối năm $date1',
['zh-hans']='$date1晚期',
['zh-hant']='$date1晚期',
default='<span style="color:red">late $date1</span>',
},
['circa'] = {
nDates = 1,
ar='قرابة $date1',
['be-tarask']={'каля $date1', case={'gen',''}},
bn='প্রায় $date1',
ca='cap a $date1',
cs='cca $date1',
da='ca. $date1',
de='etwa $date1',
el='περ. $date1',
en='circa $date1',
['en-gb']='circa $date1',
['en-ca']='circa $date1',
eo='ĉirkaŭ $date1',
es='hacia $date1', -- suggestion use "hacia"/"hacia el" or leave the latin circa or ca.
et='ca. $date1',
fa='حوالی $date1', -- template:Circa used 'حدود $date1'
fi={function(date1, state) return 'suunnilleen ' .. decYear(state,'fi','ine') .. '$date1' end, case={'ine',''}}, -- template:Circa used 'noin $date1'
fr=function(date1, state)
if state.precision >= 11 then -- precision >= day
return 'vers le $date1'
else
return 'vers $date1'
end
end,
gl='entre $date1', -- template:Circa used 'cara a $date1'
he='בסביבות $date1',
hr='oko $date1',
hsb={'wokoło $date1', case={'gen',''}},
hu='$date1 körül',
it='$date1 circa',
ja='$date1頃',
ko='$date1경',
mk='~ $date1', -- template:Circa used 'o. $date1'
ml= 'ഉദ്ദേശം $date1',
nb='ca. $date1',
nn='ca. $date1',
nds='üm un bi $date1',
nl='ca. $date1',
no='ca. $date1',
pl={'około $date1', case={'gen',''}},
pt='cerca de $date1',
qu='$date1chá',
ro='circa $date1',
ru={'около $date1', case={'gen',''}},
sk='cca $date1',
sl={function(date1, state) return 'ok. ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='c:a $date1', -- template:Circa used 'ca $date1'
uk={'близько $date1', case={'gen', ''}},
ur='قریباً $date1',
vi='vào khoảng $date1',
['zh-hans']='约$date1',
['zh-hant']='約$date1',
default='<span style="color:red">circa $date1</span>',
},
['uncertain'] = {
nDates = 1,
['zh-hans']='$date1(?)',
['zh-hant']='$date1(?)',
default='$date1 (?)',
},
probably = { -- see Q56644435
nDates = 1,
ast = 'probablemente $date1',
bn = 'সম্ভবত $date1',
ca = 'probablement $date1',
cs = 'pravděpodobně $date1',
de = 'wahrscheinlich $date1',
el = 'πιθανόν $date1',
en = 'probably $date1',
['en-gb']='probably $date1',
['en-ca']='probably $date1',
eo = 'probable $date1',
es = 'probable $date1',
fa = 'احتمالاً $date1',
fr = 'probablement $date1',
he = 'כפי הנראה $date1',
hu = 'feltehetőleg $date1',
it = 'probabile $date1',
mk = 'веројатно $date1',
ml = 'ഒരുപക്ഷേ $date1',
nl = 'waarschijnlijk $date1',
pl = 'prawdopodobnie $date1',
pt = 'provavelmente $date1',
ru = 'вероятно $date1',
sv = 'antagligen $date1',
uk = 'ймовірно $date1',
default='<span style="color:red">probably $date1</span>',
},
possibly = { -- see Q30230067
nDates = 1,
ast = 'posiblemente $date1',
bn = 'যথাসম্ভব $date1',
cs = 'možná $date1',
de = 'möglicherweise $date1',
en = 'possibly $date1',
['en-gb']='possibly $date1',
['en-ca']='possibly $date1',
eo = 'eble $date1',
el = 'πιθανόν $date1',
fa = 'احتمالاً $date1',
fr = 'peut-être $date1',
hu = 'talán $date1',
mk = 'можеби $date1',
ml = 'മിക്കവാറും $date1',
nl = 'mogelijk $date1',
pl = 'być może $date1',
pt = 'possivelmente $date1',
ro = 'poate $date1',
ru = 'возможно $date1',
sv = 'möjligen $date1',
uk = 'можливо $date1',
default='<span style="color:red">possibly $date1</span>',
},
presumably = { -- see Q18122778
nDates = 1,
ast = 'presumiblemente $date1',
de = 'vermutlich $date1',
en = 'presumably $date1',
['en-gb']='presumably $date1',
['en-ca']='presumably $date1',
fr = 'présumé $date1',
it = 'presumibilmente $date1',
ml = 'ഊഹപ്രകാരം $date1',
ru = 'предположительно $date1',
pl = 'przypuszczalnie $date1',
uk = 'здогадно $date1',
default='<span style="color:red">presumably $date1</span>',
},
['year unknown']= {
nDates = 0,
ca='Any desconegut',
['be-tarask']='Год невядомы',
bn='অজানা বছর',
cs='neznámý rok',
de='Jahr unbekannt',
el='άγνωστο έτος',
en='year unknown',
['en-gb']='year unknown',
['en-ca']='year unknown',
eo='jaro nesciata',
es='Año desconocido',
fa='سال نامعلوم',
fi='tuntematon vuosi',
fr='Année inconnue',
he='שנה לא ידועה',
hsb='lěto njeznate',
hr='nepoznata godina',
it='anno sconosciuto',
ja='年代不明',
la='Sine anno',
ml='വർഷം ലഭ്യമല്ല',
mk='непозната година',
nb='ukjent år',
nn='ukjent år',
nl='zonder jaar',
no='ukjent år',
pl='rok nieznany',
qu='Mana riqsisqa wata',
ru='Год неизвестен',
sk='neznámy rok',
sl='neznano leto',
sv='Okänt år',
uk='рік невідомий',
ur='سال نامعلوم',
vi='không rõ năm',
['zh-hans']='年份未知',
['zh-hant']='年份未知',
default='<span style="color:red">year unknown</span>',
},
-- ==========================================
-- === Parts of a whole =====================
-- ==========================================
['firsthalf'] = {
nDates = 1,
ar='النصف الأول من $date1',
['be-tarask']={'першая палова $date1', case={'gen',''}},
bn='$date1-এর প্রথমার্ধ',
ca='1a meitat de $date1',
cs={'1. polovina $date1', case={'gen',''}},
da='1. halvdel af $date1',
de='1. Hälfte $date1',
el='πρώτο μισό του $date1',
en='first half of $date1',
['en-gb']='first half of $date1',
['en-ca']='first half of $date1',
eo='unua duono de $date1',
es='primera mitad de $date1',
et='$date1 esimene pool',
fa='نیمهٔ نخست $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 alkupuolisko' end, case={'gen',''}},
fr='1<sup>re</sup> moitié de $date1',
gl='primeira metade de $date1',
he='במחצית הראשונה של $date1',
hsb={'prěnja połojca $date1', case={'gen',''}},
hu='$date1 első felében',
hr='prva polovina $date1',
it='prima metà del $date1',
ja='$date1上半期',
mk='прва половина на $date1',
ml='$date1 ആദ്യപകുതി',
nb='første halvdel av $date1',
nn='fyrste halvdelen av $date1',
nds='1. Helft $date1',
nl='eerste helft $date1',
no='første halvdel av $date1',
pl={'pierwsza połowa $date1', case={'gen',''}},
pt='primeira metade de $date1',
qu='$date1 ñawpaq kuskanpi',
ro='prima jumătate a lui $date1',
ru={'первая половина $date1', case={'gen',''}},
sk={'1. polovica $date1', case={'gen',''}},
sl={function(date1, state) return 'prva polovica ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='första halvan av $date1',
uk={'перша половина $date1', case={'gen',''}},
ur='نصف اول $date1',
vi='nửa đầu năm $date1',
['zh-hans']='$date1上半期',
['zh-hant']='$date1上半期',
default='<span style="color:red">first half of $date1</span>',
},
['secondhalf'] = {
nDates = 1,
ar='النصف الثاني من $date1',
['be-tarask']={'другая палова $date1', case={'gen',''}},
bn='$date1-এর দ্বিতীয়ার্ধ',
ca='2a meitat de $date1',
cs={'2. polovina $date1', case={'gen',''}},
da='2. halvdel af $date1',
de='2. Hälfte $date1',
el='δεύτερο μισό του $date1',
en='second half of $date1',
['en-gb']='second half of $date1',
['en-ca']='second half of $date1',
eo='dua duono de $date1',
es='segunda mitad de $date1',
et='$date1 teine pool',
fa='نیمهٔ دوم $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 loppupuolisko' end, case={'gen',''}},
fr='2<sup>e</sup> moitié de $date1',
gl='segunda metade de $date1',
he='במחצית השנייה של $date1',
hsb={'druha połojca $date1', case={'gen',''}},
hr='druga polovina $date1',
hu='$date1 második felében',
it='seconda metà del $date1',
ja='$date1下半期',
mk='втора половина на $date1',
ml='$date1 രണ്ടാം പകുതി',
nb='andre halvdel av $date1',
nn='andre halvdelen av $date1',
nds='2. Helft vun $date1',
nl='tweede helft $date1',
no='andre halvdel av $date1',
pl={'druga połowa $date1', case={'gen',''}},
pt='segunda metade de $date1',
qu='$date1 qhipaq kuskanpi',
ro='a doua jumătate a lui $date1',
ru={'вторая половина $date1', case={'gen',''}},
sk={'2. polovica $date1', case={'gen',''}},
sl={'druga polovica {{IfNum | $date0 | leta}} $date1', case={'gen',''}},
sv='andra halvan av $date1',
uk={'друга половина $date1', case={'gen',''}},
ur='نصف آخر $date1',
vi='nửa cuối năm $date1',
['zh-hans']='$date1下半期',
['zh-hant']='$date1下半期',
default='<span style="color:red">second half of $date1</span>',
},
['1quarter']= {
nDates = 1,
bn='$date1-এর প্রথম ত্রৈমাসিক',
['be-tarask']={'першая чвэрць $date1', case={'gen',''}},
cs={'1. čtvrtina $date1', case={'gen',''}},
de='erstes Viertel $date1',
en='first quarter of $date1',
['en-gb']='first quarter of $date1',
['en-ca']='first quarter of $date1',
eo='unua kvarono de $date1',
es='primer cuarto del $date1',
fa='ربع نخست $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 ensimmäinen neljännes' end, case={'gen',''}},
fr= function(date1, state) return 'premier quart '.. frOf[state.precision] ..' $date1' end,
he='רבעון ראשון של $date1',
hsb={'prěnja štwórćina $date1', case={'gen',''}},
hr='prva četvrtina $date1',
it='primo quarto del $date1',
ja='$date1第1四半期',
ml='$date1 ഒന്നാം ത്രൈമാസം',
nb='første kvartal av $date1',
nl='eerste kwart $date1',
nn='fyrste kvartalet av $date1',
no='første kvartal av $date1',
pl={'pierwsza ćwiartka $date1', case={'gen',''}},
qu='$date1 ñawpaq ñiqin tawa phatmanpi',
ru={'первая четверть $date1', case={'gen',''}},
sk={'1. štvrtina $date1', case={'gen',''}},
sl={'prva četrtina {{IfNum | $date0 | leta}} $date1', case={'gen',''}},
sl={function(date1, state) return 'prva četrtina ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='första kvartalet av $date1',
uk={'1-ша чверть $date1', case={'gen',''}},
ur='پہلی سہ ماہی $date1',
vi='quý 1 năm $date1',
['zh-hans']='$date1第一季度',
['zh-hant']='$date1第一季度',
default='<span style="color:red">first quarter of $date1</span>',
},
['2quarter']= {
nDates = 1,
['be-tarask']={'другая чвэрць $date1', case={'gen',''}},
bn='$date1-এর দ্বিতীয় ত্রৈমাসিক',
cs={'2. čtvrtina $date1', case={'gen',''}},
de='zweites Viertel $date1',
en='second quarter of $date1',
['en-gb']='second quarter of $date1',
['en-ca']='second quarter of $date1',
eo='dua kvarono de $date1',
es='segundo cuarto del $date1',
fa='ربع دوم $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 toinen neljännes' end, case={'gen',''}},
fr= function(date1, state) return 'deuxième quart '.. frOf[state.precision] ..' $date1' end,
he='רבעון שני של $date1',
hsb={'druha štwórćina $date1', case={'gen',''}},
hr='druga četvrtina $date1',
it='secondo quarto del $date1',
ja='$date1第2四半期',
ml='$date1 രണ്ടാം ത്രൈമാസം',
nb='andre kvartal av $date1',
nl='tweede kwart $date1',
nn='andre kvartalet av $date1',
no='andre kvartal av $date1',
pl={'druga ćwiartka $date1', case={'gen',''}},
qu='$date1 iskay ñiqin tawa phatmanpi',
ru={'вторая четверть $date1', case={'gen',''}},
sk={'2. štvrtina $date1', case={'gen',''}},
sl={function(date1, state) return 'druga četrtina ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='andra kvartalet av $date1',
uk={'2-га чверть $date1', case={'gen',''}},
ur='دوسری سہ ماہی $date1',
vi='quý 2 năm $date1',
['zh-hans']='$date1第二季度',
['zh-hant']='$date1第二季度',
default='<span style="color:red">second quarter of $date1</span>',
},
['3quarter']= {
nDates = 1,
['be-tarask']={'трэцяя чвэрць $date1', case={'gen',''}},
bn='$date1-এর তৃতীয় ত্রৈমাসিক',
cs={'3. čtvrtina $date1', case={'gen',''}},
de='drittes Viertel $date1',
en='third quarter of $date1',
['en-gb']='third quarter of $date1',
['en-ca']='third quarter of $date1',
eo='tria kvarono de $date1',
es='tercer cuarto del $date1',
fa='ربع سوم $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 kolmas neljännes' end, case={'gen',''}},
fr= function(date1, state) return 'troisième quart '.. frOf[state.precision] ..' $date1' end,
he='רבעון שלישי של $date1',
hsb={'třeća štwórćina $date1', case={'gen',''}},
hr='treća četvrtina $date1',
it='terzo quarto del $date1',
ja='$date1第3四半期',
ml='$date1 മൂന്നാം ത്രൈമാസം',
nb='tredje kvartal av $date1',
nl='derde kwart $date1',
nn='tredje kvartalet av $date1',
no='tredje kvartal av $date1',
pl={'trzecia ćwiartka $date1', case={'gen',''}},
qu='$date1 kimsa ñiqin tawa phatmanpi',
sk={'3. štvrtina $date1', case={'gen',''}},
sl={function(date1, state) return 'tretja četrtina ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
ru={'третья четверть $date1', case={'gen',''}},
sv='tredje kvartalet av $date1',
uk={'3-тя чверть $date1', case={'gen',''}},
ur='تیسری سہ ماہی $date1',
vi='quý 3 năm $date1',
['zh-hans']='$date1第三季度',
['zh-hant']='$date1第三季度',
default='<span style="color:red">third quarter of $date1</span>',
},
['4quarter']= {
nDates = 1,
['be-tarask']={'чацьвёртая чвэрць $date1', case={'gen',''}},
bn='$date1-এর চতুর্থ ত্রৈমাসিক',
cs={'4. čtvrtina $date1', case={'gen',''}},
de='letztes Viertel $date1',
en='fourth quarter of $date1',
['en-gb']='fourth quarter of $date1',
['en-ca']='fourth quarter of $date1',
eo='kvara kvarono de $date1',
es='último cuarto del $date1',
fa='ربع چهارم $date1',
fi={function(date1, state) return decYear(state,'fi','gen') .. '$date1 viimeinen neljännes' end, case={'gen',''}},
fr= function(date1, state) return 'quatrième quart '.. frOf[state.precision] ..' $date1' end,
he='רבעון רביעי של $date1',
hsb={'poslednja štwórćina $date1', case={'gen',''}},
hr='četvrta četvrtina $date1',
it='quarto quarto del $date1',
ja='$date1第4四半期',
ml='$date1 നാലാം ത്രൈമാസം',
nb='fjerde kvartal av $date1',
nl='vierde kwart $date1',
nn='tredje kvartalet av $date1',
no='fjerde kvartal av $date1',
pl={'czwarta ćwiartka $date1', case={'gen',''}},
qu='$date1 qhipaq ñiqin tawa phatmanpi',
ru={'последняя четверть $date1', case={'gen',''}},
sk={'4. štvrtina $date1', case={'gen',''}},
sl={function(date1, state) return 'zadnja četrtina ' .. decYear(state,'sl','gen') .. ' $date1' end, case={'gen',''}},
sv='fjärde kvartalet av $date1',
uk={'4-та чверть $date1', case={'gen',''}},
ur='چوتھی سہ ماہی $date1',
vi='quý 4 năm $date1',
['zh-hans']='$date1第四季度',
['zh-hant']='$date1第四季度',
default='<span style="color:red">forth quarter of $date1</span>',
},
-- ==========================================
-- === Seasons ==============================
-- ==========================================
['spring'] = {
nDates = 1,
ar='ربيع $date1',
['be-tarask']='вясна $date1',
bn='বসন্তকাল $date1',
ca='primavera $date1',
cs={'jaro $date1', case={'gen', ''}},
da='Forår $date1',
de='Frühling $date1',
en='Spring $date1',
['en-gb']='Spring $date1',
['en-ca']='Spring $date1',
eo='printempo $date1',
es='primavera de $date1',
et='$date1 kevad',
fa='بهار $date1',
fi='Kevät $date1',
fr='printemps $date1',
gl='primavera $date1',
he='אביב $date1',
hr='proljeće $date1',
hsb='nalěćo $date1',
hu='$date1 tavasza',
it='primavera $date1',
ja='{{#if:$date1|$date1年}}春',
mk='пролет $date1',
ml='$date1 വസന്തം',
nb='våren $date1',
nds='Vörjohr $date1',
nn='våren $date1',
nl='voorjaar $date1',
no='våren $date1',
pl='wiosna $date1',
pt='primavera de $date1',
ro='primăvara lui $date1',
ru='весна $date1',
sk={'jar $date1', case={'gen', ''}},
sl='pomlad $date1',
sv='våren $date1',
uk='весна $date1',
ur='بہار $date1',
vi='mùa đông năm $date1',
['zh-hans']='{{#if:$date1|$date1年}}春季',
['zh-hant']='{{#if:$date1|$date1年}}春季',
default='<span style="color:red">Spring $date1</span>',
},
['summer'] = {
nDates = 1,
ar='صيف $date1',
['be-tarask']='лета $date1',
bn='গ্রীষ্মকাল $date1',
ca='estiu $date1',
cs={'léto $date1', case={'gen', ''}},
da='Sommer $date1',
de='Sommer $date1',
en='Summer $date1',
['en-gb']='Summer $date1',
['en-ca']='Summer $date1',
eo='somero $date1',
es='verano de $date1',
et='$date1 suvi',
fa='تابستان $date1',
fi='Kesä $date1',
fr='été $date1',
gl='verán $date1',
he='קיץ $date1',
hr='ljeto $date1',
hsb='lěćo $date1',
hu='$date1 nyara',
it='estate $date1',
ja='{{#if:$date1|$date1年}}夏',
mk='лето $date1',
ml='$date1 വേനൽ',
nb='sommeren $date1',
nds='Sommer $date1',
nn='sumaren $date1',
nl='zomer $date1',
no='sommeren $date1',
pl='lato $date1',
pt='verão de $date1',
ro='vara lui $date1',
ru='лето $date1',
sk={'leto $date1', case={'gen', ''}},
sl='poletje $date1',
sv='sommaren $date1',
uk='літо $date1',
ur='گرما $date1',
vi='mùa hè năm $date1',
['zh-hans']='{{#if:$date1|$date1年}}夏季',
['zh-hant']='{{#if:$date1|$date1年}}夏季',
default='<span style="color:red">Summer $date1</span>',
},
['autumn'] = {
nDates = 1,
ar='خريف $date1',
['be-tarask']='восень $date1',
bn='শরত্কাল $date1',
ca='tardor $date1',
cs={'podzim $date1', case={'gen', ''}},
da='Efterår $date1',
de='Herbst $date1',
en='Autumn $date1',
['en-gb']='Autumn $date1',
['en-ca']='Autumn $date1',
eo='aŭtuno $date1',
es='otoño de $date1',
et='$date1 sügis',
fa='پاییز $date1',
fi='Syksy $date1',
fr='automne $date1',
gl='outono $date1',
he='סתיו $date1',
hr='jesen $date1',
hsb='nazyma $date1',
hu='$date1 ősze',
it='autunno $date1',
ja='{{#if:$date1|$date1年}}秋',
mk='есен $date1',
ml='$date1 ശരത്കാലം',
nb='høsten $date1',
nds='Harvst $date1',
nn='hausten $date1',
nl='herfst $date1',
no='høsten $date1',
pl='jesień $date1',
pt='outono de $date1',
ro='toamna lui $date1',
ru='осень $date1',
sk={'jeseň $date1', case={'gen', ''}},
sl='jesen $date1',
sv='hösten $date1',
uk='осінь $date1',
ur='خزاں $date1',
vi='mùa thu năm $date1',
['zh-hans']='{{#if:$date1|$date1年}}秋季',
['zh-hant']='{{#if:$date1|$date1年}}秋季',
default='<span style="color:red">Autumn $date1</span>',
},
['winter'] = {
nDates = 1,
ar='شتاء $date1',
['be-tarask']='зіма $date1',
bn='শীতকাল $date1',
ca='hivern $date1',
cs={'zima $date1', case={'gen', ''}},
da='Vinter $date1',
de='Winter $date1',
en='Winter $date1',
['en-gb']='Winter $date1',
['en-ca']='Winter $date1',
eo='vintro $date1',
es='invierno de $date1',
et='$date1 talv',
fa='زمستان $date1',
fi='Talvi $date1',
fr='hiver $date1',
gl='inverno $date1',
he='חורף $date1',
hr='zima $date1',
hsb='zyma $date1',
hu='$date1 tele',
it='inverno $date1',
ja='{{#if:$date1|$date1年}}冬',
mk='зима $date1',
ml='$date1 ശൈത്യകാലം',
nds='Winter $date1',
nl='winter $date1',
nb='vinteren $date1',
nn='vinteren $date1',
no='vinteren $date1',
pl='zima $date1',
pt='inverno de $date1',
ro='iarna lui $date1',
ru='зима $date1',
sk={'zima $date1', case={'gen', ''}},
sl='zima $date1',
sv='vintern $date1',
uk='зима $date1',
ur='سرما $date1',
vi='mùa đông năm $date1',
['zh-hans']='{{#if:$date1|$date1年}}冬季',
['zh-hant']='{{#if:$date1|$date1年}}冬季',
default='<span style="color:red">Winter $date1</span>',
},
-- ==========================================
-- === Decade/Century/Millennium ============
-- ==========================================
['decade'] = {
nDates = 1,
ar='أعوام $date1',
['be-tarask']='$date1-я гады',
bn='$date1-এর দশক',
ca='dècada del $date1',
cs=function(date1, state) return ((date1 % 100 == 0) and 'první dekáda' or ((date1 % 100) .. '. léta')) .. ' ' .. (math.floor(date1 / 100) + 1) .. '. století' end,
da="$date1'erne",
de='$date1er-Jahre',
el='δεκαετία του $date1',
en='$date1s',
['en-gb']='$date1s',
['en-ca']='$date1s',
eo='$date1-aj jaroj',
es='años $date1',
et='$date1ndad',
fa='دههٔ $date1',
fi='$date1-luvulla',
fr='années $date1',
gl='anos $date1',
he='שנות ה-$date1',
hr='$date1-ih',
hsb='$date1te lěta',
hu='$date1-s évek',
it="{{#ifexpr: $date1 mod 100 = 0 | primo decennio del {{Roman|{{#expr: ($date1 / 100) + 1}}}} sec. | anni '{{#expr: $date1 mod 100 }} del {{Roman|{{#expr: floor($date1 / 100) + 1}}}} sec.}}",
ja='$date1年代',
mk='$date1-ти',
ml='ദശകം $date1-ൽ',
nb='$date1-årene',
nn='$date1-åra',
nds='Johren $date1',
nl='jaren $date1',
no='$date1-årene',
pl=function(date1, state)
local str = 'lata '..(date1 % 100)..'. '
if (date1 % 100 == 0) then
str = 'pierwsza dekada '
elseif (date1 % 100 == 10) then
str = 'druga dekada '
end
return str .. Roman(math.floor(date1 / 100) + 1) .. ' wieku'
end,
pt='década de $date1',
qu='$date1 watakuna',
ro='anii $date1',
ru='$date1-е годы',
sk=function(date1, state) return ((date1 % 100 == 0) and 'prvé desaťročie' or ((date1 % 100) .. '. roky')) .. ' ' .. (math.floor(date1 / 100) + 1) .. '. storočia' end,
sl='$date1-ta leta',
sv='$date1-talet{{#switch:$date1|1300|1400|1500|1600|1700|1800|1900|2000|2100= (decennium)}}',
uk='$date1-ті роки',
ur='دہائی $date1',
vi='thập niên $date1',
['zh-hans']='$date1年代',
['zh-hant']='$date1年代',
default='<span style="color:red">$date1s</span>',
},
['century'] = {
nDates = 1,
ar='القرن $date1',
['be-tarask']=function(date1, state) return Ordinal(date1, 'be-tarask') .. ' стагодзьдзе' end,
bn=function(date1, state) return Ordinal(date1, 'bn') .. ' শতাব্দী' end,
ca='segle {{small-caps|{{lc:{{Roman year|$date1}}}}}}',
cs='$date1. století',
da='$date1. århundrede',
de='$date1. Jahrhundert',
el='$date1ος αιώνας',
en=function(date1, state) return Ordinal(date1, 'en') .. ' century' end,
['en-gb']=function(date1, state) return Ordinal(date1, 'en-gb') .. ' century' end,
['en-ca']=function(date1, state) return Ordinal(date1, 'en-ca') .. ' century' end,
eo='$date1-a jarcento',
es=function(date1, state) return 'siglo ' .. Roman(date1) end,
et='$date1. sajand',
fa='سدهٔ $date1',
fi='{{#expr: ($date1 - 1) * 100}}-luvulla',
fr=function(date1, state) return Ordinal(date1, 'fr', 'roman', 'm') .. ' siècle' end,
gl=function(date1, state) return 'século ' .. Roman(date1) end,
he='המאה ה-$date1',
hr='$date1. stoljeće',
hsb='$date1. lětstotk',
hu='$date1. évszázad',
it=function(date1, state) return Roman(date1) .. ' sec.' end,
ja='$date1世紀',
la='saeculum $date1',
mk=function(date1, state) return Roman(date1) .. ' век' end,
ml='$date1-ആം നൂറ്റാണ്ട്',
nb=function(date1, state) return Ordinal(date1, 'nb') .. ' århundre' end,
nn=function(date1, state) return 'det ' .. Ordinal(date1, 'no') .. ' århundre' end,
nds='$date1. Johrhunnert',
nl='$date1e eeuw',
no=function(date1, state) return Ordinal(date1, 'no') .. ' århundre' end,
pl=function(date1, state) return Roman(date1) .. ' ' .. decCentury('pl',state.case) end,
pt=function(date1, state) return 'século ' .. Roman(date1) end,
qu='$date1 ñiqin pachakwata',
ro='secolul al $date1-lea',
ru=function(date1, state) return Roman(date1) .. ' век' end,
sk='$date1. storočie',
sl=function(date1, state) return Ordinal(date1, 'sl') .. '. stoletje' end,
sv='{{#expr:$date1 - 1}}00-talet',
tt=function(date1, state) return Roman(date1) .. ' гасыр' end,
uk=function(date1, state) return Roman(date1) .. ' ст.' end,
ur='صدی $date1',
vi='thế kỷ $date1',
['zh-hans']='$date1世纪',
['zh-hant']='$date1世紀',
default='<span style="color:red">$date1 century</span>',
},
['millennium'] = {
nDates = 1,
['be-tarask']=function(date1, state) return Ordinal(date1, 'be-tarask') .. ' тысячагодзьдзе' end,
bn=function(date1, state) return Ordinal(date1, 'bn') .. ' সহস্রাব্দ' end,
cs='$date1. tisíciletí',
de='$date1. Jahrtausend',
en=function(date1, state) return Ordinal(date1, 'en') .. ' millennium' end,
['en-gb']=function(date1, state) return Ordinal(date1, 'en-gb') .. ' millennium' end,
['en-ca']=function(date1, state) return Ordinal(date1, 'en-ca') .. ' millennium' end,
eo='$date1-a jarmilo',
es=function(date1, state) return Roman(date1) .. ' milenio' end,
fa=function(date1, state) return 'هزارهٔ ' .. Ordinal(date1, 'fa') end,
fr=function(date1, state) return Ordinal(date1, 'fr', 'roman', 'm') .. ' millénaire' end,
hr='$date1. tisućljeće',
hsb='$date1. lěttysac',
it=function(date1, state) return Roman(date1) .. ' millennio' end,
ja='$date1千年紀',
la='millennium $date1',
ml='$date1-മത്തെ സഹസ്രാബ്ദം',
nb=function(date1, state) return Ordinal(date1, 'nb') .. ' årtusen' end,
nn=function(date1, state) return Ordinal(date1, 'no') .. ' tusenår' end,
nl='$date1e millennium',
no=function(date1, state) return Ordinal(date1, 'no') .. ' årtusen' end,
pl=function(date1, state) return Roman(date1) .. ' ' .. decMillennium('pl',state.case) end,
pt=function(date1, state) return Roman(date1) .. ' milénio' end,
qu='$date1 ñiqin waranqawata',
ru=function(date1, state) return Roman(date1) .. ' тысячелетие' end,
sk='$date1. tisícročie',
sl=function(date1, state) return Ordinal(date1, 'sl') .. '. tisočletje' end,
sv=function(date1, state) return Ordinal(date1, 'sv') .. ' årtusendet' end,
uk=function(date1, state) return Roman(date1) .. ' тис.' end,
ur=function(date1, state) return 'ہزارہ ' .. Ordinal(date1, 'ur') end,
vi='thiên niên kỷ $date1',
['zh-hans']=function(date1, state) return Ordinal(date1, 'zh-hans') .. '千年' end,
['zh-hant']=function(date1, state) return Ordinal(date1, 'zh-hant') .. '千年' end,
--default='{{Please translate|$date1 millennium|Module:I18n/complex date}}',
default='<span style="color:red">$date1 millennium</span>',
},
['million'] = {
de = '$date1 Millionen Jahre',
en = '$date1 million years',
['en-gb'] = '$date1 million years',
['en-ca'] = '$date1 million years',
eo = '$date1 milionoj da jaroj',
es = '$date1 millones de años',
nl = '$date1e miljoen jaar',
fr = '$date1 millions d’années',
it = '$date1 milioni di anni',
ml = function(date1, state)
if date1 >= 10 then
return (date1 / 10) .. ' കോടി വർഷങ്ങൾ' -- 100 lakh = 1 crore
else
return (date1 * 10) .. ' ലക്ഷം വർഷങ്ങൾ'
end
end,
nb = '$date1 millioner år',
nl = '$date1 miljoen jaar',
nn = '$date1 millionar år',
pl = '$date1 milionów lat',
pt = '$date1 milhões de anos',
ru = '$date1 миллиона лет',
uk = '$date1 мільйони років',
ur = '$date1 ملین سال',
['zh-hans'] = '$date1百万年',
['zh-hant'] = '$date1百万年',
default='<span style="color:red">$date1 million years</span>',
nDates = 1,
},
['billion'] = {
de = '$date1 Milliarden Jahre',
en = '$date1 billion years',
['en-gb'] = '$date1 billion years',
['en-ca'] = '$date1 billion years',
es = '$date1 mil millones de años',
nl = '$date1e miljard jaar',
fr = '$date1 milliard d’années',
it = '$date1 miliardi di anni',
ml = function(date1, state) return (date1 * 10) .. ' കോടി വർഷങ്ങൾ' end,
nb = '$date1 milliarder år',
nl = '$date1 miljard jaar',
nn = '$date1 milliardar år',
pl = '$date1 miliardów lat',
pt = '$date1 mil milhões de anos',
ru = '$date1 миллиардов лет',
uk = '$date1 мільярдів років',
ur = '$date1 بلین سال',
['zh-hans'] = '$date1十亿年',
['zh-hant'] = '$date1十億年',
default='<span style="color:red$date1 billion years</span>',
nDates = 1,
},
-- ==========================================
-- === Complex phrases ======================
-- ==========================================
-- Phrases which for some languages can be build out of simpler phrases
-- Their "default" state, used when no translation in the requested language was found, returns a "state" like
-- table which is used to call the function again and built the phrase out of simple phrases
-- $date1 - original date - 1
-- $date2 - original date
-- if era is BC than $date1 and $date2 are swapped
['turn of the century'] = {
nDates = 2,
['be-tarask']=function(date1, date2, state) return 'канец ' .. Roman(date1) ..' — пачатак ' .. Roman(date2) ..' стагодзьдзя' end,
bn=function(date1, date2, state) return '$date1/' .. Ordinal(date2, 'bn') .. ' শতাব্দীর পালাবদলে' end,
cs='přelom $date1. a $date2. století',
de=function(date1, date2, state) return 'Jahrhundertwende $date1/' .. Ordinal(date2, 'de') end,
en=function(date1, date2, state) return 'turn of the $date1/' .. Ordinal(date2, 'en') .. ' century' end,
['en-gb']=function(date1, date2, state) return 'turn of the $date1/' .. Ordinal(date2, 'en-gb') .. ' century' end,
['en-ca']=function(date1, date2, state) return 'turn of the $date1/' .. Ordinal(date2, 'en-ca') .. ' century' end,
eo='ŝanĝo de la $date1-a al la $date2-a jarcentoj',
es=function(date1, date2, state) return 'hacia finales del siglo ' .. Roman(date1) .. ' y principios del siglo ' .. Roman(date2) .. '' end,
fi='{{#expr: $date1 * 100-100}}-luvun loppu ja {{#expr: $date2 * 100-100}}-luvun alku',
fr=function(date1, date2, state) return 'fin du ' .. Ordinal(date1, 'fr', 'roman', 'm') .. ' siècle / début du ' .. Ordinal(date2, 'fr', 'roman', 'm') end,
hr='kraj $date1. i početak $date2. stoljeća',
hsb=function(date1, date2, state) return 'přechod ' .. Roman(date1) ..' do ' .. Roman(date2) ..' lětstotka' end,
it=function(date1, date2, state) return 'fine del ' .. Roman(date1) .. ' sec. e inizio del ' .. Roman(date2) .. ' sec.' end,
ja='$date1世紀から$date2世紀への変わり目',
ml='$date1 നൂറ്റാണ്ട് അവസാനവും $date2 നൂറ്റാണ്ട് ആദ്യവും',
nb=function(date1, date2, state) return 'slutten av det ' .. Ordinal(date1, 'nb') .. ' århundre/begynnelsen av det ' .. Ordinal(date2, 'nb') .. ' århundre' end,
nl=function(date1, date2, state) return 'eind $date1e/begin $date2e eeuw' end,
nn=function(date1, date2, state) return 'slutten av det ' .. Ordinal(date1, 'nn') .. ' hundreåret/byrjinga av det ' .. Ordinal(date2, 'nn') .. ' hundreåret' end,
pl=function(date1, date2, state) return 'przełom ' .. Roman(date1) ..' i ' .. Roman(date2) ..' wieku' end,
qu="$date1 ñiqin waranqawatamanta $date2 ñiqin waranqawataman t'ikrasqanpi",
ru=function(date1, date2, state) return 'конец ' .. Roman(date1) ..' — начало ' .. Roman(date2) ..' века' end,
sk='prelom $date1. a $date2. storočia',
sl=function(date1, date2, state) return 'pozno ' .. Ordinal(date1, 'sl') .. '. in zgodnje ' .. Ordinal(date2, 'sl') .. '. stoletje' end,
sv=function(date1, date2, state) return '$date1/' .. Ordinal(date2, 'sv') .. ' årtusendets sekelskifte' end,
uk=function(date1, date2, state) return 'кін. ' .. Roman(date1) ..' ст. — поч. ' .. Roman(date2) ..' ст.' end,
vi='bước sang thế kỷ $date2',
['zh-hans']=function(date1, date2, state) return '$date1世纪末' .. Ordinal(date2, 'zh-hans') .. '世纪初' end,
['zh-hant']=function(date1, date2, state) return '$date1世紀末' .. Ordinal(date2, 'zh-hant') .. '世紀初' end,
default=function(date1, date2, state) return {conj='and', adj1 = 'late', unit1='century', era1=state.era1, adj2 = 'early', unit2='century', era2=state.era2} end,
},
-- $date1 - original date - 10
-- $date2 - original date
-- if era is BC than $date1 and $date2 are swapped
['turn of the decade']={
nDates = 2,
['be-tarask']='канец $date1-х — пачатак $date2-х гг.',
bn='$date1-এর দশকের শেষে এবং $date2-এর দশকের শুরুতে',
cs=function(date1, date2, state)
local decade1 = math.floor((date1 % 100) / 10)
local decade2 = math.floor((date2 % 100) / 10)
local century1 = math.floor( date1 / 100) + 1
local century2 = math.floor( date2 / 100) + 1
if decade1 == 0 and date1 < date2 then
return "přelom 1. a 2. dekády " .. century1 .. ". století"
elseif decade2 == 0 and date2 < date1 then
return "přelom 9. a 10. dekády " .. century1 .. ". století"
elseif (decade1 == 9 and date1 < date2) or (decade2 == 9 and date2 < date1) then
return "přelom " .. century1 .. ". a " .. century2 .. ". století"
else
return "přelom " .. decade1 .. "0. a " .. decade2 .. "0. let " .. century1 .. ". století"
end
end,
de='späte $date1er und frühe $date2er',
en='late $date1s and early $date2s',
['en-gb']='late $date1s and early $date2s',
['en-ca']='late $date1s and early $date2s',
eo='ŝanĝo de la $date1-a al la $date2-a jardekoj',
es='finales de los años $date1 y principios de los años $date2',
fa='اواخر دههٔ $date1 و اوایل دههٔ $date2',
fi='$date1-luvun loppu ja $date2-luvun alku',
fr='fin des années $date1 / début des années $date2',
hr='kraj $date1-ih i početak $date2-ih',
hsb='pózdnje $date1te a zažne $date2te lěta',
it='fine degli anni $date1 / inizio degli anni $date2',
ja='$date1年代末から$date2年代初頭',
ml='$date1കൾ അവസാനവും $date2കൾ ആദ്യവും',
nb = 'sent på $date1-tallet og tidlig på $date2-tallet',
nl = 'eind $date1e/begin $date2e decennium',
nn = 'seint på $date1-talet og tidleg på $date2-talet',
pl=function(date1, date2, state)
local decade1 = math.floor(date1 % 100)
local decade2 = math.floor(date2 % 100)
local century1 = Roman(math.floor( date1 / 100) + 1)
local century2 = Roman(math.floor( date2 / 100) + 1)
if decade1 == 0 and date1 < date2 then
return "przełom pierwszej i drugiej dekady " .. century1 .. " wieku"
elseif decade1 == 10 and date1 < date2 then
return "przełom drugiej dekady i lat 20. " .. century1 .. " wieku"
elseif decade1 == 90 and decade2 == 0 then
return "przełom ostatniej dekady " .. century1 .. " i pierwszej dekady " .. century2 .. " wieku"
else
return "przełom lat " .. decade1 .. ". i " .. decade2 .. ". " .. century1 .. " wieku"
end
end,
qu='qhipaq $date1 watakuna ñawpaq $date2 watakunapas',
ru='конец $date1-х — начало $date2-х гг.',
sv='sena $date1-talet och tidiga $date2-talet',
sk=function(date1, date2, state)
local decade1 = math.floor((date1 % 100) / 10)
local decade2 = math.floor((date2 % 100) / 10)
local century1 = math.floor( date1 / 100) + 1
local century2 = math.floor( date2 / 100) + 1
if decade1 == 0 and date1 < date2 then
return "prelom 1. a 2. desaťročia " .. century1 .. ". storočia"
elseif decade2 == 0 and date2 < date1 then
return "prelom 9. a 10. desaťročia " .. century1 .. ". storočia"
elseif (decade1 == 9 and date1 < date2) or (decade2 == 9 and date2 < date1) then
return "prelom " .. century1 .. ". a " .. century2 .. ". storočia"
else
return "prelom " .. decade1 .. "0. a " .. decade2 .. "0. rokov " .. century1 .. ". storočia"
end
end,
sl='pozna $date1-ta in zgodnja $date2-ta leta',
uk='кінець $date1-х — початок $date2-х рр.',
ur='اخیر دہائی $date1 و ابتدا دہائی $date2',
vi='bước sang thập niên $date2',
['zh-hans']='$date1年代末$date2年代初',
['zh-hant']='$date1年代末$date2年代初',
default=function(date1, date2, state) return {conj='and', adj1 = 'late', unit1='decade', era1=state.era1, adj2 = 'early', unit2='decade', era2=state.era2} end,
},
-- $date1 - original date - 1
-- $date2 - original date
-- if era is BC than $date1 and $date2 are swapped
['turn of the year']={
nDates = 2,
['be-tarask']='канец $date1 — пачатак $date2 г.',
bn='$date1-এর শেষে এবং $date2-এর শুরুতে',
cs='přelom roku $date1/$date2',
de='Jahreswechsel $date1/$date2',
en='late $date1 and early $date2',
['en-gb']='late $date1 and early $date2',
['en-ca']='late $date1 and early $date2',
eo='jarŝanĝo $date1 / $date2',
es='finales de $date1 y principios de $date2',
fa='اواخر $date1 و اوایل $date2',
fi='vuoden $date1 loppu ja vuoden $date2 alku',
fr='fin $date1 / début $date2',
hsb='kónc $date1/spočatk $date2',
ja='$date1年末から$date2年初め',
ml='$date1 അവസാനവും $date2 ആദ്യവും',
nb='årsskiftet $date1/$date2',
nl='eind $date1 en begin $date2',
nn='årsskiftet $date1/$date2',
pl='koniec $date1 i początek $date2 roku',
qu="$date1 qhipaq p'unchawkuna $date2 ñawpaq p'unchawkunapas",
ru='конец $date1 — начало $date2 г.',
sk='prelom rokov $date1/$date2',
sl='konec leta $date1 in začetek $date2',
sv='sena $date1 och tidiga $date2',
uk='кінець $date1 — початок $date2 р.',
ur='اخیر $date1 و ابتدا $date2',
vi='bước sang năm $date2',
['zh-hans']='$date1年末$date2年初',
['zh-hant']='$date1年末$date2年初',
default=function(date1, date2, state) return {conj='and', adj1 = 'late', unit1='year', era1=state.era1, adj2 = 'early', unit2='year', era2=state.era2} end,
},
['circa2'] = {
nDates = 2,
ar='قرابة $date1 – $date2',
['be-tarask']={'прыкладна з $date1 да прыкладна $date2', case={'gen','gen'}},
bn='প্রায় $date1 এবং প্রায় $date2-এর মাঝামাঝি',
ca='cap a $date1 o $date2',
cs='cca $date1 až $date2',
da='ca. mellem $date1 og $date2',
de='etwa $date1 bis $date2',
el='περίπου μεταξύ $date1 και $date2',
en='between circa $date1 and circa $date2',
['en-gb']='between circa $date1 and circa $date2',
['en-ca']='between circa $date1 and circa $date2',
eo='proksimume de $date1 ĝis $date2',
es='hacia $date1 o $date2',
et='ca. $date1 ja $date2 vahel',
fa='حدوداً بین $date1 و $date2',
fi={function(date1, date2, state) return 'suunnilleen ' .. decYear(state,'fi','xxx') .. '$date1 ja $date2 välisenä aikana' end, case={'gen','gen'}},
fr='vers $date1-$date2',
gl='entre $date1 e $date2',
he='בסביבות ה- $date1 עד $date2',
hr='oko između $date1 i $date2',
hsb={'wot něhdźe $date1 do něhdźe $date2', case={'gen','gen'}},
hu='$date1 és $date2 között',
it='tra il $date1 e il $date2 circa',
ja='$date1頃と$date2頃の間',
mk='~ помеѓу $date1 и $date2',
ml='ഉദ്ദേശം $date1-നും ഉദ്ദേശം $date2-നും ഇടയ്ക്ക്',
nb='ca. mellom $date1 og $date2',
nn='ca. mellom $date1 og $date2',
nds='üm un bi $date1 bet $date2',
nl='ca. $date1 tot $date2',
no='ca. mellom $date1 og $date2',
pl={'od około $date1 do około $date2', case={'gen','gen'}},
pt='cerca de $date1 a $date2',
qu="$date1 p'unchawmantachá $date2 p'unchawkamachá",
ro='circa $date1 – $date2',
ru={'с около $date1 до, примерно, $date2', case={'gen','gen'}},
sk='cca $date1 až $date2',
sl={function(date1, date2, state) return 'ok. ' .. decYear(state,'sl','gen') .. ' $date1 do $date2' end, case={'gen','gen'}},
sv='c:a $date1 till $date2',
uk={'з близько $date1 до, приблизно, $date2', case={'gen','gen'}},
ur='قریباً بین $date1 و $date2',
vi='giữa vào khoảng $date1 và vào khoảng $date2',
['zh-hans']='约$date1~$date2间',
['zh-hant']='約$date1~$date2間',
default=function(date1, date2, state) return {conj='between', adj1 = 'circa', unit1=state.unit1, era1=state.era1, adj2 = 'circa', unit2=state.unit2, era2=state.era2} end,
},
-- ==========================================
-- === Eras and calendars ===================
-- ==========================================
['julian'] = {
nDates = 2,
ar='$date1 ($date2 حسب [[w:ar:التقويم اليولياني|تقويم يولياني]])',
['be-tarask']='$date1 ($date2 паводле [[w:be-tarask:Юліянскі каляндар|ст. ст.]]',
bn='$date1 (জুলিয়ান ক্যালেন্ডারে $date2)',
ca='$date1 ($date2 segons el [[w:ca:Calendari julià|calendari julià]])',
cs='$date1 ($date2 podle [[w:cs:Juliánský kalendář|juliánského kalendáře]])',
da='$date1 ($date2 [[w:da:Julianske kalender|Julianske kalender]])',
de='$date1 ($date2 [[w:de:Julianischer Kalender|Julianischer Kalender]])',
el='$date1 ($date2 με το [[w:el:Ιουλιανό ημερολόγιο|Ιουλιανό ημερολόγιο]])',
en='$date1 ($date2 in [[w:Old Style and New Style dates|Julian calendar]])',
['en-gb']='$date1 ($date2 in [[w:Old Style and New Style dates|Julian calendar]])',
['en-ca']='$date1 ($date2 in [[w:Old Style and New Style dates|Julian calendar]])',
fa='$date1 ($date2 در [[w:fa:Old Style and New Style dates|تقویم جولیان]])',
eo='$date1 ($date2 laŭ la [[w:eo:Julia kalendaro|Julia Kalendaro]])',
es='$date1 ($date2 según el [[w:es:Calendario juliano|calendario juliano]])',
et='$date1 ($date2 [[w:et:Juliuse kalender|Juliuse kalendris]])',
fi='$date1 ($date2 [[w:fi:juliaaninen kalenteri|juliaanisen kalenterin]] mukaan)',
fr='$date1 ($date2 dans le [[w:fr:calendrier julien|calendrier julien]])',
gl='$date1 ($date2 segundo o [[w:gl:Calendario xuliano|calendario xuliano]])',
hu='$date1 ($date2 a [[w:hu:Julianus-naptár|Julián naptárban]])',
hr='$date1 ($date2 prema [[w:hr:Julijanski kalendar|julijanskom kalendaru]])',
he='$date1 ($date2 ב[[w:he:לוח היוליאני|הלוח היוליאני]])',
hsb='$date1 ($date2 po julianiskej protyce)',
it='$date1 ($date2 secondo il [[w:it:Calendario giuliano|calendario giuliano]])',
ja='$date1([[w:ja:ユリウス暦|ユリウス暦]] $date2)',
mk='$date1 ($date2 по [[w:mk:Јулијански календар|Јулијанскиот календар]])',
ml='$date1 ([[w:ml:ജൂലിയൻ കാലഗണനാരീതി|ജൂലിയൻ വർഷത്തിൽ]] $date2)',
ml='$date1 ([[w:Old Style and New Style dates|ജൂലിയൻ കാലഗണനാരീതിയിൽ]] $date2)',
nds='$date1 ($date2 na’n [[w:nds:Juliaansch Klenner|Juliaanschen Klenner]])',
nb='$date1 ($date2 etter [[w:no:Juliansk kalender|den julianske kalenderen]])',
nn='$date1 ($date2 etter [[w:no:Juliansk kalender|den julianske kalenderen]])',
nl='$date1 ($date2 volgens de [[w:nl:Juliaanse kalender|Juliaanse kalender]])',
no='$date1 ($date2 etter [[w:no:Juliansk kalender|den julianske kalender]])',
pl='$date1 ($date2 wedle [[w:pl:Daty nowego i starego porządku|kalendarza juliańskiego]])',
pt='$date1 ($date2 no [[w:pt:Mudança para o calendário gregoriano|calendário juliano]])',
qu='$date1 ($date2 [[w:qu:Hulyanu kalindaryu|Hulyanu kalindaryupi]])',
ro='$date1 ($date2 în [[w:ro:calendarul iulian|calendarul iulian]])',
ru='$date1 ($date2 [[w:ru:Юлианский календарь|по ст. ст.]])',
sk='$date1 ($date2 podľa [[w:sk:Juliánsky kalendár|juliánskeho kalendára]])',
sl='$date1 ($date2 po [[w:sl:Julijanski koledar|julijanskem koledarju]])',
sv='$date1 ($date2 [[w:sv:Gamla stilen|gamla stilen]])',
uk='$date1 ($date2 [[w:uk:Юліанський календар|Юліанський календар]])',
ur='$date1 ($date2 حسب [[w:ur:نئے اور پانے انداز کی تاریخ|جولین تقویم]])',
vi='$date1 ($date2 trong [[w:vi:Lịch Julius|lịch Juliêng]])',
['zh-hans']='$date1([[w:Old Style and New Style dates|格里历]]$date2)',
['zh-hant']='$date1([[w:Old Style and New Style dates|格里曆]]$date2)',
default='<span style="color:red">$date1 ($date2 in [[w:Old Style and New Style dates|Julian calendar]])</span>',
},
['ad'] = {
nDates = 1,
['be-tarask']='$date1 [[w:be-tarask:ад Нараджэньня Хрыста|пасьля Н. Х.]]',
bn ='$date1 খ্রিস্টাব্দ',
ca ='$date1 dC',
cs ='$date1 n. l.',
de ='$date1 n. Chr.',
el ='$date1 μ.Χ.',
en ='$date1 [[w:en:Anno Domini|AD]]',
['en-gb'] ='$date1 [[w:en:Anno Domini|AD]]',
['en-ca'] ='$date1 [[w:en:Anno Domini|AD]]',
eo ='$date1 pK',
es ='$date1 [[w:es:Anno Dómini|d. C.]]',
fa ='$date1 م.',
fi ='$date1 jaa.',
fr ='$date1 ap. J.-C.',
gl ='$date1 d.C.',
he ='$date1 לספירה',
hu ='i. sz. $date1',
hr ='$date1 p. Kr.',
hsb='$date1 po Chr.',
it ='$date1 d.C.',
ja ='西暦$date1',
mk ='$date1 н.е.',
ml ='ക്രി.വ. $date1',
nb ='$date1 e.Kr.',
nl ='$date1 n.Chr.',
nn ='$date1 e.Kr.',
no ='$date1 e.Kr.',
pl ='$date1 [[w:pl:naszej ery|n.e.]]',
ro ='$date1 d.Hr.',
ru ='$date1 н. э.',
sk ='$date1 po Kr.',
sl ='$date1 n. št.',
sv ='$date1 [[w:sv:Efter Kristus|e.Kr.]]',
uk ='$date1 н. е.',
ur ='$date1 ء',
vi ='$date1 [[w:vi:Công Nguyên|CN]]',
['zh-hans'] ='[[w:zh:基督纪年|公元]]$date1',
['zh-hant'] ='[[w:zh:基督纪年|公元]]$date1',
default='<span style="color:red">$date1 [[w:en:Anno Domini|AD]]</span>',
},
['ah'] = {
nDates = 1,
['be-tarask']='$date1 [[w:be-tarask:Ісламскі каляндар|хіджры]]',
bn ='$date1 [[w:bn:ইসলামি বর্ষপঞ্জি|হিজরী]]',
cs ='$date1 [[w:cs:Anno Hegirae|AH]]',
en ='$date1 [[w:en:Hijri year|AH]]',
['en-gb'] ='$date1 [[w:en:Hijri year|AH]]',
['en-ca'] ='$date1 [[w:en:Hijri year|AH]]',
eo ='$date1 post la [[w:eo:Heĝiro|Heĝiro]]',
fa ='$date1 ه.ق.',
fr ='$date1 [[w:fr:Calendrier musulman|A.H.]]',
he ="$date1 [[w:he:הלוח המוסלמי|להג'רה]]",
hr ='$date1 god. hidžre',
ja ='[[w:ja:ヒジュラ暦|ヒジュラ暦]]$date1',
ml ='$date1 [[w:ml:ഇസ്ലാമിക കലണ്ടർ|ഹിജ്റ]]',
nb ='$date1 [[w:no:Den muslimske kalenderen|A.H.]]',
nn ='$date1 [[w:nn:Den muslimske kalenderen|A.H.]]',
pl ='$date1 [[w:pl:Kalendarz muzułmański|A.H.]]',
ru ='$date1 [[w:ru:Исламский календарь|хиджры]]',
sk ='$date1 [[w:sk:A. H.|A. H.]]',
sv ='$date1 [[w:sv:Muslimska kalendern|A.H.]]',
uk ='$date1 [[w:uk:Мусульманський календар|хіджри]]',
ur ='$date1 ھ',
vi ='$date1 [[w:vi:Lịch Hồi giáo|AH]]',
['zh-hans'] ='[[w:en:Hijri year|Hijri历]]$date1',
['zh-hant'] ='[[w:en:Hijri year|Hijri曆]]$date1',
default='<span style="color:red">$date1 [[w:en:Hijri year|AH]]</span>',
},
['bc'] = {
nDates = 1,
ar ='$date1 ق.م.',
['be-tarask']='$date1 [[w:be-tarask:да Нараджэньня Хрыста|да Н. Х.]]',
bn ='খ্রিস্টপূর্ব $date1',
ca ='$date1 [[w:ca:Abans de Crist|aC]]',
cs ='$date1 [[w:cs:Př. n. l.|př. n. l.]]',
de ='$date1 [[w:de:v. Chr.|v. Chr.]]',
el ='$date1 π.Χ.',
en ='$date1 [[w:en:Ante Christum Natum|BC]]',
['en-gb'] ='$date1 [[w:en:Ante Christum Natum|BC]]',
['en-ca'] ='$date1 [[w:en:Ante Christum Natum|BC]]',
eo ='$date1 aK',
es ='$date1 [[w:es:Antes de Cristo|a. C.]]',
fa ='$date1 پ.م.',
fi ='$date1 eaa.',
fr ='$date1 av. J.-C.',
gl ='$date1 [[w:gl:Antes de Cristo|a.C.]]',
he ='$date1 לפני הספירה',
hr ='$date1 [[w:hr:Pr. Kr.|pr. Kr.]]',
hsb='$date1 do Chr.',
hu ='i. e. $date1',
it ='$date1 [[w:it:Avanti Cristo|a.C.]]',
ja ='[[w:ja:紀元前|紀元前]]$date1',
mk ='$date1 п.н.е.',
ml ='ക്രി.മു. $date1',
nds='$date1 vör uns Tied',
nb ='$date1 f.Kr.',
nl ='$date1 v.Chr.',
nn ='$date1 f.Kr.',
no ='$date1 f.Kr.',
pl ='$date1 [[w:pl:przed naszą erą|p.n.e.]]',
ro ='$date1 î.Hr.',
ru ='$date1 до н. э.',
sk ='$date1 [[w:sk:Pred Kristom|pred Kr.]]',
sl ='$date1 pr. n. št.',
sv ='$date1 [[w:sv:Före Kristus|f.Kr.]]',
uk ='$date1 до н. е.',
ur ='$date1 ق م',
vi ='$date1 [[w:vi:Trước Công Nguyên|TCN]]',
['zh-hans'] ='[[w:zh:基督纪年|公元前]]$date1',
['zh-hant'] ='[[w:zh:基督纪年|公元前]]$date1',
default='<span style="color:red">$date1 [[w:en:Ante Christum Natum|BC]]</span>',
},
['bp'] = {
nDates = 1,
ar ='$date1 [[w:ar:قبل الحاضر|قبل الحاضر]]',
be ='$date1 [[w:be-tarask:Да нашых дзён|Да нашых дзён]]',
['be-tarask']='$date1 [[w:be-tarask:Да нашых дзён|Да нашых дзён]]',
bn ='বর্তমানের আগে $date1',
ca ='$date1 [[w:ca:BP (unitat de temps)|BP]]',
cs ='$date1 [[w:cs:B. P.|B. P.]]',
de ='$date1 [[w:de:Before Present|BP]]',
el ='$date1 [[w:en:Before Present|BP]]',
en ='$date1 [[w:en:Before Present|BP]]',
['en-gb'] ='$date1 [[w:en:Before Present|BP]]',
['en-ca'] ='$date1 [[w:en:Before Present|BP]]',
eo='$date1 [[w:eo:Before Present|BP]]',
es ='$date1 [[w:es:Before Present|BP]]',
et ='$date1 [[w:et:Before Present|BP]]',
fa ='$date1 پیش از اکنون',
fi ='$date1 [[w:fi:BP (ajanlasku)|BP]]',
fr ='$date1 [[w:fr:Avant le présent|avant le présent]]',
hr ='$date1 [[w:hr:BP|prije današnjice]]',
it ='$date1 [[w:it:Before Present|BP]]',
ja ='$date1 [[w:ja:BP (年代測定)|BP]]',
lv ='$date1 [[w:lv:Pirms mūsdienām|Pirms mūsdienām]]',
mk ='$date1 [[w:mk:Пред сегашноста|п.с.]]',
ml ='[[w:en:Before Present|ഇന്നത്തെ കാലത്തിനു മുമ്പ്]] $date1',
nb ='$date1 [[w:no:Before Present|BP]]',
nn ='$date1 [[w:nn:Before Present|BP]]',
nl ='$date1 [[w:nl:Before Present|BP]]',
no ='$date1 [[w:no:Before Present|BP]]',
pl ='$date1 [[w:pl:Before Present|BP]]',
pt ='$date1 [[w:pt:Antes do Presente|Antes do Presente]]',
ru ='$date1 [[w:ru:До настоящего времени|до н. в.]]',
sk ='$date1 [[w:sk:BP (čas)|BP]]',
sl ='$date1 [[w:sl:pred sedanjostjo|p. s.]]',
sr ='$date1 [[w:sr:Прије садашњости|Прије садашњости]]',
sv ='$date1 [[w:sv:B.P.|B.P.]]',
uk ='$date1 [[w:uk:Років тому|Років тому]]',
ur ='$date1 قبل حاضر',
vi ='$date1 [[w:en:Before Present|trước ngày nay]]',
['zh-hans'] ='[[w:zh:距今|距今]]$date1',
['zh-hant'] ='[[w:zh:距今|距今]]$date1',
default='<span style="color:red">$date1 [[w:en:Before Present|BP]]</span>',
},
}
-- List of possible string inputs to "adj", "junction", "era", and "precision" fields
-- Each term is matched to its synonym and the role: a - adjective, e - era
-- p - precision, c - calendar and combos, r - certainty and j - conjunction
p.Synonyms = {
-- adjectives and prepositions
['quarter1']={'1quarter','a'},
['1stquarter']={'1quarter','a'},
['1st quarter']={'1quarter','a'},
['first quarter']={'1quarter','a'},
['1quarter']={'1quarter','a'},
['quarter2']={'2quarter','a'},
['2ndquarter']={'2quarter','a'},
['2nd quarter']={'2quarter','a'},
['second quarter']={'2quarter','a'},
['2quarter']={'2quarter','a'},
['quarter3']={'3quarter','a'},
['3rdquarter']={'3quarter','a'},
['3rd quarter']={'3quarter','a'},
['third quarter']={'3quarter','a'},
['3quarter']={'3quarter','a'},
['quarter4']={'4quarter','a'},
['4thquarter']={'4quarter','a'},
['4th quarter']={'4quarter','a'},
['fourth quarter']={'4quarter','a'},
['4quarter']={'4quarter','a'},
['spring']={'spring','a'},
['summer']={'summer','a'},
['fall']={'autumn','a'},
['autumn']={'autumn','a'},
['winter']={'winter','a'},
['beginning']={'early','a'},
['early']={'early','a'},
['1half']={'firsthalf','a'},
['1sthalf']={'firsthalf','a'},
['1st half']={'firsthalf','a'},
['firsthalf']={'firsthalf','a'},
['first half']={'firsthalf','a'},
['end']={'late','a'},
['late']={'late','a'},
['middle']={'mid','a'},
['mid']={'mid','a'},
['2half']={'secondhalf','a'},
['2ndhalf']={'secondhalf','a'},
['2nd half']={'secondhalf','a'},
['secondhalf']={'secondhalf','a'},
['second half']={'secondhalf','a'},
['<']={'before','a'},
['b']={'before','a'},
['before']={'before','a'},
['>']={'after','a'},
['a']={'after','a'},
['after']={'after','a'},
['~']={'circa','a'},
['c']={'circa','a'},
['ca']={'circa','a'},
['circa']={'circa','a'},
['by']={'by','a'},
['from']={'from','a'},
['until']={'until','a'},
['uncertain']={'uncertain','r'},
['possibly']={'possibly','r'},
['probably']={'probably','r'},
['presumably']={'presumably','r'},
-- eras
['bc']={'bc','e'},
['bce']={'bc','e'},
['before present']={'bp','e'},
['bp']={'bp','e'},
['ce']={'ad','e'},
['ad']={'ad','e'},
['ah']={'ah','e'},
-- conjunctions
['&']={'and','j'},
['and']={'and','j'},
['or']={'or','j'},
['-']={'from-until','j'},
['–']={'from-until','j'},
['from-until']={'from-until','j'},
['between']={'between','j'},
['circa2']={'circa2','a'},
-- precision
['day']={'day','p'},
['month']={'month','p'},
['year']={'year','p'},
['s']={'decade','p'},
['decade']={'decade','p'},
['century']={'century','p'},
['millennium']={'millennium','p'},
['million']={'million','p'},
['billion']={'billion','p'},
-- calendar
['julian']={'julian','c'},
['islamic']={'islamic','c'},
['hijri']={'islamic','c'},
-- "Turn of the ..." options are a combos which will be handled in similar way as calendars
['turn of the century']={'turn of the century','c'},
['century turn']={'turn of the century','c'},
['turn of the decade']={'turn of the decade','c'},
['decade turn']={'turn of the decade','c'},
['turn of the year']={'turn of the year','c'},
['year turn']={'turn of the year','c'},
-- other dates which will be handled in similar way as calendars
['?']={'unknown','c'},
['unknown']={'unknown','c'},
['unknown year']={'year unknown','c'},
['year unknown']={'year unknown','c'},
}
return p
knnoh8ead9z1c2rn8wosoknp7q97mke
وحدة:I18n/complex date/شرح
828
63240
275470
2026-09-15T10:36:55Z
حبيشان
29714
استيراد من ar.wiktionary.org
275470
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
== الاستخدام ==
<code><nowiki>{{</nowiki>#استدعاء:I18n/complex date|''اسم_الوظيفة''}}</code>
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
k7t5f5a9pifg7bn3oyi9casphshlajr
وحدة:I18n/linguistic
828
63241
275471
2026-09-15T10:36:58Z
حبيشان
29714
استيراد من ar.wiktionary.org
275471
Scribunto
text/plain
return {
-- message corresponds to the translatewiki message (in some cases: no accurate and needs to be overridden by another text
and_conj = { -- in some languages the translatewiki message is not quite right
ar = ' و',
bg = ' и',
bn = ' এবং',
he = ' ו',
it = 'e',
ja = 'および',
ko = ' 및 ',
mk = ' и',
no = ' og',
pa = ' ਤੇ ',
pl = ' i',
pnb = ' تے ',
uk = ' і',
ur = ' اور',
zh = '和',
['zh-hans'] = '和',
['zh-hant'] = '和',
message = 'and',
},
or_conj = {
ar = ' أو',
bg = ' или',
bn = ' অথবা',
ca = ' o',
cs = ' nebo',
da = ' eller',
de = ' oder',
el = ' ή',
en = ' or',
eo = ' aŭ',
es = ' o',
et = ' või',
fa = 'یا ',
fi = ' tai',
fr = ' ou',
gl = ' ou',
he = ' או',
hu = ' vagy',
it = ' o',
ja = 'または',
ko = ' 또는 ',
lt = ' arba',
mk = ' или',
ml = ' അഥവാ',
nds = ' oder',
ne = ' अथवा',
nl = ' of',
nn = ' eller',
no = ' eller',
['os'] = ' ó',
pa = ' ਜਾਂ',
pl = ' lub',
pnb = 'یا ',
pt = ' ou',
['pt-br'] = ' ou',
ru = ' или',
sk = ' lebo',
sl = ' ali',
sr = ' или',
sv = ' eller',
tg = ' ё',
th = ' หรือ',
tr = ' ve',
uk = ' або',
ur = 'یا ',
vi = ' hoặc',
zh = ' 或',
},
colon = { -- Please expand using Commons:Template:Colon
default = ': ',
fr = ' : ',
zh = ':',
},
comma = {
message = 'comma-separator'
},
citation_comma = {
ar = ' ،',
ja = ',', -- OR '、'
pnb = ' ،',
ur = ' ،',
zh = ',', -- in Chinese the commas used in citation aren't '、'
["zh-cn"] = ',',
["zh-hans"] = ',',
["zh-hant"] = ',',
["zh-hk"] = ',',
["zh-mo"] = ',',
["zh-my"] = ',',
["zh-sg"] = ',',
["zh-tw"] = ',',
message = 'comma-separator'
},
full_stop = { -- to expand see Commons:Template:Full stop
default = '. ',
as = '। ',
bh = '। ',
bn = '। ',
hi = '। ',
ja = '。',
mai = '। ',
ne = '। ',
new = '। ',
['or'] = '। ',
pa = '। ',
pnb = ' ۔',
sa = '। ',
ur = ' ۔',
['zh-hans'] = '。',
['zh-hant'] = '。',
},
word_separator = {
message = 'word-separator',
},
}
e33bgxi83528ichc5hhvrdgovwt74g3
وحدة:I18n/ordinal
828
63242
275472
2026-09-15T10:37:02Z
حبيشان
29714
استيراد من ar.wiktionary.org
275472
Scribunto
text/plain
local p = {}
--[[ Different languages use different schemes for ordinals, and some of these schemes are shared between languages.
"SchemeFromLang" picks an ordinal scheme based on a specified language.
All unlisted languages default to the "period-scheme", i.e. "104." is the ordinal for the value "104".
Languages will follow the regular language fallback chain. For example, "de-formal" would fallback to scheme for "de",
and only if that does not exist would the "period-scheme" be used.
]]
p.SchemeFromLang = {
['ast'] = 'ast-scheme', -- Asturian
['bn'] = 'bn-scheme', -- Bengali
['br'] = 'br-scheme', -- Breton
['ca'] = 'ca-scheme', -- Catalan
['co'] = 'co-scheme', -- Corsu
['cs'] = 'period-scheme', -- Czech
['da'] = 'period-scheme', -- Danish
['de'] = 'period-scheme', -- German
['el'] = 'el-scheme', -- Greek
['en-gb'] = 'en-scheme', -- British English
['en-ca'] = 'en-scheme', -- Canadian English
['en'] = 'en-scheme', -- English
['eo'] = 'eo-scheme', -- Esperanto
['es'] = 'es-scheme', -- Spanish
['et'] = 'period-scheme', -- Estonian
['eu'] = 'roman-scheme', -- Basque
['fa'] = 'fa-scheme', -- Persian
['fi'] = 'period-scheme', -- Finnish
['fr'] = 'fr-scheme', -- French
['hr'] = 'period-scheme', -- Croatian
['hu'] = 'period-scheme', -- Hungarian
['hy'] = 'hy-scheme', -- Armenian
['ia'] = 'ia-scheme', -- Interlingua
['it'] = 'romance-scheme', -- Italian
['ja'] = 'ja-scheme', -- Japanese
['km'] = 'km-scheme', -- Khmer
['ko'] = 'ko-scheme', -- Korean
['la'] = 'la-scheme', -- Latin
['lo'] = 'lo-scheme', -- Laothian
['mk'] = 'mk-scheme', -- Macedonian
['ml'] = 'ml-scheme', -- Malayalam
['ms'] = 'ms-scheme', -- Malay
['nds'] = 'period-scheme', -- Low German
['nb'] = 'period-scheme', -- Norwegian Bokmål
['nl'] = 'nl-scheme', -- Dutch
['nn'] = 'period-scheme', -- Norwegian Nynorsk
['no'] = 'period-scheme', -- Norwegian
['pl'] = 'pl-scheme', -- Polish
['pt'] = 'romance-scheme', -- Portuguese
['ru'] = 'ru-scheme', -- Russian
['sk'] = 'period-scheme', -- Slovak
['sl'] = 'period-scheme', -- Slovene
['sv'] = 'sv-scheme', -- Swedish
['ta'] = 'ta-scheme', -- Tamil
['th'] = 'th-scheme', -- Thai
['uk'] = 'uk-scheme', -- Ukrainian
['vi'] = 'vi-scheme', -- Vietnamese
['zh-hans'] = 'zh-scheme', -- Simplified Chinese
['zh-hant'] = 'zh-scheme', -- Traditional Chinese
}
--[[ Text used to internationalize the various schemes.
Styles are supported by suffixing "/style" to key.
Styles that are superscripted set "superscript" to true (this style can be disabled, e.g. in category and page names not supporting HTML styling tags).
Scheme set was developed to match the output of the pre-Lua {{Ordinal}} template, preserved as {{Ordinal/old}}
]]
p.Scheme = {
-- the null scheme, i.e. just the number (normally not used except in technical contexts expecting only numbers)
['null-scheme'] = {
},
-- the period scheme, i.e. "<value>." used for at least: cs, de, fi, hu
['period-scheme'] = {
rules = 'suffix',
suffix = '.'
},
-- Roman (Basque, Galician, Italian, and Classical Latin)
['roman-scheme'] = {
period = false,
superscript = false,
formatlang = 'roman'
},
-- Romance (Italian, Portuguese)
['romance-scheme'] = {
rules = 'gendered-suffix',
superscript = true,
period = false,
suffix = 'o',
suffix_m = 'o',
suffix_f = 'a',
suffix_n = 'o',
},
-- Asturian
['ast-scheme'] = {
rules = 'gendered-suffix',
superscript = true,
period = false,
suffix = 'u',
suffix_m = 'u',
suffix_f = 'a',
suffix_n = 'o',
},
-- Bengali (reference: https://www.bissoy.com/701365/)
['bn-scheme'] = {
rules = 'suffix',
suffix = 'তম',
suffix_0 = 'ম',
suffix_1 = 'ম',
suffix_2 = 'য়',
suffix_3 = 'য়',
suffix_4 = 'র্থ়',
suffix_5 = 'ম',
suffix_6 = 'ষ্ঠ',
suffix_7 = 'ম',
suffix_8 = 'ম',
suffix_9 = 'ম',
},
-- Breton
['br-scheme'] = {
-- non-breaking hyphen ("‑", U+2011) is used below
rules = 'suffix',
suffix = '‑vet',
formatlang = 'eo' -- pre-Lua {{Ordinal}} template used "eo" number formatting for "br" ordinals (???FIXME???)
},
-- Catalan
['ca-scheme'] = {
rules = 'gendered-suffix-n',
superscript = false,
period = false,
suffix = 'è',
suffix_f = 'a',
suffix_1 = 'r',
suffix_1_f = 'a',
suffix_2 = 'n',
suffix_2_f = 'a',
suffix_3 = 'r',
suffix_3_f = 'a',
suffix_4 = 't',
suffix_4_f = 'a'
},
-- Greek
['el-scheme'] = {
rules = 'gendered-suffix',
suffix = 'ος',
suffix_m = 'ος',
suffix_f = 'η',
suffix_n = 'ο',
},
-- the English scheme, i.e. "1st", "2nd", "3rd", "4th".
['en-scheme'] = {
rules = 'skip-tens',
superscript = true,
suffix = 'th',
suffix_1 = 'st',
suffix_2 = 'nd',
suffix_3 = 'rd',
},
-- the English scheme using the "d" style, i.e. "23d".
['en-scheme/d'] = {
rules = 'suffix',
suffix = 'd'
},
-- Esperanto
['eo-scheme'] = {
rules = 'suffix',
-- non-breaking hyphen ("‑", U+2011) is used below
suffix = '‑a',
},
-- Spanish (period plus Romance)
['es-scheme'] = {
rules = 'gendered-suffix',
superscript = true,
period = true,
suffix = 'o',
suffix_m = 'o',
suffix_f = 'a',
suffix_n = 'o',
},
-- Persian
['fa-scheme'] = {
rules = 'suffix',
suffix = 'م',
},
-- French
['fr-scheme'] = {
rules = 'gendered-suffix-one',
superscript = true,
suffix = 'e',
suffix_1 = 'e', -- there's NO neutral gender in French (this is only for unspecified gender)
suffix_1_m = 'er',
suffix_1_f = 're',
},
-- French alternate specific style for 2nd (used only when the 2nd is also the *last* one in a pair, including World Wars)
['fr-scheme/pair'] = {
rules = 'gendered-suffix-n',
superscript = true,
suffix = 'e',
suffix_1 = 'e',
suffix_1_m = 'er',
suffix_1_f = 're',
suffix_2 = 'e',
suffix_2_m = 'nd',
suffix_2_f = 'de',
},
-- Corsu
['co-scheme'] = {
rules = 'suffix',
suffix = 'è'
},
-- the French scheme using the "roman" style ("roman year" is a supported alias for "roman")
['fr-scheme/roman'] = {
rules = 'gendered-suffix-one',
superscript = true,
suffix = 'e',
suffix_1 = 'e',
suffix_1_m = 'er',
suffix_1_f = 're',
formatlang = 'roman' -- styled normally in small capitals (except milleniums using big capitals)
},
-- French specific roman ordinal style after names of personal titles (kings/queens/popes…) and of book chapters (suffixed only for 1st)
['fr-scheme/roman-title'] = {
rules = 'gendered-suffix-one',
superscript = true,
suffix = '', -- no suffix except for 1st
suffix_1 = 'e',
suffix_1_m = 'er',
suffix_1_f = 're',
suffix_1_n = 'е',
formatlang = 'roman' -- style using only big capitals
},
-- Armenian
['hy-scheme'] = {
rules = 'suffix-one',
-- non-breaking hyphens ("‑", U+2011) are used below
suffix = '‑րդ',
suffix_1 = '‑ին',
},
-- Interlingua
['ia-scheme'] = {
rules = 'mod10-suffix',
superscript = true,
suffix_0 = 'te',
suffix_1 = 'me',
suffix_2 = 'nde',
suffix_3 = 'tie',
suffix_4 = 'te',
suffix_5 = 'te',
suffix_6 = 'te',
suffix_7 = 'me',
suffix_8 = 've',
suffix_9 = 'ne',
},
-- Japanese
-- this is for the adjective in undetermined order before noun; otherwise Japanese use: <cardinal number><noun>目
['ja-scheme'] = {
rules = 'prefix',
prefix = '第',
},
-- Khmer
['km-scheme'] = {
rules = 'prefix',
prefix = 'ទ',
},
-- Korean
['ko-scheme'] = {
rules = 'suffix',
suffix = '째',
},
-- Latin
['la-scheme'] = {
rules = 'suffix',
superscript = true,
suffix = 'o',
formatlang = 'roman'
},
-- Laothian
['lo-scheme'] = {
rules = 'prefix',
prefix = 'ທີ່',
},
-- Macedonian
['mk-scheme'] = {
rules = 'mod10-suffix',
-- non-breaking hyphens ("‑", U+2011) are used below
suffix_0 = '‑тиот',
suffix_1 = '‑виот',
suffix_2 = '‑риот',
suffix_3 = '‑иот',
suffix_4 = '‑иот',
suffix_5 = '‑тиот',
suffix_6 = '‑иот',
suffix_7 = '‑миот',
suffix_8 = '‑миот',
suffix_9 = '‑тиот',
},
-- Malayalam
['ml-scheme'] = {
rules = 'suffix',
-- non-breaking hyphen ("‑", U+2011) is used below
suffix = '‑മത്തെ',
},
-- Malay
['ms-scheme'] = {
rules = 'prefix',
-- non-breaking hyphen ("‑", U+2011) is used below
prefix = 'ke‑',
},
-- Dutch
['nl-scheme'] = {
rules = 'suffix',
suffix = 'e',
},
-- Polish
['pl-scheme'] = {
rules = 'mod10-gendered-suffix-skip-tens',
-- non-breaking hyphens ("‑", U+2011) are used below
suffix = '‑ty',
suffix_f = '‑ta',
suffix_n = '‑te',
suffix_1 = '‑szy',
suffix_1_f = '‑sza',
suffix_1_n = '‑sze',
suffix_2 = '‑gi',
suffix_2_f = '‑ga',
suffix_2_n = '‑gie',
suffix_3 = '‑ci',
suffix_3_f = '‑cia',
suffix_3_n = '‑cie',
suffix_7 = '‑my',
suffix_7_f = '‑ma',
suffix_7_n = '‑me',
suffix_8 = '‑my',
suffix_8_f = '‑ma',
suffix_8_n = '‑me',
},
-- Russian
['ru-scheme'] = {
rules = 'gendered-suffix',
-- non-breaking hyphens ("‑", U+2011) are used below
suffix = '‑й',
suffix_m = '‑й',
suffix_f = '‑я',
suffix_n = '‑е',
},
-- Swedish
['sv-scheme'] = {
rules = 'skip-tens',
suffix = ':e',
suffix_1 = ':a',
suffix_2 = ':a',
},
-- Thai
['th-scheme'] = {
rules = 'prefix',
prefix = 'ที่',
},
-- Modern Tamil (using European digits for all numbers, with a hyphen before the suffix)
['ta-scheme'] = {
rules = 'suffix',
-- non-breaking hyphen ("‑", U+2011) is used below
suffix = '‑ஆம்',
formatlang = 'en',
},
-- Traditional Tamil (using Tamil digits without any hyphen before the suffix, but a distinct prefix and suffix for 1st)
['ta-scheme/trad'] = {
rules = 'suffix-one',
suffix = 'ஆம்',
prefix_1 = 'மு',
suffix_1 = 'லாம்',
},
-- Ukrainian: see [[:uk:Вікіпедія:Стиль/Нарощення порядкових числівників#Нарощення]] and [[:uk:Шаблон:-й]]
-- FIXME: 0?
['uk-scheme'] = {
rules = 'uk-rules',
-- non-breaking hyphens ("‑", U+2011) are used below
suffix = '‑й',
suffix_f = '‑та',
suffix_n = '‑те',
suffix_1_f = '‑ша',
suffix_1_n = '‑ше',
suffix_2_f = '‑га',
suffix_2_n = '‑ге',
suffix_3_f = '‑тя',
suffix_3_n = '‑тє',
suffix_7_f = '‑ма',
suffix_7_n = '‑ме',
suffix_8_f = '‑ма',
suffix_8_n = '‑ме',
suffix_40_f = '‑ва',
suffix_40_n = '‑ве',
suffix_1000_f = '‑на',
suffix_1000_n = '‑не',
},
-- Vietnamese
['vi-scheme'] = {
rules = 'prefix',
prefix = 'thứ ',
},
-- Chinese
['zh-scheme'] = {
rules = 'prefix',
prefix = '第',
},
}
return p
cy2ni2v4bemedhga07rrdu1bhovdp8y
وحدة:I18n/wikidata
828
63243
275473
2026-09-15T10:37:05Z
حبيشان
29714
استيراد من ar.wiktionary.org
275473
Scribunto
text/plain
return {
["trackingcat"] = "Page using data from Wikidata", -- DON'T TRANSLATE
-- SPECIAL VALUES
["novalue"] = {
ar = "غير قابل للتطبيق",
bn = "প্রযোজ্য নয়",
ca = "no aplicable",
cs = "nelze použít",
de = "nicht anwendbar",
en = "not applicable",
es = "no aplicable",
fi = "ei sovellettavissa",
fr = "pas applicable",
he = "לא ישים",
hu = "nem alkalmazható",
it = "non applicabile",
ja = "適用できません",
ko = "적용할 수 없습니다",
lt = "netaikoma",
mk = "неприменливо",
nb = "gjelder ikke",
nl = "niet van toepassing",
nn = "gjeld ikkje",
pl = "nie dotyczy",
pnb = "لگ نہیں سکدا",
pt = "não aplicável",
['pt-br'] = "não aplicável",
ru = "неприменимо",
sl = "neprimeren",
sr = "неприменљиво",
sv = "inte tillämpbar",
th = "ไม่สามารถใช้งานได้",
uk = "не застосовується",
vi = "không có sẵn",
['zh-hans'] = "不可用",
['zh-hant'] = "不可用",
},
["somevalue"] = {
ar = "غير معروف",
bn = "অজানা",
ca = "desconegut",
cs = "neznámé",
de = "unbekannt",
en = "unknown",
es = "desconocido",
fi = "tuntematon",
fr = "inconnu",
he = "לא ידוע",
hu = "ismeretlen",
it = "sconosciuto",
ja = "不明",
ko = "알 수 없음",
lt = "nežinomas",
mk = "непознато",
nb = "ukjent",
nl = "onbekend",
nn = "ukjend",
pl = "nieznane",
pnb = "نمعلوم",
pt = "desconhecido",
['pt-br'] = "desconhecido",
ru = "неизвестно",
sl = "neznan",
sr = "непознато",
sv = "okänd",
th = "ไม่ทราบ",
uk = "невідомий",
vi = "không rõ",
['zh-hans'] = "未知",
['zh-hant'] = "不明",
},
-- MISSING DATA
["no-label"] = {
ar = "بدون تسمية",
bn = "লেবেল নেই",
ca = "sense etiqueta",
cs = "bez štítku",
de = "keine Bezeichnung",
en = "no label",
es = "sin etiqueta",
fi = "ei nimeä",
fr = "pas de libellé",
he = "אין תווית",
hu = "nincs címke",
it = "senza etichetta",
ja = "ラベルなし",
ko = "레이블 없음",
lt = "nėra etiketės",
mk = "без натпис",
nb = "ingen etikett",
nl = "geen label",
nn = "ingen merkelapp",
pl = "brak etykiety",
pnb = "کوئی چیپی نہیں ہندی",
pt = "sem rótulo",
['pt-br'] = "sem rótulo",
ru = "метка отсутствует",
sl = "manjka oznaka",
sr = "без назива",
sv = "ingen etikett",
th = "ไม่มีชื่อระบุ",
uk = "без назви",
vi = "không có nhãn",
['zh-hans'] = "无标签",
},
["no description"] = {
ar = "بدون وصف",
bn = "বিবরণ নেই",
ca = "sense descripció",
cs = "bez popisu",
de = "keine Beschreibung",
en = "no description",
es = "sin descripción",
fi = "ei kuvausta",
fr = "pas de description",
he = "אין תיאור",
hu = "nincs leírás",
it = "senza descrizione",
ja = "説明なし",
ko = "설명 없음",
lt = "nėra aprašymo",
mk = "без опис",
nb = "ingen beskrivelse",
nl = "geen omschrijving",
nn = "inga skildring",
pl = "brak opisu",
pnb = "کوئی تفصیل نہیں ہندی",
pt = "sem descrição",
['pt-br'] = "sem descrição",
ru = "описание отсутствует",
sr = "без описа",
sl = "manjka opis",
sv = "ingen beskrivning",
th = "ไม่มีคำอธิบาย",
vi = "không có miêu tả",
uk = "без опису",
['zh-hans'] = "无描述",
},
-- ERRORS
["property-param-not-provided"] = { -- MERGE WITH qualifier-param-not-provided
ar = "وسيط 'property' مفقود",
bn = "'property' প্যারামিটার অনুপস্থিত",
ca = "falta el paràmetre 'property'",
cs = "chybí parametr „property“",
de = "'property'-Parameter fehlt",
en = "'property' parameter missing",
es = "falta el parámetro 'property'",
fi = "parametri 'property' puuttuu",
fr = "paramètre 'property' manquant",
he = "המשתנה ‚property’ חסר",
hu = "hiányzik a „property” (tulajdonság) paraméter",
it = "manca il parametro 'property'",
mk = "недостасува параметарот за својство ('property')",
nb = "parameteren «property» mangler",
nl = "parameter 'property' ontbreekt",
nn = "parameteren «property» manglar",
pl = "brak parametru 'property'",
pnb = "غلطی ہوگئی اے، وشیشتا لئی کوئی ماپ دنڈ نہیں ہندا",
['pt-br'] = "parâmetro 'property' em falta",
ru = "не указан параметр «property»",
sl = "manjka parameter »property«",
sr = "'property' недостаје својство",
sv = "'property'-parameter saknas",
th = "ค่าของพารามิเตอร์ 'property' หายไป",
uk = "без параметра 'property'",
['zh-hans'] = "属性('property')参数丢失",
},
["qualifier-param-not-provided"] = {
ar = "وسيط 'qualifier' مفقود",
bn = "'qualifier' প্যারামিটার অনুপস্থিত",
ca = "falta el paràmetre 'qualifier'",
cs = "chybí parametr „qualifier“",
de = "'qualifier'-Parameter fehlt",
en = "'qualifier' parameter missing",
es = "falta el parámetro 'qualifier'",
fi = "parametri 'qualifier' puuttuu",
fr = "paramètre 'qualifier' manquant",
he = "המשתנה ‚qualifier’ חסר",
hu = "hiányzik a „qualifier” (minősítő) paraméter",
it = "manca il parametro 'qualifier'",
mk = "недостасува параметарот за определница ('qualifier')",
nb = "parameteren «qualifier» mangler",
nl = "parameter 'qualifier' ontbreekt",
nn = "parameteren «qualifier» manglar",
pl = "brak parametru 'qualifier'",
pnb = "غلطی ہوگئی اے، وشیشگتا لئی کوئی ماپ دنڈ نہیں ہندا",
pt = "parâmetro 'qualifier' em falta",
['pt-br'] = "parâmetro 'qualifier' em falta",
ru = "не указан параметр «qualifier»",
sl = "manjka parameter »qualifier«",
sr = "'qualifier' недостаје квалификатор",
sv = "'qualifier'-parameter saknas",
uk = "без параметра 'qualifier'",
['zh-hans'] = "限定符('qualifier')参数丢失",
},
["entity-param-not-provided"] = {
ar = "وسيط 'entity' مفقود",
bn = "'entity' প্যারামিটার অনুপস্থিত",
ca = "falta el paràmetre 'entity'",
cs = "chybí parametr „entity“",
de = "'entity'-Parameter fehlt",
en = "'entity' parameter missing",
es = "falta el parámetro 'entity'",
fi = "parametri 'entity' puuttuu",
fr = "paramètre 'entity' manquant",
he = "המשתנה ‚entity’ חסר",
hu = "hiányzik a „entity” (tulajdonság) paraméter",
it = "manca il parametro 'entity'",
mk = "недостасува параметарот за својство ('entity')",
nb = "parameteren «entity» mangler",
nl = "parameter 'entity' ontbreekt",
nn = "parameteren «entity» manglar",
pl = "brak parametru 'entity'",
pnb = "غلطی ہوگئی اے، چیز لئی کوئی ماپ دنڈ نہیں ہندا",
pt = "parâmetro 'entity' em falta",
['pt-br'] = "parâmetro 'entity' em falta",
ru = "не указан параметр «entity»",
sl = "manjka parameter »entity«",
sr = "'entity' недостаје својство",
sv = "'entity'-parameter saknas",
th = "ค่าของพารามิเตอร์ 'entity' หายไป",
uk = "без параметра 'entity'",
['zh-hans'] = "属性('entity')参数丢失",
},
["entity-not-found"] = {
ar = "الكيان غير موجود",
bn = "সত্তা পাওয়া যায়নি",
ca = "entitat no trobada",
cs = "entita nenalezena",
de = "Einheit nicht gefunden",
en = "entity not found",
es = "entidad no encontrada",
fi = "entiteettiä ei löydy",
fr = "entité non trouvée",
he = "הישות לא נמצאה",
it = "entità non trovata",
ja = "エンティティが見つかりません",
mk = "единицата не е пронајдена",
nb = "entitet ikke funnet",
nl = "entiteit niet gevonden",
nn = "entitet ikkje funnen",
pl = "nie znaleziono elementu",
pnb = "غلطی ہوگئی اے، چیز نہیں لبھی",
pt = "entidade não encontrada",
['pt-br'] = "entidade não encontrada",
ru = "элемент не обнаружен",
sl = "manjka objekt",
sr = "недостаје ентитет",
sv = "entitet hittades ej",
th = "ไม่พบเอนทิตี้นี้",
uk = "не знайдено елемента",
['zh-hans'] = "找不到实体",
},
["unknown-claim-type"] = {
ar = "نوع الادعاء غير معروف",
bn = "দাবির ধরন অজানা",
ca = "tipus d'afirmació desconeguda",
cs = "neznámý typ tvrzení",
de = "unbekannt Beanspruchung",
en = "unknown claim type",
es = "tipo de afirmación desconocida",
fi = "tuntematon väitetyyppi",
fr = "type d'affirmation inconnu",
he = "סוג הקביעה לא ידוע",
it = "tipo dichiarazione sconosciuto",
mk = "непознат тип на тврдење",
nb = "ukjent påstandstype",
nl = "onbekend type claim",
nn = "ukjend påstandstype",
pl = "nieznany typ 'claim'",
pnb = "ایس بیان دی قسم نہیں سمجھی لگی",
pt = "tipo de afirmação desconhecida",
['pt-br'] = "tipo de afirmação desconhecida",
ru = "неизвестный тип утверждения",
sl = "neznan tip izraza",
sr = "непозната врста тврдње",
sv = "okänd påståendetyp",
th = "ชนิดเคลมที่ไม่รู้จัก",
uk = "невідомий тип твердження",
['zh-hans'] = "未知的声称类型",
},
["unknown-snak-typeg"] = {
ar = "نوع الكلام غير معروف",
bn = "snak-এর ধরন অজানা",
ca = "tipus de snak desconegut",
cs = "neznámý typ snaku",
en = "unknown snak type",
es = "tipo de snak desconocido",
fi = "tuntematon snak-tyyppi",
fr = "type de snak inconnu",
it = "tipo snak sconosciuto",
mk = "непознат тип на спојница",
nb = "ukjent snak-type",
nl = "onbekend snaktype",
nn = "ukjend snak-type",
pl = "nieznany typ 'snak'",
pnb = "غلطی ہوگئی اے، ایہہ قسم جوڑ نہیں سکدی",
pt = "tipo de conector (''snak'') desconhecido",
['pt-br'] = "tipo de conector (''snak'') desconhecido",
ru = "неизвестный тип снэка",
sl = "neznan tip »snak«-a",
sr = "непозната врста спојнице",
sv = "okänd snak-typ",
th = "ชนิดของสเนคที่ไม่รู้จัก",
uk = "невідомий тип снека",
['zh-hans'] = "未知的snak类型",
},
["unknown-datavalue-type"] = {
ar = "نوع قيم البيانات غير معروف.",
bn = "উপাত্তমানের ধরন অজানা।",
ca = "tipus de valor de dades desconegut.",
cs = "neznámý typ datové hodnoty",
de = "unbekannter Datenwert.",
en = "unknown datavalue type.",
es = "tipo de valor de datos desconocido.",
fi = "tuntematon datavalue-tyyppi.",
fr = "type de donnée inconnu.",
he = "סוג ערך הנתונים לא ידוע",
it = "tipo datavalue sconosciuto.",
mk = "непознат тип на податочна вредност.",
nb = "ukjent «datavalue»-type",
nl = "onbekend type gegevenswaarde.",
nn = "ukjend «datavalue»-type.",
pl = "nieznany typ 'datavalue'.",
pnb = "نمعلوم مُل دی قسم",
pt = "tipo de dado desconhecido.",
['pt-br'] = "tipo de dado desconhecido.",
ru = "неизвестный тип значения («datavalue»)",
sl = "neznan tip vrednostni podatka",
sr = "непозната врста податка",
sv = "okänd värdetyp",
th = "ชนิดของค่าข้อมูลที่ไม่รู้จัก",
uk = "невідомий тип значення ('datavalue').",
['zh-hans'] = "未知的数据值类型。",
},
["unknown-entity-type"] = {
ar = "نوع الإدخال غير معروف",
bn = "সত্তার ধরন অজানা",
ca = "tipus d'entitat desconegut",
cs = "neznámý typ entity",
de = "unbekannter Einheitentyp",
en = "unknown entity type",
es = "tipo de entidad desconocida",
fi = "tuntematon entiteettityyppi",
fr = "type d'entité inconnu",
he = "סוג הישות לא ידוע",
it = "tipo entità sconosciuto",
mk = "непознат тип на единица",
nb = "ukjent entitetstype",
nl = "onbekend type entiteit",
nn = "ukjend entitetstype",
pl = "nieznany typ elementu",
pnb = "نمعلوم چیز دی قسم",
pt = "tipo de entidade desconhecida",
['pt-br'] = "tipo de entidade desconhecida",
ru = "неизвестный тип элемента",
sl = "neznan tip lastnosti",
sr = "непозната врста ентитета",
sv = "okänd entitetstyp",
th = "ชนิดของเอนทิตี้ที่ไม่รู้จัก",
uk = "невідомий тип елемента",
['zh-hans'] = "未知的实体类型",
},
["invalid-id"] = {
ar = "المعرف غير صحيح",
bn = "অবৈধ আইডি",
ca = "ID invàlida",
cs = "neplatné ID",
de = "ungültige ID",
en = "invalid ID",
es = "identificador inválido",
fr = "identifiant inconnu",
fi = "virheellinen tunniste",
he = "מזהה שגוי",
hu = "érvénytelen azonosító",
it = "identificativo sconosciuto",
ja = "無効なID",
lt = "neteisingas identifikatorius",
mk = "неважечка назнака",
nb = "ukjent ID",
nl = "onbekend identificatienummer",
nn = "ukjend ID",
pl = "nieprawidłowy identyfikator",
pnb = "شناختی نہیں درست اے",
pt = "identificador inválido",
['pt-br'] = "identificador inválido",
ru = "некорректный идентификатор",
sr = "неисправни идентификатор",
sl = "neveljaven ID",
sv = "ogiltig identifierare",
th = "รหัสระบุที่ไม่รู้จัก",
uk = "неправильний ідентифікатор",
['zh-hans'] = "无效ID",
},
}
ajyvuatyumslz08ewk08fdbnxji517z
وحدة:I18n/شرح
828
63244
275474
2026-09-15T10:37:10Z
حبيشان
29714
استيراد من ar.wiktionary.org
275474
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
== الاستخدام ==
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
cgnyklih2ikreametcb9d7y3wh04jxh
وحدة:ISOdate
828
63245
275475
2026-09-15T10:37:53Z
حبيشان
29714
استيراد من ar.wiktionary.org
275475
Scribunto
text/plain
--[[
This module is intended for processing of date strings.
Please do not modify this code without applying the changes first at Module:ISOdate/sandbox and testing
at Module:ISOdate/sandbox/testcases and Module talk:ISOdate/sandbox/testcases.
Authors and maintainers:
* User:Parent5446 - original version of the function mimicking template:ISOdate
* User:Jarekt - original version of the functions mimicking template:Date and template:ISOyear
]]
local p = {}
-- =======================================
-- === Dependencies ======================
-- =======================================
local D = require('Module:DateI18n') -- the enwp version of c:Module:Date
--[[
ISOyear
This function returns year part of date string.
Usage:
{{#invoke:ISOdate|ISOyear|target_string}}
Parameters
1: The date string
Error Handling:
If the string does not look like it contain the year than the function will not return anything.
That is the preferred treatment for the template:Creator which is the main (only?) template calling it.
]]
function p.ISOyear( frame )
return p._ISOyear( frame.args[1] )
end
function p._ISOyear( input )
if not input then
return ''
end
input = mw.text.trim( input )
-- if empty string then return it
if input == "" then
return input
end
-- if number then return it
if tonumber( input ) then
return mw.ustring.format( '%04i', input )
end
-- otherwise use regular expression match
input = mw.ustring.match( input, '^+?(-?%d%d?%d?%d?)-' )
if input and tonumber( input ) then
return mw.ustring.format( '%04i', input )
else
return ''
end
end
--[[
ISOdate
This function is the core part of the ISOdate template.
Usage:
{{#invoke:ISOdate|ISOdate|target_string|lang=}}
Parameters:
1: The date string
lang: The language to display it in
form: Language format (genitive, etc.) for some languages
class: CSS class for the <time> node
Error Handling:
If the string does not look like it contain the proper ISO date than the function will return the original string.
That is the preferred treatment for the template:Information (and similar templates) which calling it.
]]
function p.ISOdate(frame)
local datestr, succeded
local args = frame.args
if not (args.lang and mw.language.isSupportedLanguage(args.lang)) then
args.lang = frame:callParserFunction( "int", "lang" ) -- get user's chosen language
end
datestr, succeded = p._ISOdate(
mw.text.trim(args[1]),
args.lang, -- language
args.case or '', -- allows to specify grammatical case for the month for languages that use them
args.class or 'dtstart', -- allows to set the html class of the time node where the date is included.
args.trim_year or '100-999' -- by default pad one and 2 digit years to be 4 digit long, while keeping 3 digit years as is
)
return datestr
end
function p._ISOdate(datestr, lang, case, class, trim_year)
-- pattern: regexp - regular expresion to test; dlen - number of date elements; tail = which element is a "tail" if any
-- regexp hints:
-- 1) Strings starting with "^" and ending with "$" indicate whole string match
-- 2) optional tail part copied as-is and following the main parsed part of the date have to be separated from the date by a whitespace, so "(\s.+)?"
local patterns = {
-- strings starting with YYYY-MM-DD HH:MM:SS. Year 4 digits (if we know seconds than it was within the last 100 years), the rest 1-2
-- date and time can be separated by space or "T" and there could be a "Z" on the end indicating "Zulu" time zone
{dlen=6, tail=7, regexp="^+?(%d%d%d%d)-(%d%d?)-(%d%d?)[ T](%d%d?):(%d%d?):(%d%d?)Z?(%s.*)"},
{dlen=6, tail=0, regexp="^+?(%d%d%d%d)-(%d%d?)-(%d%d?)[ T](%d%d?):(%d%d?):(%d%d?)Z?$"},
-- strings starting with YYYY-MM-DD HH:MM. Year 4 digits, the rest 1-2
-- (if one knows hour and minute than it was probably after a year 1000)
{dlen=5, tail=6, regexp="^+?(%d%d%d%d)-(%d%d?)-(%d%d?)[ T](%d%d?):(%d%d?)(%s.+)"},
{dlen=5, tail=0, regexp="^+?(%d%d%d%d)-(%d%d?)-(%d%d?)[ T](%d%d?):(%d%d?)$"},
-- strings starting with YYYY-MM-DD. Year 1-4 digits, the rest 1-2
{dlen=3, tail=4, regexp="^+?(%d%d?%d?%d?)-(%d%d?)-(%d%d?)(%s.+)"},
{dlen=3, tail=0, regexp="^+?(%d%d?%d?%d?)-(%d%d?)-(%d%d?)$"},
-- strings starting with YYYY-MM. Year 3-4 digits, month 2 digits
-- (want to avoit converting to dates strings like 10-5 = 5
{dlen=2, tail=3, regexp="^+?(%d%d%d%d?)-(%d%d)(%s.+)"},
-- if whole string is in YYYY-MM form: If Year 1-4 digits, month 1-2 digits
{dlen=2, tail=0, regexp="^+?(%d%d?%d?%d?)-(%d%d?)$"},
-- string starts with a number -> it has to be 3 or 4 digit long to be a year
{dlen=1, tail=2, regexp="^+?(%d%d%d%d?)(%s.+)"},
-- if whole string is a number (1-4 digit long) than it will be interpreted as a year
{dlen=1, tail=0, regexp="^+?(%d%d?%d?%d?)$"},
}
-- create datevec based on which variables are provided
local datevec, tail, formatNum
datevec, tail, formatNum = p.test_date_formats(datestr or '', patterns)
if datevec[1]=='' or datevec[1]==nil then
-- quickly return if datestr does not look like date (it could be a template)
return datestr, false
end
-- call p._Date function to format date string
local succeded, datestr2
succeded, datestr2 = pcall( D._Date, datevec, lang, case, class, trim_year)
if succeded and datestr2~='' then
return mw.text.trim( datestr2 .. tail), true
else -- in case of errors return the original string
return datestr, false
end
end
function p.ISOdate_extended(frame)
-- pattern: regexp - regular expresion to test; dlen - number of date elements; tail = which element is a "tail" if any
-- regexp hints:
-- 1) Strings starting with "^" and ending with "$" indicate whole string match
-- 2) optional tail part copied as-is and following the main parsed part of the date have to be separated from the date by a whitespace, so "(\s.+)?"
local datestr, succeded
local args = frame.args
if not (args.lang and mw.language.isSupportedLanguage(args.lang)) then
args.lang = frame:callParserFunction( "int", "lang" ) -- get user's chosen language
end
datestr, succeded = p._ISOdate(
mw.text.trim(args[1]),
args.lang, -- language
args.case or '', -- allows to specify grammatical case for the month for languages that use them
args.class or 'dtstart', -- allows to set the html class of the time node where the date is included.
args.trim_year or '100-999' -- by default pad one and 2 digit years to be 4 digit long, while keeping 3 digit years as is
)
if succeded then
return datestr
end
local patterns = {
-- Exended set of recognized formats: like MM/DD/YYYY
{dlen=3, tail=4, regexp="^(%d%d?)[-./](%d%d?)[-./](%d%d%d%d)(%s.+)"},
{dlen=3, tail=0, regexp="^(%d%d?)[-./](%d%d?)[-./](%d%d%d%d)$"},
{dlen=3, tail=0, regexp="^(%d%d?)%s(%w+)%s(%d%d%d%d)$"},
{dlen=3, tail=0, regexp="^(%w+)%s(%d%d?),%s(%d%d%d%d)$"},
}
local datevec, tail, formatNum, category = ''
datevec, tail, formatNum = p.test_date_formats(frame.args[1], patterns)
if formatNum==1 or formatNum==2 then
vec = datevec;
if tonumber(datevec[1])>12 then
frame.args[1] = string.format('%04i-%02i-%02i', datevec[3], datevec[2], datevec[1] )
category = '[[Category:Date in DD/MM/YYYY format]]'
return mw.text.trim( p.ISOdate(frame) .. tail);
elseif tonumber(datevec[2])>12 then
frame.args[1] = string.format('%04i-%02i-%02i', datevec[3], datevec[1], datevec[2] )
category = '[[Category:Date in MM/DD/YYYY format]]'
return mw.text.trim( p.ISOdate(frame) .. tail);
end
elseif (formatNum==3 or formatNum==4) and (datevec[3]=='' or datevec[3]~=nil) then
local str = mw.getCurrentFrame():callParserFunction( "#time", { 'Y-m-d', datestr} )
local vec = {str:match( "^(%d%d?%d?%d?)-(%d%d?)-(%d%d?)$" )}
if vec and vec[1]~=nil then
frame.args[1] = string.format('%04i-%02i-%02i', vec[1], vec[2], vec[3] )
category = '[[Category:Date in word format]]'
return p.ISOdate(frame);
end
end
return datestr
end
function p.test_date_formats(datestr, patterns)
-- pattern: regexp - regular expresion to test; dlen - number of date elements; tail = which element is a "tail" if any
local datevec = {'','','','','',''}
local tail = ''
local vec, pat
local formatNum = 0
for i, pat in ipairs( patterns ) do
vec = {datestr:match( pat.regexp )}
if vec and vec[1]~=nil then
for j=1,pat.dlen do
datevec[j] = vec[j]
end
if pat.tail>0 and vec[pat.tail]~=nil then
tail = mw.ustring.gsub(' ' .. vec[pat.tail], ' +', ' ')
end
formatNum = i
break
end
end
return datevec, tail, formatNum
end
return p
dpdrvoipfynkz2frmnp4t2jmegv6mwr
وحدة:ISOdate/شرح
828
63246
275476
2026-09-15T10:37:55Z
حبيشان
29714
استيراد من ar.wiktionary.org
275476
wikitext
text/x-wiki
{{تقييم وحدة|محمية}}
{{استخدام واسع|demo=Module:{{ROOTPAGENAME}}}}
<!--يرجى وضع التصنيفات أسفل هذه الصفحة ووصلات اللغات في ويكي بيانات (انظر [[ويكيبيديا: ويكي بيانات]]) -->
== الاستخدام ==
<code><nowiki>{{</nowiki>#استدعاء:ISOdate|''اسم_الوظيفة''}}</code>
{{#ifeq:{{SUBPAGENAME}}|ملعب| |
<!-- التصنيفات أسفل هذا السطر ووصلات اللغات في ويكي بيانات -->
}}
99810bwqdjxq76zxvntzmr8s5e9v52j
وحدة:DateI18n
828
63247
275477
2026-09-15T10:38:31Z
حبيشان
29714
استيراد من ar.wiktionary.org
275477
Scribunto
text/plain
--[[
__ __ _ _ ____ _ ___ _ ___
| \/ | ___ __| |_ _| | ___ _| _ \ __ _| |_ ___|_ _/ |( _ ) _ __
| |\/| |/ _ \ / _` | | | | |/ _ (_) | | |/ _` | __/ _ \| || |/ _ \| '_ \
| | | | (_) | (_| | |_| | | __/_| |_| | (_| | || __/| || | (_) | | | |
|_| |_|\___/ \__,_|\__,_|_|\___(_)____/ \__,_|\__\___|___|_|\___/|_| |_|
This module is intended for processing of date strings.
Please do not modify this code without applying the changes first at Module:Date/sandbox and testing
at Module:Date/sandbox/testcases and Module talk:Date/sandbox/testcases.
Authors and maintainers:
* User:Parent5446 - original version of the function mimicking template:ISOdate
* User:Jarekt - original version of the functions mimicking template:Date
]]
require('strict')
-- ==================================================
-- === Internal functions ===========================
-- ==================================================
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to Module:Yesno
local function yesno(val, default)
if type(val) == 'boolean' then
return val
elseif type(val) == 'number' then
if val==1 then
return true
elseif val==0 then
return false
end
elseif type(val) == 'string' then
val = mw.ustring.lower(val) -- put in lower case
if val == 'no' or val == 'n' or val == 'false' or tonumber(val) == 0 then
return false
elseif val == 'yes' or val == 'y' or val == 'true' or tonumber(val) == 1 then
return true
end
end
return default
end
---------------------------------------------------------------------------------------
-- String replacement that ignores part of the string in "..."
local function strReplace(String, old, new)
if String:find('"') then
local T={}
for i, str in ipairs(mw.text.split( String, '"', true )) do
if i%2==1 then
str = str:gsub(old, new)
end
table.insert(T, str)
end
return table.concat(T,'"')
else
return String:gsub(old, new)
end
end
---------------------------------------------------------------------------------------
-- process datevec
-- INPUT:
-- * datevec - Array of {year,month,day,hour,minute,second, tzhour, tzmin} containing broken
-- down date-time component strings or numbers
-- OUTPUT:
-- * datecode - a code specifying content of the array where Y' is year, 'M' is month,
-- 'D' is day, 'H' is hour, 'M' minute, 'S' is second. output has to be one of YMDHMS, YMDHM, YMD, YM, MD, Y
-- * datenum - same array but holding only numbers or nuls
local function parserDatevec(datevec)
-- if month is not a number than check if it is a month name in project's language
local month = datevec[2]
if month and month~='' and not tonumber(month) then
datevec[2] = mw.getContentLanguage():formatDate( "n", month)
end
-- create datecode based on which variables are provided and check for out-of-bound values
local maxval = {nil, 12, 31, 23, 59, 59, 23, 59} -- max values for year, month, ...
local minval = {nil, 1, 1, 0, 0, 0, -23, 0} -- min values for year, month, ...
local c = {'Y', 'M', 'D', 'H', 'M', 'S', '', ''}
local datecode = '' -- a string signifying which combination of variables was provided
local datenum = {} -- date-time encoded as a vector = [year, month, ... , second]
for i = 1,8 do
datenum[i] = tonumber(datevec[i])
if datenum[i] and (i==1 or (datenum[i]>=minval[i] and datenum[i]<=maxval[i])) then
datecode = datecode .. c[i]
end
end
return datecode, datenum
end
---------------------------------------------------------------------------------------
-- process datevec
-- INPUT:
-- * datecode - a code specifying content of the array where Y' is year, 'M' is month,
-- 'D' is day, 'H' is hour, 'M' minute, 'S' is second. output has to be one of YMDHMS, YMDHM, YMD, YM, MD, Y
-- * datenum - Array of {year,month,day,hour,minute,second, tzhour, tzmin} as numbers or nuls
-- OUTPUT:
-- * timeStamp - date string in the format taken by mw.language:formatDate lua function and {{#time}} perser function
-- https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.language:formatDate
-- https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
-- * datecode - with possible corrections
local function getTimestamp(datecode, datenum)
-- create time stamp string (for example 2000-02-20 02:20:20) based on which variables were provided
local timeStamp
if datecode == 'YMDHMS' then
timeStamp = string.format('%04i-%02i-%02i %02i:%02i:%02i', datenum[1], datenum[2], datenum[3], datenum[4], datenum[5], datenum[6] )
elseif datecode == 'YMDHM' then
timeStamp = string.format('%04i-%02i-%02i %02i:%02i', datenum[1], datenum[2], datenum[3], datenum[4], datenum[5] )
elseif datecode:sub(1,3)=='YMD' then
timeStamp = string.format('%04i-%02i-%02i', datenum[1], datenum[2], datenum[3] )
datecode = 'YMD' -- 'YMD', 'YMDHMS' and 'YMDHM' are the only supported format starting with 'YMD'. All others will be converted to 'YMD'
elseif datecode == 'YM' then
timeStamp = string.format('%04i-%02i', datenum[1], datenum[2] )
elseif datecode:sub(1,1)=='Y' then
timeStamp = string.format('%04i', datenum[1] )
datecode = 'Y'
elseif datecode == 'M' then
timeStamp = string.format('%04i-%02i-%02i', 2000, datenum[2], 1 )
elseif datecode == 'MD' then
timeStamp = string.format('%04i-%02i-%02i', 2000, datenum[2], datenum[3] )
else
timeStamp = nil -- format not supported
end
return timeStamp, datecode
end
---------------------------------------------------------------------------------------
-- trim leading zeros in years prior to year 1000
-- INPUT:
-- * datestr - translated date string
-- * lang - language of translation
-- OUTPUT:
-- * datestr - updated date string
local function trimYear(datestr, year, lang)
local yearStr0, yearStr1, yearStr2, zeroStr
yearStr0 = string.format('%04i', year ) -- 4 digit year in standard form "0123"
yearStr1 = mw.language.new(lang):formatDate( 'Y', yearStr0) -- same as calling {{#time}} parser function
--yearStr1 = mw.getCurrentFrame():callParserFunction( "#time", { 'Y', yearStr0, lang } ) -- translate to a language
if yearStr0==yearStr1 then -- most of languages use standard form of year
yearStr2 = tostring(year)
else -- some languages use different characters for numbers
yearStr2 = yearStr1
zeroStr = mw.ustring.sub(yearStr1,1,1) -- get "0" in whatever language
for i=1,3 do -- trim leading zeros
if mw.ustring.sub(yearStr2,1,1)==zeroStr then
yearStr2 = mw.ustring.sub(yearStr2, 2, 5-i)
else
break
end
end
end
return string.gsub(datestr, yearStr1, yearStr2 ) -- in datestr replace long year with trimmed one
end
---------------------------------------------------------------------------------------
-- Look up proper format string to be passed to {{#time}} parser function
-- INPUTS:
-- * datecode: YMDHMS, YMDHM, YMD, YM, MD, Y, or M
-- * day : Number between 1 and 31 (not needed for most languages)
-- * lang : language
-- OUTPUT:
-- * dFormat : input to {{#time}} function
local function getDateFormat(datecode, day, lang)
local function parseFormat(dFormat, day)
if dFormat:find('default') and #dFormat>10 then
-- special (and messy) case of dFormat code depending on a day number
-- then json contains a string with more json containing "default" field and 2 digit day keys
-- if desired day is not in that json than use "default" case
dFormat = dFormat:gsub('”','"') -- change fancy double quote to a straight one, used for json marking
local D = mw.text.jsonDecode( dFormat ) --com = mw.dumpObject(D)
day = string.format('d%02i',day) -- create day key
dFormat = D[day] or D.default
dFormat = dFormat:gsub("'", '"') -- change single quote to a double quote, used for {{#time}} marking
end
return dFormat
end
local T = {}
local tab = mw.ext.data.get('DateI18n.tab', lang)
for _, row in pairs(tab.data) do -- convert the output into a dictionary table
local id, _, msg = unpack(row)
T[id] = msg
end
local dFormat = T[datecode]
if dFormat=='default' and (datecode=='YMDHMS' or datecode=='YMDHM') then
-- for most languages adding hour:minute:second is done by adding ", HH:MM:SS to the
-- day precission date, those languages are skipped in DateI18n.tab and default to
-- English which stores word "default"
dFormat = parseFormat(T['YMD'], day).. ', H:i'
if datecode=='YMDHMS' then
dFormat = dFormat .. ':s'
end
else
dFormat = parseFormat(dFormat, day)
end
return dFormat
end
---------------------------------------------------------------------------------------
-- Look up proper format string to be passed to {{#time}} parser function
-- INPUTS:
-- * month : month number
-- * case : gramatic case abbriviation, like "ins", "loc"
-- * lang : language
-- OUTPUT:
-- * dFormat : input to {{#time}} function
local function MonthCase(month, case, lang)
local T = {{},{},{},{},{},{},{},{},{},{},{},{}}
local tab = mw.ext.data.get('I18n/MonthCases.tab', lang)
for _, row in pairs(tab.data) do
local mth, cs, msg = unpack(row)
T[mth][cs] = msg
end
return T[month][case]
end
-- ==================================================
-- === External functions ===========================
-- ==================================================
local p = {}
--[[ ========================================================================================
Date
This function is the core part of the ISOdate template.
Usage:
local Date = require('Module:DateI18n')._Date
local dateStr = Date({2020, 12, 30, 12, 20, 11}, lang)
Parameters:
* {year,month,day,hour,minute,second, tzhour, tzmin}: broken down date-time component strings or numbers
tzhour, tzmin are timezone offsets from UTC, hours and minutes
* lang: The language to display it in
* case: Language format (genitive, etc.) for some languages
* class: CSS class for the <time> node, use "" for no metadata at all
]]
function p._Date(datevec, lang, case, class, trim_year)
-- make sure inputs are in the right format
if not lang or not mw.language.isValidCode( lang ) then
lang = mw.getCurrentFrame():callParserFunction( "int", "lang" ) -- get user's chosen language
end
if lang == 'be-tarsk' then
lang = 'be-x-old'
end
-- process datevec and extract timeStamp and datecode strings as well as numeric datenum array
local datecode, datenum = parserDatevec(datevec)
local year, month, day = datenum[1], datenum[2], datenum[3]
local timeStamp, datecode = getTimestamp(datecode, datenum)
if not timeStamp then -- something went wrong in parserDatevec
return ''
end
-- Commons [[Data:DateI18n.tab]] page stores prefered formats for diferent
-- languages and datecodes (specifying year-month-day or just year of month-day, etc)
-- Look up country specific format input to {{#time}} function
local dFormat = getDateFormat(datecode, day, lang)
-- By default the gramatical case is not specified (case=='') allowing the format to be specified
-- in [[Data:DateI18n.tab]]. You can overwrite the default grammatical case of the month by
-- specifying "case" variable. This is needed mostly by Slavic languages to create more complex
-- phrases as it is done in [[c:Module:Complex date]]
case = case or ''
if (lang=='qu' or lang=='qug') and (case=='nom') then
-- Special case related to Quechua and Kichwa languages. The form in the I18n is
-- Genitive case with suffix "pi" added to month names provided by {#time}}
-- in Nominative case that "pi" should be removed
-- see https://commons.wikimedia.org/wiki/Template_talk:Date#Quechua from 2014
dFormat = dFormat:gsub('F"pi"', 'F')
elseif (case=='gen') then
dFormat = strReplace(dFormat, "F", "xg")
elseif (case=='nom') then
dFormat = strReplace(dFormat, "xg", "F")
elseif (case ~= '') then
-- see is page [[Data:I18n/MonthCases.tab]] on Commons have name of the month
-- in specific gramatic case in desired language. If we have it than replace
-- "F" and xg" in dFormat
local monthMsg = MonthCase(month, case, lang)
if monthMsg and monthMsg ~= '' then -- make sure it exists
dFormat = strReplace(dFormat, 'F', '"'..monthMsg..'"') -- replace default month with month name we already looked up
dFormat = strReplace(dFormat, 'xg', '"'..monthMsg..'"')
end
end
-- Translate the date using specified format
-- See https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.language:formatDate and
-- https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time for explanation of the format
local datestr = mw.language.new(lang):formatDate( dFormat, timeStamp) -- same as using {{#time}} parser function
-- Special case related to Thai solar calendar: prior to 1940 new-year was at different
-- time of year, so just year (datecode=='Y') is ambiguous and is replaced by "YYYY or YYYY" phrase
if lang=='th' and datecode=='Y' and year<=1940 then
datestr = string.format('%04i หรือ %04i', year+542, year+543 )
end
-- If year<1000 than either keep the date padded to the length of 4 digits or trim it
-- decide if the year will stay padded with zeros (for years in 0-999 range)
if year and year<1000 then
if type(trim_year)=='nil' then
trim_year = '100-999'
end
local trim = yesno(trim_year,nil) -- convert to boolean
if trim==nil and type(trim_year)=='string' then
-- if "trim_year" not a simple True/False than it is range of dates
-- for example '100-999' means to pad one and 2 digit years to be 4 digit long, while keeping 3 digit years as is
local YMin, YMax = trim_year:match( '(%d+)-(%d+)' )
trim = (YMin~=nil and year>=tonumber(YMin) and year<=tonumber(YMax))
end
if trim==true then
datestr = trimYear(datestr, year, lang) -- in datestr replace long year with trimmed one
end
end
-- append timezone if present
if datenum[7] and (datecode == 'YMDHMS' or datecode == 'YMDHM') then
-- use {{#time}} parser function to create timezone string, so that we use correct character set
local sign = (datenum[7]<0) and '−' or '+'
timeStamp = string.format("2000-01-01 %02i:%02i:00", math.abs(datenum[7]), datenum[8] or 0)
local timezone = mw.language.new(lang):formatDate( 'H:i', timeStamp) -- same as using {{#time}} parser function
datestr = string.format("%s %s%s", datestr, sign, timezone )
end
-- html formating and tagging of date string
if class and class ~= '' and datecode~='M' and datecode~='MD'then
local DateHtmlTags = '<span style="white-space:nowrap"><time class="%s" datetime="%s">%s</time></span>'
datestr = DateHtmlTags:format(class, timeStamp, datestr)
end
return datestr
end
--[[ ========================================================================================
Date
This function is the core part of the ISOdate template.
Usage:
{{#invoke:DateI18n|Date|year=|month=|day=|hour=|minute=|second=|tzhour=|tzmin=|lang=en}}
Parameters:
* year, month, day, hour, minute, second: broken down date-time component strings
* tzhour, tzmin: timezone offset from UTC, hours and minutes
* lang: The language to display it in
* case: Language format (genitive, etc.) for some languages
* class: CSS class for the <time> node, use "" for no metadata at all
]]
function p.Date(frame)
local args = {}
for name, value in pairs( frame.args ) do
name = string.gsub( string.lower(name), ' ', '_')
args[name] = value
end
return p._Date(
{ args.year, args.month, args.day, args.hour, args.minute, args.second, args.tzhour, args.tzmin },
args.lang, -- language
args.case, -- allows to specify grammatical case for the month for languages that use them
args.class or 'dtstart', -- allows to set the html class of the time node where the date is included. This is useful for microformats.
args.trim_year or '100-999' -- by default pad one and 2 digit years to be 4 digit long, while keeping 3 digit years as is
)
end
return p
lcwmkh5p6iicle9dw7qzn6d8j6xkduv
وحدة:Hijri
828
63248
275478
2026-09-15T10:39:39Z
حبيشان
29714
استيراد من ar.wiktionary.org
275478
Scribunto
text/plain
local cfg= mw.loadData('Module:Hijri/Configuration')
local core = require 'Module:Hijri/core'
--[[ ----------------- I M P O R T --------------]]
gregorian2jd = core.gregorian2jd
jd2hijri = core.jd2hijri
hijri2jd = core.hijri2jd
hijri_days_in_month = core.hijri_days_in_month
hijri_isleap = core.hijri_isleap
hijri_yday = core.hijri_yday
jd2unix = core.jd2unix
unix2jd = core.unix2jd
jd2wday = core.jd2wday
jd2gregorian = core.jd2gregorian
gre_isleap = core.gre_isleap
gre_yday = core.gre_yday
gre_days_in_month = core.gre_days_in_month
jd2julian = core.jd2julian
julian2jd = core.julian2jd
julian_isleap = core.julian_isleap
julian_yday = core.julian_yday
julian_days_in_month = core.julian_days_in_month
gregorian2hijri = core.gregorian2hijri
hijri2gregorian = core.hijri2gregorian
Date = core.Date
hijri_check = core.hijri_check
string = mw.ustring
local str_hijri_mode = select(cfg.hijri_mode + 1, 'hijri_tabular', 'hijri_adjusted_umalqura', 'hijri_umalqura')
--[[---------------------- utilty function ----------------- ]]
local gtonumber = tonumber
local function tonumber(str)
if not str then
return nil
end
local thenumber = gtonumber(str) or mw.language.getContentLanguage():parseFormattedNumber(str)
if not thenumber then
return nil
end
return math.floor(thenumber)
end
local function substitute( msg, args )
return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end
local function error( msg, args )
return substitute( cfg.presentation.error, substitute( msg, args ) );
end
local function towdigit(number)
return ((number<10) and '0' or '') .. number
end
local function hijri_month_name(index)
if cfg.hijri_months then
return cfg.hijri_months[index]
else
return mw.message.new('hijri-calendar-m' .. index):plain()
end
end
local function wday_name(index)
if cfg.wday_name then
return cfg.wday_name[index]
else
return mw.message.new(select(index +1 ,'Sunday','Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')):plain()
end
end
local function julian_month_name(index)
if cfg.gregorian_months then
return cfg.gregorian_months[index]
else
return mw.message.new(select(index, 'january', 'february', 'march', 'april', 'may_long', 'june', 'july', 'august', 'september', 'october', 'november', 'december')):plain()
end
end
local function syrian_month_name(index)
if cfg.syrian_months then
return cfg.syrian_months[index]
else
return select(index, 'كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول')
end
end
local format_func = {
towdigit = towdigit,
hijri_month_name = hijri_month_name,
wday_name = wday_name,
julian_month_name = julian_month_name,
syrian_month_name = syrian_month_name
}
local function substitute( msg, args )
return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end
local function error( msg, args )
return substitute( cfg.presentation.error, substitute( msg, args ) );
end
local function argument_wrapper(arg)
local nilargs = {}
return setmetatable({},
{
__index = function ( tbl, k )
local v = rawget(tbl,k)
if v then
return v
elseif nilargs[k] then
return nil
end
local list = cfg.aliases[k];
for _,arglist in ipairs(arg) do
if type( list ) == 'table' then
for _, alias_key in ipairs( list ) do
if arglist[alias_key] then
v = arglist[alias_key]
break;
end
end
elseif list ~= nil then
v = arglist[list]
end
if v then
break;
end
end
if v == nil then
nilargs[k] = true
else
rawset( tbl, k, v )
end
return v
end,
});
end
local function get_value_from_aliaes(aliases_tbl, arg_value)
if arg_value and aliases_tbl then
for k, v_list in pairs(aliases_tbl) do
if type(v_list) ~= "table" then
if arg_value == v_list then
return k
end
else
for _, v_value in ipairs(v_list) do
if arg_value == v_value then
return k
end
end
end
end
end
end
--[[ -------------------- frame functions ---------------------------------------]]
local function test(frame)
return mw.language.getContentLanguage():formatDate("Y n j", '@-86400' ,true)
end
function get_gregorian_from_hijri(frame)
return mw.text.listToText({ hijri2gregorian(tonumber(frame.args[1]),tonumber(frame.args[2]),tonumber(frame.args[3])) },"-","-")
end
function get_hijri_from_gregorian(frame)
d= Date(str_hijri_mode)
d:from_gregorian(tonumber(frame.args[1]),tonumber(frame.args[2]),tonumber(frame.args[3]))
return d
end
local function lua_format_date(A)
local theformat = A.format or 'xmj xmF xmY'
local cDate
if A.year and A.day and A.month then
local year, month, day = tonumber(A.year), tonumber(A.month), tonumber(A.day)
local source_cal = get_value_from_aliaes(cfg.cal_aliases, A.source_cal)
if not source_cal then
if day>30 or year > 1500 then
source_cal = 'gregorian'
else
source_cal='hijri'
end
end
local wday = get_value_from_aliaes(cfg.wday_aliases, A.wday)
if source_cal == 'hijri' then
cDate = Date(str_hijri_mode)
if wday then
cDate:from_hijri(year,month,day,wday,cfg.hijri_mode)
else
cDate:set_date(year,month,day,true)
end
else
cDate = Date(source_cal)
if string.sub(source_cal,1,5) == 'hijri' and wday then
cDate:from_hijri(year,month,day,wday)
else
cDate:set_date(year,month,day)
end
end
elseif A.date then
local tmpdate = mw.language.getContentLanguage():formatDate('Y/n/j', A.date)
if tmpdate then
local gre = mw.text.split(tmpdate,'/')
cDate = Date('gregorian',tonumber(gre[1]), tonumber(gre[2]), tonumber(gre[3]))
else
cDate = Date('gregorian')
end
else
cDate = Date('gregorian')
end
if string.find(theformat, 'x[muwg][jFntYyzdm]') or string.find(theformat, '~[هميغ][يشرسلةع][0س]?') then
local lc_hijri_mode = get_value_from_aliaes(cfg.cal_aliases, A.hijri_cal_type) or str_hijri_mode
-- date replaces
local symbols = cfg.symbol_replace.symbols
local dr = cfg.symbol_replace.calendars
local pat, cal_type
for drk,drv in pairs(dr) do
cal_type = (drk == 'hijri') and lc_hijri_mode or drv.type
for sym_pre_i, sym_pre in ipairs(drv.sym_pre) do
if drv.symbols_pattern then
pat = drv.symbols_pattern[sym_pre_i]
else
pat = sym_pre .. cfg.symbol_replace.default_symbol_pattern[sym_pre_i]
end
if string.find(theformat,pat) then
cDate:set_type(cal_type)
local tempformat,sy = theformat,''
local ss,se = string.find(tempformat,pat)
theformat = ''
while ss do
sy = string.sub(tempformat,ss,se)
if ss > 1 then
theformat = theformat .. string.sub(tempformat,1,ss-1)
end
if se < #tempformat then
tempformat = string.sub(tempformat,se+1)
else
tempformat = ''
end
for sym, symv in pairs(symbols[sym_pre_i]) do
if sy == sym_pre .. sym then
if symv.func then
if format_func[symv.func] then
theformat = theformat .. format_func[symv.func](cDate[symv.rep])
elseif format_func[drv.func[symv.func]] then
theformat = theformat .. format_func[drv.func[symv.func]](cDate[symv.rep])
else
error('Can`t find fromating function')
end
else
theformat = theformat .. cDate[symv.rep]
end
end
end
ss,se = string.find(tempformat,pat)
end
theformat = theformat .. tempformat
end
end
end
end
if string.find(theformat,"[a-zA-Z]") and (not A.pass_mw_time or A.pass_mw_time == '1' or A.pass_mw_time == 'نعم') then
cDate:set_type('gregorian')
return mw.language.getContentLanguage():formatDate(theformat, cDate.timestamp and ("@" .. cDate.timestamp) or cDate ,true)
else
return theformat
end
end
local function format_date(frame)
local A = argument_wrapper({frame:getParent().args, frame.args})
return lua_format_date(A)
end
return { test = test,
get_gregorian_from_hijri = get_gregorian_from_hijri,
get_hijri_from_gregorian =get_hijri_from_gregorian,
format_date = format_date,
lua_format_date=lua_format_date,
julian_month_name = julian_month_name,
hijri_month_name = hijri_month_name
}
93ttr5y8cq6pqxp044tzk36zqqqi54l
وحدة:Hijri/Calendar
828
63249
275479
2026-09-15T10:39:42Z
حبيشان
29714
استيراد من ar.wiktionary.org
275479
Scribunto
text/plain
local cfg= mw.loadData('Module:Hijri/Configuration')
local core = require 'Module:Hijri/core'
--[[ ----------------- I M P O R T --------------]]
gregorian2jd = core.gregorian2jd
jd2hijri = core.jd2hijri
hijri2jd = core.hijri2jd
hijri_days_in_month = core.hijri_days_in_month
hijri_isleap = core.hijri_isleap
hijri_yday = core.hijri_yday
jd2unix = core.jd2unix
unix2jd = core.unix2jd
jd2wday = core.jd2wday
jd2gregorian = core.jd2gregorian
gre_isleap = core.gre_isleap
gre_yday = core.gre_yday
gre_days_in_month = core.gre_days_in_month
jd2julian = core.jd2julian
julian2jd = core.julian2jd
julian_isleap = core.julian_isleap
julian_yday = core.julian_yday
julian_days_in_month = core.julian_days_in_month
gregorian2hijri = core.gregorian2hijri
hijri2gregorian = core.hijri2gregorian
Date = core.Date
hijri_check = core.hijri_check
string = mw.ustring
calendar_links = true
if cfg.presentation['calendar_links'] ~= nil then calendar_links = cfg.presentation['calendar_links'] end
mw.logObject(calendar_links)
local str_hijri_mode = select(cfg.hijri_mode + 1, 'hijri_tabular', 'hijri_adjusted_umalqura', 'hijri_umalqura')
local use_mashreq_numbers=false
--[[---------------------- utilty function ----------------- ]]
local gtonumber = tonumber
local function tonumber(str)
if not str then
return nil
end
local thenumber = gtonumber(str) or mw.language.getContentLanguage():parseFormattedNumber(str)
if not thenumber then
return nil
end
return math.floor(thenumber)
end
local function substitute( msg, args )
return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end
local function error( msg, args )
return substitute( cfg.presentation.error, substitute( msg, args ) );
end
local function towdigit(number)
return ((number<10) and '0' or '') .. number
end
local function hijri_month_name(index)
local month_name
if cfg.hijri_months then
return cfg.hijri_months[index]
else
return mw.message.new('hijri-calendar-m' .. index):plain()
end
end
local function hijri_short_month(index)
if cfg.hijri_short_months then
return cfg.hijri_short_months[index]
end
end
local function wday_name(index)
if cfg.wday_name then
return cfg.wday_name[index]
else
return mw.message.new(select(index +1 ,'Sunday','Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')):plain()
end
end
local function wday_reindex(index)
return (index<6) and (index+1) or 0
end
local function julian_month_name(index)
if cfg.gregorian_months then
return cfg.gregorian_months[index]
else
return mw.message.new(select(index, 'january', 'february', 'march', 'april', 'may_long', 'june', 'july', 'august', 'september', 'october', 'november', 'december')):plain()
end
end
local function month_name(cal, index)
if index>12 then
index=index-12
end
if index<1 then
index=index+12
end
if cal=='hijri' then
return hijri_month_name(index)
else
return julian_month_name(index)
end
end
local format_func = {
towdigit = towdigit,
hijri_month_name = hijri_month_name,
wday_name = wday_name,
julian_month_name = julian_month_name
}
local function substitute( msg, args )
return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end
local function error( msg, args )
return substitute( cfg.presentation.error, substitute( msg, args ) );
end
local function argument_wrapper(arg)
local nilargs = {}
return setmetatable({},
{
__index = function ( tbl, k )
local v = rawget(tbl,k)
if v then
return v
elseif nilargs[k] then
return nil
end
local list = cfg.aliases[k];
for _,arglist in ipairs(arg) do
if type( list ) == 'table' then
for _, alias_key in ipairs( list ) do
if arglist[alias_key] then
v = arglist[alias_key]
break;
end
end
elseif list ~= nil then
v = arglist[list]
end
if v then
break;
end
end
if v == nil then
nilargs[k] = true
else
rawset( tbl, k, v )
end
return v
end,
});
end
local function get_value_from_aliaes(aliases_tbl, arg_value)
if arg_value and aliases_tbl then
for k, v_list in pairs(aliases_tbl) do
if type(v_list) ~= "table" then
if arg_value == v_list then
return k
end
else
for _, v_value in ipairs(v_list) do
if arg_value == v_value then
return k
end
end
end
end
end
end
local function eastern_numbers(thenumber)
local str_number = tostring(thenumber)
local ret_str = ''
for i=1,#str_number do
ret_str = ret_str .. mw.ustring.char(0x0660 + tonumber(mw.ustring.sub(str_number,i,i)))
end
return ret_str
end
local function format_day(ctype,day)
return (ctype =='hijri' and use_mashreq_numbers and eastern_numbers(day) or day)
end
local function makelink(link,txt)
if calendar_links then
return '[[' .. link .. (txt and ('|' .. txt) or '') .. ']]'
else
return txt or link
end
end
--[[------------------ Frame Functions-----------------]]
local function calendar(frame)
local A,ret,month,year,cal,d,od,wd={},""
local cday,cmonth,cmonth_days,ctype,oday,omonth,omonth_days,otype,oyear
A[1] = frame:getParent().args[1] or frame.args[1]
A[2] = frame:getParent().args[2] or frame.args[2]
A[3] = frame:getParent().args[3] or frame.args[3]
A['رابط الشهر'] = frame:getParent().args['رابط الشهر'] or frame.args['رابط الشهر'] or 'شهر '
A['رابط اليوم'] = frame:getParent().args['رابط اليوم'] or frame.args['رابط اليوم'] or ''
A['style'] = frame:getParent().args['style'] or frame.args['style']
local alt_cal=1
A['تقويم مقابل'] = frame:getParent().args['تقويم مقابل'] or frame.args['تقويم مقابل'] or 'تلميح'
if A['تقويم مقابل'] == '0' or A['تقويم مقابل'] == 'بدون' then
alt_cal = 0
elseif A['تقويم مقابل'] == 'مخفي' or A['تقويم مقابل'] == 'تلميح' or A['تقويم مقابل'] == '1' then
alt_cal = 1
elseif A['تقويم مقابل'] == 'ظاهر' or A['تقويم مقابل'] == '2' then
alt_cal = 2
end
local hom = false
if (frame:getParent().args['إخفاء خارج الشهر'] or frame.args['إخفاء خارج الشهر'] ) == '1' then
hom = true
end
local hide_p_n_month = false
if (frame:getParent().args['إخفاء الشهر التالي/السابق'] or frame.args['إخفاء الشهر التالي/السابق'] ) == '1' then
hide_p_n_month = true
end
if (frame:getParent().args['الهجري بأرقام مشرقية'] or frame.args['الهجري بأرقام مشرقية'] ) == '1' then
use_mashreq_numbers = true
end
local hide_year = false
if (frame:getParent().args['إخفاء السنة'] or frame.args['إخفاء السنة'] ) == '1' then
hide_year = true
end
if A[3] then
year=tonumber(A[3])
if not year then
return error("لم يتعرف على رقم السنة")
end
end
if A[2] then
month=tonumber(A[2])
if not month then
return error("لم يتعرف على رقم الشهر")
end
end
cal = get_value_from_aliaes(cfg.cal_aliases, A[1]) or 'hijri'
if not year then
d=Date(cal)
year=d.year
month = month or d.month
d:set_date(year,month,1)
else
d=Date(cal,year,month,1)
end
ret='<div class="d-calendar"' .. (A.style and (' style=' .. A.style) or '') .. '><div class="d-calendar-navigation">'
.. (not hide_p_n_month and calendar_links and ('<div class="d-calendar-prev">[[' .. A['رابط الشهر'] .. month_name(d.type,d.month-1) .. '|<<]]</div>') or '')
.. '<div class="d-calendar-title">' .. makelink(A['رابط الشهر'] .. month_name(d.type,d.month), month_name(d.type,d.month))
.. (not hide_year and (' - ' .. makelink(d.year .. (d.type=='hijri' and ' هـ' or ''))) or '') .. '</div>'
.. (not hide_p_n_month and calendar_links and ('<div class="d-calendar-next">[[' .. A['رابط الشهر'] .. month_name(d.type,d.month+1) .. '|>>]]</div>') or '')
.. '</div><div class="d-calendar-weekday"><ul><li>السبت</li><li>الأحد</li><li>الاثنين</li><li>الثلاثاء</li><li>الأربعاء</li><li>الخميس</li><li>الجمعة</li></ul></div>'
.. '<div class="d-calendar-days"><ul>';
if not hom and wday_reindex(d.wday)>0 then
d:add(0,0,(0-wday_reindex(d.wday)))
end
if alt_cal>0 then
if d.type=='hijri' then
od=Date('gregorian',d.jd)
otype='gregorian'
else
od=Date('hijri',d.jd)
otype='hijri'
end
oday,omonth,oyear,omonth_days=od.day,od.month,od.year,od.month_days
omonth_name=month_name(otype,omonth)
end
wd = wday_reindex(d.wday)
ctype,cday,cmonth,cmonth_days=d.type,d.day,d.month,d.month_days
cmonth_name=month_name(ctype,cmonth)
while true do
if hom and cday==1 and wd>0 then
ret=ret .. '<li style="grid-column-start:' .. (wd + 1) .. '" class="d-calendar-current">'
else
ret=ret .. '<li' .. (cmonth==month and ' class="d-calendar-current">' or '>')
end
if alt_cal == 2 then
ret = ret .. '<span class="d-calendar-' .. ctype .. '">' .. makelink(A['رابط اليوم'] .. cday .. ' ' .. cmonth_name, format_day(ctype,cday)) .. '</span>'
.. '<br><span class="d-calendar-sub d-calendar-' .. otype .. '">' .. makelink(A['رابط اليوم'] .. oday .. ' ' .. omonth_name, format_day(otype,oday)
.. (oday==1 and (' ' .. (otype=='hijri' and hijri_short_month(omonth) or omonth_name )) or '')) .. '</span>';
else
ret = ret .. '<span class="d-calendar-only">' .. makelink(A['رابط اليوم'] .. cday .. ' ' .. cmonth_name, format_day(ctype,cday)) .. '</span>'
if alt_cal == 1 then
ret = ret .. '<span class="d-calendar-sub-h">' .. makelink(A['رابط اليوم'] .. oday .. ' ' .. omonth_name,oday .. ' ' .. omonth_name) .. ' ' .. makelink(oyear .. (otype=='hijri' and ' هـ' or '')) .. '</span>';
end
end
ret = ret .. '</li>\n';
cday=cday+1
if cday>cmonth_days then
if hom then
break
end
d:add(0,0,cday-d.day)
cday,cmonth,cmonth_days=d.day,d.month,d.month_days
cmonth_name=month_name(ctype,cmonth)
end
if alt_cal>0 then
oday=oday+1
if oday>omonth_days then
od:add(0,0,oday-od.day)
oday,omonth,oyear,omonth_days=od.day,od.month,od.year,od.month_days
omonth_name=month_name(otype,omonth)
end
end
if wd==6 then
if (month<12 and cmonth>month) or (month==12 and cmonth==1) then
break
else
wd=0
end
else
wd=wd+1
end
end
ret = ret .. "</ul></div></div>"
return ret
end
return {calendar=calendar}
k7t5via4uu54kf1m76q9782ln6fuopp
وحدة:Hijri/Calendar/شرح
828
63250
275480
2026-09-15T10:39:44Z
حبيشان
29714
استيراد من ar.wiktionary.org
275480
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/Configuration
828
63251
275481
2026-09-15T10:39:47Z
حبيشان
29714
استيراد من ar.wiktionary.org
275481
Scribunto
text/plain
-- Hijri Month names comment this line to use MediaWiki names
local hijri_months = { 'محرم', 'صفر', 'ربيع الأول', 'ربيع الآخر', 'جمادى الأولى', 'جمادى الآخرة', 'رجب', 'شعبان', 'رمضان', 'شوال', 'ذو القعدة', 'ذو الحجة' }
local hijri_short_months = { 'محرم', 'صفر', 'ربيع1', 'ربيع2', 'جمادى1', 'جمادى2', 'رجب', 'شعبان', 'رمضان', 'شوال', 'ذوالقعدة', 'ذوالحجة' }
-- Gregorian Month names comment this line to use MediaWiki names
local gregorian_months = { 'يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر' }
local syrian_months = {'كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'}
--[[ Hijri mode:
0 tabular calender (Kwaiti Algorithm)
1 Umm al-Qura Calender With adjustments
2 Umm al-Qura Calender without adjustments
]]
local aliases = {
["format"] = {1,"الصيغة", "format"},
["source_cal"] = {"تقويم المصدر", "المصدر", "التقويم","Cal","cal"},
["year"] = {"س", "سنة", "السنة", "y", "year"},
["month"] = {"شهر", "ش" ,"الشهر", "m", "month"},
["day"] = {"اليوم", "ي", "يوم", "d", "day"},
["wday"] = {"يوم الأسبوع", "wday"},
["hijri_cal_type"] = {"التقويم الهجري", "نوع التقويم الهجري", "hijri Calendar type"},
["date"] = {2, "التاريخ","تاريخ","date"},
["pass_mw_time"] = {"تمرير على وقت", "pass mw time"}
}
local cal_aliases = {
["hijri"] = {"هجري","الهجري", "hijri"},
["hijri_adjusted_umalqura"] = {"هجري معدل","أم القرى معدل","ام القرى معدل", "معدل", "adjusted umalqura"},
["hijri_umalqura"] = {"أم القرى","ام القرى", "umalqura"},
["hijri_tabular"] = {"هجري مجدول", "هجري اصطلاحي","اصطلاحي", "مجدول", "tabular"},
["gregorian"] = {"جريجوري","غريغوري", "gregorian"},
["julian"] = {"يولياني" ,"شرقي", "julian"},
["western"] = {"ميلادي", "غربي", "western"}
}
local wday_aliases = {
[0] = {"أحد", "الأحد", "احد", "الاحد", "sunday"},
[1] = {"إثنين", "الإثنين", "اثنين", "الاثنين", "monday"},
[2] = {"ثلاثاء", "الثلاثاء", "tuesday"},
[3] = {"اربعاء", "الاربعاء", "أربعاء", "الأربعاء", "wednesday"},
[4] = {"الخميس", "خميس", "thursday"},
[5] = {"جمعة", "الجمعة", "جمعه", "الجمعه", "friday"},
[6] = {"سبت", "السبت", "saturday"},
}
local symbol_replace = {
default_symbol_pattern = {'[jFntYyzdm]',
'[شسلةع]س?',
'[ير]0?' },
calendars = {
hijri = {
type = 'hijri',
sym_pre = { 'xm',
'~ه',
'~ه'},
func = { month_name = 'hijri_month_name',
syrian_month_name = 'hijri_month_name'}
-- you can add also ['symbols_pattern'] table if members are not equal to sym_pre[i] .. default_symbol_pattern[i]
},
julian = {
type = 'julian',
sym_pre = { 'xu',
'~ي',
'~ي' },
func = { month_name = 'julian_month_name' }
},
gregorian = {
type = 'gregorian',
sym_pre = { 'xg',
'~غ',
'~غ'},
func = { month_name = 'julian_month_name' }
},
western = {
type = 'western',
sym_pre = { 'xw',
'~م',
'~م'},
func = { month_name = 'julian_month_name' }
}
},
symbols = {
{
j = { rep = 'day' },
F = { rep = 'month',
func = 'month_name'},
n = { rep = 'month'},
Y = { rep = 'year'},
t = { rep = 'month_days'},
z = { rep = 'yday'},
y = { rep = 'year',
func = 'towdigit'},
m = { rep = 'month',
func = 'towdigit'},
d = { rep = 'day',
func = 'towdigit'}
},
{
['ش'] = { rep = 'month',
func = 'month_name'},
['شس'] = { rep = 'month',
func = 'syrian_month_name'},
['س'] = { rep = 'year'},
['ل'] = { rep = 'month_days'},
['ة'] = { rep = 'yday'},
['ع'] = { rep = 'wday',
func = 'wday_name'}
},
{
['ي'] = { rep = 'day' },
['ي0'] = { rep = 'day',
func = 'towdigit'},
['ر'] = { rep = 'month'},
['ر0'] = { rep = 'month',
func = 'towdigit'}
},
}
}
local msgs = {
}
local presentation = {
["error"] = '<strong class="error">$1</strong>',
['calendar_links'] = false
}
local hijri_mode = 1
return {
hijri_months = hijri_months,
hijri_short_months = hijri_short_months,
gregorian_months = gregorian_months,
syrian_months = syrian_months,
hijri_mode = hijri_mode,
aliases = aliases,
cal_aliases = cal_aliases,
wday_aliases = wday_aliases,
symbol_replace = symbol_replace,
msgs = msgs,
presentation = presentation
}
le6dq6qjia5kco8wy6yvr9ye7cwud6g
وحدة:Hijri/Configuration/شرح
828
63252
275482
2026-09-15T10:39:49Z
حبيشان
29714
استيراد من ar.wiktionary.org
275482
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/adjusted data
828
63253
275483
2026-09-15T10:39:51Z
حبيشان
29714
استيراد من ar.wiktionary.org
275483
Scribunto
text/plain
local umdata = require ('Module:Hijri/umalqura data')
local adjust_data = require('Module:Hijri/adjustment data')
local umstartyear = 1318
local function gregorian2jd(y, m, d)
local jd, century
if y < 1 then
y = y + 1
end
if m > 2 then
m = m + 1
y = y + 4800
else
m = m + 13
y = y + 4799
end
century = math.floor(y / 100)
return (y * 365 - 32167 + math.floor(y / 4) - century + math.floor(century / 4) + math.floor(7834 * m / 256) + d)
end
if adjust_data and #adjust_data>0 then
for yk,yv in pairs(adjust_data) do
for mk,mv in pairs(yv) do
local uk = (yk-umstartyear)*12 + mk -1
if type(mv) == 'table' then
umdata[uk] = gregorian2jd(mv[1],mv[2],mv[3]) - 2400000
elseif mv >-2 and mv <2 then
umdata[uk] = umdata[uk] - mv
end
end
end
end
return umdata
r8mtjdmxlkg07jn0cj97q7loc8t43hz
وحدة:Hijri/adjusted data/شرح
828
63254
275484
2026-09-15T10:39:54Z
حبيشان
29714
استيراد من ar.wiktionary.org
275484
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/adjustment data
828
63255
275485
2026-09-15T10:39:56Z
حبيشان
29714
استيراد من ar.wiktionary.org
275485
Scribunto
text/plain
--[[ هذه الوحدة تحوي على بيانات التعديل على تقويم أم القرى
ذلك على شكل جدول لوا كالمثال
return {
[1443] = { --السنة
[9] = --الشهر وقيمة التحويل التي هي إحدى القيم التالية:
*قائمة بالسنة فالشهر فاليوم بالميلادي {2022,8,4}
* رقم من -1 إلى 1 يحدد مقدار الزيادة أو النقص في رقم اليوم
}
]]
return {
[1436] = {
[12] = {2015,9,15}
},
[1437] = {
[12] = {2016,9,3}
},
[1439] = {
[9] = {2018,5,17}
}
}
77eqyewh1zigtectmlz8b4tz1sffsfj
وحدة:Hijri/adjustment data/شرح
828
63256
275486
2026-09-15T10:39:58Z
حبيشان
29714
استيراد من ar.wiktionary.org
275486
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/core
828
63257
275487
2026-09-15T10:40:01Z
حبيشان
29714
استيراد من ar.wiktionary.org
275487
Scribunto
text/plain
--[[--------------- luaHijri---------------------
by hubaishan
v0.5
locate at https://github.com/hubaishan/luaHijri
]]
--[[ ------------ C O N F I G U R A T I O N S ----------------------]]
--[[ As
local adjust_data = { [1443] =
[5] = {2021,12,6},
[7] = 1 }
this means ad just start of month 5 of 1443 to 2021-12-06, and add one day to month 7 of 1443
]]
--local adjust_data = {} --adjust data in separate module
-- Gregorian Calender epoch used only for wertern calendar default value are in Italy some countries may differ
local gregorian_epoch = { jd = 2299161, y = 1582 , m = 10, d = 15}
-- sunday index can be 0 or 1
local wday_sunday = 0
-- day of year (1-1) index
local yday_1_1 = 0
-- @var int 1 to use adjusted Um Al-Qura algorithm, 2 to use Um Al-Qura algorithm, 0 use Hijri Tabular Algorithm
local hijri_mode = mw.loadData('Module:Hijri/Configuration').hijri_mode
--[[ ------------ C O N S T A N T S ----------------]]
-- the Um Al-Qura Calendar start year
local umstartyear = 1318
-- the Um Al-Qura Calendar end year
local umendyear = 1500
-- the Um Al-Qura Calendar start Julian day
local umstartjd = 2415140
-- the Um Al-Qura Calendar end Julian day
local umendjd = 2479960
local UMDATA_COUNT = 2196
--[[ ------------ V A R S ----------------]]
local adjusted_umdata
local raw_umdata
--[[------------------- U T I L T Y U S E F U L F U N C T I O N S------------------------]]
local floor = math.floor
local function round(number)
return floor(number + 0.5)
end
local function in_array( needle, haystack )
if needle == nil then
return false;
end
for n,v in ipairs( haystack ) do
if v == needle then
return n;
end
end
return false;
end
--[[------------------- C A L E N D A R F U N C T I O N S------------------------]]
--[[--- Data ---]]
local function gregorian2jd(year, month, day)
-- from postgresql source
local jd, century
mw.logObject(year,'year')
if year < 1 then
year = year + 1
end
if month > 2 then
month = month + 1
year = year + 4800
else
month = month + 13
year = year + 4799
end
century = floor(year / 100)
return (year * 365 - 32167 + floor(year / 4) - century + floor(century / 4) + floor(7834 * month / 256) + day)
end
-- load Umm al-Qura Calendar Data
-- Modified for MediaWiki
local function get_umdata(mode)
mode = mode or hijri_mode
if mode==2 then
if raw_umdata==nil or #raw_umdata==0 then
raw_umdata = mw.loadData('Module:Hijri/umalqura data')
end
return raw_umdata
elseif mode==1 then
if adjusted_umdata == nil or #adjusted_umdata==0 then
adjusted_umdata = mw.loadData('Module:Hijri/adjusted data')
end
return adjusted_umdata
end
end
--[[--- Hijri ---]]
local function jd2hijri(julianday, mode)
local mjd, ii, n, y, i
local j, j1
local hy, hm, hd, hz
mode = mode or hijri_mode
if (mode>0 and (julianday > umstartjd) and (julianday < umendjd)) then
local umdata = get_umdata(mode)
i = floor((julianday - 1948438) / 29.53056) - ((umstartyear - 1) * 12)
mjd = julianday - 2400000
if i<0 then i = 0 end
for c = i, UMDATA_COUNT do
if (umdata[c] > mjd) then
i = c
break
end
end
ii = floor((i - 1) / 12)
hy = umstartyear + ii
hm = i - 12 * ii
hd = mjd - umdata[i - 1] + 1
hz = mjd - umdata[12 * ii]
else
j = julianday + 7666
n = floor(j / 10631)
j = j - (n * 10631)
j1 = j
y = floor(j / 354.36667)
j = j - round(y * 354.36667)
if j == 0 then
y=y-1
j = j1 - round(y * 354.36667)
hz = j
hd = j - 325
hm = 12
else
hz = j - 1
j = j + 29
hm = floor((24 * j) / 709)
hd = j - floor(((709 * hm) / 24))
end
hy = (n * 30) + y + 1
hy = hy - 5520
if hy <= 0 then
hy = hy - 1
end
end
hz = hz + yday_1_1
return hy, hm, hd, hz
end
local function hijri2jd(hy, hm, hd, mode)
mode = mode or hijri_mode
local ii, i, n
local j
if (mode > 0 and hy >= umstartyear and hy <= umendyear) then
local umdata = get_umdata(mode)
ii = hy - umstartyear
i = hm + 12 * ii
j = hd + umdata[i - 1] - 1
j = j + 2400000
elseif (hy < -5499 or (hy == -5499 and hm < 8) or (hy == -5499 and hm == 8 and hd < 18)) then
j = 0
else
hy = hy < 0 and (hy + 5520) or (hy + 5519)
n = floor(hy / 30)
j = (n * 10631) + round((hy - (n * 30)) * 354.36667)
hm = hm - 1
j = j + (hm * 29) + floor((hm + 1) / 2) + hd
j = j- 7666
end
return j
end
local function hijri_days_in_month(year, month, mode)
mode = mode or hijri_mode
local t = 29
if mode>0 and year >= umstartyear and year <= umendyear then
local i = (year-umstartyear)*12 + month -1
local umdata = get_umdata(mode)
t = umdata[i + 1] - umdata[i]
else
if month == 12 then
if year < 0 then
year = year + 5521
end
if round((year % 30) * 0.36667) > round(((year - 1) % 30) * 0.36667) then
t = 30
end
else
t = 29 + (month % 2);
end
end
return t
end
local function hijri_isleap(year, mode)
mode = mode or hijri_mode
local l
if mode>0 and year >= umstartyear and year <= umendyear then
local umdata = get_umdata(mode)
local ii = year - umstartyear
l = ((umdata[12 * (ii + 1)] - umdata[12 * ii]) > 354) and true or false
else
if year < 0 then
year = year + 5521;
end
l = (round((year % 30) * 0.36667) > round(((year - 1) % 30) * 0.36667)) and true or false
end
return l
end
local function hijri_yday(year,month,day,mode)
local ii
mode = mode or hijri_mode
if (mode>0 and year >= umstartyear and year <= umendyear) then
local umdata = get_umdata(mode)
ii = year - umstartyear
return umdata[(12 * ii) + month -1] - umdata[12 * ii] + day - 1 + yday_1_1
else
return select(month, 0,30,59,89,118,148,177,207,236,266,295,325) + day - 1 + yday_1_1
end
end
local function hijri_check(year,month,day,mode,may_adjusted)
if month < 1 or month > 12 then
return false
end
if day < 1 or day > 30 then
return false
end
if not may_adjusted and day > hijri_days_in_month(year,month,mode) then
return false
end
return true
end
--[[--- Unix and wday---]]
local function jd2unix(jd)
-- 2440588 -- J.D. of 1.1.1970
if jd == nil then
return nil
end
return ((jd - 2440588) * 24 * 3600)
end
local function unix2jd(unix)
if unix == nil then
return nil
end
return floor(unix/(24 * 3600)) + 2440588
end
--returns wday number sunday=wday_sunday
local function jd2wday(jd)
jd = jd + 1
jd = jd % 7
if (jd<0) then
jd = jd + 7
end
return jd + wday_sunday
end
--[[--- Gregorian ---]]
local function jd2gregorian(jd)
-- inspired by postgresql function
local julian, quad, extra, y
local year,month,day
julian = jd + 32044
quad = floor(julian / 146097)
extra = (julian - quad * 146097) * 4 + 3
julian = julian + 60 + quad * 3 + floor(extra / 146097)
quad = floor(julian / 1461)
julian = julian - quad * 1461
y = floor(julian * 4 / 1461)
if (y ~= 0) then
julian = ((julian + 305) % 365) + 123
else
julian = ((julian + 306) % 366) + 123
end
y = y + quad * 4;
year = y - 4800;
quad = floor(julian * 2141 / 65536)
day = julian - floor(7834 * quad / 256)
month = (quad + 10) % 12 + 1
if (year<1) then
year = year-1
end
return year,month,day
end
local function gre_isleap(year)
if year<1 then year=year+1 end
return (year % 4) == 0 and ((year % 100) ~= 0 or (year % 400) == 0)
end
local function gre_yday(year,month,day)
if gre_isleap(year) then
return select(month,0,31,60,91,121,152,182,213,244,274,305,335) + day - 1 + yday_1_1
else
return select(month,0,31,59,90,120,151,181,212,243,273,304,334) + day - 1 + yday_1_1
end
end
local function gre_days_in_month(year, month)
if month == 2 and gre_isleap(year) then
return 29
else
return select(month,31,28,31,30,31,30,31,31,30,31,30,31)
end
end
local function gre_check(year,month,day)
if month < 1 or month > 12 then
return false
end
if day < 1 or day > gre_days_in_month(year,month) then
return false
end
return true
end
--[[--- Julian ---]]
local function jd2julian(jd)
local year, month, day
local temp, dayofYear
temp = jd * 4 + (32083 * 4 - 1)
year = floor(temp / 1461)
dayofYear = floor((temp % 1461) / 4) + 1
temp = dayofYear * 5 - 3
month = floor(temp / 153)
day = floor((temp % 153) / 5) + 1
if (month < 10) then
month = month + 3
else
year = year + 1
month = month - 9
end
year = year - 4800
if (year < 1) then
year = year -1
end
return year, month, day
end
local function julian2jd(year,month,day)
if year<0 then
year = year + 4801
else
year = year + 4800
end
if month > 2 then
month = month -3
else
month = month + 9
year = year - 1
end
return (floor((year * 1461) / 4) + floor((month * 153 + 2) / 5) + day - 32083)
end
local function julian_isleap(year)
if year < 1 then year = year + 1 end
return (year % 4) == 0
end
local function julian_yday(year,month,day)
if julian_isleap(year) then
return select(month,0,31,60,91,121,152,182,213,244,274,305,335) + day - 1 + yday_1_1
else
return select(month,0,31,59,90,120,151,181,212,243,273,304,334) + day - 1 + yday_1_1
end
end
local function julian_days_in_month(year, month)
if month == 2 and julian_isleap(year) then
return 29
else
return select(month,31,28,31,30,31,30,31,31,30,31,30,31)
end
end
local function julian_check(year,month,day)
if month < 1 or month > 12 then
return false
end
if day < 1 or day > julian_days_in_month(year,month) then
return false
end
return true
end
--[[--- Convertion ---]]
-- Return Hijri Date from Gregorian date
local function gregorian2hijri(gyear, gmonth, gday)
return jd2hijri(gregorian2jd(gyear, gmonth, gday))
end
local function hijri2gregorian(hyear, hmonth, hday)
return jd2gregorian(hijri2jd(hyear, hmonth, hday))
end
--[[------------------- D A T E C L A S S ------------------------]]
local datePrototype = {}
-- Set julianDay
function datePrototype:set_jd(arg_jd)
if self.p.type == 'hijri' then
self.p.year, self.p.month, self.p.day, self.p.yday = jd2hijri(arg_jd,self.p.mode)
self.p.jd = arg_jd
elseif self.p.type == 'gregorian' or (self.p.type == 'western' and arg_jd >= gregorian_epoch.jd ) then
self.p.year, self.p.month, self.p.day = jd2gregorian(arg_jd)
self.p.jd, self.p.yday = arg_jd, nil
elseif self.p.type == 'julian' or (self.p.type == 'western' and arg_jd < gregorian_epoch.jd ) then
self.p.year, self.p.month, self.p.day = jd2julian(arg_jd)
self.p.jd, self.p.yday = arg_jd, nil
end
self.p.wday, self.p.month_days, self.p.leap_year = nil, nil, nil
end
function datePrototype:get_jd()
if self.p.jd ~= nil then
return self.p.jd
elseif self.p.year and self.p.month and self.p.day then
self:set_date(self.p.year,self.p.month,self.p.day)
else
local t=os.date("*t")
if self.p.type=='gregorian' then
self.p.year, self.p.month, self.p.day, self.p.wday, self.p.yday = t.year, t.month, t.day, t.wday - 1 + wday_sunday, t.yday
self.p.jd = gregorian2jd(self.p.year, self.p.month, self.p.day)
else
self:from_gregorian(t.year,t.month,t.day)
self.p.wday = t.wday -1 + wday_sunday
end
end
return self.p.jd
end
function datePrototype:set_timestamp(arg_tm)
if self.p.timestamp == arg_tm then
return
end
self.p.timestamp = arg_tm
self:set_jd(unix2jd(arg_tm))
end
-- adjust type of western calendar
local function adj_type(type,year,month,day)
if type == 'western' then
if year>gregorian_epoch.y or (year==gregorian_epoch.y and month>gregorian_epoch.m) or (year==gregorian_epoch.y and month == gregorian_epoch.m and day>=gregorian_epoch.d) then
type='gregorian'
else
type = 'julian'
end
end
return type
end
-- Check the Date
local function check_date(ctype,cmode,year,month,day,may_adjusted)
local type = adj_type(ctype,year,month,day)
if month <1 or month >12 or day <1 or day >31 then
return false
elseif type == 'hijri' then
if day > 30 or (not may_adjusted and day> hijri_days_in_month(year,month,cmode)) then
return false
end
elseif day > select(month,31,29,31,30,31,30,31,31,30,31,30,31) then
return false
elseif month == 2 and day == 29 then
if (((year % 4) ~= 0) or (type == 'gregorian' and (year % 100) == 0 and (year % 400) ~= 0)) then
return false
end
end
return true
end
-- Set Date
-- may_adjusted argument used in Hijri only to accept any 30 day of any month
function datePrototype:set_date(year,month,day,may_adjusted)
if not check_date(self.p.type, self.p.mode, year, month, day, may_adjusted) then
error("Invalid Date")
end
local type=adj_type(self.p.type,year,month,day)
if type == 'hijri' then
self.p.jd = hijri2jd(year,month,day,self.p.mode)
elseif type == 'gregorian' then
self.p.jd = gregorian2jd(year,month,day)
elseif type == 'julian' then
self.p.jd = julian2jd(year,month,day)
end
self.p.year, self.p.month, self.p.day = year,month,day
self.p.wday, self.p.month_days, self.p.leap_year, self.p.yday = nil, nil, nil, nil
end
-- Convert date from hijri
function datePrototype:from_hijri(year,month,day,wday,mode)
mode = mode or self.p.mode
local jd = hijri2jd(year,month,day,mode)
if wday and wday <= 6 and wday >=0 then
local jd_weekday = jd2wday(jd)
local differ = wday - jd_weekday
if differ < - 4 then
jd = jd + (differ + 7)
elseif differ > -3 and differ < 3 then
jd = jd + differ
elseif differ > 4 then
jd = jd + (differ - 7)
else
error("Weekday is very far from Hijri date")
end
end
if self.p.type == 'hijri' and check_date(self.p.type, self.p.mode, year,month,day,true) then
self.p.year,self.p.month,self.p.day,self.p.jd=year,month,day,jd
self.p.wday, self.p.month_days, self.p.leap_year, self.p.yday = nil, nil, nil, nil
else
self:set_jd(jd)
end
end
-- Convert date from Gregorian
function datePrototype:from_gregorian(year,month,day)
self:set_jd(gregorian2jd(year,month,day))
end
-- Convert date from Julian
function datePrototype:from_julian(year,month,day)
self:set_jd(julian2jd(year,month,day))
end
-- Convert date from Western
function datePrototype:from_western(year,month,day)
if year>gregorian_epoch.y or (year==gregorian_epoch.y and month>gregorian_epoch.m) or (year==gregorian_epoch.y and month == gregorian_epoch.m and day>=gregorian_epoch.d) then
self:set_jd(gregorian2jd(year,month,day))
else
self:set_jd(julian2jd(year,month,day))
end
end
-- set type of calendar
function datePrototype:set_type(arg_type)
local new_type,new_mode
arg_type = string.lower(arg_type)
if in_array(arg_type, {'hijri', 'hijri_adjusted_umalqura', 'hijri_umalqura', 'hijri_tabular', 'gregorian', 'julian', 'western'}) then
if string.sub(arg_type,1,5) == 'hijri' then
new_type = 'hijri'
if arg_type == 'hijri_umalqura' then
new_mode = 2
elseif arg_type == 'hijri_tabular' then
new_mode = 0
else
new_mode = 1
end
else
new_type = arg_type
end
if new_type ~= self.p.type or new_mode ~= self.p.mode then
self.p.type = new_type
self.p.mode = new_mode
if self.p.jd then
self:set_jd(self.p.jd)
end
end
else
error('bad calendar type')
end
end
function datePrototype:get_value(key)
if not self.p[key] then
local jd = self:get_jd() -- to init calendar if not
if key=='wday' then
self.p.wday = jd2wday(jd)
elseif key == 'timestamp' then
self.p.timestamp = jd2unix(jd)
else
if self.p.type=='hijri' and key=='leap_year' then
self.p.leap_year = hijri_isleap(self.p.year,self.p.mode)
elseif self.p.type == 'gregorian' or (self.p.type == 'western' and self.p.year > gregorian_epoch.y ) then
self.p.leap_year = gre_isleap(self.p.year)
elseif self.p.type == 'julian' or (self.p.type == 'western' and self.p.year <= gregorian_epoch.y ) then
self.p.leap_year = julian_isleap(self.p.year)
end
if key == 'yday' then
if self.p.type ~= 'hijri' then
if self.p.leap_year then
self.p.yday = select(self.p.month,0,31,60,91,121,152,182,213,244,274,305,335) + self.p.day - 1 + yday_1_1
else
self.p.yday = select(self.p.month,0,31,59,90,120,151,181,212,243,273,304,334) + self.p.day - 1 + yday_1_1
end
elseif self.p.type == 'hijri' then
self.p.yday = hijri_yday(self.p.year,self.p.month,self.p.day,self.p.mode)
end
elseif key == 'month_days' then
if self.p.type=='hijri' then
self.p.month_days = hijri_days_in_month(self.p.year,self.p.month,self.p.mode)
else
if self.p.month == 2 and self.p.leap_year then
self.p.month_days = 29
else
self.p.month_days = select(self.p.month,31,28,31,30,31,30,31,31,30,31,30,31)
end
end
end
end
end
return self.p[key]
end
-- add interval to date
function datePrototype:add(y, m, d)
y,m,d = tonumber(y) or 0,tonumber(m) or 0,tonumber(d) or 0
local jd = self:get_jd()
if y==0 and m == 0 then
jd = jd + d
else
local year,month,day=self.p.year + y, self.p.month + m, self.p.day + d
if self.p.type == 'hijri' then
jd = hijri2jd(year,month,day,self.p.mode)
elseif self.p.type == 'gregorian' then
jd = gregorian2jd(year,month,day)
elseif self.p.type == 'julian' then
jd = julian2jd(year,month,day)
elseif self.p.type == 'western' then
if self.p.jd >= gregorian_epoch.jd then
jd = gregorian2jd(year,month,day)
if jd< gregorian_epoch.jd then
jd = julian2jd(year,month,day)
end
else
jd = julian2jd(year,month,day)
if jd>= gregorian_epoch.jd then
jd = gregorian2jd(year,month,day)
end
end
end
end
if jd ~= self.p.jd then
self:set_jd(jd)
end
end
function datePrototype:iso()
local ret, str, jd = '', '', self:get_jd()
local year, month, day
if self.p.type=='gregorian' then
year, month, day = self.p.year, self.p.month, self.p.day
else
year, month, day = jd2gregorian(jd)
end
if year < 0 then
year = year - 1
ret = '-'
end
str = tostring(math.abs(year))
return ret .. string.rep('0', 4 - #str) .. str .. '-' .. ((month<10) and '0' or '') .. month .. '-' .. ((day<10) and '0' or '') .. day
end
local function DateWrapper(dt)
local t = {}
t.p = {}
local rop = {
type = false,
mode = true,
jd = false,
timestamp = false,
year = true,
month = true,
day = true,
wday = true,
yday = true,
month_days = true,
leap_year = true
}
local mt = {
__index = function ( tt, k )
assert( t == tt )
local v = tt.p[k] or datePrototype[k]
if v == nil and rop[k] ~=nil then
v = tt:get_value(k)
end
return v
end,
__newindex = function ( t, k, v )
if rop[k] then
error("Attempt to modify read-only property")
elseif k == 'jd' then
t:set_jd(v)
elseif k == 'type' then
t:set_type(v)
elseif k == 'timestamp' then
t:set_timestamp(v)
else
rawset(t, k, v)
end
end
}
-- This is just to make setmetatable() fail
mt.__metatable = mt
return setmetatable( t, mt )
end
local function Date(arg_type, arg_jd, arg_month, arg_day)
local d = DateWrapper({})
-- process argument
d:set_type(arg_type)
if arg_jd and arg_month and arg_day then
d:set_date(arg_jd, arg_month, arg_day)
elseif arg_jd then
d:set_jd(arg_jd)
end
return d
end
return {
gregorian2jd = gregorian2jd,
jd2hijri = jd2hijri,
hijri2jd = hijri2jd,
hijri_days_in_month = hijri_days_in_month,
hijri_isleap = hijri_isleap,
hijri_yday = hijri_yday,
jd2unix = jd2unix,
unix2jd = unix2jd,
jd2wday = jd2wday,
jd2gregorian = jd2gregorian,
gre_isleap = gre_isleap,
gre_yday = gre_yday,
gre_days_in_month = gre_days_in_month,
jd2julian = jd2julian,
julian2jd = julian2jd,
julian_isleap = julian_isleap,
julian_yday = julian_yday,
julian_days_in_month = julian_days_in_month,
gregorian2hijri = gregorian2hijri,
hijri2gregorian = hijri2gregorian,
Date = Date,
hijri_check = hijri_check,
gre_check = gre_check,
julian_check = julian_check
}
1svdn4ty5s2fz6cj7zjs5zbh6m8ia95
وحدة:Hijri/core/شرح
828
63258
275488
2026-09-15T10:40:03Z
حبيشان
29714
استيراد من ar.wiktionary.org
275488
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/umalqura data
828
63259
275489
2026-09-15T10:40:06Z
حبيشان
29714
استيراد من ar.wiktionary.org
275489
Scribunto
text/plain
-- هذه الوحدة بيانات غير قابلة للتعديل
return { [0]=15140, 15169, 15199, 15228, 15258, 15287, 15317, 15347, 15377, 15406, 15436, 15465, 15494, 15524, 15553, 15582, 15612, 15641, 15671, 15701, 15731, 15760, 15790, 15820, 15849, 15878, 15908, 15937, 15966, 15996, 16025, 16055, 16085, 16114, 16144, 16174, 16204, 16233, 16262, 16292, 16321, 16350, 16380, 16409, 16439, 16468, 16498, 16528, 16558, 16587, 16617, 16646, 16676, 16705, 16734, 16764, 16793, 16823, 16852, 16882, 16912, 16941, 16971, 17001, 17030, 17060, 17089, 17118, 17148, 17177, 17207, 17236, 17266, 17295, 17325, 17355, 17384, 17414, 17444, 17473, 17502, 17532, 17561, 17591, 17620, 17650, 17679, 17709, 17738, 17768, 17798, 17827, 17857, 17886, 17916, 17945, 17975, 18004, 18034, 18063, 18093, 18122, 18152, 18181, 18211, 18241, 18270, 18300, 18330, 18359, 18388, 18418, 18447, 18476, 18506, 18535, 18565, 18595, 18625, 18654,
18684, 18714, 18743, 18772, 18802, 18831, 18860, 18890, 18919, 18949, 18979, 19008, 19038, 19068, 19098, 19127, 19156, 19186, 19215, 19244, 19274, 19303, 19333, 19362, 19392, 19422, 19452, 19481, 19511, 19540, 19570, 19599, 19628, 19658, 19687, 19717, 19746, 19776, 19806, 19836, 19865, 19895, 19924, 19954, 19983, 20012, 20042, 20071, 20101, 20130, 20160, 20190, 20219, 20249, 20279, 20308, 20338, 20367, 20396, 20426, 20455, 20485, 20514, 20544, 20573, 20603, 20633, 20662, 20692, 20721, 20751, 20780, 20810, 20839, 20869, 20898, 20928, 20957, 20987, 21016, 21046, 21076, 21105, 21135, 21164, 21194, 21223, 21253, 21282, 21312, 21341, 21371, 21400, 21430, 21459, 21489, 21519, 21548, 21578, 21607, 21637, 21666, 21696, 21725, 21754, 21784, 21813, 21843, 21873, 21902, 21932, 21962, 21991, 22021, 22050, 22080, 22109, 22138, 22168, 22197,
22227, 22256, 22286, 22316, 22346, 22375, 22405, 22434, 22464, 22493, 22522, 22552, 22581, 22611, 22640, 22670, 22700, 22730, 22759, 22789, 22818, 22848, 22877, 22906, 22936, 22965, 22994, 23024, 23054, 23083, 23113, 23143, 23173, 23202, 23232, 23261, 23290, 23320, 23349, 23379, 23408, 23438, 23467, 23497, 23527, 23556, 23586, 23616, 23645, 23674, 23704, 23733, 23763, 23792, 23822, 23851, 23881, 23910, 23940, 23970, 23999, 24029, 24058, 24088, 24117, 24147, 24176, 24206, 24235, 24265, 24294, 24324, 24353, 24383, 24413, 24442, 24472, 24501, 24531, 24560, 24590, 24619, 24648, 24678, 24707, 24737, 24767, 24796, 24826, 24856, 24885, 24915, 24944, 24974, 25003, 25032, 25062, 25091, 25121, 25150, 25180, 25210, 25240, 25269, 25299, 25328, 25358, 25387, 25416, 25446, 25475, 25505, 25534, 25564, 25594, 25624, 25653, 25683, 25712, 25742,
25771, 25800, 25830, 25859, 25888, 25918, 25948, 25977, 26007, 26037, 26067, 26096, 26126, 26155, 26184, 26214, 26243, 26272, 26302, 26332, 26361, 26391, 26421, 26451, 26480, 26510, 26539, 26568, 26598, 26627, 26656, 26686, 26715, 26745, 26775, 26805, 26834, 26864, 26893, 26923, 26952, 26982, 27011, 27041, 27070, 27099, 27129, 27159, 27188, 27218, 27248, 27277, 27307, 27336, 27366, 27395, 27425, 27454, 27484, 27513, 27542, 27572, 27602, 27631, 27661, 27691, 27720, 27750, 27779, 27809, 27838, 27868, 27897, 27926, 27956, 27985, 28015, 28045, 28074, 28104, 28134, 28163, 28193, 28222, 28252, 28281, 28310, 28340, 28369, 28399, 28428, 28458, 28488, 28517, 28547, 28577, 28606, 28636, 28665, 28694, 28724, 28753, 28782, 28812, 28842, 28871, 28901, 28931, 28961, 28990, 29020, 29049, 29078, 29108, 29137, 29166, 29196, 29226, 29255, 29285,
29315, 29345, 29374, 29404, 29433, 29462, 29492, 29521, 29550, 29580, 29609, 29639, 29669, 29699, 29728, 29758, 29788, 29817, 29846, 29876, 29905, 29934, 29964, 29993, 30023, 30053, 30082, 30112, 30142, 30171, 30201, 30230, 30260, 30289, 30319, 30348, 30377, 30407, 30436, 30466, 30496, 30525, 30555, 30585, 30614, 30644, 30673, 30703, 30732, 30761, 30791, 30820, 30850, 30879, 30909, 30939, 30968, 30998, 31028, 31057, 31087, 31116, 31146, 31175, 31204, 31234, 31263, 31293, 31322, 31352, 31382, 31411, 31441, 31471, 31500, 31530, 31559, 31588, 31618, 31647, 31677, 31706, 31736, 31765, 31795, 31825, 31855, 31884, 31914, 31943, 31972, 32002, 32031, 32060, 32090, 32119, 32149, 32179, 32209, 32239, 32268, 32298, 32327, 32356, 32386, 32415, 32444, 32474, 32503, 32533, 32563, 32593, 32622, 32652, 32682, 32711, 32740, 32770, 32799, 32828,
32858, 32887, 32917, 32947, 32976, 33006, 33036, 33065, 33095, 33124, 33154, 33183, 33212, 33242, 33271, 33301, 33330, 33360, 33390, 33420, 33449, 33479, 33508, 33538, 33567, 33596, 33626, 33655, 33685, 33714, 33744, 33774, 33803, 33833, 33862, 33892, 33922, 33951, 33981, 34010, 34039, 34069, 34098, 34128, 34157, 34187, 34216, 34246, 34276, 34305, 34335, 34365, 34394, 34424, 34453, 34482, 34512, 34541, 34571, 34600, 34630, 34660, 34689, 34719, 34749, 34778, 34808, 34837, 34866, 34896, 34925, 34954, 34984, 35014, 35043, 35073, 35103, 35133, 35162, 35192, 35221, 35250, 35280, 35309, 35338, 35368, 35397, 35427, 35457, 35487, 35516, 35546, 35576, 35605, 35634, 35664, 35693, 35722, 35752, 35781, 35811, 35841, 35870, 35900, 35930, 35959, 35989, 36018, 36048, 36077, 36106, 36136, 36165, 36195, 36224, 36254, 36284, 36314, 36343, 36373,
36402, 36432, 36461, 36490, 36520, 36549, 36579, 36608, 36638, 36668, 36697, 36727, 36757, 36786, 36816, 36845, 36874, 36904, 36933, 36963, 36992, 37022, 37051, 37081, 37111, 37140, 37170, 37199, 37229, 37258, 37288, 37317, 37347, 37376, 37406, 37435, 37465, 37494, 37524, 37554, 37583, 37613, 37642, 37672, 37702, 37731, 37760, 37790, 37819, 37848, 37878, 37908, 37937, 37967, 37997, 38026, 38056, 38086, 38115, 38144, 38174, 38203, 38232, 38262, 38291, 38321, 38351, 38381, 38410, 38440, 38470, 38499, 38528, 38558, 38587, 38616, 38646, 38675, 38705, 38735, 38764, 38794, 38824, 38854, 38883, 38912, 38942, 38971, 39000, 39030, 39059, 39089, 39118, 39148, 39178, 39208, 39237, 39267, 39296, 39326, 39355, 39384, 39414, 39443, 39473, 39502, 39532, 39562, 39591, 39621, 39651, 39680, 39710, 39739, 39768, 39798, 39827, 39857, 39886, 39916,
39945, 39975, 40005, 40034, 40064, 40093, 40123, 40152, 40182, 40211, 40241, 40270, 40300, 40329, 40359, 40388, 40418, 40448, 40477, 40507, 40536, 40566, 40595, 40625, 40654, 40684, 40713, 40743, 40772, 40802, 40831, 40861, 40891, 40920, 40950, 40979, 41009, 41038, 41068, 41097, 41126, 41156, 41185, 41215, 41245, 41275, 41304, 41334, 41364, 41393, 41422, 41452, 41481, 41510, 41540, 41569, 41599, 41629, 41658, 41688, 41718, 41748, 41777, 41806, 41836, 41865, 41894, 41924, 41953, 41983, 42012, 42042, 42072, 42102, 42131, 42161, 42190, 42220, 42249, 42278, 42308, 42337, 42367, 42396, 42426, 42456, 42485, 42515, 42545, 42574, 42604, 42633, 42662, 42692, 42721, 42751, 42780, 42810, 42839, 42869, 42899, 42929, 42958, 42988, 43017, 43046, 43076, 43105, 43135, 43164, 43194, 43223, 43253, 43283, 43312, 43342, 43371, 43401, 43430, 43460,
43489, 43519, 43548, 43578, 43607, 43637, 43666, 43696, 43726, 43755, 43785, 43814, 43844, 43873, 43903, 43932, 43962, 43991, 44021, 44050, 44080, 44109, 44139, 44169, 44198, 44228, 44257, 44287, 44316, 44346, 44375, 44404, 44434, 44463, 44493, 44523, 44552, 44582, 44612, 44641, 44671, 44700, 44730, 44759, 44788, 44818, 44847, 44877, 44906, 44936, 44966, 44996, 45025, 45055, 45084, 45114, 45143, 45172, 45202, 45231, 45261, 45290, 45320, 45350, 45380, 45409, 45439, 45468, 45498, 45527, 45556, 45586, 45615, 45644, 45674, 45704, 45733, 45763, 45793, 45823, 45852, 45882, 45911, 45940, 45970, 45999, 46028, 46058, 46088, 46117, 46147, 46177, 46206, 46236, 46265, 46295, 46324, 46354, 46383, 46413, 46442, 46472, 46501, 46531, 46560, 46590, 46620, 46649, 46679, 46708, 46738, 46767, 46797, 46826, 46856, 46885, 46915, 46944, 46974, 47003,
47033, 47063, 47092, 47122, 47151, 47181, 47210, 47240, 47269, 47298, 47328, 47357, 47387, 47417, 47446, 47476, 47506, 47535, 47565, 47594, 47624, 47653, 47682, 47712, 47741, 47771, 47800, 47830, 47860, 47890, 47919, 47949, 47978, 48008, 48037, 48066, 48096, 48125, 48155, 48184, 48214, 48244, 48273, 48303, 48333, 48362, 48392, 48421, 48450, 48480, 48509, 48538, 48568, 48598, 48627, 48657, 48687, 48717, 48746, 48776, 48805, 48834, 48864, 48893, 48922, 48952, 48982, 49011, 49041, 49071, 49100, 49130, 49160, 49189, 49218, 49248, 49277, 49306, 49336, 49365, 49395, 49425, 49455, 49484, 49514, 49543, 49573, 49602, 49632, 49661, 49690, 49720, 49749, 49779, 49809, 49838, 49868, 49898, 49927, 49957, 49986, 50016, 50045, 50075, 50104, 50133, 50163, 50192, 50222, 50252, 50281, 50311, 50340, 50370, 50400, 50429, 50459, 50488, 50518, 50547,
50576, 50606, 50635, 50665, 50694, 50724, 50754, 50784, 50813, 50843, 50872, 50902, 50931, 50960, 50990, 51019, 51049, 51078, 51108, 51138, 51167, 51197, 51227, 51256, 51286, 51315, 51345, 51374, 51403, 51433, 51462, 51492, 51522, 51552, 51582, 51611, 51641, 51670, 51699, 51729, 51758, 51787, 51816, 51846, 51876, 51906, 51936, 51965, 51995, 52025, 52054, 52083, 52113, 52142, 52171, 52200, 52230, 52260, 52290, 52319, 52349, 52379, 52408, 52438, 52467, 52497, 52526, 52555, 52585, 52614, 52644, 52673, 52703, 52733, 52762, 52792, 52822, 52851, 52881, 52910, 52939, 52969, 52998, 53028, 53057, 53087, 53116, 53146, 53176, 53205, 53235, 53264, 53294, 53324, 53353, 53383, 53412, 53441, 53471, 53500, 53530, 53559, 53589, 53619, 53648, 53678, 53708, 53737, 53767, 53796, 53825, 53855, 53884, 53914, 53943, 53973, 54003, 54032, 54062, 54092,
54121, 54151, 54180, 54209, 54239, 54268, 54297, 54327, 54357, 54387, 54416, 54446, 54476, 54505, 54535, 54564, 54593, 54623, 54652, 54681, 54711, 54741, 54770, 54800, 54830, 54859, 54889, 54919, 54948, 54977, 55007, 55036, 55066, 55095, 55125, 55154, 55184, 55213, 55243, 55273, 55302, 55332, 55361, 55391, 55420, 55450, 55479, 55508, 55538, 55567, 55597, 55627, 55657, 55686, 55716, 55745, 55775, 55804, 55834, 55863, 55892, 55922, 55951, 55981, 56011, 56040, 56070, 56100, 56129, 56159, 56188, 56218, 56247, 56276, 56306, 56335, 56365, 56394, 56424, 56454, 56483, 56513, 56543, 56572, 56601, 56631, 56660, 56690, 56719, 56749, 56778, 56808, 56837, 56867, 56897, 56926, 56956, 56985, 57015, 57044, 57074, 57103, 57133, 57162, 57192, 57221, 57251, 57280, 57310, 57340, 57369, 57399, 57429, 57458, 57487, 57517, 57546, 57576, 57605, 57634,
57664, 57694, 57723, 57753, 57783, 57813, 57842, 57871, 57901, 57930, 57959, 57989, 58018, 58048, 58077, 58107, 58137, 58167, 58196, 58226, 58255, 58285, 58314, 58343, 58373, 58402, 58432, 58461, 58491, 58521, 58551, 58580, 58610, 58639, 58669, 58698, 58727, 58757, 58786, 58816, 58845, 58875, 58905, 58934, 58964, 58994, 59023, 59053, 59082, 59111, 59141, 59170, 59200, 59229, 59259, 59288, 59318, 59348, 59377, 59407, 59436, 59466, 59495, 59525, 59554, 59584, 59613, 59643, 59672, 59702, 59731, 59761, 59791, 59820, 59850, 59879, 59909, 59939, 59968, 59997, 60027, 60056, 60086, 60115, 60145, 60174, 60204, 60234, 60264, 60293, 60323, 60352, 60381, 60411, 60440, 60469, 60499, 60528, 60558, 60588, 60618, 60647, 60677, 60707, 60736, 60765, 60795, 60824, 60853, 60883, 60912, 60942, 60972, 61002, 61031, 61061, 61090, 61120, 61149, 61179,
61208, 61237, 61267, 61296, 61326, 61356, 61385, 61415, 61445, 61474, 61504, 61533, 61563, 61592, 61621, 61651, 61680, 61710, 61739, 61769, 61799, 61828, 61858, 61888, 61917, 61947, 61976, 62006, 62035, 62064, 62094, 62123, 62153, 62182, 62212, 62242, 62271, 62301, 62331, 62360, 62390, 62419, 62448, 62478, 62507, 62537, 62566, 62596, 62625, 62655, 62685, 62715, 62744, 62774, 62803, 62832, 62862, 62891, 62921, 62950, 62980, 63009, 63039, 63069, 63099, 63128, 63157, 63187, 63216, 63246, 63275, 63305, 63334, 63363, 63393, 63423, 63453, 63482, 63512, 63541, 63571, 63600, 63630, 63659, 63689, 63718, 63747, 63777, 63807, 63836, 63866, 63895, 63925, 63955, 63984, 64014, 64043, 64073, 64102, 64131, 64161, 64190, 64220, 64249, 64279, 64309, 64339, 64368, 64398, 64427, 64457, 64486, 64515, 64545, 64574, 64603, 64633, 64663, 64692, 64722,
64752, 64782, 64811, 64841, 64870, 64899, 64929, 64958, 64987, 65017, 65047, 65076, 65106, 65136, 65166, 65195, 65225, 65254, 65283, 65313, 65342, 65371, 65401, 65431, 65460, 65490, 65520, 65549, 65579, 65608, 65638, 65667, 65697, 65726, 65755, 65785, 65815, 65844, 65874, 65903, 65933, 65963, 65992, 66022, 66051, 66081, 66110, 66140, 66169, 66199, 66228, 66258, 66287, 66317, 66346, 66376, 66405, 66435, 66465, 66494, 66524, 66553, 66583, 66612, 66641, 66671, 66700, 66730, 66760, 66789, 66819, 66849, 66878, 66908, 66937, 66967, 66996, 67025, 67055, 67084, 67114, 67143, 67173, 67203, 67233, 67262, 67292, 67321, 67351, 67380, 67409, 67439, 67468, 67497, 67527, 67557, 67587, 67617, 67646, 67676, 67705, 67735, 67764, 67793, 67823, 67852, 67882, 67911, 67941, 67971, 68000, 68030, 68060, 68089, 68119, 68148, 68177, 68207, 68236, 68266,
68295, 68325, 68354, 68384, 68414, 68443, 68473, 68502, 68532, 68561, 68591, 68620, 68650, 68679, 68708, 68738, 68768, 68797, 68827, 68857, 68886, 68916, 68946, 68975, 69004, 69034, 69063, 69092, 69122, 69152, 69181, 69211, 69240, 69270, 69300, 69330, 69359, 69388, 69418, 69447, 69476, 69506, 69535, 69565, 69595, 69624, 69654, 69684, 69713, 69743, 69772, 69802, 69831, 69861, 69890, 69919, 69949, 69978, 70008, 70038, 70067, 70097, 70126, 70156, 70186, 70215, 70245, 70274, 70303, 70333, 70362, 70392, 70421, 70451, 70481, 70510, 70540, 70570, 70599, 70629, 70658, 70687, 70717, 70746, 70776, 70805, 70835, 70864, 70894, 70924, 70954, 70983, 71013, 71042, 71071, 71101, 71130, 71159, 71189, 71218, 71248, 71278, 71308, 71337, 71367, 71397, 71426, 71455, 71485, 71514, 71543, 71573, 71602, 71632, 71662, 71691, 71721, 71751, 71781, 71810,
71839, 71869, 71898, 71927, 71957, 71986, 72016, 72046, 72075, 72105, 72135, 72164, 72194, 72223, 72253, 72282, 72311, 72341, 72370, 72400, 72429, 72459, 72489, 72518, 72548, 72577, 72607, 72637, 72666, 72695, 72725, 72754, 72784, 72813, 72843, 72872, 72902, 72931, 72961, 72991, 73020, 73050, 73080, 73109, 73139, 73168, 73197, 73227, 73256, 73286, 73315, 73345, 73375, 73404, 73434, 73464, 73493, 73523, 73552, 73581, 73611, 73640, 73669, 73699, 73729, 73758, 73788, 73818, 73848, 73877, 73907, 73936, 73965, 73995, 74024, 74053, 74083, 74113, 74142, 74172, 74202, 74231, 74261, 74291, 74320, 74349, 74379, 74408, 74437, 74467, 74497, 74526, 74556, 74585, 74615, 74645, 74675, 74704, 74733, 74763, 74792, 74822, 74851, 74881, 74910, 74940, 74969, 74999, 75029, 75058, 75088, 75117, 75147, 75176, 75206, 75235, 75264, 75294, 75323, 75353,
75383, 75412, 75442, 75472, 75501, 75531, 75560, 75590, 75619, 75648, 75678, 75707, 75737, 75766, 75796, 75826, 75856, 75885, 75915, 75944, 75974, 76003, 76032, 76062, 76091, 76121, 76150, 76180, 76210, 76239, 76269, 76299, 76328, 76358, 76387, 76416, 76446, 76475, 76505, 76534, 76564, 76593, 76623, 76653, 76682, 76712, 76741, 76771, 76801, 76830, 76859, 76889, 76918, 76948, 76977, 77007, 77036, 77066, 77096, 77125, 77155, 77185, 77214, 77243, 77273, 77302, 77332, 77361, 77390, 77420, 77450, 77479, 77509, 77539, 77569, 77598, 77627, 77657, 77686, 77715, 77745, 77774, 77804, 77833, 77863, 77893, 77923, 77952, 77982, 78011, 78041, 78070, 78099, 78129, 78158, 78188, 78217, 78247, 78277, 78307, 78336, 78366, 78395, 78425, 78454, 78483, 78513, 78542, 78572, 78601, 78631, 78661, 78690, 78720, 78750, 78779, 78808, 78838, 78867, 78897,
78926, 78956, 78985, 79015, 79044, 79074, 79104, 79133, 79163, 79192, 79222, 79251, 79281, 79310, 79340, 79369, 79399, 79428, 79458, 79487, 79517, 79546, 79576, 79606, 79635, 79665, 79695, 79724, 79753, 79783, 79812, 79841, 79871, 79900, 79930, 79960,
}
jg15ptau8lp916og1lwc2p24cmbeo9q
وحدة:Hijri/umalqura data/شرح
828
63260
275490
2026-09-15T10:40:09Z
حبيشان
29714
استيراد من ar.wiktionary.org
275490
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/شرح
828
63261
275491
2026-09-15T10:40:11Z
حبيشان
29714
استيراد من ar.wiktionary.org
275491
wikitext
text/x-wiki
{{وحدات Hijri}}
n40wpchxl9vu9b4sxjraz61itxn6c5y
وحدة:Hijri/ملعب
828
63262
275492
2026-09-15T10:40:19Z
حبيشان
29714
استيراد من ar.wiktionary.org
275492
Scribunto
text/plain
local cfg= mw.loadData('Module:Hijri/Configuration')
local core = require 'Module:Hijri/core'
--[[ ----------------- I M P O R T --------------]]
gregorian2jd = core.gregorian2jd
jd2hijri = core.jd2hijri
hijri2jd = core.hijri2jd
hijri_days_in_month = core.hijri_days_in_month
hijri_isleap = core.hijri_isleap
hijri_yday = core.hijri_yday
jd2unix = core.jd2unix
unix2jd = core.unix2jd
jd2wday = core.jd2wday
jd2gregorian = core.jd2gregorian
gre_isleap = core.gre_isleap
gre_yday = core.gre_yday
gre_days_in_month = core.gre_days_in_month
jd2julian = core.jd2julian
julian2jd = core.julian2jd
julian_isleap = core.julian_isleap
julian_yday = core.julian_yday
julian_days_in_month = core.julian_days_in_month
gregorian2hijri = core.gregorian2hijri
hijri2gregorian = core.hijri2gregorian
Date = core.Date
hijri_check = core.hijri_check
string = mw.ustring
local str_hijri_mode = select(cfg.hijri_mode + 1, 'hijri_tabular', 'hijri_adjusted_umalqura', 'hijri_umalqura')
--[[---------------------- utilty function ----------------- ]]
local gtonumber = tonumber
local function tonumber(str)
if not str then
return nil
end
local thenumber = gtonumber(str) or mw.language.getContentLanguage():parseFormattedNumber(str)
if not thenumber then
return nil
end
return math.floor(thenumber)
end
local function substitute( msg, args )
return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end
local function error( msg, args )
return substitute( cfg.presentation.error, substitute( msg, args ) );
end
local function towdigit(number)
return ((number<10) and '0' or '') .. number
end
local function hijri_month_name(index)
if cfg.hijri_months then
return cfg.hijri_months[index]
else
return mw.message.new('hijri-calendar-m' .. index):plain()
end
end
local function wday_name(index)
if cfg.wday_name then
return cfg.wday_name[index]
else
return mw.message.new(select(index +1 ,'Sunday','Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')):plain()
end
end
local function julian_month_name(index)
if cfg.gregorian_months then
return cfg.gregorian_months[index]
else
return mw.message.new(select(index, 'january', 'february', 'march', 'april', 'may_long', 'june', 'july', 'august', 'september', 'october', 'november', 'december')):plain()
end
end
local function syrian_month_name(index)
if cfg.syrian_months then
return cfg.syrian_months[index]
else
return select(index, 'كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول')
end
end
local format_func = {
towdigit = towdigit,
hijri_month_name = hijri_month_name,
wday_name = wday_name,
julian_month_name = julian_month_name,
syrian_month_name = syrian_month_name
}
local function substitute( msg, args )
return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end
local function error( msg, args )
return substitute( cfg.presentation.error, substitute( msg, args ) );
end
local function argument_wrapper(arg)
local nilargs = {}
return setmetatable({},
{
__index = function ( tbl, k )
local v = rawget(tbl,k)
if v then
return v
elseif nilargs[k] then
return nil
end
local list = cfg.aliases[k];
for _,arglist in ipairs(arg) do
if type( list ) == 'table' then
for _, alias_key in ipairs( list ) do
if arglist[alias_key] then
v = arglist[alias_key]
break;
end
end
elseif list ~= nil then
v = arglist[list]
end
if v then
break;
end
end
if v == nil then
nilargs[k] = true
else
rawset( tbl, k, v )
end
return v
end,
});
end
local function get_value_from_aliaes(aliases_tbl, arg_value)
if arg_value and aliases_tbl then
for k, v_list in pairs(aliases_tbl) do
if type(v_list) ~= "table" then
if arg_value == v_list then
return k
end
else
for _, v_value in ipairs(v_list) do
if arg_value == v_value then
return k
end
end
end
end
end
end
--[[ -------------------- frame functions ---------------------------------------]]
local function test(frame)
return mw.language.getContentLanguage():formatDate("Y n j", '@-86400' ,true)
end
function get_gregorian_from_hijri(frame)
return mw.text.listToText({ hijri2gregorian(tonumber(frame.args[1]),tonumber(frame.args[2]),tonumber(frame.args[3])) },"-","-")
end
function get_hijri_from_gregorian(frame)
d= Date(str_hijri_mode)
d:from_gregorian(tonumber(frame.args[1]),tonumber(frame.args[2]),tonumber(frame.args[3]))
return d
end
local function lua_format_date(A)
local theformat = A.format or 'xmj xmF xmY'
local cDate
if A.year and A.day and A.month then
local year, month, day = tonumber(A.year), tonumber(A.month), tonumber(A.day)
local source_cal = get_value_from_aliaes(cfg.cal_aliases, A.source_cal)
if not source_cal then
if day>30 or year > 1500 then
source_cal = 'gregorian'
else
source_cal='hijri'
end
end
local wday = get_value_from_aliaes(cfg.wday_aliases, A.wday)
if source_cal == 'hijri' then
cDate = Date(str_hijri_mode)
if wday then
cDate:from_hijri(year,month,day,wday,cfg.hijri_mode)
else
cDate:set_date(year,month,day,true)
end
else
cDate = Date(source_cal)
if string.sub(source_cal,1,5) == 'hijri' and wday then
cDate:from_hijri(year,month,day,wday)
else
cDate:set_date(year,month,day)
end
end
elseif A.date then
local tmpdate = mw.language.getContentLanguage():formatDate('Y/n/j', A.date)
if tmpdate then
local gre = mw.text.split(tmpdate,'/')
cDate = Date('gregorian',tonumber(gre[1]), tonumber(gre[2]), tonumber(gre[3]))
else
cDate = Date('gregorian')
end
else
cDate = Date('gregorian')
end
if string.find(theformat, 'x[muwg][jFntYyzdm]') or string.find(theformat, '~[هميغ][يشرسلةع][0س]?') then
local lc_hijri_mode = get_value_from_aliaes(cfg.cal_aliases, A.hijri_cal_type) or str_hijri_mode
-- date replaces
local symbols = cfg.symbol_replace.symbols
local dr = cfg.symbol_replace.calendars
local pat, cal_type
for drk,drv in pairs(dr) do
cal_type = (drk == 'hijri') and lc_hijri_mode or drv.type
for sym_pre_i, sym_pre in ipairs(drv.sym_pre) do
if drv.symbols_pattern then
pat = drv.symbols_pattern[sym_pre_i]
else
pat = sym_pre .. cfg.symbol_replace.default_symbol_pattern[sym_pre_i]
end
if string.find(theformat,pat) then
cDate:set_type(cal_type)
local tempformat,sy = theformat,''
local ss,se = string.find(tempformat,pat)
theformat = ''
while ss do
sy = string.sub(tempformat,ss,se)
if ss > 1 then
theformat = theformat .. string.sub(tempformat,1,ss-1)
end
if se < #tempformat then
tempformat = string.sub(tempformat,se+1)
else
tempformat = ''
end
for sym, symv in pairs(symbols[sym_pre_i]) do
if sy == sym_pre .. sym then
if symv.func then
if format_func[symv.func] then
theformat = theformat .. format_func[symv.func](cDate[symv.rep])
elseif format_func[drv.func[symv.func]] then
theformat = theformat .. format_func[drv.func[symv.func]](cDate[symv.rep])
else
error('Can`t find fromating function')
end
else
theformat = theformat .. cDate[symv.rep]
end
end
end
ss,se = string.find(tempformat,pat)
end
theformat = theformat .. tempformat
end
end
end
end
if string.find(theformat,"[a-zA-Z]") and (not A.pass_mw_time or A.pass_mw_time == '1' or A.pass_mw_time == 'نعم') then
cDate:set_type('gregorian')
return mw.language.getContentLanguage():formatDate(theformat, cDate.timestamp and ("@" .. cDate.timestamp) or cDate ,true)
else
return theformat
end
end
local function format_date(frame)
local A = argument_wrapper({frame:getParent().args, frame.args})
return lua_format_date(A)
end
return { test = test,
get_gregorian_from_hijri = get_gregorian_from_hijri,
get_hijri_from_gregorian =get_hijri_from_gregorian,
format_date = format_date,
lua_format_date=lua_format_date,
julian_month_name = julian_month_name,
hijri_month_name = hijri_month_name
}
93ttr5y8cq6pqxp044tzk36zqqqi54l
قالب:وحدات Hijri
10
63263
275493
2026-09-15T10:41:34Z
حبيشان
29714
استيراد من ar.wiktionary.org
275493
wikitext
text/x-wiki
{| class="wikitable" width="100%"
|colspan="5"|<center>'''وحدات التقويم الهجري''' </center>
|-
! مفعلة
! فرق
!colspan="2"|ملاعب
! الوصف
|-
| [[وحدة:Hijri]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri|وحدة:Hijri/ملعب}}
| [[وحدة:Hijri/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wikisource.org/w/index.php?title=وحدة:Hijri/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| تحوي على وظائف القوالب ووظائف مساعدة لها، والتي يتم استدعاؤها من من الصفحات.
|-
| [[وحدة:Hijri/Calendar]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri/Calendar|وحدة:Hijri/Calendar/ملعب}}
| [[وحدة:Hijri/Calendar/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wikisource.org/w/index.php?title=وحدة:Hijri/Calendar/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| تحوي الوظائف الأساسية لإخراج تقويم شهري وتستدعى من الصفحات والقوالب.
|-
| [[وحدة:Hijri/core]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri/core|وحدة:Hijri/core/ملعب}}
| [[وحدة:Hijri/core/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wikisource.org/w/index.php?title=وحدة:Hijri/core/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| تحوي على وظائف لوا أساسية لمعالجة التقاويم تستدعى من وحدات لوا فقط.
|-
| [[وحدة:Hijri/adjusted data]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri/adjusted data|وحدة:Hijri/adjusted data/ملعب}}
| [[وحدة:Hijri/adjusted data/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wikisource.org/w/index.php?title=وحدة:Hijri/adjusted_data/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| تقوم هذه الوحدة بإخراج بيانات تقويم أم القرى مع التعديلات عليها والغرض من جعلها وحدة مستقلة وتسهيل تحميلها من أمر mw.loadData
|-
|colspan="5"|<center>'''وحدات البيانات''' </center>
|-
| [[وحدة:Hijri/Configuration]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri/Configuration|وحدة:Hijri/Configuration/ملعب}}
| [[وحدة:Hijri/Configuration/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wikisource.org/w/index.php?title=وحدة:Hijri/Configuration/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| جداول الترجمة، ومعالجات الأخطاء والمعرفات.
|-
| [[وحدة:Hijri/umalqura data]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri/umalqura data|وحدة:Hijri/umalqura data/ملعب}}
|colspan="2"| لا ملعب لها
| وحدة بيانات تحوي على بيانات [[تقويم أم القرى]]
|-
| [[وحدة:Hijri/adjustment data]]
| {{وصلة مقارنة الصفحات|وحدة:Hijri/adjustment data|وحدة:Hijri/adjustment data/ملعب}}
| [[وحدة:Hijri/adjustment data/ملعب|ملعب]]
| {{وصلة بسيطة|url=https://ar.wikisource.org/w/index.php?title=وحدة:Hijri/adjustment_data/ملعب&action=edit|name=[تعديل<nowiki>]</nowiki>}}
| وحدة بيانات تحوي على التعديلات على تقويم أم القرى
|}
8z62g24ssw5yoecmo1oxek4ovc80qna
قالب:Uses lua
10
63264
275494
2026-09-15T10:43:16Z
حبيشان
29714
استيراد من ar.wiktionary.org
275494
wikitext
text/x-wiki
<includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude>
{{Lua|وحدة:Lua banner}}
{{توثيق}}</noinclude>
t6rzodrs1xao52r8irum2vgjatratai
وحدة:Message box/ambox.css
828
63265
275498
2026-09-15T10:44:33Z
حبيشان
29714
استيراد من ar.wiktionary.org
275498
sanitized-css
text/css
/* {{pp|small=y}} */
.ambox {
margin: 0; /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
border-right: 2px solid #36c; /* Default "notice" blue */
background-color: var(--background-color-neutral-subtle, #f8f9fa);
box-sizing: border-box;
}
/* Single border between stacked boxes. Take into account base templatestyles,
* user styles, and Template:Dated maintenance category.
* remove link selector when T200206 is fixed
*/
.ambox + link + .ambox,
.ambox + link + style + .ambox,
.ambox + link + link + .ambox,
/* TODO: raise these as "is this really that necessary???". the change was Dec 2021 */
.ambox + .mw-empty-elt + link + .ambox,
.ambox + .mw-empty-elt + link + style + .ambox,
.ambox + .mw-empty-elt + link + link + .ambox {
margin-top: -1px;
}
/* For the "small=left" option. */
/* must override .ambox + .ambox styles above */
html body.mediawiki .ambox.mbox-small-right {
/* @noflip */
margin: 4px 1em 4px 0;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
.ambox-speedy {
/* @noflip */
border: 1px solid #b32424; /* Red */
border-right: 2px solid #b32424; /* Red */
background-color: var(--background-color-neutral-subtle,#fee7e6); /* Pink */
}
.ambox-delete {
/* @noflip */
border: 1px solid #b32424; /* Red */
border-right: 2px solid #b32424; /* Red */
}
.ambox-content {
/* @noflip */
border: 1px solid #f28500; /* Orange */
border-right: 2px solid #f28500; /* Orange */
}
.ambox-style {
/* @noflip */
border: 1px solid #fc3; /* Yellow */
border-right: 2px solid #fc3; /* Yellow */
}
.ambox-move {
/* @noflip */
border: 1px solid #9932cc; /* Purple */
border-right: 2px solid #9932cc; /* Purple */
}
.ambox-current {
/* @noflip */
border: 1px solid #A5D6A7; /* Green */
border-right: 2px solid #A5D6A7; /* Green */
}
.ambox-featured {
/* @noflip */
border: 1px solid #C0C0C0; /* Silver */
}
.ambox-protection {
/* @noflip */
border-right: 1px solid #a2a9b1; /* Gray-gold */
border-right: 2px solid #a2a9b1; /* Gray-gold */
}
.ambox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.5em;
width: 100%;
font-size: 95%;
}
.ambox .mbox-text .date-container {
font-size: smaller; /* Smaller Date Container */
}
.ambox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
.ambox .mbox-imageleft {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
/* An empty narrow cell */
.ambox .mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
.ambox .mbox-image-div {
width: 42px;
}
/* Hack around MobileFrontend being opinionated */
html.client-js body.skin-minerva .mbox-text-span {
margin-right: 23px !important;
}
@media (min-width: 720px) {
.ambox {
margin: 0; /* 10% = Will not overlap with other elements */
}
}
/* الأسطر التالية سحبت من common.css */
/* Article message box styles */
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
padding: 0.25em 0.5em; /* 0.5em left/right */
font-size: 95%;
}
.ambox th.mbox-text .date-container,
.ambox td.mbox-text .date-container { /* Smaller Date Container */
font-size: small;
}
.ambox td.mbox-image { /* The left image cell */
/* @noflip */
padding: 2px 0.2em 2px 0; /* 0.5em left, 0px right */
}
.ambox td.mbox-imageleft { /* The right image cell */
/* @noflip */
padding: 2px 0.2em 2px 0; /* 0.5em left, 0px right */
}
.ambox-notice {
/* @noflip */
border: 1px solid #36c; /* Blue */
border-right: 2px solid #36c; /* Blue */
}
/* Style for compact ambox */
/* Hide the images */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-imageleft,
.compact-ambox table .mbox-empty-cell {
display: none;
}
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
border: none;
border-collapse: collapse;
background-color: transparent;
margin: 0 1.6em 0 0 !important;
padding: 0 !important;
width: auto;
display: block;
}
body.mediawiki .compact-ambox table.mbox-small-right {
font-size: 100%;
width: auto;
margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
padding: 0 !important;
margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
display: list-item;
line-height: 1.5em;
list-style-type: square;
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
0ux3z8d0xuy4btpp05i42ngepsgpkop
وحدة:Message box/cmbox.css
828
63266
275499
2026-09-15T10:44:36Z
حبيشان
29714
استيراد من ar.wiktionary.org
275499
sanitized-css
text/css
/* {{pp|small=y}} */
.cmbox {
margin: 3px 0;
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #dfe8ff; /* Default "notice" blue */
box-sizing: border-box;
/* necessary when embedded in other templates like [[:Category:Pending_AfC_submissions]] */
color: var( --color-base );
}
.cmbox-speedy {
margin-top: 4px;
margin-bottom: 4px;
border: 4px solid #b32424; /* Red */
background-color: #ffdbdb; /* Pink */
}
.cmbox-delete {
background-color: #ffdbdb; /* Pink */
}
.cmbox-content {
background-color: #ffe7ce; /* Orange */
}
.cmbox-style {
background-color: #fff9db; /* Yellow */
}
.cmbox-move {
background-color: #e4d8ff; /* Purple */
}
.cmbox-protection {
background-color: #efefe1; /* Gray-gold */
}
.cmbox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.9em;
width: 100%;
}
.cmbox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
.cmbox .mbox-imageleft {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
/* An empty narrow cell */
.cmbox .mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
.cmbox .mbox-invalid-type {
text-align: center;
}
@media (min-width: 720px) {
.cmbox {
margin: 3px 10%;
}
}
/* copied from common.css */
/* Category message box styles */
.cmbox-notice {
background-color: #d8e8ff; /* Blue */
}
.cmbox-current {
/* @noflip */
border: 1px solid #A5D6A7; /* Green */
border-right: 2px solid #A5D6A7; /* Green */
}
/* flipped lightness in hsl space except the main cmbox is the main page blue */
@media screen {
html.skin-theme-clientpref-night .cmbox {
background-color: #0d1a27; /* Default "notice" blue */
}
html.skin-theme-clientpref-night .cmbox-speedy,
html.skin-theme-clientpref-night .cmbox-delete {
background-color: #300; /* Pink */
}
html.skin-theme-clientpref-night .cmbox-content {
background-color: #331a00; /* Orange */
}
html.skin-theme-clientpref-night .cmbox-style {
background-color: #332b00; /* Yellow */
}
html.skin-theme-clientpref-night .cmbox-move {
background-color: #08001a; /* Purple */
}
html.skin-theme-clientpref-night .cmbox-protection {
background-color: #212112; /* Gray-gold */
}
}
@media screen and ( prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cmbox {
background-color: #0d1a27; /* Default "notice" blue */
}
html.skin-theme-clientpref-os .cmbox-speedy,
html.skin-theme-clientpref-os .cmbox-delete {
background-color: #300; /* Pink */
}
html.skin-theme-clientpref-os .cmbox-content {
background-color: #331a00; /* Orange */
}
html.skin-theme-clientpref-os .cmbox-style {
background-color: #332b00; /* Yellow */
}
html.skin-theme-clientpref-os .cmbox-move {
background-color: #08001a; /* Purple */
}
html.skin-theme-clientpref-os .cmbox-protection {
background-color: #212112; /* Gray-gold */
}
}
gazvw6s6iwu7pqyrlwn7wejip891wxe
وحدة:Message box/fmbox.css
828
63267
275501
2026-09-15T10:44:41Z
حبيشان
29714
استيراد من ar.wiktionary.org
275501
sanitized-css
text/css
/* {{pp|small=y}} */
.fmbox {
clear: both;
margin: 0.2em 0;
width: 100%;
border: 1px solid #a2a9b1;
background-color: var(--background-color-interactive-subtle, #f8f9fa); /* Default "system" gray */
box-sizing: border-box;
color: var(--color-base, #202122);
}
.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
background-color: #ffdbdb; /* Pink */
}
.fmbox-editnotice {
background-color: transparent;
}
.fmbox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.9em;
width: 100%;
}
.fmbox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
.fmbox .mbox-imageleft {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
.fmbox .mbox-invalid-type {
text-align: center;
}
/* منقولة من common.css */
.fmbox-system {
background-color: var(--background-color-interactive-subtle, #f8f9fa);
}
/* Div based "warning" style fmbox messages. */
.mw-warning-with-logexcerpt,
.mw-lag-warn-high,
.mw-cascadeprotectedwarning,
#mw-protect-cascadeon,
.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: var(--background-color-interactive-subtle, #ffdbdb);
padding: 0.25em 0.9em;
box-sizing: border-box;
}
@media screen {
html.skin-theme-clientpref-night .fmbox-warning {
background-color: #300; /* Reddish, same hue/saturation as light */
}
}
@media screen and ( prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .fmbox-warning {
background-color: #300; /* Reddish, same hue/saturation as light */
}
}
jrm3ght4g364i59ztt2j149f2ch1ote
وحدة:Message box/imbox.css
828
63268
275502
2026-09-15T10:44:43Z
حبيشان
29714
استيراد من ar.wiktionary.org
275502
sanitized-css
text/css
/* {{pp|small=y}} */
.imbox {
margin: 4px 0;
border-collapse: collapse;
border: 3px solid #36c; /* Default "notice" blue */
background-color: var(--background-color-interactive-subtle, #f8f9fa);
box-sizing: border-box;
}
/* For imboxes inside imbox-text cells. */
.imbox .mbox-text .imbox {
margin: 0 -0.5em; /* 0.9 - 0.5 = 0.4em left/right. */
/* TODO: Still needed? */
display: block; /* Fix for webkit to force 100% width. */
}
.imbox-speedy {
border: 3px solid #b32424; /* Red */
background-color: #fee7e6; /* Pink */
}
.imbox-delete {
border: 3px solid #b32424; /* Red */
}
.imbox-content {
border: 3px solid #f28500; /* Orange */
}
.imbox-style {
border: 3px solid #fc3; /* Yellow */
}
.imbox-move {
border: 3px solid #9932cc; /* Purple */
}
.imbox-protection {
border: 3px solid #a2a9b1; /* Gray-gold */
}
.imbox-license {
border: 3px solid #88a; /* Dark gray */
}
.imbox-featured {
border: 3px solid #cba135; /* Brown-gold */
}
.imbox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.9em;
width: 100%;
}
.imbox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
.imbox .mbox-imageleft {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
/* An empty narrow cell */
.imbox .mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
.imbox .mbox-invalid-type {
text-align: center;
}
@media (min-width: 720px) {
.imbox {
margin: 4px 10%;
}
}
/* منقولة من common.css */
/* Image message box styles */
.mbox-inside .imbox { /* For imboxes inside other templates. */
margin: 4px;
}
.imbox-notice {
border: 3px solid #36c; /* Blue */
}
.imbox-current {
/* @noflip */
border: 1px solid #A5D6A7; /* Green */
border-right: 2px solid #A5D6A7; /* Green */
}
@media screen {
html.skin-theme-clientpref-night .imbox-speedy {
background-color: #310402; /* Dark red, same hue/saturation as light */
}
}
@media screen and ( prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .imbox-speedy {
background-color: #310402; /* Dark red, same hue/saturation as light */
}
}
p52ywsqd6sjwn8713mk10h783sssmvc
وحدة:Message box/ombox.css
828
63269
275503
2026-09-15T10:44:45Z
حبيشان
29714
استيراد من ar.wiktionary.org
275503
sanitized-css
text/css
/* {{pp|small=y}} */
.ombox {
margin: 4px 0;
border-collapse: collapse;
border: 1px solid #a2a9b1; /* Default "notice" gray */
background-color: var(--background-color-neutral-subtle, #f8f9fa);
box-sizing: border-box;
color: var(--color-base, #202122);
}
/* For the "small=yes" option. */
.ombox.mbox-small {
font-size: 88%;
line-height: 1.25em;
}
.ombox-speedy {
border: 2px solid #b32424; /* Red */
background-color: #fee7e6; /* Pink */
}
.ombox-delete {
border: 2px solid #b32424; /* Red */
}
.ombox-content {
border: 1px solid #f28500; /* Orange */
}
.ombox-style {
border: 1px solid #fc3; /* Yellow */
}
.ombox-move {
border: 1px solid #9932cc; /* Purple */
}
.ombox-protection {
border: 2px solid #a2a9b1; /* Gray-gold */
}
.ombox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.9em;
width: 100%;
}
.ombox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
.ombox .mbox-imageleft {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
/* An empty narrow cell */
.ombox .mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
.ombox .mbox-invalid-type {
text-align: center;
}
@media (min-width: 720px) {
.ombox {
margin: 4px 10%;
}
.ombox.mbox-small {
/* @noflip */
clear: left;
/* @noflip */
float: left;
/* @noflip */
margin: 4px 1em 4px 0;
width: 238px;
}
}
/** T367463 */
body.skin--responsive table.ombox img {
max-width: none !important;
}
@media screen {
html.skin-theme-clientpref-night .ombox-speedy {
background-color: #310402; /* Dark red, same hue/saturation as light */
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ombox-speedy {
background-color: #310402; /* Dark red, same hue/saturation as light */
}
}
/* هذه السطر منسوخة من common.css */
/* Other pages message box styles */
.ombox-notice {
border: 1px solid #a2a9b1; /* Gray */
}
.ombox-current {
/* @noflip */
border: 1px solid #A5D6A7; /* Green */
border-right: 2px solid #A5D6A7; /* Green */
}
.ombox-protection {
border: 2px solid #a2a9b1; /* Gray-gold */
}
jdnfi3wf1gr2dn7if3dex47o7c0k6ws
قالب:Lua/شرح
10
63270
275504
2026-09-15T10:49:46Z
حبيشان
29714
استيراد من ar.wikipedia.org
275504
wikitext
text/x-wiki
{{صفحة توثيق فرعية}}
{{Lua{{\sandbox}}|Module:Lua banner}}
<!-- التصنيفات توضع في أسفل هذه الصفحة، وروابط اللغات تُضاف في ويكي بيانات. -->
يُستخدم هذا القالب للإشارة إلى أن القوالب قد حُوّلت إلى [[لوا (لغة برمجة)]]. يُوضع في أعلى صفحة /شرح الخاصة بالقالب. يُضيف القالب تلقائيًا الصفحة إلى [[:تصنيف:قوالب تستند على وحدات لوا]]، أو إلى أحد التصنيفات الفرعية له.
== الاستخدام ==
; الاستخدام الأساسي : {{وصلة قالب موسعة|Lua|''اسم الوحدة''}}
; جميع المعاملات : {{وصلة قالب موسعة|Lua|''الوحدة 1''|''الوحدة 2''|''الوحدة 3''|...|category{{=}}''تصنيف مخصص''|nocat{{=}}''true''}}
اسم الوحدة الأول مطلوب.
== أمثلة ==
* {{وصلة قالب موسعة|Lua|Module:Bananas}}
{{Lua{{\sandbox}}|Module:Bananas|nocat=true}}
{{تحديد}}
* {{وصلة قالب موسعة|Lua|Module:Bananas|Module:BananasArgs}}
{{Lua{{\sandbox}}|Module:Bananas|Module:BananasArgs|nocat=true}}
{{تحديد}}
* {{وصلة قالب موسعة|Lua|Module:Bananas|Module:BananasArgs|Module:HelloWorld}}
{{Lua{{\sandbox}}|Module:Bananas|Module:BananasArgs|Module:HelloWorld|nocat=true}}
{{تحديد}}
* {{وصلة قالب موسعة|Lua}}
{{Lua{{\sandbox}}|nocat=true}}
{{تحديد}}
== تصانيف ==
=== تصنيف القالب ===
يُضيف هذا القالب الصفحات إلى [[:تصنيف:قوالب تستند على وحدات لوا]] إذا كانت الصفحة ضمن نطاق القوالب، ولم تكن في أي من الصفحات الفرعية /شرح أو /sandbox أو /sandbox2 أو /testcases. يمكنك تحديد تصنيف مختلف باستخدام وسيط {{وسيط قالب|category}}، مثل: {{وسيط قالب|category|قوالب لوا المبنية على النصوص}}.
بعض الوحدات لديها تصنيفات تلقائية مختلفة عن [[:تصنيف:قوالب تستند على وحدات لوا]]:
* [[وحدة:String]] لديها التصنيف التلقائي [[:تصنيف:قوالب تستند على وحدة String]].
* [[وحدة:Math]] لديها التصنيف التلقائي [[:تصنيف:Templates based on the Math Lua module]].
* [[وحدة:BaseConvert]] لديها التصنيف التلقائي [[:تصنيف:Templates based on the BaseConvert Lua module]].
* [[وحدة:Citation/CS1]] لديها التصنيف التلقائي [[:تصنيف:قوالب استشهاد تستند على وحدة لوا]].
=== تصنيف الخطأ ===
إذا لم تُحدَّد أي وحدات، تُضاف الصفحة المتضمنة إلى [[:Category:Lua templates with errors]].
=== إيقاف التصنيف ===
لمنع جميع التصنيفات، استخدم {{وسيط قالب|nocat|true}}. (بالإضافة إلى "true"، يمكن أيضًا استخدام القيم: "yes"، "y"، و"1").
== طالع أيضاً ==
* [[ويكيبيديا:لوا]]
* {{قا|تقييم وحدة}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- التصنيفات توضع هنا، وروابط اللغات تُضاف في ويكي بيانات. -->
}}</includeonly>
4oxgbzyz9fp9aksjvrryb5pnvqjymkn
قالب:لوا
10
63271
275506
2026-09-15T10:50:09Z
حبيشان
29714
استيراد من ar.wikipedia.org
275506
wikitext
text/x-wiki
#تحويل [[قالب:Lua]]
{{تحويلة قالب}}
e16c3q1nb6x9i0g7cwdbjo506eqhjx8