WP:COinS

{{redirect|WP:COINS|the WikiProject on coins|Wikipedia:WikiProject Numismatics}}

{{for|ContextObjects in Spans other than on Wikipedia|COinS}}

{{information page|WP:COINS}}

Image:Zotero and OpenURL referrer example showing available references.png

ContextObjects in Spans (COinS) is a unmaintained method of embedding latent OpenURL ContextObjects in web pages. This allows client software to retrieve bibliographic metadata and to use an OpenURL resolver to find a mediated link. A principal advantage of using COinS, rather than giving a static OpenURL, is that the client can determine which resolver to use. This allows, for instance, searching for a copy of a book in one's own library.

COinS have been added to various parts of Wikipedia. They are basically just a chunk of bibliographic information stored in a way that machines can read. This has two applications:

  • The information can be converted into a full OpenURL and resolved by a local OpenURL resolver.
  • The information can be stored by bibliographic tools like Zotero.{{cite web|url=https://www.zotero.org/support/kb/zotero_and_wikipedia|title=Zotero and Wikipedia / Wikidata |website=Zotero}} The tool can download the bibliographic information from an article into a personal library for future research and retrieval.
  • Zotero also has Wikipedia export,{{cite web |url=https://www.zotero.org/blog/zotero-wikipedia-perfect-together/ |title=Zotero & Wikipedia: Perfect Together |website=Zotero}} which allows references to be dragged into a Wikipedia edit box, where they will appear formatted as Wikipedia citation templates.

So far, COinS have been added to:

Template

For use on templates generating COinS:

{{tl|UF-COinS}}

It adds pages to the above category.

Templates needing COinS

COinS could, and should, be added to these templates:

  • {{tl|Infobox comics character}}
  • {{tl|Infobox graphic novel}}

COinS in citation templates

The COinS keys used in most {{cs1}} templates are listed at Module talk:Citation/CS1/COinS.

For example:

{{markup

|{{cite book |last=Bloggs |first=Fred |editor-first=John |editor-last=Doe |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}

|{{cite book |last=Bloggs |first=Fred |editor-first=John |editor-last=Doe |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}

}}

Which renders the following HTML:

{{code|

{{cite book |last=Bloggs |first=Fred |editor-first=John |editor-last=Doe |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}

}}

Picking out the COinS keys:

class="wikitable"

! Key

Data
rfr_idinfo:sid/en.wikipedia.org:
rft.atitleBig Compilation Book with Many Chapters and Distinct Chapter Authors
rft.auBloggs, Fred
rft.aufirstFred
rft.aulastBloggs
rft.btitleChapter 2: The History of the Bloggs Family
rft.date2001-01-01
rft.genrebookitem
rft.isbn978-1-234-56789-7
rft.pages100-110
rft.pubBook Publishers
rft_val_fmtinfo:ofi/fmt:kev:mtx:book

=Pollution=

{{Missing information|section|reason=other cases in which the metadata gets polluted, e.g. chemical and math title renderings. The text would be more helpful if it illustrated some additional examples.}}

Incorrect data in fields can pollute the metadata. For example, adding all of the authors into the deprecated {{para|authors}} parameter:

{{markup

|{{cite book |authors=Smith, John; Johnson, Joe; Green, Ethan |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}

|{{cite book |authors=Smith, John; Johnson, Joe; Green, Ethan |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7 |no-tracking=yes}}

}}

{{code|{{cite book |authors=Smith, John; Johnson, Joe; Green, Ethan |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}

}}

This would pollute the metadata, therefore the citation template suppresses the generation of metadata for {{para|authors}}, thereby omitting vital citation data from being submitted.

class="wikitable"

! Key

Data
rft.auSmith, John; Johnson, Joe; Green, Ethan
rft.aufirstnot used
rft.aulastSmith, John; Johnson, Joe; Green, Ethan

See also

  • The planned [http://microformats.org/wiki/cite citation microformat]

References

{{reflist|30em}}

{{Citation metadata navbox}}