ماژول:صندخ/ادوات/شخص

ویکی‌پدیا، آزادِ دانشنومه، جه

-- Functions utilisées par les infobox personnes
local person = {}
local localdata = require 'ماژول:صندخ/دیتا'
local item = localdata.item
local wikidata = require 'Module:Wikidata/fr'

local generic = require 'ماژول:صندخ/ادوات'

local datemodule = require 'Module:Date'

local linguistic = require 'Module:Linguistique'


local function nbr_in_arabic(nb,sing,dbl,plur)
	if tonumber(nb) then
		if(tonumber(nb) == 0) then return 'نا '.. plur
		elseif(tonumber(nb) == 1) then return sing..' اتا'
		elseif(tonumber(nb) == 2) then return dbl
		elseif(tonumber(nb)>2 and tonumber(nb)<10)	then return nb..' '..plur
		else return nb..' '..sing
		end
	else
		return nb
	end

end

-- === تاریخچه

local unknowndatelabel = 'نا معلوم تاریخ'

local birthdate = localdata['تولد'] or
	localdata['تولد تاریخ'] or
	wikidata.formatAndCat{
		entity = item,
		property = 'P569',
		unknownlabel = unknowndatelabel,
		minprecision = 9,
		conjtype = 'or',
		sorttype = 'chronological'
	}

local dead = wikidata.getClaims{entity = item, property = 'P570'} --utilisé comme booléen qui dit si une personne est morte pour modifier certaines élément d'affichage
local deathdate = localdata['بمردن'] or localdata['بمردن تاریخ']
local wddeathdate = wikidata.formatAndCat{
	entity = item,
	property = 'P570',
	unknownlabel = unknowndatelabel,
	minprecision = 9,
	conjtype = 'or',
	sorttype = 'chronological',
}

local function dateandplace(thedate, theplace)
	if thedate and theplace and mw.ustring.find(thedate, 'نامعلوم') and mw.ustring.find(theplace, 'نامعلوم') then
		theplace = nil
		thedate =  mw.ustring.gsub(thedate, linguistic.ucfirst(unknowndatelabel), 'تاریخ و مکان نامعلوم')
	end
	return linguistic.conj({thedate, theplace}, 'new line')
end

