Line 1: |
Line 1: |
| ==Description== | | ==Description== |
− | This template is used to place the picture of a named item next to the name, resizes the image to 32px wide, makes the item name a link if there's an available article of the same name, and lastly places the third parameter in parenthesis to signify quantity, relationship or any other secondary detail. To refer to [[Villagers|villagers and NPCs]], use [[Template:NPC]]. | + | This template is used to place the picture of a named item next to the name, resizes the image to 24px wide, makes the item name a link if there's an available article of the same name, and lastly places the third parameter in parenthesis to signify quantity, relationship or any other secondary detail. To refer to [[Villagers|villagers and NPCs]], use [[Template:NPC]]. |
| | | |
− | ==Usage== | + | Image size can be adjusted by adding the parameter "size". |
| + | |
| + | ==Use== |
| This template can be used by entering the following onto a relevant page. | | This template can be used by entering the following onto a relevant page. |
| | | |
− | <pre>{{name|''item name''|''amount''}} | + | <pre>{{name|''item name''|''amount''}}</pre> |
| + | ===Optional Parameters=== |
| + | All Optional Parameters if used together with "quantity" should be placed after the quantity value! |
| + | *size: the image size to be displayed (example: size=48) |
| + | *link: replace the name with a link to another page |
| + | *class: alternative classes. Currently there is only '''inline''' to suppress line break (example: class=inline) |
| + | ==Examples== |
| + | <pre>{{name|Complete Breakfast|30}}</pre> |
| | | |
− | ==Exmaples==
| |
− | <pre>
| |
− | {{name|Complete Breakfast|30}}
| |
− | </pre>
| |
| When used the parameters are not identified by name, but by order. Example use of this template; | | When used the parameters are not identified by name, but by order. Example use of this template; |
| <pre>{{name|Corn|30}}</pre> | | <pre>{{name|Corn|30}}</pre> |
Line 17: |
Line 22: |
| Result: {{name|Preserves Jar|3}} | | Result: {{name|Preserves Jar|3}} |
| | | |
− | <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | + | '''Optional parameter examples:''' |
| + | <pre>Crafting recipe unlocked at {{name|Mining|Level 9|class=inline}}.</pre> |
| + | Result: Crafting recipe unlocked at {{name|Mining|Level 9|class=inline}}. |
| + | |
| + | Size can be defined by using the named parameter "size": |
| + | <pre>{{name|Apple|size=48}}</pre> |
| + | Result: {{name|Apple|size=48}} |
| + | |
| + | <pre>{{name|Melon|3|size=48}}</pre> |
| + | Result: {{name|Melon|3|size=48}} |
| + | |
| + | <pre>{{name|Corn|3|link=Grape}}</pre> |
| + | Result: {{name|Corn|3|link=Grape}} |
| + | <includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |