<?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%3AIf_preview</id>
	<title>Modul:If preview - 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%3AIf_preview"/>
	<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:If_preview&amp;action=history"/>
	<updated>2026-04-07T05:54:40Z</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:If_preview&amp;diff=7678&amp;oldid=prev</id>
		<title>Adminjavasatu: 1 revisi diimpor</title>
		<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:If_preview&amp;diff=7678&amp;oldid=prev"/>
		<updated>2023-10-06T22:48:55Z</updated>

		<summary type="html">&lt;p&gt;1 revisi diimpor&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;id&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisi sebelumnya&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisi per 7 Oktober 2023 05.48&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;id&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Tidak ada perbedaan)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Adminjavasatu</name></author>
	</entry>
	<entry>
		<id>https://wiki.javasatu.com/index.php?title=Modul:If_preview&amp;diff=1138&amp;oldid=prev</id>
		<title>Adminjavasatu: ←Membuat halaman berisi 'local p = {}  local cfg = mw.loadData('Module:If preview/configuration')  -- main  This function returns either the first argument or second argument passed to this module, depending on whether the page is being previewed.   function p.main(frame) 	if cfg.preview then 		return frame.args[1] or '' 	else 		return frame.args[2] or '' 	end end  --[[ pmain  This function returns either the first argument or second argument passed to this module's parent (i.e. temp...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:If_preview&amp;diff=1138&amp;oldid=prev"/>
		<updated>2023-09-20T01:00:12Z</updated>

		<summary type="html">&lt;p&gt;←Membuat halaman berisi &amp;#039;local p = {}  local cfg = mw.loadData(&amp;#039;Module:If preview/configuration&amp;#039;)  --&lt;a href=&quot;/index.php?title=Main_This_function_returns_either_the_first_argument_or_second_argument_passed_to_this_module,_depending_on_whether_the_page_is_being_previewed.&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Main This function returns either the first argument or second argument passed to this module, depending on whether the page is being previewed. (halaman belum tersedia)&quot;&gt;main  This function returns either the first argument or second argument passed to this module, depending on whether the page is being previewed.  &lt;/a&gt; function p.main(frame) 	if cfg.preview then 		return frame.args[1] or &amp;#039;&amp;#039; 	else 		return frame.args[2] or &amp;#039;&amp;#039; 	end end  --[[ pmain  This function returns either the first argument or second argument passed to this module&amp;#039;s parent (i.e. temp...&amp;#039;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;id&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisi sebelumnya&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisi per 20 September 2023 08.00&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;id&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Tidak ada perbedaan)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Adminjavasatu</name></author>
	</entry>
	<entry>
		<id>https://wiki.javasatu.com/index.php?title=Modul:If_preview&amp;diff=7677&amp;oldid=prev</id>
		<title>dw&gt;Hidayatsrf: Melindungi &quot;Modul:If preview&quot;: Modul Lua berisiko tinggi ([Sunting=Hanya untuk pengurus] (selamanya) [Pindahkan=Hanya untuk pengurus] (selamanya))</title>
		<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:If_preview&amp;diff=7677&amp;oldid=prev"/>
		<updated>2021-07-05T04:41:40Z</updated>

		<summary type="html">&lt;p&gt;Melindungi &amp;quot;&lt;a href=&quot;/wiki/Modul:If_preview&quot; title=&quot;Modul:If preview&quot;&gt;Modul:If preview&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.wikipedia.org/wiki/Templat_berisiko_tinggi&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Templat berisiko tinggi&quot;&gt;Modul Lua berisiko tinggi&lt;/a&gt; ([Sunting=Hanya untuk pengurus] (selamanya) [Pindahkan=Hanya untuk pengurus] (selamanya))&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;
local cfg = mw.loadData('Module:If preview/configuration')&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
main&lt;br /&gt;
&lt;br /&gt;
This function returns either the first argument or second argument passed to&lt;br /&gt;
this module, depending on whether the page is being previewed.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	if cfg.preview then&lt;br /&gt;
		return frame.args[1] or ''&lt;br /&gt;
	else&lt;br /&gt;
		return frame.args[2] or ''&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
pmain&lt;br /&gt;
&lt;br /&gt;
This function returns either the first argument or second argument passed to&lt;br /&gt;
this module's parent (i.e. template using this module), depending on whether it&lt;br /&gt;
is being previewed.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
function p.pmain(frame)&lt;br /&gt;
	return p.main(frame:getParent())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local function warning_text(warning)&lt;br /&gt;
	return mw.ustring.format(&lt;br /&gt;
		cfg.warning_infrastructure,&lt;br /&gt;
		cfg.templatestyles,&lt;br /&gt;
		warning&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._warning(args)&lt;br /&gt;
	&lt;br /&gt;
	local warning = args[1] and args[1]:match('^%s*(.-)%s*$') or ''&lt;br /&gt;
	if warning == '' then&lt;br /&gt;
		return warning_text(cfg.missing_warning)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not cfg.preview then return '' end&lt;br /&gt;
	&lt;br /&gt;
	return warning_text(warning)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
warning&lt;br /&gt;
&lt;br /&gt;
This function returns a &amp;quot;preview warning&amp;quot;, which is the first argument marked&lt;br /&gt;
up with HTML and some supporting text, depending on whether the page is being previewed.&lt;br /&gt;
&lt;br /&gt;
disabled since we'll implement the template version in general&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
--function p.warning(frame)&lt;br /&gt;
--	return p._warning(frame.args)&lt;br /&gt;
--end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
warning, but for pass-through templates like {{preview warning}}&lt;br /&gt;
]]&lt;br /&gt;
function p.pwarning(frame)&lt;br /&gt;
	return p._warning(frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>dw&gt;Hidayatsrf</name></author>
	</entry>
</feed>