Difference between revisions of "Template:Canon Deity"
Tarkisflux (talk | contribs) m (arraymapping campaing settings for linkage and category application) |
Tarkisflux (talk | contribs) m |
||
(3 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:# | + | ! colspan="2" style="background-color:#FCF9D3; font-size:120%; border: 1px solid black; padding:1em;" | {{{name|{{PAGENAME}}}}}{{#if: {{{image|}}}| |
{{!}}- | {{!}}- | ||
{{!}} 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|}}}| | + | {{#arraymap: {{{settings}}}|,|x|[[Canon:x|x]][[Category:x|{{BASEPAGENAME}}]]}}}}{{#if: {{{first|}}}| |
{{!}}- | {{!}}- | ||
{{!}} style="width:30%;" {{!}} | {{!}} style="width:30%;" {{!}} | ||
Line 56: | Line 56: | ||
{{!}} style="width:70%;" {{!}} | {{!}} style="width:70%;" {{!}} | ||
{{{myth}}}}} | {{{myth}}}}} | ||
− | |} | + | |}[[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
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.