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



YumeWiki
3,035Articles

Template:NPCBox: Difference between revisions

(will it just work if i paste it in here)
(move category to doc)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox" style="border-radius:6px 6px 0 0; -moz-border-radius: 6px 6px 0 0; font-size:69%; width:275px; margin-bottom: 0px; border-bottom: 1px none #555;"
{| class="infobox" style="max-width:100%; margin-left:2.3em;"
|-
|-
! colspan="2" style="-moz-border-radius:4px 4px 0 0; border-radius:4px 4px 0 0; background-color:{{{headercolor|#3366CC}}}; color:{{{headerfontcolor|#ffffff}}}; font-size:{{{headerfontsize|200%}}}; padding:12px;" | {{{name|{{PAGENAME}}}}}
! 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;" {{!}} [[File:{{{image|missing_image_data.png}}}|{{{imagewidth|250px}}}]]<br/>''{{{caption| }}}''
| 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="background-color:{{{headercolor|#3366CC}}}; font-size:110%; padding:0.25em; text-align:center;" | '''<span style="color:{{{headerfontcolor|#ffffff}}};">''NPC Info''</span>'''
! 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''
|-
|-
{{!}} '''Location'''
| '''Role'''
{{!}} {{{location}}}
|{{#if: {{{role|}}} | {{{role}}} | [https://yume.wiki/{{NAMESPACEE}}:{{PAGENAMEE}}/edit ''Missing''] <includeonly>[[Category:Missing Role]]</includeonly> }}
|-
|-
{{!}} '''Role'''
| '''Collectibles'''
{{!}} {{{role}}}
|{{#if: {{{Collectibles|{{{Wallpapers|}}}}}} {{{Menu|}}}<!--
-->|{{TextSpace| {{#if: {{{Menu|}}} | {{{Menu}}}, }} {{{Collectibles|{{{Wallpapers|}}}}}} }}<!--
-->|None<!--
-->}}
|-
|-
| '''Effects'''
| '''Events'''
|
|{{#if: {{{events|{{{Events|}}}}}} | {{{events|{{{Events|}}}}}} | None }}
<span style="display:none;">Effect</span><span data-params="{{#if: {{{EffectName|}}}|{{{EffectName}}}|None}}" title="{{#if: {{{EffectName|}}}|{{{EffectName}}}|None}}">{{{Effects}}}</span>
|-
|-
| '''Wallpapers/Puzzles'''
| '''Location'''
|
|{{TextSpace| {{#if: {{{location|}}} | {{{location}}} | [https://yume.wiki/{{NAMESPACEE}}:{{PAGENAMEE}}/edit ''Missing''] <includeonly>[[Category:Missing Location]]</includeonly>}} }}
{{{Wallpapers}}}
|-
|-
{{#if: {{{Menu|}}}|
{{#if: {{{size|}}} {{{killable|}}} {{{species|}}} {{{notes|}}}|
{{!}} '''Menu themes'''
! 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''
{{!}}{{TextSpace|{{{Menu}}}}}
{{!}}-
{{#if: {{{size|}}}|
{{!}} '''Size'''
{{!}}{{{size}}}
{{!}}-
{{!}}-
}}
}}
| '''Events'''
{{#if: {{{killable|}}}|
|
{{!}} '''Killable?'''
{{{Events}}}
|-
{{!}} '''Size'''
{{!}} {{{size}}}
|-
{{!}} '''Killable'''
{{!}} {{{killable}}}
{{!}} {{{killable}}}
|-
{{!}}-
}}
{{#if: {{{species|}}}|
{{!}} '''Species'''
{{!}} {{{species}}}
{{!}}-
}}
{{#if: {{{notes|}}}|
{{#if: {{{notes|}}}|
{{!}}-
{{!}}'''Notes:'''
{{!}}'''Notes:'''
{{!}}{{{notes}}}|}}
{{!}}{{{notes}}}
{{{!}} class="infobox" style="border-bottom-left-radius:6px; border-bottom-right-radius: 6px; font-size:84%; width:275px; margin-top: 0px; border-top: 0px;"
{{!}}-
{{!}}-
{{!}}
}}
{{!}}}
}}
<noinclude>
|}<includeonly>{{#ifexpr:{{NAMESPACENUMBER}}>2999<!--
<br style="clear:both;" />
-->| [[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
Missing image data.png
Basic Info
Role Missing
Collectibles None
Events None
Location

Missing

Documentation (for the above template, sometimes hidden or invisible)

Displays an infobox containing a character's details.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
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 colorheadercolor

The header's background color.

Default
#3366CC
Stringsuggested
Header font colorheaderfontcolor

The header's text color.

Default
#ffffff
Stringsuggested
Header font sizeheaderfontsize

The header's font size as a percentage.

Default
200%
Stringoptional
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
Image widthimagewidth

The image width in px.

Default
250
Numberoptional
Image classimage_class

A CSS class to apply to the image.

Default
pixel-perfect
Stringoptional
Image captioncaption

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

Stringoptional
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

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
Uboa.png
Basic Info
Role Traps Madotsuki in Uboa's Trap
Collectibles None
Events Uboa
Location

Poniko's House
Uboa's Trap

Other
Size Standard
Killable? No

Visit Template:NPCBox/doc to edit this text! (How does this work?)