en:Module:Wd/i18n 2017年8月19日 (土) 20:33(UTC)より
template>K-iczn (en:Module:Wd/i18n 2017年5月9日 (火) 20:04(UTC)より) |
template>K-iczn (en:Module:Wd/i18n 2017年8月19日 (土) 20:33(UTC)より) |
||
9行目: | 9行目: | ||
["main-called-twice"] = 'ファンクション"main"は2度も呼び出せません。', | ["main-called-twice"] = 'ファンクション"main"は2度も呼び出せません。', | ||
["no-such-function"] = 'ファンクション「"$1"」が存在しません。' -- equal to the standard module error message | ["no-such-function"] = 'ファンクション「"$1"」が存在しません。' -- equal to the standard module error message | ||
}, | |||
["info"] = { | |||
["edit-on-wikidata"] = "ウィキデータを編集" | |||
}, | }, | ||
["numeric"] = { | ["numeric"] = { | ||
["delimiter"] = "," | ["decimal-mark"] = ".", | ||
["delimiter"] = "," | |||
}, | }, | ||
["datetime"] = { | ["datetime"] = { | ||
47行目: | 51行目: | ||
}, | }, | ||
["cite"] = { | ["cite"] = { | ||
["cite-web"] = "Cite web2", -- title of template equivalent to [[:en:Template:Cite web]] | ["cite-web"] = "Cite web2", -- title of template equivalent to [[:en:Template:Cite web]], leave empty (i.e. "") to use default rendering | ||
["cite-q"] = "Cite Q", -- title of template equivalent to [[:en:Template:Cite Q]], leave empty (i.e. "") to use default rendering | |||
["url"] = "url", | ["url"] = "url", | ||
["title"] = "title", | ["title"] = "title", | ||
["website"] = "website", | |||
["date"] = "date", | ["date"] = "date", | ||
["access-date"] = "access-date", | ["access-date"] = "access-date", | ||
57行目: | 63行目: | ||
["publisher"] = "publisher", | ["publisher"] = "publisher", | ||
["quote"] = "quote", | ["quote"] = "quote", | ||
["language"] = "language" | ["language"] = "language", | ||
["pages"] = "pages", | |||
["chapter"] = "chapter" | |||
} | } | ||
} | } | ||
79行目: | 87行目: | ||
end | end | ||
function p. | function p.addDelimiters(n) | ||
local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$") | local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$") | ||
return left .. (num:reverse():gsub("(%d%d%d)", "%1" .. p['numeric']['delimiter']):reverse()) .. right | return left .. (num:reverse():gsub("(%d%d%d)", "%1" .. p['numeric']['delimiter']):reverse()) .. right |