<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_preview%2Fconfiguration</id>
	<title>Module:If preview/configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_preview%2Fconfiguration"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Module:If_preview/configuration&amp;action=history"/>
	<updated>2026-04-04T21:39:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Module:If_preview/configuration&amp;diff=6017&amp;oldid=prev</id>
		<title>&gt;Izno: Protected &quot;Module:If preview/configuration&quot;: match parent ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Module:If_preview/configuration&amp;diff=6017&amp;oldid=prev"/>
		<updated>2021-05-05T18:56:00Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/index.php/Module:If_preview/configuration&quot; title=&quot;Module:If preview/configuration&quot;&gt;Module:If preview/configuration&lt;/a&gt;&amp;quot;: match parent ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[&lt;br /&gt;
We perform the actual check for whether this is a preview here since&lt;br /&gt;
preprocessing is relatively expensive.&lt;br /&gt;
]]&lt;br /&gt;
local frame = mw.getCurrentFrame()&lt;br /&gt;
&lt;br /&gt;
local function is_preview()&lt;br /&gt;
	local revision_id = frame:preprocess(&amp;#039;{{REVISIONID}}&amp;#039;)&lt;br /&gt;
	-- {{REVISIONID}} is usually the empty string when previewed.&lt;br /&gt;
	-- I don&amp;#039;t know why we&amp;#039;re checking for nil but hey, maybe someday things&lt;br /&gt;
	-- would have broken&lt;br /&gt;
	return revision_id == nil or revision_id == &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function templatestyles()&lt;br /&gt;
	return frame:extensionTag{&lt;br /&gt;
		name = &amp;#039;templatestyles&amp;#039;, args = { src = &amp;#039;Module:If preview/styles.css&amp;#039; }&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	preview = is_preview(),&lt;br /&gt;
	templatestyles = templatestyles(),&lt;br /&gt;
	warning_infrastructure = &amp;#039;%s&amp;lt;div class=&amp;quot;preview-warning&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Preview warning:&amp;lt;/strong&amp;gt; %s&amp;lt;/div&amp;gt;&amp;#039;,&lt;br /&gt;
	missing_warning = &amp;#039;The template has no warning text. Please add a warning.&amp;#039;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>&gt;Izno</name></author>
	</entry>
</feed>