<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.froce.fr//index.php?action=history&amp;feed=atom&amp;title=Module%3AEffective_protection_expiry</id>
	<title>Module:Effective protection expiry - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.froce.fr//index.php?action=history&amp;feed=atom&amp;title=Module%3AEffective_protection_expiry"/>
	<link rel="alternate" type="text/html" href="https://wiki.froce.fr//index.php?title=Module:Effective_protection_expiry&amp;action=history"/>
	<updated>2026-04-09T22:28:35Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.froce.fr//index.php?title=Module:Effective_protection_expiry&amp;diff=187&amp;oldid=prev</id>
		<title>Maximilià Macià : 1 révision importée</title>
		<link rel="alternate" type="text/html" href="https://wiki.froce.fr//index.php?title=Module:Effective_protection_expiry&amp;diff=187&amp;oldid=prev"/>
		<updated>2018-09-15T20:00:59Z</updated>

		<summary type="html">&lt;p&gt;1 révision importée&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 septembre 2018 à 22:00&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key t39a0_FRO_WIKI-blh_:diff::1.12:old-186:rev-187 --&gt;
&lt;/table&gt;</summary>
		<author><name>Maximilià Macià</name></author>
	</entry>
	<entry>
		<id>https://wiki.froce.fr//index.php?title=Module:Effective_protection_expiry&amp;diff=186&amp;oldid=prev</id>
		<title>Wikipedia&gt;Jackmcbarn : don't error if the page isn't under PC</title>
		<link rel="alternate" type="text/html" href="https://wiki.froce.fr//index.php?title=Module:Effective_protection_expiry&amp;diff=186&amp;oldid=prev"/>
		<updated>2016-10-13T22:30:40Z</updated>

		<summary type="html">&lt;p&gt;don&amp;#039;t error if the page isn&amp;#039;t under PC&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;
-- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known.&lt;br /&gt;
-- If no title is specified, the title of the page being displayed is used.&lt;br /&gt;
function p._main(action, pagename)&lt;br /&gt;
	local title&lt;br /&gt;
	if type(pagename) == 'table' and pagename.prefixedText then&lt;br /&gt;
		title = pagename&lt;br /&gt;
	elseif pagename then&lt;br /&gt;
		title = mw.title.new(pagename)&lt;br /&gt;
	else&lt;br /&gt;
		title = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
	pagename = title.prefixedText&lt;br /&gt;
	if action == 'autoreview' then&lt;br /&gt;
		local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title)&lt;br /&gt;
		return stabilitySettings and stabilitySettings.expiry or 'unknown'&lt;br /&gt;
	elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then&lt;br /&gt;
		error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )&lt;br /&gt;
	end&lt;br /&gt;
	local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename)&lt;br /&gt;
	if rawExpiry == 'infinity' then&lt;br /&gt;
		return 'infinity'&lt;br /&gt;
	elseif rawExpiry == '' then&lt;br /&gt;
		return 'unknown'&lt;br /&gt;
	else&lt;br /&gt;
		local year, month, day, hour, minute, second = rawExpiry:match(&lt;br /&gt;
			'^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$'&lt;br /&gt;
		)&lt;br /&gt;
		if year then&lt;br /&gt;
			return string.format(&lt;br /&gt;
				'%s-%s-%sT%s:%s:%s',&lt;br /&gt;
				year, month, day, hour, minute, second&lt;br /&gt;
			)&lt;br /&gt;
		else&lt;br /&gt;
			error('internal error in Module:Effective protection expiry; malformed expiry timestamp')&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
setmetatable(p, { __index = function(t, k)&lt;br /&gt;
	return function(frame)&lt;br /&gt;
		return t._main(k, frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
end })&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Jackmcbarn</name></author>
	</entry>
</feed>