Jump to content

Template:IncidentCargo: Difference between revisions

From Consumer Rights Wiki
added "short description" for browser extension
Tag: 2017 source edit
Schang1146 (talk | contribs)
Initial edit
Line 1: Line 1:
<noinclude>
<noinclude>
{{Important|Testing cargo installation}}
{{Important|This is a work in progress}}
This is the "Incident" template used with cargo and the wiki extension.
This is the "Incident" template used with Cargo and the Wiki extension.


{{#cargo_declare:_table=Incidents
; Fields available:
|Companies=List (,) of Page
: '''Company:''' (Mandatory) Related company pages
|Categories=List (,) of String
: '''StartDate:''' (Optional) Start date of incident
|DateOfIncident=Date
: '''EndDate:''' (Optional) End date of incident
|ShortDescription=String
: '''IncidentStatus:''' (Mandatory) Status of the incident (Active, Pending Resolution, Resolved)
: '''ProductLines:''' (Optional) Related product line pages
: '''Product:''' (Optional) Related product pages
: '''ArticleType''' (Mandatory) Indicates whether or not the incident is related to a "Product" or "Service"
: '''Type:''' (Mandatory) Type of incident (e.g. Repairability, Privacy, etc.)
: '''Description:''' (Mandatory) Description of the incident in 150 characters or less
 
{{#cargo_declare:_table=Incident
| Company        = List (,) of Page (mandatory)
| StartDate      = Date
| EndDate        = Date
| IncidentStatus = String (allowed values=Active,Pending Resolution,Resolved;mandatory)
| ProductLines  = List (,) of Page
| Product        = List (,) of Page
| ArticleType    = String (allowed values=Product,Service; mandatory)
| Type          = List (,) of String (mandatory)
| Description    = String (mandatory)
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Incidents}}
{{#cargo_store:_table=Incident}}
{|
! Companies
| {{{Companies|}}}
|-
! Categories
| {{{Categories|}}}
|-
! Date of incident
| {{{DateOfIncident|}}}
|-
! Short description (for browser extension, max 140 characters)
| {{{ShortDescription|}}}
|}
</includeonly>
</includeonly>

Revision as of 22:50, 23 June 2025


Important: This is a work in progress


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

Fields available
Company: (Mandatory) Related company pages
StartDate: (Optional) Start date of incident
EndDate: (Optional) End date of incident
IncidentStatus: (Mandatory) Status of the incident (Active, Pending Resolution, Resolved)
ProductLines: (Optional) Related product line pages
Product: (Optional) Related product pages
ArticleType (Mandatory) Indicates whether or not the incident is related to a "Product" or "Service"
Type: (Mandatory) Type of incident (e.g. Repairability, Privacy, etc.)
Description: (Mandatory) Description of the incident in 150 characters or less

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