Template:InfoboxProductLine: Difference between revisions
Appearance
m Again fix focs |
m Protected "Template:InfoboxProductLine": Excessive vandalism ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(34 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<div style=" | <includeonly><div class="infobox"> | ||
<div | <div style="display:flex;gap:8px;flex-direction:column;"> | ||
<div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div> | |||
<table | <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div> | ||
<th colspan=2 | <table class="infobox-table"> | ||
</tr> | |||
<tr> | |||
<th colspan=2 class="infobox-table-caption" >Basic Information</th> | |||
</tr> | |||
</tr | |||
<tr> | |||
<th>{{nowrap|Release Year}}</th> | |||
<td>{{{Release Year}}}</td> | |||
</tr> | |||
< | <tr> | ||
<th>{{nowrap|Product Type}}</th> | |||
<td>{{{Product Type}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|In Production}}</th> | |||
<td>{{{In Production}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Official Website}}</th> | |||
<td>{{{Official Website}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div></includeonly><noinclude> | |||
== Usage == | == Usage == | ||
<pre><nowiki>{{InfoboxProductLine | {{InfoboxProductLine | ||
| Title = Product Name | |||
| Release Year = 2000 | |||
| Product Type = Type of product | |||
| In Production = Yes | |||
| Official Website = https://example.com/ | |||
| Logo= QuestionMark.svg | |||
}} | |||
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. | |||
<pre> | |||
<nowiki> | |||
{{InfoboxProductLine | |||
| Title = | | Title = | ||
| Release Year = | | Release Year = | ||
| Product Type = | | Product Type = | ||
| In Production = | | In Production = | ||
| Official Website = | | Official Website = | ||
| Logo = | |||
}} | }} | ||
</nowiki></pre> | </nowiki> | ||
</pre> | |||
[[Category:Styling templates]] | |||
{{Clear}} | |||
== Template Data == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 40: | Line 64: | ||
"Title": { | "Title": { | ||
"type": "string", | "type": "string", | ||
"description": "Name of Product Line" | "description": "Name of Product Line", | ||
"required": true | |||
" | |||
}, | }, | ||
"Release Year": { | "Release Year": { | ||
"type": "string", | "type": "string", | ||
"description": "What year was the product/product line introduced" | "description": "What year was the product/product line introduced", | ||
"required": true | |||
}, | }, | ||
"Product Type": { | "Product Type": { | ||
"type": "string", | "type": "string", | ||
"description": "Classification of product (line)", | "description": "Classification of product (line)", | ||
"example": "Hardware, Software, Service,Laptop, Blender" | "example": "Hardware, Software, Service,Laptop, Blender", | ||
"required": true | |||
}, | }, | ||
"In Production": { | "In Production": { | ||
"type": "string", | "type": "string", | ||
"description": "Determines if a product is in production currently", | "description": "Determines if a product is in production currently", | ||
"example": "Yes, No" | "example": "Yes, No", | ||
"required": true | |||
}, | }, | ||
"Official Website": { | "Official Website": { | ||
"type": "string", | "type": "string", | ||
"description": "Website of product if it exists. (use wayback machine if necessary)" | "description": "Website of product if it exists. (use wayback machine if necessary)", | ||
"required": true | |||
}, | |||
"Logo": { | |||
"description": "The logo accociated with this product. If there is no specific logo a picture of the product.", | |||
"example": "filename.[jpg|png|svg]", | |||
"type": "wiki-file-name", | |||
"autovalue": "QuestionMark.svg", | |||
"default": "QuestionMark.svg", | |||
"required": true | |||
} | } | ||
}, | }, | ||
"description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox." | "description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.", | ||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 06:54, 28 February 2025
Usage
Product Name
Basic Information | |
---|---|
Release Year | 2000 |
Product Type | Type of product |
In Production | Yes |
Official Website | https://example.com/ |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | Title | Name of Product Line | String | required |
Release Year | Release Year | What year was the product/product line introduced | String | required |
Product Type | Product Type | Classification of product (line)
| String | required |
In Production | In Production | Determines if a product is in production currently
| String | required |
Official Website | Official Website | Website of product if it exists. (use wayback machine if necessary) | String | required |
Logo | Logo | The logo accociated with this product. If there is no specific logo a picture of the product.
| File | required |