Difference between revisions of "Template:Weapon infobox"

From Valve Cut Content
Jump to: navigation, search
(fix)
(implement 1, no if-present checks tho)
Line 1: Line 1:
<infobox>
+
{{Infobox
  <title source="title1">
+
| title = {{PAGENAME}}
    <default>{{PAGENAME}}</default>
+
{{#if: {{{image2}}} | |image1=[[File:{{{image1}}}]]
  </title>
+
|caption1={{{caption1}}} }}
  <image source="image1">
+
{{#if: {{{image2}}} | |image2=[[File:{{{image2}}}]]
    <caption source="caption1"/>
+
|caption3={{{caption3}}} }}
  </image>
+
{{#if: {{{image3}}} | |image3=[[File:{{{image3}}}]]
  <image source="image2">
+
|caption3={{{caption3}}} }}
    <caption source="caption2"/>
+
|  header1 = Basic Information
  </image>
+
|  label2 = Name      |   data2 = {{{name}}}
  <image source="image3">
+
|  label3 = Faction      |  data3 = {{{faction}}}
    <caption source="caption3"/>
+
|  label4 = Origin      |  data4 = {{{origin}}}
  </image>
+
|  label5 = Usage      |   data5 = {{{ugroup1}}}
  <image source="image4">
+
|  header6 = Technical Specifications
    <caption source="caption4"/>
+
|  label7 = Fire Rate      |  data7 = {{{fire_rate}}}
  </image>
+
|  label8 = Damage      |  data8 = {{{damage}}}
   <group>
+
|  label9 = Accuracy      |  data9 = {{{accuracy}}}
    <header>Basic Information</header>
+
|  label10 = Fire Mode      |  data10 = {{{firemode}}}
    <data source="name">
+
|  label11 = Recoil      |  data11 = {{{recoil}}}
      <label>Name</label>
+
|  label12 = Ammo Type      |  data12 = {{{ammo_type}}}
    </data>
+
|  label13 = Clip Size     |  data13 = {{{clipsize}}}
    <data style="LINE-HEIGHT:5px" source="faction">
+
|  label14 = Max. Clips (including active)      |  data14 = {{{clips}}}
      <label>Faction</label>
+
|  label15 = Ammo on weapon pickup     |  data15 = {{{faction}}}
    </data>
+
|  label16 = Ammo on ammopack pickup     |   data16 = {{{origin}}}
    <data style="LINE-HEIGHT:5px" source="origin">
+
|  header17 = Technical Specifications (Altfire)
      <label>Origin</label>
+
|  label18 = Fire Rate      |  data18 = {{{fire_rate2}}}
    </data>
+
|  label19 = Damage      |  data19 = {{{damage2}}}
   </group>
+
|  label20 = Accuracy      |  data20 = {{{accuracy2}}}
  <group>
+
|  label21 = Fire Mode      |  data21 = {{{firemode2}}}
    <header>Technical Specifications</header>
+
|  label22 = Recoil      |  data22 = {{{recoil2}}}
    <data style="padding: 0px" source="alt_fire">
+
|  label23 = Ammo Type      |  data23 = {{{ammo_type2}}}
      <label>Is there altfire?</label>
+
|  label24 = Clip Size     |  data24 = {{{clipsize2}}}
    </data>
+
|  header25 = Game Information
    <data style="padding: 0px" source="fire_rate">
+
|  label26 = View Model      |  data26 = {{{vmodel_name}}}
      <label>Fire rate</label>
+
|  label27 = World Model     |  data27 = {{{wmodel_name}}}
    </data>
+
|  label28 = Weapon Entity(s)      |  data28 = {{{weapon_ent_info}}}
    <data style="padding: 0px" source="damage">
+
|  label29 = Ammo Entity(s)      |  data29 = {{{ammo_ent_info}}}
      <label>Damage</label>
+
|  label30 = Ammo Type     |   data30 = {{{ammo_type}}}
    </data>
+
}}
    <data style="padding: 0px" source="accuracy">
 
      <label>Accuracy</label>
 
    </data>
 
    <data style="padding: 0px" source="range">
 
      <label>Maximum Range</label>
 
    </data>
 
    <data style="padding: 0px" source="firemode">
 
      <label>Fire Mode</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="recoil">
 
      <label>Recoil</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="clipsize">
 
      <label>Clip Size</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="clips">
 
      <label>Clips</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="ammo_on_wpickup">
 
      <label>Ammo on fallen weapon pickup</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="ammo_on_apickup">
 
      <label>Ammo on ammopack pickup</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="ammo_on_apickuplrg">
 
      <label>Ammo on ammopack pickup</label>
 
    </data>
 
   </group>
 
  <group>
 
    <header>Technical Specifications (altfire)</header>
 
    <data style="LINE-HEIGHT:5px" source="fire_rate2">
 
      <label>Fire rate</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="damage2">
 
      <label>Damage</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="accuracy2">
 
      <label>Accuracy</label>
 
    </data>
 
    <data style="padding: 0px" source="range2">
 
      <label>Maximum Range</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="firemode2">
 
      <label>Fire Mode</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="recoil2">
 
      <label>Ammo on pickup</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="clipsize2">
 
      <label>Clip Size</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="clips2">
 
      <label>Clips</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="ammo_on_apickup2">
 
      <label>Ammo on ammopack pickup</label>
 
    </data>
 
  </group>
 
  <group>
 
    <header>Usage</header>
 
    <data style="LINE-HEIGHT:5px" source="ugroup1">
 
      <label>Used By:</label>
 
    </data>
 
  </group>
 
  <group>
 
    <header>Game Information</header>
 
    <data style="LINE-HEIGHT:5px" source="vmodel_name">
 
      <label>View Model Name</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="wmodel_name">
 
      <label>World Model Name</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="weapon_ent_info">
 
      <label>Weapon Entity Name</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="ammo_ent_info">
 
      <label>Ammo Entity Name</label>
 
    </data>
 
    <data style="LINE-HEIGHT:5px" source="ammo_type">
 
      <label>Ammo Type</label>
 
    </data>
 
   </group>
 
</infobox>
 
 
<noinclude>
 
<noinclude>
 
Example usage:<pre>
 
Example usage:<pre>

Revision as of 17:56, 21 November 2018

Weapon infobox
Basic Information
Name {{{name}}}
Faction {{{faction}}}
Origin {{{origin}}}
Usage {{{ugroup1}}}
Technical Specifications
Fire Rate {{{fire_rate}}}
Damage {{{damage}}}
Accuracy {{{accuracy}}}
Fire Mode {{{firemode}}}
Recoil {{{recoil}}}
Ammo Type {{{ammo_type}}}
Clip Size {{{clipsize}}}
Max. Clips (including active) {{{clips}}}
Ammo on weapon pickup {{{faction}}}
Ammo on ammopack pickup {{{origin}}}
Technical Specifications (Altfire)
Fire Rate {{{fire_rate2}}}
Damage {{{damage2}}}
Accuracy {{{accuracy2}}}
Fire Mode {{{firemode2}}}
Recoil {{{recoil2}}}
Ammo Type {{{ammo_type2}}}
Clip Size {{{clipsize2}}}
Game Information
View Model {{{vmodel_name}}}
World Model {{{wmodel_name}}}
Weapon Entity(s) {{{weapon_ent_info}}}
Ammo Entity(s) {{{ammo_ent_info}}}
Ammo Type {{{ammo_type}}}

Example usage:

{{Weapon infobox
|title1=Example<!-- Article title -->
|image1=Example<!-- Viewmodel front -->
|caption1=Viewmodel front
|image2=Example<!-- Viewmodel side-->
|caption2=Viewmodel side
|image3=Example<!-- Worldmodel -->
|caption3=Worldmodel
<!--- Basic Information --->
|name=Example <!-- technical name -->
|faction=Example <!---(combine, rebels, conscripts, etc)--->
|origin=Example <!---What faction it originates from--->
<!--- Technical specifications --->
|alt_fire= <!---(Yes/No) "is there altfire?"--->
|fire_rate=
|damage= <!--- Enter like this: 
*100 (To you)
*20 (To enemies)
--->
|accuracy= <!---(aka spread)--->
|range= <!-- Maximum range of the weapon, in HU. Generally intended for melee weapons. -->
|firemode= <!---(i.e. full-auto; semi-auto; burst-fire)--->
|recoil=
|clipsize= 
|clips= <!---(max qty of clips, including "active" one)--->
|ammo_on_wpickup= <!---(when you pick this weapon up how much ammo do you get)--->
|ammo_on_apickup= <!---(when you pick an ammopack (if applicable) up how much ammo do you get)--->
|ammo_on_apickuplrg= <!---How much ammo is gained when a large ammopack for this is picked up--->
<!--- Technical specifications for ALTFIRE--->
|fire_rate2=
|damage2=
|accuracy2=
|range2=
|firemode2=
|recoil2=
|clipsize2= 
|clips2=
|ammo_on_apickup2= <!---(when you pick an ammopack (for the altfire!) up how much ammo do you get)--->
<!--- Usage --->
|ugroup1= <!---Who uses the weapon?, in "normal" circumstances? Enter like this: (bulleted list)
*combine
*monkey boy
*shit on my floor
*god damn it
--->
<!--- Game Info --->
|vmodel_name=Example <!---(the .mdl file; view model)--->
|wmodel_name=Example <!---(the .mdl file; world model)--->
|weapon_ent_info=<!---The weapon's entity name in hammer--->
|ammo_ent_info=<!---Entities related to the weapon's ammo; Enter like this: (bulleted list)
*item_ammo_ar2<br>(ammo entity)
*item_ammo_ar2_large<br>(ammo entity, large)
*item_ammo_ar2_altfire<br>(ball ammo entity)
If there's only one ammo entity, just put that one without any bulleting.--->
|ammo_type=<!---What type of "leak-era" ammo it uses. Buckshot, Medium round, Small round, Sniper round, etc.--->
}}