Difference between revisions of "Template:Weapon infobox"

From Valve Cut Content
Jump to: navigation, search
oldwiki>Livelong2
(standardize infobox renders)
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<infobox>
+
{{Infobox
  <title source="title1">
+
| title = {{PAGENAME}}
    <default>{{PAGENAME}}</default>
+
|image1={{#if: {{{image2|}}} | [[File:{{{image1}}}|300px]]|}}
  </title>
+
|caption1={{#if: {{{caption1|}}} |{{{caption1}}} |}}
  <image source="image1">
+
|image2={{#if: {{{image2|}}} | [[File:{{{image2}}}|300px]]|}}
    <caption source="caption1"/>
+
|caption2={{#if: {{{caption2|}}} |{{{caption2}}} |}}
  </image>
+
|image3={{#if: {{{image3|}}} | [[File:{{{image3}}}|300px]]|}}
  <image source="image2">
+
|caption3={{#if: {{{caption3|}}} |{{{caption3}}} |}}
    <caption source="caption2"/>
+
|  header1 = Basic Information
  </image>
+
| label2 = {{#if: {{{name|}}} | Name |}}
  <image source="image3">
+
| data2 = {{#if: {{{name|}}} | {{{name}}} |}}
    <caption source="caption3"/>
+
| label3 = {{#if: {{{faction|}}} | Faction |}}
  </image>
+
| data3 = {{#if: {{{faction|}}} | {{{faction}}} |}}
  <image source="image4">
+
| label4 = {{#if: {{{origin|}}} | Origin |}}
    <caption source="caption4"/>
+
| data4 = {{#if: {{{origin|}}} | {{{origin}}} |}}
  </image>
+
| label5 = {{#if: {{{ugroup1|}}} | Usage |}}
  <group>
+
| data5 = {{#if: {{{ugroup1|}}} | {{{ugroup1}}} |}}
    <header>Basic Information</header>
+
| header6 = Technical Specifications
    <data source="name">
+
| label7 = {{#if: {{{fire_rate|}}} | Fire Rate |}}
      <label>Name</label>
+
| data7 = {{#if: {{{fire_rate|}}} | {{{fire_rate}}} |}}
    </data>
+
| label8 = {{#if: {{{damage|}}} | Damage |}}
    <data style="LINE-HEIGHT:5px" source="faction">
+
| data8 = {{#if: {{{damage|}}} | {{{damage}}} |}}
      <label>Faction</label>
+
| label9 = {{#if: {{{accuracy|}}} | Accuracy |}}
    </data>
+
| data9 = {{#if: {{{accuracy|}}} | {{{accuracy}}} |}}
    <data style="LINE-HEIGHT:5px" source="origin">
+
| label10 = {{#if: {{{firemode|}}} | Fire Mode |}}
      <label>Origin</label>
+
| data10 = {{#if: {{{firemode|}}} | {{{firemode}}} |}}
    </data>
+
| label11 = {{#if: {{{recoil|}}} | Recoil |}}
  </group>
+
| data11 = {{#if: {{{recoil|}}} | {{{recoil}}} |}}
  <group>
+
| label12 = {{#if: {{{ammo_type|}}} | Ammo Type |}}
    <header>Technical Specifications</header>
+
| data12 = {{#if: {{{ammo_type|}}} | {{{ammo_type}}} |}}
    <data style="padding: 0px" source="alt_fire">
+
| label13 = {{#if: {{{clipsize|}}} | Clip Size |}}
      <label>Is there altfire?</label>
+
| data13 = {{#if: {{{clipsize|}}} | {{{clipsize}}} |}}
    </data>
+
| label14 = {{#if: {{{clips|}}} | Max. Clips (including active) |}}
    <data style="padding: 0px" source="fire_rate">
+
| data14 = {{#if: {{{clips|}}} | {{{clips}}} |}}
      <label>Fire rate</label>
+
| label15 = {{#if: {{{ammo_on_wpickup|}}} | Ammo on weapon pickup |}}
    </data>
+
| data15 = {{#if: {{{ammo_on_wpickup|}}} | {{{ammo_on_wpickup}}} |}}
    <data style="padding: 0px" source="damage">
+
| label16 = {{#if: {{{ammo_on_apickup|}}} | Ammo on ammopack pickup |}}
      <label>Damage</label>
+
| data16 = {{#if: {{{ammo_on_apickup|}}} | {{{ammo_on_apickup}}} |}}
    </data>
+
| label17 = {{#if: {{{ammo_on_apickuplrg|}}} | Ammo on large ammopack pickup |}}
    <data style="padding: 0px" source="accuracy">
+
| data17 = {{#if: {{{ammo_on_apickuplrg|}}} | {{{ammo_on_apickuplrg}}} |}}
      <label>Accuracy</label>
+
| header18 = Technical Specifications (Altfire)
    </data>
+
| label19 = {{#if: {{{fire_rate2|}}} | Fire Rate |}}
    <data style="padding: 0px" source="firemode">
+
| data19 = {{#if: {{{fire_rate2|}}} | {{{fire_rate2}}} |}}
      <label>Fire Mode</label>
+
| label20 = {{#if: {{{damage2|}}} | Damage |}}
    </data>
+
| data20 = {{#if: {{{damage2|}}} | {{{damage2}}} |}}
    <data style="LINE-HEIGHT:5px" source="recoil">
+
| label21 = {{#if: {{{accuracy2|}}} | Accuracy |}}
      <label>Recoil</label>
+
| data21 = {{#if: {{{accuracy2|}}} | {{{accuracy2}}} |}}
    </data>
+
| label22 = {{#if: {{{firemode2|}}} | Fire Mode |}}
    <data style="LINE-HEIGHT:5px" source="clipsize">
+
| data22 = {{#if: {{{firemode2|}}} | {{{firemode2}}} |}}
      <label>Clip Size</label>
+
| label23 = {{#if: {{{recoil2|}}} | Recoil |}}
    </data>
+
| data23 = {{#if: {{{recoil2|}}} | {{{recoil2}}} |}}
    <data style="LINE-HEIGHT:5px" source="clips">
+
| label24 = {{#if: {{{ammo_type2|}}} | Ammo Type |}}
      <label>Clips</label>
+
| data24 = {{#if: {{{ammo_type2|}}} | {{{ammo_type2}}} |}}
    </data>
+
| label25 = {{#if: {{{clipsize2|}}} | Clip Size |}}
    <data style="LINE-HEIGHT:5px" source="ammo_on_wpickup">
+
| data25 = {{#if: {{{clipsize2|}}} | {{{clipsize2}}} |}}
      <label>Ammo on fallen weapon pickup</label>
+
| header26 = Game Information
    </data>
+
| label27 = {{#if: {{{vmodel_name|}}} | View Model |}}
    <data style="LINE-HEIGHT:5px" source="ammo_on_apickup">
+
| data27 = {{#if: {{{vmodel_name|}}} | {{{vmodel_name}}} |}}
      <label>Ammo on ammopack pickup</label>
+
| label28 = {{#if: {{{wmodel_name|}}} | World Model |}}
    </data>
+
| data28 = {{#if: {{{wmodel_name|}}} | {{{wmodel_name}}} |}}
    <data style="LINE-HEIGHT:5px" source="ammo_on_apickuplrg">
+
| label29 = {{#if: {{{weapon_ent_info|}}} | Weapon Entity(s) |}}
      <label>Ammo on ammopack pickup</label>
+
| data29 = {{#if: {{{weapon_ent_info|}}} | {{{weapon_ent_info}}} |}}
    </data>
+
| label30 = {{#if: {{{ammo_ent_info|}}} | Ammo Entity(s) |}}
  </group>
+
| data30 = {{#if: {{{ammo_ent_info|}}} | {{{ammo_ent_info}}} |}}
  <group>
+
| label31 = {{#if: {{{ammo_type|}}} | Ammo Type |}}
    <header>Technical Specifications (altfire)</header>
+
| data31 = {{#if: {{{ammo_type|}}} | {{{ammo_type}}} |}}
    <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="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>Clips</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>
 
{{Weapon infobox
 
{{Weapon infobox
|title1=Example<!--- The title of the page --->
+
|title1=Example<!-- Article title -->
|image1=Example <!--- A render of the viewmodel from the intended viewing angle --->
+
|image1=Example<!-- Viewmodel front -->
 
|caption1=Viewmodel front
 
|caption1=Viewmodel front
|image2=Example <!-- A render of the viewmodel from the side-->
+
|image2=Example<!-- Viewmodel side-->
 
|caption2=Viewmodel side
 
|caption2=Viewmodel side
|image3=Example <!-- If applicable, a render of the worldmodel, whether it looks like the viewmodel or not -->
+
|image3=Example<!-- Worldmodel -->
 
|caption3=Worldmodel
 
|caption3=Worldmodel
|image4=Example
 
|caption4=Example
 
 
<!--- Basic Information --->
 
<!--- Basic Information --->
|name=Example
+
|name=Example <!-- technical name -->
 
|faction=Example <!---(combine, rebels, conscripts, etc)--->
 
|faction=Example <!---(combine, rebels, conscripts, etc)--->
 
|origin=Example <!---What faction it originates from--->
 
|origin=Example <!---What faction it originates from--->
Line 139: Line 88:
 
--->
 
--->
 
|accuracy= <!---(aka spread)--->
 
|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)--->
 
|firemode= <!---(i.e. full-auto; semi-auto; burst-fire)--->
 
|recoil=
 
|recoil=
Line 150: Line 100:
 
|damage2=
 
|damage2=
 
|accuracy2=
 
|accuracy2=
 +
|range2=
 
|firemode2=
 
|firemode2=
 
|recoil2=
 
|recoil2=

Latest revision as of 06:32, 8 July 2023

Weapon infobox
Basic Information
Technical Specifications
Technical Specifications (Altfire)
Game Information

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.--->
}}