Difference between revisions of "Template:Infobox brand"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
m (moved Template:Infobox Brand to Template:Infobox brand: standard casing)
imported>Thumperward
(convert to {{infobox}} for clarity of code and ease of maintenance. if there are any issues with this code drop, before reverting please let me know and I'll try to fix them quickly)
Line 1: Line 1:
{| class="infobox vcard" style="width:23em; font-size:90%;" cellpadding=3
+
{{ infobox
|-
+
| bodyclass = vcard
! colspan="2" style="font-size: larger; text-align: center;" | {{{name}}}
+
| title    = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
|- {{#if:{{{logo|}}}|
+
| above    = {{#if:{{{logo|}}}|{{{logo}}}}}
<tr>
+
| image    = {{{image|}}}
<td colspan="2" style="text-align: center;">{{{logo}}}</td>
+
| caption  = {{{caption|}}}
</tr>
 
}}
 
|- {{#if:{{{image|}}}|
 
<tr>
 
<td colspan="2" style="text-align: center; padding-bottom:3px; border-bottom: 1px solid #aaa;">{{{image}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{type|}}}|
 
<tr>
 
<th align="right">Type</th>
 
<td>{{{type}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{currentowner|}}}|
 
<tr>
 
<th align="right">Current owner</th>
 
<td>{{{currentowner}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{origin|}}}|
 
<tr>
 
<th align="right">Country of origin</th>
 
<td>{{{origin}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{introduced|}}}|
 
<tr>
 
<th align="right">Introduced</th>
 
<td>{{{introduced}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{discontinued|}}}|
 
<tr>
 
<th align="right">Discontinued</th>
 
<td>{{{discontinued}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{related|}}}|
 
<tr>
 
<th align="right">Related brands</th>
 
<td>{{{related}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{markets|}}}|
 
<tr>
 
<th align="right">Markets</th>
 
<td>{{{markets}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{previousowners|}}}|
 
<tr>
 
<th align="right">Previous owners</th>
 
<td>{{{previousowners}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{trademarkregistrations|}}}|
 
<tr>
 
<th align="right">Registered as a [[trademark]] in</th>
 
<td>{{{trademarkregistrations}}}</td>
 
</tr>
 
}}
 
|- {{#if:{{{website|}}}|
 
<tr>
 
<th align="right">Website</th>
 
<td>[{{{website}}} Official website]</td>
 
</tr>
 
}}
 
|}<noinclude>
 
== Parameters==
 
The infobox may be added by pasting the template as shown below into an article, typically at the top an an article above the lead section. All parameters except name are optional; any unused parameters should be left blank or omitted.
 
*logo: image of logo
 
*name: name of brand
 
*image: image of brand in use
 
*type: category of products sold under this brand
 
*currentowner: name of entity that currently owns the brand
 
*origin: Country of origin
 
*introduced: date brand was first used
 
*discontinued: date brand was retired
 
*related: Related brands, other brands that are used with the same products by the same manufacturer ie Chrysler and Dodge
 
*markets: markets in which this brand is used (usually country, sometimes just regions of countries ie North East, Intermountain west, etc)
 
*previousowners: previous entities that owned this brand
 
*trademarkregistrations: countries and dates where the brand has been made a registered trademark
 
*website: official website of the brand
 
  
==Usage==
+
| label1    = Type
<pre style="width: 15em;">{{Infobox Brand
+
| data1    = {{{type|}}}
|logo=
+
| label2    = Current owner
|name=
+
| data2    = {{{currentowner|}}}
|image=
+
| label3    = Country of origin
|type=
+
| data3    = {{{origin|}}}
|currentowner=
+
| label4    = Introduced
|origin=
+
| data4    = {{{introduced|}}}
|introduced=
+
| label5    = Discontinued
|discontinued=
+
| data5    = {{{discontinued|}}}
|related=
+
| label6    = Related brands
|markets=
+
| data6    = {{{related|}}}
|previousowners=
+
| label7    = Markets
|trademarkregistrations=
+
| data7    = {{{markets|}}}
|website=
+
| label8    = Previous owners
}}</pre>
+
| data8    = {{{previousowners|}}}
 +
| label9    = Registered as a [[trademark]] in
 +
| data9    = {{{trademarkregistrations|}}}
 +
| label10  = Website
 +
| data10    = [{{{website|}}}
  
==Example==
+
}}<noinclude>{{doc}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
<pre>{{Infobox Brand
 
|logo=
 
|name=Trojan Brand Condoms
 
|image=
 
|type=
 
|currentowner=[[Church and Dwight]] (since 2001)
 
|origin={{flagcountry|USA}}
 
|introduced=1920
 
|discontinued=
 
|related=
 
|markets=World
 
|previousowners=1920 - Youngs Drug Products<br />1985 - Carter-Wallace Inc<br />
 
|trademarkregistrations=
 
|website=http://www.trojancondoms.com/
 
}}</pre>
 
{{Infobox Brand
 
|logo=
 
|name=Trojan Brand Condoms
 
|image=
 
|type=
 
|currentowner=[[Church and Dwight]] (since 2001)
 
|origin={{flagcountry|USA}}
 
|introduced=1920
 
|discontinued=
 
|related=
 
|markets=World
 
|previousowners=1920 - Youngs Drug Products<br />1985 - Carter-Wallace Inc<br />
 
|trademarkregistrations=
 
|website=http://www.trojancondoms.com/
 
}}
 
<!--Categories-->
 
[[Category:Business infobox templates|Brand]]
 
[[ja:Template:Infobox Brand]]
 
</noinclude>
 

Revision as of 14:35, 17 October 2009

Website[

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox brand
| name           = 
| logo           = 
| logo_upright   = 
| logo_alt       = 
| logo_caption   = 
| image          = 
| image_upright  = 
| alt            = 
| caption        = 
| producttype    = 
| currentowner   = 
| producedby     = 
| country        = <!-- or: origin -->
| introduced     = 
| discontinued   = 
| related        = 
| markets        = 
| previousowners = 
| trademarkregistrations = 
| ambassadors    = 
| tagline        = 
| website        = 
| module         = <!-- or: misc -->
| module1        = <!-- or: misc1 -->
| footnotes     =
}}

Parameters

The infobox may be added by pasting the template as shown above into an article, typically at the top of an article above the lead section. All parameters except name are optional; any unused parameters should be left blank or omitted. Separate multiple values using {{plainlist}} or {{flatlist}}.

name 
name of brand
logo
image of logo
logo_upright 
value used to scale logo size, see Wikipedia:Extended image syntax
logo_alt 
alternative text for logo, see WP:ALT
logo_caption 
text to be displayed below logo
image 
image of brand in use
image_upright 
value used to scale image size, see Wikipedia:Extended image syntax
alt 
alternative text for image, see WP:ALT
caption 
text to be displayed below image
producttype 
category of products sold under this brand
currentowner 
name of entity that currently owns the brand
producedby 
manufacturer
country or origin 
Country of origin
introduced
date brand was first used
discontinued
date brand was retired
related
Related brands, other brands that are used with the same products by the same manufacturer i.e. Chrysler and Dodge
markets
markets in which this brand is used (usually country, sometimes just regions of countries i.e. North East, Intermountain west, etc.)
previousowners
previous entities that owned this brand
trademarkregistrations
countries and dates where the brand has been made a registered trademark
ambassadors
Brand ambassador(s)
tagline
tagline/advertising slogan
website
official website of the brand
module or misc 
module1 or misc1 
footnotes
Footnotes displayed at the bottom of infobox

Tracking category

Examples

Trojan Brand Condoms
Logo example.svg
Current ownerChurch and Dwight (2001)
Introduced1916 (1916)
MarketsWorldwide
Previous owners
  • Fay and Youngs (1916)
  • Youngs Drug Products (1919)
  • Carter-Wallace, Inc. (1985)
Website[[[:Template:URL]]
[[Category:Infobox templates|Template:Remove first word]]
{{infobox brand
| name                   = Trojan Brand Condoms
| logo                   = Logo example.svg
| logo_caption           = Trojan brand logo
| producttype            = [[Condom]]
| currentowner           = [[Church and Dwight]] (2001)
| country                = [[United States]]
| introduced             = {{Start date|1916}}
| discontinued           = 
| related                = 
| markets                = Worldwide
| previousowners         = {{Plainlist|
* Fay and Youngs (1916)
* Youngs Drug Products (1919)
* Carter-Wallace, Inc. (1985)
}}
| trademarkregistrations = 
| ambassadors            = 
| tagline                = 
| website                = {{URL|trojancondoms.com}}
| footnotes              =
}}

See also