Jump to content

Template:InfoboxProductLine: Difference between revisions

From Consumer_Action_Taskforce
Tob (talk | contribs)
Enable word wrapping to fix words going off the page
m remove style, use classes
Line 3: Line 3:
     <div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>
     <div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>
     <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
     <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
     <table style="width:100%;word-wrap:break-word;">
     <table class="infobox-table">


             <tr>  
             <tr>  
                 <th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%;">Basic Information</th>  
                 <th colspan=2 class="infobox-table-caption" >Basic Information</th>  
             </tr>
             </tr>


Line 26: Line 26:
             <tr>
             <tr>
                 <th>{{nowrap|Official Website}}</th>
                 <th>{{nowrap|Official Website}}</th>
                 <td>{{nowrap|{{{Official Website}}}}}</td>
                 <td>{{{Official Website}}}</td>
             </tr>
             </tr>


Line 35: Line 35:
{{InfoboxProductLine
{{InfoboxProductLine
| Title = Product Name
| Title = Product Name
| Release Year = 2000
| Release Year = 2000  
| Product Type = Type of product
| Product Type = Type of product Type of product Type of product
| In Production = Yes
| In Production = Yes
| Official Website = somewebsite.somewhere
| Official Website = somewebsite.somewhere  
| Logo= QuestionMark.svg
| Logo= QuestionMark.svg
}}
}}

Revision as of 11:04, 20 January 2025

Usage

Product Name
Basic Information
Release Year 2000
Product Type Type of product Type of product Type of product
In Production Yes
Official Website somewebsite.somewhere

To have this infobox appear to the right of the page, add this to the page with the text you wish to appear on the box when using the source editor.


{{InfoboxProductLine
| Title = 
| Release Year = 
| Product Type = 
| In Production = 
| Official Website = 
| Logo = 
}}

Template Data

This is a a simple information box to use in product line articles. Parameters are the information displayed on the infobox.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
TitleTitle

Name of Product Line

Stringrequired
Release YearRelease Year

What year was the product/product line introduced

Stringrequired
Product TypeProduct Type

Classification of product (line)

Example
Hardware, Software, Service,Laptop, Blender
Stringrequired
In ProductionIn Production

Determines if a product is in production currently

Example
Yes, No
Stringrequired
Official WebsiteOfficial Website

Website of product if it exists. (use wayback machine if necessary)

Stringrequired
LogoLogo

The logo accociated with this product. If there is no specific logo a picture of the product.

Default
QuestionMark.svg
Example
filename.[jpg|png|svg]
Auto value
QuestionMark.svg
Filerequired