Module:Citation/CS1/Configuration: Difference between revisions

no edit summary
(synch from sandbox;)
No edit summary
Line 201:
['DisplayEditors'] = {'display-editors', 'displayeditors'},
['Docket'] = 'docket',
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date', 'doi_brokendate', 'doi_inactivedate'},
['Edition'] = 'edition',
['Editors'] = 'editors',
Line 229:
['Network'] = 'network',
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat',
'no-tracking', 'notracking'},
['Number'] = 'number', -- this case only for cite techreport
Line 266:
['TitleNote'] = 'department',
['TitleType'] = {'type', 'medium'},
['TransChapter'] = {'trans-chapter', 'trans_chapter'},
['TransMap'] = 'trans-map', -- cite map only
['Transcript'] = 'transcript',
['TranscriptFormat'] = 'transcript-format',
['TranscriptURL'] = {'transcript-url', 'transcripturl'},
['TransTitle'] = {'trans-title', 'trans_title'},
['URL'] = {'url', 'URL'},
['UrlAccess'] = {'url-access'},
Line 369:
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23};
['named'] = {['Christmas']=99};
},
['local_digits'] = {['0'] = '0', ['1'] = '1', ['2'] = '2', ['3'] = '3', ['4'] = '4', ['5'] = '5', ['6'] = '6', ['7'] = '7', ['8'] = '8', ['9'] = '9'}; -- used to convert local language digits to Western 0-9
}
 
Line 466 ⟶ 467:
-- Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf
-- Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf
-- plus the not-necessarily Indic scripts for Sinhala and Burmese:
-- Sinhala 0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf
-- Myanmar 1000-109F - https://unicode.org/charts/PDF/U1000.pdf
-- Myanmar extended A AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf
-- Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf
-- the pattern is used by has_invisible_chars() and coins_cleanup()
-- TODO: find a better place for this?
 
local indic_script = '[\224\164\128-\224\181\191\234224\163\160-\224\183\191\225\128\128-\225\130\159\234\163167\160-\234\167\191\234\169\160-\234\169\191]';
 
--[[--------------------------< L A N G U A G E S >------------------------------------------------------------
Line 477 ⟶ 483:
]]
 
local script_lang_codes = {
local script_lang_codes = {'am', 'ar', 'be', 'bg', 'bn', 'bs', 'dv', 'el', -- ISO 639-1 codes only for |script-title= and |script-chapter=
'faam', 'guar', 'hebe', 'hybg', 'jabn', 'kabs', 'kndv', 'koel', 'fa', -- ISO 639-1 codes only for |script-title= and |script-chapter=
'kugu', 'mkhe', 'mlhy', 'mrja', 'myka', 'pskn', 'ruko', 'sdku',
'srmk', 'tgml', 'thmn', 'ukmr', 'ugmy', 'urps', 'yiru', 'zhsd'};,
'sr', 'tg', 'th', 'uk', 'ug', 'ur', 'yi', 'zh'
};
 
 
Line 524 ⟶ 532:
['script'] = 'CS1 uses foreign language script', -- when language specified by |script-title=xx: doesn't have its own category
['script_with_name'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
['jul_greg_uncertainty'] = 'CS1: Julian–Gregorian uncertainty', -- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926
}
 
Anonymous user