Difference between revisions of "Template:Weapon infobox"
From Valve Cut Content
(if statements 5) |
(if statements 6) |
||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
− | |{{#if: {{{image2|}}} | | + | |image1={{#if: {{{image2|}}} | [[File:{{{image1}}}|300px]]|}} |
− | |{{#if: {{{image2|}}} | | + | |caption1={{#if: {{{caption1|}}} |{{{caption1}}} |}} |
− | |{{#if: {{{image3|}}} | | + | |image2={{#if: {{{image2|}}} | [[File:{{{image2}}}|300px]]|}} |
− | | header1 = Basic Information | + | |caption2={{#if: {{{caption2|}}} |{{{caption2}}} |}} |
− | |{{#if: {{{name | + | |image3={{#if: {{{image3|}}} | [[File:{{{image3}}}|300px]]|}} |
− | |{{#if:{{{name | + | |caption3={{#if: {{{caption3|}}} |{{{caption3}}} |}} |
− | |{{#if: {{{faction | + | | header1 = Basic Information| label2 = {{#if: {{{name}}} | Name |}} |
− | |{{#if:{{{faction | + | | data2 = {{#if: {{{name}}} | {{{name}}} |}} |
− | |{{#if: {{{origin | + | | label3 = {{#if: {{{faction}}} | Faction |}} |
− | |{{#if:{{{origin | + | | data3 = {{#if: {{{faction}}} | {{{faction}}} |}} |
− | |{{#if: {{{ugroup1 | + | | label4 = {{#if: {{{origin}}} | Origin |}} |
− | |{{#if:{{{ugroup1 | + | | data4 = {{#if: {{{origin}}} | {{{origin}}} |}} |
+ | | label5 = {{#if: {{{ugroup1}}} | Usage |}} | ||
+ | | data5 = {{#if: {{{ugroup1}}} | {{{ugroup1}}} |}} | ||
| header6 = Technical Specifications | | header6 = Technical Specifications | ||
− | |{{#if: {{{fire_rate | + | | label7 = {{#if: {{{fire_rate}}} | Fire Rate |}} |
− | |{{#if:{{{fire_rate | + | | data7 = {{#if: {{{fire_rate}}} | {{{fire_rate}}} |}} |
− | |{{#if: {{{damage | + | | label8 = {{#if: {{{damage}}} | Damage |}} |
− | |{{#if:{{{damage | + | | data8 = {{#if: {{{damage}}} | {{{damage}}} |}} |
− | |{{#if: {{{accuracy | + | | label9 = {{#if: {{{accuracy}}} | Accuracy |}} |
− | |{{#if:{{{accuracy | + | | data9 = {{#if: {{{accuracy}}} | {{{accuracy}}} |}} |
− | |{{#if: {{{firemode | + | | label10 = {{#if: {{{firemode}}} | Fire Mode |}} |
− | |{{#if:{{{firemode | + | | data10 = {{#if: {{{firemode}}} | {{{firemode}}} |}} |
− | |{{#if: {{{recoil | + | | label11 = {{#if: {{{recoil}}} | Recoil |}} |
− | |{{#if:{{{recoil | + | | data11 = {{#if: {{{recoil}}} | {{{recoil}}} |}} |
− | |{{#if: {{{ammo_type | + | | label12 = {{#if: {{{ammo_type}}} | Ammo Type |}} |
− | |{{#if:{{{ammo_type | + | | data12 = {{#if: {{{ammo_type}}} | {{{ammo_type}}} |}} |
− | |{{#if: {{{clipsize | + | | label13 = {{#if: {{{clipsize}}} | Clip Size |}} |
− | |{{#if:{{{clipsize | + | | data13 = {{#if: {{{clipsize}}} | {{{clipsize}}} |}} |
− | + | | label14 = Max. Clips (including active) | |
− | |{{#if:{{{clips | + | | data14 = {{#if: {{{clips}}} | clips |}} |
− | |{{#if: {{{faction | + | | label15 = {{#if: {{{faction}}} | Ammo on weapon pickup |}} |
− | |{{#if:{{{faction | + | | data15 = {{#if: {{{faction}}} | {{{faction}}} |}} |
− | |{{#if: {{{origin | + | | label16 = {{#if: {{{origin}}} | Ammo on ammopack pickup |}} |
− | |{{#if:{{{origin | + | | data16 = {{#if: {{{origin}}} | {{{origin}}} |}} |
| header17 = Technical Specifications (Altfire) | | header17 = Technical Specifications (Altfire) | ||
− | |{{#if: {{{fire_rate2 | + | | label18 = {{#if: {{{fire_rate2}}} | Fire Rate |}} |
− | |{{#if:{{{fire_rate2 | + | | data18 = {{#if: {{{fire_rate2}}} | {{{fire_rate2}}} |}} |
− | |{{#if: {{{damage2 | + | | label19 = {{#if: {{{damage2}}} | Damage |}} |
− | |{{#if:{{{damage2 | + | | data19 = {{#if: {{{damage2}}} | {{{damage2}}} |}} |
− | |{{#if: {{{accuracy2 | + | | label20 = {{#if: {{{accuracy2}}} | Accuracy |}} |
− | |{{#if:{{{accuracy2 | + | | data20 = {{#if: {{{accuracy2}}} | {{{accuracy2}}} |}} |
− | |{{#if: {{{firemode2 | + | | label21 = {{#if: {{{firemode2}}} | Fire Mode |}} |
− | |{{#if:{{{firemode2 | + | | data21 = {{#if: {{{firemode2}}} | {{{firemode2}}} |}} |
− | |{{#if: {{{recoil2 | + | | label22 = {{#if: {{{recoil2}}} | Recoil |}} |
− | |{{#if:{{{recoil2 | + | | data22 = {{#if: {{{recoil2}}} | {{{recoil2}}} |}} |
− | |{{#if: {{{ammo_type2 | + | | label23 = {{#if: {{{ammo_type2}}} | Ammo Type |}} |
− | |{{#if:{{{ammo_type2 | + | | data23 = {{#if: {{{ammo_type2}}} | {{{ammo_type2}}} |}} |
− | |{{#if: {{{clipsize2 | + | | label24 = {{#if: {{{clipsize2}}} | Clip Size |}} |
− | |{{#if:{{{clipsize2 | + | | data24 = {{#if: {{{clipsize2}}} | {{{clipsize2}}} |}} |
| header25 = Game Information | | header25 = Game Information | ||
− | |{{#if: {{{vmodel_name | + | | label26 = {{#if: {{{vmodel_name}}} | View Model |}} |
− | |{{#if:{{{vmodel_name | + | | data26 = {{#if: {{{vmodel_name}}} | {{{vmodel_name}}} |}} |
− | |{{#if: {{{wmodel_name | + | | label27 = {{#if: {{{wmodel_name}}} | World Model |}} |
− | |{{#if:{{{wmodel_name | + | | data27 = {{#if: {{{wmodel_name}}} | {{{wmodel_name}}} |}} |
− | |{{#if: {{{ | + | | label28 = {{#if: {{{ammo_type}}} | Weapon Entity(s) |}} |
− | |{{#if:{{{weapon_ent_info | + | | data28 = {{#if: {{{weapon_ent_info}}} | weapon_ent_info |}} |
− | |{{#if: {{{ | + | | label29 = {{#if: {{{ammo_type}}} | Ammo Entity(s) |}} |
− | |{{#if:{{{ammo_ent_info | + | | data29 = {{#if: {{{ammo_ent_info}}} | ammo_ent_info |}} |
− | |{{#if: {{{ammo_type | + | | label30 = {{#if: {{{ammo_type}}} | Ammo Type |}} |
− | |{{#if:{{{ammo_type | + | | data30 = {{#if: {{{ammo_type}}} | {{{ammo_type}}} |}} |
}} | }} | ||
<noinclude> | <noinclude> |
Revision as of 19:43, 21 November 2018
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.---> }}