Difference between revisions of "Template:Product"
Jump to navigation
Jump to search
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|none|300px|link=]]</div>}} <table>{{#if:{{{param1|}}}|<tr> <th>Parameter 1</th> <td>{{{param1}}}</td> </tr>}}{{#if:{{{param2|}}}|<tr> <th>Parameter 2</th> <td>{{{param2}}}</td> </tr>}}{{#if:{{{param3|}}}|<tr> <th>Parameter 3</th> <td>{{{param3}}}</td> </tr>}}{{#if:{{{param4|}}}|<tr> <th>Parameter 4</t...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | ||
<div class="infobox-image">[[File:{{{image}}}|none| | <div class="infobox-image">[[File:{{{image}}}|none|200px|link=]]</div>}} | ||
<table>{{#if:{{{ | <table>{{#if:{{{product_link|}}}|<tr> | ||
<th> | <th>Product Page</th> | ||
<td>{{{ | <td>[{{{product_link}}} {{{title}}}]</td> | ||
</tr>}}</table> | </tr>}}</table> | ||
</div> | </div> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"title": { | |||
"label": "Product Title", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Product Image", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"product_link": { | |||
"label": "Product Page", | |||
"type": "url", | |||
"required": true | |||
} | |||
}, | |||
"description": "Product Infobox", | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 21:09, 26 April 2022
Product
Product Infobox
Parameter | Description | Type | Status | |
---|---|---|---|---|
Product Title | title | no description | String | required |
Product Image | image | no description | File | required |
Product Page | product_link | no description | URL | required |