Jump to content

Template:Infobox/doc: Difference between revisions

From Stardew Valley Wiki
imported>Mndarrr
created documentation page for template
 
imported>Mndarrr
No edit summary
Line 1: Line 1:
{{Infobox
{{Infobox
|name=Corn
|name= Infobox
|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= Description text will appear here
|source=Farming
|source=Farming
|season=Spring
|season=Spring
Line 11: Line 11:
|sellpricegold=44
|sellpricegold=44
}}
}}
==Description==
This template is for items and their details.  This includes [[fish]], [[weapons]], [[tools]], [[crops]], [[artifacts]] and other items.
This template is for items and their details.  This includes [[fish]], [[weapons]], [[tools]], [[crops]], [[artifacts]] and other items.


== Use ==
==Usage==
===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.
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.


There's no need to make things links withink the template, source and season will automatically scan for associate articles and make links if they exist.
===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 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.  
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.  


This template is incomplete, and still needs some final construction.
===Syntax===
<pre>
{{Infobox
|name= Name of Item
|image= file-name.png
|description= In-game 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
}}
</pre>


== Example ==
==Samples==
<pre>
<pre>
{{Infobox
{{Infobox
Line 37: Line 55:
}}
}}
</pre>  
</pre>  
[[Category:Infobox templates]]
 
results in...
 
{{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
}}
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]] [[Category:Infobox templates]]</noinclude>

Revision as of 00:51, 1 March 2016

Infobox
Description text will appear here
Information
Source Farming
Season  Spring
Sell Price
14g
17g
21g
28g
Crafting
Equipment Preserves Jar
Ingredients Fish (13) Tomato Seeds (13)

{{#seo:

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

Description

This template is for items and their details. This includes fish, weapons, tools, crops, artifacts and other items.

Usage

Placement

Place at the top of an article page, it will automatically align right. Any alert templates like {{stub}} or {{construction}} should be placed directly after this template.

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 detail crafting requirements by nesting ingredients in the 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.

Syntax

{{Infobox
|name= Name of Item
|image= file-name.png
|description= In-game 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
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
Sell Price
14g
17g
21g
28g
Crafting
Equipment Preserves Jar
Ingredients Fish (13) Tomato Seeds (13)

{{#seo:

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