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



YumeWiki
3,296Articles

Template:ListChar: Difference between revisions

The rewritten Style Guide has an open discussion of the spoiler policy. The current policy will be used if no new consensus is reached. Discuss it here.

No edit summary
(add image_class with default value pixel-perfect)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div id="listchar" style="align:center; border:solid #303030 1px; margin:0px 0px 5px 5px; font-size:80%; width:208px; height:230px; padding:0px; spacing:0px; text-align:center;">
<includeonly><div class="listchar" style="align:center; border:solid #303030 1px; margin:0px 0px 5px 5px; font-size:80%; width:208px; height:230px; padding:0px; spacing:0px; text-align:center;">
<h3 style="margin:1px; background-color:{{{headercolor|#3366CC}}}; color:{{{headerfontcolor|#ffffff}}}; font-size:150%;">{{ #if: {{{name|}}}| {{#ifexist: {{{name}}} | <span style="color:{{{headerfontcolor|#ffffff}}}">[[{{{name}}}]]</span> | {{{name}}}}} | }}</h3>
<h3 style="margin:1px; background-color:{{{headercolor|#3366CC}}}; color:{{{headerfontcolor|#ffffff}}}; font-size:150%;">{{#if:{{{link|}}}|<span class="effect-npc-header-link">[[{{NAMESPACE}}:{{{name}}}{{!}}<span style="color:{{{headerfontcolor|#ffffff}}}">{{{name}}}</span>]]</span>|<span class="effect-npc-header-link" style="color:{{{headerfontcolor|#ffffff}}}">{{{name|NPC}}}}}</h3>
<div style="text-align:center; margin:0px">[[{{{image|}}}|{{{imagewidth|208}}}px]]</div>
<div style="text-align:center; margin:0px">[[{{{image|}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|96}}px|class={{{image_class|pixel-perfect}}}]]</div>
<div style="text-align:center; margin:0px; font-size:80%">{{{aka|}}}</div>
<div style="text-align:center; margin:0px; font-size:80%">{{{aka|}}}</div>
<div style="text-align:center; margin:2px">{{{description|}}}</div>
<div style="text-align:center; margin:2px">{{{description|}}}</div>
</div></includeonly>
</div></includeonly><noinclude>
<noinclude>{{documentation}}<templatedata>
{{documentation}}
{
</noinclude>
"params": {
"headercolor": {
"description": "The header's background color.",
"example": "#000000"
},
"headerfontcolor": {
"description": "The header's text color.",
"example": "#ffffff"
},
"name": {
"description": "The NPC's name."
},
"image": {
"description": "An image of the NPC."
},
"aka": {
"description": "Other names that the NPC is known by."
},
"description": {
"description": "A short description of the NPC."
}
},
"description": "This template is used for describing NPCs that give effects.",
"format": "block"
}
</templatedata></noinclude>

Latest revision as of 07:08, 10 April 2025

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

This template is used for describing NPCs that give effects.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
headercolorheadercolor

The header's background color.

Example
#000000
Stringsuggested
headerfontcolorheaderfontcolor

The header's text color.

Example
#ffffff
Stringsuggested
namename

The NPC's name.

Stringrequired
imageimage

An image of the NPC.

Filerequired
akaaka

Other names that the NPC is known by.

Stringoptional
descriptiondescription

A short description of the NPC.

Stringrequired
linklink

Use with any value to turn the header into a link to a page with the same name.

Booleanoptional

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