Difference between revisions of "Template:Infobox brand"

From blackwiki
Jump to navigation Jump to search
imported>MantisEars
m (<br /> for xhtml)
imported>Redrose64
(why was this added at the bottom?)
 
(36 intermediate revisions by 24 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="width:23em; font-size:90%;"
+
{{Infobox
|- {{#if:{{{logo|}}}|
+
| bodyclass  = hproduct
<tr>
+
 
<td colspan="2" style="text-align: center;">{{{logo}}}</td>
+
| title      = {{{name|}}}
</tr>
+
| titleclass = fn
}}
+
 
|-
+
| image1    = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}}
! colspan="2" style="font-size: larger; text-align: center;" | {{{name}}}
+
| caption1  = {{{logo_caption|}}}
|- {{#if:{{{image|}}}|
+
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
<tr>
+
| caption2  = {{{caption|}}}
<td colspan="2" style="text-align: center; padding-bottom:3px; border-bottom: 1px solid #aaa;">{{{image}}}</td>
+
 
</tr>
+
| label1    = Product type
}}
+
| data1      = {{{type|{{{producttype|}}}}}}
|- {{#if:{{{type|}}}|
+
| class1    = type
<tr>
+
 
<th>Type</th>
+
| label2    = Owner
<td>{{{type}}}</td>
+
| data2      = {{{currentowner|}}}
</tr>
+
| class2    = brand
}}
+
 
|- {{#if:{{{currentowner|}}}|
+
| label3    = Produced&nbsp;by
<tr>
+
| data3      = {{{producedby|}}}
<th>Current owner</th>
+
 
<td>{{{currentowner}}}</td>
+
| label4    = Country
</tr>
+
| data4      = {{{origin|{{{country|}}}}}}
}}
+
 
|- {{#if:{{{origin|}}}|
+
| label5    = Introduced
<tr>
+
| data5      = {{{introduced|}}}
<th>Country of origin</th>
+
 
<td>{{{origin}}}</td>
+
| label6    = Discontinued
</tr>
+
| data6      = {{{discontinued|}}}
}}
+
 
|- {{#if:{{{introduced|}}}|
+
| label7    = Related brands
<tr>
+
| data7      = {{{related|}}}
<th>Introduced</th>
+
 
<td>{{{introduced}}}</td>
+
| label8    = Markets
</tr>
+
| data8      = {{{markets|}}}
}}
+
 
|- {{#if:{{{discontinued|}}}|
+
| label9    = Previous owners
<tr>
+
| data9      = {{{previousowners|}}}
<th>Discontinued</th>
+
 
<td>{{{discontinued}}}</td>
+
| label10    = Registered as a [[trademark]] in
</tr>
+
| data10    = {{{trademarkregistrations|}}}
}}
+
 
|- {{#if:{{{related|}}}|
+
| label11    = Ambassador(s)
<tr>
+
| data11    = {{{ambassadors|{{{ambassador|}}}}}}
<th>Related brands</th>
+
 
<td>{{{related}}}</td>
+
| label12    = Tagline
</tr>
+
| data12    = {{{tagline|}}}
}}
+
 
|- {{#if:{{{markets|}}}|
+
| label13    = Website
<tr>
+
| data13    = {{{website|}}}
<th>Markets</th>
+
 
<td>{{{markets}}}</td>
+
| data14    = {{{misc|{{{module|}}}}}}
</tr>
+
| data15    = {{{misc1|{{{module1|}}}}}}
}}
+
 
|- {{#if:{{{previousowners|}}}|
+
| below      = {{{footnotes|}}}
<tr>
+
}}{{#invoke:Check for unknown parameters|check
<th>Previous owners</th>
+
| unknown=[[Category:Pages using Infobox brand with unknown parameters|_VALUE_{{PAGENAME}}]]
<td>{{{previousowners}}}</td>
+
| preview=Page using [[Template:Infobox brand]] with unknown parameter "_VALUE_"
</tr>
+
| alt | ambassador | ambassadors
}}
+
| caption | country | currentowner
|- {{#if:{{{trademarkregistrations|}}}|
+
| discontinued
<tr>
+
| footnotes
<th>Registered as a [[trademark]] in</th>
+
| image | image_size | image_upright | introduced
<td>{{{trademarkregistrations}}}</td>
+
| logo | logo_alt | logo_caption | logo_size | logo_upright
</tr>
+
| markets | misc | misc1 | module | module1
}}
+
| name
|- {{#if:{{{website|}}}|
+
| origin
<tr>
+
| previousowners | producedby | producttype
<th>Website</th>
+
| related
<td>[{{{website}}} {{{name}}} - Official website]</td>
+
| tagline | trademarkregistrations | type
</tr>
+
| website
}}
+
}}<noinclude>
|}<noinclude>
+
{{Documentation}}
== Key definitions==
+
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
*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
 
==Example==
 
<pre>{{Infobox Brand
 
|logo=
 
|name=Trojan Brand Condoms
 
|image=
 
|type=
 
|currentowner=[[Church and Dwight]]
 
|origin={{flagcountry|USA}}
 
|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]]
 
|origin={{flagcountry|USA}}
 
|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]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:29, 29 January 2021

[[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
Trojan brand logo
Product typeCondom
OwnerChurch and Dwight (2001)
CountryUnited States
Introduced1916 (1916)
MarketsWorldwide
Previous owners
  • Fay and Youngs (1916)
  • Youngs Drug Products (1919)
  • Carter-Wallace, Inc. (1985)
WebsiteTemplate:URL
Add any necessary footnotes here.
[[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