Difference between revisions of "Module:Entity"
Jump to navigation
Jump to search
(Created page with "local p = {} -- p stands for package function p.get( frame ) return mw.wikibase.getEntityIdForTitle(mw.title.getCurrentTitle().text) end return p") |
|||
| Line 5: | Line 5: | ||
end | end | ||
| + | function p.getUrl ( frame ) | ||
| + | return mw.wikibase.getEntityUrl | ||
| + | end | ||
return p | return p | ||
Revision as of 20:24, 13 April 2019
Documentation for this module may be created at Module:Entity/doc
local p = {} -- p stands for package
function p.get( frame )
return mw.wikibase.getEntityIdForTitle(mw.title.getCurrentTitle().text)
end
function p.getUrl ( frame )
return mw.wikibase.getEntityUrl
end
return p