No edit summary |
(move category to doc) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox | {| class="infobox" style="max-width:100%; margin-left:2.3em;" | ||
|- | |- | ||
! colspan="2" style=" | ! colspan="2" style="padding:12px; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:{{{headerfontsize|200%}}}; border-radius:4px 4px 0 0;" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
| colspan="2" style="text-align:center; padding:0.5em;" {{ | | colspan="2" style="text-align:center; padding:0.5em;" | [[File:{{#if: {{{image|}}} | {{{image}}} | missing_image_data.png }}|{{{imagewidth|250}}}px|class={{{image_class|pixel-perfect}}}]] {{#if: {{{caption|}}} | <br>''{{{caption}}}'' }} | ||
|- | |- | ||
! colspan="2" style="padding:0.25em; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:110%;" | ''Basic Info'' | |||
|- | |- | ||
{{#if: {{{ | | '''Role''' | ||
{{ | |{{#if: {{{role|}}} | {{{role}}} | [https://yume.wiki/{{NAMESPACEE}}:{{PAGENAMEE}}/edit ''Missing''] <includeonly>[[Category:Missing Role]]</includeonly> }} | ||
{{ | |- | ||
{{ | | '''Collectibles''' | ||
}} | |{{#if: {{{Collectibles|{{{Wallpapers|}}}}}} {{{Menu|}}}<!-- | ||
{{!}} ''' | -->|{{TextSpace| {{#if: {{{Menu|}}} | {{{Menu}}}, }} {{{Collectibles|{{{Wallpapers|}}}}}} }}<!-- | ||
{{ | -->|None<!-- | ||
-->}} | |||
|- | |||
| '''Events''' | |||
|{{#if: {{{events|{{{Events|}}}}}} | {{{events|{{{Events|}}}}}} | None }} | |||
|- | |- | ||
| '''Location''' | |||
{{ | |{{TextSpace| {{#if: {{{location|}}} | {{{location}}} | [https://yume.wiki/{{NAMESPACEE}}:{{PAGENAMEE}}/edit ''Missing''] <includeonly>[[Category:Missing Location]]</includeonly>}} }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{size|}}} {{{killable|}}} {{{species|}}} {{{notes|}}}| | ||
{{ | ! colspan="2" style="padding:0.25em; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:110%;" {{!}} ''Other'' | ||
{{ | |||
{{!}}- | {{!}}- | ||
{{#if: {{{size|}}}| | |||
{{#if: {{{ | {{!}} '''Size''' | ||
{{!}} ''' | {{!}}{{{size}}} | ||
{{!}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{killable|}}}| | ||
{{!}} ''' | {{!}} '''Killable?''' | ||
{{!}}{{{ | {{!}} {{{killable}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{species|}}}| | ||
{{!}} ''' | {{!}} '''Species''' | ||
{{!}} {{{ | {{!}} {{{species}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{notes|}}}| | {{#if: {{{notes|}}}| | ||
{{!}}'''Notes:''' | |||
{{!}}{{{notes}}} | |||
{{!}}- | {{!}}- | ||
{{ | }} | ||
{{ | }} | ||
|} | |}<includeonly>{{#ifexpr:{{NAMESPACENUMBER}}>2999<!-- | ||
< | -->| [[Category:{{NAMESPACE}} Characters]]<!-- | ||
< | -->{{#if: {{{headerfontcolor|}}} | | [[Category:Infoboxes with missing header styling]] }}<!-- | ||
-->{{#if: {{{headercolor|}}} | | [[Category:Infoboxes with missing header styling]] }}<!-- | |||
-->}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 01:51, 19 November 2024
NPCBox | |
---|---|
Basic Info | |
Role | Missing |
Collectibles | None |
Events | None |
Location |
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 | |
---|---|
Basic Info | |
Role | Traps Madotsuki in Uboa's Trap |
Collectibles | None |
Events | Uboa |
Location | |
Other | |
Size | Standard |
Killable? | No |