Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Zeile 1: Zeile 1:
<includeonly>
local p = {}
<span style="white-space: nowrap;">
 
  [https://www.divine-pride.net/database/item/{{{1}}} https://www.divine-pride.net/img/items/item/iRO/{{{1}}}#.png]  
function p.getName(frame)
 
    local id = tonumber(frame.args[1]) or tonumber(frame:getParent().args[1])
  <span style="font-weight:bold;">
    if not id then return "ID fehlt" end
     [https://www.divine-pride.net/database/item/{{{1}}} {{#invoke:ItemLinkerNeu|getName|{{{1}}}}}]
   
  </span>
    local data = mw.loadData('Modul:ItemDataNeu')
 
   
  <span style="color:#777;">({{{1}}})</span>
     if data and data[id] then
</span>
        return data[id].identifiedDisplayName or ("Item " .. id)
</includeonly>
    else
        return "Item " .. id
    end
end
 
return p

Version vom 27. Dezember 2025, 20:33 Uhr

local p = {}

function p.getName(frame)

   local id = tonumber(frame.args[1]) or tonumber(frame:getParent().args[1])
   if not id then return "ID fehlt" end
   
   local data = mw.loadData('Modul:ItemDataNeu')
   
   if data and data[id] then
       return data[id].identifiedDisplayName or ("Item " .. id)
   else
       return "Item " .. id
   end

end

return p