మాడ్యూల్:Citation/CS1/Configuration: కూర్పుల మధ్య తేడాలు

Content deleted Content added
చి make date name update
sync from sandbox;
పంక్తి 221:
['AccessDate'] = {'access-date', 'accessdate'}, -- Used by InternetArchiveBot
['Agency'] = 'agency',
-- ['AirDate'] = {'air-date', 'airdate'},
['ArchiveDate'] = {'archive-date', 'archivedate'}, -- Used by InternetArchiveBot
['ArchiveFormat'] = 'archive-format',
Line 239 ⟶ 238:
['ConferenceFormat'] = {'conference-format', 'event-format'},
['ConferenceURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl'}, -- Used by InternetArchiveBot
['Contribution'] = 'contribution', -- introduction, foreword, afterword, etc; required when |contributor= set; TODO: make internal only see TODO in main module
-- ['Date'] = 'date',
['Date'] = {'date', 'air-date', 'airdate'}, -- air-date and airdate for cite episode and cite serial only
['Degree'] = 'degree',
Line 254 ⟶ 251:
['Editors'] = 'editors',
['Embargo'] = 'embargo',
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary'}, -- thiscite oneencyclopedia only used by citation
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?
['Format'] = 'format',
Line 272 ⟶ 269:
['MapURL'] = {'map-url', 'mapurl'}, -- cite map only -- Used by InternetArchiveBot
['MapUrlAccess'] = 'map-url-access', -- cite map only -- Used by InternetArchiveBot
-- ['MessageID'] = 'message-id',
['Minutes'] = 'minutes',
['Mode'] = 'mode',
Line 285 ⟶ 281:
['Page'] = {'page', 'p'}, -- Used by InternetArchiveBot
['Pages'] = {'pages', 'pp'}, -- Used by InternetArchiveBot
['Periodical'] = {'journal', 'magazine', 'newspaper', 'periodical', 'website', 'work'},
'encyclopedia', 'encyclopaedia', 'dictionary', 'mailinglist'}, -- these masquerade as periodicals but aren't TODO: find a better way to handle these?
['Place'] = {'place', 'location'},
['PostScript'] = 'postscript',
['PublicationDate'] = {'publication-date', 'publicationdate'},
['PublicationPlace'] = {'publication-place', 'publicationplace'},
-- ['PublisherName'] = {'publisher', 'institution', 'newsgroup'},
['PublisherName'] = {'publisher', 'institution'},
['Quote'] = {'quote', 'quotation'},
Line 300 ⟶ 294:
['ScriptPeriodical'] = {'script-journal', 'script-magazine', 'script-newspaper', 'script-periodical', 'script-website', 'script-work'},
['ScriptTitle'] = 'script-title', -- Used by InternetArchiveBot
['Section'] = 'section',
['Season'] = 'season',
['Sections'] = 'sections', -- cite map only
Line 369 ⟶ 362:
local meta_params = { -- table of aliases[] keys (meta parameters); each key has a table of parameter names for a value
'BookTitle', 'Chapter', 'ScriptChapter', 'ScriptTitle', 'Title', 'TransChapter', 'Transcript', 'TransMap', 'TransTitle', -- title-holding parameters
'AuthorList-Mask', 'ContributorList-Mask', 'EditorList-Mask', 'InterviewerList-Mask', 'TranslatorList-Mask', -- name-list mask may have name separators
'PostScript', 'Quote', 'Ref', -- miscellaneous
'ArchiveURL', 'ChapterURL', 'ConferenceURL', 'LayURL', 'MapURL', 'TranscriptURL', 'URL', -- url-holding parameters
}
Line 380 ⟶ 374:
for _, param in ipairs (params) do -- get the parameter name
punct_skip[param] = 1; -- add the parameter name to the skip table
local count;
param, count = param:gsub ('#', ''); -- remove enumerator marker from enumerated parameters
if 0 ~= count then -- if removed
punct_skip[param] = 1; -- add param name without enumerator marker
end
end
end
Line 423 ⟶ 422:
function date_name_xlate() is used.
 
In these tables, season numbering is defined by ISOExtended DISDate/Time 8601:2016Format part(EDTF) 2Specification §4(https://www.7 'Divisions of a year'loc. The standardgov/standards/datetime/)
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard defines various divisions using
defines various divisions using numbers 21-41. cs1|2 only supports generic seasons. ISO DIS 8601:2016 does support
numbers 21-41. cs1|2 only supports generic seasons. EDTF does support the distinction between north and south
the distinction between north and south hemispere seasons but cs1|2 has no way to make that distinction.
 
33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)
The standard does not address 'named' dates so, for the purposes of cs1|2, Christmas is defined here as 99, which
 
should be out of the ISO DIS 8601:2016 range of uses for a while.
The standard does not address 'named' dates so, for the purposes of cs1|2, Easter and Christmas isare defined here as 98 and 99, which
should be out of the ISO DIS 8601:2016 (EDTF) range of uses for a while.
 
]]
Line 436 ⟶ 438:
['long'] = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12},
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12},
['quarter'] = {['First Quarter']=33, ['Second Quarter']=34, ['Third Quarter']=35, ['Fourth Quarter']=36},
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23},
['named'] = {['Easter']=98, ['Christmas']=99},
},
['local'] = { -- replace these English date names with the local language equivalents
['long'] = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12},
 
['long'] = {['జనవరి']=1, ['ఫిబ్రవరి']=2, ['మార్చి']=3, ['ఏప్రిల్']=4, ['మే']=5, ['జూన్']=6, ['జులై']=7, ['ఆగస్టు']=8, ['సెప్టెంబర్']=9, ['అక్టోబర్']=10, ['నవంబర్']=11, ['డిసెంబర్']=12},
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12},
['quarter'] = {['First Quarter']=33, ['Second Quarter']=34, ['Third Quarter']=35, ['Fourth Quarter']=36},
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23},
['named'] = {['Easter']=98, ['Christmas']=99},
},
['inv_local_l'] = {}, -- used in date reformatting; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc
Line 724 ⟶ 727:
--[[--------------------------< S C R I P T _ L A N G _ C O D E S >--------------------------------------------
 
This table is used to hold ISO 639-1 two-character and ISO 639-3 three-character language codes that apply only
to |script-title= and |script-chapter=
 
]]
 
local script_lang_codes = {
'am', 'ar', 'be', 'bg', 'bn', 'bo', 'bs', 'dv', 'dz', 'el', 'fa', -- ISO 639-1 codes only for |script-title= and |script-chapter=
'gu', 'he', 'hi', 'hy', 'ja', 'ka', 'kk', 'km', 'kn', 'ko', 'ku',
'lo', 'mk', 'ml', 'mn', 'mr', 'my', 'ne', 'otaor', 'psota', 'rups', 'sd', 'siru',
'sd', 'si', 'sr', 'ta', 'tg', 'th', 'ug', 'uk', 'ur', 'uz', 'yi', 'zh'
};
 
Line 942 ⟶ 946:
message = '<code class="cs1-code">&#124;arxiv=</code> required',
anchor = 'arxiv_missing',
category = 'CS1 errors: arXiv', -- same as bad arxiv
hidden = false
},
arxiv_params_not_supported = {
message = 'Unsupported parameter(s) in cite arXiv',
anchor = 'arxiv_params_not_supported',
category = 'CS1 errors: arXiv', -- same as bad arxiv
hidden = false
Line 1,270 ⟶ 1,268:
},
trans_missing_title = {
message = '<code class="cs1-code">&#124;trans-$1=</code> requires <code class="cs1-code">&#124;$1=</code> or <code class="cs1-code">&#124;script-$1=</code>', -- $1 is base parameter name
anchor = 'trans_missing_title',
category = 'CS1 errors: translated title',
Line 1,287 ⟶ 1,285:
hidden = false
},
}
 
 
--[[--------------------------< I D _ L I M I T S >------------------------------------------------------------
 
certain identifiers have limits set upon their values so that typographic errors may be detected. These (max)
limits are defined here so that those limits may be automatically included in the template documentation and error
message help text.
 
]]
 
local id_limits = {
pmc = 7500000, -- |pmc=
pmid = 33000000, -- |pmid=
ssrn = 4000000, -- |ssrn=
s2cid = 230000000, -- |s2cid=
}
 
Line 1,329 ⟶ 1,311:
set to nil to leave the identifier out of the COinS
separator: character or text between label and the identifier in the rendered citation
id_limit: for those identifiers with established limits, this property holds the upper limit
access: use this parameter to set the access level for all instances of this identifier.
the value must be a valid access level for an identifier (see ['id-access'] in this file).
Line 1,571 ⟶ 1,554:
encode = true,
separator = '&nbsp;',
id_limit = 7500000,
access = 'free', -- free to read
},
Line 1,584 ⟶ 1,568:
encode = false,
separator = '&nbsp;',
id_limit = 33000000,
},
['RFC'] = {
Line 1,619 ⟶ 1,604:
encode = true,
separator = '&nbsp;',
id_limit = 4000000,
access = 'free', -- always free to read
},
Line 1,632 ⟶ 1,618:
encode = false,
separator = '&nbsp;',
id_limit = 230000000,
custom_access = 's2cid-access',
},
Line 1,676 ⟶ 1,663:
global_df = global_df,
id_handlers = id_handlers,
id_limits = id_limits,
keywords_lists = keywords_lists,
keywords_xlate = keywords_xlate,
"https://te.wikipedia.org/wiki/మాడ్యూల్:Citation/CS1/Configuration" నుండి వెలికితీశారు