|
|
(28 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''': |
| | | |
| *based on the [https://en.wikipedia.org/wiki/Template:Cite_journal English Wikipedia equivalent] | | *based on the [https://en.wikipedia.org/wiki/Template:Cite_journal English Wikipedia equivalent] |
− | *all common parameters are supported | + | *all '''common parameters''' are supported |
− | *up to 25 authors can be listed | + | *up to '''25 authors''' can be listed |
− | *the <span style="background-color: gainsboro; padding-left: 0.5em; padding-right: 0.5em">title</span> field is mandatory | + | *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">display-authors = etal</span> field can be used 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''' |
| + | *you can copy-and-paste to and from Wikipedia (indeed the markup can be confirmed on Wikipedia first) |
| + | |
| + | '''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''': |
| | | |
− | *no integrity checks are undertaken, aside from noting an absent title field in orange (as shown above) | + | *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 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''': |
| + | |
| + | *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 39: |
Line 56: |
| </pre> | | </pre> |
| | | |
− | == Example == | + | <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> |
| + | |
| + | == Examples == |
| | | |
| <pre style="font-size: 85%"> | | <pre style="font-size: 85%"> |
Line 74: |
Line 97: |
| | access-date = 2016-12-09 | | | access-date = 2016-12-09 |
| }} | | }} |
| + | |
| + | <pre style="font-size: 85%"> |
| + | {{cite journal |
| + | | first1 = Erika | last1 = Mustermann |
| + | | title = Open data modeling |
| + | | date = 2016 |
| + | | journal = Open Journal |
| + | | doi = 10.1000/12345678 |
| + | }} |
| + | </pre> |
| + | |
| + | {{cite journal |
| + | | first1 = Erika | last1 = Mustermann |
| + | | title = Open data modeling |
| + | | date = 2016 |
| + | | journal = Open Journal |
| + | | doi = 10.1000/12345678 |
| + | }} |
| + | |
| + | <pre style="font-size: 85%"> |
| + | {{cite journal}} |
| + | </pre> |
| + | |
| + | {{cite journal}} |
| | | |
| == Support == | | == Support == |
| | | |
− | Bug reports to [[User:Robbie Morrison|Robbie Morrison]] at <robbie.morrison@posteo.de> | + | Bug reports to [[User:Robbie Morrison|Robbie Morrison]]. |
| | | |
− | December 2016 | + | Implemented December 2016. |
| | | |
| </noinclude> | | </noinclude> |
Implemented December 2016.