Template:Citation/doc: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported: Citation templates |
imported>Grufo Clearer example |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{for2|the{{nbsp}} {{fake citation needed}} template|{{tl|citation needed}}}} | |||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). | <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). | ||
--> | --> | ||
{{#ifeq: {{PAGENAME}}|{{ROOTPAGENAME}}|{{Cascade-protected template}}}} | {{#ifeq: {{PAGENAME}}|{{ROOTPAGENAME}}|{{Cascade-protected template}}}} | ||
{{#ifeq: {{PAGENAME}}|{{ROOTPAGENAME}}|{{High-risk|189000+}}}} | {{#ifeq: {{PAGENAME}}|{{ROOTPAGENAME}}|{{High-risk|189000+}}}} | ||
Line 14: | Line 14: | ||
Notes: | Notes: | ||
* All parameter names must be [[lowercase]]. | * All parameter names must be [[lowercase]]. | ||
* Invisible unicode space characters (see [[Help:CS1 errors#invisible_char|list]]) will return an error message. Non-intentional invisible characters should be removed; intentional ones should replaced with their corresponding HTML entity (e.g. <code>&ZeroWidthSpace;</code>). | * Invisible unicode space characters (see [[Help:CS1 errors#invisible_char|list]]) will return an error message. Non-intentional invisible characters should be removed; intentional ones should be replaced with their corresponding HTML entity (e.g. <code>&ZeroWidthSpace;</code>). | ||
==Simple citations== | ==Simple citations== | ||
Line 48: | Line 48: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| | | {{tj|Citation | ||
| last | | last: Turner | ||
| first | | first: Orsamus | ||
| title | | title: History of the pioneer settlement of Phelps and Gorham's purchase, and Morris' reserve | ||
Phelps and Gorham's purchase, and Morris' reserve | | publisher: William Alling | ||
| publisher | | place: Rochester, New York | ||
| place | | year: 1851 | ||
| year | | ol: 7120924W | ||
| ol | |||
}} | }} | ||
| {{Citation | | {{Citation | ||
| last = Turner | | last = Turner | ||
Line 88: | Line 86: | ||
| author-name-separator = | | author-name-separator = | ||
| author-mask = | | author-mask = | ||
| editor = | | editor = | ||
| editor-last = | | editor-last = | ||
Line 107: | Line 104: | ||
| date = | | date = | ||
| year = | | year = | ||
| | | orig-date = | ||
| title = | | title = | ||
| chapter = | | chapter = | ||
Line 150: | Line 147: | ||
| url-status = | | url-status = | ||
| quote = | | quote = | ||
| separator = | | separator = | ||
| postscript = | | postscript = | ||
Line 212: | Line 206: | ||
====Anchor==== | ====Anchor==== | ||
{{distinguish|#Identifiers}} | |||
{{more|#Anchored citations}} | |||
{{csdoc|ref|lua=yes}} | {{csdoc|ref|lua=yes}} | ||
====Identifiers==== | ====Identifiers==== | ||
{{distinguish|#Anchor}} | |||
{{anchor|id1}}{{csdoc|id1|lua=yes}} | {{anchor|id1}}{{csdoc|id1|lua=yes}} | ||
{{anchor|id2}}{{csdoc|id2|lua=yes}} | {{anchor|id2}}{{csdoc|id2|lua=yes}} | ||
Line 666: | Line 663: | ||
==Anchored citations== | ==Anchored citations== | ||
{{distinguish|#Identifiers}} | |||
This template can generate a citation that can be combined with [[WP:CITESHORT|shortened footnotes]] or [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID. The special parameter {{para|ref}} generates an anchor ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; an anchor ID is generated by default. | This template can generate a citation that can be combined with [[WP:CITESHORT|shortened footnotes]] or [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID. The special parameter {{para|ref}} generates an anchor ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; an anchor ID is generated by default. | ||
Line 751: | Line 749: | ||
"date": { | "date": { | ||
"label": "Date of source", | "label": "Date of source", | ||
"type": " | "type": "date", | ||
"description": "Full date of source being referenced in the same format as other publication dates in the citations.[1] Do not wikilink. Displays after the authors and enclosed in parentheses. If there is no author, then displays after publisher." | "description": "Full date of source being referenced in the same format as other publication dates in the citations.[1] Do not wikilink. Displays after the authors and enclosed in parentheses. If there is no author, then displays after publisher." | ||
}, | }, | ||
Line 757: | Line 755: | ||
"label": "URL of source", | "label": "URL of source", | ||
"type": "string", | "type": "string", | ||
"description": "URL of an online location where the text of the publication can be found." | "description": "URL of an online location where the text of the publication can be found.", | ||
"suggested": true | |||
}, | }, | ||
"publication-date": { | "publication-date": { | ||
Line 785: | Line 784: | ||
"type": "string", | "type": "string", | ||
"required": false, | "required": false, | ||
"description": "Replaces the name of the first author with em dashes or text. Set author-mask to a numeric value n to set the dash n em spaces wide; set author-mask to a text value to display the text without a trailing author separator; for example, \"with\". You must still include the values for all authors for metadata purposes. Primarily intended for use with bibliographies or bibliography styles where multiple works by a single author are listed sequentially such as shortened footnotes. Do not use in a list generated by {{reflist}}, <references /> or similar as there is no control of the order in which references are displayed. You can also use editor-mask and translator-mask in the same way." | "description": "Replaces the name of the first author with em dashes or text. Set author-mask to a numeric value n to set the dash n em spaces wide; set author-mask to a text value to display the text without a trailing author separator; for example, \"with\". You must still include the values for all authors for metadata purposes. Primarily intended for use with bibliographies or bibliography styles where multiple works by a single author are listed sequentially such as shortened footnotes. Do not use in a list generated by {{reflist}}, <references /> or similar as there is no control of the order in which references are displayed. You can also use editor-mask and translator-mask in the same way." | ||
}, | }, | ||
Line 995: | Line 992: | ||
] | ] | ||
}, | }, | ||
"orig- | "orig-date": { | ||
"label": "Original | "label": "Original date", | ||
"description": "Original | "description": "Original date of publication; provide specifics", | ||
"type": "number" | "type": "number" | ||
}, | }, | ||
Line 1,041: | Line 1,038: | ||
"dictionary", | "dictionary", | ||
"periodical" | "periodical" | ||
] | ], | ||
"suggested": true | |||
}, | }, | ||
"volume": { | "volume": { | ||
Line 1,091: | Line 1,089: | ||
"label": "chapter-url", | "label": "chapter-url", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
"contribution-url": { | "contribution-url": { | ||
Line 1,284: | Line 1,279: | ||
"label": "URL access date", | "label": "URL access date", | ||
"description": "The full date when the original URL was accessed; do not wikilink", | "description": "The full date when the original URL was accessed; do not wikilink", | ||
"type": "date", | "type": "date", | ||
" | "suggested": true | ||
}, | }, | ||
"archive-date": { | "archive-date": { | ||
Line 1,315: | Line 1,297: | ||
"editor1", | "editor1", | ||
"editor1-last", | "editor1-last", | ||
"editor1-surname | "editor1-surname" | ||
] | ] | ||
}, | }, | ||
"editor-first": { | "editor-first": { | ||
"label": "Editor first name", | "label": "Editor first name", | ||
"description": "The | "description": "The given or first name, middle names, or initials of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors", | ||
"aliases": [ | "aliases": [ | ||
"editor-first1", | "editor-first1", | ||
Line 1,710: | Line 1,691: | ||
"translator9-link" | "translator9-link" | ||
] | ] | ||
}, | }, | ||
"display-authors": { | "display-authors": { | ||
Line 1,724: | Line 1,698: | ||
}, | }, | ||
"name-list-style": { | "name-list-style": { | ||
"label": "Name list style", | "label": "Name list style", | ||
"description": "Sets the style for the list. Accepts 'amp', 'and', and 'vanc'. amp displays an ampersand after the penultimate name; and the same with 'and', and vanc displays in Vancouver format", | "description": "Sets the style for the list. Accepts 'amp', 'and', and 'vanc'. amp displays an ampersand after the penultimate name; and the same with 'and', and vanc displays in Vancouver format", | ||
"type": "string" | "type": "string" | ||
}, | |||
"script-title": { | |||
"label": "Script Title", | |||
"description": "Original title for languages that do not use a Latin-based script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); not italicized, follows italicized Romanization defined in title (if present). Must be prefixed with one of the supported language codes to help browsers properly display the script", | |||
"example": "ja:東京タワー", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"url-status": { | |||
"label": "URL status", | |||
"description": "The status of the URL- live, dead, usurped/unfit (inappropriate content) or deviated (different content)", | |||
"suggestedvalues": [ | |||
"live", | |||
"dead", | |||
"usurped", | |||
"unfit", | |||
"deviated" | |||
], | |||
"suggested": true | |||
}, | |||
"s2cid": { | |||
"label": "Semantic Scholar Corpus ID", | |||
"description": "The Corpus identifier in Semantic Scholar. Displays as a link to the Semantic Scholar page.", | |||
"example": "84541141", | |||
"aliases": [ | |||
"S2CID" | |||
] | |||
} | } | ||
}, | }, | ||
Line 2,184: | Line 2,182: | ||
} | } | ||
}, | }, | ||
"format": "{{_ |_=_}}", | |||
"paramOrder": [ | "paramOrder": [ | ||
"last", | "last", | ||
Line 2,202: | Line 2,201: | ||
"editor-first", | "editor-first", | ||
"author-mask", | "author-mask", | ||
"orig- | "orig-date", | ||
"trans-title", | "trans-title", | ||
"script-title", | |||
"trans-chapter", | "trans-chapter", | ||
"type", | "type", | ||
"access-date", | |||
"archive-url", | "archive-url", | ||
"url-status", | |||
"series", | "series", | ||
"at", | "at", | ||
Line 2,242: | Line 2,244: | ||
"pmc", | "pmc", | ||
"pmid", | "pmid", | ||
"s2cid", | |||
"rfc", | "rfc", | ||
"ssrn", | "ssrn", | ||
Line 2,248: | Line 2,251: | ||
"quote", | "quote", | ||
"ref", | "ref", | ||
"name-list-style", | "name-list-style", | ||
"display-authors", | "display-authors", | ||
Line 2,344: | Line 2,343: | ||
{{Wikipedia referencing}} | {{Wikipedia referencing}} | ||
{{Wikipedia help pages}} | {{Wikipedia help pages}}<includeonly>{{Sandbox other|| | ||
<includeonly>{{Sandbox other|| | |||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | <!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | ||
[[Category:Citation Style 2 templates]] | [[Category:Citation Style 2 templates]] | ||
}}</includeonly> | }}</includeonly> |