Template:New texts/item

From Wikisource
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]


Usage

Used to add new items to Template:New texts. {{{1}}} is for the text's title, {{{2}}} for the Author's name, and {{{3}}} for the year (doesn't appear if undefined). No subst.

Options to be used sparingly
  • To display alternate text for the title, ie. rather than the link, 1, one can utilise display to override.
    where the identified title is part of another work (ie. a subpage), or the work name is very long
  • To have a plain text, rather than an active link for the author, add a fourth parameter nowiki, eg. nowiki=yes
    where the author is a body without an author name. Note for anonymous authors, do not use this parameter, instead utilise {{anon}}
  • To display a small image, use image_name for the filename and image_size to define the size of the image.

Full usage

{{new texts/item
 | title      = 
 | author     = 
 | translator = 
 | date       = 
 | nowiki     = 
 | display    = 
 | image_name = 
 | image_size = 
}}

Parameters

  • title or 1: Link to the main page or index page of the work. Mandatory
  • author or 2: Author of the work, this will be automatically wikilinked to an author page unless the nowiki parameter is used. Optional
  • translator: Translator of the work, this will be automatically wikilinked to an author page unless the nowiki parameter is used. Optional
  • date or 3: Date of publication of the work. Optional
  • nowiki: If used, this parameter will prevent the automatic wikilinking of the author and translator parameters.
  • display: If used, this text will be displayed instead of the text the title or 1 parameters.
  • image_name: Image name and extension. Fill it in only if you want an image.
  • image_size: Image size (include the units). Fill it in only if you want an image. Defaults to 100px.

Examples

{{new texts/item|LINK TO WORK|Author name|YYYY}}

{{new texts/item|Victoria: with a description of its principal cities, Melbourne and Geelong
|Henry Butler Stoney|1856}}

Victoria: with a description of its principal cities, Melbourne and Geelong (1856)
 by Henry Butler Stoney

{{new texts/item|LINK TO WORK|Author name|YYYY|nowiki=yes|display=Preferred title to display}}

{{new texts/item|Victoria: with a description of its principal cities, Melbourne and Geelong
|Henry Butler Stoney|1856|nowiki=yes|display=Victoria}}

Victoria (1856)
 by Henry Butler Stoney

{{new texts/item
 | title      = Victoria: with a description of its principal cities, Melbourne and Geelong
 | author     = Henry Butler Stoney
 | date       = 1856
 | display    = Victoria
 | image_name = The Town Hall, Melbourne, Victoria, with a description of its principal cities.png
}}
The Town Hall, Melbourne, Victoria, with a description of its principal cities.png
Victoria (1856)
 by Henry Butler Stoney