<?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%3AInfobox%2FFonctions%2FComp%C3%A9tition_sportive</id>
	<title>وحدة:Infobox/Fonctions/Compétition sportive - تاريخ المراجعة</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%3AInfobox%2FFonctions%2FComp%C3%A9tition_sportive"/>
	<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Infobox/Fonctions/Comp%C3%A9tition_sportive&amp;action=history"/>
	<updated>2026-06-08T10:51:42Z</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:Infobox/Fonctions/Comp%C3%A9tition_sportive&amp;diff=483&amp;oldid=prev</id>
		<title>عبد العزيز في 22:35، 10 أغسطس 2016</title>
		<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Infobox/Fonctions/Comp%C3%A9tition_sportive&amp;diff=483&amp;oldid=prev"/>
		<updated>2016-08-10T22:35:41Z</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 wikidata = require &amp;quot;Module:Wikidata/fr&amp;quot; &lt;br /&gt;
local countrymod = require &amp;quot;Module:Country data&amp;quot;&lt;br /&gt;
local typeofteam = require &amp;quot;Module:Dictionnaire Wikidata/Typeofteam&amp;quot;&lt;br /&gt;
 -- date de la course pour adapter les drapeaux et nationalités des participants&lt;br /&gt;
 local raceDate = wikidata.formatStatements{entity = item, property = {&amp;#039;P580&amp;#039;, &amp;#039;P585&amp;#039;}, numval = 1, displayformat = &amp;#039;raw&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
local function formatPerson(person) -- retourne le nom d&amp;#039;une personne précédé du ou des drapeaux appropriés&lt;br /&gt;
&lt;br /&gt;
	local str = wikidata.formatEntity(person)&lt;br /&gt;
&lt;br /&gt;
	-- récupère la nationalité telle que stockée dans P27 (personnes) ou P17 (équipes)&lt;br /&gt;
	local nationalities = wikidata.stringTable{entity = person, property = {&amp;#039;P27&amp;#039;, &amp;#039;P17&amp;#039;}, atdate = raceDate, displayformat = &amp;#039;raw&amp;#039;}&lt;br /&gt;
	if not nationalities then&lt;br /&gt;
		return str&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local flags = {}&lt;br /&gt;
	for i, nation in pairs(nationalities) do&lt;br /&gt;
		local flag, success = countrymod.standarddisplay(nation, {label = &amp;#039;-&amp;#039;, date = &amp;#039;default&amp;#039;})&lt;br /&gt;
		if success then&lt;br /&gt;
			str = flag .. &amp;#039; &amp;#039; .. str&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.winnerRow(label, winnertype)&lt;br /&gt;
	&lt;br /&gt;
	local function wikidataval(winnertype)&lt;br /&gt;
		if not winnertype then -- si l&amp;#039;on ne connait pas le qualificatif, ne pas utiliser Wikidata&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		local winners = wikidata.stringTable{entity = item, property = &amp;#039;P1346&amp;#039;, displayformat = &amp;#039;raw&amp;#039;, excludespecial = true, qualifier = &amp;#039;P642&amp;#039;, qualifiervalue = winnertype}&lt;br /&gt;
		if not winners then&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		for i, winner in pairs(winners) do&lt;br /&gt;
			winners[i] = formatPerson(winner)&lt;br /&gt;
		end&lt;br /&gt;
		local str = table.concat(winners, &amp;#039;&amp;lt;br /&amp;gt;&amp;#039;)&lt;br /&gt;
		-- ajout rétrolien et cat&lt;br /&gt;
		str = wikidata.formatAndCat{value = str, entity = entity, property = &amp;#039;P1346&amp;#039;}&lt;br /&gt;
		return str&lt;br /&gt;
	end&lt;br /&gt;
		 &lt;br /&gt;
	return {type = &amp;#039;row&amp;#039;, label = label, value = param, wikidata = function() return wikidataval(winnertype) end}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.winnerRow2(label, param, winnertype)&lt;br /&gt;
	&lt;br /&gt;
	local function wikidataval(winnertype)&lt;br /&gt;
		if not winnertype then -- si l&amp;#039;on ne connait pas le qualificatif, ne pas utiliser Wikidata&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		local winners = wikidata.stringTable{entity = item, property = &amp;#039;P1346&amp;#039;, displayformat = &amp;#039;raw&amp;#039;, excludespecial = true, qualifier = &amp;#039;P642&amp;#039;, qualifiervalue = winnertype}&lt;br /&gt;
		if not winners then&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		for i, winner in pairs(winners) do&lt;br /&gt;
			winners[i] = formatPerson(winner)&lt;br /&gt;
		end&lt;br /&gt;
		local str = table.concat(winners, &amp;#039;&amp;lt;br /&amp;gt;&amp;#039;)&lt;br /&gt;
		-- ajout rétrolien et cat&lt;br /&gt;
		str = wikidata.formatAndCat{value = str, entity = entity, property = &amp;#039;P1346&amp;#039;}&lt;br /&gt;
		return str&lt;br /&gt;
	end&lt;br /&gt;
		 &lt;br /&gt;
	return {type = &amp;#039;row&amp;#039;, label = label, value = param, wikidata = function() return wikidataval(winnertype) end}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.typeofteam()&lt;br /&gt;
	return {&lt;br /&gt;
		type = &amp;#039;row&amp;#039;, &lt;br /&gt;
		value = &amp;#039;compet&amp;#039;,&lt;br /&gt;
		wikidata = {&lt;br /&gt;
			property = &amp;#039;P31&amp;#039;,&lt;br /&gt;
			showdate = true,&lt;br /&gt;
			conjtype = &amp;#039;&amp;lt;br /&amp;gt;&amp;#039;,&lt;br /&gt;
			sorttype = &amp;#039;chronological&amp;#039;,&lt;br /&gt;
			speciallabels = typeofteam,&lt;br /&gt;
		}, &lt;br /&gt;
		label = &amp;#039;Statut&amp;#039;,&lt;br /&gt;
		plurallabel = &amp;#039;Statuts&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>عبد العزيز</name></author>
	</entry>
</feed>