Difference between revisions of "Template:Name"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly><span id="nametemplate">[[File:{{{1|}}}.png|24px|link=]] {{#ifexist:{{{1|}}}|[[{{{1|}}}]]|{{{1|}}}}}{{#if: {{{2|}}}| ({{{2|}}})|}}</span></includeonly> | <includeonly><span id="nametemplate">[[File:{{{1|}}}.png|24px|link=]] {{#ifexist:{{{1|}}}|[[{{{1|}}}]]|{{{1|}}}}}{{#if: {{{2|}}}| ({{{2|}}})|}}</span></includeonly> | ||
+ | <noinclude>This template places 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. | ||
+ | |||
+ | The coorisponding template for [[Villagers|villagers and NPCs]] is named [[:Template:npc]]. | ||
+ | == Use == | ||
+ | <pre> | ||
+ | {{name|Complete Breakfast|30}} | ||
+ | </pre> | ||
+ | When used the parameters are not identified by name, but by order. Example use of this template; | ||
+ | <pre>{{name|Corn|30}}</pre> | ||
+ | Result: {{name|Corn|30}} | ||
+ | <pre>{{name|Preserves Jar|3}}</pre> | ||
+ | Result: {{name|Preserves Jar|3}} | ||
+ | [[Category:Template]]</noinclude> |
Revision as of 06:21, 26 February 2016
This template places 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.
The coorisponding template for villagers and NPCs is named Template:npc.
Use
{{name|Complete Breakfast|30}}
When used the parameters are not identified by name, but by order. Example use of this template;
{{name|Corn|30}}
Result: Corn (30)
{{name|Preserves Jar|3}}
Result: Preserves Jar (3)