ページ「モジュール:Citation/CS1/Configuration」と「モジュール:Citation/CS1/Configuration/sandbox」の間の差分

(ページ間の差分)
ページ 1
ページ 2
削除された内容 追加された内容
識別子のラベル関連を見直し、リダイレクトにリンクするようにする
 
Help:CS1テンプレートエラーで発生していた不具合を解消させるため、err_param_unknown_emptyのメッセージ中のプレースホルダーを$2から$1に変更する。
 
62行目: 62行目:
['et al'] = 'et al.',
['et al'] = 'et al.',
['in'] = 'In', -- edited works
['in'] = 'In', -- edited works
['inactive'] = ' (inactive $1)', -- $1はdoiのリンク切れを確認した日付(プレースホルダーは日本語版独自)
['inactive'] = 'inactive',
['inset'] = '$1 inset',
['inset'] = '$1 inset',
['interview'] = 'Interviewed by $1',
['interview'] = 'Interviewed by $1',
114行目: 114行目:
-- Categories
-- Categories
['cat wikilink'] = '[[Category:$1]]', -- $1 is the category name
['cat wikilink'] = '[[Category:$1]]', -- $1 is the category name
[':cat wikilink'] = '[[:Category:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
[':cat wikilink'] = '[[:Category:$1|カテゴリ]]', -- category name as maintenance message wikilink; $1 is the category name


-- Internal errors (should only occur if configuration is bad)
-- Internal errors (should only occur if configuration is bad)
123行目: 123行目:
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">&#123;{$1}}</code>テンプレートにエラーがあります</span>。エラーメッセージが非表示になっている可能性があります([[Help:CS1テンプレートエラー#Controlling_error_message_display|説明]])。'; -- $1 is template link
['warning_msg_e'] = '<span style="color:#d33"><code style="color: inherit; background: inherit; border: none; padding: inherit;">&#123;{$1}}</code>テンプレートにエラーがあります</span>。エラーメッセージが非表示になっている可能性があります([[Help:CS1テンプレートエラー#エラーメッセージの表示変更|説明]])。'; -- $1 is template link
['warning_msg_m'] = '<span style="color:#3a3"><code style="color: inherit; background: inherit; border: none; padding: inherit;">&#123;{$1}}</code>テンプレートにメンテナンス用メッセージがあります</span>。メッセージが非表示になっている可能性があります([[Help:CS1テンプレートエラー#Controlling_error_message_display|説明]])。'; -- $1 is template link
['warning_msg_m'] = '<span style="color:#3a3"><code style="color: inherit; background: inherit; border: none; padding: inherit;">&#123;{$1}}</code>テンプレートにメンテナンス用メッセージがあります</span>。メッセージが非表示になっている可能性があります([[Help:CS1テンプレートエラー#エラーメッセージの表示変更|説明]])。'; -- $1 is template link
}
}


194行目: 194行目:


['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['format'] = ' <span class="cs1-format">($1)</span>', -- for |format=, |chapter-format=, etc.
['interwiki'] = ' <span class="cs1-format">[in $1]</span>', -- for interwiki-language-linked author, editor, etc
['interwiki'] = ' <span class="cs1-format">[$1]</span>', -- for interwiki-language-linked author, editor, etc
['interproj'] = ' <span class="cs1-format">[at $1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)
['interproj'] = ' <span class="cs1-format">[$1]</span>', -- for interwiki-project-linked author, editor, etc (:d: and :s: supported; :w: ignored)


-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
275行目: 275行目:
'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot
'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot
['Class'] = 'class', -- cite arxiv and arxiv identifier
['Class'] = 'class', -- cite arxiv and arxiv identifier
['Coauthors'] = {'coauthors', 'coauthor'}, --暫定対応
['Collaboration'] = 'collaboration',
['Collaboration'] = 'collaboration',
['Conference'] = {'conference', 'event'},
['Conference'] = {'conference', 'event'},
290行目: 291行目:
['DoiBroken'] = 'doi-broken-date',
['DoiBroken'] = 'doi-broken-date',
['Edition'] = 'edition',
['Edition'] = 'edition',
['Editors'] = 'editors', --暫定対応
['Embargo'] = 'pmc-embargo-date',
['Embargo'] = 'pmc-embargo-date',
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary'}, -- cite encyclopedia only
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary'}, -- cite encyclopedia only
300行目: 302行目:
['MailingList'] = {'mailing-list', 'mailinglist'}, -- cite mailing list only
['MailingList'] = {'mailing-list', 'mailinglist'}, -- cite mailing list only
['Map'] = 'map', -- cite map only
['Map'] = 'map', -- cite map only
['MapFormat'] = {'map-format', 'mapformat'}, -- cite map only
['MapFormat'] = 'map-format', -- cite map only
['MapURL'] = {'map-url', 'mapurl'}, -- cite map only -- Used by InternetArchiveBot
['MapURL'] = {'map-url', 'mapurl'}, -- cite map only -- Used by InternetArchiveBot
['MapUrlAccess'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
['MapUrlAccess'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
['Minutes'] = 'minutes',
['Minutes'] = 'minutes',
['Mode'] = 'mode',
['Mode'] = 'mode',
['Month'] = 'month', --暫定対応
['NameListStyle'] = 'name-list-style',
['NameListStyle'] = 'name-list-style',
['Network'] = 'network',
['Network'] = 'network',
311行目: 314行目:
['NoTracking'] = {'no-tracking', 'template-doc-demo'},
['NoTracking'] = {'no-tracking', 'template-doc-demo'},
['Number'] = 'number', -- this case only for cite techreport
['Number'] = 'number', -- this case only for cite techreport
['OrigDate'] = {'origdate', 'orig-date', 'orig-year', 'origyear'},
['OrigDate'] = {'orig-date', 'origdate', 'orig-year', 'origyear'},
['Others'] = 'others',
['Others'] = 'others',
['Page'] = {'page', 'p'}, -- Used by InternetArchiveBot
['Page'] = {'page', 'p'}, -- Used by InternetArchiveBot
346行目: 349行目:
['Title'] = 'title', -- Used by InternetArchiveBot
['Title'] = 'title', -- Used by InternetArchiveBot
['TitleLink'] = {'title-link', 'episode-link', 'titlelink', 'episodelink'}, -- Used by InternetArchiveBot
['TitleLink'] = {'title-link', 'episode-link', 'titlelink', 'episodelink'}, -- Used by InternetArchiveBot
['TitleNote'] = {'title-note', 'titlenote', 'department'},
['TitleNote'] = {'title-note', 'department'},
['TitleType'] = {'type', 'medium'},
['TitleType'] = {'type', 'medium'},
['TransChapter'] = {'trans-article', 'transchapter', 'trans-chapter', 'trans-contribution',
['TransChapter'] = {'trans-article', 'trans-chapter', 'trans-contribution',
'trans-entry', 'trans-section'},
'trans-entry', 'trans-section'},
['Transcript'] = 'transcript',
['Transcript'] = 'transcript',
357行目: 360行目:
'trans-periodical', 'trans-website', 'trans-work'},
'trans-periodical', 'trans-website', 'trans-work'},
['TransQuote'] = 'trans-quote',
['TransQuote'] = 'trans-quote',
['TransTitle'] = {'transtitle', 'trans-title'}, -- Used by InternetArchiveBot
['TransTitle'] = 'trans-title', -- Used by InternetArchiveBot
['URL'] = {'url', 'URL'}, -- Used by InternetArchiveBot
['URL'] = {'url', 'URL'}, -- Used by InternetArchiveBot
['UrlAccess'] = {'urlaccess', 'url-access'}, -- Used by InternetArchiveBot
['UrlAccess'] = 'url-access', -- Used by InternetArchiveBot
['UrlStatus'] = {'urlstatus', 'url-status'}, -- Used by InternetArchiveBot
['UrlStatus'] = 'url-status', -- Used by InternetArchiveBot
['UrlStatusDate'] = 'url-status-date',
['UrlStatusDate'] = 'url-status-date',
['Vauthors'] = 'vauthors',
['Vauthors'] = 'vauthors',
385行目: 388行目:
['ContributorList-Mask'] = {'contributor-mask#', 'contributor#-mask'},
['ContributorList-Mask'] = {'contributor-mask#', 'contributor#-mask'},


['EditorList-First'] = {"editorfirst#", "editor#first", "editorgiven#", "editor#given", "editor-first#", "editor#-first", "editor-given#", "editor#-given"},
['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given"},
['EditorList-Last'] = {"editorlast#", "editor#last", "editorsurname#", "editor-last#", "editor#-last", "editor-surname#",
['EditorList-Last'] = {"editor-last#", "editor#-last", "editor-surname#",
"editor#surname", "editor#-surname", "editor#"},
"editor#-surname", "editor#"},
['EditorList-Link'] = {"editorlink#", "editor#link", "editor-link#", "editor#-link"},
['EditorList-Link'] = {"editor-link#", "editor#-link"},
['EditorList-Mask'] = {"editor-mask#", "editor#-mask"},
['EditorList-Mask'] = {"editor-mask#", "editor#-mask"},
1,005行目: 1,008行目:


-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- from: https://unicode.org/Public/emoji/15.0/emoji-zwj-sequences.txt; version: 15.0; 2022-05-06
-- from: https://unicode.org/Public/emoji/15.1/emoji-zwj-sequences.txt; version: 15.1; 2023-06-05
-- table created by: [[:en:Module:Make emoji zwj table]]
-- table created by: [[:en:Module:Make emoji zwj table]]
local emoji_t = { -- indexes are decimal forms of the hex values in U+xxxx
local emoji_t = { -- indexes are decimal forms of the hex values in U+xxxx
[8596] = true, -- U+2194 ↔ left right arrow
[8597] = true, -- U+2195 ↕ up down arrow
[9760] = true, -- U+2620 ☠ skull and crossbones
[9760] = true, -- U+2620 ☠ skull and crossbones
[9792] = true, -- U+2640 ♀ female sign
[9792] = true, -- U+2640 ♀ female sign
1,017行目: 1,022行目:
[10052] = true, -- U+2744 ❄ snowflake
[10052] = true, -- U+2744 ❄ snowflake
[10084] = true, -- U+2764 ❤ heavy black heart
[10084] = true, -- U+2764 ❤ heavy black heart
[10145] = true, -- U+27A1 ➡ black rightwards arrow
[11035] = true, -- U+2B1B ⬛ black large square
[11035] = true, -- U+2B1B ⬛ black large square
[127752] = true, -- U+1F308 🌈 rainbow
[127752] = true, -- U+1F308 🌈 rainbow
1,034行目: 1,040行目:
[128105] = true, -- U+1F469 👩 woman
[128105] = true, -- U+1F469 👩 woman
[128139] = true, -- U+1F48B 💋 kiss mark
[128139] = true, -- U+1F48B 💋 kiss mark
[128165] = true, -- U+1F4A5 💥 collision symbol
[128168] = true, -- U+1F4A8 💨 dash symbol
[128168] = true, -- U+1F4A8 💨 dash symbol
[128171] = true, -- U+1F4AB 💫 dizzy symbol
[128171] = true, -- U+1F4AB 💫 dizzy symbol
1,044行目: 1,051行目:
[128640] = true, -- U+1F680 🚀 rocket
[128640] = true, -- U+1F680 🚀 rocket
[128658] = true, -- U+1F692 🚒 fire engine
[128658] = true, -- U+1F692 🚒 fire engine
[129001] = true, -- U+1F7E9 🟩 large green square
[129003] = true, -- U+1F7EB 🟫 large brown square
[129309] = true, -- U+1F91D 🤝 handshake
[129309] = true, -- U+1F91D 🤝 handshake
[129455] = true, -- U+1F9AF 🦯 probing cane
[129455] = true, -- U+1F9AF 🦯 probing cane
1,054行目: 1,063行目:
[129469] = true, -- U+1F9BD 🦽 manual wheelchair
[129469] = true, -- U+1F9BD 🦽 manual wheelchair
[129489] = true, -- U+1F9D1 🧑 adult
[129489] = true, -- U+1F9D1 🧑 adult
[129490] = true, -- U+1F9D2 🧒 child
[129657] = true, -- U+1FA79 🩹 adhesive bandage
[129657] = true, -- U+1FA79 🩹 adhesive bandage
[129778] = true, -- U+1FAF2 🫲 leftwards hand
[129778] = true, -- U+1FAF2 🫲 leftwards hand
1,073行目: 1,083行目:
local mw_languages_by_tag_t = mw.language.fetchLanguageNames (this_wiki_code, 'all'); -- get a table of language tag/name pairs known to Wikimedia; used for interwiki tests
local mw_languages_by_tag_t = mw.language.fetchLanguageNames (this_wiki_code, 'all'); -- get a table of language tag/name pairs known to Wikimedia; used for interwiki tests
local mw_languages_by_name_t = {};
local mw_languages_by_name_t = {};
-- 日本語版独自: mw_languages_by_name_tのキーは日本語名に対応させず、英語名のみとする
for k, v in pairs (mw_languages_by_tag_t) do -- build a 'reversed' table name/tag language pairs know to MediaWiki; used for |language=
for k, v in pairs (mw.language.fetchLanguageNames ('en', 'all')) do -- build a 'reversed' table name/tag language pairs know to MediaWiki; used for |language=
v = mw.ustring.lower (v); -- lowercase for tag fetch; get name's proper case from mw_languages_by_tag_t[<tag>]
v = mw.ustring.lower (v); -- lowercase for tag fetch; get name's proper case from mw_languages_by_tag_t[<tag>]
if mw_languages_by_name_t[v] then -- when name already in the table
if mw_languages_by_name_t[v] then -- when name already in the table
1,128行目: 1,139行目:


local lang_tag_remap = { -- used for |language= and |script-title= / |script-chapter=
local lang_tag_remap = { -- used for |language= and |script-title= / |script-chapter=
['als'] = 'Tosk Albanian', -- MediaWiki returns Alemannisch
['abq'] = 'アバザ語', -- MediawikiのCLDRでは「Abaza」
['bh'] = 'Bihari', -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri Wikipedia: bh.wikipedia.org
['ae'] = 'アヴェスター語', -- MediawikiのCLDRでは「アヴェスタ語」
['aeb'] = 'アラビア語チュニジア方言', -- MediawikiのCLDRでは「チュニジア・アラビア語」
['bla'] = 'Blackfoot', -- MediaWiki/IANA/ISO 639: Siksika; use en.wiki preferred name
['bn'] = 'Bengali', -- MediaWiki returns Bangla
['afh'] = 'アフリヒリ', -- MediawikiのCLDRでは「アフリヒリ語」
['ca-valencia'] = 'Valencian', -- IETF variant of Catalan
['alq'] = 'アルゴンキン語', -- MediawikiのCLDRでは「Algonquin」
['fkv'] = 'Kven', -- MediaWiki returns Kvensk
['als'] = 'トスク・アルバニア語', -- MediawikiのCLDRでは「アレマン語」
['ilo'] = 'Ilocano', -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['ami'] = 'アミ語', -- MediawikiのCLDRでは「Amis」
['ksh'] = 'Kölsch', -- MediaWiki: Colognian; use IANA/ISO 639 preferred name
['arc'] = '帝国アラム語', -- MediawikiのCLDRでは「アラム語」
['arq'] = 'アラビア語アルジェリア方言', -- MediawikiのCLDRでは「アルジェリア・アラビア語」
['ksh-x-colog'] = 'Colognian', -- override MediaWiki ksh; no IANA/ISO 639 code for Colognian; IETF private code created at Module:Lang/data
['ary'] = 'アラビア語モロッコ方言', -- MediawikiのCLDRでは「モロッコ・アラビア語」
['mis-x-ripuar'] = 'Ripuarian', -- override MediaWiki ksh; no IANA/ISO 639 code for Ripuarian; IETF private code created at Module:Lang/data
['arz'] = 'アラビア語エジプト方言', -- MediawikiのCLDRでは「エジプト・アラビア語」
['nan-tw'] = 'Taiwanese Hokkien', -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese and support en.wiki preferred name
['azb'] = '南アゼルバイジャン語', -- MediawikiのCLDRでは「South Azerbaijani」
['bal'] = 'バローチー語', -- MediawikiのCLDRでは「バルーチー語」
['bbc'] = 'バタク・トバ語', -- MediawikiのCLDRでは「トバ・バタク語」
['bcl'] = '中央ビコール語', -- MediawikiのCLDRでは「ビコール語」
['bh'] = 'ビハール語', -- MediawikiのCLDRでは「Bhojpuri」
['bik'] = 'ビコール語', -- MediawikiのCLDRでは「ビコル語」
['bin'] = 'エド語', -- MediawikiのCLDRでは「ビニ語」
['bla'] = 'ブラックフット語', -- MediawikiのCLDRでは「シクシカ語」
['bra'] = 'ブラジュ・バーシャー語', -- MediawikiのCLDRでは「ブラジ語」
['brh'] = 'ブラーフーイー語', -- MediawikiのCLDRでは「ブラフイ語」
['bto'] = 'イリガ・ビコール語', -- MediawikiのCLDRでは「Iriga Bicolano」
['bug'] = 'ブギス語', -- MediawikiのCLDRでは「ブギ語」
['bxr'] = 'ロシアブリヤート語', -- MediawikiのCLDRでは「ブリヤート語」
['ca'] = 'カタルーニャ語', -- MediawikiのCLDRでは「カタロニア語」
['ca-valencia'] = 'バレンシア語', -- IETF variant of Catalan
['cgg'] = 'キガ語', -- MediawikiのCLDRでは「チガ語」
['chn'] = 'チヌーク・ジャーゴン', -- MediawikiのCLDRでは「チヌーク混成語」
['ckb'] = 'ソラニー', -- MediawikiのCLDRでは「中央クルド語」
['cnr'] = 'モンテネグロ語', -- MediawikiのCLDRでは「Montenegrin」
['cu'] = '教会スラヴ語', -- MediawikiのCLDRでは「教会スラブ語」
['dag'] = 'ダバニ語', -- MediawikiのCLDRでは「Dagbani」
['diq'] = 'ディムリ語', -- MediawikiのCLDRでは「ザザキ語」
['dty'] = 'ドテリ語', -- MediawikiのCLDRでは「Doteli」
['dum'] = '中期オランダ語', -- MediawikiのCLDRでは「中世オランダ語」
['egy'] = 'エジプト語', -- MediawikiのCLDRでは「古代エジプト語」
['el'] = 'ギリシア語', -- MediawikiのCLDRでは「ギリシャ語」
['eo'] = 'エスペラント', -- MediawikiのCLDRでは「エスペラント語」
['fan'] = 'ファン語', -- MediawikiのCLDRでは「ファング語」
['fat'] = 'ファンティ語', -- MediawikiのCLDRでは「ファンティー語」
['ff'] = 'フラニ語', -- MediawikiのCLDRでは「フラ語」
['fil'] = 'フィリピン語', -- MediawikiのCLDRでは「フィリピノ語」
['fit'] = 'メアンキエリ', -- MediawikiのCLDRでは「トルネダール・フィンランド語」
['fkv'] = 'クヴェン語', -- ISO 639-3で定義されているが、MediawikiのCLDRには存在しない
['frm'] = '中世フランス語', -- MediawikiのCLDRでは「中期フランス語」
['frs'] = 'オストフリース語', -- MediawikiのCLDRでは「東フリジア語」
['gbz'] = 'ダリー語(ゾロアスター教)', -- MediawikiのCLDRでは「ダリー語(ゾロアスター教)」
['gcr'] = 'フランス領ギアナ・クレオール語', -- MediawikiのCLDRでは「Guianan Creole」
['gom-deva'] = 'ゴア・コンカニ語(デーバナーガリー文字)', -- MediawikiのCLDRでは「ゴア・コンカニ語(デーバナーガリー文字)」
['gom-latn'] = 'ゴア・コンカニ語(ラテン文字)', -- MediawikiのCLDRでは「ゴア・コンカニ語(ラテン文字)」
['grc'] = '古代ギリシア語', -- MediawikiのCLDRでは「古代ギリシャ語」
['guw'] = 'グン語', -- MediawikiのCLDRでは「Gun」
['hmn'] = 'ミャオ語', -- MediawikiのCLDRでは「フモン語」
['ht'] = 'ハイチ語', -- MediawikiのCLDRでは「ハイチ・クレオール語」
['hup'] = 'フーパ語', -- MediawikiのCLDRでは「フパ語」
['hyw'] = '西アルメニア語', -- MediawikiのCLDRでは「Western Armenian」
['ii'] = '四川彝語', -- MediawikiのCLDRでは「四川イ語」
['iu'] = 'イヌクティトゥット語', -- MediawikiのCLDRでは「イヌクティトット語」
['jbo'] = 'ロジバン', -- MediawikiのCLDRでは「ロジバン語」
['jpr'] = 'ジーディ', -- MediawikiのCLDRでは「ユダヤ・ペルシア語」
['jrb'] = 'ユダヤ・アラビア語群', -- MediawikiのCLDRでは「ユダヤ・アラビア語」
['jut'] = 'ユトランド方言', -- MediawikiのCLDRでは「ユトランド語」
['ka'] = 'グルジア語', -- MediawikiのCLDRでは「ジョージア語」
['kac'] = 'ジンポー語', -- MediawikiのCLDRでは「カチン語」
['kbp'] = 'カビエ語', -- MediawikiのCLDRでは「Kabiye」
['kfo'] = 'コロ語(コートジボワール)', -- MediawikiのCLDRでは「コロ語」
['knn'] = 'マハーラーシュトリアン・コンカニ語', -- MediawikiのCLDRでは「マラーティーコンカニ語」
['ko'] = '朝鮮語', -- MediawikiのCLDRでは「韓国語」
['ksh-x-colog'] = 'ケルン語', -- 英語版でKölschとColognianを区別するために追加されたもの
['ksw'] = 'スゴー・カレン語', -- MediawikiのCLDRでは「S'gaw Karen」
['lad'] = 'ラディーノ語', -- MediawikiのCLDRでは「ラディノ語」
['lld'] = 'ラディン語', -- MediawikiのCLDRでは「Ladin」
['lo'] = 'ラーオ語', -- MediawikiのCLDRでは「ラオ語」
['lua'] = 'ルバ語', -- MediawikiのCLDRでは「ルバ・ルルア語」
['man'] = 'マンディング諸語', -- MediawikiのCLDRでは「マンディンゴ語」
['mhr'] = '牧地マリ語', -- MediawikiのCLDRでは「東部マリ語」
['mis'] = 'その他の言語', -- MediawikiのCLDRでは「unsupported language」
['mis-x-ripuar'] = 'リプアーリ語', -- override MediaWiki ksh; no IANA/ISO 639 code for Ripuarian; IETF private code created at Module:Lang/data
['mnc'] = '満洲語', -- MediawikiのCLDRでは「満州語」
['mnw'] = 'モン語', -- MediawikiのCLDRでは「Mon」
['mo'] = 'モルドバ語', -- MediawikiのCLDRでは「Moldovan」
['moh'] = 'モホーク語', -- MediawikiのCLDRでは「モーホーク語」
['mus'] = 'マスコギ語', -- MediawikiのCLDRでは「クリーク語」
['mvi'] = '宮古語', -- MediawikiのCLDRでは「Miyako」
['my'] = 'ビルマ語', -- MediawikiのCLDRでは「ミャンマー語」
['nah'] = 'ナワ語群', -- MediawikiのCLDRでは「Nāhuatl」
['nan-tw'] = '台湾語', -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese and support en.wiki preferred name
['nb'] = 'ノルウェー語(ブークモール)', -- MediawikiのCLDRでは「ノルウェー語(ブークモール)」
['new'] = 'ネパール・バサ語', -- MediawikiのCLDRでは「ネワール語」
['niu'] = 'ニウエ語', -- MediawikiのCLDRでは「ニウーエイ語」
['nn'] = 'ノルウェー語(ニーノシュク)', -- MediawikiのCLDRでは「ノルウェー語(ニーノシュク)」
['nrm'] = 'ナロム語', -- MediawikiのCLDRでは「ノルマン語」
['nso'] = '北ソト語', -- MediawikiのCLDRでは「北部ソト語」
['nwc'] = '古典ネパール・バサ語', -- MediawikiのCLDRでは「古典ネワール語」
['ny'] = 'チェワ語', -- MediawikiのCLDRでは「ニャンジャ語」
['olo'] = 'リッヴィ語', -- MediawikiのCLDRでは「Livvi-Karelian」
['or'] = 'オリヤー語', -- MediawikiのCLDRでは「オディア語」
['osx'] = '古ザクセン語', -- MediawikiのCLDRでは「Old Saxon」
['ota'] = 'オスマン語', -- MediawikiのCLDRでは「オスマントルコ語」
['pa'] = 'パンジャーブ語', -- MediawikiのCLDRでは「パンジャブ語」
['pdc'] = 'ペンシルベニアドイツ語', -- MediawikiのCLDRでは「ペンシルベニア・ドイツ語」
['pih'] = 'ピトケアン語', -- MediawikiのCLDRでは「ノーフォーク語・ピトケアン語」
['pnb'] = '西パンジャーブ語', -- MediawikiのCLDRでは「Western Punjabi」
['pnt'] = 'ギリシア語ポントス方言', -- MediawikiのCLDRでは「ポントス・ギリシャ語」
['pro'] = '古プロヴァンス語', -- MediawikiのCLDRでは「古期プロバンス語」
['ps'] = 'パシュトー語', -- MediawikiのCLDRでは「パシュトゥー語」
['pwn'] = 'パイワン語', -- MediawikiのCLDRでは「Paiwan」
['rap'] = 'ラパ・ヌイ語', -- MediawikiのCLDRでは「ラパヌイ語」
['rmy'] = 'ヴラックス・ロマ語', -- MediawikiのCLDRでは「ロマ語」
['rom'] = 'ロマ語', -- MediawikiのCLDRでは「ロマーニー語」
['ruq'] = 'メグレノ・ルーマニア語', -- MediawikiのCLDRでは「Megleno-Romanian」
['rw'] = 'ルワンダ語', -- MediawikiのCLDRでは「キニアルワンダ語」
['rys'] = '八重山語', -- MediawikiのCLDRでは「Yaeyama」
['ryu'] = '沖縄語', -- MediawikiのCLDRでは「Okinawan」
['sa'] = 'サンスクリット', -- MediawikiのCLDRでは「サンスクリット語」
['sat'] = 'サンタル語', -- MediawikiのCLDRでは「サンターリー語」
['se'] = '北部サーミ語', -- MediawikiのCLDRでは「北サーミ語」
['sh'] = 'セルビア・クロアチア語', -- MediawikiのCLDRでは「セルボ・クロアチア語」
['shi'] = 'シルハ語', -- MediawikiのCLDRでは「タシルハイト語」
['shu'] = 'アラビア語チャド方言', -- MediawikiのCLDRでは「チャド・アラビア語」
['skr'] = 'サライキ語', -- MediawikiのCLDRでは「Saraiki」
['sma'] = '南部サーミ語', -- MediawikiのCLDRでは「南サーミ語」
['srn'] = 'スラナン語', -- MediawikiのCLDRでは「スリナム語」
['srr'] = 'セレール語', -- MediawikiのCLDRでは「セレル語」
['st'] = 'ソト語', -- MediawikiのCLDRでは「南部ソト語」
['stq'] = '東フリジア語', -- MediawikiのCLDRでは「ザーターフリジア語」
['swb'] = 'マオレ・コモロ語', -- MediawikiのCLDRでは「コモロ語」
['syr'] = 'シリア語(マクロランゲージ)', -- MediawikiのCLDRでは「シリア語」
['szy'] = 'サキザヤ語', -- MediawikiのCLDRでは「Sakizaya」
['tay'] = 'タイヤル語', -- MediawikiのCLDRでは「Tayal」
['ti'] = 'ティグリニャ語', -- MediawikiのCLDRでは「ティグリニア語」
['tiv'] = 'ティヴ語', -- MediawikiのCLDRでは「ティブ語」
['tmh'] = 'トゥアレグ語', -- MediawikiのCLDRでは「タマシェク語」
['to'] = 'トンガ語(ポリネシア)', -- MediawikiのCLDRでは「トンガ語」
['tog'] = 'トンガ語(ニアサ)', -- MediawikiのCLDRでは「トンガ語(ニアサ)」
['tpi'] = 'トク・ピシン', -- MediawikiのCLDRでは「トク・ピシン語」
['trv'] = 'セデック語', -- MediawikiのCLDRでは「タロコ語」
['tsi'] = 'ツィムシアン語', -- MediawikiのCLDRでは「チムシュ語」
['ttt'] = 'ムスリム・タート語', -- MediawikiのCLDRでは「ムスリム・タタール語」
['tyv'] = 'トゥバ語', -- MediawikiのCLDRでは「トゥヴァ語」
['uga'] = 'ウガリット語', -- MediawikiのCLDRでは「ウガリト語」
['und'] = '不明言語', -- MediawikiのCLDRでは「言語不明」
['ve'] = 'ヴェンダ語', -- MediawikiのCLDRでは「ベンダ語」
['vo'] = 'ヴォラピュク', -- MediawikiのCLDRでは「ヴォラピュク語」
['yao'] = 'ヤオ語(バントゥー)', -- MediawikiのCLDRでは「ヤオ語」
['yoi'] = '与那国語', -- MediawikiのCLDRでは「Yonaguni」
['yox'] = '与論島方言', -- MediawikiのCLDRでは「Yoron」
['yue'] = '粤語', -- MediawikiのCLDRでは「広東語」
['zap'] = 'サポテク語', -- MediawikiのCLDRでは「サポテカ語」
['zea'] = 'ゼーランド語', -- MediawikiのCLDRでは「ゼーラント語」
['zgh'] = '標準モロッコ・タマジクト語', -- MediawikiのCLDRでは「標準モロッコ タマジクト語」
['zza'] = 'ザザキ語', -- MediawikiのCLDRでは「ザザ語」
}
}


local lang_name_remap = { -- used for |language=; names require proper capitalization; tags must be lowercase
local lang_name_remap = { -- used for |language=; names require proper capitalization; tags must be lowercase
['alemannisch'] = {'Swiss German', 'gsw'}, -- not an ISO or IANA language name; MediaWiki uses 'als' as a subdomain name for Alemannic Wikipedia: als.wikipedia.org
['alemannic'] = {'スイスドイツ語', 'gsw'}, -- ISO 639-2, -3 alternate for Swiss German; MediaWiki mediawiki returns Alemannic for gsw; en.wiki preferred name
['alemannisch'] = {'スイスドイツ語', 'gsw'}, -- not an ISO or IANA language name; MediaWiki uses 'als' as a subdomain name for Alemannic Wikipedia: als.wikipedia.org
['bangla'] = {'Bengali', 'bn'}, -- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap
['bengali'] = {'Bengali', 'bn'}, -- MediaWiki doesn't use exonym so here we provide correct language name and 639-1 code
--['bangla'] = {'ベンガル語', 'bn'}, -- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap
['bhojpuri'] = {'Bhojpuri', 'bho'}, -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri Wikipedia: bh.wikipedia.org
['bengali'] = {'ベンガル語', 'bn'}, -- MediaWiki doesn't use exonym so here we provide correct language name and 639-1 code
['bihari'] = {'Bihari', 'bh'}, -- MediaWiki replaces 'Bihari' with 'Bhojpuri' so 'Bihari' cannot be found
['bhojpuri'] = {'ボージュプリー語', 'bho'}, -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri Wikipedia: bh.wikipedia.org
['blackfoot'] = {'Blackfoot', 'bla'}, -- MediaWiki/IANA/ISO 639: Siksika; use en.wiki preferred name
['bihari'] = {'ビハール語', 'bh'}, -- MediaWiki replaces 'Bihari' with 'Bhojpuri' so 'Bihari' cannot be found
['colognian'] = {'Colognian', 'ksh-x-colog'}, -- MediaWiki preferred name for ksh
['blackfoot'] = {'ブラックフット語', 'bla'}, -- MediaWiki/IANA/ISO 639: Siksika; use en.wiki preferred name
['ilocano'] = {'Ilocano', 'ilo'}, -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['colognian'] = {'ケルン語', 'ksh-x-colog'}, -- MediaWiki preferred name for ksh
['kolsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name (use non-diacritical o instead of umlaut ö)
['ilocano'] = {'イロカノ語', 'ilo'}, -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['kölsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name
['kolsch'] = {'ケルン語', 'ksh'}, -- use IANA/ISO 639 preferred name (use non-diacritical o instead of umlaut ö)
['kven'] = {'Kven', 'fkv'}, -- Unicode CLDR have decided not to support English language name for these two...
['kölsch'] = {'ケルン語', 'ksh'}, -- use IANA/ISO 639 preferred name
['kvensk'] = {'Kven', 'fkv'}, -- ...they say to refer to IANA registry for English names
['kven'] = {'クヴェン語', 'fkv'}, -- Unicode CLDR have decided not to support English language name for these two...
['ripuarian'] = {'Ripuarian', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639
['kvensk'] = {'クヴェン語', 'fkv'}, -- ...they say to refer to IANA registry for English names
['taiwanese hokkien'] = {'Taiwanese Hokkien', 'nan-tw'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese
['ripuarian'] = {'リプアーリ語', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639
['serbian (cyrillic script)'] = {'セルビア語(キリル文字)', 'sr-cyrl'}, -- special case to get correct tag when |language=sr-ec
['tosk albanian'] = {'Tosk Albanian', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found
['serbian (latin script)'] = {'セルビア語(ラテン文字)', 'sr-latn'}, -- special case to get correct tag when |language=sr-el
['valencian'] = {'Valencian', 'ca-valencia'}, -- variant of Catalan; categorizes as Valencian
['swiss german'] = {'スイスドイツ語', 'gsw'},
['taiwanese hokkien'] = {'台湾語', 'nan-tw'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese
['tosk albanian'] = {'トスク・アルバニア語', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found
['valencian'] = {'バレンシア語', 'ca-valencia'}, -- variant of Catalan; categorizes as Valencian
}
}


1,167行目: 1,323行目:


local prop_cats = {
local prop_cats = {
['foreign-lang-source'] = 'CS1 $1-language sources ($2)', -- |language= categories; $1 is foreign-language name, $2 is ISO639-1 code
--['foreign-lang-source'] = 'CS1 $1-language sources ($2)', -- |language= categories; $1 is foreign-language name, $2 is ISO639-1 code
['foreign-lang-source-2'] = 'CS1 foreign language sources (ISO 639-2)|$1', -- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code used as a sort key
--['foreign-lang-source-2'] = 'CS1 foreign language sources (ISO 639-2)|$1', -- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code used as a sort key
['jul-greg-uncertainty'] = 'CS1: Julian–Gregorian uncertainty', -- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926
--['jul-greg-uncertainty'] = 'CS1: Julian–Gregorian uncertainty', -- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926
['local-lang-source'] = 'CS1 $1-language sources ($2)', -- |language= categories; $1 is local-language name, $2 is ISO639-1 code; not emitted when local_lang_cat_enable is false
--['local-lang-source'] = 'CS1 $1-language sources ($2)', -- |language= categories; $1 is local-language name, $2 is ISO639-1 code; not emitted when local_lang_cat_enable is false
['location-test'] = 'CS1 location test',
--['location-test'] = 'CS1 location test',
['long-vol'] = 'CS1: long volume value', -- probably temporary cat to identify scope of |volume= values longer than 4 characters
--['long-vol'] = 'CS1: long volume value', -- probably temporary cat to identify scope of |volume= values longer than 4 characters
['script'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
--['script'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
['tracked-param'] = 'CS1 tracked parameter: $1', -- $1 is base (enumerators removed) parameter name
--['tracked-param'] = 'CS1 tracked parameter: $1', -- $1 is base (enumerators removed) parameter name
['year-ja'] = 'CS1テンプレート: YYYY年形式の日付', -- 日本語版独自: 日付を「YYYY年」の形式の指定してた場合に、自動生成するアンカーに「年」が付くバグが存在した
['year-range-abbreviated'] = 'CS1: abbreviated year range', -- probably temporary cat to identify scope of |date=, |year= values using YYYY–YY form
--['year-range-abbreviated'] = 'CS1: abbreviated year range', -- probably temporary cat to identify scope of |date=, |year= values using YYYY–YY form
}
}


1,682行目: 1,839行目:
anchor = 'missing_periodical',
anchor = 'missing_periodical',
category = 'テンプレート呼び出しエラーのあるページ/CS1/periodical',
category = 'テンプレート呼び出しエラーのあるページ/CS1/periodical',
hidden = true
hidden = false
},
},
err_missing_pipe = {
err_missing_pipe = {
1,709行目: 1,866行目:
},
},
err_param_unknown_empty = {
err_param_unknown_empty = {
message = '不明な引数$2が空白で指定されています。', -- $1 is 's' or empty space; $2 is empty unknown param list
message = '不明な引数$1が空白で指定されています。', -- 日本語版独自仕様: プレースホルダーは1個だけ用いる
anchor = 'param_unknown_empty',
anchor = 'param_unknown_empty',
category = 'テンプレート呼び出しエラーのあるページ/CS1/不明な引数',
category = 'テンプレート呼び出しエラーのあるページ/CS1/不明な引数',
1,783行目: 1,940行目:
]]
]]


maint_ambiguous_date_format = { -- 日本語版独自: 2002-03のように区切り文字にハイフンマイナスを使用し、年月とも年の範囲とも解釈可能な日付を指定した場合に付与する
maint_archived_copy = {
message = nil,
message = nil,
anchor = 'archived_copy',
anchor = 'ambiguous_date_format',
category = 'CS1 maint: archived copy as title',
category = 'CS1メンテナンス: 曖昧な日付のフォーマット',
hidden = true,
hidden = true,
},
},
maint_authors = {
maint_archived_copy = {
message = nil,
message = nil,
anchor = 'authors',
anchor = 'archived_copy',
category = 'CS1 maint: uses authors parameter',
category = 'CS1メンテナンス: archived copy as title',
hidden = true,
hidden = true,
},
},
1,798行目: 1,955行目:
message = nil,
message = nil,
anchor = 'bibcode',
anchor = 'bibcode',
category = 'CS1 maint: bibcode',
category = 'CS1メンテナンス: bibcode',
hidden = true,
hidden = true,
},
},
1,804行目: 1,961行目:
message = nil,
message = nil,
anchor = 'location_no_publisher',
anchor = 'location_no_publisher',
category = 'CS1 maint: location missing publisher',
category = 'CS1メンテナンス: location missing publisher',
hidden = true,
hidden = true,
},
},
1,810行目: 1,967行目:
message = nil,
message = nil,
anchor = 'bot:_unknown',
anchor = 'bot:_unknown',
category = 'CS1 maint: bot: original URL status unknown',
category = 'CS1メンテナンス: bot: original URL status unknown',
hidden = true,
hidden = true,
},
},
1,816行目: 1,973行目:
message = nil,
message = nil,
anchor = 'date_auto_xlated',
anchor = 'date_auto_xlated',
category = 'CS1 maint: date auto-translated',
category = 'CS1メンテナンス: date auto-translated',
hidden = true,
hidden = true,
},
},
1,822行目: 1,979行目:
message = nil,
message = nil,
anchor = 'date_format',
anchor = 'date_format',
category = 'CS1 maint: date format',
category = 'CS1メンテナンス: date format',
hidden = true,
hidden = true,
},
},
1,828行目: 1,985行目:
message = nil,
message = nil,
anchor = 'date_year',
anchor = 'date_year',
category = 'CS1 maint: date and year',
category = 'CS1メンテナンス: date and year',
hidden = true,
hidden = true,
},
},
1,834行目: 1,991行目:
message = nil,
message = nil,
anchor = 'doi_ignore',
anchor = 'doi_ignore',
category = 'CS1 maint: ignored DOI errors',
category = 'CS1メンテナンス: ignored DOI errors',
hidden = true,
hidden = true,
},
},
1,840行目: 1,997行目:
message = nil,
message = nil,
anchor = 'doi_inactive',
anchor = 'doi_inactive',
category = 'CS1 maint: DOI inactive',
category = 'CS1メンテナンス: DOI inactive',
hidden = true,
hidden = true,
},
},
1,846行目: 2,003行目:
message = nil,
message = nil,
anchor = 'doi_inactive_dated',
anchor = 'doi_inactive_dated',
category = 'CS1 maint: DOI inactive as of $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string
category = 'CS1メンテナンス: DOI inactive as of $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string
hidden = true,
hidden = true,
},
},
1,852行目: 2,009行目:
message = nil,
message = nil,
anchor = 'extra_punct',
anchor = 'extra_punct',
category = 'CS1 maint: extra punctuation',
category = 'CS1メンテナンス: extra punctuation',
hidden = true,
hidden = true,
},
},
1,858行目: 2,015行目:
message = nil,
message = nil,
anchor = 'ignore_isbn_err',
anchor = 'ignore_isbn_err',
category = 'CS1 maint: ignored ISBN errors',
category = 'CS1メンテナンス: ignored ISBN errors',
hidden = true,
hidden = true,
},
},
1,864行目: 2,021行目:
message = nil,
message = nil,
anchor = 'ignore_issn',
anchor = 'ignore_issn',
category = 'CS1 maint: ignored ISSN errors',
category = 'CS1メンテナンス: ignored ISSN errors',
hidden = true,
hidden = true,
},
},
1,870行目: 2,027行目:
message = nil,
message = nil,
anchor = 'jfm_format',
anchor = 'jfm_format',
category = 'CS1 maint: JFM format',
category = 'CS1メンテナンス: JFM format',
hidden = true,
hidden = true,
},
},
1,876行目: 2,033行目:
message = nil,
message = nil,
anchor = 'location',
anchor = 'location',
category = 'CS1 maint: location',
category = 'CS1メンテナンス: location',
hidden = true,
},
maint_month = { -- 日本語版独自
message = nil,
anchor = 'month',
category = 'CS1メンテナンス: month',
hidden = true,
hidden = true,
},
},
1,882行目: 2,045行目:
message = nil,
message = nil,
anchor = 'mr_format',
anchor = 'mr_format',
category = 'CS1 maint: MR format',
category = 'CS1メンテナンス: MR format',
hidden = true,
hidden = true,
},
},
1,888行目: 2,051行目:
message = nil,
message = nil,
anchor = 'mult_names',
anchor = 'mult_names',
category = 'CS1 maint: multiple names: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
category = 'CS1メンテナンス: multiple names: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
hidden = true,
},
},
1,894行目: 2,057行目:
message = nil,
message = nil,
anchor = 'numeric_names',
anchor = 'numeric_names',
category = 'CS1 maint: numeric names: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
category = 'CS1メンテナンス: numeric names: $1', -- $1 is '<name>s list'; gets value from special_case_translation table
hidden = true,
},
maint_omitted_zero_in_ymd_date = { -- 日本語版独自: 英語版ではymd形式の日付で先頭の0を省略できない
message = nil,
anchor = 'omitted_zero_in_ymd_date',
category = 'CS1メンテナンス: 先頭の0を省略したymd形式の日付',
hidden = true,
hidden = true,
},
},
1,900行目: 2,069行目:
message = nil,
message = nil,
anchor = 'others',
anchor = 'others',
category = 'CS1 maint: others',
category = 'CS1メンテナンス: others',
hidden = true,
hidden = true,
},
},
1,906行目: 2,075行目:
message = nil,
message = nil,
anchor = 'others_avm',
anchor = 'others_avm',
category = 'CS1 maint: others in cite AV media (notes)',
category = 'CS1メンテナンス: others in cite AV media (notes)',
hidden = true,
hidden = true,
},
},
1,912行目: 2,081行目:
message = nil,
message = nil,
anchor = 'overridden',
anchor = 'overridden',
category = 'CS1 maint: overridden setting',
category = 'CS1メンテナンス: overridden setting',
hidden = true,
hidden = true,
},
},
1,918行目: 2,087行目:
message = nil,
message = nil,
anchor = 'embargo',
anchor = 'embargo',
category = 'CS1 maint: PMC embargo expired',
category = 'CS1メンテナンス: PMC embargo expired',
hidden = true,
hidden = true,
},
},
1,924行目: 2,093行目:
message = nil,
message = nil,
anchor = 'pmc_format',
anchor = 'pmc_format',
category = 'CS1 maint: PMC format',
category = 'CS1メンテナンス: PMC format',
hidden = true,
hidden = true,
},
},
1,930行目: 2,099行目:
message = nil,
message = nil,
anchor = 'postscript',
anchor = 'postscript',
category = 'CS1 maint: postscript',
category = 'CS1メンテナンス: postscript',
hidden = true,
hidden = true,
},
},
1,936行目: 2,105行目:
message = nil,
message = nil,
anchor = 'ref_default',
anchor = 'ref_default',
category = 'CS1 maint: ref duplicates default',
category = 'CS1メンテナンス: ref duplicates default',
hidden = true,
hidden = true,
},
},
maint_ref_harv = {
message = nil,
anchor = 'ref_harv',
category = 'CS1メンテナンス: ref=harv',
hidden = true,
},
maint_unfit = {
maint_unfit = {
message = nil,
message = nil,
anchor = 'unfit',
anchor = 'unfit',
category = 'CS1 maint: unfit URL',
category = 'CS1メンテナンス: unfit URL',
hidden = true,
hidden = true,
},
},
1,948行目: 2,123行目:
message = nil,
message = nil,
anchor = 'unknown_lang',
anchor = 'unknown_lang',
category = 'CS1 maint: unrecognized language',
category = 'CS1メンテナンス: unrecognized language',
hidden = true,
hidden = true,
},
},
1,954行目: 2,129行目:
message = nil,
message = nil,
anchor = 'untitled',
anchor = 'untitled',
category = 'CS1 maint: untitled periodical',
category = 'CS1メンテナンス: untitled periodical',
hidden = true,
hidden = true,
},
},
1,960行目: 2,135行目:
message = nil,
message = nil,
anchor = 'url_status',
anchor = 'url_status',
category = 'CS1 maint: url-status',
category = 'CS1メンテナンス: url-status',
hidden = true,
hidden = true,
},
},
1,966行目: 2,141行目:
message = nil,
message = nil,
anchor = 'zbl',
anchor = 'zbl',
category = 'CS1 maint: Zbl',
category = 'CS1メンテナンス: Zbl',
hidden = true,
hidden = true,
},
},
}
}


--[[--------------------------< I D _ L I M I T S _ D A T A _ T >----------------------------------------------

fetch id limits for certain identifiers from c:Data:CS1/Identifier limits.tab. This source is a json tabular
data file maintained at wikipedia commons. Convert the json format to a table of k/v pairs.

The values from <id_limits_data_t> are used to set handle.id_limit.

]]

local id_limits_data_t = {};
for _, limit_t in ipairs (mw.ext.data.get ("CS1/Identifier limits.tab").data) do
id_limits_data_t[limit_t[1]] = limit_t[2]; -- <limit[1]> is identifier; <limit[2]> is upper limit for that identifier
end




2,230行目: 2,420行目:
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 9999999999, -- 10-digits
id_limit = id_limits_data_t.OCLC or 0,
},
},
['OL'] = {
['OL'] = {
2,254行目: 2,444行目:
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 23010000,
id_limit = id_limits_data_t.OSTI or 0,
custom_access = 'osti-access',
custom_access = 'osti-access',
},
},
2,268行目: 2,458行目:
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 10500000,
id_limit = id_limits_data_t.PMC or 0,
access = 'free', -- free to read
access = 'free', -- free to read
},
},
2,281行目: 2,471行目:
encode = false,
encode = false,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 37900000,
id_limit = id_limits_data_t.PMID or 0,
},
},
['RFC'] = {
['RFC'] = {
2,293行目: 2,483行目:
encode = false,
encode = false,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 9300,
id_limit = id_limits_data_t.RFC or 0,
access = 'free', -- free to read
access = 'free', -- free to read
},
},
2,315行目: 2,505行目:
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 4600000,
id_limit = id_limits_data_t.SSRN or 0,
custom_access = 'ssrn-access',
custom_access = 'ssrn-access',
},
},
2,328行目: 2,518行目:
encode = false,
encode = false,
separator = '&nbsp;',
separator = '&nbsp;',
id_limit = 262000000,
id_limit = id_limits_data_t.S2CID or 0,
custom_access = 's2cid-access',
custom_access = 's2cid-access',
},
},