Jump to content

Template:ProductCargo: Difference between revisions

From Consumer Rights Wiki
Schang1146 (talk | contribs)
No edit summary
Schang1146 (talk | contribs)
Add infobox and ReleaseYear & InProduction fields
Line 11: Line 11:
: '''Logo:''' (Optional) Image file of the product's logo
: '''Logo:''' (Optional) Image file of the product's logo
: '''Description:''' (Optional) Description of the incident in 150 characters or less
: '''Description:''' (Optional) Description of the incident in 150 characters or less
: '''ReleaseYear:''' (Optional) Year that the product was released
: '''InProduction:''' (Optional) Whether or not the product is still being produced


{{#template_params:Company (label=Company)
{{#template_params:Company (label=Company)
Line 19: Line 21:
                   |Logo (label=Logo)
                   |Logo (label=Logo)
                   |Description (label=Description)
                   |Description (label=Description)
                  | ReleaseYear (label=Release Year)
                  | InProduction (label=In Production)
}}
}}
{{#cargo_declare:_table=Product
{{#cargo_declare:_table=Product
Line 28: Line 32:
| Logo          = File
| Logo          = File
| Description    = String
| Description    = String
| ReleaseYear    = Date
| InProduction  = Boolean
}}
}}
</noinclude>
</noinclude>
Line 39: Line 45:
| Logo          = {{{Logo|}}}
| Logo          = {{{Logo|}}}
| Description    = {{{Description|}}}
| Description    = {{{Description|}}}
| ReleaseYear    = {{{ReleaseYear|}}}
| InProduction  = {{{InProduction|}}}
}}
}}
<div class="infobox">
    <div style="display: flex; gap: 8px; flex-direction: column">
        <div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>
        <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
        <table class="infobox-table">
            <tr>
                <th colspan="2" class="infobox-table-caption">
                    Basic Information
                </th>
            </tr>
            <tr>
                <th>{{nowrap|Release Year}}</th>
                <td>{{{ReleaseYear}}}</td>
            </tr>
            <tr>
                <th>{{nowrap|Product Type}}</th>
                <td>{{{Category}}}</td>
            </tr>
            <tr>
                <th>{{nowrap|In Production}}</th>
                <td>{{{InProduction}}}</td>
            </tr>
            <tr>
                <th>{{nowrap|Official Website}}</th>
                <td>{{{Website}}}</td>
            </tr>
        </table>
    </div>
</div>
</includeonly>
</includeonly>

Revision as of 02:28, 5 July 2025


Important: This is a work in progress


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

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

This is the "ProductCargo" template.

It should be called in the following format:

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

Edit the page to see the template text.

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