Line 4: |
Line 4: |
| Image size can be adjusted by adding the parameter "size". | | Image size can be adjusted by adding the parameter "size". |
| | | |
− | ==Usage== | + | ==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> | + | <pre>{{name|''item name''|''amount''}}</pre> |
| ===Optional Parameters=== | | ===Optional Parameters=== |
| All Optional Parameters if used together with "quantity" should be placed after the quantity value! | | All Optional Parameters if used together with "quantity" should be placed after the quantity value! |
− | *size: the image size to be displayed (example: size=48px) | + | *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 | | *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) | | *class: alternative classes. Currently there is only '''inline''' to suppress line break (example: class=inline) |
| ==Examples== | | ==Examples== |
− | <pre>{{Name|Complete Breakfast|30}}</pre> | + | <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> |
− | Result: {{Name|Corn|30}} | + | Result: {{name|Corn|30}} |
− | <pre>{{Name|Preserves Jar|3}}</pre> | + | <pre>{{name|Preserves Jar|3}}</pre> |
− | Result: {{Name|Preserves Jar|3}} | + | Result: {{name|Preserves Jar|3}} |
| | | |
| '''Optional parameter examples:''' | | '''Optional parameter examples:''' |
− | <pre>Crafting recipe unlocked at {{Name|Mining|Level 9|class=inline}}.</pre> | + | <pre>Crafting recipe unlocked at {{name|Mining|Level 9|class=inline}}.</pre> |
− | Result: Crafting recipe unlocked at {{Name|Mining|Level 9|class=inline}}. | + | Result: Crafting recipe unlocked at {{name|Mining|Level 9|class=inline}}. |
| | | |
| Size can be defined by using the named parameter "size": | | Size can be defined by using the named parameter "size": |
− | <pre>{{Name|Apple|size=48px}}</pre> | + | <pre>{{name|Apple|size=48}}</pre> |
− | Result: {{Name|Apple|size=48px}} | + | Result: {{name|Apple|size=48}} |
| | | |
− | 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=48px}}</pre> | + | Result: {{name|Melon|3|size=48}} |
− | Result: {{Name|Melon|3|size=48px}} | |
| | | |
− | If the image parameter is used together with quantity it should be placed after the quantity number:
| + | <pre>{{name|Corn|3|link=Grape}}</pre> |
− | <pre>{{Name|Grape|3|image=Hops.png}}</pre>
| + | Result: {{name|Corn|3|link=Grape}} |
− | Result: {{Name|Grape|3|image=Hops.png}}
| + | <includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
− | | |
− | 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}} | |
− | | |
− | It's also possible to use multiple optional parameters:
| |
− | <pre>{{Name|Grape|3|image=Hops.png|size=64px|class=inline}}.</pre> | |
− | {{Name|Grape|3|image=Hops.png|size=64px|class=inline}}.
| |
− | <includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
| |
− | <includeonly>[[de:Vorlage:{{PAGENAME}}]]
| |
− | [[es:Plantilla:{{PAGENAME}}]]
| |
− | [[ja:テンプレート:{{PAGENAME}}]]
| |
− | [[pt:Predefinição:{{PAGENAME}}]]
| |
− | [[ru:Шаблон:{{PAGENAME}}]]
| |
− | [[zh:Template:{{PAGENAME}}]]</includeonly>
| |