"Module:Citation/CS1/Configuration" හි සංශෝධන අතර වෙනස්කම්

Content deleted Content added
සුළු හරිත මගින් සිදුකල 327998 සංශෝධනය අහෝසි කරන්න (සාකච්ඡා)
No edit summary
1 පේළිය:
citation_config = {};
 
local citation_config = {};
--[[
 
List of namespaces that should not be included in citation
-- override <code>...</code> styling to remove color, border, and padding. <code> css is specified here:
error categories. Same as setting notracking = true by default
-- https://git.wikimedia.org/blob/mediawiki%2Fcore.git/69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199
local code_style="color:inherit; border:inherit; padding:inherit;";
 
--[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------
 
List of namespaces that should not be included in citation error categories. Same as setting notracking = true by default
 
Note: Namespace names should use underscores instead of spaces.
 
]]
citation_config.local uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', };'File_talk', 'Template_talk',
'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Draft', 'Draft_talk', 'Education_Program_talk',
'Module_talk', 'MediaWiki_talk' };
 
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases'}; -- list of Lua patterns found in page names of pages we should not categorize
 
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
 
--[[
Translation table
 
Line 15 ⟶ 26:
This is separated from the main body to aid in future translations of this
module.
 
]]
 
citation_config.messages = {
local messages = {
['published'] = 'published $1',
['lay summary'] = 'Lay summary',
['retrieved'] = 'සම්ප්‍රවේශයRetrieved $1',
['inactive'] = 'inactive',
['archived-dead'] = 'Archived from $1 on $2',
Line 29 ⟶ 42:
['editors'] = 'eds.',
['edition'] = '($1 ed.)',
['episode'] = 'episodeEpisode $1',
['season'] = 'seasonSeason $1',
['series'] = 'seriesSeries $1',
['cartography'] = 'Cartography by $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
['inset'] = '$1 inset',
['written'] = 'Written at $1',
['in'] = 'In',
['et al'] = 'et al.',
['subscription'] = '<span style="font-size:0.95em; font-size:90%; color:#555">(subscription required)</span>',
['subscription'] = '<span style="font-size:0.95em; font-size:90%; color:#555">(subscription required (<span title="Sources are not required to be available online. Online sources do not have to be freely available. The site may require a paid subscription." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..
'[[Category:Pages containing links to subscription-only content]]',
 
['registration']='<span style="font-size:0.95em; font-size:90%; color:#555">(registration required (<span title="Sources are not required to be available online. Online sources do not have to be freely available. The site may require registration." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..
'[[Category:Pages with login required references or sources]]',
['language'] = '(in $1)',
['via'] = " &mdashndash; via $1",
['event'] = 'Event occurs at',
['minutes'] = 'minutes in',
 
['quoted-title'] = '"$1"',
['italic-title'] = "''$1''",
['trans-quoted-title'] = "&#91;$1&#93;",
['trans-italic-title'] = "&#91;''$1''&#93;",
['quoted-text'] = '"$1"',
 
['parameter'] = '<code>&#124;$1=</code>',
['parameter-separator'] = ', ',
['parameter-final-separator'] = ', and ',
['parameter-pair-separator'] = ' and ',
 
-- Error output
['hidden-error'] = '<span style="display:none;font-size:100%" class="error citation-comment">$1</span>',
['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>',
-- Determines the location of the help page
['help page link'] = 'Help:CS1 errors',
Line 68 ⟶ 80:
}
 
--[[--------------------------< P R E S E N T A T I O N >------------------------------------------------------
-- Aliases table for commonly passed parameters
citation_config.aliases = {
['AccessDate'] = 'accessdate',
['Agency'] = 'agency',
['AirDate'] = 'airdate',
['ArchiveDate'] = {'archive-date', 'archivedate' },
['ArchiveURL'] = {'archive-url', 'archiveurl' },
['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
['At'] = 'at',
['Authors'] = 'authors',
['AuthorFormat'] = {"author-format", "authorformat" },
['AuthorSeparator'] = 'author-separator',
['AuthorNameSeparator'] = 'author-name-separator',
['BookTitle'] = 'booktitle',
['Chapter'] = {'chapter', 'contribution', 'entry', 'article' },
['ChapterLink'] = 'chapterlink',
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl' },
['Coauthors'] = {'coauthors', 'coauthor' },
['Conference'] = 'conference',
['ConferenceURL'] = {'conference-url', 'conferenceurl' },
['Date'] = 'date',
['Day'] = 'day',
['DeadURL'] = 'deadurl',
['DisplayAuthors'] = {"display-authors", "displayauthors"},
['DisplayEditors'] = {"display-editors", "displayeditors"},
['DoiBroken'] = {'doi_inactivedate', 'doi_brokendate', 'DoiBroken'},
['Edition'] = 'edition',
['Editors'] = 'editors',
['EditorFormat'] = {"editor-format", "editorformat" },
['EditorSeparator'] = 'editor-separator',
['EditorNameSeparator'] = 'editor-name-separator',
['Embargo'] = {'Embargo', 'embargo'},
['Format'] = 'format',
['ID'] = {'id', 'ID', 'docket'},
['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},
['Issue'] = {'issue', 'number'},
['Language'] = {'language', 'in'},
['LastAuthorAmp'] = 'lastauthoramp',
['LayDate'] = 'laydate',
['LaySource'] = 'laysource',
['LayURL'] = {'layurl', 'laysummary'},
['Minutes'] = 'minutes',
['Month'] = 'month',
['NameSeparator'] = 'name-separator',
['Network'] = 'network',
['NoPP'] = 'nopp',
['NoTracking'] = {"template doc demo", 'nocat',
'notracking', "no-tracking"},
['OrigYear'] = 'origyear',
['Others'] = 'others',
['Page'] = {'p', 'page'},
['Pages'] = {'pp', 'pages'},
['Periodical'] = {'journal', 'newspaper', 'magazine', 'work',
'website', 'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary'},
['Place'] = {'place', 'location'},
['PPrefix'] = 'PPrefix',
['PPPrefix'] = 'PPPrefix',
['PostScript'] = 'postscript',
['PublicationDate'] = {'publicationdate', 'publication-date' },
['PublicationPlace'] = {'publication-place', 'publicationplace' },
['PublisherName'] = 'publisher',
['Quote'] = {'quote', 'quotation'},
['Ref'] = {'ref', 'Ref'},
['Season'] = 'season',
['Separator'] = 'separator',
['Series'] = {'series', 'version'},
['SeriesSeparator'] = 'series-separator',
['SeriesLink'] = 'serieslink',
['SeriesNumber'] = {'seriesnumber', 'seriesno'},
['Station'] = 'station',
['SubscriptionRequired'] = 'subscription',
['Time'] = 'time',
['TimeCaption'] = 'timecaption',
['Title'] = 'title',
['TitleLink'] = {'titlelink', 'episodelink' },
['TitleNote'] = 'department',
['TitleType'] = 'type',
['TransChapter'] = {'trans-chapter', 'trans_chapter' },
['Transcript'] = 'transcript',
['TranscriptURL'] = {'transcript-url', 'transcripturl'},
['TransTitle'] = {'trans-title', 'trans_title' },
['URL'] = {'url', 'URL'},
['Via'] = 'via',
['Volume'] = 'volume',
['Year'] = 'year',
 
Fixed presentation markup. Originally part of citation_config.messages it has been moved into its own, more semantically
['AuthorList-First'] = {"author#-first", "author-first#",
correct place.
"first#", "given#"},
 
['AuthorList-Last'] = {"author#-last", "author-last#",
]]
"last#", "surname#", "Author#", "author#", "authors#"},
local presentation =
['AuthorList-Link'] = {"author#-link", "author-link#",
{
"author#link", "authorlink#"},
-- Error output
['AuthorList-Mask'] = {"author#-mask", "author-mask#",
-- .error class is specified at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/9553bd02a5595da05c184f7521721fb1b79b3935/skins%2Fcommon%2Fshared.css#L538
"author#mask", "authormask#"},
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
['hidden-error'] = '<span style="display:none;font-size:100%" class="error citation-comment">$1</span>',
['EditorList-First'] = {"editor#-first",
['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>',
"editor-first#", "EditorGiven#"},
 
['EditorList-Last'] = {"editor#-last", "editor-last#",
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal css
"EditorSurname#", "Editor#", "editor#", "editors#"},
 
['EditorList-Link'] = {"editor#-link", "editor-link#",
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
"editor#link", "editorlink#"},
 
['EditorList-Mask'] = {"editor#-mask", "editor-mask#",
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc
"editor#mask", "editormask#"},
 
['italic-title'] = "''$1''",
 
['kern-left'] = '<span style="padding-left:0.2em;">$1</span>$2', -- spacing to use when title contains leading single or double quote mark
['kern-right'] = '$1<span style="padding-right:0.2em;">$2</span>', -- spacing to use when title contains trailing single or double quote mark
 
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)
['parameter'] = '<code style="'..code_style..'">&#124;$1=</code>',
 
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content
['quoted-title'] = '"$1"',
 
['trans-italic-title'] = "&#91;''$1''&#93;",
['trans-quoted-title'] = "&#91;$1&#93;",
}
 
--[[--------------------------< A L I A S E S >----------------------------------------------------------------
 
Aliases table for commonly passed parameters
 
]]
 
local aliases = {
['AccessDate'] = {'access-date', 'accessdate'},
['Agency'] = 'agency',
['AirDate'] = {'air-date', 'airdate'},
['ArchiveDate'] = {'archive-date', 'archivedate'},
['ArchiveFormat'] = 'archive-format',
['ArchiveURL'] = {'archive-url', 'archiveurl'},
['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
['At'] = 'at',
['Authors'] = {'authors', 'people', 'host', 'credits'},
['AuthorFormat'] = {'author-format', 'authorformat'}, -- deprecated in favor of NameListFormat;
['AuthorSeparator'] = 'author-separator', -- deprecated
['AuthorNameSeparator'] = 'author-name-separator', -- deprecated
['Began'] = 'began', -- cite episode and cite series
['BookTitle'] = {'book-title', 'booktitle'},
['Callsign'] = {'call-sign', 'callsign'}, -- cite interview
['Cartography'] = 'cartography',
['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'},
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'section-format'};
['ChapterLink'] = {'chapter-link', 'chapterlink'}, -- deprecated; remove after 1 January 2015?
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'section-url', 'sectionurl'},
['City'] = 'city', -- cite interview
['Class'] = 'class', -- cite arxiv and arxiv identifiers
['Coauthors'] = {'coauthors', 'coauthor'}, -- coauthor and coauthors are deprecated; remove after 1 January 2015?
['Conference'] = {'conference', 'event'},
['ConferenceFormat'] = {'conference-format', 'event-format'},
['ConferenceURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl'},
['Date'] = {'date', 'air-date', 'airdate'},
['DeadURL'] = {'dead-url', 'deadurl'},
['Degree'] = 'degree',
['DisplayAuthors'] = {'display-authors', 'displayauthors'},
['DisplayEditors'] = {'display-editors', 'displayeditors'},
['Docket'] = 'docket',
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date', 'doi_brokendate', 'doi_inactivedate'},
['Edition'] = 'edition',
['Editors'] = 'editors',
['EditorFormat'] = {'editor-format', 'editorformat'}, -- deprecated in favor of NameListFormat;
['EditorSeparator'] = 'editor-separator', -- deprecated
['EditorNameSeparator'] = 'editor-name-separator', -- deprecated
['Embargo'] = 'embargo',
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation
['Ended'] = 'ended', -- cite episode and cite series
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?
['Format'] = 'format',
['ID'] = {'id', 'ID'},
['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},
['Inset'] = 'inset',
['Issue'] = {'issue', 'number'},
['Language'] = {'language', 'in'},
['LastAuthorAmp'] = {'last-author-amp', 'lastauthoramp'},
['LayDate'] = {'lay-date', 'laydate'},
['LayFormat'] = 'lay-format',
['LaySource'] = {'lay-source', 'laysource'},
['LayURL'] = {'lay-url', 'lay-summary', 'layurl', 'laysummary'},
['MailingList'] = {'mailinglist', 'mailing-list'}, -- cite mailing list only
['Map'] = 'map', -- cite map only
['MapFormat'] = 'map-format', -- cite map only
['MapURL'] = {'mapurl', 'map-url'}, -- cite map only
['MessageID'] = 'message-id',
['Minutes'] = 'minutes',
['Mode'] = 'mode',
['Month'] = 'month', -- deprecated; remove after 1 January 2015?
['NameListFormat'] = {'name-list-format', 'author-format', 'authorformat', 'editor-format', 'editorformat'},
['NameSeparator'] = 'name-separator', -- deprecated
['Network'] = 'network',
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat',
'no-tracking', 'notracking'},
['OrigYear'] = {'orig-year', 'origyear'},
['Others'] = {'others', 'interviewer', 'interviewers'},
['Page'] = {'p', 'page'},
['Pages'] = {'pp', 'pages'},
['Periodical'] = {'journal', 'newspaper', 'magazine', 'work',
'website', 'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary'},
['Place'] = {'place', 'location'},
['PPrefix'] = {'p-prefix', 'PPrefix'},
['PPPrefix'] = 'pp-prefix',
['Program'] = 'program', -- cite interview
['PostScript'] = 'postscript',
['PublicationDate'] = {'publicationdate', 'publication-date'},
['PublicationPlace'] = {'publication-place', 'publicationplace'},
['PublisherName'] = {'publisher', 'distributor', 'institution', 'newsgroup'},
['Quote'] = {'quote', 'quotation'},
['Ref'] = {'ref', 'Ref'},
['RegistrationRequired'] = 'registration',
['Scale'] = 'scale',
['ScriptTitle'] = 'script-title',
['Section'] = 'section',
['Season'] = 'season',
['Sections'] = 'sections', -- cite map only
['Separator'] = 'separator', -- deprecated in favor of Mode
['Series'] = {'series', 'version'},
['SeriesSeparator'] = 'series-separator',
['SeriesLink'] = {'series-link', 'serieslink'},
['SeriesNumber'] = {'series-number', 'series-no', 'seriesnumber', 'seriesno'},
['Sheet'] = 'sheet', -- cite map only
['Sheets'] = 'sheets', -- cite map only
['Station'] = 'station',
['SubscriptionRequired'] = 'subscription',
['Time'] = 'time',
['TimeCaption'] = {'time-caption', 'timecaption'},
['Title'] = 'title',
['TitleLink'] = {'title-link', 'episode-link', 'titlelink', 'episodelink'},
['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'},
['Vauthors'] = 'vauthors',
['Veditors'] = 'veditors',
['Via'] = 'via',
['Volume'] = 'volume',
['Year'] = 'year',
 
['AuthorList-First'] = {"first#", "given#", "author-first#", "author#-first"},
['AuthorList-Last'] = {"last#", "author#", "surname#", "author-last#", "author#-last", "subject#", "Author#"},
['AuthorList-Link'] = {"authorlink#", "author-link#", "author#-link", "subjectlink#", "author#link", "subject-link#", "subject#-link", "subject#link"},
['AuthorList-Mask'] = {"author-mask#", "authormask#", "author#mask", "author#-mask"},
['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given", "EditorGiven#"},
['EditorList-Last'] = {"editor#", "editor-last#", "editor#-last", "editor-surname#", "editor#-surname", "EditorSurname#", "Editor#"},
['EditorList-Link'] = {"editor-link#", "editor#-link", "editorlink#", "editor#link"},
['EditorList-Mask'] = {"editor-mask#", "editor#-mask", "editormask#", "editor#mask"},
}
 
--[[--------------------------< D E F A U L T S >--------------------------------------------------------------
 
-- Default parameter values
 
citation_config.defaults = {
]]
['DeadURL'] = 'yes',
 
['PostScript'] = '.',
local defaults = {
['Separator'] = '.',
['AuthorSeparatorDeadURL'] = ';yes',
['EditorSeparatorPPrefix'] = '"p.&nbsp;'",
['NameSeparatorPPPrefix'] = ','"pp.&nbsp;",
['PPrefix'] = "p.&nbsp;",
['PPPrefix'] = "pp.&nbsp;",
}
 
--[[--------------------------< M A I N T E N A N C E _ C A T E G O R I E S >----------------------------------
--[[
 
Here we name maintenance categories to be used in maintenance messages.
 
]]
 
local maint_cats = {
['ASIN'] = 'CS1 maint: ASIN uses ISBN',
['date_year'] = 'CS1 maint: Date and year',
['disp_auth_ed'] = 'CS1 maint: display-$1', -- $1 is authors or editors
['embargo'] = 'CS1 maint: PMC embargo expired',
['english'] = 'CS1 maint: English language specified',
['etal'] = 'CS1 maint: Explicit use of et al.',
['extra_text'] = 'CS1 maint: Extra text',
['unknown_lang'] = 'CS1 maint: Unrecognized language',
['untitled'] = 'CS1 maint: Untitled periodical',
}
 
--[[--------------------------< P R O P E R T I E S _ C A T E G O R I E S >------------------------------------
 
Here we name properties categories
 
]]
 
local prop_cats = {
['foreign_lang_source'] = 'CS1 $1-language sources ($2)', -- |language= categories; $1 is language name, $2 is ISO639-1 code
['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
}
 
 
 
--[[--------------------------< T I T L E _ T Y P E S >--------------------------------------------------------
 
Here we map a template's CitationClass to TitleType
 
]]
 
local title_types = {
['AV-media-notes'] = 'Media notes',
['DVD-notes'] = 'Media notes',
['mailinglist'] = 'Mailing list',
['map'] = 'Map',
['podcast'] = 'Podcast',
['pressrelease'] = 'Press release',
['report'] = 'Report',
['techreport'] = 'Technical report',
['thesis'] = 'Thesis',
}
 
--[[--------------------------< E R R O R _ C O N D I T I O N S >----------------------------------------------
 
Error condition table
 
Line 194 ⟶ 323:
 
Anchor changes require identical changes to matching anchor in Help:CS1 errors
 
]]
 
citation_config.local error_conditions = {
accessdate_missing_url = {
message = '<code style="'..code_style..'">&#124;accessdate=</code> requires <code style="'..code_style..'">&#124;url=</code>',
anchor = 'accessdate_missing_url',
category = 'Pages using citations with accessdate and no URL',
hidden = true },
archive_missing_date = {
message = '<code style="'..code_style..'">&#124;archiveurl=</code> requires <code style="'..code_style..'">&#124;archivedate=</code>',
anchor = 'archive_missing_date',
category = 'Pages with archiveurl citation errors‎errors',
hidden = false },
archive_missing_url = {
message = '<code style="'..code_style..'">&#124;archiveurl=</code> requires <code style="'..code_style..'">&#124;url=</code>',
anchor = 'archive_missing_url',
category = 'Pages with archiveurl citation errors‎errors',
hidden = false },
bad_doi arxiv_missing = {
message = 'Check <code style="'..code_style..'">&#124;doiarxiv=</code> valuerequired',
anchor = 'bad_doiarxiv_missing',
category = 'PagesCS1 witherrors: DOI errorsarXiv', -- same as bad arxiv
hidden = false },
arxiv_params_not_supported = {
bad_isbn = {
message = 'CheckUnsupported <code>&#124;isbn=</code>parameter(s) in cite valuearXiv',
anchor = 'bad_isbnarxiv_params_not_supported',
category = 'PagesCS1 witherrors: ISBN errorsarXiv', -- same as bad arxiv
hidden = false },
bad_ol bad_arxiv = {
message = 'Check <code style="'..code_style..'">&#124;olarxiv=</code> value',
anchor = 'bad_olbad_arxiv',
category = 'PagesCS1 witherrors: OL errorsarXiv',
hidden = false },
bad_url bad_asin = {
message = 'Check <code style="'..code_style..'">&#124;urlasin=</code> schemevalue',
anchor = 'bad_urlbad_asin',
category = 'PagesCS1 witherrors: URL errorsASIN',
hidden = false },
bad_authorlink = {
bare_url_missing_title = {
message = 'Check <code style="'..code_style..'">&#124;authorlink=</code> value',
message = '$1 missing title',
anchor = 'bare_url_missing_titlebad_authorlink',
category = 'Pages with citations havingCS1 bareerrors: URLs‎authorlink',
hidden = false },
bad_date = {
citation_missing_title = {
message = 'MissingCheck ordate emptyvalues in: <code style="'..code_style..'">&#124;title=$1</code>',
anchor = 'citation_missing_titlebad_date',
category = 'Pages with citationsCS1 lackingerrors: titles‎dates',
hidden = false },
bad_doi = {
cite_web_url = {
message = 'Missing or emptyCheck <code style="'..code_style..'">&#124;urldoi=</code> value',
anchor = 'cite_web_urlbad_doi',
category = 'Pages using web citations withCS1 noerrors: URL‎DOI',
hidden = truefalse },
bad_isbn = {
empty_citation = {
message = 'Check <code style="'..code_style..'">&#124;isbn=</code> value',
message = 'Empty citation‎',
anchor = 'empty_citationbad_isbn',
category = 'Pages with emptyISBN citations‎errors',
hidden = false },
extra_pages bad_ismn = {
message = 'ExtraCheck <code style="'..code_style..'">&#124;pagesismn=</code> or <code>&#124;at=</code>value',
anchor = 'extra_pagesbad_ismn',
category = 'CS1 errors: ISMN',
category = 'Pages with citations using conflicting page specifications‎',
hidden = false },
bad_issn = {
format_missing_url = {
message = 'Check <code style="'..code_style..'">&#124;formatissn=</code> requires <code>&#124;url=</code>value',
anchor = 'format_missing_urlbad_issn',
category = 'Pages using citations with format andCS1 noerrors: URL‎ISSN',
hidden = truefalse },
bad_lccn = {
implict_etal_author = {
message = 'Check <code style="'..code_style..'">&#124;displayauthorslccn=</code> suggestedvalue',
anchor = 'displayauthorsbad_lccn',
category = 'CS1 errors: LCCN',
category = 'Pages using citations with old-style implicit et al.‎',
hidden = truefalse },
bad_message_id = {
implict_etal_editor = {
message = 'Check <code style="'..code_style..'">&#124;displayeditorsmessage-id=</code> suggestedvalue',
anchor = 'displayeditorsbad_message_id',
category = 'PagesCS1 usingerrors: citations with oldmessage-style implicit et al.‎id',
hidden = truefalse },
bad_ol = {
parameter_ignored = {
message = 'Unknown parameterCheck <code style="'..code_style..'">&#124;$1ol=</code> ignoredvalue',
anchor = 'parameter_ignoredbad_ol',
category = 'Pages with citations usingCS1 unsupportederrors: parametersOL',
hidden = false },
bad_pmc = {
parameter_ignored_suggest = {
message = 'Unknown parameterCheck <code>&#124;$1 style=</code> ignored (<code"'..code_style..'">&#124;$2pmc=</code> suggested)value',
anchor = 'parameter_ignored_suggestbad_pmc',
category = 'Pages with citations usingCS1 unsupportederrors: parametersPMC',
hidden = false },
bad_pmid = {
redundant_parameters = {
message = 'Check <code style="'..code_style..'">&#124;pmid=</code> value',
message = 'More than one of $1 specified',
anchor = 'redundant_parametersbad_pmid',
category = 'Pages with citations havingCS1 redundanterrors: parametersPMID',
hidden = false },
bad_url = {
text_ignored = {
message = 'TextCheck <code style="$1'..code_style..'">&#124;url=</code> ignoredscheme',
anchor = 'text_ignoredbad_url',
category = 'Pages with citations using unnamedURL parameterserrors',
hidden = false },
bare_url_missing_title = {
trans_missing_chapter = {
message = '$1 missing title',
message = '<code>&#124;trans-chapter=</code> requires <code>&#124;chapter=</code>',
anchor = 'trans_missing_chapterbare_url_missing_title',
category = 'Pages with citations using translated terms withouthaving thebare originalURLs',
hidden = false },
chapter_ignored = {
trans_missing_title = {
message = '<code style="'..code_style..'">&#124;trans-titlechapter=</code> requires <code>&#124;title=</code>ignored',
anchor = 'trans_missing_titlechapter_ignored',
category = 'CS1 errors: chapter ignored',
category = 'Pages with citations using translated terms without the original',
hidden = false },
citation_missing_title = {
wikilink_in_url = {
message = 'WikilinkMissing embeddedor inempty URL<code style="'..code_style..'">&#124;title=</code>',
anchor = 'wikilink_in_urlcitation_missing_title',
category = 'Pages with citations having wikilinks embedded in URLlacking titles',
hidden = false },
cite_web_url = { -- this error applies to cite web and to cite podcast
message = 'Missing or empty <code style="'..code_style..'">&#124;url=</code>',
anchor = 'cite_web_url',
category = 'Pages using web citations with no URL',
hidden = true },
coauthors_missing_author = {
message = '<code style="'..code_style..'">&#124;coauthors=</code> requires <code style="'..code_style..'">&#124;author=</code>',
anchor = 'coauthors_missing_author',
category = 'CS1 errors: coauthors without author',
hidden = false },
deprecated_params = {
message = 'Cite uses deprecated parameter <code style="'..code_style..'">&#124;$1=</code>',
anchor = 'deprecated_params',
category = 'Pages containing cite templates with deprecated parameters',
hidden = true },
empty_citation = {
message = 'Empty citation',
anchor = 'empty_citation',
category = 'Pages with empty citations',
hidden = false },
extra_pages = {
message = 'Extra <code style="'..code_style..'">&#124;pages=</code> or <code style="'..code_style..'">&#124;at=</code>',
anchor = 'extra_pages',
category = 'Pages with citations using conflicting page specifications',
hidden = false },
first_missing_last = {
message = '<code style="'..code_style..'">&#124;first$2=</code> missing <code style="'..code_style..'">&#124;last$2=</code> in $1',
anchor = 'first_missing_last',
category = 'CS1 errors: missing author or editor',
hidden = false },
format_missing_url = {
message = '<code style="'..code_style..'">&#124;$1=</code> requires <code style="'..code_style..'">&#124;$2=</code>',
anchor = 'format_missing_url',
category = 'Pages using citations with format and no URL',
hidden = true },
implict_etal_editor = {
message = '<code style="'..code_style..'">&#124;displayeditors=</code> suggested',
anchor = 'displayeditors',
category = 'Pages using citations with old-style implicit et al. in editors',
hidden = true },
invalid_param_val = {
message = 'Invalid <code style="'..code_style..'">&#124;$1=$2</code>',
anchor = 'invalid_param_val',
category = 'CS1 errors: invalid parameter value',
hidden = false },
missing_name = {
message = 'Missing <code style="'..code_style..'">&#124;last$2=</code> in $1',
anchor = 'missing_name',
category = 'CS1 errors: missing author or editor',
hidden = false },
parameter_ignored = {
message = 'Unknown parameter <code style="'..code_style..'">&#124;$1=</code> ignored',
anchor = 'parameter_ignored',
category = 'Pages with citations using unsupported parameters',
hidden = false },
parameter_ignored_suggest = {
message = 'Unknown parameter <code style="'..code_style..'">&#124;$1=</code> ignored (<code style="'..code_style..'">&#124;$2=</code> suggested)',
anchor = 'parameter_ignored_suggest',
category = 'Pages with citations using unsupported parameters',
hidden = false },
redundant_parameters = {
message = 'More than one of $1 specified',
anchor = 'redundant_parameters',
category = 'Pages with citations having redundant parameters',
hidden = false },
text_ignored = {
message = 'Text "$1" ignored',
anchor = 'text_ignored',
category = 'Pages with citations using unnamed parameters',
hidden = false },
trans_missing_chapter = {
message = '<code style="'..code_style..'">&#124;trans-chapter=</code> requires <code style="'..code_style..'">&#124;chapter=</code>',
anchor = 'trans_missing_chapter',
category = 'Pages with citations using translated terms without the original',
hidden = false },
trans_missing_title = {
message = '<code style="'..code_style..'">&#124;trans-title=</code> requires <code style="'..code_style..'">&#124;title=</code>',
anchor = 'trans_missing_title',
category = 'Pages with citations using translated terms without the original',
hidden = false },
vancouver = {
message = 'Vancouver style error',
anchor = 'vancouver',
category = 'CS1 errors: Vancouver style',
hidden = false },
wikilink_in_url = {
message = 'Wikilink embedded in URL title',
anchor = 'wikilink_in_url',
category = 'Pages with citations having wikilinks embedded in URL titles',
hidden = false },
}
 
--[[--------------------------< I D _ H A N D L E R S >--------------------------------------------------------
citation_config.id_handlers = {
 
['ASIN'] = {
The following contains a list of values for various defined identifiers. For each identifier we specify a
parameters = { 'asin', 'ASIN' },
variety of information necessary to properly render the identifier in the citation.
link = 'Amazon Standard Identification Number',
 
label = 'ASIN',
parameters: a list of parameter aliases for this identifier
mode = 'manual',
link: Wikipedia article name
COinS = 'info:asin',
label: the alternate name to apply to link
separator = '&nbsp;',
mode: 'manual' when there is a specific function in the code to handle the identifier;
encode = false;
'external' for identifiers that link outside of Wikipedia;
},
prefix: the first part of a url that will be concatenated with a second part which usually contains the identifier
['DOI'] = {
encode: true if uri should be percent encoded; otherwise false
parameters = { 'doi', 'DOI' },
COinS: into rft.id
link = 'Digital object identifier',
separator: character or text between label and the identifier in the rendered citation
label = 'doi',
]]
mode = 'manual',
 
prefix = 'http://dx.doi.org/',
local id_handlers = {
COinS = 'info:doi',
['ARXIV'] = {
separator = ':',
parameters = {'arxiv', 'ARXIV', 'eprint'},
encode = true,
link = 'arXiv',
},
label = 'arXiv',
['OL'] = {
mode = 'manual',
parameters = { 'ol', 'OL' },
prefix = '//arxiv.org/abs/', -- protocol relative tested 2013-09-04
link = 'Open Library',
encode = false,
label = 'OL',
mode COinS = 'manualinfo:arxiv',
COinS separator = 'info:olnum',
},
separator = '&nbsp;',
['ASIN'] = {
endode = true,
parameters = { 'asin', 'ASIN' },
},
link = 'Amazon Standard Identification Number',
['ARXIV'] = {
label = 'ASIN',
parameters = {'arxiv', 'ARXIV'},
link mode = 'arXivmanual',
label COinS = 'arXivinfo:asin',
mode separator = 'external&nbsp;',
encode = false;
prefix = 'http://arxiv.org/abs/',
},
encode = false,
['BIBCODE'] = {
COinS = 'info:arxiv',
parameters = {'bibcode', 'BIBCODE'},
separator = ':',
link = 'Bibcode',
},
label = 'Bibcode',
['BIBCODE'] = {
mode = 'external',
parameters = {'bibcode', 'BIBCODE'},
prefix = 'http://adsabs.harvard.edu/abs/',
link = 'Bibcode',
encode = false,
label = 'Bibcode',
COinS = 'info:bibcode',
mode = 'external',
separator = ':',
prefix = 'http://adsabs.harvard.edu/abs/',
},
encode = false,
['DOI'] = {
COinS = 'info:bibcode',
parameters = { 'doi', 'DOI' },
separator = ':',
link = 'Digital object identifier',
},
label = 'doi',
['ISBN'] = {
mode = 'manual',
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
prefix = '//dx.doi.org/',
link = 'International Standard Book Number',
label COinS = 'ISBNinfo:doi',
mode separator = 'manual:',
encode = true,
prefix = 'Special:BookSources/',
},
COinS = 'rft.isbn',
['ISBN'] = {
separator = '&nbsp;',
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
},
link = 'International Standard Book Number',
['ISSN'] = {
label = 'ISBN',
parameters = {'issn', 'ISSN'},
mode = 'manual',
link = 'International Standard Serial Number',
prefix = 'Special:BookSources/',
label = 'ISSN',
mode COinS = 'externalrft.isbn',
separator = '&nbsp;',
prefix = '//www.worldcat.org/issn/',
},
COinS = 'rft.issn',
['ISMN'] = {
encode = false,
parameters = {'ismn', 'ISMN'},
separator = '&nbsp;',
link = 'International Standard Music Number',
},
label = 'ISMN',
['JFM'] = {
mode = 'manual',
parameters = {'jfm', 'JFM'},
prefix = '', -- not currently used;
link = 'Jahrbuch über die Fortschritte der Mathematik',
label COinS = 'JFMinfo:ismn',
mode separator = 'external&nbsp;',
},
prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:',
['ISSN'] = {
COinS = 'rft.jfm',
parameters = {'issn', 'ISSN'},
encode = true,
link = 'International Standard Serial Number',
separator = '&nbsp;',
label = 'ISSN',
},
mode = 'manual',
['JSTOR'] = {
prefix = '//www.worldcat.org/issn/',
parameters = {'jstor', 'JSTOR'},
link COinS = 'JSTORrft.issn',
encode = false,
label = 'JSTOR',
mode separator = 'external&nbsp;',
},
prefix = 'http://www.jstor.org/stable/',
['JFM'] = {
COinS = 'rft.jstor',
parameters = {'jfm', 'JFM'},
encode = true,
link = 'Jahrbuch über die Fortschritte der Mathematik',
separator = '&nbsp;',
label = 'JFM',
},
mode = 'external',
['LCCN'] = {
prefix = '//zbmath.org/?format=complete&q=an:',
parameters = {'LCCN', 'lccn'},
COinS = 'rft.jfm',
link = 'Library of Congress Control Number',
encode = true,
label = 'LCCN',
mode separator = 'external&nbsp;',
},
prefix = 'http://lccn.loc.gov/',
['JSTOR'] = {
COinS = 'rft.lccn',
parameters = {'jstor', 'JSTOR'},
encode = false,
separator link = '&nbsp;JSTOR',
label = 'JSTOR',
},
mode = 'external',
['MR'] = {
prefix = '//www.jstor.org/stable/', -- protocol relative tested 2013-09-04
parameters = {'MR', 'mr'},
COinS = 'rft.jstor',
link = 'Mathematical Reviews',
encode = false,
label = 'MR',
mode separator = 'external&nbsp;',
},
prefix = 'http://www.ams.org/mathscinet-getitem?mr=',
['LCCN'] = {
COinS = 'rft.mr',
parameters = {'LCCN', 'lccn'},
encode = true,
link = 'Library of Congress Control Number',
separator = '&nbsp;',
label = 'LCCN',
},
mode = 'manual',
['OCLC'] = {
prefix = 'http://lccn.loc.gov/',
parameters = {'OCLC', 'oclc'},
link COinS = 'OCLCrft.lccn',
encode = false,
label = 'OCLC',
mode separator = 'external&nbsp;',
},
prefix = '//www.worldcat.org/oclc/',
['MR'] = {
COinS = 'info:oclcnum',
parameters = {'MR', 'mr'},
encode = true,
link = 'Mathematical Reviews',
separator = '&nbsp;',
label = 'MR',
},
mode = 'external',
['OSTI'] = {
prefix = '//www.ams.org/mathscinet-getitem?mr=', -- protocol relative tested 2013-09-04
parameters = {'OSTI', 'osti'},
COinS = 'rft.mr',
link = 'Office of Scientific and Technical Information',
encode = true,
label = 'OSTI',
mode separator = 'external&nbsp;',
},
prefix = 'http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=',
['OCLC'] = {
COinS = 'info:osti',
parameters = {'OCLC', 'oclc'},
encode = true,
separator link = '&nbsp;OCLC',
label = 'OCLC',
},
mode = 'external',
['PMC'] = {
prefix = '//www.worldcat.org/oclc/',
parameters = {'PMC', 'pmc'},
COinS = 'info:oclcnum',
link = 'PubMed Central',
encode = true,
label = 'PMC',
mode separator = 'external&nbsp;',
},
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
['OL'] = {
suffix = " ",
parameters = { 'ol', 'OL' },
COinS = 'info:pmc',
link = 'Open Library',
encode = true,
separator label = '&nbsp;OL',
mode = 'manual',
},
COinS = 'info:olnum',
['PMID'] = {
separator = '&nbsp;',
parameters = {'PMID', 'pmid'},
endode = true,
link = 'PubMed Identifier',
},
label = 'PMID',
['OSTI'] = {
mode = 'external',
parameters = {'OSTI', 'osti'},
prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
link = 'Office of Scientific and Technical Information',
COinS = 'info:pmid',
label = 'OSTI',
encode = false,
mode = 'external',
separator = '&nbsp;',
prefix = '//www.osti.gov/energycitations/product.biblio.jsp?osti_id=', -- protocol relative tested 2013-09-04
},
COinS = 'info:osti',
['RFC'] = {
encode = true,
parameters = {'RFC', 'rfc'},
separator = '&nbsp;',
link = 'Request for Comments',
},
label = 'RFC',
['PMC'] = {
mode = 'external',
parameters = {'PMC', 'pmc'},
prefix = '//tools.ietf.org/html/rfc',
link = 'PubMed Central',
COinS = 'info:rfc',
label = 'PMC',
encode = false,
mode = 'manual', -- changed to support unlinking of PMC identifier when article is embargoed
separator = '&nbsp;',
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
},
suffix = " ",
['SSRN'] = {
COinS = 'info:pmc',
parameters = {'SSRN', 'ssrn'},
encode = true,
link = 'Social Science Research Network',
label separator = 'SSRN&nbsp;',
},
mode = 'external',
['PMID'] = {
prefix = 'http://ssrn.com/abstract=',
parameters = {'PMID', 'pmid'},
COinS = 'info:ssrn',
link = 'PubMed Identifier',
encode = true,
separator label = '&nbsp;PMID',
mode = 'manual', -- changed from external manual to support PMID validation
},
prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
['ZBL'] = {
COinS = 'info:pmid',
parameters = {'ZBL', 'zbl'},
encode = false,
link = 'Zentralblatt MATH',
label separator = 'Zbl&nbsp;',
},
mode = 'external',
['RFC'] = {
prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:',
parameters = {'RFC', 'rfc'},
COinS = 'info:zbl',
link = 'Request for Comments',
encode = true,
separator label = '&nbsp;RFC',
mode = 'external',
}
prefix = '//tools.ietf.org/html/rfc',
COinS = 'info:rfc',
encode = false,
separator = '&nbsp;',
},
['SSRN'] = {
parameters = {'SSRN', 'ssrn'},
link = 'Social Science Research Network',
label = 'SSRN',
mode = 'external',
prefix = '//ssrn.com/abstract=', -- protocol relative tested 2013-09-04
COinS = 'info:ssrn',
encode = true,
separator = '&nbsp;',
},
['USENETID'] = {
parameters = {'message-id'},
link = 'Usenet',
label = 'Usenet:',
mode = 'manual',
prefix = 'news:',
encode = false,
COinS = 'info:usenet',
separator = '&nbsp;',
},
['ZBL'] = {
parameters = {'ZBL', 'zbl'},
link = 'Zentralblatt MATH',
label = 'Zbl',
mode = 'external',
prefix = '//zbmath.org/?format=complete&q=an:',
COinS = 'info:zbl',
encode = true,
separator = '&nbsp;',
},
}
 
return citation_config; {
aliases = aliases,
defaults = defaults,
error_conditions = error_conditions,
id_handlers = id_handlers,
maint_cats = maint_cats,
messages = messages,
presentation = presentation,
prop_cats = prop_cats,
title_types = title_types,
uncategorized_namespaces = uncategorized_namespaces,
uncategorized_subpages = uncategorized_subpages,
}
"https://si.wikipedia.org/wiki/Module:Citation/CS1/Configuration" වෙතින් සම්ප්‍රවේශනය කෙරිණි