Module:WikiFur: Difference between revisions

From WikiFur Data
Jump to navigation Jump to search
m (+frame)
Tags: Mobile edit Mobile web edit Advanced mobile edit
(Alternate ID)
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 1: Line 1:
local p = {}
local p = {}


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



Revision as of 15:03, 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();
end

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

return p;