Line 8: |
Line 8: |
| | | |
| <pre>{{name|''item name''|''amount''}}</pre> | | <pre>{{name|''item name''|''amount''}}</pre> |
− | | + | ===Optional Parameters=== |
| + | *size: the image size to be displayed (example: size=48) |
| + | *image: an alternative image to display (example: image=Angler.png) |
| + | *link: replace the name with a link to another page |
| ==Exmaples== | | ==Exmaples== |
| <pre> | | <pre> |
Line 21: |
Line 24: |
| <pre>{{name|Apple|size=48}}</pre> | | <pre>{{name|Apple|size=48}}</pre> |
| Result: {{name|Apple|size=48}} | | Result: {{name|Apple|size=48}} |
− | If the size parameter is used is should be placed after the quantity number: | + | If the size parameter is used together with quantity it should be placed after the quantity number: |
| <pre>{{name|Melon|3|size=48}}</pre> | | <pre>{{name|Melon|3|size=48}}</pre> |
| Result: {{name|Melon|3|size=48}} | | Result: {{name|Melon|3|size=48}} |
| + | If the image parameter is used together with quantity it should be placed after the quantity number: |
| + | <pre>{{name|Grape|3|image=Hops.png}}</pre> |
| + | Result: {{name|Grape|3|image=Hops.png}} |
| + | If the link parameter is used together with quantity it should be placed after the quantity number: |
| + | <pre>{{name|Corn|3|link=Grape}}</pre> |
| + | Result: {{name|Corn|3|link=Grape}} |
| <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | | <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |