- This wiki is very much under construction. The original wiki was set to be shut down and the wiki was largely mirrored to a Fandom-based version, though most of the reference images had not yet been copied over. This migration was put on hold when it appeared the original wiki could in fact be retained, however the old wiki was lost in its entirety when the server was among the many taken down by a massive series of cyberattacks on data centers during early February, 2023. It is now being rebuilt with the launch of Hel. Sorry if it's a little messy right now!
Mascot Ariel Kid.png

Template:CharacterCard: Difference between revisions

From Drowtales
Jump to navigation Jump to search
w:c:drowtales>Thrair
No edit summary
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 9: Line 9:
{{#vardefine:portrait_suffix|{{#if:{{{portrait|}}}|_{{{portrait}}}|}}}}
{{#vardefine:portrait_suffix|{{#if:{{{portrait|}}}|_{{{portrait}}}|}}}}
<td valign="top" style="height:112px">
<td valign="top" style="height:112px">
{{#if:Filepath: Portrait_{{{1}}}{{#var:portrait_suffix}}.png
{{#ifexist: File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png
   | [[File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png|link=File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png|89x111 px]]
  | [[File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png|link=File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png|89px]]
   | [[File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png|link=File:Portrait_{{{1}}}{{#var:portrait_suffix}}.png|89px|({{{1}}}{{#var:portrait_suffix}}.png not found, click to upload)]]  
}}</td>
}}</td>
<td valign="top" style="width:300px">
<td valign="top" style="width:300px">
<div class="blockheader">[[{{{1}}}]]</div>
<div class="blockheader">[[{{{1}}}]]</div>
<div style="padding-left:5px">{{#if: {{{2|}}}|{{{2|}}}|{{#lst:{{{1}}}|feature}} }}</div>
<div style="padding-left:5px">{{#if: {{{2|}}}|{{{2|}}}|{{#ifexist: {{{1}}}|{{#lst:{{{1}}}|feature}} }} }}</div>
</td>
</td>
</tr>
</tr>
</table></includeOnly>
</table></includeOnly>

Latest revision as of 01:35, 21 May 2023

This template creates a reference card of a character. If no custom description is provided, the featured part of the character page is used for description.

Warning: the character card is a floating element and not to be used directly (doing so could mess with the page layout); instead, use Template:CharacterList

Usage:
{{CharacterCard | <character name> | <description> (optional) | portrait=<custom portrait suffix> (optional)}}