Difference between revisions of "Template:Infobox/doc"
Jump to navigation
Jump to search
(created documentation page for template) |
|||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
− | |name= | + | |name= Infobox |
|image=Corn.png | |image=Corn.png | ||
− | |description= | + | |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. | ||
− | == | + | ==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 | + | ===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. | ||
− | + | ===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> | ||
− | == | + | ==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 |
|
||||||||
Crafting | |||||||||
Equipment | Preserves Jar | ||||||||
Ingredients | Fish (13) Tomato Seeds (13) |
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 |
|
||||||||
Crafting | |||||||||
Equipment | Preserves Jar | ||||||||
Ingredients | Fish (13) Tomato Seeds (13) |