<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.null-base.com/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3ACitation%2FShow_date%2FConfiguration</id>
	<title>モジュール:Citation/Show date/Configuration - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.null-base.com/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3ACitation%2FShow_date%2FConfiguration"/>
	<link rel="alternate" type="text/html" href="https://wiki.null-base.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Show_date/Configuration&amp;action=history"/>
	<updated>2026-06-17T09:58:36Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.null-base.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Show_date/Configuration&amp;diff=557&amp;oldid=prev</id>
		<title>Null base: 1版をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.null-base.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Show_date/Configuration&amp;diff=557&amp;oldid=prev"/>
		<updated>2025-10-23T14:01:36Z</updated>

		<summary type="html">&lt;p&gt;1版をインポートしました&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年10月23日 (木) 23:01時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Null base</name></author>
	</entry>
	<entry>
		<id>https://wiki.null-base.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Show_date/Configuration&amp;diff=556&amp;oldid=prev</id>
		<title>ja&gt;Mt.Asahidake: 「モジュール:Citation/Show date/Configuration」を保護しました: 影響が特に大きいテンプレート ([編集=拡張承認された利用者と管理者に許可] (無期限) [移動=拡張承認された利用者と管理者に許可] (無期限))</title>
		<link rel="alternate" type="text/html" href="https://wiki.null-base.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Show_date/Configuration&amp;diff=556&amp;oldid=prev"/>
		<updated>2025-07-26T10:30:27Z</updated>

		<summary type="html">&lt;p&gt;「&lt;a href=&quot;/%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Show_date/Configuration&quot; title=&quot;モジュール:Citation/Show date/Configuration&quot;&gt;モジュール:Citation/Show date/Configuration&lt;/a&gt;」を保護しました: &lt;a href=&quot;/index.php?title=WP:HRT&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:HRT (存在しないページ)&quot;&gt;影響が特に大きいテンプレート&lt;/a&gt; ([編集=拡張承認された利用者と管理者に許可] (無期限) [移動=拡張承認された利用者と管理者に許可] (無期限))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local lang_obj = mw.language.getContentLanguage();								-- make a language object for the local language; used here for languages and dates &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T T I N G S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
boolean settings used to control various things.  these setting located here to make them easy to find&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
																				-- these settings local to this module only&lt;br /&gt;
