Jump to content

Template:Infobox tool: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
add improvements parameter for fishing rods
imported>Margotbean
don't show ingredients if none are listed
Line 15: Line 15:
|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:{{{ingredients|}}} |<nowiki />
|id="infoboxsection"|Ingredients
{{!}}-
|id="infoboxdetail"|{{#if:{{{ingredients|}}}|{{{ingredients|N/A}}}|N/A}}
{{!}}id="infoboxsection"{{!}}Ingredients:
{{#if:{{{improvements|}}} |
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}  
|}}<!--
-->{{#if:{{{improvements|}}} |<nowiki />
{{!}}-
{{!}}-
{{!}}id="infoboxsection"{{!}}Improvements:
{{!}}id="infoboxsection"{{!}}Improvements:

Revision as of 22:04, 6 May 2017

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
Information
Previous Tier: N/A
Next Tier: N/A
Cost: N/A

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox tool, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox tool - Stardew Valley Wiki }}{{#seo: |og:image=https://stardew.fastobject.net/images/2/24/Hay_Hopper.png }}

Fiberglass Rod
Information
Previous Tier: Bamboo Pole
Next Tier: Iridium Rod
Cost: data-sort-value="1800">1,800g

Improvements: Ability to use bait

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox tool, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox tool - Stardew Valley Wiki }}{{#seo: |og:image=https://stardew.fastobject.net/images/5/5e/Fiberglass_Rod.png }}