Difference between revisions of "Template:Good topic box"

From blackwiki
Jump to navigation Jump to search
imported>Qst
(Design)
 
imported>Rst20xx
(will use same box)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{{br|<br clear="all"/>}}}
+
#REDIRECT [[Template:Featured topic box]]
{| class="toccolours" width=95% style="margin:0 auto; clear:both;"
 
|-
 
! colspan=2 style="background:#E0F2CE; text-align:center; text-valign:center; height:25px;"|
 
{{#ifeq: {{{small}}}|yes||<div style="float: left; margin-left: 1em; background-color: transparent;"><small>[[Wikipedia talk:Good topics/{{{title}}}{{!}}Topic discussion]]</small></div><div style="float: right; margin-right: 1em; background-color: transparent;">{{#ifeq: {{{ftstar}}}| yes | [[Image:Cscr-featuredtopic.svg|24px|✓|Good topic|left]]|}}<small>{{{count}}} articles</small></div>}}<big>{{{lead}}}</big>
 
|- bgcolor=#F2FFE6
 
|
 
{|style="background-color: transparent;" width=100%
 
|- valign="top"
 
|style="width: {{#ifeq: {{{small}}}|yes|1px; | {{ #if: {{{image|}}} | {{#if: {{{imagesize|}}} | {{#expr: {{{imagesize}}} + 10}}px; | 110px;}} | 1px;}} }} text-align:center;"| {{#ifeq: {{{small}}}|yes| | {{ #if: {{{image|}}} | [[Image:{{{image}}}|{{#if: {{{imagesize|}}} | {{{imagesize}}}px | 60px }}]] | }} }}
 
| style="padding:0 1% 0 1%; text-align:left; width:{{ #if:  {{{column3|}}} |33%;|50%;}}"|
 
{{{column1}}}
 
| style="padding:0 1% 0 1%; text-align:left; width:{{ #if:  {{{column3|}}} |33%;|50%;}}"|
 
{{{column2}}}
 
| style="padding:0 1% 0 1%; text-align:left; width:{{ #if:  {{{column3|}}} |33%;|0%;}}"|
 
{{{column3}}}
 
|}
 
|}
 
<noinclude><br/>
 
===Options and parameters===
 
General syntax options for this template are as follows:
 
<nowiki>{{Good topic box
 
|title=
 
|lead=
 
|count=
 
|image=
 
|imagesize=
 
|column1=
 
:
 
:
 
|column2=
 
:
 
:
 
|column3=
 
:
 
:
 
|ftstar=
 
}}</nowiki>
 
 
 
*'''title''': name of the good topic (used for the talk page link)
 
*:Example: Final Fantasy titles &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for [[Wikipedia talk:Good topics/Final Fantasy titles|Final Fantasy titles]]
 
*'''lead''': name of topic to be displayed in header bar, including any formating and links. Must not include any bold text.
 
*:Example: <nowiki>{{GA-icon}} [[List of Final antasy titles|''Final Fantasy'' titles]] </nowiki>
 
*'''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: Solar sys2.jpg &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (''see [[:Image:Solar sys2.jpg]]'')
 
*'''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 GA star, and if lists are included in the topic, the FL star must be used.
 
*: Example:
 
*:* <nowiki>{{GA-icon}} [[Sun]]</nowiki>
 
*:* <nowiki>{{FA-star}} [[Mercury (planet)|Mercury]]</nowiki>
 
*:* &mdash; etc.
 
 
 
''The colour scheme for this template uses the H90 header / accent colours at [[Wikipedia talk:Colours]]''
 
 
 
[[Category:Templates using ParserFunctions]]
 
[[Category:Wikipedia Good topics]]
 
 
 
</noinclude>
 

Latest revision as of 15:55, 9 September 2008