<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://catalog.jinharsh.co.in/index.php?action=history&amp;feed=atom&amp;title=Module%3APreview_warning</id>
	<title>Module:Preview warning - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://catalog.jinharsh.co.in/index.php?action=history&amp;feed=atom&amp;title=Module%3APreview_warning"/>
	<link rel="alternate" type="text/html" href="https://catalog.jinharsh.co.in/index.php?title=Module:Preview_warning&amp;action=history"/>
	<updated>2026-05-02T22:33:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://catalog.jinharsh.co.in/index.php?title=Module:Preview_warning&amp;diff=5214&amp;oldid=prev</id>
		<title>Admin: 1 revision imported: Mitul Imported from Wikipedia</title>
		<link rel="alternate" type="text/html" href="https://catalog.jinharsh.co.in/index.php?title=Module:Preview_warning&amp;diff=5214&amp;oldid=prev"/>
		<updated>2021-04-11T19:44:08Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Mitul Imported from Wikipedia&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:44, 11 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://catalog.jinharsh.co.in/index.php?title=Module:Preview_warning&amp;diff=5213&amp;oldid=prev</id>
		<title>setup&gt;Jo-Jo Eumerus: Protected &quot;Module:Preview warning&quot;: High-risk Lua module: Per WP:RFPP request ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://catalog.jinharsh.co.in/index.php?title=Module:Preview_warning&amp;diff=5213&amp;oldid=prev"/>
		<updated>2017-04-23T13:56:14Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=Module:Preview_warning&quot; title=&quot;Module:Preview warning&quot;&gt;Module:Preview warning&lt;/a&gt;&amp;quot;: &lt;a href=&quot;/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates (page does not exist)&quot;&gt;High-risk Lua module&lt;/a&gt;: Per &lt;a href=&quot;/index.php?title=WP:RFPP&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:RFPP (page does not exist)&quot;&gt;WP:RFPP&lt;/a&gt; request ([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;local p = {}&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
main&lt;br /&gt;
&lt;br /&gt;
This function returns parameter 1 as a warning if the page containing it is being previewed.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
{{#invoke:Preview warning|main|warning_text}}&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local preview = frame.args[1]:match('^%s*(.-)%s*$') or ''&lt;br /&gt;
	if preview == '' then preview = 'Something is wrong with this template' end&lt;br /&gt;
	if frame:preprocess( &amp;quot;{{REVISIONID}}&amp;quot; ) == &amp;quot;&amp;quot; then return '&amp;lt;div class=&amp;quot;hatnote&amp;quot; style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Warning:&amp;lt;/strong&amp;gt; ' .. preview .. ' (this message is shown only in preview)&amp;lt;/div&amp;gt;' end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>setup&gt;Jo-Jo Eumerus</name></author>
	</entry>
</feed>