Template:ProductLineCargo: Difference between revisions
Appearance
Schang1146 (talk | contribs) Add template parameters |
Schang1146 (talk | contribs) Add infobox and fields for InProduction and ReleaseYear |
||
(3 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.) | : '''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 | |||
: '''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 | : '''Website:''' (Optional) Links to a product's website - only include a website if it represents a separate top level domain (TLD) or regional variation | ||
{{#template_params:ArticleType (label=Article Type) | |||
|Category (label=Category) | |||
|Company (label=Company) | |||
|Description (label=Description) | |||
|InProduction (label=In Production) | |||
|Logo (label=Logo) | |||
|ReleaseYear (label=Release Year) | |||
|Website (label=Website) | |||
}} | |||
{{#cargo_declare:_table=ProductLine | {{#cargo_declare:_table=ProductLine | ||
| | | ArticleType = String (allowed values=Product,Service) | ||
| Category = List (,) of String | | Category = List (,) of String | ||
| | | Company = List (,) of Page | ||
| Description = String | |||
| InProduction = Boolean | |||
| Logo = File | |||
| ReleaseYear = Date | |||
| Website = List (,) of URL | | Website = List (,) of URL | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#cargo_store:_table=ProductLine | {{#cargo_store:_table=ProductLine | ||
| | | ArticleType = {{{ArticleType|}}} | ||
| Category = {{{Category}}} | | Category = {{{Category|}}} | ||
| | | Company = {{{Company|}}} | ||
| | | Description = {{{Description|}}} | ||
| Logo = {{{Logo}}} | | InProduction = {{{InProduction|}}} | ||
| | | Logo = {{{Logo|QuestionMark.svg}}} | ||
| ReleaseYear = {{{ReleaseYear|}}} | |||
| Website = {{{Website|}}} | |||
}} | }} | ||
<div class="infobox"> | |||
<div style="display: flex; gap: 8px; flex-direction: column"> | |||
<div class="infobox-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> |
Latest revision as of 02:59, 5 July 2025
Important: This is a work in progress
This is the "ProductLine" 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
- 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 "ProductLineCargo" template.
It should be called in the following format:
{{ProductLineCargo |ArticleType= |Category= |Company= |Description= |InProduction= |Logo= |ReleaseYear= |Website= }}
Edit the page to see the template text.
This template defines the table "ProductLine". View table.