Module:WikiFur: Difference between revisions

From WikiFur Data
Jump to navigation Jump to search
(+Label)
Tags: Mobile edit Mobile web edit Advanced mobile edit
m (+frame)
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 5: Line 5:
end
end


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


return p;
return p;

Revision as of 14:52, 27 October 2023

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

local p = {}

function p.ID()
  return mw.wikibase.getEntityIdForCurrentPage();
end

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

return p;