Модуль:Interwiki: различия между версиями

Новая страница: «-- 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...»
 
Нет описания правки
Строка 82: Строка 82:
Prefix.interwiki = function(frame)
Prefix.interwiki = function(frame)
local s = {}
local s = {}
local entity = mw.wikibase.getEntity()
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