<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://fr.prole.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACitation</id>
	<title>Module:Citation - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://fr.prole.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACitation"/>
	<link rel="alternate" type="text/html" href="https://fr.prole.wiki/w/index.php?title=Module:Citation&amp;action=history"/>
	<updated>2026-10-29T06:13:55Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://fr.prole.wiki/w/index.php?title=Module:Citation&amp;diff=5563&amp;oldid=prev</id>
		<title>CriticalResist : test 3</title>
		<link rel="alternate" type="text/html" href="https://fr.prole.wiki/w/index.php?title=Module:Citation&amp;diff=5563&amp;oldid=prev"/>
		<updated>2025-11-15T20:15:37Z</updated>

		<summary type="html">&lt;p&gt;test 3&lt;/p&gt;
&lt;a href=&quot;https://fr.prole.wiki/w/index.php?title=Module:Citation&amp;amp;diff=5563&amp;amp;oldid=5250&quot;&gt;Voir les modifications&lt;/a&gt;</summary>
		<author><name>CriticalResist</name></author>
	</entry>
	<entry>
		<id>https://fr.prole.wiki/w/index.php?title=Module:Citation&amp;diff=5250&amp;oldid=prev</id>
		<title>CriticalResist : Page créée avec « local p = {}  local function is_set(var) 	return not (var == nil or var == &#039;&#039;); end  local function italics(var) 	return &quot;&lt;i&gt;&quot; .. var .. &quot;&lt;/i&gt;&quot; end  local function parenthesis(var) 	return &quot;(&quot; .. var .. &quot;)&quot; end  function p.cite(frame) 	local pframe = frame:getParent() 	local Auteur = pframe.args.author 	local Annee = pframe.args.year or pframe.args[&#039;date&#039;] 	local Chapitre = pframe.args.chapter 	local URLChapitre = pframe.args[&#039;chapter-url&#039;] 	local Section = pfram... »</title>
		<link rel="alternate" type="text/html" href="https://fr.prole.wiki/w/index.php?title=Module:Citation&amp;diff=5250&amp;oldid=prev"/>
		<updated>2023-07-31T17:36:34Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « local p = {}  local function is_set(var) 	return not (var == nil or var == &amp;#039;&amp;#039;); end  local function italics(var) 	return &amp;quot;&amp;lt;i&amp;gt;&amp;quot; .. var .. &amp;quot;&amp;lt;/i&amp;gt;&amp;quot; end  local function parenthesis(var) 	return &amp;quot;(&amp;quot; .. var .. &amp;quot;)&amp;quot; end  function p.cite(frame) 	local pframe = frame:getParent() 	local Auteur = pframe.args.author 	local Annee = pframe.args.year or pframe.args[&amp;#039;date&amp;#039;] 	local Chapitre = pframe.args.chapter 	local URLChapitre = pframe.args[&amp;#039;chapter-url&amp;#039;] 	local Section = pfram... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local function is_set(var)&lt;br /&gt;
	return not (var == nil or var == &amp;#039;&amp;#039;);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function italics(var)&lt;br /&gt;
	return &amp;quot;&amp;lt;i&amp;gt;&amp;quot; .. var .. &amp;quot;&amp;lt;/i&amp;gt;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function parenthesis(var)&lt;br /&gt;
	return &amp;quot;(&amp;quot; .. var .. &amp;quot;)&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.cite(frame)&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local Auteur = pframe.args.author&lt;br /&gt;
	local Annee = pframe.args.year or pframe.args[&amp;#039;date&amp;#039;]&lt;br /&gt;
	local Chapitre = pframe.args.chapter&lt;br /&gt;
	local URLChapitre = pframe.args[&amp;#039;chapter-url&amp;#039;]&lt;br /&gt;
	local Section = pframe.args.section&lt;br /&gt;
	local Titre = pframe.args.title&lt;br /&gt;
	local URLTitre = pframe.args[&amp;#039;title-url&amp;#039;]&lt;br /&gt;
	local TitreBibliotheque = pframe.args[&amp;#039;library-title&amp;#039;]&lt;br /&gt;
	local Volume = pframe.args.volume&lt;br /&gt;
	local Serie = pframe.args.series or pframe.args.journal&lt;br /&gt;
	local Traduction = pframe.args[&amp;#039;trans-title&amp;#039;]&lt;br /&gt;
	local LangueTrad = pframe.args[&amp;#039;trans-lang&amp;#039;]&lt;br /&gt;
	local Page = pframe.args.page or pframe.args.pages&lt;br /&gt;
	local PDF = pframe.args.pdf&lt;br /&gt;
	local Ville = pframe.args.city&lt;br /&gt;
	local Editeur = pframe.args.publisher or pframe.args.via&lt;br /&gt;
	local ISBN = pframe.args.isbn or pframe.args.issn&lt;br /&gt;
	local ISSN = false&lt;br /&gt;
	if is_set(pframe.args.issn) then&lt;br /&gt;
		ISSN = true&lt;br /&gt;
	end&lt;br /&gt;
	local DOI = pframe.args.doi&lt;br /&gt;
	local LG = pframe.args.lg&lt;br /&gt;
	local MIA = pframe.args.mia&lt;br /&gt;
	local Citation = pframe.args.quote&lt;br /&gt;
	local Image = pframe.args.image&lt;br /&gt;
	local LegendeImage = pframe.args[&amp;#039;image-caption&amp;#039;]&lt;br /&gt;
	local SansPointFinal = pframe.args.dotless&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	if is_set(Auteur) then&lt;br /&gt;
		if is_set(Annee) then&lt;br /&gt;
			first_part = Auteur .. &amp;quot; &amp;quot; .. parenthesis(Annee) .. &amp;quot;.&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			first_part = Auteur .. &amp;quot;.&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		first_part = &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Citation) then&lt;br /&gt;
		Citation = string.gsub(Citation, &amp;quot;\n&amp;quot;, &amp;quot;&amp;lt;br&amp;gt;&amp;quot;)&lt;br /&gt;
		Citation = &amp;quot;“&amp;quot; .. Citation .. &amp;quot;”&amp;quot;&lt;br /&gt;
		local div = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		div&lt;br /&gt;
			:attr(&amp;quot;style&amp;quot;, &amp;quot;width:80%; margin-left:10%;&amp;quot;)&lt;br /&gt;
			:wikitext(Citation)&lt;br /&gt;
		local br = mw.html.create(&amp;#039;br&amp;#039;, selfClosing)&lt;br /&gt;
		first_part = italics(tostring(div)) .. tostring(br) .. first_part&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Image) then&lt;br /&gt;
		local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		span&lt;br /&gt;
			:wikitext(&amp;#039;[[File:&amp;#039; .. Image .. &amp;#039;|center|300px|frameless]]&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		if is_set(LegendeImage) then&lt;br /&gt;
			local caption = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
			caption&lt;br /&gt;
				:attr(&amp;quot;style&amp;quot;, &amp;quot;text-align:center;font-size:85%;&amp;quot;)&lt;br /&gt;
				:wikitext(LegendeImage)&lt;br /&gt;
			first_part = tostring(span) .. tostring(caption) .. first_part&lt;br /&gt;
		else&lt;br /&gt;
			first_part = tostring(span) .. first_part&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- deuxieme partie: Titre(URL), Serie, Volume, URLChapitre, Annee, Page, Traduction(Langue), PDF&lt;br /&gt;
	local deuxieme_partie = &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	if is_set(Titre) then&lt;br /&gt;
		if is_set(URLTitre) then&lt;br /&gt;
			Titre = &amp;quot;[&amp;quot; .. URLTitre .. &amp;quot; &amp;quot; .. Titre .. &amp;quot;]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			if is_set(TitreBibliotheque) then&lt;br /&gt;
				Titre = &amp;quot;[[Library:&amp;quot; .. TitreBibliotheque .. &amp;quot;|&amp;quot; .. Titre .. &amp;quot;]]&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		Titre = italics(Titre)&lt;br /&gt;
		if not is_set(Serie) then&lt;br /&gt;
			if is_set(Volume) then&lt;br /&gt;
				Titre = Titre .. &amp;quot;, vol. &amp;quot; .. Volume&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		deuxieme_partie = Titre&lt;br /&gt;
		if is_set(Chapitre) then&lt;br /&gt;
			if is_set(URLChapitre) then&lt;br /&gt;
				Chapitre = &amp;quot;[&amp;quot; .. URLChapitre .. &amp;quot; &amp;quot; .. Chapitre .. &amp;quot;]&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
			if is_set(Section) then&lt;br /&gt;
				Chapitre = Chapitre .. &amp;quot;; &amp;quot; .. Section&lt;br /&gt;
			end&lt;br /&gt;
			deuxieme_partie = deuxieme_partie .. &amp;quot;: &amp;quot; .. &amp;quot;&amp;#039;&amp;quot; .. Chapitre .. &amp;quot;&amp;#039;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if not is_set(Auteur) then&lt;br /&gt;
			if is_set(Annee) then&lt;br /&gt;
				deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. parenthesis(Annee)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if is_set(Traduction) then&lt;br /&gt;
			if is_set(LangueTrad) then&lt;br /&gt;
				deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. &amp;quot;(&amp;quot; .. LangueTrad .. &amp;quot;: &amp;quot; .. Traduction .. &amp;quot;)&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. parenthesis(Traduction)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if is_set(Page) and not is_set(Volume) then&lt;br /&gt;
			if tonumber(Page) ~= nil then&lt;br /&gt;
				Page = &amp;quot;p.&amp;quot; .. &amp;quot; &amp;quot; .. Page&lt;br /&gt;
			else&lt;br /&gt;
				Page = &amp;quot;pp.&amp;quot; .. &amp;quot; &amp;quot; .. Page&lt;br /&gt;
			end&lt;br /&gt;
			deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. parenthesis(Page) .. &amp;quot;.&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			deuxieme_partie = deuxieme_partie .. &amp;quot;.&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Serie) then&lt;br /&gt;
		if is_set(Volume) then&lt;br /&gt;
			Serie = Serie .. &amp;quot;, vol.&amp;quot; .. Volume&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if is_set(Page) and is_set(Volume) and is_set(Serie) then&lt;br /&gt;
			if tonumber(Page) ~= nil then&lt;br /&gt;
				Page = &amp;quot;p.&amp;quot; .. &amp;quot; &amp;quot; .. Page&lt;br /&gt;
			else&lt;br /&gt;
				Page = &amp;quot;pp.&amp;quot; .. &amp;quot; &amp;quot; .. Page&lt;br /&gt;
			end&lt;br /&gt;
			deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. Serie .. &amp;quot; &amp;quot; .. parenthesis(Page) .. &amp;quot;.&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. Serie .. &amp;quot;.&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(PDF) then&lt;br /&gt;
		local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		span&lt;br /&gt;
			:attr(&amp;#039;title&amp;#039;, &amp;#039;Telecharger en PDF&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;[&amp;#039; .. PDF .. &amp;quot; &amp;quot; .. mw.text.nowiki(&amp;#039;[PDF]&amp;#039;) .. &amp;#039;]&amp;#039;)&lt;br /&gt;
		deuxieme_partie = deuxieme_partie .. &amp;quot; &amp;quot; .. tostring(span)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- troisieme partie: Ville, Editeur&lt;br /&gt;
&lt;br /&gt;
	local troisieme_partie = &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	if is_set(Ville) then&lt;br /&gt;
		if is_set(Editeur) then&lt;br /&gt;
			troisieme_partie = Ville .. &amp;quot;: &amp;quot; .. Editeur .. &amp;quot;.&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			troisieme_partie = Ville .. &amp;quot;.&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_set(Ville) then&lt;br /&gt;
		if is_set(Editeur) then&lt;br /&gt;
			troisieme_partie = Editeur .. &amp;quot;.&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			troisieme_partie = &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- quatrieme partie: ISBN, DOI, Library Genesis, Marxists Internet Archive&lt;br /&gt;
&lt;br /&gt;
	local quatrieme_partie = &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	if is_set(ISBN) then&lt;br /&gt;
		local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		span&lt;br /&gt;
			:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
		if (ISSN) then&lt;br /&gt;
			span&lt;br /&gt;
				:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
				:attr(&amp;#039;title&amp;#039;, &amp;#039;Portail ISSN&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;[&amp;#039; .. &amp;quot;https://portal.issn.org/resource/ISSN/&amp;quot; .. ISBN .. &amp;quot; &amp;quot; .. &amp;quot;ISSN &amp;quot; .. ISBN .. &amp;#039;]&amp;#039;)&lt;br /&gt;
		else&lt;br /&gt;
			span&lt;br /&gt;
				:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
				:attr(&amp;#039;title&amp;#039;, &amp;#039;WorldCat&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;[&amp;#039; .. &amp;quot;https://www.worldcat.org/search?qt=worldcat_org_all&amp;amp;q=&amp;quot; .. ISBN .. &amp;quot; &amp;quot; .. &amp;quot;ISBN &amp;quot; .. ISBN .. &amp;#039;]&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		quatrieme_partie = quatrieme_partie .. tostring(span)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(DOI) then&lt;br /&gt;
		local doispan = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		doispan&lt;br /&gt;
			:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;quot;doi: &amp;quot; .. DOI)&lt;br /&gt;
		quatrieme_partie = quatrieme_partie .. &amp;quot; &amp;quot; .. tostring(doispan)&lt;br /&gt;
		local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		span&lt;br /&gt;
			:attr(&amp;#039;title&amp;#039;, &amp;#039;Lien Sci-Hub&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;[&amp;#039; .. &amp;quot;https://sci-hub.se/&amp;quot; .. DOI .. &amp;quot; &amp;quot; .. mw.text.nowiki(&amp;#039;[HUB]&amp;#039;) .. &amp;#039;]&amp;#039;)&lt;br /&gt;
		quatrieme_partie = quatrieme_partie .. &amp;quot; &amp;quot; .. tostring(span)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(LG) then&lt;br /&gt;
		local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		span&lt;br /&gt;
			:attr(&amp;#039;title&amp;#039;, &amp;#039;Lien Library Genesis&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;[&amp;#039; .. LG .. &amp;quot; &amp;quot; .. mw.text.nowiki(&amp;#039;[LG]&amp;#039;) .. &amp;#039;]&amp;#039;)&lt;br /&gt;
		quatrieme_partie = quatrieme_partie .. &amp;quot; &amp;quot; .. tostring(span)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(MIA) then&lt;br /&gt;
		local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
		span&lt;br /&gt;
			:attr(&amp;#039;title&amp;#039;, &amp;#039;Lien Marxists Internet Archive&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;small&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;[&amp;#039; .. MIA .. &amp;quot; &amp;quot; .. mw.text.nowiki(&amp;#039;[MIA]&amp;#039;) .. &amp;#039;]&amp;#039;)&lt;br /&gt;
		quatrieme_partie = quatrieme_partie .. &amp;quot; &amp;quot; .. tostring(span)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	if is_set(deuxieme_partie) then&lt;br /&gt;
		deuxieme_partie = &amp;quot; &amp;quot; .. deuxieme_partie&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(troisieme_partie) then&lt;br /&gt;
		troisieme_partie = &amp;quot; &amp;quot; .. troisieme_partie&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(quatrieme_partie) then&lt;br /&gt;
		quatrieme_partie = &amp;quot; &amp;quot; .. quatrieme_partie&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local rendu = first_part .. deuxieme_partie .. troisieme_partie .. quatrieme_partie&lt;br /&gt;
&lt;br /&gt;
	-- supprimer les espaces au debut et à la fin&lt;br /&gt;
	rendu = string.gsub(rendu, &amp;quot;^%s*(.-)%s*$&amp;quot;, &amp;quot;%1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	if SansPointFinal then&lt;br /&gt;
		rendu = rendu:sub(1, -2)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return rendu&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>CriticalResist</name></author>
	</entry>
</feed>