Jump to content

Template:Infobox villager: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
No edit summary
imported>Margotbean
+clinic visit parameter
Line 1: Line 1:
<includeonly>{{#switch: {{NAMESPACE}}  
<includeonly>{{#switch:{{NAMESPACE}}  
|{{ns:User}}|{{ns:User talk}}=  
|{{ns:User}}|{{ns:User talk}}=  
|#default=<div id="infoboxborder">
|#default=<div id="infoboxborder">
Line 5: Line 5:
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-
{{!}}-
{{!}}colspan="2" style="text-align:center;"{{!}}{{#if: {{{portrait}}}|[[File:{{#ifexist:File:{{{portrait|{{PAGENAME}}.png}}}|{{{portrait|{{PAGENAME}}.png}}}|Villager Placeholder.png}}|link=]]|[[File:Villager Placeholder.png|link=]]}}
{{!}}colspan="2"{{!}}{{#if: {{{portrait|}}}|[[File:{{{portrait}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}}
{{!}}-
{{!}}-
{{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}Information
{{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}Information
Line 11: Line 11:
{{!}}-
{{!}}-
{{!}}id="infoboxsection"{{!}}Birthday:
{{!}}id="infoboxsection"{{!}}Birthday:
{{!}}id="infoboxdetail" class="no-wrap"{{!}}{{{birthday|}}} |}}
{{!}}id="infoboxdetail"{{!}}{{{birthday|}}} |}}<!--
-->{{#if:{{{location|}}}|<nowiki />
{{!}}-
{{!}}-
{{!}}id="infoboxsection"{{!}}Lives In:
{{!}}id="infoboxsection"{{!}}Lives In:
{{!}}id="infoboxdetail"{{!}}{{#if:{{{location|}}}|[[{{{location|N/A}}}]]|N/A}}
{{!}}id="infoboxdetail"{{!}}[[{{{location|}}}]]|}}<!--
-->{{#if:{{{address|}}}|<nowiki />
{{!}}-
{{!}}-
{{!}}id="infoboxsection"{{!}}Address:
{{!}}id="infoboxsection"{{!}}Address:
{{!}}id="infoboxdetail"{{!}}{{{address|N/A}}}
{{!}}id="infoboxdetail"{{!}}{{{address|}}}|}}<!--
{{#if:{{{family|}}}|
-->{{#if:{{{family|}}}|<nowiki />
{{!}}-
{{!}}-
{{!}}id="infoboxsection"{{!}}Family:
{{!}}id="infoboxsection"{{!}}Family:
{{!}}id="infoboxdetail"{{!}}{{{family|N/A}}}|}}
{{!}}id="infoboxdetail"{{!}}{{{family|}}}|}}<!--
-->{{#if:{{{friends|}}}|<nowiki />
{{!}}-
{{!}}-
{{#if:{{{friends|}}}|
{{!}}id="infoboxsection"{{!}}Friends:
{{!}}id="infoboxsection"{{!}}Friends:
{{!}}id="infoboxdetail"{{!}}{{{friends|N/A}}}
{{!}}id="infoboxdetail"{{!}}{{{friends|}}}|}}
{{!}}-
{{!}}-
|}}
{{!}}id="infoboxsection"{{!}}Marriage:
{{!}}id="infoboxsection"{{!}}Marriage:
{{!}}id="infoboxdetail"{{!}}{{{marriage|No}}}
{{!}}id="infoboxdetail"{{!}}{{{marriage|No}}}<!--
{{#if:{{{favorites|}}}|<nowiki />
-->{{#if:{{{clinic|}}}|<nowiki />
{{!}}-
{{!}}id="infoboxsection"{{!}}Clinic Visit:
{{!}}id="infoboxdetail{{!}}{{{clinic|}}} |}}<!--
-->{{#if:{{{favorites|}}}|<nowiki />
{{!}}-
{{!}}-
{{!}}id="infoboxsection"{{!}}Best Gifts:
{{!}}id="infoboxsection"{{!}}Best Gifts:
Line 36: Line 41:
{{!}}-
{{!}}-
{{!}}}
{{!}}}
</div>
</div>{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}}
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}}
}}{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
}}{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 20:07, 11 October 2022

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
Information
Marriage: No

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox villager, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox villager - Stardew Valley Wiki }}

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

Birthday:  Fall 13
Lives In: Pelican Town
Address: Pierre's General Store
Family:

Pierre (Father)

Caroline (Mother)

Marriage: Yes
Clinic Visit:  Spring 4
Best Gifts: Pumpkin

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox villager, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox villager - Stardew Valley Wiki }}