Jump to content

Template:DeityBox: Difference between revisions

From FC1
Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} <table>{{#if:{..."
 
No edit summary
 
(10 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}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{Symbol|}}}|<tr>
<table>
     <th>Symbol</th>
{{#if:{{{Title|}}}|<tr>
     <td>{{{Symbol}}}</td>
     <th>Title(s)</th></tr>
</tr>}}{{#if:{{{Colors|}}}|<tr>
     <tr><td>{{{Title}}}</td>
     <th>Colors</th>
</tr>}}
     <td>{{{Colors}}}</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

DeityBox

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Nametitle

The name of the deity. Defaults to the current page title if omitted.

Default
{{PAGENAME}}
Stringsuggested
Imageimage

The filename of an image representing the deity or their holy symbol (e.g., HolySymbol.jpg). Do not include the 'File:' prefix.

Filesuggested
TitlesTitle

The titles, epithets, or honorifics of the deity (e.g., The Dawnbringer).

Contentsuggested
SymbolSymbol

The holy symbol, icon, or sacred representation of the deity.

Contentsuggested
AlignmentAlignment

The ethical and moral alignment of the deity (e.g., Chaotic Good, Lawful Neutral).

Stringsuggested
PortfolioPortfolio

The domains, concepts, or aspects governed by the deity (e.g., Magic, Death).

Contentsuggested
Favored WeaponFavored weapon

The signature or preferred weapon of the deity.

Stringoptional