Template:Item Infobox: Difference between revisions

From Valheim Wiki
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__<!--
<includeonly><!--
-->{{#vardefine:__name|{{#if:{{{name|}}}|{{{name}}}|{{#replace:{{BASEPAGENAME}}| (Item)|}}}}}}<!--
-->{{#vardefine:__name|{{#if:{{{name|}}}|{{{name}}}|{{#replace:{{BASEPAGENAME}}| (Item)|}}}}}}<!--
-->{{#vardefine:__image|{{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}<!--
-->{{#if:{{{dlc|}}}|
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|:|}}}}<!--
{{DLC Infobox|{{{dlc}}}}}
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|*|}}}}<!--
}}
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|%|}}}}
{| id="scraper-infobox" class="wikitable infobox-table" style="padding-left: 20px; min-width: 280px; max-width: 350px; float: right; margin: 0; margin-left: 14px;"
{| id="scraper-infobox" class="wikitable" style="padding-left: 20px; min-width: 280px; max-width: 400px; float: right; margin: 0;"
|-
|-
| id="scraper-item-name" class="tableheader" colspan="2"| {{#var:__name}}
| id="scraper-item-name" class="tableheader" colspan="2"| {{#var:__name}}
|-
|-
| colspan="2"|
{{Item Infobox/image
{{#if:{{{pic2|}}}|{{#tag:tabber|
| name  = {{{name|}}}
{{PAGENAME}}=
| pic2  = {{{pic2|}}}
<div style="float: center;">
| height = {{{height|}}}
<div class="infoboxhover" title="{{{t1|}}}" style="text-align: center;">
}}
<center>[[File:{{#var:__image}}.png]]</center>
|-
</div>
{{#if:{{{internalid|}}}|{{Item Infobox/internalid|{{{internalid}}}}}}}
</div>
|-
{{!}}-{{!}}
{{#if:{{{type|}}}|{{Item Infobox/type|{{{type}}}}}}}
{{BASEPAGENAME}} {{{pic2}}}=
<div style="float: center;">
<div class="infoboxhover" style="text-align: center;">
<center>[[File:{{#var:__image}} {{{pic2}}}.png]]
</center>
</div>
</div>
}}|
<div style="float: center;">
<div id="scraper-item-image" class="infoboxhover" style="text-align: center;">
<center>[[File:{{#var:__image}}.png{{#if:{{{height|}}}|{{!}}{{{height}}}}}]]</center>
</div>
</div>}}{{#ifexist: File:{{#var:__image}}.png||[[Category:Missing Item image]]}}
|-
|-
{{#if:{{{type|}}}|
{{#if:{{{location|}}}|{{Item Infobox/location|{{{location}}}}}}}
{{!}}'''Type:'''{{!}}{{!}}{{{type}}}<includeonly>[[Category:Items/{{{type}}}]]{{#invoke:item|category}}</includeonly>
|-
}}
{{#if:{{{weight|}}}|{{Item Infobox/weight|{{{weight}}}}}}}
|-
{{#if:{{{armor|}}}|{{Item Infobox/armor|{{{armor}}}}}}}
|-
|-
{{#if:{{{location|}}}|
{{#if:{{{tooltip|}}}|{{Item Infobox/tooltip|{{{tooltip}}}}}}}
{{!}}'''Location(s):'''{{!}}{{!}}{{{location}}}
}}
|-
|-
{{#if:{{{weight|}}}|
{{#if:{{{stack|}}}|{{Item Infobox/stack|{{{stack}}}}}}}
{{!}}'''Weight:'''{{!}}{{!}}{{{weight}}}
}}
|-
|-
{{#if:{{{tooltip|}}}|
{{#if:{{{dlc|}}}|{{Item Infobox/dlc|{{{dlc}}}}}
{{!}}'''Tooltip:'''{{!}}{{!}}''{{{tooltip}}}''
}}
}}
|-
|}</includeonly><noinclude>
{{#if:{{{stack|}}}|
{{Item Infobox
{{!}}'''Max stack:'''{{!}}{{!}}{{{stack}}}
| type    = Ore
| location = Mud
| tooltip  = Cool ore description
| armor    = 32 / 34 /36 / 38
| weight  = 27.5
| stack   = 33
| dlc      = Beta
}}
}}
|}
</noinclude><noinclude>
<noinclude>
<pre>
<pre>
{{Item Infobox
{{Item Infobox
  |location=Ocean
| type    = Ore
  |type=Crafting Station / Resource
  | location = Mud
  | tooltip  = Cool ore description
| armor    = 32 / 34 /36 / 38
| weight  = 27.5
| stack    = 33
| dlc      = Beta
}}
}}
</pre>
</pre>
Line 63: Line 56:
[[Category:Items]]<!--
[[Category:Items]]<!--
--></includeonly><!--
--></includeonly><!--
--><noinclude>This Template has Auto Category: [[:Category:Items|Category:Items]] linked into it. If the <code>|type</code> argument is provided to this template, it'll also have Category:Items/'''type''' auto linked into it.</noinclude>
--><noinclude>This Template has Auto Category: [[:Category:Items|Category:Items]] linked into it. If the <code>|type</code> argument is provided to this template, it'll also have Category:'''Types''' in its plural form auto linked into it.</noinclude>
__NOTOC__

Latest revision as of 12:52, 7 January 2024

DLC
This article is for a downloadable content item or feature. It may be purchaseable, or may no longer be available.
Item Infobox
Type Ore
Location(s) Mud
Weight 27.5
Armor 32 / 34 /36 / 38
Tooltip Cool ore description
Max stack 33
DLC Beta


{{Item Infobox
 | type     = Ore
 | location = Mud
 | tooltip  = Cool ore description
 | armor    = 32 / 34 /36 / 38
 | weight   = 27.5
 | stack    = 33
 | dlc      = Beta
}}

This Template has Auto Category: Category:Items linked into it. If the |type argument is provided to this template, it'll also have Category:Types in its plural form auto linked into it.