Difference between revisions of "Template:NPC"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Oath2order moved page Template:Npc to Template:NPC without leaving a redirect)
Line 8: Line 8:
 
</pre>
 
</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>{{npc|Jodi|Mother}}</pre>
+
<pre>{{NPC|Jodi|Mother}}</pre>
Result: {{npc|Jodi|Mother}}
+
Result: {{NPC|Jodi|Mother}}
<pre>{{npc|Pierre|30G}}</pre>
+
<pre>{{NPC|Pierre|30G}}</pre>
Result: {{npc|Pierre|30G}}
+
Result: {{NPC|Pierre|30G}}
<pre>{{npc|Sebastian}}</pre>
+
<pre>{{NPC|Sebastian}}</pre>
Result: {{npc|Sebastian}}
+
Result: {{NPC|Sebastian}}
 
[[Category:Template]]</noinclude>
 
[[Category:Template]]</noinclude>

Revision as of 05:44, 29 February 2016

This template places the picture of an npc next to their name, resizes the image to 32px wide, makes the npc name a link, and lastly places the third parameter in parenthesis to signify relationship or any other secondary detail.

The corresponding template for items and objects is named Template:name.

Use

{{name|Pierre|Father}}

When used the parameters are not identified by name, but by order. Example use of this template;

{{NPC|Jodi|Mother}}

Result:

Jodi Icon.png Jodi (Mother)

{{NPC|Pierre|30G}}

Result:

Pierre Icon.png Pierre (30G)

{{NPC|Sebastian}}

Result:

Sebastian Icon.png Sebastian