Template:Citation/doc: Difference between revisions

m add script title to templatedata
imported>Grufo
Clearer example
 
(One intermediate revision by one other user 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]]).
  -->
  -->
{{for2|the{{nbsp}} {{fake citation needed}} template|{{tl|citation needed}}}}
{{#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 48: Line 48:
{| class="wikitable"
{| class="wikitable"
|-
|-
| <pre>{{Citation
| {{tj|Citation
| last     = Turner
  | last: Turner
| first     = Orsamus
  | first: Orsamus
| title     = History of the pioneer settlement of
  | 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 = William Alling
  | place: Rochester, New York
| place     = Rochester, New York
  | year: 1851
| year     = 1851
  | ol: 7120924W
| ol       = 7120924W
}}
}}
</pre>
| {{Citation
| {{Citation
| last      = Turner
| last      = Turner
Line 208: 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 662: 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 747: Line 749:
"date": {
"date": {
"label": "Date of source",
"label": "Date of source",
"type": "string",
"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 753: 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 1,276: 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,704: Line 1,708:
"type": "string",
"type": "string",
"suggested": true
"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,182: Line 2,206:
"trans-chapter",
"trans-chapter",
"type",
"type",
"access-date",
"archive-url",
"archive-url",
"url-status",
"series",
"series",
"at",
"at",
Line 2,218: Line 2,244:
"pmc",
"pmc",
"pmid",
"pmid",
"s2cid",
"rfc",
"rfc",
"ssrn",
"ssrn",
Line 2,224: Line 2,251:
"quote",
"quote",
"ref",
"ref",
"access-date",
"name-list-style",
"name-list-style",
"display-authors",
"display-authors",