Misplaced Pages

Template:Featured topic box: Difference between revisions

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 18:14, 6 January 2020 view sourceThe wub (talk | contribs)Administrators92,730 editsm fix typo in Misplaced Pages:Former featured topics← Previous edit Revision as of 18:20, 6 January 2020 view source The wub (talk | contribs)Administrators92,730 edits comment out book links following Misplaced Pages:Village pump (technical)/Archive 176#Suppress rendering of Template:Misplaced Pages booksNext edit →
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| {{!}} | }}</span> {{!}} ] {{!}} ] {{ -->{{#ifeq:{{lc:{{{view}}}}}|yes| {{!}} | }}</span> {{!}} ] <!--{{!}} ] {{
#switch: {{FULLPAGENAME}} #switch: {{FULLPAGENAME}}
| Misplaced Pages:Featured topics = | Misplaced Pages:Featured topics =
| Misplaced Pages:Former featured topics = | Misplaced Pages:Former featured topics =
| #default = {{!}} ] | #default = {{!}} ]
}}<!--endswitch FULLPAGENAME }}--><!--endswitch FULLPAGENAME
--></small></div><div style="float:right;margin-right:1em; background: transparent">{{#ifexpr:{{PAGESINCATEGORY:Misplaced Pages featured topics {{{title}}}}} > 0|{{#ifexpr:{{PAGESINCATEGORY:Misplaced Pages featured topics {{{title}}} good content}} = 0|{{FeaturedTopicSum|{{{title}}}|]|}}|}}|}}<small>{{{count}}} articles</small></div> --></small></div><div style="float:right;margin-right:1em; background: transparent">{{#ifexpr:{{PAGESINCATEGORY:Misplaced Pages featured topics {{{title}}}}} > 0|{{#ifexpr:{{PAGESINCATEGORY:Misplaced Pages featured topics {{{title}}} good content}} = 0|{{FeaturedTopicSum|{{{title}}}|]|}}|}}|}}<small>{{{count}}} articles</small></div>
}}<big>{{{lead}}}</big> }}<big>{{{lead}}}</big>

Revision as of 18:20, 6 January 2020

edit | discuss {{{count}}} articles{{{lead}}}

{{{column1}}}

{{{column2}}}

{{{column3}}}

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 3,300 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.
CSSThis 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}} ]
  • 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}} ]
    * {{icon|GA}} ]
    * {{icon|FA}} ]
    * {{icon|PR}} ]
    * — etc.

The colour scheme for this template uses the H90 header / accent colours at Misplaced Pages 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.
Add categories to the /doc subpage. Subpages of this template.


Categories:
Template:Featured topic box: Difference between revisions Add topic