Template:Infobox trap: Difference between revisions
(Created page with "<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|{{{na...") |
m ({{Delete|Unused}}) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <noinclude>{{Deprecated|Infobox tile}}{{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}}}}} }}]] }} }} }} }} | ||
{{!}}} }} | {{!}}} }} | ||
Line 21: | Line 21: | ||
| datastyle = width:50%; | | datastyle = width:50%; | ||
| header1 = General | | header1 = {{Translation|General}} | ||
| label2 = Category | | label2 = {{Translation|Category}} | ||
| data2 = {{{category|Item}}} | | data2 = {{Translation|{{{category|Item}}}}} | ||
| label3 = | | label3 = {{Translation|Encumbrance}} [[File:Moodle_Icon_HeavyLoad.png|right|link=Moodles{{Subpage}}#{{Translation|Heavy Load}}|{{Translation|Heavy Load}}]] | ||
| data3 = {{{weight|}}} | | data3 = {{{weight|}}} | ||
| label4 = Strength | | label4 = {{Translation|Strength}} | ||
| data4 = {{{strength|}}} | | data4 = {{{strength|}}} | ||
| label6 = Catchable animals | | label6 = {{Translation|Catchable animals}} | ||
| data6 = {{{animals|}}} | | data6 = {{{animals|{{{animal|}}}}}} | ||
| label7 = Placement | | label7 = {{Translation|Placement}} | ||
| data7= {{{placement|}}} | | data7= {{{placement|}}} | ||
| header30 = Technical details | | header30 = {{Translation|Technical details}} | ||
| label31 = Ingredients | | label31 = {{Translation|Ingredients}} | ||
| data31 = {{{ingredients|}}} | | data31 = {{{ingredients|}}} | ||
| label32 = | | label32 = {{Translation|Item ID}} | ||
| data32 = {{#if:{{{no_style|true}}}|{{ID|{{{class_name|[[#Item IDs|Item IDs]]}}}}}|{{{class_name|[[#Item IDs|Item IDs]]}}}}} | | data32 = {{#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:02, 13 April 2024
This template is used to create an infobox in an article about empty water container, medical, drying, remote controller and other miscellaneous items.
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 | Item | |||||
Encumbrance | weight | |||||
Technical details | ||||||
Ingredients | ingredients | |||||
Base ID | Item IDs |
{{Infobox normal |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 = | weight = | strength = | animals = | placement = | ingredients = |item_id = }}
Parameters
- 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.
- 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.
- weight
- The base weight of the item.
- strength
- (remove if value is empty)
- animals
- The animals that can be caught by this trap (remove if value is false)
- placement
- Where this trap must be placed, i.e. water for fishing net trap (remove if value is empty)
- ingrdients
- 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 class name.
Editors can experiment in this template's sandbox (create)