--عکس
person.mainimage = generic.mainimage
-- نوم
function person.birthname(isSubTitle)
	local birthnamerow = { -- un peu particulier, donc à part
		wikidata  = function()
			local s = wikidata.formatAndCat{entity = item, property = 'P1559',showlang=true}
			if (not s) then
				return nil
			end
			-- regarde si le nom de la valeur ressemble au libellé (en tenant compte de la pollution des marqueures de langue
			local label = mw.ustring.lower(wikidata.getLabel(item) or '')
			local useless
			if mw.ustring.find(mw.ustring.lower(s), mw.ustring.lower(label), 0, true) then
				useless = true
			end
			if useless then
				return nil
			end
			return s
			end,
			metadata = {
				description = "فقط زمونی استفاده بونه که نوم فرق هکنه.",
				option = "", 
				type = "",
			}
	}
	if(isSubTitle) then
		birthnamerow.type = 'subtitle'
	else
		birthnamerow.type = 'row'
		birthnamerow.label = 'ماری زوون دله نوم'
		--plurallabel = 'Noms dans la langue maternelle',
		birthnamerow.value = 'ماری زوون دله نوم'

	end
	return birthnamerow
end
function person.othernames()
	return 
	{type = 'multi', rows = {
		{type = 'row', label = 'بزا نوم', 
			value = {'بزا نوم', 'birth name'},
			wikidata = {
				wikimod='Wikidata.Ca',
				formatting = 'table', rowformat='$0$R0$1', 
				property = 'P1477', 
				qualifier = 'P1721', 	rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "فقط زمونی استفاده بونه که نوم فرق هکنه.",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'رسمی نوم', 
			value = {'رسمی نوم','نام اصلی', 'official name'},
			wikidata = {
				wikimod='Wikidata.Ca',
				formatting = 'table', rowformat='$0$R0$1',
				property = 'P1448', 
				qualifier = 'P1721',  
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'لقب', 
			value = {'لقب', 'nickname'},
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P1449', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', 
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = " شخص لقب(ون).",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'مستعار نوم', 
			value = {'مستعار نوم','نام مستعار','اسم مستعار','pseudonym'}, 
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P742', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', 
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'محترمونه نوم', 
			value = {'درباری نوم','نام محترمانه','محترمونه اسم','محترمانه اسم', 'courtesy name'},
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P1782', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'بمرده‌په نوم', 
			value = {'بمردن په نوم','بمرده په نوم','بمردن‌په نوم' , 'posthumous name'},
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P1786', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', 
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'قَورِ نوم' ,
			value =  {'مزار نوم','قور نوم','قبر نوم' , 'temple name'},
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P1785', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', 
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'هنری نوم' ,
			value = {'هنری نوم' , 'art_name'}, 
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P1787', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', 
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'اختصاری نوم', 
			value = {'اختصاری نوم', 'short name'},
			wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P1813', 
				qualifier = 'P1721', formatting = 'table', rowformat='$0$R0$1', 
				rowsubformat1=' ($1)', 
				conjunction = '<br />'
				},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{type = 'row', label = 'دیگر اسمون', 
			value = {'نام دیگر', 'دیگر اسمون','other_name'},
			metadata = {
				description = "أسماء آخر مشهور بها غير تلك المذكورة في اسم واسم ولادة.",
				option = "", 
				type = "",
			}
		},
	}
 }
end

-- تولد و بمردن
function person.birth() -- تولد تاریخ اولین خط و ونه مکان دومین خط کفنه
	return {
		type = 'row',
		label = 'تولد',
		metadata = {
			description = "اگه {{تولد و عمر تاریخ}} شابلون جه کار بزنین بتتره.",
			option = "", 
			type = "",
		},
		value =
			function()
			local thedate = datemodule.dateInfobox{args = {[1] = 'naissance', [2] = birthdate or '', [3] = deathdate or wddeathdate or ''}}
			local theplace = localdata['تولد جا'] or localdata['محل تولد'] or
                 wikidata.formatAndCat({entity =item,
                        property= 'P19', 
                        rank = 'best',
                        labelformat = function(val) 
                        	return wikidata.formatStatements{entity = val, property = "P1448", atdate = wikidata.formatStatements{entity = item, property = 'P569', displayformat = 'raw'} or 'today', numval = 1, isinlang = 'mzn'} or wikidata.getLabel(val) end, 
                        conjtype= ' یا ',
                        unknownlabel = "ونه جا میِّن نی‌یه"
                  })
			return dateandplace(thedate, theplace)
			end
	}
end

function person.death() 

	return
	{type = 'multi', rows = {
		{ -- اختفاء
			type = 'row',
			label = 'گوم بیّن',
			value = {'گوم بین'},
			wikidata = {property = "P746"},
			metadata = {
				description = "تاريخ ومكان الاختفاء",
				option = "", 
				type = "",
			}
		},
		{ -- مرگ
			type = 'row',
			label = 'بمردن',
			value = {'محل مرگ', 'تاریخ مرگ', 'بمردن','بمردن_تاریخ','بمردن تاریخ','مرگ تاریخ','تاریخ درگذشت','تاریخ_درگذشت','مرگ','درگذشت'},
			wikidata = { wikimod='Wikidata.Ca', sep="\n", 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 = " اگه {{بمردن و عمر تاریخ}} شابلون ره کار بزنین بتتر هسته .",
				option = "", 
				type = "",
			}
		}
	}}
end

function person.mannerOfDeath()
	return 
	{type = 'multi', rows = {
		{
			type = 'row',
			label = 'بمردن وضعیت',
			value = {'بمردن وضع','manner of death'},
			wikidata = {property = 'P1196'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'بمردن دلیل',
			value = {'بمردن دلیل','cause of death'},
			wikidata = {property = 'P509'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row', 
			label = 'قاتل ', 
			value = {'قاتل','killer'},
			wikidata = {property = 'P157', conjunction='<br />'},
			metadata = {
				description = "قاتل نوم",
				option = "", 
				type = "",
			}
		},
	}}
end
function person.floruit()
	return {
		type = 'row',
		label = "دوره",
		value = {'سال‌های فعالیت', 'فعالیت دوره','دوره فعالیت',},
		wikidata = {
			wikimod='Wikidata.Ca', 
			property='P2031',qualifier='/P2032',qualifier2='P276',
			formatting='table', rowformat= '$2 شروع $0$1 جه' , 
			rowsubformat1= ' تا $1'
		},
		wikidata2 = { property='P1317' },
		metadata = {
			description = "نطاق سنوات العمل أو الأعمال الرئيسية التي يمارسها / مارسها أو أي أعمال ملحوظة أخرى (استخدم هذا الشكل 1950-2000 أو 1970-اسا).",
			option = "", 
			type = "",
		}
	}
end

function person.placeofburial()
	return
		{
			type = 'row', 
			label = 'مِزار', 
			value = {'مدفن', 'مزار','قور','قبر','آرامگاه'},
			wikidata = {
	            wikimod = "Wikidata.Ca",
	            property = "P119", listrank = "bestrank",
	            formatting = "table",
	            qualifier = "P965", qualifier2 = "P625",
	            rowformat = "$0$R0$1$2",
	            colformat1 = ", $1",
	            colformat2 = "<br /><small>[[file:GNOME Maps.svg|20x20px|link=]] {{Map draw| class = no-icon| type=maplink|$lat,$lon|zoom=6|text=نقشه سر}}</small>"
	        },
			metadata = {
				description = "من المفضل ذكر المدينة والمنطقة أو الولاية والدولة (يجب ذكر المعلومات حسب الوضع الحالي وليس وقت الدفن).",
				option = "", 
				type = "",
			}
		}
end

function person.nationality() 
	return {
		type = 'row',
		label = 'ملیت',
		plurallabel = 'ملیت(ون)',
		value = {'تابعیت','ملیت','nationality','nationalité'},
		wikidata = {wikimod ='Wikidata.Ca', property = 'P27',showDate = 'true', listrank="bestrank"},
		metadata = {
			description = "الجنسية / الجنسيات التي يحملها الشخص.",
			option = "", 
			type = "",
		}
	}

end
function person.nativelanguage()
	return
	{
		type = 'row', 
		label = '[[ماری زوون]]', 
		value = {'ماری زوون','زبان مادری','ماری_زوون','first language','langue maternelle'}, 
		wikidata = {property = 'P103'},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

-- Domiciles
function person.places()
	return 
	{type = 'multi', rows = {
		{
			wikimod = "Wikidata.Ca",
			type = 'row',
			label = 'اقامت',
			--plurallabel = 'اقامت',
			value = {'اقامت','جایی که دیه','residence','domicile'},
			wikidata = {
			   wikimod='Wikidata.Ca',
			   property = 'P263 OR P551', 
			   showDate = 'true', 
			   sorttype= 'chronological'},
			metadata = {
				description = "المكان الذي يقيم / أقام به الشخص، من المفضل ذكر المدينة والمنطقة أو الولاية والدولة والتاريخ.",
				option = "", 
				type = "",
			}
		},
	}}
end

-- حرفه ای زندگی
function person.education() 
	return {
		type = 'row',
		label = 'مدرسه',
		value = {'تحصیلات', 'ماری مدرسه','مدرسه','alma_mater','éducation', 'formation'},
		wikidata = {
				wikimod='Wikidata.Ca',
				property = 'P69', qualifier = 'P812 OR P512',
				sorttype= 'chronological', showDate = 'true',
				formatting='table', rowformat='* $0$R0 $1', 
				rowsubformat1='<small><br />$1</small>'
				},
		metadata = {
			description = "يذكر آخر مؤسسة تعليم عالي انتسب لها هذا الشخص.",
			option = "", 
			type = "",
		}
	}
end

function person.occupation()

	local speciallabels = {
		f = {
		['Q33999'] = '[[زن بازیگر]]',
		['Q10798782'] = '[[زن بازیگر]]',
		['Q10800557'] = '[[زن بازیگر]]',
		['Q2405480'] = '[[زن بازیگر]]',
		['Q2259451'] = '[[زن بازیگر]]',
		['Q948329'] = '[[زن بازیگر]]'
		},
		m = {
		['Q33999'] = '[[مرد بازیگر]]',
		['Q10798782'] = '[[مرد بازیگر]]',
		['Q10800557'] = '[[مرد بازیگر]]',
		['Q10798782'] = '[[مرد بازیگر]]',
		['Q2405480'] = '[[مرد بازیگر]]',
		['Q2259451'] = '[[مرد بازیگر]]',
		['Q948329'] = '[[مرد بازیگر]]'
		}
	}

	return {
		type = 'row', 
		label = 'حرفه',	plurallabel = 'حرفه',
		value = {'پیشه', 'حرفه', 'زمینه فعالیت', 'زمینه_فعالیت','occupation'},
		wikidata = {
			wikimod = 'Wikidata.Ca', conjunction='<br />',
			property = 'P106', -- OR P425
			showDate = 'true', sorttype= 'chronological', case='gender'
		},
		metadata = {
			description = " العمل أو الأعمال التي يمارسها / مارسها الشخص.",
			option = "", 
			type = "",
		}
	}
end

function person.employer()
	return {
		type = 'row',  
		label = 'کارفرما',
		value = {'کارفرما','employer'},
		wikidata = {
			wikimod = 'Wikidata.Ca', conjunction='<br />',
			property = 'P108', 
			showDate = 'true', sorttype= 'chronological'
		},
		metadata = {
			description = "الشركة / الشركات التي عمل بها كموظف.",
			option = "", 
			type = "",
		}
	}
end

function person.victories() 
	return {
		type = 'row', 
		label =  'پیروزی(ها)',
		value = {'پیروزی','victoire'}, 
		wikidata = {
			wikimod = 'Wikidata.Ca',
			property = 'P2522', 
			sorttype= 'chronological', showDate = 'true', 
			conjunction = '<br />'
		},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.officialposition() 
  return {type = 'table', title= 'مقوم', rows = {
		{
			type = 'row1col', 
			value = { 'مقوم','مناصب','منصب','عنوان'}, 
			wikidata = {
				wikimod = 'Wikidata.Ca',
				formatting="table",
				property="P39",
				case0="gender",
				colformat0="ucfirst",
				qualifier = "P580",
				rowsubformat1 = "$1&nbsp;– ",
				qualifier2= "P582",
				qualifier3= "P1365",
				rowsubformat3="<br />&rarr;&nbsp;$3",
				qualifier4= "P1366",
				rowsubformat4="– $4&nbsp;&larr;",
				qualifier5= "P1545",
				rowsubformat5="($5)",
				case5 = "ordinal",
				qualifier6= "P748 OR P1027",
				rowsubformat6 ='<br /><div style="float: right;font-size:smaller;">مقوم بیته توسط: $6</div>',
				qualifier7 ="P642 OR P108 OR P2389",
				qualifier8="P748",
				qualifier9="P158 OR P94 OR P642/P158 OR P642/P94 OR P39/P158 OR P39/P94",
				rowsubformat9="[[File:$9|25x30px|link=]]",
				qualifier10="P708",
				rowsubformat10='<br /><div style="float: right;font-size:smaller;">اسقف‌هنیش: $10</div> ',
				qualifier11="P5054",
				rowsubformat11='<br /><div style="float: right;font-size:smaller;">کابینه: $11</div>',
				qualifier12="P1534",
				rowsubformat12='&nbsp;<span style="font-size:85%;">($12)</span>',
				qualifier13="P2868",
				rowsubformat13='دوره: $13<br /> ',
				qualifier14="P2937",
				rowsubformat14='<br /><div style="float: right;font-size:smaller;">پارلمونی دوره: $14</div>',
				rowformat='<div style="display: table;width:100%;text-align:center;background-color:#F0F0F0;">$9 $0 $7 $5</div><div style="text-align:center;">$13 $1 $2$12 $3 $4 $14 $11 $10 $6</div>',
				tablesort=1,
				sorting=-1
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

function person.nobilitytitle() 
	return {
		type = 'row', 
		label = 'تشریفاتی لقب', 
		value = {'تشریفاتی لقب','nobility_title'}, 
		wikidata = {
			wikimod = 'Wikidata.Ca',
			property = 'P97', 
			sorttype= 'chronological', showDate = 'true', 
			conjunction = '<br />'
		},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.honorifictitle() 
	return {type = 'multi', rows = {
		{
			type = 'row', 
			label = 'اشرافی لقب', 
			value = {'اشرافی لقب','honorific_title'}, 
			wikidata = {
				wikimod = 'Wikidata.Ca',
				property = 'P511', 
				sorttype= 'chronological', showDate = 'true', 
				conjunction = '<br />'
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}

end

function person.grave()
	return {
		type = 'images',
		imageparameters =  {'قَور','grave','tombe'},
		defaultimages = nil,
		defaultupright = 1,
		uprightparameter = 'upright grave',
		captionparameter = 'قَورِ جیرنویس',
		defaultcaption = 'قور عکس',
		wikidata = { property = 'P1442',},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end
person.tombe = person.grave

function person.plaque()
	return {
		type = 'images',
		imageparameters =  {'plaque','پلاک'},
		defaultimages = nil,
		defaultupright = 1,
		uprightparameter = 'upright plaque',
		captionparameter = 'پلاک جیرنویس',
		defaultcaption = 'پلاک بنویشت',
		property = 'P1801',
		numval = 1,
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.monogram()
	return {
		type = 'images',
		imageparameters =  {'مونوگرام','monogram'},
		defaultimages = nil,
		defaultsize = 	'100px',
		captionparameter = 'مونوگرام جیرنویس',
		defaultcaption = 'مونوگرام',
		property = 'P1543',
		numval = 1,
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.politicalparty()
	return {
		type = 'row', 
		value = {'حزب','سیاسی حزب','حزبون','حزب سیاسی','party','parti politique'},
		label = 'سیاسی حزب',
		plurallabel = 'سیاسی حزب',
		wikidata = { 
			wikimod = 'Wikidata.Ca', property = 'P102', sorttype= 'chronological', 
			showDate = 'true', conjunction = '<br />'
		},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.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 
function person.influencedby()
	return {
		type = 'row',
		label =  'تحت تأثیر',
		value = {'تأثیرپذیرفته', 'تحت تأثیر','influences','تأثیر بئیت','influenced_by'},
		wikidata = {property = 'P737'},
		metadata = {
			description = "الأشخاص أو المجموعات أو الأفكار التي تأثر بها الشخص، الأمثلة الواضحة والملحوظة فقط (تجنب التخمين).",
			option = "", 
			type = "",
		}
    }
end

function person.influenced()
	return {
		type = 'row',
		label = 'تأثیرگذار', 
		value = {'تأثیرات', 'تأثير','influenced','تأثیرگذار','a influencé', 'influence de'},
		metadata = {
			description = "الأشخاص أو المجموعات أو الأفكار التي أثر بها الشخص، الأمثلة الواضحة والملحوظة فقط (تجنب التخمين).",
			option = "", 
			type = "",
		}
}
end

-- الانتماءات
function person.movement()
	return
	{
		type = 'row',
		label = 'رِمبِش',
		value = {'حرکت','جنبش','رمبش','جمبش','movement'},
		wikidata = {wikimod='Wikidata.Ca', property = 'P135', sorttype= 'chronological', showDate = 'true'},
		metadata = {
			description = "الحركات التي انتسب إليها.",
			option = "", 
			type = "",
		}
	}
end

-- الديانة
function person.religion()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = 'دین',
			plurallabel = 'ادیان',
			value = {'مذهب','ادیان','دین','religion'},
			wikidata = {wikimod = 'Wikidata.Ca',
				property = 'P140', sorttype= 'chronological', showDate = 'true', 
				formatting='table', rowformat='$0$R0', blacklist0 = 'Q7066'},
			metadata = {
				description = "الديانة التي يعتنقها، يستخدم فقط عند الاستشهاد بمصادر موثوقة.",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'غسل تعمید تاریخ',
			value = 'غسل تعمید تاریخ',
			property = 'P1636',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'خورد پی‌یر',
			plurallabel = 'خورد پی‌یر',
			value = 'خورد پی‌یر',
			property = 'P1290',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'دینی نوم',
			plurallabel = 'دینی اسامی', 
			value = 'دینی نوم',
			property = 'P1635',},
		{
			type = 'row',
			label = 'دینی سیستم', 
			plurallabel = 'دینی سیستم', 
			value = 'دینی سیستم',
			property = 'P611',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'مقدس',
			plurallabel = 'مقدسات',
			value = 'مقدس',
			property = 'P1598',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'وه ره پرستنه',
			value = {'وه ره پرستنه','worshipped by'},
			wikidata = {
				property = 'P1049',
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'تقدیس رتبه',
			value = {'تقدیس رتبه','sainthood status'},
			wikidata = {
				property = 'P411',
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

-- نظامی تاریخچه
function person.military()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = 'نظامی چلّه',
			plurallabel = 'نظامی چله',
			value = {'نظامی چله','military branch'},
			wikidata = {wikimod='Wikidata.Ca', property = 'P241', showDate = 'true', sorttype= 'chronological'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'نظامی رتبه',
			plurallabel = 'نظامی رتبه',
			value = {'نظامی رتبه','military_rank'},
			wikidata = {wikimod='Wikidata.Ca', property = 'P410', showDate = 'true', sorttype= 'chronological', conjunction ='<br />'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'جنگ که دیّه',
			value = {'جنگون','درگیری‌ها','نبردها','conflict'},
			wikidata = {wikimod='Wikidata.Ca', property = 'P607', conjtype = 'new line', showDate = 'true', sorttype= 'chronological'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

-- ورزشی
function person.sport()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = 'ورزشی رشته',
			plurallabel = 'رشته‌ئون',
			value = {'ورزشی رشته','رشته ورزشی','ورزش','country_sport'},
			wikidata = {wikimod = 'Wikidata.Ca', property = 'P1532', showDate='true'},
			metadata = {
				description = "جنسية البلد الذي يمثله رياضيا.",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'کاکرِ موقعیت',
			value = {'کاکر موقعیت','player position'},
			wikidata = {property = 'P413'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'تخصصی وزرش',
			value = {'تخصصی ورزش','sports discipline'},
			wikidata = {property = 'P2416'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'شخصی رکورد',
			value = {'شخصی رکورد','personal record'},
			wikidata = {wikimod = 'Wikidata.Ca', 
				listrank  = 'bestrank',
				formatting = 'table',
				tablesort = 1,
				sorting = -1,
				property = 'P2415',
				colformat0 = 'unitcode',
				qualifier = 'P585',
				rowsubformat1 = '($1)',
				colformat1 = 'Y',
				qualifier2 = 'P276',
				rowsubformat2 = '&nbsp;← $2',
				qualifier3  = 'P2416 OR P641 OR /P2416 OR /P641',
				qualifier4  = 'P1013/P2910',
				rowsubformat4  = '$4',
				colformat4 = '[[File:$1|18px]]',
				rowformat = '<div style="background: #eeeeee;"><small>$3</small></div><div>$0 $4$2 $1</div>',
				separator = '<hr>',
				conjunction = '<hr>'
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'دست',
			value = 'دست',
			wikidata = {property = 'P741'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'کپّل',
			value = 'کپل',
			wikidata = {property = 'P423'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'اولین تیم',
			value = 'اولین تیم',
			wikidata = {
				wikimod = 'Wikidata.Ca',
				property = 'P647',
				qualifier='P585', qualifier2='P1836', 
				formatting = 'table', rowformat = '$0$R0<small>$2 $1</small>',
				rowsubformat1='($1)', rowsubformat2=', $2' ,
				case2='ordinal' , tablesort=1 
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'تیم',
			plurallabel = 'تیم',
			value = {'باشگاه‌ها','تیم','باشگاه','teams'},
			wikidata = {
				property = 'P54',
				sorttype= 'chronological',
				conjtype = '*',
				statementformat = function(statement)
					local str = wikidata.formatStatement(statement, {showDate = true})
					local compets = wikidata.getFormattedQualifiers(statement, {'P1350'})
					compets = nbr_in_arabic(compte,'مسابقه','مسابقات','مسابقات')

					local points = wikidata.getFormattedQualifiers(statement, {'P1351'})
					points =nbr_in_arabic(points,'امتیازی که بیته','امتیازهایی که بیته',"امتیازهایی که بیته")
					local qualifiers = linguistic.conj{compets, points}
					if qualifiers then
						str= str .. ' <small> – ' .. qualifiers .. ' </small>'
					end
					return str
				end
			},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'ملّی بازی',
			value = 'ملی بازی',
			wikidata = {property = 'P1129', numval = 1},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'شطرنجِ مقوم',
			--plurallabel = 'Titres aux échecs',
			value =  'شطرنج مقوم',
			wikidata = {wikimod='Wikidata.Ca', property = 'P2962', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'رتبه ELO',
			value = 'رتبه ELO',
			wikidata = {wikimod='Wikidata.Ca', property = 'P1087', numval = '3', sorttype = 'inverted', conjtype = 'new line', showDate = 'true', precision = 'month', removedupes = true},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'بشکست رکورد',
			--plurallabel = 'Records détenus',
			value = 'بشکست رکورد',
			wikidata = {wikimod='Wikidata.Ca', property = 'P1000', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'مربی',
			plurallabel = 'مربی‌ئون',
			value = 'مربی',
			wikidata = {wikimod='Wikidata.Ca', property = 'P286', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'کمک راننده',
			--plurallabel = 'Copilotes',
			value = 'کمک راننده',
			wikidata = {wikimod='Wikidata.Ca', property = 'P2095', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'اسپانسر',
			--plurallabel = 'Sponsors',
			value = 'اسپانسر',
			wikidata = {wikimod='Wikidata.Ca', property = 'P859', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end
-- فضا دله دیّن
function person.space()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = 'سفرهای فضایی',
			value = {'سفرهای فضایی','space_mission'},
			wikidata = {wikimod = 'Wikidata.Ca', 
				property='P450',
				qualifier='P450/P154 or P450/P94',
				qualifier2='P450',
				formatting='table',
				separator=',&nbsp;',
				rowformat ='$1$0$R0',
				rowsubformat1 ='[[File:$1|18px|link=$2]]'
             },
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'زمونی که فضا دیّه',
			value = {'زمونی که فضا دیه','time_in_space'},
			wikidata = {wikimod='Wikidata.Ca', property = 'P2873', formatting='durationh:m:s'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
        {
			type = 'row',
			label = 'فضایی پیاده‌روی',
			value = {'فضایی پیاده‌روی','spacewalk'},
			wikidata = {wikimod='Wikidata.Ca', 
				formatting='table',
				tablesort='1/2',
				sorting='-1',
				property='P793',
				whitelist0='Q182020', -- extravehicular activity
				qualifier='P585', --  date
				qualifier2='P580', -- start date
				qualifier3='P582', -- end date
				qualifier4='P518', -- apply to
				qualifier5='P1114', -- quantity
				qualifier6='P2047', -- durada
				rowsubformat1='$1&nbsp;',
				rowsubformat2='$2-$3&nbsp;',
				rowsubformat4='$4:',
				rowsubformat6='&nbsp;($6)',
				colformat6='duration',
				rowformat='$1$2$4$5$6',
            },
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},

	}}
end

-- اشخاص در رابطه
function person.contacts()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = localdata['استاد'] or 'استاد',
			--plurallabel = 'Maîtres',
			value = {'مدرس', 'مدرسون'},
			wikidata = {wikimod='Wikidata.Ca', property = 'P1066', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'شاگرد',
			plurallabel = 'شاگردون',
			value = {'شاگردون', 'شاگرد'},
			wikidata = {wikimod='Wikidata.Ca',property = 'P802', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'رساله‌یِ ناظر',
			--plurallabel = 'Directeurs de thèse',
			value = 'رساله ناظر',
			wikidata = {wikimod='Wikidata.Ca',property = 'P184', sorttype= 'chronological', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label ="موكل",
			value = 'موكل',
			wikidata = {property = 'P1875'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'هم‌باز',
			plurallabel = 'هم‌بازون',
			value = 'هم‌باز',
			wikidata = {property = 'P1327'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'مهم شخص',
			--plurallabel = 'Personnes liées',
			value = 'مهم شخص',
			wikidata = {property = 'P3342', qualifier1 = 'P794'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

-- Mécénat
function person.patron()
	return {
		type = 'row', 
		label = 'حامی',
		--singularlabel = '[[Mécénat|Mécène]]',
		--plurallabel = '[[Mécénat|Mécènes]]', 
		value = 'حامی', 
		wikidata = {wikimod='Wikidata.Ca',property = 'P859', showDate = 'true', sorttype = 'chronological', conjtype = 'comma'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		}
end

-- موسيقى
function person.music()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = 'صدایِ رج',
			value = 'صدای رج',
			property = 'P412',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'صدایِ تخصص',
			value = 'صدای تخصص',
			property = 'P1731',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'ساز',
			plurallabel = 'سازها',
			value = {'سازها', 'ساز','آلات موسیقی','آلت موسیقی','آلات'},
			wikidata = {property = 'P1303'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'ضبط کمپانی',
			value = 'ضبط شرکت',
			wikidata = {wikimod='Wikidata.Ca',property = 'P264', showDate = 'true'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

-- قربانیان
function person.victims()
	return {type = 'multi', rows = {
		{ 
			type = 'row', 
			label = 'قربونی‌ها',
			value = {'قربونی','victims'}, 
			wikidata = {property = 'P1345'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

-- قضایی حکم
function person.penalties()
	return {type = 'multi', rows = {
	{
		type = 'row',
		label = 'اتهاماتی که محکوم بیه',
		value = {'اتهامات','convicted_of'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P1399', showDate = 'true'},
		metadata = {
			description = "يستخدم فقط للمجرمين المدانين، التهم المنسوبة له، يستخدم فقط عند الاستشهاد بمصادر موثوقة.",
			option = "", 
			type = "",
		}
	},
	{
		type = 'row', 
		label = 'مجازات', 
		value = {'مجازات','sentence'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P1596', showDate = 'true'},
		metadata = {
			description = "العقوبة التي يتلقاها / تلقاها، يستخدم فقط عند الاستشهاد بمصادر موثوقة.",
			option = "", 
			type = "",
		}
	},
	{
		type = 'row', 
		label = 'زندون',
		plurallabel = 'زندون‌ها', 
		value = {'زندون','prison'}, 
		wikidata = {wikimod='Wikidata.Ca',property = 'P2632', showDate = 'true'},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	},
	}}
end

-- مشخصات ظاهری
function person.appearance()
	return {type = 'multi', rows = {
	{
		type = 'row',
		label = 'قد',
		value = {'قد','طول','height'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P2048', formatting='unitcode'},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	},
	{
		type = 'row',
		label = 'وزن',
		value = {'وزن','weight'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P2067', formatting='unitcode'},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	},
	{
		type = 'row',
		label = 'دست',
		value = {'دست','hand'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P552'},
		metadata = {
			description = "چپ دست یا راست دست",
			option = "", 
			type = "",
		}
	},
	{
		type = 'row',
		label = 'می رنگ',
		value = {'می','hair'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P1884'},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	},
	{
		type = 'row',
		label = 'چش رنگ',
		value = {'چش','eyecolor'},
		wikidata = {wikimod='Wikidata.Ca',property = 'P1340'},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	},
	}}
end

-- خانواده
function person.family()
	return 
	{type = 'multi', rows = {
		{ type = 'row',
			label = 'خانواده',
			value = {'خانواده','family'}, 
			wikidata= { property = 'P53'},
			metadata = {
				description = "اسم العائلة المشهورة التي ينتمي إليها.",
				option = "", 
				type = "",
		}},
		{ type = 'row',
			label = 'پی‌یر',
			value = {'پی‌یر','پییر','father'},
			wikidata = {property = 'P22', conjtype = ' یا '},
			metadata = {
				description = "پی‌یر نوم",
				option = "", 
				type = "",
			}
		},
		{ type = 'row',
			label = 'مار',
			value = {'مار','mother'},
			wikidata = {property = 'P25', conjtype = ' یا '},
			metadata = {
				description = "مار نوم",
				option = "", 
				type = "",
			}
		},
		{ type = 'row',
			label = 'خورد پی‌یر-مار',
			plurallabel = 'خورد پی‌یر-مارون',
			value = {'خورد پییر','خورد مار','خورد پی‌یر','خورد پی‌یر-مار','خورد پییر مار','stepparent'},
			property = 'P3448',
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{ type = 'row',
			label = 'برار-خاخِر',
			value = {'برار','برارون','خاخر','خاخرون','برار-خاخرون','برار-خاخر','sibling'},
			wikidata = {property = 'P3373'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'همسر', 
			plurallabel = 'همسرون',

			value = {'همسر','زنا','شی','همسرون','زنان','spouse','husband', 'wife'},
			wikidata = {
				wikimod='Wikidata.Ca',
				formatting = 'table' , 
				property='P26', qualifier='P1534', 
				showDate='true', 
				rowformat = '$0 <small>$1</small>',rowsubformat1=', $1'
			},
			metadata = {
				description = ' اسم الزوج / الزوجة، يذكر بالشكل التالي "الاسم (1950-الآن)" أو "الاسم (1970-1999)".',
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label =   'وچون',
			wikidata = {
				wikimod='Wikidata.Ca',
				property='P40', formatting='table',
				qualifier='P1545',
				qualifier2='P1039' ,
				rowformat='$0$R0$2',
				rowsubformat2=' ($2)',
				colformat2='lcfirst',
				tablesort=1 ,
				conjunction ='<br />'
			},
			metadata = {
				description = "عدد الأولاد أو لائحة بأسمائهم (تجنب ذكر أسماء أولاد الشخص إذا كان حيا احتراما للخصوصية إلا إذا كان الولد ملحوظا يشكل مستقل).",
				option = "", 
				type = "",
			}
		},
	{
		type = 'row',
		label = 'فامیل',
		value = 'فامیلون',
		wikidata = {
			wikimod='Wikidata.Ca',
			property = 'P1038',
			qualifier='P1039',
			formatting = 'table',
			rowformat='$0 $1',
			rowsubformat1='<small>$1</small>'  
		},
		metadata = {
			description = "أسماء الأقارب. وتوضع العلاقة بين قوسين بعد الاسم ( عم، الخ).",
			option = "", 
			type = "",
		}
	}
}}
end

-- مالکیت
function person.slavery()
	return {type = 'multi', rows = {
		{
			type = 'row',
			label = 'برده/آزاد',
			value = 'برده آزاد',
			wikidata = {wikimod='Wikidata.Ca',property = 'P3716', showDate = 'true', defaultlinkquery = 'P425'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row',
			label = 'صاحاب',
			plurallabels = 'صاحابون',
			value = {'صاحب', 'مالک'},
			wikidata = {property = 'P127'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
	}}
end

-- مهمترین کار
function person.works(params)
	return 
	{type = 'table', title = 'مهمترین کارون', rows ={
		{
			type = 'row', 
			value = {'مهمترین کارون', 'مهمترین فعالیت','مهمترین فعالیت‌ها'},
			wikidata = {
				wikimod = "Wikidata.Ca",  
				property='P800',
                qualifier= 'P571 OR P577 OR P585 OR P800/P571 OR P800/P577 OR P800/P1191 OR P800/P580',
                qualifier2= 'P800/P582',
                formatting = 'table'  , 
                rowformat = '*$1 $0',
                rowsubformat1='<small>($1$2)</small>', 
                rowsubformat2='-$2', tablesort=1 , 
                colformat1='Y' ,colformat2='Y' ,conjunction='</br>' 
			},
			metadata = {
				description = "عناوين الأعمال البارزة التي قام بها (منشورات، مؤلفات، تماثيل، .إلخ).",
				option = "", 
				type = "",
			}
		}}
	}
end

function person.filmography()
	return
	{
        type = 'row', 
        label = 'معروفترین فیلم', 
        value = {'فیلم‌ها', 'معروفترین فیلم','filmography'}, 
        wikidata = {property = 'P1283'} ,
		metadata = {
			description = "عناوين الأفلام البارزة التي قام بها",
			option = "", 
			type = "",
		}
	}
	end

function person.discography()
	return
	{
		type = 'row', 
		label = 'معروفترین آهنگ', 
		value = {'معروفترین آهنگ','discography'},
		wikidata = {property = 'P358'},
		metadata = {
			description = "عناوين الأغاني المشهورة التي أداها",
			option = "", 
			type = "",
		}
    }
end

-- امضا
function person.signature(default)
	local name = localdata.name or mw.title.getCurrentTitle().text
	local alt = name .. 'امضا '

	return {
		type = 'images',
		imageparameters =  {'امضا','signature'},
		defaultimage = default,
		captionparameter = 'امضا جیرنویس',
		defaultcaption = 'امضا',
		uprightparameter = 'upright signature',
		defaultupright = 0.5,
		defaultalt = alt,
		property = 'P109',
		numval = 1,
		metadata = {
			description = "صورة التوقيع (ضع اسم الملف فقط دون السابقة «ملف:» أو «File:»)",
			example = "abc_signature.jpg",
			option = "", 
			type = "wiki-file-name",
		}
	}
end

-- صوت
function person.voice()
	return generic.selectSound({
		defaultcaption   = 'ضبط هکرد صدا',
		captionparameter = 'صدای جیرنویس',
		value		     = {'صوت','voice'},
		defaultsize      = '280',
		property         = 'P990',
		metadata = {
			description = "ملف تسجيل صوتي (ضع اسم الملف فقط دون السابقة «ملف:» أو «File:»)",
			example = "abc_voice.ogg",
			option = "", 
			type = "wiki-file-name",
		}
	})
end

function person.languages()
	return {type = 'multi', rows = {
		{
			type = 'row', 
			label = "زوونی که گپ زوئه", 
			value = {'زوون','زبان','زبون','language'},  
			wikidata = {property = 'P1412'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		},
		{
			type = 'row', 
			label = "زوونی که نوشته", 
			value = {'بنویشتن زوون','writing language'},  
			wikidata = {property = 'P6886'},
			metadata = {
				description = "",
				option = "", 
				type = "",
			}
		}
	}}
end

function person.haswrittenfor()
	return	{
		type = 'row', 
		label ='دچی‌کَر', 
		value = 'دچی‌کر', 
		wikidata = {
			wikimod='Wikidata.Ca',property = "P6872", 
			showdate = true
			},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.worth()
	return	{
		type = 'row', 
		label ='ثروت', 
		value = {'ثروت', 'worth'},
		wikidata = {wikimod = 'Wikidata.Ca', 
			formatting='table', list='firstrank',
			property= 'P2218 or P2121', qualifier= 'P585',
			rowformat='$0 $1', rowsubformat1='<small>($1)</small>',
			colformat0='unitcode', convert0='M'
		},
		metadata = {
			description = "تقدير للثروة مع ذكر سنة التقدير",
			option = "", 
			type = "",
		}
	}
end

function person.archivesat()
	return	{
		type = 'row', 
		label ='تلمبار جا', 
		value = {'تلمبار جا', 'archive location'},
		wikidata = {
			wikimod='Wikidata.Ca',
			property='P485', formatting='table',
			qualifier='P217',
			qualifier2='P6224',
			qualifier3='P973',
			qualifier4='P518',
			rowformat ='* $0$2 $4 $1 $3',
			conjunction='</br>',
			rowsubformat1=' $1',
			rowsubformat2=', $2',
			rowsubformat3='[$3]',
			rowsubformat4='&larr; $4'
		},
		metadata = {
			description = "",
			option = "", 
			type = "",
		}
	}
end

function person.significant_events()
	return	{
		type = 'row', 
		label ='مهم اتفاقون', 
		value = {'مهم اتفاقون', 'significant_events'},
		wikidata = { wikimod='Wikidata.Ca',
			formatting = 'table',
			tablesort = '1/2',
			sorting = '-1',
			property = 'P793',
			blacklist0 = 'Q182020',	 -- extravehicular activity in astronaut block 
			qualifier  = 'P580 or P793/P580 or P585 or P793/P585',	 -- start date or date       
			qualifier2 = 'P582 or P793/P582',	 -- end date   
			qualifier3 = 'P710 or P1346 or P3279 or P748 or P1598',	 -- participant, appointed by/ consecrator 
			qualifier4 = 'P276',	 -- location  
			qualifier5 = 'P518',	 -- apply to
			qualifier6 = 'P770',	 -- cause destruct.
			qualifier7 = 'P828',	 -- has caused 
			rowsubformat1 = '$1$2',
			rowsubformat2 = '-$2',
			rowsubformat3 = ', per $3',
			rowsubformat4 = '&nbsp;($4)',
			rowsubformat5 = ':&nbsp;$5',
			rowsubformat6 = '<br/>خرابی باعث: $6',
			rowsubformat7 = '<br/>باعث: $7',
			rowformat = '* <small>$1</small> : $0$5$4$3$6$7',
		},
		metadata = {
			description = "أهم الأحداث التي شهدها",
			option = "", 
			type = "",
		}
	}
end

-- وب سایت
person.website = generic.website
person.title= generic.title
-- تلفظ
person.prononciation = generic.pronunciation
person.awards = generic.awards

-- عکسون
person.mainimage = generic.mainimage
person.blason = generic.coat_of_arms
person.sceau = generic.seal

return person