「モジュール:Wd」の版間の差分

ナビゲーションに移動 検索に移動
en:Module:Wd 20:49, 27 March 2018‎より
template>K-iczn
(en:Module:Wd 2018年3月18日 (日) 10:53(UTC)より)
temp>Afaz
(en:Module:Wd 20:49, 27 March 2018‎より)
1,692行目: 1,692行目:
-- level 2 hook
-- level 2 hook
function State:getReference(statement)
function State:getReference(statement)
local lang, key, citeWeb, citeQ, label
local key, citeWeb, citeQ, label
local langParams = {p.aliasesP.language, p.aliasesP.languageOfWorkOrName}
local params = {}
local params = {}
local citeParams = {['web'] = {}, ['q'] = {}}
local citeParams = {['web'] = {}, ['q'] = {}}
1,708行目: 1,707行目:
end
end
-- don't include languages that are equal to the local one
-- don't include "language" if it is equal to the local one
for i, v in ipairs(langParams) do
if self:getReferenceDetail(statement.snaks, p.aliasesP.language) == self.conf.langName then
lang = self:getReferenceDetail(statement.snaks, v)
statement.snaks[p.aliasesP.language] = nil
if self.conf.langName == lang then
statement.snaks[v] = nil
end
end
end
匿名利用者

案内メニュー