Difference between revisions of "Template:Infobox mousehat"

From Stardew Valley Wiki
Jump to navigation Jump to search
(fix price option)
(Undo revision 156094 by Spaceeinstein (talk) This is an excellent change that needs to be carried out in all 12 languages)
Tag: Undo
 
Line 24: Line 24:
 
   {{!}}-
 
   {{!}}-
 
   {{!}}id="infoboxsection"{{!}}Purchase Price:
 
   {{!}}id="infoboxsection"{{!}}Purchase Price:
   {{!}}id="infoboxdetail"{{!}}{{price|{{#if:{{{price|}}}|{{{price|}}}|1000}}}}
+
   {{!}}id="infoboxdetail"{{!}}{{price|1000}}
 
}}
 
}}
 
|-
 
|-
Line 37: Line 37:
 
   {{!}}id="infoboxsection"{{!}}Requirement:
 
   {{!}}id="infoboxsection"{{!}}Requirement:
 
   {{!}}id="infoboxdetail"{{!}}{{{requires|}}}
 
   {{!}}id="infoboxdetail"{{!}}{{{requires|}}}
 +
|}}
 +
|-
 +
{{#if:{{{price|}}}|
 +
  {{!}}-
 +
  {{!}}id="infoboxsection"{{!}}Purchase Price:
 +
  {{!}}id="infoboxdetail"{{!}}{{{price|}}}
 
|}}
 
|}}
 
|-
 
|-

Latest revision as of 17:33, 23 March 2024

Description

This template displays an infobox for hats.

By default it populates info for hats available at the Abandoned House (a.k.a. the Hat Mouse). Using optional parameters the infobox can account for other sources such as Festival rewards and Tailoring.

Use and Parameters

Do not use this on your user page. It is reserved for content pages.

Enter the following onto a relevant page:

{{Infobox mousehat
|name        = hat name
|image       = hat name.png
|description = hat description (optional)
|achievement = name of the achievement that unlocks the hat
|ad          = achievement description
|source      = hat source (if not awarded by an achievement) (optional)
|ingredients = crafting ingredients, if the hat is produced using tailoring (optional)
|requires    = Requirement or condition (optional)
|price       = purchase price (optional)
|sell        = sell price (optional - defaults to 'Cannot be Sold')
}}

Examples

{{Infobox mousehat
|name        = Sombrero
|image       = Sombrero.png
|description = {{Description|Sombrero}}
|achievement = Legend
|ad          = Earn {{price|10000000}}
}}
Sombrero
Sombrero.png
A festively decorated hat made from woven straw.
Information
Source: Abandoned House
Achievement: Legend
Achievement Description: Earn data-sort-value="10000000">Gold.png10,000,000g
Purchase Price: data-sort-value="1000">Gold.png1,000g
Sell Price: Cannot be sold
{{Infobox mousehat
|name        = Straw Hat
|image       = Straw Hat.png
|description = {{Description|Straw Hat}}
|source      = Egg Festival
}}
Straw Hat
Straw Hat.png
Light and cool, it's a farmer's delight.
Information
Source: Egg Festival
Sell Price: Cannot be sold
{{Infobox mousehat
|name        = Beanie
|image       = Beanie.png
|description = {{Description|Beanie}}
|source      = Tailoring
|ingredients = {{name|Acorn|1}} or {{name|Maple Seed|1}} or {{name|Pine Cone|1}}
}}
Beanie
Beanie.png
A warm hat with a pretty tight fit.
Information
Source: Tailoring
Recipe
(Cloth + ):
Acorn.png Acorn (1) or
Maple Seed.png Maple Seed (1) or Pine Cone.png Pine Cone (1)
Sell Price: Cannot be sold