Template:NPCDisplay: Difference between revisions

From Deceive Inc. Wiki
Jump to navigation Jump to search
m (Made every name a hotlink)
m (Added category)
 
(2 intermediate revisions by the same user not shown)
Line 24: Line 24:
|}
|}


[[Category:Templates]]
[[Category:Templates]][[Category:Display Templates]]
</noinclude><includeonly><!--
</noinclude><includeonly><!--


Line 36: Line 36:
// If 3 images provided. //
// If 3 images provided. //


-->{{#ifeq:{{#var:num_images}} | 3 | <table class="wikitable" style="margin:auto;">
-->{{#ifeq:{{#var:num_images}} | 3 | <table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th colspan="3"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th colspan="3"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>
Line 49: Line 49:
| {{#if:{{{image1|}}}
| {{#if:{{{image1|}}}
| {{#if:{{{image2|}}}
| {{#if:{{{image2|}}}
| <!-- IMAGE 1 + 2 --><table class="wikitable" style="margin:auto;">
| <!-- IMAGE 1 + 2 --><table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th colspan="2"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th colspan="2"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>
Line 55: Line 55:
<td>[[File:{{{image2}}}|frameless|center]]</td>
<td>[[File:{{{image2}}}|frameless|center]]</td>
</tr></table>
</tr></table>
| <!-- IMAGE 1 + 3 --><table class="wikitable" style="margin:auto;">
| <!-- IMAGE 1 + 3 --><table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th colspan="2"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th colspan="2"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>
Line 62: Line 62:
</tr></table>
</tr></table>
}}
}}
| <!-- IMAGE 2 + 3 --><table class="wikitable" style="margin:auto;">
| <!-- IMAGE 2 + 3 --><table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th colspan="2"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th colspan="2"><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>
Line 74: Line 74:
-->{{#ifeq:{{#var:num_images}} | 1
-->{{#ifeq:{{#var:num_images}} | 1
| {{#if:{{{image1|}}}
| {{#if:{{{image1|}}}
| <!-- IMAGE 1 ONLY --><table class="wikitable" style="margin:auto;">
| <!-- IMAGE 1 ONLY --><table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>
Line 80: Line 80:
</tr></table>
</tr></table>
| {{#if:{{{image2|}}}
| {{#if:{{{image2|}}}
| <!-- IMAGE 2 ONLY --><table class="wikitable" style="margin:auto;">
| <!-- IMAGE 2 ONLY --><table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>
<td>[[File:{{{image2}}}|frameless|center]]</td>
<td>[[File:{{{image2}}}|frameless|center]]</td>
</tr></table>
</tr></table>
| <!-- IMAGE 3 ONLY --><table class="wikitable" style="margin:auto;">
| <!-- IMAGE 3 ONLY --><table class="wikitable" style="margin:auto;margin-top:0.5em;margin-bottom:0.5em;">
<tr><th><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr><th><span style="font-size:24px;">[[{{{name}}}]]</span></th></tr>
<tr>
<tr>

Latest revision as of 20:04, 23 November 2023

This template is used for the NPC displays on the main page. It comes in 1, 2, and 3 image variants.

Parameters

Parameter Name Parameter Type Function
name String The name of the NPC. Converts to a link.
image1 Filename The filename pointing to the first image.
image2 Filename The filename pointing to the second image. Not required.
image3 Filename The filename pointing to the third image. Not required.