Module:Citation/CS1/Configuration: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
Synch from sandbox; |
|||
வரிசை 118:
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['cite'] = '<cite class="$1">$2</cite>'; -- |ref= not set so no id="..." attribute
['cite-id'] = '<cite id="$1" class="$2">$3</cite>'; -- for use when |ref= is set
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc
வரி 128 ⟶ 131:
['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)
['ocins'] = '<span title="$1" class="Z3988"><span style="display:none;"> </span></span>', -- Note: Using display: none on the COinS span breaks some clients
['parameter'] = '<code style="'..code_style..'">|$1=</code>',
வரி 139 ⟶ 144:
}
--[[--------------------------< A L I A S E S >----------------------------------------------------------------
வரி 164 ⟶ 170:
['Class'] = 'class', -- cite arxiv and arxiv identifiers
['Coauthors'] = {'coauthors', 'coauthor'}, -- coauthor and coauthors are deprecated; remove after 1 January 2015?
['Collaboration'] = 'collaboration',
['Conference'] = {'conference', 'event'},
['ConferenceFormat'] = {'conference-format', 'event-format'},
வரி 171 ⟶ 178:
['DeadURL'] = {'dead-url', 'deadurl'},
['Degree'] = 'degree',
['DF'] = 'df',
['DisplayAuthors'] = {'display-authors', 'displayauthors'},
['DisplayEditors'] = {'display-editors', 'displayeditors'},
வரி 311 ⟶ 319:
['name-list-format'] = {'vanc'},
['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position
['date-format'] = {'dmy', 'dmy-all', 'mdy', 'mdy-all', 'ymd', 'ymd-all'}
}
வரி 320 ⟶ 329:
table data in an arbitrary order. Here, we want to process the table from top to bottom because the entries at
the top of the table are also found in the ranges specified by the entries at the bottom of the table.
This list contains patterns for templates like {{'}} which isn't an error but transcludes characters that are
invisible. These kinds of patterns must be recognized by the functions that use this list.
Also here is a pattern that recognizes stripmarkers that begin and end with the delete characters. The nowiki
stripmarker is not an error but some others are because the parameter values that include them become part of the
template's metadata before stripmarker replacement.
]]
வரி 325 ⟶ 341:
local invisible_chars = {
{'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD
-- {'apostrophe', '‍\226\128\138\039\226\128\139'}, -- apostrophe template: ‍ hair space ' zero-width space; not an error
{'apostrophe', '\226\128\138\039\226\128\139'}, -- apostrophe template: hair space ' zero-width space; (as of 2015-12-11) not an error
{'zero width joiner', '\226\128\141'}, -- U+200D, E2 80 8D
{'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B
{'hair space', '\226\128\138'}, -- U+200A, E2 80 8A
{'soft hyphen', '\194\173'}, -- U+00AD, C2 AD
{'horizontal tab', '\009'}, -- U+0009 (HT), 09
{'line feed', '\010'}, -- U+
{'carriage return', '\013'}, -- U+
-- {'nowiki stripmarker', '\127UNIQ%-%-nowiki%-[%a%d]+%-QINU\127'}, -- nowiki stripmarker; not an error
{'C0 control', '[\000-\008\011\012\014-\031\127]'}, -- U+0000–U+001F (NULL–US), 00–1F, and U+001F (DEL), 7F (except HT, LF, CR (09, 0A, 0D))▼
{'stripmarker', '\127UNIQ%-%-(%a+)%-[%a%d]+%-QINU\127'}, -- stripmarker; may or may not be an error; capture returns the stripmaker type
{'delete', '\127'}, -- U+007F (DEL), 7F; must be done after stripmarker test
▲ {'C0 control', '[\000-\008\011\012\014-\031
{'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
}
வரி 445 ⟶ 468:
anchor = 'bad_doi',
category = 'CS1 errors: DOI',
bad_hdl = {
category = 'CS1 errors: HDL',
hidden = false },
bad_isbn = {
வரி 457 ⟶ 485:
hidden = false },
bad_issn = {
message = 'Check <code style="'..code_style..'">|
anchor = 'bad_issn',
category = 'CS1 errors: ISSN',
வரி 490 ⟶ 518:
anchor = 'bad_pmid',
category = 'CS1 errors: PMID',
hidden = false },
bad_oclc = {
message = 'Check <code style="'..code_style..'">|oclc=</code> value',
anchor = 'bad_oclc',
category = 'CS1 errors: OCLC',
hidden = false },
bad_url = {
வரி 550 ⟶ 583:
anchor = 'format_missing_url',
category = 'Pages using citations with format and no URL',
▲ hidden = true },
▲ message = '<code style="'..code_style..'">|display-editors=</code> suggested',
▲ anchor = 'displayeditors',
hidden = true },
invalid_param_val = {
வரி 562 ⟶ 590:
hidden = false },
invisible_char = {
message = '$1
anchor = 'invisible_char',
category = 'CS1 errors: invisible characters',
வரி 671 ⟶ 699:
prefix = '//dx.doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
},
['EISSN'] = {
parameters = {'eissn', 'EISSN'},
link = 'International_Standard_Serial_Number#Electronic_ISSN',
label = 'eISSN',
mode = 'manual',
prefix = '//www.worldcat.org/issn/',
COinS = 'rft.eissn',
encode = false,
separator = ' ',
},
['HDL'] = {
parameters = { 'hdl', 'HDL' },
link = 'Handle System',
label = 'hdl',
mode = 'manual',
prefix = '//hdl.handle.net/',
COinS = 'info:hdl',
separator = ':',
encode = true,
வரி 727 ⟶ 775:
label = 'LCCN',
mode = 'manual',
prefix = '
COinS = 'info:lccn', -- use prefix value
encode = false,
வரி 746 ⟶ 794:
link = 'OCLC',
label = 'OCLC',
mode = '
prefix = '//www.worldcat.org/oclc/',
COinS = 'info:oclcnum',
வரி 760 ⟶ 808:
COinS = nil, -- no COinS for this id (needs thinking on implementation because /authors/books/works/OL)
separator = ' ',
},
['OSTI'] = {
| |||