Jump to content

Template:Infobox villager/doc: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
No edit summary
imported>Margotbean
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
__TOC__
==Description==
==Description==
This is the template for [[Villagers|villager]] infoboxes. It includes pictures, details about relationships and favorite gifts.
This is the template for [[Villagers|villager]] infoboxes. It includes pictures, details about relationships and loved gifts.


==Use==
==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 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 and friends members inside the [[Template:NPC|NPC]] template to match their picture. Place favorite gifts inside the [[Template:Name|name]] template, it will automatically attach a picture (with the same name) and link if there's an article available.
Place family members inside the [[Template:NPC|NPC]] template to match their picture. Place favorite gifts inside the [[Template:Name|name]] template, it will automatically attach a picture (with the same name) and link if there's an article available.


Sections like friends and family will not appear unless they have a value.
Most fields will not appear unless they have a value.  Family is specified in the data file <samp>Content\Data\NPCDispositions.xnb</samp>.


==Syntax==
==Syntax==
Line 19: Line 19:
|address    = create link with building name
|address    = create link with building name
|family    = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}} <- use npc template, then name, then relationship
|family    = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}} <- use npc template, then name, then relationship
|marriage  = yes or no <- yes if single, or able to be married
|marriage  = yes or no (yes if villager is one of the 12 marriage candidates, otherwise no)
|favorites  = list best gifts here
|clinic    = Season Day of visit to Harvey's Clinic
|favorites  = list loved gifts here
}}
}}
</pre>
</pre>
Line 26: Line 27:


==Examples==
==Examples==
===Sample 1===
<pre>
By only entering partial information, the data entered appears in the box and the rest of the lines show 'N/A'.
 
<pre estyle="margin-right:325px;border:1px solid silver;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap;word-wrap: break-word;">
{{Infobox villager
{{Infobox villager
|name = Abigail
|name = Abigail
Line 38: Line 36:
{{Infobox villager
{{Infobox villager
|name      = Abigail
|name      = Abigail
|portrait  = Villager_Placeholder.png
}}
}}
{{Clear}}
{{Clear}}


===Sample 2===
<pre>
<pre style="margin-right:325px;border:1px solid silver;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap;word-wrap: break-word;">
<nowiki>
{{Infobox villager
{{Infobox villager
|name      = Abigail
|name      = Abigail
|portrait  = Abigail.png
|portrait  = Abigail.png
|birthday  = Fall 13
|birthday  = {{Season|Fall}} 13
|location  = Pelican Town
|location  = Pelican Town
|address    = [[Pierre's General Store]]
|address    = [[Pierre's General Store]]
|family    = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}}
|family    = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}}
|marriage  = Yes
|marriage  = Yes
|clinic    = {{Season|Spring}} 4
|favorites  = {{name|Pumpkin}}
|favorites  = {{name|Pumpkin}}
}}
}}
</nowiki>
</pre>
</pre>
{{Clear}}
{{Clear}}
Line 62: Line 57:
|name      = Abigail
|name      = Abigail
|portrait  = Abigail.png
|portrait  = Abigail.png
|birthday  = Fall 13
|birthday  = {{Season|Fall}} 13
|location  = Pelican Town
|location  = Pelican Town
|address    = [[Pierre's General Store]]
|address    = [[Pierre's General Store]]
|family    = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}}
|family    = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}}
|marriage  = Yes
|marriage  = Yes
|clinic    = {{Season|Spring}} 4
|favorites  = {{name|Pumpkin}}
|favorites  = {{name|Pumpkin}}
}}
}}
{{Clear}}
{{Clear}}
<includeonly>
<includeonly>[[Category:Infobox templates]]{{Addlanglinks}}</includeonly>
[[Category:Infobox templates]]
<noinclude>[[Category:Template documentation]]</noinclude>
</includeonly>
<noinclude>
[[Category:Template documentation]]
</noinclude>
<includeonly>[[de:Vorlage:{{PAGENAME}}]]
[[es:Plantilla:{{PAGENAME}}]]
[[ja:テンプレート:{{PAGENAME}}]]
[[pt:Predefinição:{{PAGENAME}}]]
[[ru:Шаблон:{{PAGENAME}}]]
[[zh:Template:{{PAGENAME}}]]</includeonly>

Latest revision as of 18:58, 20 August 2023

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/doc, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox villager/doc - 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
Loved Gifts Pumpkin

{{#seo:

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