Difference between revisions of "IncidentInfoBox"
m (Spacing) |
(Fixed template data types) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{EventInfoBox|title={{{title|}}} | + | <includeonly>{{EventInfoBox|title={{{title|}}}|image={{{image|}}}|locations={{{locations|}}}|groups={{{groups|}}}|previousEvent={{{previousIncident|}}}|nextEvent={{{nextIncident|}}}|startDate={{{startDate|}}}|endDate={{{endDate|}}}|startTime={{{startTime|}}}|endTime={{{endTime|}}}|type=incident|extraContent={{#if: result|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Outcome</b>:</td><td>{{{result}}}</td></tr><tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Parent Arc:</b></td><td>{{{arc}}}</td></tr>}}}}</includeonly><noinclude>{{IncidentInfoBox|title=Test incident|image=byAllah.jpg|locations=[[Location A]], [[Location B]]|groups=[[Group 1]], [[Group 2]]|previousIncident=[[Some Previous Incident]]|nextIncident=[[The Next Incident]]|startDate=6/9/42|endDate=6/9/69|startTime=12:00|endTime=19:00|result=Group 1 triumphed over Group 2|arc=[[Some Arc]]}}Test Text<templatedata>{ |
− | |image={{{image|}}} | ||
− | |locations={{{locations|}}} | ||
− | |groups={{{groups|}}} | ||
− | |previousEvent={{{previousIncident|}}} | ||
− | |nextEvent={{{nextIncident|}}} | ||
− | |startDate={{{startDate|}}} | ||
− | |endDate={{{endDate|}}} | ||
− | |startTime={{{startTime|}}} | ||
− | |endTime={{{endTime|}}} | ||
− | |type=incident | ||
− | |extraContent={{#if: result|<tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Outcome</b>:</td><td>{{{result}}}</td></tr>}}}}</includeonly> | ||
− | <noinclude> | ||
− | {{IncidentInfoBox | ||
− | |title=Test incident | ||
− | |image=byAllah.jpg | ||
− | |locations=[[Location A]], [[Location B]] | ||
− | |groups=[[Group 1]], [[Group 2]] | ||
− | |previousIncident=[[Some Previous Incident]] | ||
− | |nextIncident=[[The Next Incident]] | ||
− | |startDate=6/9/42 | ||
− | |endDate=6/9/69 | ||
− | |startTime=12:00 | ||
− | |endTime=19:00 | ||
− | |result=Group 1 triumphed over Group 2}}Test Text | ||
− | <templatedata> | ||
− | { | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
Line 40: | Line 14: | ||
"label": "Locations", | "label": "Locations", | ||
"description": "Any location(s) the event took part in", | "description": "Any location(s) the event took part in", | ||
− | "type": " | + | "type": "wiki-page-name", |
"required": true | "required": true | ||
}, | }, | ||
Line 46: | Line 20: | ||
"label": "Groups", | "label": "Groups", | ||
"description": "Any groups involved in the incident", | "description": "Any groups involved in the incident", | ||
− | "required": true | + | "required": true, |
+ | "type": "wiki-page-name" | ||
}, | }, | ||
"startDate": { | "startDate": { | ||
Line 88: | Line 63: | ||
"description": "The incident that happened after this one chronologically", | "description": "The incident that happened after this one chronologically", | ||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
+ | }, | ||
+ | "arc": { | ||
+ | "label": "Arc", | ||
+ | "description": "The arc that this incident belongs to", | ||
+ | "type": "wiki-page-name", | ||
+ | "required": true | ||
} | } | ||
}, | }, | ||
Line 101: | Line 82: | ||
"startTime", | "startTime", | ||
"endTime", | "endTime", | ||
− | "result" | + | "result", |
+ | "arc" | ||
] | ] | ||
− | } | + | }</templatedata></noinclude> |
− | </templatedata> | ||
− | </noinclude> |
Latest revision as of 20:12, 29 November 2020
Test incident | |
---|---|
Notable Locations: | Location A, Location B |
Involved Groups: | Group 1, Group 2 |
Preceding Incident: | Some Previous Incident |
Succeeding Incident: | The Next Incident |
Start Date: | 6/9/42 |
Start Time: | 12:00 |
End Date: | 6/9/69 |
End Time: | 19:00 |
Outcome: | Group 1 triumphed over Group 2 |
Parent Arc: | Some Arc |
Test Text
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The name of the incident | String | optional |
Image | image | An image of the incident | File | optional |
Locations | locations | Any location(s) the event took part in | Page | required |
Groups | groups | Any groups involved in the incident | Page | required |
Previous Incident | previousIncident | The incident that happened before this one chronologically | Page | optional |
Next Incident | nextIncident | The incident that happened after this one chronologically | Page | optional |
Start Date | startDate | The date that the Incident started | String | required |
End Date | endDate | The date the incident finished (If the same as start leave blank) | String | suggested |
Start Time | startTime | The time the incident started | String | suggested |
End Time | endTime | The time the incident finished (leave blank if close to start time) | String | suggested |
Outcome | result | The outcome of the incident briefly described
| String | required |
Arc | arc | The arc that this incident belongs to | Page | required |