恪別𡧲版𢯢𢷮𧵑「Module:Citation/CS1/Date validation」
no edit summary
Keepout2010 (討論 | 㨂𢵰) (造張𡤔𢭲內容「local p = {} local lang = mw.getContentLanguage() --[[--------------------------< I S _ V A L I D _ A C C E S S D A T E >---------------------------------------- retur…」) |
Keepout2010 (討論 | 㨂𢵰) 空固𥿂略𢯢𢷮 |
||
𣳔46: | 𣳔46: | ||
local function get_month_number (month) | local function get_month_number (month) | ||
local long_months = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12, | local long_months = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12, | ||
[' | ['𣎃𠬠']=1, ['𣎃hai']=2, ['𣎃𠀧']=3, ['𣎃四']=4, ['𣎃𠄼']=5, ['𣎃𦒹']=6, ['𣎃𦉱']=7, ['𣎃𠔭']=8, ['𣎃𠃩']=9, ['𣎃𨒒']=10, ['𣎃𨒒𠬠']=11, ['𣎃𨒒𠄩']=12, | ||
[' | ['𣎃𠬠']=1, ['𣎃Hai']=2, ['𣎃𠀧']=3, ['𣎃四']=4, ['𣎃𠄼']=5, ['𣎃𦒹']=6, ['𣎃𦉱']=7, ['𣎃𠔭']=8, ['𣎃𠃩']=9, ['𣎃𨒒']=10, ['𣎃𨒒 𠬠']=11, ['𣎃𨒒𠄩']=12, | ||
[' | ['𣎃𨒒 𠬠']=11, ['𣎃𨒒𠄩']=12}; | ||
local short_months = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12, | local short_months = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12, | ||
[' | ['𣎃1']=1, ['𣎃2']=2, ['𣎃3']=3, ['𣎃4']=4, ['𣎃5']=5, ['𣎃6']=6, ['𣎃7']=7, ['𣎃8']=8, ['𣎃9']=9, ['𣎃10']=10, ['𣎃11']=11, ['𣎃12']=12, | ||
[' | ['𣎃01']=1, ['𣎃02']=2, ['𣎃03']=3, ['𣎃04']=4, ['𣎃05']=5, ['𣎃06']=6, ['𣎃07']=7, ['𣎃08']=8, ['𣎃09']=9}; | ||
local temp; | local temp; | ||
temp=long_months[month] or long_months[lang:ucfirst(month)]; | temp=long_months[month] or long_months[lang:ucfirst(month)]; |