Template:ItemInfobox: Difference between revisions

From Fonline2 Wiki
Jump to navigation Jump to search
for all items
 
Improve infobox layout and conditional stats rows
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
{{ItemInfobox
{{ItemInfobox
|name=Item Name
|name=Item Name
|image=
|rows=
|type=SmallGun
|cost=140
|weight=1814
|durability=1000
|tier=5
|description=A brief description
|damage_min=50
|damage_max=70
|ap_cost=35
|skill=SkillSmallGuns
}}
</noinclude><includeonly>
{| class="wikitable" style="float:right; margin-left: 10px; width: 300px"
|-
|-
! colspan="2" style="background-color: #4CAF50; color: white" | {{{name|}}}
| colspan="2" style="text-align:center" | [[File:brain4.png|260px]]
|-
| colspan="2" style="text-align: center" | [[File:{{{image|}}}|200px]]
|-
|-
! Type
! Type
| {{{type|}}}
| SmallGun
|-
|-
! Cost
! Cost
| {{{cost|}}} caps
| 140 caps
|-
|modes=
! Weight
<tr><th colspan="2">Firing Modes</th></tr>
| {{{weight|}}} g
<tr><td colspan="2">...</td></tr>
|-
}}
! Durability
</noinclude>
| {{{durability|}}} HP
<includeonly>
|-
<table class="wikitable" style="float:right; margin:0 0 1em 1em; width:320px">
! Tier
<tr>
| {{{tier|}}}
<th colspan="2" style="background-color:#3d6f4a; color:white; text-align:center">{{{name|{{PAGENAME}}}}}</th>
|-
</tr>
! Damage (Min-Max)
{{{rows|}}}
| {{{damage_min|—}}} - {{{damage_max|—}}}
{{{modes|}}}
|-
</table>
! AP Cost
| {{{ap_cost|}}}
|-
! Required Skill
| {{{skill|}}}
|-
! Description
| colspan="2" | {{{description|}}}
|}
</includeonly>
</includeonly>

Latest revision as of 12:16, 26 May 2026

This is the ItemInfobox template. It is used to display item information in a standardized infobox format.

Usage:


Item Name
Firing Modes
...