User:Stoub/COinS
How to cite sources[edit]
Since templates are transcluded, being able to fix the templates that render citations would correct everywhere that template is used.
However:
- Use of the citation templates is not required. You are entitled to either format citations by hand (no particular style is encouaged) rather than using the templates.
- Many editors find citation templates a distraction.
- Editors may be sensitive to templatizing citations. You're supposed to get consensus on the Talk (a.k.a. "discussion") page before making changes like this.
There are some semi-bots that aid in fixing citations:
- User:CitationTool is a semi-bot for finding citation errors (sequencing and duplication errors) and fixing them.
- User:SmackBot fixes ISBNs
- User:Cyde/Ref converter converts articles that use the older {{ref}} and {{note}} system into the more recent Cite system (<ref> and </references>)
Note that most templates are protected; I'll need to ask an admin to implement changes to the templates.
Wikipedia Citation Templates[edit]
To view the actual template, view the source of the template page. To understand the syntax of the if statements, see m:ParserFunctions.
- {{Citation}} is the generic form. The COinS portion is in Template:Citation/core.
- {{cite book}}
- {{cite journal}}
- {{cite conference}} conference report or paper
- {{cite encyclopedia}}
- {{cite news}} news article
- {{cite patent}} and {{Ref patent}}
The ones above have COinS in the templates. The ones below do not.
- {{cite web}} website
- {{cite newsgroup}} newsgroup posting
- {{cite paper}} paper thesis dissertation
- {{cite press release}}
- {{cite video}}
- {{cite episode}} television or radio episode
- {{cite court}} court case
- {{cite map}}
- {{cite mailing list}}
Also, the Special:Booksources page (where hyperlinked ISBNs go), has COinS.
COinS in Wikipedia Templates[edit]
History[edit]
- December 3, 2006 - January 9, 2007
- Omegatron (talk) expressed interest in adding COinS to {{cite journal}} template (see discussion) and {{cite book}} template (see discussion).
- April 18-21, 2007
- Gwern (talk) added COinS to {{Citation}} template though Omegatron noted this only works for books (see discussion).
- May 28 - June 8, 2007
- COGDEN (talk) removed COinS from{{Citation}} template but Omegatron talked him through their return (see discussion).
- November 8, 2007
- Karnesky (talk) suggestion about improving rft.genre in {{cite book}} template (see discussion).
- April - August 2007
- Pigsonthewing (talk; banned until August 19, 2008) seems to have added COinS to other templates (e.g., Infobox Book) but these seem to have been reverted.
{{Citation}}[edit]
Fields | Current COinS Mapping | Comments |
---|---|---|
n/a | rft_val_fmt is hard-coded to info:/ofi/fmt:kev:mtx:book | Wrong. Additionally, LibX converts this to genre=book which duplicates this genre field |
? | if Journal is not empty: rft.genre=article, elseif IncludedWorkTitle is not empty: rft=genre=bookitem; else rft.genre=book | Needs work |
IncludedWorkTitle | rft.atitle | ? |
Periodical | rft.title if Journal is not empty | ? (rft.title is OpenURL Version 0.1 / rft.jtitle is OpenURL Version 1.0) |
Title | rft.title always; rft.atitle if Journal is not empty | Needs work. The article example maps to title when it should map to atitle. |
contribution, contribution-url, chapter, chapter-url | - | |
Surname1 | rft.aulast | Ok |
Given1 | rft.aufirst | Ok |
last, first, author-link, last1, first1, author1-link, last2, first2, author2-link, last3, first3, author3-link, last4, first4, author4-link, editor-last, editor-first, editor-link, editor1-last, editor1-first, editor1-link, editor2-last, editor2-first, editor2-link, editor3-last, editor3-first, editor3-link, editor4-last, editor4-first, editor4-link | - | |
Date | rft.date | Ok |
publication-date, year | - | |
series | - | |
Volume | rft.volume | Ok |
Issue | rft.issue | Ok |
At | rft.pages | Ok |
Edition | rft.edition | Ok |
Place, Publication Place | rft.place | Two values? |
Publisher | rft.pub | Ok |
DOI | rft_id=info:doi/ | Ok |
ISBN | rft.isbn | Ok |
ISSN | rft.issn | Ok |
id, oclc | - | |
IncludedWorkURL | rft_id= | Is this kosher? Need to check. |
access-date | - |
{{{cite book}}}[edit]
Field | Current COinS mapping | Comments |
---|---|---|
- | rft_val_fmt=info:ofi/fmt:kev:mtx:book | |
- | rft.genre=book | |
title | rft.btitle | Ok |
chapter | rft.atitle | Ok |
last | rft.aulast | Ok |
first | rft.aufirst | Ok |
author | rft.au | Ok (should be rft.author / think of: ...contains("rft.au") |
coauthors (Körperschaft) | rft.aucorp | Organization or corporation that is the author or creator of the book, i.e. "MellonFoundation" |
date, year | rft.date | Ok |
edition | rft.edition | Ok |
publisher | rft.pub | Ok |
location | rft.place | Ok |
page | rft.pages | Ok |
series | rft.series | Ok |
isbn | rft.isbn | Ok |
oclc | rft_id=info:oclcnum/ | Ok |
doi | rft_id=doi/ | Ok |
url | rft_id | Ok |
location | - |
{{{cite journal}}}[edit]
Field | Current COinS mapping | Comments |
---|---|---|
- | rft_val_fmt=info:ofi/fmt:kev:mtx:journal | |
- | rft.genre=article | |
title | rft.atitle | Ok |
journal | rft.jtitle | Ok |
last | rft.aulast | Ok |
first | rft.aufirst | Ok |
author | rft.au | Ok |
coauthors | - | |
date, year | rft.date | Ok |
volume | rft.volume | Ok |
issue | rft.issue | Ok |
page | rft.pages | Ok |
issn | rft.isbn | Ok |
pmid | rft_id=info:pmid/ | Ok |
doi | rft_id=doi/ | Ok |
url | rft_id | Ok |