Difference between revisions of "Template:Canon Deity"
Tarkisflux (talk | contribs) m (arraymapping campaing settings for linkage and category application) |
Tarkisflux (talk | contribs) m (only set setting category if setting is present) |
||
Line 56: | Line 56: | ||
{{!}} style="width:70%;" {{!}} | {{!}} style="width:70%;" {{!}} | ||
{{{myth}}}}} | {{{myth}}}}} | ||
− | |}{{#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> | + | |}{{#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> |
Revision as of 21:27, 18 June 2011
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
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.