Jump to content

Template:Infobox mousehat: Difference between revisions

From Stardew Valley Wiki
imported>Sizau
v1.6 update
imported>Margotbean
Undo revision 169853 by Sizau (talk) This change suppresses purchase price if there is a source listed
Line 24: Line 24:
   {{!}}-
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Purchase Price:
   {{!}}id="infoboxsection"{{!}}Purchase Price:
   {{!}}id="infoboxdetail"{{!}}{{#if:{{{price|}}}|{{{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|}}}
|}}
|}}
|-
|-

Revision as of 20:50, 5 May 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}}
|price       = {{Price|25000}}
}}
Sombrero
A festively decorated hat made from woven straw.
Information
Source: Abandoned House
Achievement: Legend
Achievement Description: Earn data-sort-value="10000000">10,000,000g
Purchase Price: data-sort-value="1000">1,000g
Purchase Price: data-sort-value="25000">25,000g
Sell Price: Cannot be sold

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox mousehat, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox mousehat - Stardew Valley Wiki }}

{{Infobox mousehat
|name        = Straw Hat
|image       = Straw Hat.png
|description = {{Description|Straw Hat}}
|source      = Egg Festival
|price       = {{Price|1000}}
}}
Straw Hat
Light and cool, it's a farmer's delight.
Information
Source: Egg Festival
Purchase Price: data-sort-value="1000">1,000g
Sell Price: Cannot be sold

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox mousehat, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox mousehat - Stardew Valley Wiki }}

{{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
A warm hat with a pretty tight fit.
Information
Source: Tailoring
Recipe
(Cloth + ):
Acorn (1) or
Maple Seed (1) or Pine Cone (1)
Sell Price: Cannot be sold

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox mousehat, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox mousehat - Stardew Valley Wiki }}