xevv/templates/iboxperson.mdwn

97 lines
2.8 KiB
Markdown

[[!templatebody <<ENDBODY
<div class="ibox">
<h4 class="ibox-head">
[[!color
foreground=<TMPL_IF colorfg><TMPL_VAR raw_colorfg><TMPL_ELSE>black</TMPL_IF>
background=<TMPL_IF colorbg><TMPL_VAR raw_colorbg><TMPL_ELSE>white</TMPL_IF>
text="<TMPL_VAR name>"]]
</h4>
<TMPL_IF image>
<img class="ibox-img" src="<TMPL_VAR image>"/>
</TMPL_IF>
<table class="ibox-table">
<tbody>
<TMPL_IF first>
<tr><td><b>First appearance</b></td><td><TMPL_VAR first></td></tr>
</TMPL_IF>
<TMPL_IF basedon>
<tr><td><b>Based on</b></td><td><TMPL_VAR basedon></td></tr>
</TMPL_IF>
<TMPL_IF nickname>
<tr><td><b>Nickname</b></td><td><TMPL_VAR nickname></td></tr>
</TMPL_IF>
<TMPL_IF nicknames>
<tr><td><b>Nicknames</b></td><td><TMPL_VAR nicknames></td></tr>
</TMPL_IF>
<TMPL_IF species>
<tr><td><b>Species</b></td><td><TMPL_VAR species></td></tr>
</TMPL_IF>
<TMPL_IF gender>
<tr><td><b>Gender</b></td><td><TMPL_VAR gender></td></tr>
</TMPL_IF>
<TMPL_IF class>
<tr><td><b>Class</b></td><td><TMPL_VAR class></td></tr>
</TMPL_IF>
<TMPL_IF affiliation>
<tr><td><b>Affiliation</b></td><td><TMPL_VAR affiliation></td></tr>
</TMPL_IF>
<TMPL_IF origin>
<tr><td><b>Origin</b></td><td><TMPL_VAR origin></td></tr>
</TMPL_IF>
<TMPL_IF born>
<tr><td><b>Born</b></td><td><TMPL_VAR born></td></tr>
</TMPL_IF>
<TMPL_IF height>
<tr><td><b>Height</b></td><td><TMPL_VAR height>dm</td></tr>
</TMPL_IF>
<TMPL_IF weight>
<tr><td><b>Weight</b></td><td><TMPL_VAR weight>kg</td></tr>
</TMPL_IF>
<TMPL_IF parent>
<tr><td><b>Parent</b></td><td><TMPL_VAR parent></td></tr>
</TMPL_IF>
<TMPL_IF parents>
<tr><td><b>Parents</b></td><td><TMPL_VAR parents></td></tr>
</TMPL_IF>
</tbody>
</table>
</div>
ENDBODY]]
This template is a simple info box for people or characters.
Parameters:
| Name | Description |
| ---- | ----------- |
| name | Required. Name of the person. |
| colorfg | The foreground color for the name. Defaults to black. |
| colorbg | The background color for the name. Defaults to white. |
| image | Image to be displayed below the name. |
| first | Where the character first appeared. |
| basedon | What the character is based on. |
| nickname(s) | Nick name(s) of the person. |
| species | Species of the character. |
| gender | Gender of the person. |
| class | In games, what class the character is. |
| affiliation | Who the character is affiliated with. |
| origin | Origin point of the character. |
| born | When the character was born, and their original name, if any. |
| height | The height of the person, in decimeters. |
| weight | The weight of the person, in kilograms. |
| parent(s) | The parent(s) of the character. |
Example usage:
\[[!sidebar content="""
[[!template
id=iboxperson
name="John Doe"
image="/xevv/images/noimage.png"
first="Spingy Bingus"
basedon="Jane Doe"
nickname=Joe
height=42
weight=800]]
"""]]