Template:NPCDisplay: Difference between revisions
Jump to navigation
Jump to search
(Created and tested template) |
m (Made every name a hotlink) |
||
Line 37: | Line 37: | ||
-->{{#ifeq:{{#var:num_images}} | 3 | <table class="wikitable" style="margin:auto;"> | -->{{#ifeq:{{#var:num_images}} | 3 | <table class="wikitable" style="margin:auto;"> | ||
<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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
Line 50: | Line 50: | ||
| {{#if:{{{image2|}}} | | {{#if:{{{image2|}}} | ||
| <!-- IMAGE 1 + 2 --><table class="wikitable" style="margin:auto;"> | | <!-- IMAGE 1 + 2 --><table class="wikitable" style="margin:auto;"> | ||
<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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
Line 56: | Line 56: | ||
</tr></table> | </tr></table> | ||
| <!-- IMAGE 1 + 3 --><table class="wikitable" style="margin:auto;"> | | <!-- IMAGE 1 + 3 --><table class="wikitable" style="margin:auto;"> | ||
<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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
Line 63: | Line 63: | ||
}} | }} | ||
| <!-- IMAGE 2 + 3 --><table class="wikitable" style="margin:auto;"> | | <!-- IMAGE 2 + 3 --><table class="wikitable" style="margin:auto;"> | ||
<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> | ||
<td>[[File:{{{image2}}}|frameless|center]]</td> | <td>[[File:{{{image2}}}|frameless|center]]</td> | ||
Line 75: | Line 75: | ||
| {{#if:{{{image1|}}} | | {{#if:{{{image1|}}} | ||
| <!-- IMAGE 1 ONLY --><table class="wikitable" style="margin:auto;"> | | <!-- IMAGE 1 ONLY --><table class="wikitable" style="margin:auto;"> | ||
<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:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
Line 81: | Line 81: | ||
| {{#if:{{{image2|}}} | | {{#if:{{{image2|}}} | ||
| <!-- IMAGE 2 ONLY --><table class="wikitable" style="margin:auto;"> | | <!-- IMAGE 2 ONLY --><table class="wikitable" style="margin:auto;"> | ||
<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;"> | ||
<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:{{{image3}}}|frameless|center]]</td> | <td>[[File:{{{image3}}}|frameless|center]]</td> |
Revision as of 21:42, 22 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. |