13,398
edits
No edit summary |
No edit summary |
||
Line 652: | Line 652: | ||
local title = nil | local title = nil | ||
local prefix= "" | local prefix= "" | ||
id = id:upper() -- just to be sure | id = id:upper() -- just to be sure | ||
Line 665: | Line 657: | ||
if raw then | if raw then | ||
-- check if given id actually exists | -- check if given id actually exists | ||
if id:sub(1,1) == "P" then | |||
prefix = "Property:" | prefix = "Property:" | ||
end | end | ||
prefix = "d:" .. prefix | prefix = "d:" .. prefix | ||
Line 687: | Line 675: | ||
-- get label | -- get label | ||
end | end | ||
if not label then | if not label then | ||
Line 2,395: | Line 2,380: | ||
-- get the entity ID from either the positional argument, the eid argument or the page argument | -- get the entity ID from either the positional argument, the eid argument or the page argument | ||
cfg.entityID = getEntityId(lastArg, args[p.args.eid], args[p.args.page], true) | cfg.entityID = getEntityId(lastArg, args[p.args.eid], args[p.args.page], true) | ||
-- serve according to the given command | -- serve according to the given command | ||
Line 2,405: | Line 2,386: | ||
elseif funcName == p.generalCommands.title then | elseif funcName == p.generalCommands.title then | ||
cfg.inSitelinks = true | cfg.inSitelinks = true | ||
if cfg.curState.linked and value then | if cfg.curState.linked and value then | ||
value = buildWikilink(value) | value = buildWikilink(value) | ||
end | end | ||
edits