YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Weapon"

From Discovery Wiki
Jump to navigationJump to search
(Undo revision 107085 by Cheetah (talk))
 
(106 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{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
*Remove blank line in between Description and Places
 
*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]]|}}
 +
|valign="top" rowspan="2" align="right"|
 +
{| class="weaponinfobox" style="border:1px solid #aaa; padding:4px; margin-left:8px;"
 +
|-
 +
|colspan="2"|{{#ifexist: File:{{{image|Noimage_weapon.png}}}
 +
| [[image:{{{image}}}|right|200px]]
 +
| [[image:Noimage_weapon.png|right|200px]]
 
}}
 
}}
[[{{{Image|{{{4|{{{Image|Image}}}}}}}}} Weapon Image]]
 
<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:absolute; right:10px;">
 
<div style="font-size:1.5em; ">'''Statistics'''</div>
 
{|
 
|Weapon Class: ||'''{{{Weapon-Class|{{{4|{{{Weapon-Class|Weapon-Class}}}}}}}}}'''
 
 
|-
 
|-
|Hull Damage: ||'''{{{Hull-Damage|{{{4|{{{Hull-Damage|Hull-Damage}}}}}}}}}'''
+
|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: ||'''{{{Shield-Damage|{{{4|{{{Shield-Damage|Shield-Damage}}}}}}}}}'''
+
|Hull Damage: ||{{#if:{{{hull-damage|}}}|{{formatnum:'''{{{hull-damage}}}'''}}|''unknown''}}
 
|-
 
|-
|Range: ||'''{{{Range|{{{4|{{{Range|Range}}}}}}}}}'''
+
|Shield Damage: ||{{#if:{{{shield-damage|}}}|{{formatnum:'''{{{shield-damage|}}}'''}}|''unknown''}}
 
|-
 
|-
|Projectile Speed: ||'''{{{Projectile-Speed|{{{4|{{{Projectile-Speed|Projectile-Speed}}}}}}}}}'''
+
|Range: ||{{#if:{{{range|}}}|{{formatnum:'''{{{range}}}''' m}}|''unknown''}}
 
|-
 
|-
|Refire Rate: ||'''{{{Refire-Rate|{{{4|{{{Refire-Rate|Refire-Rate}}}}}}}}}'''
+
|Projectile Speed: ||{{#if:{{{projectile-speed|}}}|{{formatnum:'''{{{projectile-speed}}}''' m/s}}|''unknown''}}
 
|-
 
|-
|Energy Usage: ||'''{{{Energy-Usage|{{{4|{{{Energy-Usage|Energy-Usage}}}}}}}}}'''
+
|Refire Rate: ||{{#if:{{{refire-rate|}}}|{{formatnum:'''{{{refire-rate}}}'''}}|''unknown''}}
 
|-
 
|-
|Price: ||'''{{{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>
+
|-
 +
|valign="top" style="width:100%;"|{{#if:{{{description|}}}|{{{description}}}|''missing''}}
 +
{{#if:{{{places-sold|}}}|==Places Sold==
 +
{{{places-sold}}}}}
 +
{{#if:{{{see-also|}}}|==See Also==
 +
{{#ifeq:{{{faction|}}}|The Phantoms|{{Heavy note|Phantom}}<br>}}{{{see-also|{{{4|{{{see-also|see-also}}}}}}}}}
 +
}}
 +
|}
 +
{{Equipment navigation}}
 +
{{#if:{{{examplepage|}}}||[[Category:Weapons]]
 +
{{#if:{{{faction|}}}|[[Category:{{{faction}}}]]|}} }}
 +
__NOTOC__ __NOEDITSECTION__<noinclude>-->{{clear}}
  
 +
==Usage==
  
<p><div style="font-size:1.5em; ">'''Places Sold'''</div>
 
{{{Places-Sold|{{{4|{{{Places-Sold|Places-Sold}}}}}}}}}</p>
 
<p><div style="font-size:1.5em; ">'''See also:'''</div>
 
{{{See-also|{{{5|{{{See-also|See-also}}}}}}}}}</p>
 
<div style="margin-top:5px; border-style:solid; border-width:2px; padding: 1em;  align:right;">
 
 
</div>
 
 
{{EquipmentNav}}
 
<noinclude>{{clear}}
 
 
==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 65: 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>
 +
* 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==
  
</nowiki></pre>
+
{{Weapon
[[Category:Templates]]</noinclude>
+
| examplepage = true
 +
| full-name = CP-d "Debilitator" Civilian Advanced Mk I Pulse Cannon
 +
| 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.
 +
| weapon-class = 8
 +
| energy-type = Pulse
 +
| hull-damage = 25
 +
| shield-damage = 506
 +
| range = 600
 +
| projectile-speed = 750
 +
| refire-rate = 4.00
 +
| energy-usage = 90.00
 +
| price = 62450
 +
| see-also =
 +
* [[Class 8 Guns]]
 +
| places-sold =
 +
{{{!}} class="wikitable collapsible collapsed"
 +
!Spoiler: Buying Locations
 +
{{!}}-
 +
{{!}}
 +
{{{!}} class="wikitable sortable"
 +
{{!}}-
 +
!Base!!Owner!!System!!Location
 +
{{!}}-
 +
{{!}}[[Waterloo Station]]{{!}}{{!}}[[Interspace Commerce]]{{!}}{{!}}[[New London]]{{!}}{{!}}[[Bretonia]]
 +
{{!}}-
 +
{{!}}[[Planet Leeds]]{{!}}{{!}}[[Bretonia Police]]{{!}}{{!}}[[Leeds]]{{!}}{{!}}[[Bretonia]]
 +
{{!}}-
 +
{{!}}[[Freeport 1]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Omega-3]]{{!}}{{!}}[[Border Worlds]]
 +
{{!}}-
 +
{{!}}[[Freeport 6]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Tau-29]]{{!}}{{!}}[[Border Worlds]]
 +
{{!}}-
 +
{{!}}[[Meerbusch Base]]{{!}}{{!}}[[Das Wilde{{!}}The Wild]]{{!}}{{!}}[[Omega-55]]{{!}}{{!}}[[Border Worlds]]
 +
{{!}}-
 +
{{!}}[[Recklinghausen Base]]{{!}}{{!}}[[Das Wilde{{!}}The Wild]]{{!}}{{!}}[[Omega-55]]{{!}}{{!}}[[Border Worlds]]
 +
{{!}}-
 +
{{!}}[[Freeport 10]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Tau-37]]{{!}}{{!}}[[Edge Worlds]]
 +
{{!}}-
 +
{{!}}[[Freeport 5]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Omega-41]]{{!}}{{!}}[[Edge Worlds]]
 +
{{!}}-
 +
{{!}}[[Freeport 9]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Omicron Theta]]{{!}}{{!}}[[Edge Worlds]]
 +
{{!}}-
 +
{{!}}[[Freeport 2]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Bering]]{{!}}{{!}}[[Independent Systems]]
 +
{{!}}-
 +
{{!}}[[Freeport 4]]{{!}}{{!}}[[Independent Miners Guild{{!}}IMG]]{{!}}{{!}}[[Magellan]]{{!}}{{!}}[[Independent Systems]]
 +
{{!}}-
 +
{{!}}[[Ames Research Station]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Kepler]]{{!}}{{!}}[[Independent Systems]]
 +
{{!}}-
 +
{{!}}[[Leiden Base]]{{!}}{{!}}[[Lane Hackers]]{{!}}{{!}}[[Galileo]]{{!}}{{!}}[[Independent Systems]]
 +
{{!}}-
 +
{{!}}[[Barrier Gate Station]]{{!}}{{!}}Freelancers{{!}}{{!}}[[Coronado]]{{!}}{{!}}[[Independent Systems]]
 +
{{!}}-
 +
{{!}}[[Roppongi Station]]{{!}}{{!}}[[Interspace Commerce]]{{!}}{{!}}[[New Tokyo]]{{!}}{{!}}[[Kusari]]
 +
{{!}}-
 +
{{!}}[[Osaka Storage Facility]]{{!}}{{!}}[[Samura Industries]]{{!}}{{!}}[[Honshu]]{{!}}{{!}}[[Kusari]]
 +
{{!}}-
 +
{{!}}[[Tekagi's Base]]{{!}}{{!}}[[Das Wilde{{!}}The Wild]]{{!}}{{!}}[[Tohoku]]{{!}}{{!}}[[Kusari]]
 +
{{!}}-
 +
{{!}}[[Furyoku Station]]{{!}}{{!}}[[Interspace Commerce]]{{!}}{{!}}[[Okinawa]]{{!}}{{!}}[[Border Worlds]]
 +
{{!}}-
 +
{{!}}[[Detroit Munitions]]{{!}}{{!}}[[Ageira Technologies]]{{!}}{{!}}[[New York]]{{!}}{{!}}[[Liberty]]
 +
{{!}}-
 +
{{!}}[[Newark Station]]{{!}}{{!}}[[Interspace Commerce]]{{!}}{{!}}[[New York]]{{!}}{{!}}[[Liberty]]
 +
{{!}}-
 +
{{!}}[[Pueblo Station]]{{!}}{{!}}[[Ageira Technologies]]{{!}}{{!}}[[Colorado]]{{!}}{{!}}[[Liberty]]
 +
{{!}}-
 +
{{!}}[[Freeport 14]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Yukon]]{{!}}{{!}}[[Liberty]]
 +
{{!}}-
 +
{{!}}[[Hamilton Station]]{{!}}{{!}}[[Ageira Technologies]]{{!}}{{!}}[[Ontario]]{{!}}{{!}}[[Liberty]]
 +
{{!}}-
 +
{{!}}[[Bonn Station]]{{!}}{{!}}[[Interspace Commerce]]{{!}}{{!}}[[New Berlin]]{{!}}{{!}}[[Rheinland]]
 +
{{!}}-
 +
{{!}}[[Planet Holstein]]{{!}}{{!}}[[Daumann Heavy Construction{{!}}Daumann]]{{!}}{{!}}[[Frankfurt]]{{!}}{{!}}[[Rheinland]]
 +
{{!}}-
 +
{{!}}[[Freeport 11]]{{!}}{{!}}[[Zoners]]{{!}}{{!}}[[Omicron Delta]]{{!}}{{!}}[[Nomad Worlds]]
 +
{{!}}}
 +
{{!}}}
 +
}}
 +
[[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