Template:Cite journal: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | m (1 revision imported) | ||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| <includeonly> | |||
| ⚫ | |||
| <span class="citation journal"> | |||
| == Usage == | |||
| Copy/paste and fill in: | |||
| <!-- ========== Authors ========== --> | |||
| ⚫ | |||
| {{#if:{{{last1|}}}{{{first1|}}} | |||
|   |last1=Surname | |||
|  | {{{last1}}}{{#if:{{{first1|}}}|, {{{first1}}}}} | |||
|   |first1=Given name | |||
| }}{{#if:{{{last2|}}}{{{first2|}}} | |||
|   |date=YYYY-MM-DD | |||
|  |; {{{last2}}}{{#if:{{{first2|}}}|, {{{first2}}}}} | |||
|   |title=Article Title | |||
| }}{{#if:{{{last3|}}}{{{first3|}}} | |||
|   |journal=Journal Name | |||
|  |; {{{last3}}}{{#if:{{{first3|}}}|, {{{first3}}}}} | |||
|   |volume=Volume Number | |||
| }}{{#if:{{{last4|}}}{{{first4|}}} | |||
|   |issue=Issue Number | |||
|  |; {{{last4}}}{{#if:{{{first4|}}}|, {{{first4}}}}} | |||
|   |pages=Page range | |||
| }}{{#if:{{{etal|}}} | |||
|   |doi=DOI (if available) | |||
|  |; ''et al.'' | |||
|   |url=URL (if online) | |||
| }}{{#if:{{{last1|}}}{{{first1|}}}{{{last2|}}}{{{first2|}}}{{{last3|}}}{{{first3|}}}{{{last4|}}}{{{first4|}}}{{{etal|}}}.|}} | |||
|   |access-date=YYYY-MM-DD | |||
| <!-- ========== Year/Date ========== --> | |||
| {{#if:{{{year|}}}{{{date|}}} | |||
|  | ({{#if:{{{year|}}}|{{{year}}}|{{{date}}}}}).  | |||
| }} | }} | ||
| <!-- ========== Title ========== --> | |||
| {{#if:{{{title|}}} | |||
|  | “{{{title}}}.”  | |||
| }} | |||
| <!-- ========== Journal, volume(issue):pages ========== --> | |||
| ⚫ | |||
|  | ''{{{journal}}}'' | |||
| }}{{#if:{{{volume|}}} | |||
|  | ''' {{{volume}}}''' | |||
| }}{{#if:{{{issue|}}} | |||
|  | ({{{issue}}}) | |||
| }}{{#if:{{{pages|}}} | |||
|  |: {{{pages}}} | |||
| }}. | |||
| <!-- ========== Identifiers & links ========== --> | |||
| {{#if:{{{doi|}}} | |||
|  | doi: [https://doi.org/{{{doi}}} {{{doi}}}].  | |||
| }} | |||
| {{#if:{{{pmid|}}} | |||
|  | PMID: {{{pmid}}}.  | |||
| }} | |||
| {{#if:{{{pmcid|}}} | |||
|  | PMCID: {{{pmcid}}}.  | |||
| }} | |||
| {{#if:{{{url|}}} | |||
|  | [{{{url}}} Online]{{#if:{{{access-date|}}}| (accessed {{{access-date}}})}}. | |||
| }} | |||
| </span> | |||
| </includeonly> | |||
| ⚫ | |||
| {{Documentation}} | |||
| </noinclude> | </noinclude> | ||
Latest revision as of 02:23, 11 August 2025
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
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=- yesto append et al.
- Publication
- title
- journal
- yearor- 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>