Template:Deity: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Titles|Pantheon|Portfolio|Worshippers|Edicts|Anathema|Alignments (label=Follower Alignments)|DivineFont (label=Divine Font)|DivineSkill (label=Divine Skill)|FavoredWeapon (label=Favored Weapon)|Domains (label=Domains)|Spells (label=Cleric Spells)|isMaster|headerImage|sideImage}}
{{#template_params:Titles|Pantheon|Portfolio|Worshippers|Edicts|Anathema|Alignments (label=Follower Alignments)|DivineFont (label=Divine Font)|DivineSkill (label=Divine Skill)|FavoredWeapon (label=Favored Weapon)|Domains (label=Domains)|Spells (label=Cleric Spells)|isMaster|headerImage|sideImage}}
{{#cargo_declare:_table=Deities|Titles=List (,) of String|Pantheon=Wikitext|Portfolio=Wikitext|Worshippers=Wikitext|Edicts=Wikitext|Anathema=Wikitext|Alignments=String|DivineFont=String (allowed values=heal,harm,harm or heal)|DivineSkill=String|FavoredWeapon=String|Domains=Wikitext|Spells=Wikitext}}
{{#cargo_declare:_table=Deities|Name=String|Titles=List (,) of String|Pantheon=Wikitext|Portfolio=Wikitext|Worshippers=Wikitext|Edicts=Wikitext|Anathema=Wikitext|Alignments=String|DivineFont=String (allowed values=heal,harm,harm or heal)|DivineSkill=String|FavoredWeapon=String|Domains=Wikitext|Spells=Wikitext}}
</noinclude><includeonly>{{#if:{{{isMaster|}}}|{{#cargo_store:_table=Deities}}
</noinclude><includeonly>{{#if:{{{isMaster|}}}|{{#cargo_store:_table=Deities|Name={{SUBPAGENAME}}}}
<yambe:breadcrumb>Deities</yambe:breadcrumb>}}{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
<yambe:breadcrumb>Deities</yambe:breadcrumb>}}{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
{{#if:{{{isMaster|}}}|<infobox layout="stacked">
{{#if:{{{isMaster|}}}|<infobox layout="stacked">
<navigation>
<navigation>
<h3>{{PAGENAME}}</h3>
<h3>{{PAGENAME}}</h3>
{{#if:{{{sideImage|}}}|[[Image:{{{sideImage}}}|class=fullwidth]]}}{{#if:{{{Titles|}}}{{{Pantheon|}}}{{{Portfolio|}}}{{{Worshippers|}}}|<p style="background-color:var(--color-surface-3);">Basic information</p>}}{{#if:{{{Titles|}}}|'''Title(s):''' {{{Titles}}}<br>}}{{#if:{{{Pantheon|}}}|'''Pantheon:''' {{{Pantheon}}}<br>}}{{#if:{{{Portfolio|}}}|'''Portfolio:''' {{{Portfolio}}}<br>}}{{#if:{{{Worshippers|}}}|'''Worshippers:''' {{{Worshippers}}}<br>}}{{#if:{{{DivineFont|}}}{{{DivineSkill|}}}{{{FavoredWeapon|}}}{{{Domains|}}}{{{Spells|}}}|<p style="background-color:var(--color-surface-3);">Statistics</p>}}{{#if:{{{DivineFont|}}}|'''Divine Font:''' ''{{{DivineFont}}}''<br>}}{{#if:{{{DivineSkill|}}}|'''Divine Skill:''' ''{{{DivineSkill}}}''<br>}}{{#if:{{{FavoredWeapon|}}}|'''Favored Weapon:''' {{{FavoredWeapon}}}<br>}}{{#if:{{{Domains|}}}|'''Domains:''' {{{Domains}}}<br>}}{{#if:{{{Spells|}}}|'''Cleric Spells:''' {{{Spells}}}}}
{{#if:{{{sideImage|}}}|[[Image:{{{sideImage}}}|class=fullwidth]]}}{{#if:{{{Titles|}}}{{{Pantheon|}}}{{{Portfolio|}}}{{{Worshippers|}}}|<p class="infoboxHeader">Basic information</p>}}{{#if:{{{Titles|}}}|<span style="display: inline-block; vertical-align: top;">'''Title(s):'''&nbsp;</span><span style="display: inline-block; vertical-align: top;">{{#arraymap:{{{Titles}}}|,|x|x|,<br>}}</span><br>}}{{#if:{{{Pantheon|}}}|'''Pantheon:''' {{{Pantheon}}}<br>}}{{#if:{{{Portfolio|}}}|'''Portfolio:''' {{{Portfolio}}}<br>}}{{#if:{{{Worshippers|}}}|'''Worshippers:''' {{{Worshippers}}}<br>}}{{#if:{{{DivineFont|}}}{{{DivineSkill|}}}{{{FavoredWeapon|}}}{{{Domains|}}}{{{Spells|}}}|<p class="infoboxHeader">Statistics</p>}}{{#if:{{{DivineFont|}}}|'''Divine Font:''' ''{{{DivineFont}}}''<br>}}{{#if:{{{DivineSkill|}}}|'''Divine Skill:''' ''{{{DivineSkill}}}''<br>}}{{#if:{{{FavoredWeapon|}}}|'''Favored Weapon:''' {{{FavoredWeapon}}}<br>}}{{#if:{{{Domains|}}}|'''Domains:''' {{{Domains}}}<br>}}{{#if:{{{Spells|}}}|'''Cleric Spells:''' {{{Spells}}}}}
</navigation>
</navigation>
</infobox>}}
</infobox>}}

Latest revision as of 11:35, 11 June 2023

This is the "Deity" template.

It should be called in the following format:

{{Deity
|Titles=
|Pantheon=
|Portfolio=
|Worshippers=
|Edicts=
|Anathema=
|Alignments=
|DivineFont=
|DivineSkill=
|FavoredWeapon=
|Domains=
|Spells=
|isMaster=
|headerImage=
|sideImage=
}}

Edit the page to see the template text.

This template defines the table "Deities". View table.