<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://www.bioeticawiki.com/w/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AUnsubst</id>
	<title>Módulo:Unsubst - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://www.bioeticawiki.com/w/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AUnsubst"/>
	<link rel="alternate" type="text/html" href="https://www.bioeticawiki.com/w/index.php?title=M%C3%B3dulo:Unsubst&amp;action=history"/>
	<updated>2026-04-29T16:56:23Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://www.bioeticawiki.com/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=102781&amp;oldid=prev</id>
		<title>Sysadmin: 1 revisión importada: Importar plantillas de citas</title>
		<link rel="alternate" type="text/html" href="https://www.bioeticawiki.com/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=102781&amp;oldid=prev"/>
		<updated>2019-01-21T00:51:59Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada: Importar plantillas de citas&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;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 02:51 21 ene 2019&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key w_bioeticawiki:diff::1.12:old-102780:rev-102781 --&gt;
&lt;/table&gt;</summary>
		<author><name>Sysadmin</name></author>
	</entry>
	<entry>
		<id>https://www.bioeticawiki.com/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=102780&amp;oldid=prev</id>
		<title>es&gt;Metrónomo: Así tiene la misma precisión que {{CURRENTTIMESTAMP}}</title>
		<link rel="alternate" type="text/html" href="https://www.bioeticawiki.com/w/index.php?title=M%C3%B3dulo:Unsubst&amp;diff=102780&amp;oldid=prev"/>
		<updated>2017-05-23T04:30:43Z</updated>

		<summary type="html">&lt;p&gt;Así tiene la misma precisión que {{CURRENTTIMESTAMP}}&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local specialParams = {&lt;br /&gt;
	['$N'] = 'nombre de la plantilla', -- Deprecated, but keeping until it is removed from transcluding templates&lt;br /&gt;
	['$B'] = 'contenido de la plantilla',&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|}} no tiene sentido si no hay un marco padre' )&lt;br /&gt;
	end&lt;br /&gt;
	if not frame.args['$B'] then&lt;br /&gt;
		error( '{{#invoke:Unsubst|}} requiere un parámetro $B (contenido de la plantilla)' )&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( 'YmdHis' )&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 '[[Categoría:Bioeticawiki:Llamadas a Módulo:Unsubst que utilizan $N]]' or '')&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>es&gt;Metrónomo</name></author>
	</entry>
</feed>