وحدة:Wikidata2: الفرق بين النسختين

[نسخة منشورة][نسخة منشورة]
تم حذف المحتوى تمت إضافة المحتوى
طلا ملخص تعديل
طلا ملخص تعديل
سطر 131:
function get_entityId(options)
local id = options.entityId or options["entityId"]
id = id or options.id or options["id"]
if not id or id == "" then
if options.page and options.page ~= "" then
السطر 798 ⟵ 799:
end
end
local priff = ""
local Separator = options.separator-- or ""
local Conjunction = options.conjunction-- or ""
if Conjunction and Conjunction == "br" then Conjunction = "\n" end
if Separator and Separator == "br" then
then
Separator = "\n"
Conjunction = "\n"
end
if Separator and Separator == "*" then
priff = "*"
Separator = "\n*"
Conjunction = "\n*"
end
if Separator and Separator == "#" then
priff = "#"
Separator = "\n#"
Conjunction = "\n#"
end
local tot = mw.text.listToText( valuetable, Separator, Conjunction )
tot = priff .. tot
if tot == '' then tot = nil end
السطر 816 ⟵ 828:
return statementsraw
end
if options.returnnumberofvalues and options.returnnumberofvalues ~= "" then
return tot, #valuetable
end
السطر 1٬624 ⟵ 1٬636:
return args.value
end
local propvaluesnumb = formatStatements( frame.args, key )0
local prop = formatStatements( args, key )
if args.returnnumberofvalues then
s , valuesnumb = formatStatements( frame.args, key )
end
if prop and prop ~= '' then
if args.mainprefix and args.mainprefix ~= '' then -- mainprefix
السطر 1٬643 ⟵ 1٬659:
end
end
if args.returnnumberofvalues and args.returnnumberofvalues ~= "" then
mw.log( "valuesnumb: " .. valuesnumb )
return s , valuesnumb
end
return prop
end
السطر 1٬676 ⟵ 1٬696:
end
end
if options.returnnumberofvalues and options.returnnumberofvalues ~= "" then
mw.log( "valuesnumb: " .. valuesnumb )
return s , valuesnumb
end