Module:WikiFur: Difference between revisions

From WikiFur Data
Jump to navigation Jump to search
(Alternate ID)
Tags: Mobile edit Mobile web edit Advanced mobile edit
(For inclusion?)
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 3: Line 3:
function p.ID(frame)
function p.ID(frame)
   -- return mw.wikibase.getEntityIdForCurrentPage();
   -- return mw.wikibase.getEntityIdForCurrentPage();
   return frame:getParent():getTitle();
   -- return frame:getParent():getTitle();
  return frame:getTitle();
end
end



Revision as of 15:07, 27 October 2023

Documentation for this module may be created at Module:WikiFur/doc

local p = {}

function p.ID(frame)
  -- return mw.wikibase.getEntityIdForCurrentPage();
  -- return frame:getParent():getTitle();
  return frame:getTitle();
end

function p.Label(frame)
  return mw.wikibase.getLabel(frame.args.id);
end

return p;