Difference between revisions of "Template:InfoBoxConflict"

(→‎Explanation: First draft of explanation for how to use InfoBoxConflict)
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:{{{campaignbox|}}}
+
<includeonly>{{#if:{{{campaignbox|}}}
 
|<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;">
 
|<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;">
 
<tr><td>
 
<tr><td>
Line 32: Line 32:
 
</tr>
 
</tr>
 
}}
 
}}
<tr class="infoboxrow">
+
        {{#if:{{{place|}}}
 +
|<tr class="infoboxrow">
 
<th style="border:1px solid #A1AFBF;">Location</th>
 
<th style="border:1px solid #A1AFBF;">Location</th>
 
<td><span class="location">{{{place}}}</span></td>
 
<td><span class="location">{{{place}}}</span></td>
 
</tr>
 
</tr>
 +
}}
 
         {{#if:{{{planet|}}}
 
         {{#if:{{{planet|}}}
 
|<tr class="infoboxrow">
 
|<tr class="infoboxrow">
Line 42: Line 44:
 
</tr>
 
</tr>
 
}}
 
}}
{{#if:{{{status|}}}{{{result|}}}
+
{{#if:{{{result|}}}
 
|<tr class="infoboxrow">
 
|<tr class="infoboxrow">
<th style="border:1px solid #A1AFBF;">{{#if:{{{status|}}}|Status|Result}}</th>
+
<th style="border:1px solid #A1AFBF;">Result</th>
<td >{{#if:{{{status|}}}|{{{status}}}|{{{result}}}}}</td>
+
<td >{{{result}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 133: Line 135:
 
}}
 
}}
 
</table>
 
</table>
<noinclude>
+
</includeonly><noinclude>{{documentation}}</noinclude>
== Usage ==
 
<pre>
 
{{InfoBoxConflict
 
| conflict =
 
| partof =
 
| image =
 
| caption =
 
| date =
 
| enddate =
 
| place =
 
| planet =
 
| status =
 
| result =
 
| territory =
 
| faction1 =
 
| faction2 =
 
| faction3 =
 
| commander1 =
 
| commander2 =
 
| commander3 =
 
| forces1 =
 
| forces2 =
 
| forces3 =
 
| environment =
 
| conditions =
 
}}
 
</pre>
 
 
 
== Explanation ==
 
 
 
; conflict = : Name of the battle, war, skirmish, or other conflict. <s>If blank, the article name is inserted.</s>
 
; partof = : The larger conflict that contained the conflict in question; (e.g., [[Battle of Hall (3039)]] was part of the [[War of 3039]].)
 
; image = : Image file link of a picture appropriate to the conflict. Most conflicts should have no image. See [[Policy:Images]] for guidance.
 
; caption = : Description of the image file
 
; date = : Date on which the conflict began, in day/month/year format. Use month/year or year alone if the exact date is unknown.
 
; enddate = : Date on which the conflict ended; same format as above
 
; place = : ? Location containing the planet where the conflict took place ? The location on the planet where the conflict took place ?
 
; planet = : Planet where the conflict took place
 
; status = : Description of the conflict's status, if it has not yet ended
 
; result = : Summary of the outcome of the conflict
 
; territory = : Territorial changes that took place as a result of the conflict
 
; faction1 = : Name of a faction involved in the conflict. If one faction can clearly be identified as the "attacker", put it here.
 
; faction2 = : Name of the opposing faction. If one faction can clearly be identified as the defender, put it here.
 
; faction3 = : Name of the third faction involved in a three-way conflict.
 
; commander1 = : Name of the individual commanding faction1
 
; commander2 = : As above, for faction2
 
; commander3 = : As above, for faction3
 
; forces1 = : Brief description of the units involved belonging to faction1
 
; forces2 = : As above, for faction2
 
; forces3 = : As above, for faction3
 
; environment = : Terrain or other special environment where the conflict was fought
 
; conditions = : Special conditions of the conflict, such as weather or time of day
 
 
 
[[Category:Templates|InfoBoxConflict]]
 
[[Category:Infobox templates|Conflict]]
 

Latest revision as of 20:24, 4 April 2024