local local_digits_from_mediawiki = false;										-- for i18n; when true, module fills date_names[&amp;#039;local_digits&amp;#039;] from MediaWiki; manual fill required else; always false at en.wiki&lt;br /&gt;
local local_date_names_from_mediawiki = false;									-- for i18n; when true, module fills date_names[&amp;#039;local&amp;#039;][&amp;#039;long&amp;#039;] and date_names[&amp;#039;local&amp;#039;][&amp;#039;short&amp;#039;] from MediaWiki;&lt;br /&gt;
																				-- manual translation required else; ; always false at en.wiki&lt;br /&gt;
&lt;br /&gt;
																				-- these settings exported to other modules&lt;br /&gt;
local date_name_auto_xlate_enable = false;										-- when true translates English month-names to the local-wiki&amp;#039;s language month names; always false at en.wiki&lt;br /&gt;
local date_digit_auto_xlate_enable = false;										-- when true translates Western date digit to the local-wiki&amp;#039;s language digits (date_names[&amp;#039;local_digits&amp;#039;]); always false at en.wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M E S S A G E S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Translation table&lt;br /&gt;
&lt;br /&gt;
The following contains fixed text that may be output as part of a citation.&lt;br /&gt;
This is separated from the main body to aid in future translations of this&lt;br /&gt;
module.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local messages = {&lt;br /&gt;
	[&amp;#039;mismatch&amp;#039;] = &amp;#039;&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D A T E _ N A M E S &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This table of tables lists local language date names and fallback English date names.&lt;br /&gt;
The code in Date_validation will look first in the local table for valid date names.&lt;br /&gt;
If date names are not found in the local table, the code will look in the English table.&lt;br /&gt;
&lt;br /&gt;
Because citations can be copied to the local wiki from en.wiki, the English is&lt;br /&gt;
required when the date-name translation function date_name_xlate() is used.&lt;br /&gt;
&lt;br /&gt;
In these tables, season numbering is defined by&lt;br /&gt;
Extended Date/Time Format (EDTF) Specification (https://www.loc.gov/standards/datetime/)&lt;br /&gt;
which became part of ISO 8601 in 2019.  See &amp;#039;§Sub-year groupings&amp;#039;. The standard&lt;br /&gt;
defines various divisions using numbers 21-41. CS1|2 only supports generic seasons.&lt;br /&gt;
EDTF does support the distinction between north and south hemisphere seasons&lt;br /&gt;
but CS1|2 has no way to make that distinction.&lt;br /&gt;
&lt;br /&gt;
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)&lt;br /&gt;
&lt;br /&gt;
The standard does not address &amp;#039;named&amp;#039; dates so, for the purposes of CS1|2,&lt;br /&gt;
Easter and Christmas are defined here as 98 and 99, which should be out of the&lt;br /&gt;
ISO 8601 (EDTF) range of uses for a while.&lt;br /&gt;
&lt;br /&gt;
local_date_names_from_mediawiki is a boolean.  When set to:&lt;br /&gt;
	true – module will fetch local month names from MediaWiki for both date_names[&amp;#039;local&amp;#039;][&amp;#039;long&amp;#039;] and date_names[&amp;#039;local&amp;#039;][&amp;#039;short&amp;#039;]; this will unconditionally overwrite manual translations&lt;br /&gt;
	false – module will *not* fetch local month names from MediaWiki&lt;br /&gt;
&lt;br /&gt;
Caveat lector:  There is no guarantee that MediaWiki will provide short month names.  At your wiki you can test&lt;br /&gt;
the results of the MediaWiki fetch in the debug console with this command (the result is alpha sorted):&lt;br /&gt;
	=mw.dumpObject (p.date_names[&amp;#039;local&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
While the module can fetch month names from MediaWiki, it cannot fetch the quarter, season, and named date names&lt;br /&gt;
from MediaWiki.  Those must be translated manually.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local local_date_names_from_mediawiki = false;									-- when false, manual translation required for date_names[&amp;#039;local&amp;#039;][&amp;#039;long&amp;#039;] and date_names[&amp;#039;local&amp;#039;][&amp;#039;short&amp;#039;]; overwrites manual translations&lt;br /&gt;
																				-- when true, module fetches long and short month names from MediaWiki&lt;br /&gt;
local date_names = {&lt;br /&gt;
	[&amp;#039;en&amp;#039;] = {																	-- English&lt;br /&gt;
		[&amp;#039;long&amp;#039;]	= {[&amp;#039;January&amp;#039;] = 1, [&amp;#039;February&amp;#039;] = 2, [&amp;#039;March&amp;#039;] = 3, [&amp;#039;April&amp;#039;] = 4, [&amp;#039;May&amp;#039;] = 5, [&amp;#039;June&amp;#039;] = 6, [&amp;#039;July&amp;#039;] = 7, [&amp;#039;August&amp;#039;] = 8, [&amp;#039;September&amp;#039;] = 9, [&amp;#039;October&amp;#039;] = 10, [&amp;#039;November&amp;#039;] = 11, [&amp;#039;December&amp;#039;] = 12},&lt;br /&gt;
		[&amp;#039;short&amp;#039;]	= {[&amp;#039;Jan&amp;#039;] = 1, [&amp;#039;Feb&amp;#039;] = 2, [&amp;#039;Mar&amp;#039;] = 3, [&amp;#039;Apr&amp;#039;] = 4, [&amp;#039;May&amp;#039;] = 5, [&amp;#039;Jun&amp;#039;] = 6, [&amp;#039;Jul&amp;#039;] = 7, [&amp;#039;Aug&amp;#039;] = 8, [&amp;#039;Sep&amp;#039;] = 9, [&amp;#039;Oct&amp;#039;] = 10, [&amp;#039;Nov&amp;#039;] = 11, [&amp;#039;Dec&amp;#039;] = 12},&lt;br /&gt;
		[&amp;#039;quarter&amp;#039;] = {[&amp;#039;First Quarter&amp;#039;] = 33, [&amp;#039;Second Quarter&amp;#039;] = 34, [&amp;#039;Third Quarter&amp;#039;] = 35, [&amp;#039;Fourth Quarter&amp;#039;] = 36},&lt;br /&gt;
		[&amp;#039;season&amp;#039;]	= {[&amp;#039;Winter&amp;#039;] = 24, [&amp;#039;Spring&amp;#039;] = 21, [&amp;#039;Summer&amp;#039;] = 22, [&amp;#039;Fall&amp;#039;] = 23, [&amp;#039;Autumn&amp;#039;] = 23},&lt;br /&gt;
		[&amp;#039;named&amp;#039;]	= {[&amp;#039;Easter&amp;#039;] = 98, [&amp;#039;Christmas&amp;#039;] = 99},&lt;br /&gt;
		},&lt;br /&gt;
																				-- when local_date_names_from_mediawiki = false&lt;br /&gt;
	[&amp;#039;local&amp;#039;] = {																-- replace these English date names with the local language equivalents&lt;br /&gt;
		[&amp;#039;long&amp;#039;]	= {[&amp;#039;1月&amp;#039;] = 1, [&amp;#039;2月&amp;#039;] = 2, [&amp;#039;3月&amp;#039;] = 3, [&amp;#039;4月&amp;#039;] = 4, [&amp;#039;5月&amp;#039;] = 5, [&amp;#039;6月&amp;#039;] = 6, [&amp;#039;7月&amp;#039;] = 7, [&amp;#039;8月&amp;#039;] = 8, [&amp;#039;9月&amp;#039;] = 9, [&amp;#039;10月&amp;#039;] = 10, [&amp;#039;11月&amp;#039;] = 11, [&amp;#039;12月&amp;#039;] = 12},&lt;br /&gt;
		[&amp;#039;short&amp;#039;]	= {[&amp;#039;1月&amp;#039;] = 1, [&amp;#039;2月&amp;#039;] = 2, [&amp;#039;3月&amp;#039;] = 3, [&amp;#039;4月&amp;#039;] = 4, [&amp;#039;5月&amp;#039;] = 5, [&amp;#039;6月&amp;#039;] = 6, [&amp;#039;7月&amp;#039;] = 7, [&amp;#039;8月&amp;#039;] = 8, [&amp;#039;9月&amp;#039;] = 9, [&amp;#039;10月&amp;#039;] = 10, [&amp;#039;11月&amp;#039;] = 11, [&amp;#039;12月&amp;#039;] = 12},&lt;br /&gt;
		[&amp;#039;quarter&amp;#039;] = {[&amp;#039;第1四半期&amp;#039;] = 33, [&amp;#039;第2四半期&amp;#039;] = 34, [&amp;#039;第3四半期&amp;#039;] = 35, [&amp;#039;第4四半期&amp;#039;] = 36},&lt;br /&gt;
		[&amp;#039;season&amp;#039;]	= {[&amp;#039;冬&amp;#039;] = 24, [&amp;#039;春&amp;#039;] = 21, [&amp;#039;夏&amp;#039;] = 22, [&amp;#039;秋&amp;#039;] = 23},&lt;br /&gt;
		[&amp;#039;named&amp;#039;]	= {[&amp;#039;イースター&amp;#039;] = 98, [&amp;#039;クリスマス&amp;#039;] = 99},&lt;br /&gt;
		},&lt;br /&gt;
	[&amp;#039;inv_en_long&amp;#039;] = {},														-- used in date reformatting; copy of date_names[&amp;#039;en&amp;#039;].long where k/v are inverted: [1]=&amp;#039;&amp;lt;en name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;inv_en_short&amp;#039;] = {},														-- used in date reformatting; copy of date_names[&amp;#039;en&amp;#039;].short where k/v are inverted: [1]=&amp;#039;&amp;lt;en name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;inv_local_long&amp;#039;] = {},													-- used in date reformatting &amp;amp; translation; copy of date_names[&amp;#039;local&amp;#039;].long where k/v are inverted: [1]=&amp;#039;&amp;lt;local name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;inv_local_short&amp;#039;] = {},													-- used in date reformatting &amp;amp; translation; copy of date_names[&amp;#039;local&amp;#039;].short where k/v are inverted: [1]=&amp;#039;&amp;lt;local name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;inv_local_quarter&amp;#039;] = {},													-- used in date translation; copy of date_names[&amp;#039;local&amp;#039;].quarter where k/v are inverted: [1]=&amp;#039;&amp;lt;local name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;inv_local_season&amp;#039;] = {},													-- used in date translation; copy of date_names[&amp;#039;local&amp;#039;].season where k/v are inverted: [1]=&amp;#039;&amp;lt;local name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;inv_local_named&amp;#039;] = {},													-- used in date translation; copy of date_names[&amp;#039;local&amp;#039;].named where k/v are inverted: [1]=&amp;#039;&amp;lt;local name&amp;gt;&amp;#039; etc.&lt;br /&gt;
	[&amp;#039;local_digits&amp;#039;] = {[&amp;#039;0&amp;#039;] = &amp;#039;0&amp;#039;, [&amp;#039;1&amp;#039;] = &amp;#039;1&amp;#039;, [&amp;#039;2&amp;#039;] = &amp;#039;2&amp;#039;, [&amp;#039;3&amp;#039;] = &amp;#039;3&amp;#039;, [&amp;#039;4&amp;#039;] = &amp;#039;4&amp;#039;, [&amp;#039;5&amp;#039;] = &amp;#039;5&amp;#039;, [&amp;#039;6&amp;#039;] = &amp;#039;6&amp;#039;, [&amp;#039;7&amp;#039;] = &amp;#039;7&amp;#039;, [&amp;#039;8&amp;#039;] = &amp;#039;8&amp;#039;, [&amp;#039;9&amp;#039;] = &amp;#039;9&amp;#039;},	-- used to convert local language digits to Western 0-9&lt;br /&gt;
	[&amp;#039;xlate_digits&amp;#039;] = {},&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
if local_date_names_from_mediawiki then											-- if fetching local month names from MediaWiki is enabled&lt;br /&gt;
	local long_t = {};&lt;br /&gt;
	local short_t = {};&lt;br /&gt;
	for i=1, 12 do																-- loop 12x and &lt;br /&gt;
		local name = lang_obj:formatDate(&amp;#039;F&amp;#039;, &amp;#039;2022-&amp;#039; .. i .. &amp;#039;-1&amp;#039;);			-- get long month name for each i&lt;br /&gt;
		long_t[name] = i;														-- save it&lt;br /&gt;
		name = lang_obj:formatDate(&amp;#039;M&amp;#039;, &amp;#039;2022-&amp;#039; .. i .. &amp;#039;-1&amp;#039;);					-- get short month name for each i&lt;br /&gt;
		short_t[name] = i;														-- save it&lt;br /&gt;
	end&lt;br /&gt;
	date_names[&amp;#039;local&amp;#039;][&amp;#039;long&amp;#039;] = long_t;										-- write the long table – overwrites manual translation&lt;br /&gt;
	date_names[&amp;#039;local&amp;#039;][&amp;#039;short&amp;#039;] = short_t;										-- write the short table – overwrites manual translation&lt;br /&gt;
end&lt;br /&gt;
																				-- create inverted date-name tables for reformatting and/or translation&lt;br /&gt;
for _, invert_t in pairs {{&amp;#039;long&amp;#039;, &amp;#039;inv_local_long&amp;#039;}, {&amp;#039;short&amp;#039;, &amp;#039;inv_local_short&amp;#039;}, {&amp;#039;quarter&amp;#039;, &amp;#039;inv_local_quarter&amp;#039;}, {&amp;#039;season&amp;#039;, &amp;#039;inv_local_season&amp;#039;}, {&amp;#039;named&amp;#039;, &amp;#039;inv_local_named&amp;#039;}} do&lt;br /&gt;
	for name, i in pairs (date_names[&amp;#039;local&amp;#039;][invert_t[1]]) do					-- this table is [&amp;#039;name&amp;#039;] = i&lt;br /&gt;
		date_names[invert_t[2]][i] = name;										-- invert to get [i] = &amp;#039;name&amp;#039; for conversions from ymd&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
for _, invert_t in pairs {{&amp;#039;long&amp;#039;, &amp;#039;inv_en_long&amp;#039;}, {&amp;#039;short&amp;#039;, &amp;#039;inv_en_short&amp;#039;}} do&lt;br /&gt;
	for name, i in pairs (date_names[&amp;#039;en&amp;#039;][invert_t[1]]) do						-- this table is [&amp;#039;name&amp;#039;] = i&lt;br /&gt;
		date_names[invert_t[2]][i] = name;										-- invert to get [i] = &amp;#039;name&amp;#039; for conversions from ymd&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
if local_digits_from_mediawiki then												-- if fetching local digits from MediaWiki is enabled&lt;br /&gt;
	local digits_t = {};&lt;br /&gt;
	for i=0, 9 do																-- loop 10x and &lt;br /&gt;
		digits_t [lang_obj:formatNum (i)] = tostring (i);						-- format the loop indexer as local lang table index and assign loop indexer (a string) as the value&lt;br /&gt;
	end&lt;br /&gt;
	date_names[&amp;#039;local_digits&amp;#039;] = digits_t;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
for ld, ed in pairs (date_names.local_digits) do								-- make a digit translation table for simple date translation from en to local language using local_digits table&lt;br /&gt;
	date_names.xlate_digits [ed] = ld;											-- en digit becomes index with local digit as the value&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- 英語版の {{Use dmy dates}} や {{Use mdy dates}} に関連する処理は移入しない&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T S &amp;gt;---------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return 	{&lt;br /&gt;
	date_name_auto_xlate_enable = date_name_auto_xlate_enable,&lt;br /&gt;
	date_digit_auto_xlate_enable = date_digit_auto_xlate_enable,&lt;br /&gt;
	date_names = date_names,&lt;br /&gt;
	messages = messages&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>ja&gt;Mt.Asahidake</name></author>
	</entry>
</feed>