Difference between revisions of "Template:Featured topic box"
Jump to navigation
Jump to search
imported>The wub m (fix typo in Wikipedia:Former featured topics) |
imported>The wub (comment out book links following Wikipedia:Village pump (technical)/Archive 176#Suppress rendering of Template:Wikipedia books) |
||
Line 6: | Line 6: | ||
| | | | ||
|<div style="float:left;margin-left:1em;background: transparent"><small><span class="plainlinks noprint"><!-- | |<div style="float:left;margin-left:1em;background: transparent"><small><span class="plainlinks noprint"><!-- | ||
− | -->{{#ifeq:{{lc:{{{view}}}}}|yes|[//en.wikipedia.org/w/index.php?title=Wikipedia:Featured_topics/{{urlencode:{{{title|}}}}} view] {{!}} [//en.wikipedia.org/w/index.php?title=Wikipedia:Featured_topics/{{urlencode:{{{title|}}}}}&action=edit edit] | [//en.wikipedia.org/w/index.php?title=Wikipedia:Featured_topics/{{urlencode:{{{title|}}}}}&action=edit edit]}}</span> {{!}} [[WT:Featured topics/{{{title|}}}|discuss]] {{!}} [[Book:<noinclude>Bookname</noinclude>{{#if:{{{bookname|}}}|{{{bookname}}}|{{{title|}}}}}|book]] {{ | + | -->{{#ifeq:{{lc:{{{view}}}}}|yes|[//en.wikipedia.org/w/index.php?title=Wikipedia:Featured_topics/{{urlencode:{{{title|}}}}} view] {{!}} [//en.wikipedia.org/w/index.php?title=Wikipedia:Featured_topics/{{urlencode:{{{title|}}}}}&action=edit edit] | [//en.wikipedia.org/w/index.php?title=Wikipedia:Featured_topics/{{urlencode:{{{title|}}}}}&action=edit edit]}}</span> {{!}} [[WT:Featured topics/{{{title|}}}|discuss]] <!--{{!}} [[Book:<noinclude>Bookname</noinclude>{{#if:{{{bookname|}}}|{{{bookname}}}|{{{title|}}}}}|book]] {{ |
#switch: {{FULLPAGENAME}} | #switch: {{FULLPAGENAME}} | ||
| Wikipedia:Featured topics = | | Wikipedia:Featured topics = | ||
| Wikipedia:Former featured topics = | | Wikipedia:Former featured topics = | ||
| #default = {{!}} [[Book talk:<noinclude>Bookname</noinclude>{{#if:{{{bookname|}}}|{{{bookname}}}|{{{title|}}}}}#Book report|report]] | | #default = {{!}} [[Book talk:<noinclude>Bookname</noinclude>{{#if:{{{bookname|}}}|{{{bookname}}}|{{{title|}}}}}#Book report|report]] | ||
− | }}<!--endswitch FULLPAGENAME | + | }}--><!--endswitch FULLPAGENAME |
--></small></div><div style="float:right;margin-right:1em; background: transparent">{{#ifexpr:{{PAGESINCATEGORY:Wikipedia featured topics {{{title}}}}} > 0|{{#ifexpr:{{PAGESINCATEGORY:Wikipedia featured topics {{{title}}} good content}} = 0|{{FeaturedTopicSum|{{{title}}}|[[Image:Cscr-featuredtopic.png|24px|alt=|Featured topic|left]]|}}|}}|}}<small>{{{count}}} articles</small></div> | --></small></div><div style="float:right;margin-right:1em; background: transparent">{{#ifexpr:{{PAGESINCATEGORY:Wikipedia featured topics {{{title}}}}} > 0|{{#ifexpr:{{PAGESINCATEGORY:Wikipedia featured topics {{{title}}} good content}} = 0|{{FeaturedTopicSum|{{{title}}}|[[Image:Cscr-featuredtopic.png|24px|alt=|Featured topic|left]]|}}|}}|}}<small>{{{count}}} articles</small></div> | ||
}}<big>{{{lead}}}</big> | }}<big>{{{lead}}}</big> |
Latest revision as of 18:20, 6 January 2020
| {{{count}}} articles {{{lead}}}
| ||||
---|---|---|---|---|
|
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
The above documentation is transcluded from Template:Featured topic box/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |