Difference between revisions of "Template:Infobox/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|name= Corn
+
|name           =
|image=Corn.png
+
|image           =
|description= Description text will appear here
+
|image2          =  
|source=Farming
+
|description     =  
|season=Spring
+
|source         =  
|craftingstation={{name|Preserves Jar}}
+
|season         =  
|ingredients={{name|Fish|13}}{{name|Tomato Seeds|13}}
+
|craftingstation =  
|sellprice=14
+
|ingredients     =  
|sellpricesilver=32
+
|sellprice       =  
|sellpricegold=44
+
|sellpricesilver =  
 +
|sellpricegold   =  
 
}}
 
}}
  
 
==Description==
 
==Description==
This template is for items and their details.  This includes [[fish]], [[weapons]], [[tools]], [[crops]], [[artifacts]] and other items.
+
This template is designed to display [[:Category:Items|items]] and their details, such as [[crops]], [[fish]], [[tools]], [[weapons]], [[artifacts]], etc.
  
 
==Usage==
 
==Usage==
 
===Placement===
 
===Placement===
Place at the top of an article page, it will automatically align right. Any alert templates like <nowiki>{{stub}}</nowiki> or <nowiki>{{construction}}</nowiki> should be placed directly after this template.
+
This template should be placed at the top of an article page (it will automatically align right). Any alert templates like <nowiki>{{stub}}</nowiki> or <nowiki>{{construction}}</nowiki> should be placed above this template.
  
 
===Additional Information===
 
===Additional Information===
There's no need to make things links within the template. Source and season will automatically scan for associate articles and make links if they exist.
+
This template will automatically populate links from plain text. Source and season will automatically scan for associate articles and make links if they exist.
  
This template will detail crafting requirements by nesting ingredients in the [[Template:Name|Name]] template as well as the crafting station. Items inside the name template, it will automatically attach a picture (with the same name) and link if there's an article available.  
+
Crafting requirements are detailed by nesting ingredients in the [[Template:Name|Name]] template, as well as the crafting station. This template will automatically attach a picture, along with the link to the item's page.  
  
 
===Syntax===
 
===Syntax===
 
<pre>
 
<pre>
 
