<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://inricristopedia.org/w/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AUnsubst</id>
	<title>Módulo:Unsubst - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://inricristopedia.org/w/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AUnsubst"/>
	<link rel="alternate" type="text/html" href="https://inricristopedia.org/w/index.php?title=M%C3%B3dulo:Unsubst&amp;action=history"/>
	<updated>2026-06-16T22:12:46Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://inricristopedia.org/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=423&amp;oldid=prev</id>
		<title>In7cr7pe7: uma edição</title>
		<link rel="alternate" type="text/html" href="https://inricristopedia.org/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=423&amp;oldid=prev"/>
		<updated>2020-08-08T14:35:47Z</updated>

		<summary type="html">&lt;p&gt;uma edição&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Edição das 14h35min de 8 de agosto de 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;pt-BR&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sem diferença)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>In7cr7pe7</name></author>
		
	</entry>
	<entry>
		<id>https://inricristopedia.org/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=422&amp;oldid=prev</id>
		<title>br&gt;!Silent: Alterou o nível de proteção de &quot;Módulo:Unsubst&quot;: Módulo com impacto significativo em outras páginas ([Editar=Permitir apenas autorrevisores] (indefinidamente) [Mover=Permitir apenas utilizadores autoconfirmados] (indefinidamente))</title>
		<link rel="alternate" type="text/html" href="https://inricristopedia.org/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=422&amp;oldid=prev"/>
		<updated>2019-12-25T21:13:59Z</updated>

		<summary type="html">&lt;p&gt;Alterou o nível de proteção de &amp;quot;&lt;a href=&quot;/wiki/M%C3%B3dulo:Unsubst&quot; title=&quot;Módulo:Unsubst&quot;&gt;Módulo:Unsubst&lt;/a&gt;&amp;quot;: Módulo com impacto significativo em outras páginas ([Editar=Permitir apenas autorrevisores] (indefinidamente) [Mover=Permitir apenas utilizadores autoconfirmados] (indefinidamente))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local specialParams = {&lt;br /&gt;
	['$N'] = 'nome predefinição', -- Deprecated, but keeping until it is removed from transcluding templates&lt;br /&gt;
	['$B'] = 'conteúdo predefinição',&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p[''] = function ( frame )&lt;br /&gt;
	if not frame:getParent() then&lt;br /&gt;
		error( '{{#invoke:Unsubst|}} makes no sense without a parent frame' )&lt;br /&gt;
	end&lt;br /&gt;
	if not frame.args['$B'] then&lt;br /&gt;
		error( '{{#invoke:Unsubst|}} falta parâmetro $B (conteúdo predefinição)' )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if mw.isSubsting() then&lt;br /&gt;
		---- substing&lt;br /&gt;
		-- Combine passed args with passed defaults&lt;br /&gt;
		local args = {}&lt;br /&gt;
		for k, v in pairs( frame.args ) do&lt;br /&gt;
			if not specialParams[k] then&lt;br /&gt;
				if v == '__DATE__' then&lt;br /&gt;
					v = mw.getContentLanguage():formatDate( 'F Y' )&lt;br /&gt;
				end&lt;br /&gt;
				args[k] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		for k, v in pairs( frame:getParent().args ) do&lt;br /&gt;
			args[k] = v&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Build an equivalent template invocation&lt;br /&gt;
		-- First, find the title to use&lt;br /&gt;
		local titleobj = mw.title.new(frame:getParent():getTitle())&lt;br /&gt;
		local title&lt;br /&gt;
		if titleobj.namespace == 10 then -- NS_TEMPLATE&lt;br /&gt;
			title = titleobj.text&lt;br /&gt;
		elseif titleobj.namespace == 0 then -- NS_MAIN&lt;br /&gt;
			title = ':' .. titleobj.text&lt;br /&gt;
		else&lt;br /&gt;
			title = titleobj.prefixedText&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Build the invocation body with numbered args first, then named&lt;br /&gt;
		local ret = '{{' .. title&lt;br /&gt;
		for k, v in ipairs( args ) do&lt;br /&gt;
			if string.find( v, '=', 1, true ) then&lt;br /&gt;
				-- likely something like 1=foo=bar, we need to do it as a named arg&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			ret = ret .. '|' .. v&lt;br /&gt;
			args[k] = nil&lt;br /&gt;
		end&lt;br /&gt;
		for k, v in pairs( args ) do&lt;br /&gt;
			ret = ret .. '|' .. k .. '=' .. v&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		return ret .. '}}'&lt;br /&gt;
	else&lt;br /&gt;
		---- Not substing&lt;br /&gt;
		-- Just return the &amp;quot;body&amp;quot;&lt;br /&gt;
		return frame.args['$B'] .. (frame.args['$N'] and frame:getParent():getTitle() == mw.title.getCurrentTitle().prefixedText and '[[Categoria:!Chamadas a Módulo:Unsubst que usam $N]]' or '')&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>br&gt;!Silent</name></author>
		
	</entry>
</feed>