Line 1: |
Line 1: |
− | {{Infobox
| |
− | |name =
| |
− | |image =
| |
− | |description =
| |
− | |source =
| |
− | |season =
| |
− | |craftingstation =
| |
− | |ingredients =
| |
− | |sellprice =
| |
− | }}
| |
− |
| |
| ==Description== | | ==Description== |
− | This template is designed to display [[:Category:Items|items]] and their details, such as [[crops]], [[fish]], [[tools]], [[weapons]], [[artifacts]], etc. | + | This template displays a generic infobox for a wide variety of items. '''Do not use this on your user page. It is reserved for content pages.''' |
− | | |
− | ==Usage==
| |
− | ===Placement===
| |
− | This template should be placed at the top of an article page (it will automatically align right). Alert templates, such as <nowiki>{{stub}}</nowiki> or <nowiki>{{construction}}</nowiki>, can be placed above this template.
| |
− | | |
− | ===Additional Information===
| |
− | The ''image2 - image4'' parameters can be used to display more than one image file, in certain cases. For example,[[File:Egg.png|32px]][[File:Brown_Egg.png|32px]] ([[Egg]] and [[Brown Egg]]).
| |
− |
| |
− | 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 [[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.
| |
− | | |
− | Quality allows for true or false, as well as a list of qualities to show. This ensures that items that never have a certain quality will never show the value for that. An alternative way to handle this would be introducing <nowiki>{{{silver}}}</nowiki> and <nowiki>{{{gold}}}</nowiki> parameters.
| |
− | | |
− | ===Syntax===
| |
− | <pre>
| |
− | {{Infobox
| |
− | |name = Name of Item (Page name if omitted)
| |
− | |image = file_name.png (Page name.png if omitted)
| |
− | |description = Ingame description of the item
| |
− | |location = [[foraging location]]
| |
− | |source = Farming / Quest / Shop
| |
− | |seed = [[seed name]]
| |
− | |season = Spring / Winter / Fall / Summer
| |
− | |growth = 4 days
| |
− | |buff = buff effects
| |
− | |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
| |
− | |edibility = 20
| |
− | |sellprice = 14
| |
− | |type = fruit / vegetable
| |
− | |iridium = true <- add iridium quality stars rating
| |
− | |quality = true / false / list of qualities to show
| |
− | |profession = Rancher / Tiller / Artisan / Blacksmith / Gemologist / Forester / Tapper / Fisher / Angler
| |
− | |modifier = Manual profession modifier
| |
− | }}
| |
− | </pre>
| |
− | | |
− | ==Samples==
| |
− | <pre>
| |
− | {{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}}
| |
− | |edibility = 10
| |
− | |type = vegetable
| |
− | |sellprice = 14
| |
− | |iridium = true
| |
− | |profession = Rancher,Fisher
| |
− | }}
| |
− | </pre>
| |
− | | |
− | 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}}
| |
− | |edibility = 10
| |
− | |type = vegetable
| |
− | |sellprice = 14
| |
− | |iridium = true
| |
− | |profession = Rancher,Fisher
| |
− | }}
| |
− | | |
− | <pre style="clear:both;">
| |
− | {{Infobox
| |
− | |name = Corn
| |
− | |location = [[Pelican Town]]
| |
− | |image = broken_image.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.
| |
− | |seed = [[Radish seeds]]
| |
− | |season = Spring
| |
− | |growth = 6 days
| |
− | |buff = {{name|Foraging|+2}}{{name|Defense|+2}}{{Duration|7m41s}}
| |
− | |craftingstation = {{name|Preserves Jar}}
| |
− | |ingredients = Acorn{{!}}1,Maple Seed{{!}}1,Pine Cone{{!}}1
| |
− | |edibility = 10
| |
− | |sellprice = 14
| |
− | |iridium = true
| |
− | |profession = Fake profession
| |
− | |modifier = 0.75
| |
− | |quality = false
| |
− | }}
| |
− | </pre>
| |
| | | |
− | Results in...
| + | ==Parameters== |
− | {{Infobox
| + | All parameters are optional. If omitted, nothing will display. |
− | |name = Corn | + | {|class="wikitable sortable" |
− | |location = [[Pelican Town]] | + | |- |
− | |image = broken_image.png | + | !Parameter!!Notes |
− | |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. | + | |- |
− | |seed = [[Radish seeds]] | + | |eng||Name of the image to display, in English, without the ".png" extension.<br />If the image has an extension other than ".png", then the "ext" parameter must be used. |
− | |season = Spring | + | |- |
− | |growth = 6 days | + | |ext||Extension of image specified in "eng" parameter, without the period (''e.g.,'' "gif", "jpg", etc.) |
− | |buff = {{name|Foraging|+2}}{{name|Defense|+2}}{{Duration|7m41s}} | + | |- |
− | |craftingstation = {{name|Preserves Jar}} | + | |name||Name of item (Page name if omitted)<br />For use on pages like [[Trash (item)]] where the name of the item is different from the page name. |
− | |ingredients = Acorn{{!}}1,Maple Seed{{!}}1,Pine Cone{{!}}1 | + | |- |
− | |edibility = 10 | + | |image2<br />image3<br />image4<br />image5||Name of additional images to display<br />Must be of type ".png"<br />Omit the extension (''e.g.,'' Tiger Slime Egg) |
− | |sellprice = 14 | + | |- |
− | |profession = Fake profession | + | |image2spacing||Set to "true" to add extra space between the images specified in "eng" and "image2" |
− | |modifier = 0.75 | + | |- |
− | |quality = false | + | |description||In-game item description<br />(Populated by [[:Template:Description]] if omitted). It is preferable to omit this parameter and update Template:Description instead. |
− | }}[[Category:Infobox templates]]<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | + | |- |
| + | |source||How to obtain the item (''e.g.,'' <nowiki>[[Crafting]], [[Artisan Goods]], [[Slime Egg-Press]]</nowiki>) |
| + | |- |
| + | |location||Location(s) of item (''e.g.,'' <nowiki>[[Cindersap Forest]], [[The Beach]], Bushes throughout the valley, etc.</nowiki>) |
| + | |- |
| + | |seed||Name of seed (''e.g.,'' <nowiki>{{Name|Corn Seeds}}</nowiki>) |
| + | |- |
| + | |growth||Number of days the crop takes to grow to maturity (''e.g.,'' 4 days) |
| + | |- |
| + | |buff||Name of buff(s) given by the item (''e.g.,'' <nowiki>{{Name|Farming|+4}}</nowiki>) |
| + | |- |
| + | |buffduration||Length of time buff(s) are active |
| + | |- |
| + | |season||Name of season when the item can be obtained or grown<br />Can be plain text (''e.g.,'' Spring, Summer, All, etc.) or can use [[:Template:Season]] (''e.g.,'' <nowiki>{{Season|Summer}} • {{Season|Winter}}</nowiki>) |
| + | |- |
| + | |weather||Weather required to obtain the item<br />Can use plain text (''e.g.,'' Rain) and this template will automatically apply [[:Template:Weather inline]] formatting |
| + | |- |
| + | |xp||Experience points gained for harvesting or otherwise obtaining the item |
| + | |- |
| + | |edibility||Found in <samp>Data\ObjectInformation.xnb</samp><br />Note that inedible items have an edibility of -300, and poisonous items have a negative edibility greater than -300 |
| + | |- |
| + | |sellprice||Found in <samp>Data\ObjectInformation.xnb</samp><br />If the item cannot be sold, then "N/A" and "Cannot be sold" are valid values |
| + | |- |
| + | |quality||Set to "false" to suppress silver, gold, and iridium qualities |
| + | |- |
| + | |recipe||How to obtain the recipe to craft the item (''e.g.,'' <nowiki>[[Farming]] Level 7</nowiki>) |
| + | |- |
| + | |craftingstation||Equipment used to craft the item (''e.g.,'' <nowiki>{{Name|Preserves Jar}}</nowiki>) |
| + | |- |
| + | |crafttime||How long does the item process in its equipment (''e.g.,'' 4 hours) |
| + | |- |
| + | |ingredients||Ingredients needed to craft the item (''e.g.,'' <nowiki>{{Name|Copper Bar|2}}{{Name|Sap|10}}</nowiki>) |
| + | |- |
| + | |tingredients||Ingredients with the [[Skills#Fishing|Trapper profession]]<br />''Used on the [[Crab Pot]] page'' |
| + | |- |
| + | |produces||Item produced via crafting, artisan goods, or harvesting (''e.g.,'' 5 Deluxe Fertilizer per craft) |
| + | |- |
| + | |}<includeonly>[[Category:Infobox templates]]{{Addlanglinks}}</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |