Template:Citation Style documentation/editor: Difference between revisions

editors (plural) not an alias of editor-last (singular); removed lua dependencies;
imported>Trappist the monk
m (name-list-format replaces author-format and editor-format;)
imported>Trappist the monk
(editors (plural) not an alias of editor-last (singular); removed lua dependencies;)
Line 1:
* <span id="csdoc_editors" />'''editor-last''': Surname of editor. Do not wikilink—use '''editor-link''' instead. Where the surname is usually written first—as in Chinese—or for corporate authors, simply use '''editor-last''' to include the same format as the source. Aliases: '''editor1-last''', '''editor''', '''editors'''{{#if: {{{lua|}}}|, '''editor<var>n</var>'''.|.}}
** '''editor-first''': Given or first names of editor, including title(s); example: ''Firstname Middlename'' or ''Firstname M.'' or ''Dr. Firstname M., Sr.'' Do not wikilink—use '''editor-link''' instead. Aliases: '''editor1-first'''.
**OR: for multiple editors, use '''editor1-last''', '''editor1-first''' through {{#if: {{{lua|}}}|'''editor<var>n</var>-last''', '''editor<var>n</var>-first'''|'''editor4-last''', '''editor4-first''' for up to four editors}}.
:* '''editor-link''': Title of existing Wikipedia article about the editor—not the editor's website; do not wikilink. Aliases: '''editor1-link'''.
:*OR: for multiple editors, use {{#if: {{{lua|}}}|'''editor1editor-linklink1''' through '''editor-link<var>n</var>-link'''|'''editor1-link''' through '''editor4-link'''}}.
:*'''name-list-format''': displays authors and editors in [[Vancouver style]] when set to <code>vanc</code> and when the list uses <code>last</code>/<code>first</code> parameters for the name list(s)
*'''editors''': Free-form list of editor names; not an alias of '''editor-last'''
:Display:
::If authors: Authors are first, followed by {{#if: {{{lua|}}}|the included work, then "In" and the editors|the editors and the included work}}, then the main work.
::If no authors: Editors appear before the included work; a single editor is followed by "ed."; multiple editors are followed by "eds."{{#if: {{{lua|}}}|{{;}} exactly four editors will show three editors followed by "et al., eds." <!-- ERROR MESSAGE IS HIDDEN BY DEFAULT --> <!-- along with an error message -->unless '''display-editors''' is used.|{{;}} more than three editors will be followed by "et al., eds."}}