「模組:Wikidata」:修訂間差異
無編輯摘要
imported>CYL992 (建立內容為「-- vim: set noexpandtab ft=lua ts=4 sw=4: require('Module:No globals') local p = {} local debug = false ------------------------------------------------------------------------------ -- module local variables and functions local wiki = { langcode = mw.language.getContentLanguage().code } -- internationalisation local i18n = { ["errors"] = { ["property-not-found"] = "Property not found.", ["entity-not-found"] = "Wikidata entity not found.", ["un…」的新頁面) |
Erzherrscher(留言 | 貢獻) 無編輯摘要 |
||
第1行: | 第1行: | ||
-- vim: set noexpandtab ft=lua ts=4 sw=4: | -- vim: set noexpandtab ft=lua ts=4 sw=4: | ||
require(' | require( 'strict' ) | ||
local p = {} | local p = {} | ||
第514行: | 第514行: | ||
-- This is used to get a value, or a comma separated list of them if multiple values exist | -- This is used to get a value, or a comma separated list of them if multiple values exist | ||
p.getValue = function(frame) | p.getValue = function(frame) | ||
local delimdefault = " | local delimdefault = "、" -- **internationalise later** | ||
local delim = frame.args.delimiter or "" | local delim = frame.args.delimiter or "" | ||
delim = string.gsub(delim, '"', '') | delim = string.gsub(delim, '"', '') |