Модуль:Interwiki: различия между версиями
Buto (обсуждение | вклад) Новая страница: «-- This module provides functions and objects for dealing with interwiki links. local checkType = require('libraryUtil').checkType local interwikiData = mw.loadData('Module:Interwiki/data') -------------------------------------------------------------------------------- -- Prefix class -------------------------------------------------------------------------------- local Prefix = {} Prefix.__index = Prefix function Prefix.new(code) checkType('Prefix.new...» |
Buto (обсуждение | вклад) Нет описания правки |
||
| Строка 82: | Строка 82: | ||
Prefix.interwiki = function(frame) | Prefix.interwiki = function(frame) | ||
local s = {} | local s = {} | ||
local entity = mw. | local entity = mw.massarn.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 | ||