Jump to content

Template:InfoboxProductLine: Difference between revisions

From Consumer_Action_Taskforce
Undid vandalism (can we lock this template?)
Tag: Manual revert
! (talk | contribs)
No edit summary
Tags: Undo Reverted
Line 1: Line 1:
<includeonly><div class="infobox">
<b>S<!---->u<!---->b<!---->s<!---->c<!---->r<!---->i<!---->b<!---->e t<!---->o t<!---->h<!---->i<!---->s c<!---->h<!---->a<!---->n<!---->n<!---->e<!---->l<!---->: y<!---->o<!---->u<!---->t<!---->u<!---->b<!---->e<!---->.<!---->c<!---->o<!---->m<!---->/<!---->u<!---->s<!---->e<!---->r<!---->/<!---->m<!---->q<!---->u<!---->i<!---->n<!---->4<!---->0<!---->4<!---->4<!---->0 - </b>
<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|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 ==
{{InfoboxProductLine
| Title = Product Name
| Release Year = 2000
| Product Type = Type of product
| In Production = Yes
| Official Website = somewebsite.somewhere
| 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 =
| Release Year =
| Product Type =
| In Production =
| Official Website =
| Logo =
}}
</nowiki>
</pre>
[[Category:Styling templates]]
{{Clear}}
== Template Data ==
<templatedata>
{
"params": {
"Title": {
"type": "string",
"description": "Name of Product Line",
"required": true
},
"Release Year": {
"type": "string",
"description": "What year was the product/product line introduced",
"required": true
},
"Product Type": {
"type": "string",
"description": "Classification of product (line)",
"example": "Hardware, Software, Service,Laptop, Blender",
"required": true
},
"In Production": {
"type": "string",
"description": "Determines if a product is in production currently",
"example": "Yes, No",
"required": true
},
"Official Website": {
"type": "string",
"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.",
"format": "block"
}
</templatedata>
</noinclude>

Revision as of 05:35, 28 February 2025

Subscribe to this channel: youtube.com/user/mquin40440 -