Template:PersonInfobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<div class="infobox">
{{Infobox
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
| title    = {{{name|{{PAGENAME}}}}}
 
| image    = {{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}
{{#if:{{{image|}}}|
| caption = {{{image_desc|}}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
| image2    = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|300px]]}}
 
| caption2 = {{{image2_desc|}}}
<table>
|header1 =
{{#if:{{{title|}}}|<tr>
| label1 = Title
    <th>Title</th>
|  data1 = {{{title|}}}
    <td>{{{title}}}</td>
| label2 = Alignment
</tr>}}
|  data2 = {{{alignment|}}}
 
| label3 = Ancestry
{{#if:{{{alignment|}}}|<tr>
|  data3 = {{{ancestry|}}}
    <th>Alignment</th>
| label5 = Gender
    <td>{{{alignment}}}</td>
|  data5 = {{{gender|}}}
</tr>}}
| label6 = Homeland
 
|  data6 = {{{homeland|}}}
{{#if:{{{ancestry|}}}|<tr>
| label7 = Affiliation
    <th>Ancestry</th>
|  data7 = {{{affiliation|}}}
    <td>{{{ancestry}}}</td>
| label8 = Deity
</tr>}}
|  data8 = {{{deity|}}}
 
| label9 = Class
{{#if:{{{gender|}}}|<tr>
|  data9 = {{{class|}}}
    <th>Gender</th>
| label10 = Status
    <td>{{{gender}}}</td>
|  data10 = {{{status|}}}
</tr>}}
}}
 
{{#if:{{{homeland|}}}|<tr>
    <th>Homeland</th>
    <td>{{{homeland}}}</td>
</tr>}}
 
{{#if:{{{affiliation|}}}|<tr>
    <th>Affiliation</th>
    <td>{{{affiliation}}}</td>
</tr>}}
 
 
{{#if:{{{deity|}}}|<tr>
    <th>Deity</th>
    <td>{{{Deity}}}</td>
</tr>}}
 
{{#if:{{{class|}}}|<tr>
    <th>Class</th>
    <td>{{{class}}}</td>
</tr>}}
 
{{#if:{{{status|}}}|<tr>
    <th>Status</th>
    <td>{{{status}}}</td>
</tr>}}
 
</table>
</div>

Revision as of 16:46, 28 July 2022