×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:NPCBox/doc: Difference between revisions

(add category)
(rewrite templatedata)
Line 1: Line 1:
<templatedata>
<templatedata>
{
{ "description": "A template used in displaying NPC information.",
"params": {
"params": {
"headercolor": {
"headercolor": {
"label": "Header color",
"description": "The header's background color.",
"description": "The header's background color.",
"type": "string",
"type": "string",
"suggested": true,
"suggested": true,
"example": "#3366CC"
"default": "#3366CC"
},
},
"headerfontcolor": {
"headerfontcolor": {
"label": "Header font color",
"description": "The header's text color.",
"description": "The header's text color.",
"type": "string",
"type": "string",
"suggested": true,
"suggested": true,
"example": "#ffffff"
"default": "#ffffff"
},
},
"image": {
"image": {
"description": "An image representing the NPC.",
"label": "NPC image",
"type": "string",
"description": "The file name for the image to be displayed. It should clearly show the NPC in its usual appearance.",
"type": "wiki-file-name",
"example": "Uboa.png",
"required": true
"required": true
},
},
"caption": {
"role": {
"description": "A caption describing the NPC's image.",
"label": "Role",
"type": "string"
"description": "The NPC's purpose.",
},
"example": "Gives the [[Yume 2kki:Effects#Boy|Boy]] effect",
"location": {
"description": "The NPC's location.",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"role": {
"Collectibles": {
"description": "The NPC's purpose.",
"label": "Collectibles",
"type": "content",
"description": "Collectibles that you can unlock by interacting with the NPC.",
"example": "WP #87, Menu Theme #65",
"type": "string",
"aliases": [
"Wallpapers",
"Menu"
],
"required": true
"required": true
},
},
"size": {
"Events": {
"description": "The NPC's physical size.",
"label": "Events",
"type": "string"
"description": "Events associated with this NPC.",
},
"killable": {
"description": "Whether the NPC can be killed.",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"notes": {
"location": {
"description": "Additional notes related to the NPC.",
"label": "Location",
"type": "content",
"description": "The NPC's location, or a comma-separated list of locations.",
"suggested": true
},
"Wallpapers": {
"description": "Wallpapers that you can get from this NPC.",
"example": "WP #1",
"type": "string",
"type": "string",
"suggested": true
"required": true
},
},
"Menu": {
"size": {
"description": "Menu themes that the NPC would you.",
"label": "Size",
"example": "Menu Theme #1",
"description": "The NPC's physical size.",
"example": "Standard",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"Events": {
"killable": {
"description": "Events associated with this NPC.",
"label": "Killable?",
"description": "Whether the NPC is able to be killed using the game's weapon effect.",
"suggestedvalues": ["Yes","No"],
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"species": {
"species": {
"label": "Species",
"description": "The in-game species of the NPC.",
"description": "The in-game species of the NPC.",
"type": "string"
"type": "string"
},
},
"name": {
"notes": {
"description": "The name of the NPC (if different than the page name).",
"label": "Misc. Notes",
"description": "Any further notes on the NPC that are important enough to include in the box.",
"type": "string"
"type": "string"
},
},
"imagewidth": {
"name": {
"description": "A custom width for the NPC's image.",
"label": "Display Name",
"example": "200px",
"description": "Overrides using the page name as the header text. If the name of the character should be changed on the wiki, move the page instead of using this parameter.",
"type": "string"
"type": "string",
"autovalue": "{{PAGENAME}}"
},
},
"headerfontsize": {
"headerfontsize": {
"example": "40px",
"label": "Header font size",
"description": "The header's font size as a percentage.",
"type": "string",
"type": "string",
"description": "The header's font size."
"default": "200%"
},
"imagewidth": {
"label": "Image width",
"description": "The image width in px.",
"type": "number",
"default": "250"
},
"caption": {
"label": "Image caption",
"description": "A corresponding caption for the image, visible if a value is provided.",
"type": "string"
}
}
},
},
"description": "A template used in displaying NPC information.",
"format": "{{_\n|_ = _\n}}",
"format": "{{_\n|_ = _\n}}",
"paramOrder": [
"paramOrder": [
"name",
"headercolor",
"headercolor",
"headerfontcolor",
"headerfontcolor",
"headerfontsize",
"image",
"image",
"imagewidth",
"caption",
"species",
"role",
"role",
"Collectibles",
"Events",
"location",
"location",
"Wallpapers",
"Menu",
"Events",
"size",
"size",
"killable",
"killable",
"notes"
"species",
"notes",
"name",
"headerfontsize",
"imagewidth",
"caption"
]
]
}
}

Revision as of 23:10, 21 June 2024

A template used in displaying NPC information.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Header colorheadercolor

The header's background color.

Default
#3366CC
Stringsuggested
Header font colorheaderfontcolor

The header's text color.

Default
#ffffff
Stringsuggested
NPC imageimage

The file name for the image to be displayed. It should clearly show the NPC in its usual appearance.

Example
Uboa.png
Filerequired
Rolerole

The NPC's purpose.

Example
Gives the [[Yume 2kki:Effects#Boy|Boy]] effect
Stringrequired
CollectiblesCollectibles Wallpapers Menu

Collectibles that you can unlock by interacting with the NPC.

Example
WP #87, Menu Theme #65
Stringrequired
EventsEvents

Events associated with this NPC.

Stringrequired
Locationlocation

The NPC's location, or a comma-separated list of locations.

Stringrequired
Sizesize

The NPC's physical size.

Example
Standard
Stringsuggested
Killable?killable

Whether the NPC is able to be killed using the game's weapon effect.

Suggested values
Yes No
Stringsuggested
Speciesspecies

The in-game species of the NPC.

Stringoptional
Misc. Notesnotes

Any further notes on the NPC that are important enough to include in the box.

Stringoptional
Display Namename

Overrides using the page name as the header text. If the name of the character should be changed on the wiki, move the page instead of using this parameter.

Auto value
{{PAGENAME}}
Stringoptional
Header font sizeheaderfontsize

The header's font size as a percentage.

Default
200%
Stringoptional
Image widthimagewidth

The image width in px.

Default
250
Numberoptional
Image captioncaption

A corresponding caption for the image, visible if a value is provided.

Stringoptional