وحدة:Wikidata2: الفرق بين النسختين
[نسخة منشورة] | [نسخة منشورة] |
تم حذف المحتوى تمت إضافة المحتوى
Mr. Ibrahem (نقاش | مساهمات) طلا ملخص تعديل |
Mr. Ibrahem (نقاش | مساهمات) ط إضافة إمكانية تحديد عدد المراجع |
||
سطر 886:
function formatReferences( statement, options )
local ic
local s
local reference = {}
local numberofref = tonumber(options.numberofreferences) or 20
▲ if statement.references then
if statementreferences then
local cite = require('وحدة:Cite')
ic = 1
for i, ref in pairs(
if ref.snaks then
if numberofref >= ic then
if s and s ~= "" then
ic = ic + 1
table.insert(reference, s)▼
end
end
end
▲ table.insert(reference, s)
end
end
|