Please note that all submissions to the site are subject to the wiki's licence, CC 4.0 BY-SA, as found here

Template:InfoboxProductLine: Difference between revisions

From Consumer Action Taskforce
Jump to navigationJump to search
m Again fix focs
Remove picture until determining if external images are enabled. Remove multiple checks to avoid empty header, add nowrap to website
Line 1: Line 1:
<div style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 400px;">
<div style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 400px;">
<div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc;">{{{Title|{{PAGENAME}}}}}</div>
<div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc;">{{{Title|{{PAGENAME}}}}}</div>
{{#if:{{{Picture|}}}|<div style="text-align: center; padding-top: 1em; margin-bottom: -1em;">[[File:{{{Picture}}}|300px]]</div>}}
<table style="width:100%;">
<table style="width:100%;">{{#if:{{{Release Year|}}}{{{Product Type|}}}{{{In Production|}}}{{{Official Website|}}}|<tr>  
{{#if:{{{Release Year|}}}{{{Product Type|}}}{{{In Production|}}}{{{Official Website|}}}|<tr>  
<th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%; padding-top: 1.5em;">Basic Information</th>  
<th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%; padding-top: 1.5em;">Basic Information</th>  
</tr>}}
</tr>}}
Line 16: Line 16:
</tr>}}{{#if:{{{Official Website|}}}|<tr>
</tr>}}{{#if:{{{Official Website|}}}|<tr>
     <th>{{nowrap|Official Website}}</th>
     <th>{{nowrap|Official Website}}</th>
     <td>{{{Official Website}}}</td>
     <td>{{nowrap|{{{Official Website}}}}}</td>
</tr>}}
</tr>}}
</table>
</table>
Line 26: Line 26:
<pre><nowiki>{{InfoboxProductLine
<pre><nowiki>{{InfoboxProductLine
| Title =  
| Title =  
| Picture =
| Release Year =  
| Release Year =  
| Product Type =  
| Product Type =  
Line 41: Line 40:
"type": "string",
"type": "string",
"description": "Name of Product Line"
"description": "Name of Product Line"
},
"Picture": {
"type": "wiki-file-name",
"description": "Photo of product or product line logo"
},
},
"Release Year": {
"Release Year": {

Revision as of 18:57, 13 January 2025

InfoboxProductLine
{{#if:|}} {{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}
Basic Information
Release Year {{{Release Year}}}
Product Type {{{Product Type}}}
In Production {{{In Production}}}
Official Website {{{Official Website}}}


Usage

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


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]

ParameterDescriptionTypeStatus
TitleTitle

Name of Product Line

Stringoptional
Release YearRelease Year

What year was the product/product line introduced

Stringoptional
Product TypeProduct Type

Classification of product (line)

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

Determines if a product is in production currently

Example
Yes, No
Stringoptional
Official WebsiteOfficial Website

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

Stringoptional