<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://deadlock.wiki/Module:ItemData/name?action=history&amp;feed=atom</id>
	<title>Module:ItemData/name - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://deadlock.wiki/Module:ItemData/name?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://deadlock.wiki/Module:ItemData/name?action=history"/>
	<updated>2026-09-02T23:52:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://deadlock.wiki/Module:ItemData/name?diff=23999&amp;oldid=prev</id>
		<title>Monster Domosed: created</title>
		<link rel="alternate" type="text/html" href="https://deadlock.wiki/Module:ItemData/name?diff=23999&amp;oldid=prev"/>
		<updated>2025-04-07T14:43:59Z</updated>

		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local items_data = mw.loadJsonData(&amp;quot;Data:ItemData.json&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- {{#invoke:Sandbox|get_item_key|item name}}&lt;br /&gt;
function p.get_item_key(frame)&lt;br /&gt;
    local item_name_input = frame.args[1] -- Get the item name from the template argument&lt;br /&gt;
    if not item_name_input then&lt;br /&gt;
        return &amp;quot;Error: Item name not specified.&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    item_name_input = item_name_input:lower() -- For case-independent search&lt;br /&gt;
&lt;br /&gt;
    -- Go through all the items and look for a name match.&lt;br /&gt;
    for item_key, item_data in pairs(items_data) do&lt;br /&gt;
        if item_data and item_data[&amp;quot;Name&amp;quot;] then&lt;br /&gt;
            local current_item_name = item_data[&amp;quot;Name&amp;quot;]:lower()&lt;br /&gt;
            if current_item_name == item_name_input then&lt;br /&gt;
                return item_key -- Return the key if the name matches&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return &amp;quot;Item not found.&amp;quot; -- If nothing is found&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Monster Domosed</name></author>
	</entry>
</feed>