Template:NPCDisplay: Difference between revisions
Jump to navigation
Jump to search
(Created and tested template) |
m (Added category) |
||
(3 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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
<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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
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> | ||
<td>[[File:{{{image2}}}|frameless|center]]</td> | <td>[[File:{{{image2}}}|frameless|center]]</td> | ||
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> | ||
<td>[[File:{{{image1}}}|frameless|center]]</td> | <td>[[File:{{{image1}}}|frameless|center]]</td> | ||
</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> | ||
<td>[[File:{{{image3}}}|frameless|center]]</td> | <td>[[File:{{{image3}}}|frameless|center]]</td> |
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. |