{{Infobox
 
{{Infobox
|name= Name of Item
+
|name           = Name of Item
|image= file-name.png
+
|image           = file_name.png
|description= In-game description of the item
+
|description     = Ingame description of the item
|source= Farming / Quest / Shop
+
|source         = Farming / Quest / Shop
|season=Spring / Winter / Fall / Summer
+
|season         = Spring / Winter / Fall / Summer
|craftingstation= {{name|Preserves Jar}} <- use the name template, then list the station name
+
|craftingstation = {{name|Preserves Jar}} <- use the name template, then list the station name
|ingredients= {{name|Fish|13}}{{name|item|#}} <- use the name template, then list the item and # of ingredient needed
+
|ingredients     = {{name|Fish|13}}{{name|item|#}} <- use the name template, then list the item and # of ingredient needed
|sellprice=14
+
|sellprice       = 14
|sellpricesilver=32
+
|sellpricesilver = 32
|sellpricegold=44
+
|sellpricegold   = 44
 
}}
 
}}
 
</pre>
 
</pre>
Line 43: Line 44:
 
<pre>
 
<pre>
 
{{Infobox
 
{{Infobox
|name=Corn
+
|name           = Corn
|image=Corn.png
+
|image           = Corn.png
|description=Plant these in the spring. Takes 10 days to mature, but keeps producing after that. Yields multiple beans per harvest. Grows on a trellis.
+
|description     = Plant these in the spring. Takes 10 days to mature, but keeps producing after that. Yields multiple beans per harvest. Grows on a trellis.
|source=Farming
+
|source         = Farming
|season=Spring
+
|season         = Spring
|craftingstation={{name|Preserves Jar}}
+
|craftingstation = {{name|Preserves Jar}}
|ingredients={{name|Fish|13}}{{name|Tomato Seeds|13}}
+
|ingredients     = {{name|Fish|13}}{{name|Tomato Seeds|13}}
|sellprice=14
+
|sellprice       = 14
|sellpricesilver=32
+
|sellpricesilver = 32
|sellpricegold=44
+
|sellpricegold   = 44
 
}}
 
}}
 
</pre>  
 
</pre>  
Line 59: Line 60:
  
 
{{Infobox
 
{{Infobox
|name=Corn
+
|name           = Corn
|image=Corn.png
+
|image           = Corn.png
|description=Plant these in the spring. Takes 10 days to mature, but keeps producing after that. Yields multiple beans per harvest. Grows on a trellis.
+
|description     = Plant these in the spring. Takes 10 days to mature, but keeps producing after that. Yields multiple beans per harvest. Grows on a trellis.
|source=Farming
+
|source         = Farming
|season=Spring
+
|season         = Spring
|craftingstation={{name|Preserves Jar}}
+
|craftingstation = {{name|Preserves Jar}}
|ingredients={{name|Fish|13}}{{name|Tomato Seeds|13}}
+
|ingredients     = {{name|Fish|13}}{{name|Tomato Seeds|13}}
|sellprice=14
+
|sellprice       = 14
|sellpricesilver=32
+
|sellpricesilver = 32
|sellpricegold=44
+
|sellpricegold   = 44
 
}}
 
}}
 
{{Clear}}
 
{{Clear}}
Line 77: Line 78:
 
{{Infobox
 
{{Infobox
 
|name= Egg  
 
|name= Egg  
|image=Brown_Egg.png
+
|image           = Brown_Egg.png
|image2 = Egg.png
+
|image2         = Egg.png
|description= Description text will appear here
+
|description     = Description text will appear here
|source=Farming
+
|source         = Farming
|season=Spring
+
|season         = Spring
|craftingstation={{name|Preserves Jar}}
+
|craftingstation = {{name|Preserves Jar}}
|ingredients={{name|Fish|13}}{{name|Tomato Seeds|13}}
+
|ingredients     = {{name|Fish|13}}{{name|Tomato Seeds|13}}
|sellprice=14
+
|sellprice       = 14
|sellpricesilver=32
+
|sellpricesilver = 32
|sellpricegold=44
+
|sellpricegold   = 44
 
}}</pre>
 
}}</pre>
 +
 
Which results in...
 
Which results in...
 
{{Infobox
 
{{Infobox
 
|name= Egg  
 
|name= Egg  
|image=Brown_Egg.png
+
|image           = Brown_Egg.png
|image2 = Egg.png
+
|image2         = Egg.png
|description= Description text will appear here
+
|description     = Description text will appear here
|source=Farming
+
|source         = Farming
|season=Spring
+
|season         = Spring
|craftingstation={{name|Preserves Jar}}
+
|craftingstation = {{name|Preserves Jar}}
|ingredients={{name|Fish|13}}{{name|Tomato Seeds|13}}
+
|ingredients     = {{name|Fish|13}}{{name|Tomato Seeds|13}}
|sellprice=14
+
|sellprice       = 14
|sellpricesilver=32
+
|sellpricesilver = 32
|sellpricegold=44
+
|sellpricegold   = 44
}}[[Category:Infobox templates]]<noinclude>[[Category:Template documentation|{{PAGENAME}}]] </noinclude>
+
}}[[Category:Infobox templates]]<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 08:09, 23 March 2016

Blank icon.png
Information

Description

This template is designed to display items and their details, such as crops, fish, tools, weapons, artifacts, etc.

Usage

Placement

This template should be placed at the top of an article page (it will automatically align right). Any alert templates like {{stub}} or {{construction}} should be placed above this template.

Additional Information

This template will automatically populate links from plain text. Source and season will automatically scan for associate articles and make links if they exist.

Crafting requirements are detailed by nesting ingredients in the Name template, as well as the crafting station. This template will automatically attach a picture, along with the link to the item's page.

Syntax

{{Infobox
|name            = Name of Item
|image           = file_name.png
|description     = Ingame description of the item
|source          = Farming / Quest / Shop
|season          = Spring / Winter / Fall / Summer
|craftingstation = {{name|Preserves Jar}} <- use the name template, then list the station name
|ingredients     = {{name|Fish|13}}{{name|item|#}} <- use the name template, then list the item and # of ingredient needed
|sellprice       = 14
|sellpricesilver = 32
|sellpricegold   = 44
}}

Samples

{{Infobox
|name            = Corn
|image           = Corn.png
|description     = Plant these in the spring. Takes 10 days to mature, but keeps producing after that. Yields multiple beans per harvest. Grows on a trellis.
|source          = Farming
|season          = Spring
|craftingstation = {{name|Preserves Jar}}
|ingredients     = {{name|Fish|13}}{{name|Tomato Seeds|13}}
|sellprice       = 14
|sellpricesilver = 32
|sellpricegold   = 44
}}

results in...

Corn
Blank icon.png
Plant these in the spring. Takes 10 days to mature, but keeps producing after that. Yields multiple beans per harvest. Grows on a trellis.
Information
Source Farming
Season Spring.png Spring
Sell Price
Blank icon.png
14g
Blank icon.png
Silver Quality Icon.png
17g
Blank icon.png
Gold Quality Icon.png
21g
Blank icon.png
Iridium Quality Icon.png
28g
Crafting
Equipment Preserves Jar.png Preserves Jar
Ingredients Fish.png Fish (13)Tomato Seeds.png Tomato Seeds (13)

Two Images

In rare cases an item may have the same name and pricing but appear different (Eggs and Brown Eggs, for instance). You can use two images in the infobox

{{Infobox
|name= Egg 
|image           = Brown_Egg.png
|image2          = Egg.png
|description     = Description text will appear here
|source          = Farming
|season          = Spring
|craftingstation = {{name|Preserves Jar}}
|ingredients     = {{name|Fish|13}}{{name|Tomato Seeds|13}}
|sellprice       = 14
|sellpricesilver = 32
|sellpricegold   = 44
}}

Which results in...

Egg
Blank icon.png File:Egg.png.png
Description text will appear here
Information
Source Farming
Season Spring.png Spring
Sell Price
Blank icon.png
14g
Blank icon.png
Silver Quality Icon.png
17g
Blank icon.png
Gold Quality Icon.png
21g
Blank icon.png
Iridium Quality Icon.png
28g
Crafting
Equipment Preserves Jar.png Preserves Jar
Ingredients Fish.png Fish (13)Tomato Seeds.png Tomato Seeds (13)