Difference between revisions of "Template:Infobox tool"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Text replacement - "colspan=2" to "colspan="2"")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly><div id="infoboxborder">
 
<includeonly><div id="infoboxborder">
 
{| id="infoboxtable"
 
{| id="infoboxtable"
|colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}}
+
|colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
|colspan=2|{{#if:{{{image}}}|[[File:{{{image|}}}|center|link=]]|}}
+
|colspan="2" style="padding-bottom: 5px; text-align: center;"|{{#if:{{{image}}}|[[File:{{{image|}}}]]|}}{{#if:{{{image2|}}}|&nbsp;&nbsp;[[File:{{{image2|}}}]]}}
 
|-
 
|-
|id="infoboxsection"|Previous Tier:
+
|colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
|id="infoboxdetail"|{{#if:{{{previoustier|}}}|{{{previoustier|N/A}}}|N/A}}
 
 
|-
 
|-
|id="infoboxsection"|Next Tier:
+
|colspan="2" id="infoboxsection" style="text-align: center;"|Information<!--
|id="infoboxdetail"|{{#if:{{{nexttier|}}}|{{{nexttier|N/A}}}|N/A}}
+
-->{{#if:{{{previoustier|}}}|<nowiki />
|-{{#if:{{{source|}}}|<nowiki/>
+
{{!}}-
  {{!}}-
+
{{!}}id="infoboxsection"{{!}}Previous Tier:
  {{!}}id="infoboxsection"{{!}}Source:
+
{{!}}id="infoboxdetail"{{!}}{{{previoustier|N/A}}} |}}<!--
  {{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}}
+
-->{{#if:{{{nexttier|}}}|<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Next Tier:
 +
{{!}}id="infoboxdetail"{{!}}{{{nexttier|N/A}}} |}}
 
|-
 
|-
 
|id="infoboxsection"|Cost:
 
|id="infoboxsection"|Cost:
 
|id="infoboxdetail"|{{#if:{{{cost|}}}|{{{cost|N/A}}}|N/A}}
 
|id="infoboxdetail"|{{#if:{{{cost|}}}|{{{cost|N/A}}}|N/A}}
 +
{{#if:{{{improvements|}}} |<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Improvements:
 +
{{!}}id="infoboxdetail"{{!}}{{{improvements|}}}
 +
|}}<!--
 +
-->{{#if:{{{skillreq|}}} |<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Unlocked at:
 +
{{!}}id="infoboxdetail"{{!}}{{{skillreq|}}}
 +
|}}<!--
 +
-->{{#if:{{{soldby|}}}|<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Sold by:
 +
{{!}}id="infoboxdetail"{{!}}{{{soldby|}}}
 +
|}}
 
|-
 
|-
|id="infoboxsection"|Ingredients
 
|id="infoboxdetail"|{{#if:{{{ingredients|}}}|{{{ingredients|N/A}}}|N/A}}
 
|-
 
|colspan=2 id="infoboxfooter"|
 
 
|}
 
|}
</div>{{#if:{{{debug mode|}}}||[[Category:Tools]]}}{{InfoboxSEO}}{{#seo:
+
</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
 
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Latest revision as of 18:57, 23 October 2021

Description

This template is used to provide a template that displays an infobox for tools.

Use

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Infobox tool
|name         = 
|image        = 
|image2       =
|description  =
|previoustier = 
|nexttier     = 
|cost         = 
|improvements =
|skillreq     =
|soldby       =
}}

Parameters

{{Infobox tool
|name         = 
|image        = 
|image2       =
|description  = (optional -- populated by Template:Description if omitted)
|previoustier = Link to previous tier of tool (optional)
|nexttier     = Link to next tier of tool (optional)
|cost         = Cost in gold
|improvements = Improvements over the previous tier of tool (optional)
|skillreq     = Skill level required to unlock item (optional)
|soldby       = Link to merchant who sells the tool (optional)
}}
Hay Hopper
Hay Hopper.png  Hay Hopper Full.png
Provides convenient access to silo fodder.
Information
Cost: N/A
Fiberglass Rod
Fiberglass Rod.png
Use in the water to catch fish.
Information
Previous Tier: Bamboo Pole
Next Tier: Iridium Rod
Cost: data-sort-value="1800">Gold.png1,800g

Improvements: Ability to use bait
Unlocked at: Fishing Skill Icon.png Fishing Level 6
Sold by: Fish Shop