<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ar">
	<id>https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3AWikidata2%2FP1082</id>
	<title>وحدة:Wikidata2/P1082 - تاريخ المراجعة</title>
	<link rel="self" type="application/atom+xml" href="https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3AWikidata2%2FP1082"/>
	<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Wikidata2/P1082&amp;action=history"/>
	<updated>2026-06-05T16:19:50Z</updated>
	<subtitle>تاريخ التعديل لهذه الصفحة في الويكي</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Wikidata2/P1082&amp;diff=1405&amp;oldid=prev</id>
		<title>عبد العزيز: تحديث</title>
		<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Wikidata2/P1082&amp;diff=1405&amp;oldid=prev"/>
		<updated>2023-08-28T01:26:51Z</updated>

		<summary type="html">&lt;p&gt;تحديث&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحة جديدة&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local track = require(&amp;quot;وحدة:Wikidata/تتبع&amp;quot;).makecategory1&lt;br /&gt;
&lt;br /&gt;
function comparedates2(a, b) -- returns true if a is earlier than B or if a has a date but not b&lt;br /&gt;
	if a.year and b.year then&lt;br /&gt;
		return a.year &amp;gt; b.year&lt;br /&gt;
	elseif a.year then&lt;br /&gt;
		return true&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
local function normalizeDate(date)&lt;br /&gt;
	date = mw.text.trim(date, &amp;quot;+&amp;quot;)&lt;br /&gt;
	-- extract year&lt;br /&gt;
	local yearstr = mw.ustring.match(date, &amp;quot;^-?%d+&amp;quot;)&lt;br /&gt;
	local year = yearstr&lt;br /&gt;
	--year = tonumber(yearstr)&lt;br /&gt;
	-- remove leading zeros of year&lt;br /&gt;
	--return year .. mw.ustring.sub(date, #yearstr + 1), year&lt;br /&gt;
	return year&lt;br /&gt;
end&lt;br /&gt;
function p.P1082(claims, options)&lt;br /&gt;
	local icon = track({property = &amp;quot;P1082&amp;quot;, id = options.entityId or &amp;quot;&amp;quot;})&lt;br /&gt;
	local Teams = {}&lt;br /&gt;
	options.reff = &amp;quot;&amp;quot;&lt;br /&gt;
	options.noref = &amp;quot;r&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	if options.pup and options.pup ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		table.insert(Teams, {value = options.pup, year = options.year})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for _, statement in pairs(claims) do&lt;br /&gt;
		local tab = {ref = &amp;quot;&amp;quot;, year = &amp;quot;&amp;quot;, value = &amp;quot;&amp;quot;}&lt;br /&gt;
		local va = formatOneStatement(statement, &amp;quot;&amp;quot;, options)&lt;br /&gt;
&lt;br /&gt;
		if statement and statement.qualifiers and statement.qualifiers.P585 then&lt;br /&gt;
			if statement.qualifiers.P585[1].snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
				tab.year = normalizeDate(statement.qualifiers.P585[1].datavalue.value.time)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if statement.references then&lt;br /&gt;
			tab.references = statement.references&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if va and va.v and va.v ~= &amp;quot;&amp;quot; then&lt;br /&gt;
			tab.value = va.v&lt;br /&gt;
			table.insert(Teams, tab)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	table.sort(&lt;br /&gt;
		Teams,&lt;br /&gt;
		function(a, b)&lt;br /&gt;
			return comparedates2(a, b)&lt;br /&gt;
		end&lt;br /&gt;
	)&lt;br /&gt;
&lt;br /&gt;
	local tables = {}&lt;br /&gt;
	if #Teams &amp;gt; 0 then&lt;br /&gt;
		tables = {Teams[1]}&lt;br /&gt;
		local tables2 = {}&lt;br /&gt;
&lt;br /&gt;
		local function sp(p, y)&lt;br /&gt;
			p = tonumber(mw.text.trim(p))&lt;br /&gt;
			if p and p ~= &amp;quot;&amp;quot; then&lt;br /&gt;
				local pup = mw.getContentLanguage():formatNum(p)&lt;br /&gt;
				return y and y ~= &amp;quot;&amp;quot; and (pup .. &amp;quot; &amp;lt;small&amp;gt;(إحصاء &amp;quot; .. y .. &amp;quot;)&amp;lt;/small&amp;gt;&amp;quot;) or pup&lt;br /&gt;
			else&lt;br /&gt;
				return &amp;quot;&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		for _, ss in pairs(tables) do&lt;br /&gt;
			local ba = ss.value&lt;br /&gt;
			local ref = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
			if ss.references and refr and refr ~= &amp;quot;&amp;quot; then&lt;br /&gt;
				ref = formatReferences(ss, options)&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if ss.year and ss.year ~= &amp;quot;&amp;quot; then&lt;br /&gt;
				ba = sp(ss.value, ss.year) .. ref&lt;br /&gt;
				if ss.value ~= options.pup then&lt;br /&gt;
					ba = ba .. icon&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			table.insert(tables2, ba)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		return mw.text.listToText(tables2, options.separator, options.conjunction)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>عبد العزيز</name></author>
	</entry>
</feed>