<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ta">
	<id>https://wiki2.tamilar.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_preview</id>
	<title>Module:If preview - திருத்த வரலாறு</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2.tamilar.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_preview"/>
	<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:If_preview&amp;action=history"/>
	<updated>2026-06-02T12:30:19Z</updated>
	<subtitle>விக்கியில் இப்பக்கத்துக்கான திருத்த வரலாறு</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki2.tamilar.wiki/w/index.php?title=Module:If_preview&amp;diff=101548&amp;oldid=prev</id>
		<title>imported&gt;Sukanthi: &quot;local p = {}  local cfg = mw.loadData(&#039;Module:If preview/configuration&#039;)  -- 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 &#039;&#039; 	else 		return frame.args[2] or &#039;&#039; 	end end  --[[ pmain  This fu...&quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது</title>
		<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:If_preview&amp;diff=101548&amp;oldid=prev"/>
		<updated>2024-07-08T09:05:47Z</updated>

		<summary type="html">&lt;p&gt;&amp;quot;local p = {}  local cfg = mw.loadData(&amp;#039;Module:If preview/configuration&amp;#039;)  --&lt;a href=&quot;/w/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. (கட்டுரை எழுதப்படவில்லை)&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 fu...&amp;quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது&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;ta&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;09:05, 8 சூலை 2024 இல் நிலவும் திருத்தம்&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;ta&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(வேறுபாடு ஏதுமில்லை)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-232497:rev-101548 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sukanthi</name></author>
	</entry>
	<entry>
		<id>https://wiki2.tamilar.wiki/w/index.php?title=Module:If_preview&amp;diff=232497&amp;oldid=prev</id>
		<title>imported&gt;Info-farmer: :en:Module:If_preview இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன</title>
		<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:If_preview&amp;diff=232497&amp;oldid=prev"/>
		<updated>2023-12-16T11:39:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Module:If_preview&quot; class=&quot;extiw&quot; title=&quot;en:Module:If preview&quot;&gt;en:Module:If_preview&lt;/a&gt; இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன&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(&amp;#039;Module:If preview/configuration&amp;#039;)&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 &amp;#039;&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		return frame.args[2] or &amp;#039;&amp;#039;&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&amp;#039;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(&amp;#039;^%s*(.-)%s*$&amp;#039;) or &amp;#039;&amp;#039;&lt;br /&gt;
	if warning == &amp;#039;&amp;#039; 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 &amp;#039;&amp;#039; 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&amp;#039;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>imported&gt;Info-farmer</name></author>
	</entry>
</feed>