Difference between revisions of "Template:Product"

From ProFantasy Help
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|300px|link=]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|none|200px|link=]]</div>}}
<table>{{#if:{{{param1|}}}|<tr>
<table>{{#if:{{{product_link|}}}|<tr>
     <th>Parameter 1</th>
     <th>Product Page</th>
     <td>{{{param1}}}</td>
     <td>[{{{product_link}}} {{{title}}}]</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</th>
    <td>{{{param4}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
    <th>Parameter 5</th>
    <td>{{{param5}}}</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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Product Titletitle

no description

Stringrequired
Product Imageimage

no description

Filerequired
Product Pageproduct_link

no description

URLrequired