Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox/Item/doc: Difference between revisions

Template page
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 9: Line 9:
}}</nowiki></pre>
}}</nowiki></pre>


==Template Data==
<includeonly>[[Category:Items]]
<table class="infobox-table floatright" style="padding-top:0">
{{#if:{{{Image|}}}|<tr id="infobox-table-img-bg">
<td width="100%" colspan="3" class="infobox-table-img" style="text-align: center; padding:0 !important;">[[File:{{{Image}}}|400px]]</td>
</tr>|}}
<tr>
<th width="100%" colspan="3" class="infobox-table-name">{{PAGENAME}}</th>
</tr>
{{#if:{{{Type|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Type</td>
<td width="60%" style="padding:3px;">[[:Category:Item: {{{Type}}}|{{{Type}}}]]</td>
</tr>}}
{{#if:{{{Description|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Description</td>
<td width="60%" style="padding:3px;">{{{Description}}}</td>
</tr>}}
{{#if:{{{Variants|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Variants</td>
<td width="60%" style="padding:3px;">{{{Variants}}}</td>
</tr>}}
{{#if:{{{Weight|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Weight</td>
<td width="60%" style="padding:3px;">{{{Weight}}} kg</td>
</tr>}}
{{#if:{{{Protection Level|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Protection Level</td>
<td width="60%" style="padding:3px;">{{{Protection Level}}}</td>
</tr>}}
{{#if:{{{Flash Protection|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Flash Protection</td>
<td width="60%" style="padding:3px;">{{{Flash Protection}}}</td>
</tr>}}
{{#if:{{{Material|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Material</td>
<td width="60%" style="padding:3px;">{{{Material}}}</td>
</tr>}}
{{#if:{{{Manufacturer|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Manufacturer</td>
<td width="60%" style="padding:3px;">[[{{{Manufacturer}}}]]</td>
</tr>}}
{{#if:{{{Buy Cost|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Buy Cost</td>
<td width="60%" style="padding:3px;">${{{Buy Cost}}}</td>
</tr>}}
{{#if:{{{Sell Cost|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Sell Cost</td>
<td width="60%" style="padding:3px;">${{{Sell Cost}}}</td>
</tr>}}
{{#if:{{{Trader|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Trader</td>
<td width="60%" style="padding:3px;">[[{{{Trader}}}]]</td>
</tr>}}
{{#if:{{{Usage|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Usage</td>
<td width="60%" style="padding:3px;">{{{Usage}}}</td>
</tr>}}
</table>
{{Short description|Item}}
[[Category:Item: {{{Type}}}]]
<templatestyles src="Template:Infobox/styles.css" /></includeonly>
<noinclude>
{{/doc}}
[[Category:Infobox Templates]][[Category:Templates]]
</noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params":{
"Image": {"label": "Image of the item", "type": "string"},
"Image":{
"Type": {"label": "Type of item", "type": "string"},
"type":"wiki-file-name"
},
"Description": {"label": "Description of the item", "type": "string"},
"Type":{
"Variants": {"label": "Available variants of the item", "type": "string"},
"Weight": {"label": "Weight of the item in kilograms", "type": "number"},
"type":"string",
"Protection Level": {"label": "Level of protection offered by the item", "type": "string"},
"description":"What type of item is this?",
"example":"Weapon / Meds / Armor",
"Flash Protection": {"label": "Level of flash protection offered by the item", "type": "string"},
"required":true
"Material": {"label": "Materials used in the item", "type": "string"},
},
"Manufacturer": {"label": "Manufacturer of the item", "type": "string"},
"Sold By":{
"Buy Cost": {"label": "Cost to buy the item", "type": "number"},
"Sell Cost": {"label": "Cost at which the item can be sold", "type": "number"},
"type":"string",
"required":true,
"Trader": {"label": "Trader selling the item", "type": "string"},
"Usage": {"label": "Usage information or guidelines for the item", "type": "string"}
"description":"Name of the Vendor who gave the sold the Item",
"example":"Lab Rat"
}
},
"Weight":{
"type":"string",
"required":true,
"description":"What is the weight of the item",
"example":"3.613 kg"
},
"Manufacturer":{
"type":"string",
"required":true,
"description":"What company manufactures this item",
"example":"Daniel Defense"
}
},
"description":"A Templated used in the creation of items",
"format":"block",
"paramOrder":[
"Image",
"Type",
"Sold By",
"Weight",
"Manufacturer"
]
}
}
</templatedata>
</templatedata>

Revision as of 20:06, 8 May 2024

Usage

{{Infobox Item
| Image =
| Type = 
| Sold By = (Name)
| Weight = 
| Manufacturer =
| Related =
}}

Template Data

A Templated used in the creation of items

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
ImageImage

no description

Fileoptional
TypeType

What type of item is this?

Example
Weapon / Meds / Armor
Stringrequired
Sold BySold By

Name of the Vendor who gave the sold the Item

Example
Lab Rat
Stringrequired
WeightWeight

What is the weight of the item

Example
3.613 kg
Stringrequired
ManufacturerManufacturer

What company manufactures this item

Example
Daniel Defense
Stringrequired
Cookies help us deliver our services. By using our services, you agree to our use of cookies.