Module:WikiFur

Revision as of 15:14, 27 October 2023 by GreenReaper (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}

function p.ID(frame)
  -- This seemingly only works with sitelinks
  -- return mw.wikibase.getEntityIdForCurrentPage();
  -- This only works inside pages, not Sitenotice 
  return frame:getParent():getTitle();
  -- This just returns the module itself 
  -- return frame:getTitle();
end

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

return p;