Module:Citation/CS1/Configuration: Difference between revisions

    m>Trappist the monk
    (Synch from sandbox;)
    m>Trappist the monk
    (Synch from sandbox;)
    Line 164: Line 164:
    ['Class'] = 'class', -- cite arxiv and arxiv identifiers
    ['Class'] = 'class', -- cite arxiv and arxiv identifiers
    ['Coauthors'] = {'coauthors', 'coauthor'}, -- coauthor and coauthors are deprecated; remove after 1 January 2015?
    ['Coauthors'] = {'coauthors', 'coauthor'}, -- coauthor and coauthors are deprecated; remove after 1 January 2015?
    ['Collaboration'] = 'collaboration',
    ['Conference'] = {'conference', 'event'},
    ['Conference'] = {'conference', 'event'},
    ['ConferenceFormat'] = {'conference-format', 'event-format'},
    ['ConferenceFormat'] = {'conference-format', 'event-format'},
    Line 171: Line 172:
    ['DeadURL'] = {'dead-url', 'deadurl'},
    ['DeadURL'] = {'dead-url', 'deadurl'},
    ['Degree'] = 'degree',
    ['Degree'] = 'degree',
    ['DF'] = 'df',
    ['DisplayAuthors'] = {'display-authors', 'displayauthors'},
    ['DisplayAuthors'] = {'display-authors', 'displayauthors'},
    ['DisplayEditors'] = {'display-editors', 'displayeditors'},
    ['DisplayEditors'] = {'display-editors', 'displayeditors'},
    Line 311: Line 313:
    ['name-list-format'] = {'vanc'},
    ['name-list-format'] = {'vanc'},
    ['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position
    ['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'}
    }
    }


    Line 332: Line 335:
    local invisible_chars = {
    local invisible_chars = {
    {'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD
    {'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; 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
    {'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 joiner', '\226\128\141'}, -- U+200D, E2 80 8D
    Line 339: Line 342:
    {'soft hyphen', '\194\173'}, -- U+00AD, C2 AD
    {'soft hyphen', '\194\173'}, -- U+00AD, C2 AD
    {'horizontal tab', '\009'}, -- U+0009 (HT), 09
    {'horizontal tab', '\009'}, -- U+0009 (HT), 09
    {'line feed', '\010'}, -- U+0010 (LF), 0A
    {'line feed', '\010'}, -- U+000A (LF), 0A
    {'carriage return', '\013'}, -- U+0013 (CR), 0D
    {'carriage return', '\013'}, -- U+000D (CR), 0D
    -- {'nowiki stripmarker', '\127UNIQ%-%-nowiki%-[%a%d]+%-QINU\127'}, -- nowiki stripmarker; not an error
    -- {'nowiki stripmarker', '\127UNIQ%-%-nowiki%-[%a%d]+%-QINU\127'}, -- nowiki stripmarker; not an error
    {'stripmarker', '\127UNIQ%-%-(%a+)%-[%a%d]+%-QINU\127'}, -- stripmarker; may or may not be an error; capture returns the stripmaker type
    {'stripmarker', '\127UNIQ%-%-(%a+)%-[%a%d]+%-QINU\127'}, -- stripmarker; may or may not be an error; capture returns the stripmaker type
    Line 346: Line 349:
    {'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))
    {'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))
    {'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
    {'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
    {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF
    -- {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF
    {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF
    -- {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF
    {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD
    -- {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD
    {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD
    -- {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD
    }
    }


    Line 459: Line 462:
    anchor = 'bad_doi',
    anchor = 'bad_doi',
    category = 'CS1 errors: DOI',
    category = 'CS1 errors: DOI',
    hidden = false },
    bad_hdl = {
    message = 'Check <code style="'..code_style..'">&#124;hdl=</code> value',
    anchor = 'bad_hdl',
    category = 'CS1 errors: HDL',
    hidden = false },
    hidden = false },
    bad_isbn = {
    bad_isbn = {
    Line 471: Line 479:
    hidden = false },
    hidden = false },
    bad_issn = {
    bad_issn = {
    message = 'Check <code style="'..code_style..'">&#124;issn=</code> value',
    message = 'Check <code style="'..code_style..'">&#124;$1issn=</code> value',
    anchor = 'bad_issn',
    anchor = 'bad_issn',
    category = 'CS1 errors: ISSN',
    category = 'CS1 errors: ISSN',
    Line 564: Line 572:
    anchor = 'format_missing_url',
    anchor = 'format_missing_url',
    category = 'Pages using citations with format and no URL',
    category = 'Pages using citations with format and no URL',
    hidden = true },
    implict_etal_editor = {
    message = '<code style="'..code_style..'">&#124;display-editors=</code> suggested',
    anchor = 'displayeditors',
    category = 'Pages using citations with old-style implicit et al. in editors',
    hidden = true },
    hidden = true },
    invalid_param_val = {
    invalid_param_val = {
    Line 685: Line 688:
    prefix = '//dx.doi.org/',
    prefix = '//dx.doi.org/',
    COinS = 'info:doi',
    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 = '&nbsp;',
    },
    ['HDL'] = {
    parameters = { 'hdl', 'HDL' },
    link = 'Handle System',
    label = 'hdl',
    mode = 'manual',
    prefix = '//hdl.handle.net/',
    COinS = 'info:hdl',
    separator = ':',
    separator = ':',
    encode = true,
    encode = true,
    Line 741: Line 764:
    label = 'LCCN',
    label = 'LCCN',
    mode = 'manual',
    mode = 'manual',
    prefix = 'http://lccn.loc.gov/',
    prefix = '//lccn.loc.gov/', -- protocol relative tested 2015-12-28
    COinS = 'info:lccn', -- use prefix value
    COinS = 'info:lccn', -- use prefix value
    encode = false,
    encode = false,
    Line 774: Line 797:
    COinS = nil, -- no COinS for this id (needs thinking on implementation because /authors/books/works/OL)
    COinS = nil, -- no COinS for this id (needs thinking on implementation because /authors/books/works/OL)
    separator = '&nbsp;',
    separator = '&nbsp;',
    endode = true,
    encode = true,
    },
    },
    ['OSTI'] = {
    ['OSTI'] = {