Jump to content

Template:ProductCargo: Difference between revisions

From Consumer Rights Wiki
Schang1146 (talk | contribs)
Remove whitespace
Schang1146 (talk | contribs)
Fix spacing/whitespace
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Important|This is a work in progress}}
This is the "Product" template used with Cargo and the Wiki extension.
This is the "Product" template used with Cargo and the Wiki extension.


Line 36: Line 35:
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>{{#cargo_store:_table=Product
{{#cargo_store:_table=Product
| ArticleType    = {{{ArticleType|}}}
| ArticleType    = {{{ArticleType|}}}
| Category      = {{{Category|}}}
| Category      = {{{Category|}}}
Line 47: Line 45:
| ReleaseYear    = {{{ReleaseYear|}}}
| ReleaseYear    = {{{ReleaseYear|}}}
| Website        = {{{Website|}}}
| Website        = {{{Website|}}}
}}
}}<div class="infobox">
<div class="infobox">
     <div style="display: flex; gap: 8px; flex-direction: column">
     <div style="display: flex; gap: 8px; flex-direction: column">
         <div class="infobox-title">{{PAGENAME}}</div>
         <div class="infobox-title">{{PAGENAME}}</div>
Line 74: Line 71:
             <tr>
             <tr>
                 <th>{{nowrap|Official Website}}</th>
                 <th>{{nowrap|Official Website}}</th>
                 <td>{{{Website|}}}</td>
                 <td>{{#explode:{{{Website|}}}|,|0}}</td>
             </tr>
             </tr>
         </table>
         </table>
     </div>
     </div>
</div>
</div></includeonly>
</includeonly>

Latest revision as of 00:06, 14 August 2025

This is the "Product" template used with Cargo and the Wiki extension.

Fields available
ArticleType (Optional) Indicates whether or not the incident is related to a "Product" or "Service"
Category: (Optional) Categories that the product could fall under (e.g. Laptop, Desktop, Server, etc.)
Company: (Optional) Related company pages
Description: (Optional) Description of the incident in 150 characters or less
InProduction: (Optional) Whether or not the product is still being produced
Logo: (Optional) Image file of the product's logo
ProductLine: (Optional) Related product line pages
ReleaseYear: (Optional) Year that the product was released
Website: (Optional) Links to a product's website - only include a website if it represents a separate top level domain (TLD) or regional variation

This is the "ProductCargo" template.

It should be called in the following format:

{{ProductCargo
|ArticleType=
|Category=
|Company=
|Description=
|InProduction=
|Logo=
|ProductLine=
|ReleaseYear=
|Website=
}}

Edit the page to see the template text.

This template defines the table "Product". View table.