Difference between revisions of "Template:Infobox villager"

From Stardew Valley Wiki
Jump to navigation Jump to search
(fix #seo)
(set default image)
Line 37: Line 37:
 
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}}
 
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}}
 
}}{{InfoboxSEO}}{{#seo:
 
}}{{InfoboxSEO}}{{#seo:
|image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}?4362984378}}
+
|image={{filepath:{{{portrait|{{PAGENAME}}.png}}}}}
 
|description={{#if:{{{description|}}}|{{{description|}}}}}
 
|description={{#if:{{{description|}}}|{{{description|}}}}}
 
}}</includeonly><noinclude>[[Category:Infobox templates]]{{{{FULLPAGENAME}}/doc}}</noinclude>
 
}}</includeonly><noinclude>[[Category:Infobox templates]]{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 20:05, 17 February 2021

Description

This is the template for villager infoboxes. It includes pictures, details about relationships and loved gifts.

Use

Place at the top of the villager page, it will automatically align right. Do not use this on your user page. It is reserved for villager pages.

Place family members inside the NPC template to match their picture. Place favorite gifts inside the name template, it will automatically attach a picture (with the same name) and link if there's an article available.

Most fields will not appear unless they have a value. Family is specified in the data file Content\Data\NPCDispositions.xnb.

Syntax

{{Infobox villager
|name       = Villager Name
|portrait   = file-name.png
|birthday   = Season Day
|location   = Pelican Town
|address    = create link with building name
|family     = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}} <- use npc template, then name, then relationship
|marriage   = yes or no (yes if villager is one of the 12 marriage candidates, otherwise no)
|clinic     = Season Day of visit to Harvey's Clinic
|favorites  = list loved gifts here
}}

Examples

{{Infobox villager
|name = Abigail
}}
Abigail
Villager Placeholder.png
Information
Birthday: N/A
Lives In: N/A
Address: N/A
Marriage: No
Best Gifts:
Error: {{#seo:}} must contain at least one non-empty attribute.
{{Infobox villager
|name       = Abigail
|portrait   = Abigail.png
|birthday   = {{Season|Fall}} 13
|location   = Pelican Town
|address    = [[Pierre's General Store]]
|family     = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}}
|marriage   = Yes
|clinic     = {{Season|Spring}} 4
|favorites  = {{name|Pumpkin}}
}}
Abigail
Abigail.png
Information
Birthday: Fall.png Fall 13
Lives In: Pelican Town
Address: Pierre's General Store
Family:

Pierre Icon.png Pierre (Father)

Caroline Icon.png Caroline (Mother)

Marriage: Yes
Best Gifts: Pumpkin.png Pumpkin