「モジュール:Citation/CS-ja」の版間の差分

削除された内容 追加された内容
従来型の出典テンプレートとの互換性を考慮し、orig-dateの挙動を変更する
パターンマッチングの不具合を修正
2,283行目:
local is_journal = 'journal' == cite_class or (utilities.in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);
 
local is_numeric_vol = volume and (volume:match ('^[MDCLXVI]+$') or volume:mw.ustring.match (volume, '^[〇一二三四五六七八九十百千]+$') or volume:match ('^%d+$')); -- is only uppercase roman numerals or only digits?
-- CS-ja独自: 漢数字も考慮する
local is_long_vol = volume and (4 < mw.ustring.len(volume)); -- is |volume= value longer than 4 characters?