Template:Infobox weapon: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
VertopolkaLF (talk | contribs) m increased size of mod slots |
||
| (45 intermediate revisions by 6 users not shown) | |||
| Line 4: | Line 4: | ||
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|348px]]|}} |
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|348px]]|}} |
||
|imagerowclass1 = infobox-image |
|imagerowclass1 = infobox-image {{#switch: {{{rarity|}}} |
||
|Common = gradient-common |
|||
|Uncommon = gradient-uncommon |
|||
|Rare = gradient-rare |
|||
|Epic = gradient-epic |
|||
|Legendary = gradient-legendary |
|||
|{{{rarity|}}} = gradient-common <!--else--> |
|||
|}} |
|||
|data1 = {{#switch: {{{ammo|}}} |
|||
|Heavy Ammo = [[File:Ammo_Heavy.png|22px|link=]] |
|||
|Medium Ammo = [[File:Ammo_Medium.png|22px|link=]] |
|||
|Light Ammo = [[File:Ammo_Light.png|22px|link=]] |
|||
|Shotgun Ammo = [[File:Ammo_Shotgun.png|22px|link=]] |
|||
|Energy Clip = [[File:Ammo_Energy.png|22px|link=]] |
|||
|Launcher Ammo = [[File:Ammo_Launcher.png|22px|link=]] |
|||
}} |
|||
|rowclass1 = data-tag icon {{#switch: {{{rarity|}}} |
|||
|Common = data-tag-common |
|||
|Uncommon = data-tag-uncommon |
|||
|Rare = data-tag-rare |
|||
|Epic = data-tag-epic |
|||
|Legendary = data-tag-legendary |
|||
|{{{rarity|}}} = data-tag-common <!--else--> |
|||
|}} |
|||
|data2 = {{{type|}}} |
|data2 = {{{type|}}} |
||
|rowclass2 = data-tag |
|rowclass2 = data-tag {{#switch: {{{rarity|}}} |
||
|Common = data-tag-common |
|||
|Uncommon = data-tag-uncommon |
|||
|Rare = data-tag-rare |
|||
|Epic = data-tag-epic |
|||
|Legendary = data-tag-legendary |
|||
|{{{rarity|}}} = data-tag-common <!--else--> |
|||
|}} |
|||
|data3 = {{{rarity|}}} |
|data3 = {{{rarity|}}} |
||
|rowclass3 = data-tag |
|rowclass3 = data-tag {{#switch: {{{rarity|}}} |
||
|Common = data-tag-common |
|||
|Uncommon = data-tag-uncommon |
|||
|Rare = data-tag-rare |
|||
|Epic = data-tag-epic |
|||
|Legendary = data-tag-legendary |
|||
|{{{rarity|}}} = data-tag-common <!--else--> |
|||
|}} |
|||
|header4 = {{{name|{{PAGENAME}}}}} |
|header4 = {{{name|{{PAGENAME}}}}} |
||
| Line 18: | Line 57: | ||
|rowclass5 = data-weaponquote infobox-quote infobox-col1 |
|rowclass5 = data-weaponquote infobox-quote infobox-col1 |
||
|data6 |
|data6 = {{#if:{{{compatiblemods|}}}|{{#invoke:String|replace |
||
| source = {{{compatiblemods|}}} |
|||
|rowclass6 = data-warning infobox-data infobox-col1 |
|||
| pattern = [^%s]+ |
|||
| replace = [[File:Mods %1.png|38px|link=|%1]] |
|||
| plain = false |
|||
}}|}} |
|||
|rowclass6 = data-mods infobox-quote |
|||
|label7 = Ammo |
|label7 = Ammo |
||
|data7 = {{{ammo|}}} |
|data7 = {{#switch: {{{ammo|}}} |
||
|Heavy Ammo = [[File:Ammo_Heavy.png|24px|link=]] Heavy Ammo |
|||
|Medium Ammo = [[File:Ammo_Medium.png|24px|link=]] Medium Ammo |
|||
|Light Ammo = [[File:Ammo_Light.png|24px|link=]] Light Ammo |
|||
|Shotgun Ammo = [[File:Ammo_Shotgun.png|24px|link=]] Shotgun Ammo |
|||
|Energy Clip = [[File:Ammo_Energy.png|24px|link=]] Energy Clip |
|||
}} |
|||
|rowclass7 = data-ammo infobox-data infobox-col1 |
|rowclass7 = data-ammo infobox-data infobox-col1 |
||
| |
|label8 = Magazine Size |
||
| |
|data8 = {{{magsize|}}} |
||
| |
|rowclass8 = data-magsize infobox-data infobox-col1 |
||
|label9 = Firing Mode |
|||
|label11 = Damage |
|||
| |
|data9 = {{{firingmode|}}} |
||
| |
|rowclass9 = data-firingmode infobox-data infobox-col1 |
||
|label10 = ARC Armor Penetration |
|||
|label12 = Fire Rate |
|||
| |
|data10 = {{{ARCarmorpenetr|}}} |
||
| |
|rowclass10 = data-ARCarmorpenetr infobox-data infobox-col1 |
||
|label11 = Special Trait |
|||
|label13 = Range |
|||
| |
|data11 = {{{SpecialTrait|}}} |
||
| |
|rowclass11 = data-SpecialTrait infobox-data infobox-col1 |
||
|label12 = Price |
|||
|label14 = Stability |
|||
| |
|data12 = {{{price|}}} |
||
| |
|rowclass12 = data-price infobox-data infobox-col1 |
||
| |
|label13 = Damage |
||
| |
|data13 = {{{damage|}}} |
||
| |
|rowclass13 = data-damage infobox-data infobox-col1 |
||
| |
|label14 = Fire Rate |
||
| |
|data14 = {{{firerate|}}} |
||
| |
|rowclass14 = data-firerate infobox-data infobox-col1 |
||
}} |
|||
|label15 = Range |
|||
</includeonly> |
|||
|data15 = {{{range|}}} |
|||
|rowclass15 = data-range infobox-data infobox-col1 |
|||
|label16 = Stability |
|||
|data16 = {{{stability|}}} |
|||
|rowclass16 = data-stability infobox-data infobox-col1 |
|||
|label17 = Agility |
|||
|data17 = {{{agility|}}} |
|||
|rowclass17 = data-agility infobox-data infobox-col1 |
|||
|label18 = Stealth |
|||
|data18 = {{{stealth|}}} |
|||
|rowclass18 = data-stealth infobox-data infobox-col1 |
|||
|header19 = General Data |
|||
|rowclass19 = infobox-header |
|||
|label20 = Weight |
|||
|data20 = {{Weight|{{{weight|}}}}} |
|||
|rowclass20 = data-weight infobox-data infobox-col1 |
|||
|label21 = Sell Price |
|||
|data21 = {{{sellprice|}}} |
|||
|rowclass21 = data-sellprice infobox-data infobox-col1 |
|||
|header22 = {{#if: {{{upgradep2|}}} | Upgrade Perks }} |
|||
|rowclass22 = infobox-header |
|||
|label23 = Level II |
|||
|data23 = {{{upgradep2|}}} |
|||
|rowclass23 = data-upgradep2 infobox-data infobox-col1 |
|||
|label24 = Level III |
|||
|data24 = {{{upgradep3|}}} |
|||
|rowclass24 = data-upgradep3 infobox-data infobox-col1 |
|||
|label25 = Level IV |
|||
|data25 = {{{upgradep4|}}} |
|||
|rowclass25 = data-upgradep4 infobox-data infobox-col1 |
|||
|}}<templatestyles src="Template:Infobox/styles.css" />{{#ifeq:{{NAMESPACE}}||[[Category:Weapons]]}}</includeonly> |
|||
<noinclude> |
<noinclude> |
||
Example: |
Example: |
||
{{Infobox |
{{Infobox weapon |
||
|name=Tempest |
|name=Tempest I/II/III/IV |
||
|image=Tempest-Level1.png |
|||
|warning=ⓘ Somewhat effective against ARC armor plating |
|||
|rarity=Epic |
|||
|weaponquote = Semi-automatic pistol with decent damage output and accuracy. Can be fired as fast as you can pull the trigger. |
|||
|weaponquote = Fully automatic assault rifle with moderate fire rate and accuracy. |
|||
|compatiblemods = Muzzle Grip Medium-Mag Stock |
|||
|type=Assault Rifle |
|type=Assault Rifle |
||
|ammo=Medium Ammo |
|ammo=Medium Ammo |
||
|magsize = 33 |
|||
|rarity=Rare |
|||
|firingmode = Auto |
|||
|ARCarmorpenetr=Moderate |
|||
|SpecialTrait= |
|||
|damage=12 |
|damage=12 |
||
|range=54.2m |
|range=54.2m |
||
| Line 72: | Line 169: | ||
|magazine=true |
|magazine=true |
||
|muzzle=true |
|muzzle=true |
||
|weight=5.0 |
|||
|sellprice={{Price|5,000}}{{Price|6,000}}{{Price|7,000}}{{Price|8,000}} |
|||
|upgradep2=filler<br>filler |
|||
|upgradep3=Filler |
|||
|upgradep4=Words |
|||
}} |
}} |
||
</noinclude> |
[[Category:Infobox templates]]</noinclude> |
||
<templatestyles src="Template:Infobox/styles.css" /> |
|||
Latest revision as of 04:18, 10 November 2025
Example: