Template:C20YearTOCawards

From Wikipedia, the free encyclopedia

The Template:C20YearTOCawards displays the Table of Contents (TOC) in a condensed form for particular articles which list events by month-name, Nobel prizes, Templeton Prize, the Right Livelihood Award and the Fields Medalists for a specified year. The optional parameters allow adding up to 2 other phrases as subheaders in the TOC display:

Usage: {{C20YearTOCawards}}
Usage: {{C20YearTOCawards|yr|subhead1}}
Usage: {{C20YearTOCawards|yr|subhead1|subhead2}}
The optional parameter "yr" defaults to PAGENAME, to display the
subheader "Events of 'yr'" while the optional second parameter
"subhead1" allows adding a customized TOC subheader @Deaths, and
"subhead2" allows a customized TOC subheader at "Fictional"
(To skip "subhead1" put 2 vertical bars, as in "| |subhead2").
The Table of Contents also displays a built-in label "Fictional"
subheader but not a "Ship events" subheader (see: C20YearTOCship).
If the calling/containing article does not have a subheader for
a particular label-link in the TOC, then clicking that link goes
nowhere, unless such a subheader is in the article's text.
Omitted subheaders do NOT generate red-line links.

[edit] See also

[edit] Examples

Below are the results from passing optional parameters.

For default parameters, live template "{{C20YearTOCawards}}":

Contents:
  1. Events of C20YearTOCawards
  2. Births
  3. Deaths
  4. Nobel prizes -  Templeton Prize
  5. Right Livelihood Award -  Fields Medal
  6. See also -  Notes -  External links

For "{{C20YearTOCawards|1970|Ship events|World population}}":

Contents:
  1. Events of 1970
  2. Births
  3. Deaths  -  Ship events
  4. Nobel prizes -  Templeton Prize
  5. Right Livelihood Award -  Fields Medal
  6. See also -  Notes -  External links