|
|
(20 intermediate revisions by one user not shown) |
Line 3: |
Line 3: |
| == Overview == | | == Overview == |
| | | |
− | This is a simplified implementation of the '''cite journal''' template found on Wikipedia. | + | This is a simplified implementation of the '''cite journal''' template found on Wikipedia. It is useful for published articles. |
| | | |
| '''Features''': | | '''Features''': |
Line 10: |
Line 10: |
| *all '''common parameters''' are supported | | *all '''common parameters''' are supported |
| *up to '''25 authors''' can be listed | | *up to '''25 authors''' can be listed |
| + | *use the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">display-authors = etal</span> field to truncate the author list (if you must) |
| *the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">title</span> field is '''mandatory''' | | *the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">title</span> field is '''mandatory''' |
− | *the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">display-authors = etal</span> field can be used to truncate the author list (if you must) | + | *you can copy-and-paste to and from Wikipedia (indeed the markup can be confirmed on Wikipedia first) |
− | *you can copy-paste to and from Wikipedia | + | |
| + | '''Absent fields''': |
| + | |
| + | *the simplified <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">first</span> and <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">last</span> author fields are '''not''' supported |
| + | *the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">trans-title</span> and <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">language</span> fields are '''not''' supported |
| | | |
| '''Limitations''': | | '''Limitations''': |
Line 18: |
Line 23: |
| *no '''integrity checks''' are undertaken, aside from noting an absent <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">title</span> field in orange | | *no '''integrity checks''' are undertaken, aside from noting an absent <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">title</span> field in orange |
| *no '''metadata''' is injected into the HTML and the resulting page cannot be scraped by Zotero or Mendeley | | *no '''metadata''' is injected into the HTML and the resulting page cannot be scraped by Zotero or Mendeley |
− | *the page range should ideally be separated by an '''en dash''' (&ndash;) but this is not enforced | + | *the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">pages</span> page range should ideally be separated by an '''en dash''' (&ndash;) but this is not enforced |
− | *you must use the parameter names specified, there are '''no aliases''' (unlike Wikipedia) | + | *you must use the parameter names as specified, there are '''no aliases''' (unlike Wikipedia) |
| | | |
| '''See also''': | | '''See also''': |
| | | |
− | * the [[Template:Cite book|cite book]] template | + | *the [[Template:Cite book|cite book]] template |
| + | *the [[Template:Cite conference|cite conference]] template |
| + | *the [[Template:Open access|open access]] template for indicating open access publications |
| + | *the [[Template:Rp|rp]] template to add page references after the closing <code><nowiki></ref></nowiki></code> tag |
| + | *the [[Template:Doi|doi]] template for a single DOI string |
| | | |
| == Usage == | | == Usage == |
| + | |
| + | This template is normally wrapped in <code><nowiki><ref name="cite-id"> </ref></nowiki></code> tags and the reference list invoked with the <code><nowiki><references/></nowiki></code> tag. |
| | | |
| <pre style="font-size: 85%"> | | <pre style="font-size: 85%"> |
| {{cite journal | | {{cite journal |
| | first1 = | last1 = | | | first1 = | last1 = |
| + | | first2 = | last2 = |
| | display-authors = etal | | | display-authors = etal |
| | title = | | | title = |
Line 42: |
Line 54: |
| | access-date = | | | access-date = |
| }} | | }} |
| + | </pre> |
| + | |
| + | <pre style="font-size: 85%"> |
| + | {{cite journal | first1 = | last1 = | first2 = | last2 = | display-authors = etal |
| + | | title = | date = | journal = | volume = | number = | pages = | doi = | issn = |
| + | | url = | access-date = }} |
| </pre> | | </pre> |
| | | |
Line 86: |
Line 104: |
| | date = 2016 | | | date = 2016 |
| | journal = Open Journal | | | journal = Open Journal |
− | | volume = 10
| |
| | doi = 10.1000/12345678 | | | doi = 10.1000/12345678 |
| }} | | }} |
Line 96: |
Line 113: |
| | date = 2016 | | | date = 2016 |
| | journal = Open Journal | | | journal = Open Journal |
− | | volume = 10
| |
| | doi = 10.1000/12345678 | | | doi = 10.1000/12345678 |
| }} | | }} |
Line 108: |
Line 124: |
| == Support == | | == Support == |
| | | |
− | Bug reports to [[User:Robbie Morrison|Robbie Morrison]] <robbie.morrison@posteo.de> | + | Bug reports to [[User:Robbie Morrison|Robbie Morrison]]. |
| | | |
| Implemented December 2016. | | Implemented December 2016. |
| | | |
| </noinclude> | | </noinclude> |
Latest revision as of 19:18, 18 December 2016
"title required".
[edit] Overview
This is a simplified implementation of the cite journal template found on Wikipedia. It is useful for published articles.
Features:
- based on the English Wikipedia equivalent
- all common parameters are supported
- up to 25 authors can be listed
- use the display-authors = etal field to truncate the author list (if you must)
- the title field is mandatory
- you can copy-and-paste to and from Wikipedia (indeed the markup can be confirmed on Wikipedia first)
Absent fields:
- the simplified first and last author fields are not supported
- the trans-title and language fields are not supported
Limitations:
- no integrity checks are undertaken, aside from noting an absent title field in orange
- no metadata is injected into the HTML and the resulting page cannot be scraped by Zotero or Mendeley
- the pages page range should ideally be separated by an en dash (–) but this is not enforced
- you must use the parameter names as specified, there are no aliases (unlike Wikipedia)
See also:
- the cite book template
- the cite conference template
- the open access template for indicating open access publications
- the rp template to add page references after the closing
</ref>
tag
- the doi template for a single DOI string
This template is normally wrapped in <ref name="cite-id"> </ref>
tags and the reference list invoked with the <references/>
tag.
{{cite journal
| first1 = | last1 =
| first2 = | last2 =
| display-authors = etal
| title =
| date =
| journal =
| volume =
| number =
| pages =
| doi =
| issn =
| url =
| access-date =
}}
{{cite journal | first1 = | last1 = | first2 = | last2 = | display-authors = etal
| title = | date = | journal = | volume = | number = | pages = | doi = | issn =
| url = | access-date = }}
[edit] Examples
{{cite journal
| first1 = Bill | last1 = Frog
| first2 = Jill | last2 = Bean
| display-authors = etal
| title = Open energy system modeling
| date = 9 December 2016
| journal = Open Journal
| volume = 10
| number = 20
| pages = 30–40
| doi = 10.1000/12345678
| issn = 1234-5679
| url = http://website.org/frog-2016-oesm.pdf
| access-date = 2016-12-09
}}
Frog, Bill; Bean, Jill; et al. (9 December 2016). "Open energy system modeling". Open Journal. 10 (20): 30–40. doi:10.1000/12345678. ISSN 1234-5679. Retrieved 2016-12-09.
{{cite journal
| first1 = Erika | last1 = Mustermann
| title = Open data modeling
| date = 2016
| journal = Open Journal
| doi = 10.1000/12345678
}}
Mustermann, Erika (2016). "Open data modeling". Open Journal. doi:10.1000/12345678.
{{cite journal}}
"title required".
[edit] Support
Bug reports to Robbie Morrison.
Implemented December 2016.