Template:Infobox Military conflict: Difference between revisions

From Semantic Stargate Wiki
No edit summary
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div display="none">{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}<!--  
<includeonly><div display="none">{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}<!--  
  -->{{#if: {{{nocat|}}}  
  -->{{#if: {{{nocat|}}}  
     |  
     |  
Line 10: Line 10:
       | User  
       | User  
       | [[Category:Stargate Wiki contributors]]  
       | [[Category:Stargate Wiki contributors]]  
       | [[Category:Military conflicts]]
       | [[Category:Events]]
       }}
       }}
     }}{{#ifeq:{{{spoiler|}}}
     }}{{#ifeq:{{{spoiler|}}}
Line 17: Line 17:
         |<!--  
         |<!--  
     -->{{#if: {{{separate|}}}{{{SGI|}}}
     -->{{#if: {{{separate|}}}{{{SGI|}}}
         | {{Separate continuity|category={{{category|}}}}}[[Category:Military conflicts part of a separate continuity]]
         | {{Separate continuity|category={{{category|}}}}}[[Category:Events part of a separate continuity]]
         |
         |
         }}<!--  
         }}<!--  
     -->}}<!--  
     -->}}<!--  
  -->}}</div>{{Infobox
  -->}}</div>{{Infobox
| name           = Infobox Military conflict
| name           = Infobox Military conflict
| child         = {{{child|}}}
| child           = {{{child|}}}
| subbox         = {{{subbox|}}}
| subbox         = {{{subbox|}}}
| italic title   = no
| italic title   = no
| bodystyle     =  
| bodystyle       =  


| titlestyle     =  
| titlestyle     =  
| abovestyle     =  
| abovestyle     =  
| subheaderstyle = background-color: #c9c9c9;
| subheaderstyle = text-align: center; background-color: #E1E1E1; font-weight: bold;
| title         =  
| subheaderstyle2 = background-color: #c9c9c9;
| above         = [[Name::{{#if:{{{title|{{{name|}}}}}} | {{{title|{{{name|}}}}}} | {{PAGENAME}} }}]]
| subheaderstyle3 = background-color: #c9c9c9;
| subheader      = {{#if: {{{alternate timeline|}}} | This military conflict is part of an [[Item part of::alternate timeline]] }}
| subheaderstyle4 = background-color: #c9c9c9;
| subheader2    = {{#if: {{{alternate reality|}}} | This military conflict is part of an [[Item part of::alternate reality]] }}
| title           =  
| subheader3    = {{#if: {{{hallucination|}}} | This military conflict is part of an [[Item part of::hallucination]] }}
| above           = {{#if:{{{title|{{{name|{{{conflict|}}}}}}}}} | {{{title|{{{name|{{{conflict|}}}}}}}}} | {{PAGENAME}} }}
| subheader       = {{#if: {{{part of|}}} | Part of {{{part of|}}} }}
| subheader2     = {{#if: {{{alternate timeline|}}} | This military conflict is part of an [[Item part of::alternate timeline]] }}
| subheader3      = {{#if: {{{alternate reality|}}} | This military conflict is part of an [[Item part of::alternate reality]] }}
| subheader4      = {{#if: {{{hallucination|}}} | This military conflict is part of an [[Item part of::hallucination]] }}


| imagestyle     =  
| imagestyle     =  
| captionstyle   =  
| captionstyle   =  
| image         = {{#if: {{{image|}}} | {{#invoke:InfoboxImage|InfoboxImage|image= {{{image}}} |size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}} }}
| image           = {{#if: {{{image|}}} | {{#invoke:InfoboxImage|InfoboxImage|image= {{{image}}} |size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}} }}
| caption       = {{{caption|{{{legend|}}}}}}
| caption         = {{{caption|{{{legend|}}}}}}
| image2         =  
| image2         =  
| caption2       =  
| caption2       =  


| headerstyle   = background-color: #E1E1E1;
| headerstyle     = background-color: #E1E1E1;
| labelstyle     = vertical-align: top; text-align: left;
| labelstyle     = vertical-align: top; text-align: left;
| datastyle     =  
| datastyle       =
}}<noinclude>{{documentation}}</noinclude>
 
| label1          = Event type
| data1          = {{event type| {{{type|Battle}}} }}
 
| label2          = Date
| data2          = {{{date|}}}
 
| label3          = Location
| data3          = {{{place|}}}
 
| label4          = {{#if: {{{status|}}} | Status | Result }}
| data4          = {{if empty | {{{status|}}} | {{{result|}}} }}
 
| label5          = Territorial<br />changes
| data5          = {{{territory|}}}
 
| header10        = {{#if: {{{combatant1|}}} | {{#if: {{{combatants header|}}} | {{{combatants header|}}} | Belligerents }} }}
 
| data11          = {{#if: {{{combatant1|}}} | {{Infobox/table | {{{combatant1|}}} | {{{combatant2|}}} | {{{combatant3|}}} | {{{combatant4|}}} }} }}
 
| header12        = {{#if: {{{commander1|}}} | Commanders and leaders }}
 
| data13          = {{#if: {{{commander1|}}} | {{Infobox/table | {{{commander1|}}} | {{{commander2|}}} | {{#if: {{{combatant3|}}} | {{{commander3|}}} }} | {{#if: {{{combatant4|}}} | {{{commander4|}}} }} }} }}
 
| header14        = {{#if: {{{units1|}}} | Units involved }}
 
| data15          = {{#if: {{{units1|}}} | {{Infobox/table | {{{units1|}}} | {{{units2|}}} | {{#if: {{{combatant3|}}} | {{{units3|}}} }} | {{#if: {{{combatant4|}}} | {{{units4|}}} }} }} }}
 
| header16        = {{#if: {{{strength1|}}} | Strength }}
 
| data17          = {{#if: {{{strength1|}}} | {{Infobox/table | {{{strength1|}}} | {{{strength2|}}} | {{#if: {{{combatant3|}}} | {{{strength3|}}} }} | {{#if: {{{combatant4|}}} | {{{strength4|}}} }} }} }}
 
| header18        = {{#if: {{{political1|}}} | Political support }}
 
| data19          = {{#if: {{{political1|}}} | {{Infobox/table | {{{political1|}}} | {{{political2|}}} | {{#if: {{{combatant3|}}} | {{{political3|}}} }} | {{#if: {{{combatant4|}}} | {{{political4|}}} }} }} }}
 
| header20        = {{#if: {{{military1|}}} | Military support }}
 
| data21          = {{#if: {{{military1|}}} | {{Infobox/table | {{{military1|}}} | {{{military2|}}} | {{#if: {{{combatant3|}}} | {{{military3|}}} }} | {{#if: {{{combatant4|}}} | {{{military4|}}} }} }} }}
 
| header22        = {{#if: {{{casualties1|}}} | Casualties and losses }}
 
| data23          = {{#if: {{{casualties1|}}} | {{Infobox/table | {{{casualties1|}}} | {{{casualties2|}}} | {{#if: {{{combatant3|}}} | {{{casualties3|}}} }} | {{#if: {{{combatant4|}}} | {{{casualties4|}}} }} }} }}
 
| header30        = {{#if: {{{concurrent|}}}{{{prev|}}}{{{next|}}} | Chronology }}
 
| label31        = Concurrent
| data31          = {{{concurrent|}}}
 
| data32        = {{#if: {{{prev|}}}{{{next|}}} | {{Infobox/succession
| {{#if: {{{prev|}}} | {{{prev|}}} }}
|
| {{#if: {{{next|}}} | {{{next|}}} }}
}}
}}
 
| header40        = {{#if: {{{appearance|}}}{{{mention|}}} | Out of ''Stargate'' universe information }}
 
| label41        = First mention
| data41          = {{{mention|}}}
 
| label42        = First appearance
| data42          = {{{appearance|}}}
 
}}<!--
 
Retrieving the "name" property from the infobox
 
-->{{#if: {{{title|{{{name|{{{conflict|}}}}}}}}} | {{#set: name = {{{title|{{{name|{{{conflict|}}}}}}}}} }} | {{#set: name = {{PAGENAME}} }} }}<!--
 
Retrieving the "infobox image" from the template
 
-->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image|}}} }} }}<!--
 
Defining the canonicity of the event
 
-->{{#set: Canon event = {{#if:{{{separate|}}}|no|yes}} }}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 15:16, 23 May 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Syntax

{{Infobox Military conflict
 | sort               = 
 | nocat              = 
 | spoiler            = 
 | separate           = 
 | category           = 
 | child              = 
 | subbox             = 
 | conflict           = 
 | part of            = 
 | alternate timeline = 
 | alternate reality  = 
 | hallucination      = 
 | image              = 
 | image_size         =
 | alt                =
 | caption            = 
 | type               = 
 | date               = 
 | place              = 
 | territory          = 
 | result             = 
 | status             = 
 | combatants header  = 
 | combatant1         = 
 | combatant2         = 
 | combatant3         = 
 | commander1         = 
 | commander2         = 
 | commander3         = 
 | units1             = 
 | units2             = 
 | units3             = 
 | strength1          = 
 | strength2          = 
 | strength3          = 
 | political1         = 
 | political2         = 
 | political3         = 
 | military1          = 
 | military2          = 
 | military3          = 
 | casualties1        = 
 | casualties2        = 
 | casualties3        = 
 | concurrent         = 
 | prev               = 
 | next               = 
 | mention            = 
 | appearance         = 
}}