<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wikiminati.blogmanju.com/wikim/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3AIf_preview</id>
	<title>モジュール:If preview - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wikiminati.blogmanju.com/wikim/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3AIf_preview"/>
	<link rel="alternate" type="text/html" href="https://wikiminati.blogmanju.com/wikim/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:If_preview&amp;action=history"/>
	<updated>2026-04-21T12:02:26Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wikiminati.blogmanju.com/wikim/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:If_preview&amp;diff=3263&amp;oldid=prev</id>
		<title>WikiminatiWebMaster: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wikiminati.blogmanju.com/wikim/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:If_preview&amp;diff=3263&amp;oldid=prev"/>
		<updated>2023-05-14T07:13:58Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年5月14日 (日) 16:13時点における版&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key xs666319_wikiminati:diff::1.12:old-3262:rev-3263 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiminatiWebMaster</name></author>
	</entry>
	<entry>
		<id>https://wikiminati.blogmanju.com/wikim/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:If_preview&amp;diff=3262&amp;oldid=prev</id>
		<title>module:If preview&gt;Izno: merge in functionality from Module:Preview warning and add TemplateStyles, remove p.boolean as not necessary, move some stuff into a cfg page, and don't return temporaries in p.main, remove use</title>
		<link rel="alternate" type="text/html" href="https://wikiminati.blogmanju.com/wikim/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:If_preview&amp;diff=3262&amp;oldid=prev"/>
		<updated>2021-05-05T19:01:42Z</updated>

		<summary type="html">&lt;p&gt;merge in functionality from &lt;a href=&quot;/wikim/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Preview_warning&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;モジュール:Preview warning (存在しないページ)&quot;&gt;Module:Preview warning&lt;/a&gt; and add TemplateStyles, remove p.boolean as not necessary, move some stuff into a cfg page, and don&amp;#039;t return temporaries in p.main, remove use&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&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>module:If preview&gt;Izno</name></author>
	</entry>
</feed>