<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wikiminecraft.es/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3ABlock_value</id>
	<title>Módulo:Block value - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wikiminecraft.es/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3ABlock_value"/>
	<link rel="alternate" type="text/html" href="https://wikiminecraft.es/index.php?title=M%C3%B3dulo:Block_value&amp;action=history"/>
	<updated>2026-04-21T16:34:38Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wikiminecraft.es/index.php?title=M%C3%B3dulo:Block_value&amp;diff=23013&amp;oldid=prev</id>
		<title>Leynaf: Página creada con «local p = {} p.value = function( f ) 	local args = f 	if f == mw.getCurrentFrame() then  		args = require( &#039;Module:ProcessArgs&#039; ).merge( true ) 	end 	local block = mw.text....»</title>
		<link rel="alternate" type="text/html" href="https://wikiminecraft.es/index.php?title=M%C3%B3dulo:Block_value&amp;diff=23013&amp;oldid=prev"/>
		<updated>2015-09-06T14:30:50Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «local p = {} p.value = function( f ) 	local args = f 	if f == mw.getCurrentFrame() then  		args = require( &amp;#039;Module:ProcessArgs&amp;#039; ).merge( true ) 	end 	local block = mw.text....»&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;
p.value = function( f )&lt;br /&gt;
	local args = f&lt;br /&gt;
	if f == mw.getCurrentFrame() then &lt;br /&gt;
		args = require( &amp;#039;Module:ProcessArgs&amp;#039; ).merge( true )&lt;br /&gt;
	end&lt;br /&gt;
	local block = mw.text.trim( args[1] or &amp;#039;&amp;#039; ):lower()&lt;br /&gt;
	local type = args.type&lt;br /&gt;
&lt;br /&gt;
	-- Most of these transforms are unnecessary, but are kept for compatibility with original template&lt;br /&gt;
	&lt;br /&gt;
	-- Strip trailing &amp;quot;s&amp;quot; on everything but these&lt;br /&gt;
	local keepS = {&lt;br /&gt;
		glass = true,&lt;br /&gt;
		steps = true, stairs = true,&lt;br /&gt;
		bars = true,&lt;br /&gt;
		cactus = true,&lt;br /&gt;
		leaves = true,&lt;br /&gt;
		grass = true,&lt;br /&gt;
		potatoes = true&lt;br /&gt;
	}&lt;br /&gt;
	if not keepS[block:match( &amp;#039;%w+$&amp;#039; )] then&lt;br /&gt;
		block = block:gsub( &amp;#039;s$&amp;#039;, &amp;#039;&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Other transforms&lt;br /&gt;
	block = block&lt;br /&gt;
		:gsub( &amp;#039;wooden&amp;#039;, &amp;#039;wood&amp;#039; )&lt;br /&gt;
		:gsub( &amp;#039;mossy&amp;#039;, &amp;#039;moss&amp;#039; )&lt;br /&gt;
		:gsub( &amp;#039;steps&amp;#039;, &amp;#039;stairs&amp;#039; )&lt;br /&gt;
		:gsub( &amp;quot;[&amp;#039;%(%)%-%s]+&amp;quot;, &amp;#039;&amp;#039; )&lt;br /&gt;
	&lt;br /&gt;
	local value = mw.loadData( &amp;#039;Module:&amp;#039; .. type .. &amp;#039; values&amp;#039; )[block]&lt;br /&gt;
	local category = &amp;#039;&amp;#039;&lt;br /&gt;
	if not value then&lt;br /&gt;
		value = &amp;#039;[[Template:&amp;#039; .. type .. &amp;#039; values#Missing value|?]]&amp;#039;&lt;br /&gt;
		local title = mw.title.getCurrentTitle()&lt;br /&gt;
		if not args.nocat and title.namespace == 0 and not title.isSubpage then&lt;br /&gt;
			category = &amp;#039;[[Category:Missing &amp;#039; .. type:lower() .. &amp;#039;]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return value .. category&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Leynaf</name></author>
	</entry>
</feed>