Template:IncidentCargo: Difference between revisions

Schang1146 (talk | contribs)
Edit StartDate and EndDate types
Schang1146 (talk | contribs)
Make optional fields blank if no value provided
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:


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


{{#template_params:Company (label=Company)
                  |StartDate (label=Start Date)
                  |EndDate (label=End Date)
                  |Status (label=Status)
                  |ProductLine (label=Product Line)
                  |Product (label=Product)
                  |ArticleType (label=Article Type)
                  |Type (label=Type)
                  |Description (Label=Description)
}}
{{#cargo_declare:_table=Incident
{{#cargo_declare:_table=Incident
| Company        = List (,) of Page (mandatory)
| Company        = List (,) of Page
| StartDate      = Start date
| StartDate      = Start date
| EndDate        = End date
| EndDate        = End date
| Status        = String (allowed values=Active,Pending Resolution,Resolved;mandatory)
| Status        = String (allowed values=Active,Pending Resolution,Resolved)
| ProductLine    = List (,) of Page
| ProductLine    = List (,) of Page
| Product        = List (,) of Page
| Product        = List (,) of Page
| ArticleType    = String (allowed values=Product,Service; mandatory)
| ArticleType    = String (allowed values=Product,Service)
| Type          = List (,) of String (mandatory)
| Type          = List (,) of String
| Description    = String (mandatory)
| Description    = String
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Incident
{{#cargo_store:_table=Incident
| Company        = {{{Company}}}
| Company        = {{{Company|}}}
| StartDate      = {{{StartDate}}}
| StartDate      = {{{StartDate|}}}
| EndDate        = {{{EndDate}}}
| EndDate        = {{{EndDate|}}}
| Status        = {{{Status}}}
| Status        = {{{Status|}}}
| ProductLine    = {{{ProductLine}}}
| ProductLine    = {{{ProductLine|}}}
| Product        = {{{Product}}}
| Product        = {{{Product|}}}
| ArticleType    = {{{ArticleType}}}
| ArticleType    = {{{ArticleType|}}}
| Type          = {{{Type}}}
| Type          = {{{Type|}}}
| Description    = {{{Description}}}
| Description    = {{{Description|}}}
}}
}}
</includeonly>
</includeonly>