Template:InfoboxProductLine: Difference between revisions

Undo revision 277 by Kostas (talk)
Tag: Undo
remove parser function, make params required
Line 1: Line 1:
<div style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 400px;">
<div style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 400px;">
<div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc;">{{{Title|{{PAGENAME}}}}}</div>
 
<table style="width:100%;">
    <div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc;"> {{{Title|{{PAGENAME}}}}} </div>
{{#if:{{{Release Year|}}}{{{Product Type|}}}{{{In Production|}}}{{{Official Website|}}}|<tr>  
 
<th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%; padding-top: 1.5em;">Basic Information</th>  
    <table style="width:100%;">
</tr>}}
 
{{#if:{{{Release Year|}}}|<tr>
            <tr>  
    <th>{{nowrap|Release Year}}</th>
                <th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%; padding-top: 1.5em;">Basic Information</th>  
    <td>{{{Release Year}}}</td>
            </tr>
</tr>}}{{#if:{{{Product Type|}}}|<tr>
 
    <th>{{nowrap|Product Type}}</th>
            <tr>
    <td>{{{Product Type}}}</td>
                <th>{{nowrap|Release Year}}</th>
</tr>}}{{#if:{{{In Production|}}}|<tr>
                <td>{{{Release Year}}}</td>
    <th>{{nowrap|In Production}}</th>
            </tr>
    <td>{{{In Production}}}</td>
 
</tr>}}{{#if:{{{Official Website|}}}|<tr>
            <tr>
    <th>{{nowrap|Official Website}}</th>
                <th>{{nowrap|Product Type}}</th>
    <td>{{nowrap|{{{Official Website}}}}}</td>
                <td>{{{Product Type}}}</td>
</tr>}}
            </tr>  
</table>
 
            <tr>
                <th>{{nowrap|In Production}}</th>
                <td>{{{In Production}}}</td>
            </tr>
            <tr>
                <th>{{nowrap|Official Website}}</th>
                <td>{{nowrap|{{{Official Website}}}}}</td>
            </tr>
 
    </table>
 
</div>
</div>


Line 39: Line 51:
"Title": {
"Title": {
"type": "string",
"type": "string",
"description": "Name of Product Line"
"description": "Name of Product Line",
"required": true
},
},
"Release Year": {
"Release Year": {
"type": "string",
"type": "string",
"description": "What year was the product/product line introduced"
"description": "What year was the product/product line introduced",
"required": true
},
},
"Product Type": {
"Product Type": {
"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
},
},
"In Production": {
"In Production": {
"type": "string",
"type": "string",
"description": "Determines if a product is in production currently",
"description": "Determines if a product is in production currently",
"example": "Yes, No"
"example": "Yes, No",
"required": true
},
},
"Official Website": {
"Official Website": {
"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
}
}
},
},
"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"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>