Difference between revisions of "Template:Weapon"

From Discovery Wiki
Jump to navigationJump to search
m
(Undo revision 107085 by Cheetah (talk))
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<noinclude>{{Stub|
 
<noinclude>{{Stub|
<s>
 
*Raise the Stats to the top of the Wep Div
 
**This must keep it's structure/flow for those with "No-CSS styles".
 
**Change to see what I mean
 
**Has to go to the top of the applied template section.
 
*Float Right the Image box
 
**preferably this would be either above Stats box or underneath, on the right side.
 
*WordWrap image + Stats box</s>
 
 
*Imagelink the image. (it's currently incorrect)
 
*Imagelink the image. (it's currently incorrect)
 
*Write up verbose instructions
 
*Write up verbose instructions
 
*Check if it's easy to use
 
*Check if it's easy to use
*<s>border and 'normalise' the image box</s>
+
Signed by [[User:Chovynz| ~Chovynz~ ]] <sup>([[User_talk:Chovynz|Blabs]] • [[Special:Contributions/Chovynz|Ego]]) (Wiki Admin) </sup> 14:15, 16 October 2009 (MDT)}}<!--</noinclude>
*<s>Remove blank line in between Description and Places</s>
 
*<s>Remove blank bordered Div</s>
 
*<s>Inform Nathrael of the better way (fixed/new) of applying colors/background colors, while allowing layout flexibility </s>
 
*<s>Automate the comma's e.g. 20,000,000</s>
 
Signed by [[User:Chovynz| ~Chovynz~ ]] <sup>([[User_talk:Chovynz|Blabs]] • [[Special:Contributions/Chovynz|Ego]]) (Wiki Admin) </sup> 14:15, 16 October 2009 (MDT)
 
 
 
}}<!--</noinclude>
 
 
{| style="width:100%; padding:10px;" class="weaponmainbox"
 
{| style="width:100%; padding:10px;" class="weaponmainbox"
|align="left"|
+
|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]]|}}
==Full Name==
 
<h3>{{#if:{{{full-name|}}}|{{{full-name|{{{4|{{{full-name|full-name}}}}}}}}}|''missing''}}</h3>{{#if:{{{fire-image|}}}|<br />[[Image:{{{fire-image}}}|Weapon being fired]]|}}
 
 
|valign="top" rowspan="2" align="right"|
 
|valign="top" rowspan="2" align="right"|
 
{| class="weaponinfobox" style="border:1px solid #aaa; padding:4px; margin-left:8px;"
 
{| class="weaponinfobox" style="border:1px solid #aaa; padding:4px; margin-left:8px;"
 
|-
 
|-
|colspan="2"|{{#if: {{{image|}}}
+
|colspan="2"|{{#ifexist: File:{{{image|Noimage_weapon.png}}}
 
| [[image:{{{image}}}|right|200px]]
 
| [[image:{{{image}}}|right|200px]]
 
| [[image:Noimage_weapon.png|right|200px]]
 
| [[image:Noimage_weapon.png|right|200px]]
Line 74: Line 57:
 
|}
 
|}
 
|-
 
|-
|valign="top" style="width:100%;"|
+
|valign="top" style="width:100%;"|{{#if:{{{description|}}}|{{{description}}}|''missing''}}
==Description==
 
{{#if:{{{description|}}}|{{{description}}}|''missing''}}
 
 
{{#if:{{{places-sold|}}}|==Places Sold==
 
{{#if:{{{places-sold|}}}|==Places Sold==
 
{{{places-sold}}}}}
 
{{{places-sold}}}}}
 
{{#if:{{{see-also|}}}|==See Also==
 
{{#if:{{{see-also|}}}|==See Also==
{{#ifeq:{{{faction|}}}|The Phantoms|{{HeavyNote|Phantom}}<br>}}{{{see-also|{{{4|{{{see-also|see-also}}}}}}}}}
+
{{#ifeq:{{{faction|}}}|The Phantoms|{{Heavy note|Phantom}}<br>}}{{{see-also|{{{4|{{{see-also|see-also}}}}}}}}}
 
}}
 
}}
 
|}
 
|}
{{EquipmentNav}}
+
{{Equipment navigation}}
 
{{#if:{{{examplepage|}}}||[[Category:Weapons]]
 
{{#if:{{{examplepage|}}}||[[Category:Weapons]]
 
{{#if:{{{faction|}}}|[[Category:{{{faction}}}]]|}} }}
 
{{#if:{{{faction|}}}|[[Category:{{{faction}}}]]|}} }}

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