Template:InfoboxProductLine: Difference between revisions
remove parser function, make params required |
added short description field for browser extension Tag: 2017 source edit |
||
(31 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<div style=" | <includeonly><div class="infobox"> | ||
<div style="display:flex;gap:8px;flex-direction:column;"> | |||
<div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div> | |||
<div class="infobox-image">[[File:{{{Logo}}}|200px]]</div> | |||
<table class="infobox-table"> | |||
<tr> | |||
<th colspan=2 class="infobox-table-caption" >Basic Information</th> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Short description}}</th> | |||
<tr> | <td>{{{short_description}}}</td> | ||
<th | |||
</tr> | </tr> | ||
Line 26: | Line 31: | ||
<tr> | <tr> | ||
<th>{{nowrap|Official Website}}</th> | <th>{{nowrap|Official Website}}</th> | ||
<td> | <td>{{{Official Website}}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
</div> | </div> | ||
</div></includeonly><noinclude> | |||
== Usage == | |||
'''Short description:''' This appears as a browser alert when someone visits a site related to this product. Limit to 140 characters. | |||
{{InfoboxProductLine | |||
| Title = Product Name | |||
| short_description = Brief alert text for browser extension when users visit this product’s site | |||
| Release Year = 2000 | |||
| Product Type = Type of product | |||
| In Production = Yes | |||
| Official Website = https://example.com/ | |||
| Logo = QuestionMark.svg | |||
}} | |||
<pre> | |||
<pre><nowiki>{{InfoboxProductLine | <nowiki> | ||
{{InfoboxProductLine | |||
| Title = | | Title = | ||
| short_description = | |||
| 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 52: | Line 73: | ||
"type": "string", | "type": "string", | ||
"description": "Name of Product Line", | "description": "Name of Product Line", | ||
"required": true | |||
}, | |||
"short_description": { | |||
"type": "string", | |||
"description": "Appears in the browser extension when a user visits a site related to this product. Limit to 140 characters.", | |||
"required": true | "required": true | ||
}, | }, | ||
Line 62: | Line 88: | ||
"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 | "required": true | ||
}, | }, | ||
Line 74: | Line 100: | ||
"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 associated with this product. If there is no specific logo, use a picture of the product.", | |||
"example": "filename.[jpg|png|svg]", | |||
"type": "wiki-file-name", | |||
"autovalue": "QuestionMark.svg", | |||
"default": "QuestionMark.svg", | |||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"description": "This is | "description": "This is a simple information box to use in product line articles. Includes structured data and a short description for external use.", | ||
"format": " | "format": "block", | ||
"paramOrder": [ | |||
"Title", | |||
"short_description", | |||
"Release Year", | |||
"Product Type", | |||
"In Production", | |||
"Official Website", | |||
"Logo" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |