Template:DeityBox: Difference between revisions
No edit summary |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="InfoBox/styles.css" /> | |||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | <div class="infobox-title ib-deity">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | ||
<div class="infobox-image">[[File:{{{image}}}| | <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} | ||
<table>{{#if:{{{ | <table> | ||
<th> | {{#if:{{{Title|}}}|<tr> | ||
<td>{{{ | <th>Title(s)</th></tr> | ||
</tr>}}{{#if:{{{ | <tr><td>{{{Title}}}</td> | ||
<th> | </tr>}} | ||
<td>{{{ | {{#if:{{{Symbol|}}}|<tr> | ||
</tr>}}{{#if:{{{Alignment|}}}|<tr> | <th>Symbol</th></tr> | ||
<th>Alignment</th> | <tr><td>{{{Symbol}}}</td> | ||
<td>{{{Alignment}}}</td> | </tr>}} | ||
</tr>}}{{#if:{{{Portfolio|}}}|<tr> | {{#if:{{{Alignment|}}}|<tr> | ||
<th>Portfolio</th> | <th>Alignment</th></tr> | ||
<td>{{{Portfolio}}}</td> | <tr><td>{{{Alignment}}}</td> | ||
</tr>}}{{#if:{{{Favored weapon|}}}|<tr> | </tr>}} | ||
<th>Favored weapon</th> | {{#if:{{{Portfolio|}}}|<tr> | ||
<td>{{{Favored weapon}}}</td> | <th>Portfolio</th></tr> | ||
</tr>}}</table> | <tr><td>{{{Portfolio}}}</td> | ||
</tr>}} | |||
{{#if:{{{Favored weapon|}}}|<tr> | |||
<th>Favored weapon</th></tr> | |||
<tr><td>{{{Favored weapon}}}</td> | |||
</tr>}} | |||
</table> | |||
</div> | </div> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"description": "An infobox for deities and other divine entities, displaying their titles, holy symbols, alignments, portfolios, and favored weapons, shown at the top right of the page.", | |||
"format": "block", | |||
"params": { | |||
"title": { | |||
"label": "Name", | |||
"description": "The name of the deity. Defaults to the current page title if omitted.", | |||
"type": "string", | |||
"default": "{{PAGENAME}}", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "The filename of an image representing the deity or their holy symbol (e.g., HolySymbol.jpg). Do not include the 'File:' prefix.", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"Title": { | |||
"label": "Titles", | |||
"description": "The titles, epithets, or honorifics of the deity (e.g., The Dawnbringer).", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"Symbol": { | |||
"label": "Symbol", | |||
"description": "The holy symbol, icon, or sacred representation of the deity.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"Alignment": { | |||
"label": "Alignment", | |||
"description": "The ethical and moral alignment of the deity (e.g., Chaotic Good, Lawful Neutral).", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"Portfolio": { | |||
"label": "Portfolio", | |||
"description": "The domains, concepts, or aspects governed by the deity (e.g., Magic, Death).", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"Favored weapon": { | |||
"label": "Favored Weapon", | |||
"description": "The signature or preferred weapon of the deity.", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Latest revision as of 16:35, 16 July 2026
An infobox for deities and other divine entities, displaying their titles, holy symbols, alignments, portfolios, and favored weapons, shown at the top right of the page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | title | The name of the deity. Defaults to the current page title if omitted.
| String | suggested |
| Image | image | The filename of an image representing the deity or their holy symbol (e.g., HolySymbol.jpg). Do not include the 'File:' prefix. | File | suggested |
| Titles | Title | The titles, epithets, or honorifics of the deity (e.g., The Dawnbringer). | Content | suggested |
| Symbol | Symbol | The holy symbol, icon, or sacred representation of the deity. | Content | suggested |
| Alignment | Alignment | The ethical and moral alignment of the deity (e.g., Chaotic Good, Lawful Neutral). | String | suggested |
| Portfolio | Portfolio | The domains, concepts, or aspects governed by the deity (e.g., Magic, Death). | Content | suggested |
| Favored Weapon | Favored weapon | The signature or preferred weapon of the deity. | String | optional |