
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://zoophilia.wiki/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://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3APreview_warning"/>
	<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:Preview_warning&amp;action=history"/>
	<updated>2026-05-07T13:02:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Module:Preview_warning&amp;diff=113721&amp;oldid=prev</id>
		<title>DogMike: Created page with &quot;local p = {}  --warning_text}}  ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:Preview_warning&amp;diff=113721&amp;oldid=prev"/>
		<updated>2020-09-03T20:36:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  --[[ main  This function returns parameter 1 as a warning if the page containing it is being previewed.  Usage: {{#invoke:Preview warning|main|warning_text}}  ]]...&amp;quot;&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(&amp;#039;^%s*(.-)%s*$&amp;#039;) or &amp;#039;&amp;#039;&lt;br /&gt;
	if preview == &amp;#039;&amp;#039; then preview = &amp;#039;Something is wrong with this template&amp;#039; end&lt;br /&gt;
	if frame:preprocess( &amp;quot;{{REVISIONID}}&amp;quot; ) == &amp;quot;&amp;quot; then return &amp;#039;&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; &amp;#039; .. preview .. &amp;#039; (this message is shown only in preview)&amp;lt;/div&amp;gt;&amp;#039; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>DogMike</name></author>
	</entry>
</feed>