Template:Infobox building: Difference between revisions

From Totem Arts Wiki
Jump to navigation Jump to search
RaiderAlpha (talk | contribs)
No edit summary
RaiderAlpha (talk | contribs)
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>{{Infobox
<onlyinclude>{{Infobox
|abovestyle  = background: <nowiki>#</nowiki>{{#switch:{{{theme|}}}
|bodystyle = {{Infobox style|infobox}}
|gdi = e2c14e
|abovestyle  = {{Infobox style|infobox_title}}
|nod = b41616
|headerstyle = {{Infobox style|infobox_header}}
|#default = ccccff
|labelstyle  = {{Infobox style|infobox_label}}
}};
|headerstyle = background: <nowiki>#</nowiki>{{#switch:{{{theme|}}}
|gdi = e2c14e
|nod = b41616
|#default = ccccff
}};
|labelstyle  = background: <nowiki>#</nowiki>{{#switch:{{{theme|}}}
|gdi = e2c14e
|nod = b41616
|#default = ccccff
}};


|above    = {{#if:{{{name|}}}|{{{name|}}}|Building}}
|above    = {{#if:{{{name|}}}|{{{name|}}}|Building}}{{#if:{{{icon|}}}|<br />[[File:{{{icon|}}}|144px|center]]|}}
<!-- |image    = {{#if:{{{icon|}}}|<br />[[File:{{{icon|}}}|72px|center]]|}} -->
|image2  = {{#if:{{{image|}}}|[[File:{{{image|}}}|{{#if:{{{imgsize|}}}|{{{imgsize|}}}|250px}}|center]]|}}
|image2  = {{#if:{{{image|}}}|[[File:{{{image|}}}|{{#if:{{{imgsize|}}}|{{{imgsize|}}}|250px}}|center]]|}}
|caption2 = {{#if:{{{imgdesc|}}}|{{{imgdesc|}}}|}}
|caption2 = {{#if:{{{imgdesc|}}}|{{{imgdesc|}}}|}}
Line 32: Line 20:


|header8  = {{#if:{{{weapon|}}}|{{{weapon|}}}|}}
|header8  = {{#if:{{{weapon|}}}|{{{weapon|}}}|}}
|label9  = Base damage
|label9  = <abbr title="Full damage will be inflicted only if the target body is struck completely by the projectile. {{#ifeq:{{{is_defense|}}}|2|Advanced automated defenses cannot gain veterancy|Automated defenses gain veterancy by killing infantry and destroying vehicles}}.">Damage</abbr>
|data9    = {{#if:{{{damage|}}}|{{{damage|}}}|}}
|data9    = {{#if:{{{damage|}}}|{{{damage|}}}|}}
|label10  = Projectile type
|label10  = Projectile type
Line 46: Line 34:


|header15 = {{#if:{{{weapon_2|}}}|{{{weapon_2|}}}|}}
|header15 = {{#if:{{{weapon_2|}}}|{{{weapon_2|}}}|}}
|label16  = Base damage
|label16  = <abbr title="Full damage will be inflicted only if the target body is struck completely by the projectile. {{#ifeq:{{{is_defense|}}}|2|Advanced automated defenses cannot gain veterancy|Automated defenses gain veterancy by killing infantry and destroying vehicles}}.">Damage</abbr>
|data16  = {{#if:{{{damage_2|}}}|{{{damage_2|}}}|}}
|data16  = {{#if:{{{damage_2|}}}|{{{damage_2|}}}|}}
|label17  = Projectile type
|label17  = Projectile type
Line 62: Line 50:
|label23  = Internal name
|label23  = Internal name
|data23  = {{#if:{{{internalname|}}}|{{{internalname|}}}|}}
|data23  = {{#if:{{{internalname|}}}|{{{internalname|}}}|}}
|label24  = Jargon
|label24  = [[Glossary of player terms|<font color="#fff">Jargon</font>]]
|data24  = {{#if:{{{jargon|}}}|{{{jargon|}}}|}}
|data24  = {{#if:{{{jargon|}}}|{{{jargon|}}}|}}


Line 72: Line 60:
|theme        =  
|theme        =  
|name        =  
|name        =  
|slides      =
|icon        =  
|icon        =  
|image        =  
|image        =  

Latest revision as of 10:57, 30 January 2021

Building
Building

Usage

To use this template, insert the following code into the page and fill out the fields:

{{Infobox building
|theme        = 
|name         = 
|slides       =
|icon         = 
|image        = 
|imgsize      = 
|imgdesc      = 

<!-- General characteristics -->
|is_defense   = 
|is_tech      = 
|faction      = 
|role         = 
|health       = 
|seats        = 

<!-- Primary armament -->
|weapon       = 
|damage       = 
|proj_type    = 
|proj_speed   = 
|range        = 
|rof          = 
|clip         = 

<!-- Secondary armament -->
|weapon_2     = 
|damage_2     = 
|proj_type_2  = 
|proj_speed_2 = 
|range_2      = 
|rof_2        = 
|clip_2       = 

<!-- Miscellaneous -->
|internalname = 
|jargon       = 
}}