Revision history of "Module:ResolveEntityId"

Jump to navigation Jump to search

Diff selection: Mark the radio boxes of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 03:38, 18 January 2022Tachyony talk contribs 1,133 bytes +1,133 Created page with "local p = {} function p._entityid(_,id,alt) -- backwards compatibility for deprecated _entityid function return p._id(id,alt) end function p._id(id,alt) if type(id) == 'string' then id = mw.ustring.upper(mw.ustring.sub(id,1,1))..mw.ustring.sub(id,2) if mw.ustring.match(id,'^Q%d+$') then -- id is in the proper format for a Wikidata entity if mw.wikibase.isValidEntityId(id) then -- id is valid id = mw.wikibase.getEntity(id) if id then -- ent..."