Jump to content

Template:ProductCargo: Difference between revisions

From Consumer Rights Wiki
Schang1146 (talk | contribs)
Add infobox and ReleaseYear & InProduction fields
Schang1146 (talk | contribs)
Remove whitespace
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:


; Fields available:
; 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
: '''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
: '''ProductLine:''' (Optional) Related product line pages
: '''Category:''' (Optional) Categories that the product could fall under (e.g. Laptop, Desktop, Server, etc.)
: '''ReleaseYear:''' (Optional) Year that the product was released
: '''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
: '''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


{{#template_params:Company (label=Company)
{{#template_params:ArticleType (label=Article Type)
                  |Category (label=Category)
                  |Company (label=Company)
                  |Description (label=Description)
                  |InProduction (label=In Production)
                  |Logo (label=Logo)
                   |ProductLine (label=Product Line)
                   |ProductLine (label=Product Line)
                   |Category (label=Category)
                   |ReleaseYear (label=Release Year)
                  |ArticleType (label=Article Type)
                   |Website (label=Website)
                   |Website (label=Website)
                  |Logo (label=Logo)
                  |Description (label=Description)
                  | ReleaseYear (label=Release Year)
                  | InProduction (label=In Production)
}}
}}
{{#cargo_declare:_table=Product
{{#cargo_declare:_table=Product
| ArticleType    = String (allowed values=Product,Service)
| Category      = List (,) of String
| Company        = List (,) of Page
| Company        = List (,) of Page
| Description    = String
| InProduction  = Boolean
| Logo          = File
| ProductLine    = List (,) of Page
| ProductLine    = List (,) of Page
| Category      = List (,) of String
| ReleaseYear   = Date
| ArticleType   = String (allowed values=Product,Service)
| Website        = List (,) of URL
| Website        = List (,) of URL
| Logo          = File
| Description    = String
| ReleaseYear    = Date
| InProduction  = Boolean
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Product
{{#cargo_store:_table=Product
| ArticleType    = {{{ArticleType|}}}
| Category      = {{{Category|}}}
| Company        = {{{Company|}}}
| Company        = {{{Company|}}}
| Description    = {{{Description|}}}
| InProduction  = {{{InProduction|}}}
| Logo          = {{{Logo|}}}
| ProductLine    = {{{ProductLine|}}}
| ProductLine    = {{{ProductLine|}}}
| Category      = {{{Category|}}}
| ReleaseYear   = {{{ReleaseYear|}}}
| ArticleType   = {{{ArticleType|}}}
| Website        = {{{Website|}}}
| Website        = {{{Website|}}}
| Logo          = {{{Logo|}}}
| Description    = {{{Description|}}}
| ReleaseYear    = {{{ReleaseYear|}}}
| InProduction  = {{{InProduction|}}}
}}
}}
<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">{{{Title|{{PAGENAME}}}}}</div>
         <div class="infobox-title">{{PAGENAME}}</div>
         <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
         <div class="infobox-image">[[File:{{{Logo|QuestionMark.svg}}}|200px]]</div>
         <table class="infobox-table">
         <table class="infobox-table">
             <tr>
             <tr>
                 <th colspan="2" class="infobox-table-caption">
                 <th colspan="2" class="infobox-table-caption">Basic Information</th>
                    Basic Information
                </th>
             </tr>
             </tr>


             <tr>
             <tr>
                 <th>{{nowrap|Release Year}}</th>
                 <th>{{nowrap|Release Year}}</th>
                 <td>{{{ReleaseYear}}}</td>
                 <td>{{{ReleaseYear|}}}</td>
             </tr>
             </tr>


             <tr>
             <tr>
                 <th>{{nowrap|Product Type}}</th>
                 <th>{{nowrap|Product Type}}</th>
                 <td>{{{Category}}}</td>
                 <td>{{{Category|}}}</td>
             </tr>
             </tr>


             <tr>
             <tr>
                 <th>{{nowrap|In Production}}</th>
                 <th>{{nowrap|In Production}}</th>
                 <td>{{{InProduction}}}</td>
                 <td>{{{InProduction|}}}</td>
             </tr>
             </tr>


             <tr>
             <tr>
                 <th>{{nowrap|Official Website}}</th>
                 <th>{{nowrap|Official Website}}</th>
                 <td>{{{Website}}}</td>
                 <td>{{{Website|}}}</td>
             </tr>
             </tr>
         </table>
         </table>

Latest revision as of 05:33, 23 July 2025


Important: This is a work in progress


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.