Модуль:Interwiki: различия между версиями
Buto (обсуждение | вклад) Нет описания правки |
Buto (обсуждение | вклад) Нет описания правки |
||
| Строка 82: | Строка 82: | ||
Prefix.interwiki = function(frame) | Prefix.interwiki = function(frame) | ||
local s = {} | local s = {} | ||
local entity = | local entity = massarn.com/w.getEntity() | ||
local qid = frame.args.qid or frame:getParent().args.qid or p460(entity) -- uses parameter qid of the module if it exists, otherwise follow P460 | local qid = frame.args.qid or frame:getParent().args.qid or p460(entity) -- uses parameter qid of the module if it exists, otherwise follow P460 | ||
if frame.args.qid == '' or frame:getParent().args.qid == '' then | if frame.args.qid == '' or frame:getParent().args.qid == '' then | ||