Difference between revisions of "Template:Canon Deity"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (only set setting category if setting is present)
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{| class="infobox toccolours" style="font-size:89%; width:300px;"
 
<includeonly>{| class="infobox toccolours" style="font-size:89%; width:300px;"
 
|-
 
|-
! colspan="2" style="background-color:#003F87; color:#D2C080; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}{{#if: {{{image|}}}|&nbsp;
+
! colspan="2" style="background-color:#FCF9D3; font-size:120%; border: 1px solid black; padding:1em;" | {{{name|{{PAGENAME}}}}}{{#if: {{{image|}}}|&nbsp;
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
 
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
Line 45: Line 45:
 
'''Settings:'''
 
'''Settings:'''
 
{{!}} style="width:70%;" {{!}}
 
{{!}} style="width:70%;" {{!}}
{{#arraymap: {{{settings}}}|,|x|[[Canon:x|x]]}}}}{{#if: {{{first|}}}|&nbsp;
+
{{#arraymap: {{{settings}}}|,|x|[[Canon:x|x]][[Category:x|{{BASEPAGENAME}}]]}}}}{{#if: {{{first|}}}|&nbsp;
 
{{!}}-
 
{{!}}-
 
{{!}} style="width:30%;" {{!}}
 
{{!}} style="width:30%;" {{!}}
Line 56: Line 56:
 
{{!}} style="width:70%;" {{!}}
 
{{!}} style="width:70%;" {{!}}
 
{{{myth}}}}}
 
{{{myth}}}}}
|}{{#if: {{{settings|}}}|{{#arraymap: {{{settings}}}|,|x|[[Category:x|x]]}}}}[[Category:Deity]]</includeonly><noinclude>{{documentation}}<!-- please add links to categories and other languages to the /doc page, not here! --></noinclude>
+
|}[[Category:Deity|{{BASEPAGENAME}}]]</includeonly><noinclude>{{documentation}}<!-- please add links to categories and other languages to the /doc page, not here! --></noinclude>

Latest revision as of 06:16, 31 July 2011

Template documentation (for the above template, sometimes hidden or invisible)

Contents

This infobox is for deities found in the Dungeons & Dragons roleplaying game. This infobox should be used for all D&D deities, even those tied to a specific campaign setting. This infobox may also be used for other beings of near-deity status, such as demon lords, archdevils, archomentals, and the like.

Usage[edit]

This code:

{{Canon Deity
|name=
|image=
|caption=
|title=
|alias=
|home=
|power=
|alignment=
|portfolio=
|domains=
|settings=
|first=
|myth=
}}

will result in the infobox shown on the right. The various property fields should be filled in with the relevant information. They all support wiki links except for the settings field.

Text in the settings field should be a comma separated list of the campaign settings where this deity is used, and will turn into links and category additions automatically. Note that this is a case sensitive field, so please capitalize the campaign setting name appropriately.


Visit Template:Canon Deity/doc to edit this text! (How does this work?)