Difference between revisions of "Template:Featured topic box/doc"

From blackwiki
Jump to navigation Jump to search
imported>AnomieBOT
imported>DannyS712
(update to include view function)
Line 8: Line 8:
 
|lead=
 
|lead=
 
|discussion=
 
|discussion=
 +
|view=
 
|bookname=
 
|bookname=
 
|count=
 
|count=
Line 26: Line 27:
 
*:Example: <nowiki>{{classicon|FA}} [[2003 Atlantic hurricane season]] </nowiki>
 
*:Example: <nowiki>{{classicon|FA}} [[2003 Atlantic hurricane season]] </nowiki>
 
*'''discussion''' (optional): Link to the most recent discussion (Wikipedia:Featured topic candidates/Title/{{{discussion}}}). By default, it links to the nomination.
 
*'''discussion''' (optional): Link to the most recent discussion (Wikipedia:Featured topic candidates/Title/{{{discussion}}}). By default, it links to the nomination.
 +
*'''view''' (optional): Link to the topic's page itself
 
*'''bookname''' (''optional''): name of [[Wikipedia:Books|book]] associated with topic, where different from ''title''. If omitted or blank, a book with the same title as the featured topic is linked.
 
*'''bookname''' (''optional''): name of [[Wikipedia:Books|book]] associated with topic, where different from ''title''. If omitted or blank, a book with the same title as the featured topic is linked.
 
*:Example: University of Toronto ''(provides link to [[Book:University of Toronto]] and [[Book talk:University of Toronto#Book report|the associated book report]])''
 
*:Example: University of Toronto ''(provides link to [[Book:University of Toronto]] and [[Book talk:University of Toronto#Book report|the associated book report]])''

Revision as of 19:44, 29 November 2018

Usage

General syntax options for this template are as follows:

{{Featured topic box
|title=
|lead=
|discussion=
|view=
|bookname=
|count=
|image=
|imagesize=
|column1=
: 
: 
|column2=
: 
: 
|column3=
}}
  • title: name of the featured topic (used for the talk page link)
    Example: 2003 Atlantic hurricane season         for 2003 Atlantic hurricane season
  • lead: name of topic to be displayed in header bar, including any formating and links. Must not include any bold text. Should be the same as the topic title - can be piped if needs be.
    Example: {{classicon|FA}} [[2003 Atlantic hurricane season]]
  • discussion (optional): Link to the most recent discussion (Wikipedia:Featured topic candidates/Title/{{{discussion}}}). By default, it links to the nomination.
  • view (optional): Link to the topic's page itself
  • bookname (optional): name of book associated with topic, where different from title. If omitted or blank, a book with the same title as the featured topic is linked.
    Example: University of Toronto (provides link to Book:University of Toronto and the associated book report)
  • count: number of articles in topic
    Example: 17
  • image (optional): name of image to be used, which must not be fair use. If omitted or blank, no image is used.
    Example: 2003 Atlantic hurricane season map.png         (see Image:2003 Atlantic hurricane season map.png)
  • imagesize (optional) size of any image in pixels. If omitted or blank, this will take the value 60 (if there is an image)
    Example: 55
    To make the height 60, like in most of the current boxes, divide length by height and multiply by 60.
  • column1, column2, column3: use these to list the articles in the topic using bulleted lists, with any formatting, links, and the FA/GA stars.
    Example:
    • {{icon|FL}} [[List of storms in the 2003 Atlantic hurricane season|List of storms]]
    • {{icon|GA}} [[Tropical Storm Ana (2003)|Tropical Storm Ana]]
    • {{icon|FA}} [[Hurricane Juan]]
    • {{icon|PR}} [[Hurricane Bob]]
    • — etc.

The colour scheme for this template uses the H90 header / accent colours at Wikipedia talk:Colours