Template:Infobox clothing: Difference between revisions
(added alternate image 6 and 7) |
m ({{Delete|Unused}}) |
||
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <noinclude>{{Deprecated|Infobox item}}{{Delete|Unused}}</noinclude><includeonly>{{Infobox | ||
|bodystyle = width:350px; -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; | |bodystyle = width:350px; -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; | ||
| above = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{{name|{{{display_name|{{PAGENAME}}}}}}}}</span></div> | | above = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{Translation|{{{name|{{{display_name|{{PAGENAME}}}}}}}}}}</span></div> | ||
| image = {{#if: {{{image|}}}|[[File:{{{image}}}|{{{display_name}}}|{{{image_width| | | image = {{#if: {{{image|}}}|[[File:{{{image}}}|{{Translation|{{{display_name}}}}}|{{{image_width|128px}}}|class=pixelart]]}} | ||
| caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}} | | caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}} | ||
| image2 = {{#if: {{{alternate_image|}}}|{{{!}} style="margin:auto;" cellspacing=5 | | image2 = {{#if: {{{alternate_image|}}}|{{{!}} style="margin:auto;" cellspacing=5 | ||
{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image}}}|link={{{alternate_link|}}}{{#if: {{{alternate_name|}}} |{{!}}{{{alternate_name}}} }}]] | {{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image}}}|link={{{alternate_link|}}}{{#if: {{{alternate_name|}}} |{{!}}{{Translation|{{{alternate_name}}}}} }}]] | ||
{{#if: {{{alternate_image2|}}} | {{#if: {{{alternate_image2|}}} | ||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image2}}}|link={{{alternate_link2|}}}{{#if: {{{alternate_name2|}}} |{{!}}{{{alternate_name2}}} }}]] | |{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image2}}}|link={{{alternate_link2|}}}{{#if: {{{alternate_name2|}}} |{{!}}{{Translation|{{{alternate_name2}}}}} }}]] | ||
{{#if: {{{alternate_image3|}}} | {{#if: {{{alternate_image3|}}} | ||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image3}}}|link={{{alternate_link3|}}}{{#if: {{{alternate_name3|}}} |{{!}}{{{alternate_name3}}} }}]] | |{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image3}}}|link={{{alternate_link3|}}}{{#if: {{{alternate_name3|}}} |{{!}}{{Translation|{{{alternate_name3}}}}} }}]] | ||
{{#if: {{{alternate_image4|}}} | {{#if: {{{alternate_image4|}}} | ||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image4}}}|link={{{alternate_link4|}}}{{#if: {{{alternate_name4|}}} |{{!}}{{{alternate_name4}}} }}]] | |{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image4}}}|link={{{alternate_link4|}}}{{#if: {{{alternate_name4|}}} |{{!}}{{Translation|{{{alternate_name4}}}}} }}]] | ||
{{#if: {{{alternate_image5|}}} | {{#if: {{{alternate_image5|}}} | ||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image5}}}|link={{{alternate_link5|}}}{{#if: {{{alternate_name5|}}} |{{!}}{{{alternate_name5}}} }}]] | |{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image5}}}|link={{{alternate_link5|}}}{{#if: {{{alternate_name5|}}} |{{!}}{{Translation|{{{alternate_name5}}}}} }}]] | ||
{{#if: {{{alternate_image6|}}} | {{#if: {{{alternate_image6|}}} | ||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image6}}}|link={{{alternate_link6|}}}{{#if: {{{alternate_name6|}}} |{{!}}{{{alternate_name6}}} }}]] | |{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image6}}}|link={{{alternate_link6|}}}{{#if: {{{alternate_name6|}}} |{{!}}{{Translation|{{{alternate_name6}}}}} }}]] | ||
{{#if: {{{alternate_image7|}}} | {{#if: {{{alternate_image7|}}} | ||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image7}}}|link={{{alternate_link7|}}}{{#if: {{{alternate_name7|}}} |{{!}}{{{alternate_name7}}} }}]] }} }} }} }} }} }} | |{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image7}}}|link={{{alternate_link7|}}}{{#if: {{{alternate_name7|}}} |{{!}}{{Translation|{{{alternate_name7}}}}} }}]] | ||
{{#if: {{{alternate_image8|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image8}}}|link={{{alternate_link8|}}}{{#if: {{{alternate_name8|}}} |{{!}}{{Translation|{{{alternate_name8}}}}} }}]] }} }} }} }} }} }} }} | |||
{{!}}} }} | |||
| image3 = {{#if: {{{alternate_image9|}}}|{{{!}} style="margin:auto;" cellspacing=5 | |||
{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image9}}}|link={{{alternate_link9|}}}{{#if: {{{alternate_name9|}}} |{{!}}{{Translation|{{{alternate_name9}}}}} }}]] | |||
{{#if: {{{alternate_image10|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image10}}}|link={{{alternate_link10|}}}{{#if: {{{alternate_name10|}}} |{{!}}{{Translation|{{{alternate_name10}}}}} }}]] | |||
{{#if: {{{alternate_image11|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image11}}}|link={{{alternate_link11|}}}{{#if: {{{alternate_name11|}}} |{{!}}{{Translation|{{{alternate_name11}}}}} }}]] | |||
{{#if: {{{alternate_image12|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image12}}}|link={{{alternate_link12|}}}{{#if: {{{alternate_name12|}}} |{{!}}{{Translation|{{{alternate_name12}}}}} }}]] | |||
{{#if: {{{alternate_image13|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image13}}}|link={{{alternate_link13|}}}{{#if: {{{alternate_name13|}}} |{{!}}{{Translation|{{{alternate_name13}}}}} }}]] | |||
{{#if: {{{alternate_image14|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image14}}}|link={{{alternate_link14|}}}{{#if: {{{alternate_name14|}}} |{{!}}{{Translation|{{{alternate_name14}}}}} }}]] | |||
{{#if: {{{alternate_image15|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image15}}}|link={{{alternate_link15|}}}{{#if: {{{alternate_name15|}}} |{{!}}{{Translation|{{{alternate_name15}}}}} }}]] | |||
{{#if: {{{alternate_image16|}}} | |||
|{{!}} style="width:32px; padding:2px; background-color:#EEEEEE; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;" {{!}} [[Image:{{{alternate_image16}}}|link={{{alternate_link16|}}}{{#if: {{{alternate_name16|}}} |{{!}}{{Translation|{{{alternate_name16}}}}} }}]] }} }} }} }} }} }} }} | |||
{{!}}} }} | {{!}}} }} | ||
Line 27: | Line 47: | ||
| datastyle = width:50%; | | datastyle = width:50%; | ||
| header1 = {{#if:{{{category|{{{weight|{{{body_location|{{{run_speed|{{{combat_speed|}}}}}}}}}}}}}}}|General}} | | header1 = {{#if:{{{category|{{{weight|{{{body_location|{{{fabric|{{{fabric_type|{{{metal_value|{{{function|{{{run_speed|{{{combat_speed|}}}}}}}}}}}}}}}}}}}}}}}}}}}|{{Translation|General}}}} | ||
| label2 = Category | | label2 = {{Translation|Category}} | ||
| data2 = {{{category|Clothing}}} | | data2 = {{{category|{{Translation|Clothing}}}}} | ||
| label3 = | | label3 = {{Translation|Encumbrance}} [[File:Moodle_Icon_HeavyLoad.png|right|link=Moodles#Heavy Load|{{Translation|Heavy Load}}]] | ||
| data3 = {{{weight|}}} | | data3 = {{{weight|}}} | ||
| label4 = Body location | | label4 = {{Translation|Body location}} | ||
| data4 = {{{body_location|}}} | | data4 = {{{body_location|}}} | ||
| label5 = Fabric | | label5 = {{Translation|Fabric}} | ||
| data5 = {{{fabric_type|}}} | | data5 = {{#if:{{{fabric_type|}}}|{{{fabric_type}}}|{{#if:{{{fabric|}}}|{{img_item|item={{{fabric}}}|name={{{fabric}}}|size=32px}}}}}} | ||
<!-- | |||
| label6 = {{Translation|Metal Value}} | |||
| data6 = {{{metal_value}}} | |||
#### Currently hidden until metal value becomes a usable stat #### | |||
--> | |||
| label7 = {{Translation|Function}} | |||
| data7 = {{{function|{{{primary_use|}}}}}}{{#if:{{{secondary_use|}}}|<br>{{{secondary_use}}}}} | |||
| label8 = {{Translation|Condition}} | |||
| data8 = {{{condition|}}} | |||
| label9 = {{Translation|Capacity}} | |||
| data9 = {{{capacity|}}} | |||
| label10 = {{Translation|Encumbrance reduction}} | |||
| data10 = {{#if:{{{weight_reduction|}}}|{{{weight_reduction}}}%}} | |||
| label11 = {{Translation|Attachments}} | |||
| data11 = {{{attachments_provided|}}} | |||
| | | header15 = {{#if:{{{run_speed|{{{combat_speed|}}}}}}|Speed}} | ||
| | |||
| | | label16 = {{Translation|Run speed}} | ||
| | | data16 = {{#if:{{{run_speed|}}}|{{tooltip|{{#iferror: {{#expr:{{{run_speed|}}} * 100 round 0}} | {{{run_speed|}}} | {{#expr:{{{run_speed|}}} * 100 round 0}}% }}|Currently has no effect in-game.}} }} | ||
| | | label17 = {{Translation|Combat speed}} | ||
| data17 = {{{combat_speed|}}} | |||
| | | header20 = {{#if:{{{scratch_defense|{{{bite_defense|{{{bullet_defense|{{{neck_protection|}}}}}}}}}}}}|{{Translation|Protection}}}} | ||
| | |||
| | | label21 = {{Translation|Scratch defense}} | ||
| | | data21 = {{{scratch_defense|}}} | ||
| | | label22 = {{Translation|Bite defense}} | ||
| data22 = {{{bite_defense|}}} | |||
| | | label23 = {{Translation|Bullet defense}} | ||
| | | data23 = {{{bullet_defense|}}} | ||
| | | label24 = {{Translation|Neck protection}} | ||
| | | data24 = {{{neck_protection|}}} | ||
| | | header30 = {{#if:{{{insulation|{{{wind_resistance|{{{water_resistance|}}}}}}}}}|{{Translation|Insulation}}}} | ||
| | |||
| | | label31 = {{Translation|Insulation}} | ||
| data31 = {{{insulation|}}} | |||
| | | label32 = {{Translation|Wind resistance}} | ||
| | | data32 = {{{wind_resistance|}}} | ||
| | | label33 = {{Translation|Water resistance}} | ||
| | | data33 = {{{water_resistance|}}} | ||
| | | header35 = {{Translation|Technical details}} | ||
| | | label36 = {{Translation|Ingredients}} | ||
| data36 = {{{ingredients|}}} | |||
| | | label37 = {{Translation|Item ID}} | ||
| | | data37 = {{#if:{{{no_style|true}}}|{{ID|{{{class_name|[[#Item IDs|Item IDs]]}}}}}|{{{class_name|[[#Item IDs|Item IDs]]}}}}} | ||
}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox]]</noinclude> | }}</includeonly><noinclude>{{Documentation}}[[Category:Infobox]]</noinclude> |
Latest revision as of 06:03, 13 April 2024
This template is used to create an infobox in an article about clothing.
Usage
To use this template in an article, copy the template below, then paste the template into an article.
All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.
It is strongly advised to only include variables that are relevant to the specific item in question, i.e. parameters that do not display as false or 0.
display_name | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
General | ||||||||
Category | category | |||||||
Encumbrance | weight | |||||||
Body location | body_location | |||||||
Fabric | ||||||||
Function | function | |||||||
Condition | condition | |||||||
Capacity | capacity | |||||||
Encumbrance reduction | weight_reduction% | |||||||
Attachments | attachments_provided | |||||||
Speed | ||||||||
Run speed | run_speed | |||||||
Combat speed | combat_speed | |||||||
Protection | ||||||||
Scratch defense | scratch_defense | |||||||
Bite defense | bite_defense | |||||||
Bullet defense | bullet_defense | |||||||
Neck protection | neck_protection | |||||||
Insulation | ||||||||
Insulation | insulation | |||||||
Wind resistance | wind_resistance | |||||||
Water resistance | water_resistance | |||||||
Technical details | ||||||||
Ingredients | ingredients | |||||||
Item ID | Item IDs |
{{Infobox clothing |name = | name_colour = | name_text_colour = | image = | image_width = | alternate_image = | alternate_name = | alternate_link = | alternate_image2 = | alternate_name2 = | alternate_link2 = | alternate_image3 = | alternate_name3 = | alternate_link3 = | alternate_image4 = | alternate_name4 = | alternate_link4 = | alternate_image5 = | alternate_name5 = | alternate_link5 = | alternate_image6 = | alternate_name6 = | alternate_link6 = | alternate_image7 = | alternate_name7 = | alternate_link7 = <!-- General --> | category = | weight = | body_location = | condition = | fabric = fabric <!-- or | fabirc_type = --> | metal_value = <!-- currently hidden; function not yet implemented --> | function = function | capacity = | weight_reduction = | attachments_provided = <!-- Speed --> | run_speed = | combat_speed = <!-- Protection --> | scratch_defense = | bite_defense = | bullet_defense = | neck_protection = <!-- Insulation --> | insulation = insulation | wind_resistance = wind_resistance | water_resistance = water_resistance <!-- Technical details --> | ingredients = |item_id = }}
Parameters
Header
- display_name
- The display name of the item as it appears in-game. Leaving blank will display the pagename.
- name_colour
- The background colour for the display name. Codes can be found at Template:Infobox nc.
- name_text_colour
- The text colour for the display name. Codes can be found at Template:Infobox nc.
- image
- An image of the icon displayed at 128px by default. Item model is preferred.
- image_width
- Customise the
image
width. Default: 128px - alternate_image
- An alternate image displayed at 32px. Can be an empty, packaged, open or any other variant.
- alternate_name
- The name of the alternate item image. Leaving blank will display no name when the image is hovered over.
- alternate_link
- An optional link to the alternate image page. Leaving blank will have no link.
General
- category
- The in-game category the item is displayed in the inventory. Default: Clothing
- weight
- The base weight of the item.
- body_location
- Body location the item can be equipped. (remove if value is false)
- fabric
- Fabric type of the item. (remove if value is false)
- metal_value
- The amount of metal this item provides when used in metalworking/smithing. (currently hidden until feature is implemented) (remove if value is false)
- function
- What the item can be used for. Minor uses should be omitted. Combines the deprecated
primary_use
andsecondary_use
. The<br>
tag should be used instead to separate functions. (remove if value is empty) - primary_use
- The item's primary use. Can usually be removed if the item isn't considered a tool by the wiki. (remove if value is empty)
- secondary_use
- The item's secondary use if it has one. Can usually be removed if the item isn't considered a tool by the wiki. (remove if value is empty)
- condition
- Item's condition value. (remove if value is false)
- capacity
- 'Item's capacity value. (remove if value is false)
- weight_reduction
- Weight reduction value. (remove if value is empty)
- attachments_provided
- Attachment slots provided by the item. (remove if value is empty)
Speed
- run_speed
- Run speed modifier. Note this is currently bugged/unimplemented, and has no in-game function. (remove if value is false)
- combat_speed
- Combat speed modifier. (remove if value is false)
Protection
- scratch_defense
- Scratch defense modifier. (remove if value is false)
- bullet_defense
- Bullet defense modifier. (remove if value is false)
- neck_protection
- Neck protection modifier. (remove if value is false)
Insulation
- insulation
- Insulation modifier. (remove if value is false)
- wind_resistance
- Wind resistance modifier. (remove if value is false)
- water_resistance
- Water resistance modifier. (remove if value is false)
Technical details
- ingredients
- A list of ingredients required to make this item. Please use the following format:
1 × [[Plank]]
and separate ingredients into a list with<br>
. - class_name
- The item's ID. Should be:
[module].[name]
. E.g.Base.Suit_Jacket
Editors can experiment in this template's sandbox (create)