Difference between revisions of "Template:Weapon infobox"

From Valve Cut Content
Jump to: navigation, search
oldwiki>Livelong2
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">...")
 
 
(37 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]]|}}
  <data source="row1">
+
|caption3={{#if: {{{caption3|}}} |{{{caption3}}} |}}
    <label>Label</label>
+
|  header1 = Basic Information
  </data>
+
| label2 = {{#if: {{{name|}}} | Name |}}
  <data source="row2">
+
| data2 = {{#if: {{{name|}}} | {{{name}}} |}}
    <label>Label</label>
+
| label3 = {{#if: {{{faction|}}} | Faction |}}
  </data>
+
| data3 = {{#if: {{{faction|}}} | {{{faction}}} |}}
</infobox>
+
| label4 = {{#if: {{{origin|}}} | Origin |}}
 +
| data4 = {{#if: {{{origin|}}} | {{{origin}}} |}}
 +
| label5 = {{#if: {{{ugroup1|}}} | Usage |}}
 +
| data5 = {{#if: {{{ugroup1|}}} | {{{ugroup1}}} |}}
 +
| header6 = Technical Specifications
 +
| label7 = {{#if: {{{fire_rate|}}} | Fire Rate |}}
 +
| data7 = {{#if: {{{fire_rate|}}} | {{{fire_rate}}} |}}
 +
| label8 = {{#if: {{{damage|}}} | Damage |}}
 +
| data8 = {{#if: {{{damage|}}} | {{{damage}}} |}}
 +
| label9 = {{#if: {{{accuracy|}}} | Accuracy |}}
 +
| data9 = {{#if: {{{accuracy|}}} | {{{accuracy}}} |}}
 +
| label10 = {{#if: {{{firemode|}}} | Fire Mode |}}
 +
| data10 = {{#if: {{{firemode|}}} | {{{firemode}}} |}}
 +
| label11 = {{#if: {{{recoil|}}} | Recoil |}}
 +
| data11 = {{#if: {{{recoil|}}} | {{{recoil}}} |}}
 +
| label12 = {{#if: {{{ammo_type|}}} | Ammo Type |}}
 +
| data12 = {{#if: {{{ammo_type|}}} | {{{ammo_type}}} |}}
 +
| label13 = {{#if: {{{clipsize|}}} | Clip Size |}}
 +
| data13 = {{#if: {{{clipsize|}}} | {{{clipsize}}} |}}
 +
| label14 = {{#if: {{{clips|}}} | Max. Clips (including active) |}}
 +
| data14 = {{#if: {{{clips|}}} | {{{clips}}} |}}
 +
| label15 = {{#if: {{{ammo_on_wpickup|}}} | Ammo on weapon pickup |}}
 +
| data15 = {{#if: {{{ammo_on_wpickup|}}} | {{{ammo_on_wpickup}}} |}}
 +
| label16 = {{#if: {{{ammo_on_apickup|}}} | Ammo on ammopack pickup |}}
 +
| data16 = {{#if: {{{ammo_on_apickup|}}} | {{{ammo_on_apickup}}} |}}
 +
| label17 = {{#if: {{{ammo_on_apickuplrg|}}} | Ammo on large ammopack pickup |}}
 +
| data17 = {{#if: {{{ammo_on_apickuplrg|}}} | {{{ammo_on_apickuplrg}}} |}}
 +
| header18 = Technical Specifications (Altfire)
 +
| label19 = {{#if: {{{fire_rate2|}}} | Fire Rate |}}
 +
| data19 = {{#if: {{{fire_rate2|}}} | {{{fire_rate2}}} |}}
 +
| label20 = {{#if: {{{damage2|}}} | Damage |}}
 +
| data20 = {{#if: {{{damage2|}}} | {{{damage2}}} |}}
 +
| label21 = {{#if: {{{accuracy2|}}} | Accuracy |}}
 +
| data21 = {{#if: {{{accuracy2|}}} | {{{accuracy2}}} |}}
 +
| label22 = {{#if: {{{firemode2|}}} | Fire Mode |}}
 +
| data22 = {{#if: {{{firemode2|}}} | {{{firemode2}}} |}}
 +
| label23 = {{#if: {{{recoil2|}}} | Recoil |}}
 +
| data23 = {{#if: {{{recoil2|}}} | {{{recoil2}}} |}}
 +
| label24 = {{#if: {{{ammo_type2|}}} | Ammo Type |}}
 +
| data24 = {{#if: {{{ammo_type2|}}} | {{{ammo_type2}}} |}}
 +
| label25 = {{#if: {{{clipsize2|}}} | Clip Size |}}
 +
| data25 = {{#if: {{{clipsize2|}}} | {{{clipsize2}}} |}}
 +
| header26 = Game Information
 +
| label27 = {{#if: {{{vmodel_name|}}} | View Model |}}
 +
| data27 = {{#if: {{{vmodel_name|}}} | {{{vmodel_name}}} |}}
 +
| label28 = {{#if: {{{wmodel_name|}}} | World Model |}}
 +
| data28 = {{#if: {{{wmodel_name|}}} | {{{wmodel_name}}} |}}
 +
| label29 = {{#if: {{{weapon_ent_info|}}} | Weapon Entity(s) |}}
 +
| data29 = {{#if: {{{weapon_ent_info|}}} | {{{weapon_ent_info}}} |}}
 +
| label30 = {{#if: {{{ammo_ent_info|}}} | Ammo Entity(s) |}}
 +
| data30 = {{#if: {{{ammo_ent_info|}}} | {{{ammo_ent_info}}} |}}
 +
| label31 = {{#if: {{{ammo_type|}}} | Ammo Type |}}
 +
| data31 = {{#if: {{{ammo_type|}}} | {{{ammo_type}}} |}}
 +
}}
 
<noinclude>
 
<noinclude>
 
Example usage:<pre>
 
Example usage:<pre>
 
{{Weapon infobox
 
{{Weapon infobox
|title1=Example
+
|title1=Example<!-- Article title -->
|image1=Example
+
|image1=Example<!-- Viewmodel front -->
|caption1=Example
+
|caption1=Viewmodel front
|row1=Example
+
|image2=Example<!-- Viewmodel side-->
|row2=Example
+
|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.--->
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

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