<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>https://enciclopedia.md/index.php?action=history&amp;feed=atom&amp;title=Modul%3AIf_preview</id>
	<title>Modul:If preview - Revizia istoricului</title>
	<link rel="self" type="application/atom+xml" href="https://enciclopedia.md/index.php?action=history&amp;feed=atom&amp;title=Modul%3AIf_preview"/>
	<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:If_preview&amp;action=history"/>
	<updated>2026-04-24T23:57:14Z</updated>
	<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:If_preview&amp;diff=174&amp;oldid=prev</id>
		<title>Sergiu: 1 versiune importată</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:If_preview&amp;diff=174&amp;oldid=prev"/>
		<updated>2024-07-13T20:55:59Z</updated>

		<summary type="html">&lt;p&gt;1 versiune importată&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;ro&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 13 iulie 2024 20:55&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ro&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Nicio diferență)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:If_preview&amp;diff=173&amp;oldid=prev</id>
		<title>https://en.wikipedia.org/wiki/$1&gt;Pppery: Undid revision 1216567133 by SilverLocust (talk) Caused WP:VPT#New_script_warnings_with_use_of_{{marriage}}</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:If_preview&amp;diff=173&amp;oldid=prev"/>
		<updated>2024-04-01T03:11:21Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/Special:Diff/1216567133&quot; title=&quot;Special:Diff/1216567133&quot;&gt;1216567133&lt;/a&gt; by &lt;a href=&quot;/Special:Contribu%C8%9Bii/SilverLocust&quot; title=&quot;Special:Contribuții/SilverLocust&quot;&gt;SilverLocust&lt;/a&gt; (&lt;a href=&quot;/index.php?title=Discu%C8%9Bie_Utilizator:SilverLocust&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Discuție Utilizator:SilverLocust (pagină inexistentă)&quot;&gt;talk&lt;/a&gt;) Caused &lt;a href=&quot;/index.php?title=WP:VPT&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:VPT (pagină inexistentă)&quot;&gt;WP:VPT#New_script_warnings_with_use_of_{{marriage}}&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&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>https://en.wikipedia.org/wiki/$1&gt;Pppery</name></author>
	</entry>
</feed>