No edit summary |
Oh0kaYthen86 (talk | contribs) (made many parameters hidden by default, added "species" parameter) |
||
Line 7: | Line 7: | ||
| colspan="2" style="background-color:{{{headercolor|#3366CC}}}; font-size:110%; padding:0.25em; text-align:center;" | '''<span style="color:{{{headerfontcolor|#ffffff}}};">''NPC Info''</span>''' | | colspan="2" style="background-color:{{{headercolor|#3366CC}}}; font-size:110%; padding:0.25em; text-align:center;" | '''<span style="color:{{{headerfontcolor|#ffffff}}};">''NPC Info''</span>''' | ||
|- | |- | ||
{{!}} ''' | {{#if: {{{species|}}}| | ||
{{!}} {{{ | {{!}} '''Species''' | ||
{{!}} {{{species}}} | |||
{{!}}- | |||
}} | |||
{{!}} '''Role''' | {{!}} '''Role''' | ||
{{!}} {{{role}}} | {{!}} {{{role}}} | ||
|- | |- | ||
{{!}} '''Location''' | |||
{{!}} {{{location}}} | |||
{{{ | |||
|- | |- | ||
{{#if: {{{Effects|}}}| | |||
{{!}} '''Effects''' | |||
{{!}}<span style="display:none;">Effect</span><span data-params="{{#if: {{{EffectName|}}}|{{{EffectName}}}|None}}" title="{{#if: {{{EffectName|}}}|{{{EffectName}}}|None}}">{{{Effects}}}</span> | |||
{{!}}- | |||
}} | |||
{{#if: {{{Wallpapers|}}}| | |||
{{!}} '''Wallpapers/Puzzles''' | |||
{{!}}{{{Wallpapers}}} | |||
{{!}}- | |||
}} | |||
{{#if: {{{Menu|}}}| | {{#if: {{{Menu|}}}| | ||
{{!}} '''Menu themes''' | {{!}} '''Menu themes''' | ||
Line 26: | Line 33: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| '''Events''' | {{#if: {{{Events|}}}| | ||
{{!}} '''Events''' | |||
{{{Events}}} | {{!}}{{{Events}}} | ||
| | {{!}}- | ||
}} | |||
{{#if: {{{size|}}}| | |||
{{!}} '''Size''' | {{!}} '''Size''' | ||
{{!}} {{{size}}} | {{!}} {{{size}}} | ||
{{!}}- | |||
{{!}} '''Killable''' | }} | ||
{{!}} '''Killable?''' | |||
{{!}} {{{killable}}} | {{!}} {{{killable}}} | ||
|- | |- |
Revision as of 20:00, 14 April 2023
NPCBox | |
---|---|
NPC Info | |
Role | {{{role}}} |
Location | {{{location}}} |
Killable? | {{{killable}}} |
Displays an infobox containing a character's details.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Display Name | name | 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.
| String | optional |
Header color | headercolor | The header's background color.
| String | suggested |
Header font color | headerfontcolor | The header's text color.
| String | suggested |
Header font size | headerfontsize | The header's font size as a percentage.
| String | optional |
NPC image | image | The file name for the image to be displayed. It should clearly show the NPC in its usual appearance.
| File | required |
Image width | imagewidth | The image width in px.
| Number | optional |
Image class | image_class | A CSS class to apply to the image.
| String | optional |
Image caption | caption | A corresponding caption for the image, visible if a value is provided. | String | optional |
Role | role | The NPC's purpose.
| String | required |
Collectibles | Collectibles Wallpapers Menu | Collectibles that you can unlock by interacting with the NPC.
| String | required |
Events | Events | Events associated with this NPC. | String | required |
Location | location | The NPC's location, or a comma-separated list of locations. | String | required |
Size | size | The NPC's physical size.
| String | suggested |
Killable? | killable | Whether the NPC is able to be killed using the game's weapon effect.
| String | suggested |
Species | species | The in-game species of the NPC. | String | optional |
Misc. Notes | notes | Any further notes on the NPC that are important enough to include in the box. | String | optional |
General usage
{{NPCBox |name = Uboa |headercolor = #000000 |headerfontcolor = #ffffff |image = Uboa.png |role = Traps [[Yume Nikki:Madotsuki|Madotsuki]] in [[Yume Nikki:Poniko's House#Uboa's Trap|Uboa's Trap]] |Collectibles = None |Events = [[Yume Nikki:Events#Uboa|Uboa]] |location = [[Yume Nikki:Poniko's House|Poniko's House]], [[Yume Nikki:Uboa's Trap|Uboa's Trap]] |size = Standard |killable = No |species = |notes = }}
will return:
Uboa | |
---|---|
NPC Info | |
Role | Traps Madotsuki in Uboa's Trap |
Location | Poniko's House, Uboa's Trap |
Events | Uboa |
Size | Standard |
Killable? | No |