|
|
(22 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) |
| + | |
| + | '''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 17: |
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 41: |
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 77: |
Line 96: |
| | url = http://website.org/frog-2016-oesm.pdf | | | url = http://website.org/frog-2016-oesm.pdf |
| | 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 |
| }} | | }} |
| | | |
Line 87: |
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> |
Implemented December 2016.