ماژول:صندخ/ادوات/شخص: نسخه‌ئون ِفرق

محتوای حذف‌شده محتوای افزوده‌شده
بدون خلاصۀ ویرایش
عینی عربی
برچسب: برگردانده‌شده
۵۳ بند:
 
local function dateandplace(thedate, theplace)
 
if thedate and theplace and mw.ustring.find(thedate, 'نامعلوم') and mw.ustring.find(theplace, 'نامعلوم') then
if thedate and theplace
if thedate and theplace and mw.ustring.find(thedate, 'نامعلومنا معلوم تاریخ') and mw.ustring.find(theplace, 'نامعلومنا معلوم تاریخ') then
then
theplace = nil
thedate = mw.ustring.gsub(thedate, linguistic.ucfirst(unknowndatelabel), 'تاریخ و مکان نامعلوم')
mw.language.getContentLanguage():ucfirst(unknowndatelabel),
'نا معلوم تاریخ')
end
 
return linguistic.conj({thedate, theplace}, 'new line')
if(#{thedate,theplace} == 0) then return nil end
if(type(thedate) == 'string' and type(theplace) == 'string')
then return thedate .. '<br />' .. theplace end
if(type(theplace) == 'string') then return theplace end
return thedate
end
 
 
--عکس
سطر ۲۹۴ ⟵ ۳۰۵:
label = 'بمردن',
value = {'محل مرگ', 'تاریخ مرگ', 'بمردن','بمردن_تاریخ','بمردن تاریخ','مرگ تاریخ','تاریخ درگذشت','تاریخ_درگذشت','مرگ','سالمرگ','بمردن روز','بمردنی‌روز','درگذشت'},
wikidata = { wikimod='Wikidata.Ca', sep="\n",
wikidata = {property= 'P570', listrank = 'bestrank', conjunction=' یا '},
wikidata2 = {
func='yearsOld',
formatting='unit' ,
before='<span style="white-space:nowrap;">(',
after=')</span>'},
},
wikidata3 = {property= 'P20', listrank = 'bestrank', conjunction=' یاأو ', formatting='table', qualifier1='P131 OR P17', rowformat="$0$R0$1", rowsubformat1="<small><br />($2 $3)</small>", qualifier2="P17", qualifier3="P131"}},
},
metadata = {
description = " اگه {{بمردن و عمر تاریخ}} شابلون ره کار بزنین بتتر هسته .",
سطر ۷۰۴ ⟵ ۷۲۰:
end
 
function person.memberof() = generic.memberof
return {type = 'multi', rows = {
{
type = 'row',
label = 'عضو',
value = {'عضو','عضویت','اعضای','member of','membre de'},
wikidata = {
wikimod = 'Wikidata.Ca', formatting='table',
property = 'P463', qualifier1='P2868' ,rowsubformat1=', $1',
rowformat = '$0$R0$1',
sorttype= 'chronological', showDate = 'true',
conjunction = '<br />'},
},
metadata = {
description = "المنظمات والهيئات التي انتسب إليها.",
option = "",
type = "",
}
}}
end
 
-- Influences
سطر ۱٬۰۳۱ ⟵ ۱٬۰۲۸:
 
local points = wikidata.getFormattedQualifiers(statement, {'P1351'})
if points =nbr_in_arabicand tonumber(points,'گل','گل',"گل")> 0 then
points =nbr_in_arabic(points,'گل','گل',"گل")
local qualifiers = linguistic.conj{compets, points}
else points = nil
end
local qualifiers = linguistictable.conjconcat({compets, points},'<br />')
if qualifiers then
str= str .. ' <small><br />' .. qualifiers .. ' </small>'
end
return str
۱٬۵۷۹ بند:
label = 'برده/آزاد',
value = 'برده آزاد',
wikidata = {
wikimod='Wikidata.Ca',
property = 'P3716',
showDate = 'true', defaultlinkquery = 'P425'},
formatting='table' , rowformat='$0', whitelist0='Q12773225/Q841571'
},
metadata = {
description = "",
سطر ۱٬۷۶۳ ⟵ ۱٬۷۶۸:
end
 
 
function person.works_in_collection()
return {
type = 'row',
label ='مجموعه درون',
value = {'مجموعه درون', 'works in collection'},
wikidata = {
wikimod='Wikidata.Ca',
wikimod property= 'Wikidata.CaP6379', formatting='table',
qualifier1='P6241 OR P1436',
qualifier2='P6241',
qualifier3='P1436',
rowformat = '* $0$R0 $1',
conjunction = '<br />'},
rowsubformat1='<small>$2$3</small>',
rowsubformat2='<br />:: منشی : $2',
rowsubformat3='<br />:: حجم : $3',
},
metadata = {
description = "",
option = "",
type = "",
{}
}}
end
function person.archivesat()
return {
سطر ۱٬۷۷۵ ⟵ ۱٬۸۰۵:
qualifier3='P973',
qualifier4='P518',
rowformat ='* $0$R0$2 $4 $1 $3',
conjunction='</br>',
rowsubformat1=' $1',
rowsubformat2=', $2',