Difference between revisions of "Template:NPC/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation}} This template is used to insert the name and role in family a character is in the relevant page. ==Usage== This template can be used by entering the followi...")
 
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Documentation}}
+
==Description==
 
This template is used to insert the name and role in family a character is in the relevant page.
 
This template is used to insert the name and role in family a character is in the relevant page.
  
==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>{{NPC|''name''|''role''}}</pre>
 
<pre>{{NPC|''name''|''role''}}</pre>
 +
 +
===Optional Parameters===
 +
*size: the image size to be displayed (example: size=48)
 +
*link: replace the name with a link to another page
 +
*placement: suppress line break (example: placement=inline)
  
 
==Examples==
 
==Examples==
Line 11: Line 16:
 
{{name|Pierre|Father}}
 
{{name|Pierre|Father}}
 
</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>
Line 19: Line 25:
 
Result: {{NPC|Sebastian}}
 
Result: {{NPC|Sebastian}}
  
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
+
<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 21:35, 8 January 2023

Description

This template is used to insert the name and role in family a character is in the relevant page.

Use

This template can be used by entering the following onto a relevant page.

{{NPC|''name''|''role''}}

Optional Parameters

  • size: the image size to be displayed (example: size=48)
  • link: replace the name with a link to another page
  • placement: suppress line break (example: placement=inline)

Examples

{{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