Template:Cite journal/doc

From Foxopedia
Jump to navigation Jump to search

Purpose

Lightweight citation template for journal articles (no Lua/CS1). Supports multiple authors, DOI/URL, volume/issue/pages, and access date.

Parameters

Authors
  • last1, first1 (and 2–4)
  • etal = yes to append et al.
Publication
  • title
  • journal
  • year or date (use one)
  • volume, issue, pages
Links/IDs
  • doi, pmid, pmcid
  • url, access-date (YYYY-MM-DD)

Basic usage

<syntaxhighlight lang="wikitext">

Smith, J.

(2023).

“Fox rehabilitation outcomes.”

Wildlife Medicine 15(2)

100–110.

doi: 10.1234/example.


Online(accessed 2024-11-17).


</syntaxhighlight>

Multiple authors

<syntaxhighlight lang="wikitext">

Smith, J.

Doe, A.
Lee, K.

(2022).

“Urban fox health.”

Conservation Biology 36(4)

221–230.

doi: 10.5678/xyz.2022.36.4.221.




</syntaxhighlight>

VisualEditor TemplateData

<templatedata> {

 "description": "Lightweight journal citation (no Lua/CS1).",
 "params": {
   "last1": {"label":"Last name 1","description":"Surname of first author","type":"string"},
   "first1": {"label":"First name 1","type":"string"},
   "last2": {"label":"Last name 2","type":"string"},
   "first2": {"label":"First name 2","type":"string"},
   "last3": {"label":"Last name 3","type":"string"},
   "first3": {"label":"First name 3","type":"string"},
   "last4": {"label":"Last name 4","type":"string"},
   "first4": {"label":"First name 4","type":"string"},
   "etal": {"label":"Use et al.","description":"Set to yes to append 'et al.'","type":"string","suggestedvalues":["yes"]},
   "title": {"label":"Article title","required":true,"type":"string"},
   "journal": {"label":"Journal","required":true,"type":"string"},
   "year": {"label":"Year","type":"string"},
   "date": {"label":"Full date (YYYY-MM-DD)","type":"string"},
   "volume": {"label":"Volume","type":"string"},
   "issue": {"label":"Issue","type":"string"},
   "pages": {"label":"Pages","type":"string"},
   "doi": {"label":"DOI","type":"string"},
   "pmid": {"label":"PMID","type":"string"},
   "pmcid": {"label":"PMCID","type":"string"},
   "url": {"label":"URL","type":"url"},
   "access-date": {"label":"Access date (YYYY-MM-DD)","type":"string"}
 },
 "sets": [
   {"name":"Authors 1–4","params":["last1","first1","last2","first2","last3","first3","last4","first4","etal"]},
   {"name":"Identifiers","params":["doi","pmid","pmcid"]},
   {"name":"Links","params":["url","access-date"]}
 ]

} </templatedata>