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]]. |
| + | |
| + | Image size can be adjusted by adding the parameter "size". |
| | | |
| ==Usage== | | ==Usage== |
Line 16: |
Line 18: |
| <pre>{{name|Preserves Jar|3}}</pre> | | <pre>{{name|Preserves Jar|3}}</pre> |
| Result: {{name|Preserves Jar|3}} | | Result: {{name|Preserves Jar|3}} |
− | | + | Size can be defined by using the named parameter "size": |
| + | <pre>{{name|Apple|size=48}}</pre> |
| + | Result: {{name|Apple|size=48}} |
| + | If the size parameter is used is should be placed after the quantity number: |
| + | <pre>{{name|Melon|3|size=48}}</pre> |
| + | Result: {{name|Melon|3|size=48}} |
| <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | | <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |