Template:InfoboxProductLine: Difference between revisions

remove parser function, make params required
m Protected "Template:InfoboxProductLine": Excessive vandalism ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(30 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<div style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 400px;">
<includeonly><div class="infobox">
 
<div style="display:flex;gap:8px;flex-direction:column;">
     <div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc;"> {{{Title|{{PAGENAME}}}}} </div>
     <div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>
 
    <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
     <table style="width:100%;">
     <table class="infobox-table">


             <tr>  
             <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 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>


     </table>
     </table>
</div>
</div>
</div></includeonly><noinclude>
== Usage ==
{{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.


<noinclude>
<pre>
 
<nowiki>
== Usage ==
{{InfoboxProductLine
<pre><nowiki>{{InfoboxProductLine
| Title =  
| Title =  
| Release Year =  
| Release Year =  
Line 42: Line 51:
| In Production =  
| In Production =  
| Official Website =  
| Official Website =  
| Logo =
}}
}}
</nowiki></pre>
</nowiki>
</pre>
[[Category:Styling templates]]
{{Clear}}


== Template Data ==
<templatedata>
<templatedata>
{
{
Line 74: Line 87:
"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
"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": "inline"
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>