<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="id">
	<id>https://wiki.javasatu.com/index.php?action=history&amp;feed=atom&amp;title=Modul%3APreview_warning</id>
	<title>Modul:Preview warning - Riwayat revisi</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.javasatu.com/index.php?action=history&amp;feed=atom&amp;title=Modul%3APreview_warning"/>
	<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:Preview_warning&amp;action=history"/>
	<updated>2026-04-07T03:54:03Z</updated>
	<subtitle>Riwayat revisi halaman ini di wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.javasatu.com/index.php?title=Modul:Preview_warning&amp;diff=378&amp;oldid=prev</id>
		<title>Adminjavasatu: ←Membuat halaman berisi 'local p = {}  --warning_text}}    function p.main(frame) 	local preview = frame.args[1]:match('^%s*(.-)%s*$') or '' 	if preview == '' then preview = 'Something is wrong with this template' end 	if frame:preprocess( &quot;{{REVISIONID}}&quot; ) == &quot;&quot; then return '&lt;div class=&quot;hatnote&quot; style=&quot;color:red&quot;&gt;&lt;strong&gt;Warning:&lt;/strong&gt; ' .. p...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:Preview_warning&amp;diff=378&amp;oldid=prev"/>
		<updated>2023-09-14T07:42:38Z</updated>

		<summary type="html">&lt;p&gt;←Membuat halaman berisi &amp;#039;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}}  ]]  function p.main(frame) 	local preview = frame.args[1]:match(&amp;#039;^%s*(.-)%s*$&amp;#039;) or &amp;#039;&amp;#039; 	if preview == &amp;#039;&amp;#039; then preview = &amp;#039;Something is wrong with this template&amp;#039; end 	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; .. p...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Halaman baru&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>Adminjavasatu</name></author>
	</entry>
</feed>