User:Mathglot/sandbox/Templates/Ui-citec

Citing a chapter

  Hello. There are a few ways to include a chapter of a book in a citation. You can use a full inline citation (i.e., <ref> ... </ref>), or a short citation (i.e., {{sfn}} ), or a {{harvc}} template embedded in <ref> tags. The method you choose should conform to existing usage in the article. Here's an example of each, for a chapter by "Robert Supko" in a book called "Astronomy" edited by John Doe. The top one is for an article with full citations inline:

  • <ref>{{cite book |last=Supko |first=Robert |date=2019 |editor-last=Doe |editor-first=John |title=Astronomy |chapter=Supernovas |page=123}}</ref> – see WP:NAMEDREFS for how to create multiple citations to the same page/same chapter
  • {{sfn|Supko|2019|loc=Supernovas|p=123}} – for short footnotes, linking to a full citation in the bottom matter

If your article uses short footnotes and has multiple citations to different chapters of the same book, you can cite them without any duplication of references by using short footnotes and the chapter citation template {{citec}} to link to the underlying {{cite book}} template for the book. To do this, just vary the |loc= param and page(s) as needed:

  • {{sfn|Blake|2019|loc=Black holes|pp=85–87}} – page number(s) that verify the assertion in the article, not the entire chapter
  • {{sfn|Galabov|2019|loc=Galaxies|pp=201-202}} – list loc and page(s) in another chapter of the same book

and add one {{citec}} template for each unique chapter you wish to cite.

Here's an example using templates {{sfn}} and {{citec}} to link content in chapters of one book:

Stars

Galaxies have billions of stars.[1] Stars sometimes explode in a supernova.[2] Big ones collapse into a black hole.[3]

References
  1. ^ Galabov 2019, p. 201–202, Galaxies.
  2. ^ Supko 2019, p. 123, Supernovas.
  3. ^ Blake 2019, p. 85–87, Black holes.
Works cited
  • Doe, John (2019). Astronomy. New York: Bigshot Publishing.
    • Blake, Oliver. "Black holes". In Doe (2019), pp. 85–87.
    • Supko, Robert. "Supernovas". In Doe (2019), p. 123.
    • Galabov, Martin. "Galaxies". In Doe (2019), pp. 199–215.
See wikicode

*** Template in progress ***

The template "see wikicode" feature is incomplete. For now, click [show] in the show/hide wikicode collapse bar, under heading "Linking to a chapter", to view the wikicode of the default example.

== Works cited ==
* {{cite book |last=Doe |first=John |date=2019 |title=Astronomy |url= |publisher=Bigshot Publishing |location=New York}}
** {{citec |last=Blake |first=Oliver |year=2019 |c=Black holes |chapter-url= |pages=85–87 |in=Doe}}
** {{citec |last=Supko |first=Robert |year=2019 |c=Supernovas |chapter-url= |pages=123 |in=Doe}}
** {{citec |last=Galabov |first=Martin |year=2019 |c=Galaxies |chapter-url= |pages=199–215 |in=Doe}}

The combination of |in=Doe and |year=2019 provides the linkage from the short footnotes (superscript numbers in the article) to ⟶ citations (in the References section) to ⟶ the individual chapter (doubly-indented in "Works cited") to ⟶ the full book citation (above it).

In other words, considering footnote 1 we have:
{{sfn|Galabov|2019|p=201–202}}

{{citec |last=Galabov |first=Martin |year=2019 |c=Galaxies |chapter-url= |pages=199–215 |in=Doe}}
{{cite book |last=Doe |first=John |date=2019 |title=Astronomy |url= |publisher=Bigshot Publishing |location=New York}}

The arrows represent a many-to-one relationship, that is: many {{sfn}}s may link to one {{citec}} chapter citation, and many {{citec}} chapters may link to one {{cite book}}. If there are more individual chapters you want to refer to, just add one additional {{citec}} per chapter.