Difference between revisions of "Template:Weapon"

From Discovery Wiki
Jump to navigationJump to search
(Undo revision 107085 by Cheetah (talk))
 
(86 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude><!--{{Stub|
+
<noinclude>{{Stub|
*Raise the Stats to the top of the Wep Div
 
*Float Right the Image box
 
*WordWrap image + Stats box
 
*border and 'normalise' the image box
 
 
*Imagelink the image. (it's currently incorrect)
 
*Imagelink the image. (it's currently incorrect)
 
*Write up verbose instructions
 
*Write up verbose instructions
*<s>Remove blank line in between Description and Places</s>
 
*Remove blank bordered Div
 
 
*Check if it's easy to use
 
*Check if it's easy to use
*Inform Nathrael of the better way (fixed/new) of applying colors/background colors, while allowing layout flexibility
+
Signed by [[User:Chovynz| ~Chovynz~ ]] <sup>([[User_talk:Chovynz|Blabs]] • [[Special:Contributions/Chovynz|Ego]]) (Wiki Admin) </sup> 14:15, 16 October 2009 (MDT)}}<!--</noinclude>
*Automate the comma's e.g. 20,000,000
+
{| style="width:100%; padding:10px;" class="weaponmainbox"
Signed by [[User:Chovynz| ~Chovynz~ ]] <sup>([[User_talk:Chovynz|Blabs]] • [[Special:Contributions/Chovynz|Ego]]) (Wiki Admin) </sup> 14:15, 16 October 2009 (MDT)
+
|align="left"|<h3>{{#if:{{{full-name|}}}|{{{full-name|{{{4|{{{full-name|full-name}}}}}}}}}|''missing''}}</h3>{{#if:{{{fire-image|}}}|<br />[[Image:{{{fire-image}}}|Weapon being fired]]|}}{{#if:{{{fire_image|}}}|<br />[[Image:{{{fire_image}}}|Weapon being fired]]|}}
}}</noinclude>
+
|valign="top" rowspan="2" align="right"|
[[Image:{{{image|{{{4|{{{image|image}}}}}}}}}]]
+
{| class="weaponinfobox" style="border:1px solid #aaa; padding:4px; margin-left:8px;"
<div style="min-width: 250px; width:100%; margin-top:.5em; padding: 1em; align:right;">
 
<p><div style="font-size:1.5em; ">'''Full Name'''</div>
 
:{{{full-name|{{{4|{{{full-name|full-name}}}}}}}}}</p>
 
<p><div style=" font-size:1.5em; ">'''Description'''</div>
 
:{{{description|{{{4|{{{description|description}}}}}}}}}</p>
 
<div class="normal-background" style="border: 2px solid; min-width:250px; padding:1em; width:27%; position:relative; right:10px; top:0px;">
 
<div style="font-size:1.5em; ">'''Statistics'''</div>
 
{|
 
|Weapon Class: ||'''{{{weapon-class|{{{4|{{{weapon-class|weapon-class}}}}}}}}}'''
 
 
|-
 
|-
|Hull Damage: ||{{formatnum:'''{{{hull-damage|{{{4|{{{hull-damage|hull-damage}}}}}}}}}'''}}
+
|colspan="2"|{{#ifexist: File:{{{image|Noimage_weapon.png}}}
 +
| [[image:{{{image}}}|right|200px]]
 +
| [[image:Noimage_weapon.png|right|200px]]
 +
}}
 +
|-
 +
|colspan="2" align="center"|<h3>Statistics</h3>{{#if: {{{faction|}}}|<br />
 +
{{!}}-
 +
{{!}}Owner: {{!!}}{{#switch:{{{faction}}}
 +
| Liberty = {{House Link | Liberty}}
 +
| Bretonia = {{House Link | Bretonia}}
 +
| Kusari = {{House Link | Kusari}}
 +
| Rheinland = {{House Link | Rheinland}}
 +
| Gallia = {{House Link | Gallia}}
 +
| Outcasts = {{House Link | Outcasts}}
 +
| Corsairs = {{House Link | Corsairs}}
 +
| Nomads = {{House Link | Nomads}}
 +
| Landwirtrechtbewegung = [[Landwirtrechtbewegung|LWB]]
 +
| #default = [[{{{faction}}}]]
 +
}}}}
 +
|-
 +
|Weapon Class: ||{{#if:{{{weapon-class|}}}|'''{{{weapon-class}}}'''|''unknown''}}{{#if: {{{energy-type|}}}|<br />
 +
{{!}}-
 +
{{!}}Energy Type: {{!!}}[[{{{energy-type}}}]]}}
 
|-
 
|-
|Shield Damage: ||{{formatnum:'''{{{shield-damage|{{{4|{{{shield-damage|shield-damage}}}}}}}}}'''}}
+
|Hull Damage: ||{{#if:{{{hull-damage|}}}|{{formatnum:'''{{{hull-damage}}}'''}}|''unknown''}}
 
|-
 
|-
|Range: ||{{formatnum:'''{{{range|{{{4|{{{range|range}}}}}}}}}''' m}}
+
|Shield Damage: ||{{#if:{{{shield-damage|}}}|{{formatnum:'''{{{shield-damage|}}}'''}}|''unknown''}}
 
|-
 
|-
|Projectile Speed: ||{{formatnum:'''{{{projectile-speed|{{{4|{{{projectile-speed|projectile-speed}}}}}}}}}''' m/s}}
+
|Range: ||{{#if:{{{range|}}}|{{formatnum:'''{{{range}}}''' m}}|''unknown''}}
 
|-
 
|-
|Refire Rate: ||{{formatnum:'''{{{refire-rate|{{{4|{{{refire-rate|refire-rate}}}}}}}}}'''}}
+
|Projectile Speed: ||{{#if:{{{projectile-speed|}}}|{{formatnum:'''{{{projectile-speed}}}''' m/s}}|''unknown''}}
 
|-
 
|-
|Energy Usage: ||{{formatnum:'''{{{energy-usage|{{{4|{{{energy-usage|energy-usage}}}}}}}}}'''}}
+
|Refire Rate: ||{{#if:{{{refire-rate|}}}|{{formatnum:'''{{{refire-rate}}}'''}}|''unknown''}}
 
|-
 
|-
|Price: || ${{formatnum:'''{{{price|{{{4|{{{price|price}}}}}}}}}'''}}
+
|Energy Usage: ||{{#if:{{{energy-usage|}}}|{{formatnum:'''{{{energy-usage}}}'''}}|''unknown''}}{{#if: {{{turn-rate|}}}|<br />
 +
{{!}}-
 +
{{!}}Turn Rate: {{!!}}{{formatnum:'''{{{turn-rate}}}''' rad/s}}}}{{#if: {{{explosion-radius|}}}|<br />
 +
{{!}}-
 +
{{!}}Explosion Radius: {{!!}}{{formatnum:'''{{{explosion-radius}}}''' m}}}}{{#if: {{{launcher-price|}}}|<br />
 +
{{!}}-
 +
{{!}}Launcher Price: {{!!}}${{formatnum:'''{{{launcher-price}}}'''}}
 +
{{!}}-
 +
{{!}}Ammo Price: {{!!}}{{#if:{{{ammo-price|}}}|${{formatnum:'''{{{ammo-price}}}'''}}|''unknown''}}|<br />
 +
{{!}}-
 +
{{!}}Price: {{!!}}{{#if: {{{price|}}}|${{formatnum:'''{{{price}}}'''}}|''unknown''}}}}
 
|-
 
|-
 
|}
 
|}
</div>
+
|-
<p><div style="font-size:1.5em; ">'''Places Sold'''</div>
+
|valign="top" style="width:100%;"|{{#if:{{{description|}}}|{{{description}}}|''missing''}}
{{{places-sold|{{{4|{{{places-sold|places-sold}}}}}}}}}</p>
+
{{#if:{{{places-sold|}}}|==Places Sold==
<p><div style="font-size:1.5em; ">'''See also:'''</div>
+
{{{places-sold}}}}}
{{{see-also|{{{5|{{{see-also|see-also}}}}}}}}}</p>
+
{{#if:{{{see-also|}}}|==See Also==
<br />
+
{{#ifeq:{{{faction|}}}|The Phantoms|{{Heavy note|Phantom}}<br>}}{{{see-also|{{{4|{{{see-also|see-also}}}}}}}}}
{{EquipmentNav}}
+
}}
<noinclude>-->{{clear}}
+
|}
 +
{{Equipment navigation}}
 +
{{#if:{{{examplepage|}}}||[[Category:Weapons]]
 +
{{#if:{{{faction|}}}|[[Category:{{{faction}}}]]|}} }}
 +
__NOTOC__ __NOEDITSECTION__<noinclude>-->{{clear}}
 +
 
 
==Usage==
 
==Usage==
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Weapon
 
{{Weapon
 
| full-name =  
 
| full-name =  
 +
| image =
 +
| fire-image =
 +
| faction =
 
| description =  
 
| description =  
| weapon-class =  
+
| weapon-class =
 +
| energy-type =  
 
| hull-damage =  
 
| hull-damage =  
 
| shield-damage =  
 
| shield-damage =  
Line 59: Line 86:
 
| refire-rate =  
 
| refire-rate =  
 
| energy-usage =  
 
| energy-usage =  
 +
| turn-rate =
 +
| explosion-radius =
 
| price =  
 
| price =  
 +
| launcher-price =
 +
| ammo-price =
 
| see-also =  
 
| see-also =  
| places-sold =  
+
| places-sold =
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 +
* Turn Rate, Explosion Range, Launcher Price, and Ammo Price are optional fields for use with missiles.
 +
* If Launcher price is defined, the standard price field will not be shown.
 +
* Faction is an optional field, please use the same name as that faction's category
 +
* energy-type is the weapon type (if there is one), such as Tachyon, Laser, etc.
 +
* fire-image is optional, and is a picture of the weapon in use, which will be placed below the name
  
 
==Result==
 
==Result==
 +
 
{{Weapon
 
{{Weapon
 +
| examplepage = true
 
| full-name = CP-d "Debilitator" Civilian Advanced Mk I Pulse Cannon
 
| full-name = CP-d "Debilitator" Civilian Advanced Mk I Pulse Cannon
| image = Santorini1.jpg
+
| image = li_plasma_blaster.png
 +
| faction = Civilian
 
| description = This is a pulse-based weapon that does enormous amounts of shield damage, but virtually no hull damage. This weapon is most effective against positron shields, and weakest against graviton shields.
 
| description = This is a pulse-based weapon that does enormous amounts of shield damage, but virtually no hull damage. This weapon is most effective against positron shields, and weakest against graviton shields.
 
| weapon-class = 8
 
| weapon-class = 8
 +
| energy-type = Pulse
 
| hull-damage = 25
 
| hull-damage = 25
 
| shield-damage = 506
 
| shield-damage = 506
Line 77: Line 117:
 
| energy-usage = 90.00
 
| energy-usage = 90.00
 
| price = 62450
 
| price = 62450
| see-also =  
+
| see-also =
 
* [[Class 8 Guns]]
 
* [[Class 8 Guns]]
 
| places-sold =
 
| places-sold =
Line 140: Line 180:
 
{{!}}[[Freeport 11]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Omicron Delta]]{{!}}{{!}}[[Nomad Worlds]]
 
{{!}}[[Freeport 11]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Omicron Delta]]{{!}}{{!}}[[Nomad Worlds]]
 
{{!}}}
 
{{!}}}
{{!}}}  
+
{{!}}}
 
}}
 
}}
[[Category:Templates]]</noinclude>
+
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 11:52, 21 January 2016


Usage

{{Weapon
| full-name = 
| image = 
| fire-image = 
| faction =
| description = 
| weapon-class =
| energy-type = 
| hull-damage = 
| shield-damage = 
| range = 
| projectile-speed = 
| refire-rate = 
| energy-usage = 
| turn-rate = 
| explosion-radius = 
| price = 
| launcher-price =
| ammo-price =
| see-also = 
| places-sold =
}}
  • Turn Rate, Explosion Range, Launcher Price, and Ammo Price are optional fields for use with missiles.
  • If Launcher price is defined, the standard price field will not be shown.
  • Faction is an optional field, please use the same name as that faction's category
  • energy-type is the weapon type (if there is one), such as Tachyon, Laser, etc.
  • fire-image is optional, and is a picture of the weapon in use, which will be placed below the name

Result

CP-d "Debilitator" Civilian Advanced Mk I Pulse Cannon

Li plasma blaster.png

Statistics


Owner: Civilian
Weapon Class: 8
Energy Type: Pulse
Hull Damage: 25
Shield Damage: 506
Range: 600 m
Projectile Speed: 750 m/s
Refire Rate: 4.00
Energy Usage: 90.00
Price: $62,450
This is a pulse-based weapon that does enormous amounts of shield damage, but virtually no hull damage. This weapon is most effective against positron shields, and weakest against graviton shields.

Places Sold

See Also