<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfoboxLua%2FComponents%2FItem</id>
	<title>Module:InfoboxLua/Components/Item - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfoboxLua%2FComponents%2FItem"/>
	<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:InfoboxLua/Components/Item&amp;action=history"/>
	<updated>2026-11-11T01:43:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:InfoboxLua/Components/Item&amp;diff=363&amp;oldid=prev</id>
		<title>Gravy: Created page with &quot;require( &#039;strict&#039; )  local util = require( &#039;Module:InfoboxLua/Util&#039; ) local types = require( &#039;Module:InfoboxLua/Types&#039; )  local p = {}   --- Returns the mw.html object of the infobox item component. --- --- @param data table --- @return mw.html|nil function p.getHtml( data ) 	--- Sometimes modules short-circuit the infobox data and don&#039;t return a content string. 	--- If that&#039;s the case, we don&#039;t want to render anything. 	if not util.isNonEmptyString( data.content ) then...&quot;</title>
		<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:InfoboxLua/Components/Item&amp;diff=363&amp;oldid=prev"/>
		<updated>2026-06-14T02:20:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;require( &amp;#039;strict&amp;#039; )  local util = require( &amp;#039;Module:InfoboxLua/Util&amp;#039; ) local types = require( &amp;#039;Module:InfoboxLua/Types&amp;#039; )  local p = {}   --- Returns the mw.html object of the infobox item component. --- --- @param data table --- @return mw.html|nil function p.getHtml( data ) 	--- Sometimes modules short-circuit the infobox data and don&amp;#039;t return a content string. 	--- If that&amp;#039;s the case, we don&amp;#039;t want to render anything. 	if not util.isNonEmptyString( data.content ) then...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require( &amp;#039;strict&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
local util = require( &amp;#039;Module:InfoboxLua/Util&amp;#039; )&lt;br /&gt;
local types = require( &amp;#039;Module:InfoboxLua/Types&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--- Returns the mw.html object of the infobox item component.&lt;br /&gt;
---&lt;br /&gt;
--- @param data table&lt;br /&gt;
--- @return mw.html|nil&lt;br /&gt;
function p.getHtml( data )&lt;br /&gt;
	--- Sometimes modules short-circuit the infobox data and don&amp;#039;t return a content string.&lt;br /&gt;
	--- If that&amp;#039;s the case, we don&amp;#039;t want to render anything.&lt;br /&gt;
	if not util.isNonEmptyString( data.content ) then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--- @type ItemComponentData&lt;br /&gt;
	local item = util.validateAndConstruct( data, types.ItemComponentDataSchema )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	local root = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
	root:addClass( &amp;#039;t-infobox-item&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
	if item.class then&lt;br /&gt;
		root:addClass( item.class )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if util.isNonEmptyString( item.label ) then&lt;br /&gt;
		root:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
			:addClass( &amp;#039;t-infobox-item-label&amp;#039; )&lt;br /&gt;
			:wikitext( item.label )&lt;br /&gt;
			:done()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	root:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
		:addClass( &amp;#039;t-infobox-item-content&amp;#039; )&lt;br /&gt;
		:wikitext( item.content )&lt;br /&gt;
		:done()&lt;br /&gt;
&lt;br /&gt;
	return root&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Gravy</name></author>
	</entry>
</feed>