Template:Featured topic box: Difference between revisions
Content deleted Content added
m fix typo in Wikipedia:Former featured topics |
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> |
Revision as of 18:20, 6 January 2020
| {{{count}}} articles {{{lead}}}
| ||||
---|---|---|---|---|
|
This template is used on approximately 3,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses TemplateStyles: |
Usage
General syntax options for this template are as follows:
{{Featured topic box | title = | lead = | view = | 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]]
- view (optional): Link to the topic's page itself
- 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