Difference between revisions of "Template:NPC"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Undo revision 49243 by Margotbean (talk) That did not work well in infoboxes...)
(removing duplicate link, and null alt attribute for image - the following link suffices as link and alternative text)
Line 1: Line 1:
<includeonly><p>[[File:{{{1|}}}_Icon.png|link={{{1|}}}]] [[{{{1|}}}]]{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}</p></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
<includeonly><p>[[File:{{{1|}}}_Icon.png|link=|alt=]] [[{{{1|}}}]]{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}</p></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 03:20, 10 July 2017

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 (Mother)

{{NPC|Pierre|30G}}

Result:

Pierre (30G)

{{NPC|Sebastian}}

Result:

Sebastian