Template:IncidentCargo: Difference between revisions

testing
 
Schang1146 (talk | contribs)
Actually fix spacing/whitespace... I love MediaWiki
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Important|Testing cargo installation}}
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:''' (Optional) Related company pages
|Categories=List (,) of String
: '''StartDate:''' (Optional) Start date of incident
|DateOfIncident=Date
: '''EndDate:''' (Optional) End date of incident
: '''Status:''' (Optional) Status of the incident (Active, Pending Resolution, Resolved)
: '''ProductLine:''' (Optional) Related product line pages
: '''Product:''' (Optional) Related product pages
: '''ArticleType''' (Optional) Indicates whether or not the incident is related to a "Product" or "Service"
: '''Type:''' (Optional) Type of incident (e.g. Repairability, Privacy, etc.)
: '''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
| Company        = List (,) of Page
| StartDate      = Start date
| EndDate        = End date
| Status        = String (allowed values=Active,Pending Resolution,Resolved)
| ProductLine    = List (,) of Page
| Product        = List (,) of Page
| ArticleType    = String (allowed values=Product,Service)
| Type          = List (,) of String
| Description    = String
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly><!--
{{#cargo_store:_table=Incidents}}
 
{|
-->{{#cargo_store:_table=Incident
! Company(/ies)
| Company        = {{{Company|}}}
|{{{Authors|}}}
| StartDate      = {{{StartDate|}}}
|-
| EndDate        = {{{EndDate|}}}
! Category(/iess)
| Status        = {{{Status|}}}
| {{{Categories|}}}
| ProductLine    = {{{ProductLine|}}}
|-
| Product        = {{{Product|}}}
! Date of incident
| ArticleType    = {{{ArticleType|}}}
| {{{DateOfIncident|}}}
| Type          = {{{Type|}}}
|-
| Description    = {{{Description|}}}
! Number of pages
}}<!--
| {{{NumberOfPages|}}}
 
|}
// hacky MediaWiki HTML manipulation to prevent a <br /> tag from showing up
</includeonly>
--><div></div></includeonly>