Difference between revisions of "Template:Infobox villager/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Created page with "__TOC__ ==Description== This is the template for villager infoboxes. It includes pictures, details about relationships and favorite gifts. ==Use== Place at the...")
 
Line 12: Line 12:
 
==Syntax==
 
==Syntax==
 
<pre>
 
<pre>
{{Villager
+
{{Infobox villager
 
|name      = Villager Name
 
|name      = Villager Name
 
|portrait  = file-name.png
 
|portrait  = file-name.png
Line 30: Line 30:
  
 
<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;">
 
<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;">
{{Villager
+
{{Infobox villager
 
|name = Abigail
 
|name = Abigail
 
}}
 
}}
Line 36: Line 36:
 
{{Clear}}
 
{{Clear}}
  
{{Villager
+
{{Infobox villager
 
|name      = Abigail
 
|name      = Abigail
 
|portrait  = Villager_Placeholder.png
 
|portrait  = Villager_Placeholder.png
Line 45: Line 45:
 
<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;">
 
<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>
 
<nowiki>
{{Villager
+
{{Infobox villager
 
|name      = Abigail
 
|name      = Abigail
 
|portrait  = Abigail.png
 
|portrait  = Abigail.png
Line 59: Line 59:
 
{{Clear}}
 
{{Clear}}
  
{{Villager
+
{{Infobox villager
 
|name      = Abigail
 
|name      = Abigail
 
|portrait  = Abigail.png
 
|portrait  = Abigail.png

Revision as of 23:02, 21 April 2018

Description

This is the template for villager infoboxes. It includes pictures, details about relationships and favorite 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 and friends 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.

Sections like friends and family will not appear unless they have a value.

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 single, or able to be married
|favorites  = list best gifts here
}}

Examples

Sample 1

By only entering partial information, the data entered appears in the box and the rest of the lines show 'N/A'.

{{Infobox villager
|name = Abigail
}}
Abigail
Villager Placeholder.png
Information
Marriage No

Sample 2


{{Infobox villager
|name       = Abigail
|portrait   = Abigail.png
|birthday   = Fall 13
|location   = Pelican Town
|address    = [[Pierre's General Store]]
|family     = {{NPC|Pierre|Father}}{{NPC|Caroline|Mother}}
|marriage   = Yes
|favorites  = {{name|Pumpkin}}
}}

Abigail
Abigail.png
Information

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

Pierre Icon.png Pierre (Father)

Caroline Icon.png Caroline (Mother)

Marriage Yes
Loved Gifts Pumpkin.png Pumpkin