Difference between revisions of "Template:Infobox D&D character class"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(split docs)
imported>Thumperward
(convert to {{infobox}}. if there are any issues with this code drop, before reverting please let me know and I'll try to fix them quickly)
Line 1: Line 1:
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%" cellspacing="2"
+
{{ infobox
|-
+
| title  = {{{name<includeonly>|{{PAGENAME}}</includeonly>}}}
! style="font-size: 115%;" align="center" colspan="2" | '''''[[Dungeons & Dragons|D&D]]'' [[:Category:Dungeons & Dragons character classes|character class''']]
+
| above  = ''[[Dungeons & Dragons]]'' [[:category:Dungeons & Dragons character classes|character class]]
|-
+
| image  = {{{image<includeonly>|</includeonly>}}}
! style="background-color: #000000; color: #FFFFFF; font-size: 120%;" align="center" colspan="2" | {{{name}}}
+
| caption = {{{caption<includeonly>|</includeonly>}}}
|-
+
 
{{#if:{{{editions|}}} |
+
| header1 = Characteristics
{{!}} '''Editions''' {{!}}{{!}} {{{editions}}}
+
 
}}
+
| label2  = Role
|-
+
| data2  = {{{role<includeonly>|</includeonly>}}}
{{#if:{{{role|}}} |
+
| label3  = Power source
{{!}} '''Role''' {{!}}{{!}} {{{role}}}
+
| data3  = {{{power<includeonly>|</includeonly>}}}
}}
+
| label4  = Alignment
|-
+
| data4  = {{{alignment<includeonly>|</includeonly>}}}
{{#if:{{{power|}}} |
+
 
{{!}} '''Power source''' {{!}}{{!}} {{{power}}}
+
| header5 = {{#if:{{{first<includeonly>|</includeonly>}}}|Publication history}}
}}
+
 
|-
+
| label6  = Editions
{{#if:{{{alignment|}}} |
+
| data6  = {{{editions<includeonly>|</includeonly>}}}
{{!}} '''Alignment''' {{!}}{{!}} {{{alignment}}}
+
| label7  = Source books
}}
+
| data7  = {{{source<includeonly>|</includeonly>}}}
|-
+
| label8  = First appearance
{{#if:{{{source|}}} |
+
| data8  = {{{first<includeonly>|</includeonly>}}}
{{!}} '''Source books''' {{!}}{{!}} {{{source}}}
+
| label9  = Mythological origins
}}
+
| data9  = {{{mythical<includeonly>|</includeonly>}}}
|-
+
| label10 = Based on
{{#if:{{{first|}}} |
+
| data10  = {{{based<includeonly>|</includeonly>}}}
{{!}} '''First appearance''' {{!}}{{!}} {{{first}}}
+
| label11 = Image
}}
+
| data11  = {{#if:{{{wizards_image_URL<includeonly>|</includeonly>}}}|[{{{wizards_image_URL}}} Wizards.com image]}}
|-
+
| label12 = Stats
{{#if:{{{mythical|}}} |
+
| data12  = {{#if:{{{OGL_stats_URL<includeonly>|</includeonly>}}}|[{{{OGL_stats_URL}}} OGL stats]}}
{{!}} '''Mythological origins''' {{!}}{{!}} {{{mythical}}}
+
 
}}
+
}}<noinclude>{{documentation}}</noinclude>
|-
 
{{#if:{{{based|}}} |
 
{{!}} '''Based on''' {{!}}{{!}} {{{based}}}
 
}}
 
|-
 
{{#if:{{{wizards_image_URL|}}} |
 
{{!}} '''Image''' {{!}}{{!}}[{{{wizards_image_URL}}} Wizards.com image]
 
}}
 
|-
 
{{#if:{{{OGL_stats_URL|}}} |
 
{{!}} '''Stats''' {{!}}{{!}}[{{{OGL_stats_URL}}} OGL stats]
 
}}
 
|-
 
|}<noinclude>{{documentation}}</noinclude>
 

Revision as of 16:54, 9 September 2008

{{{name}}}
Dungeons & Dragons character class
{{{image}}}
{{{caption}}}
Characteristics
Role{{{role}}}
Power source{{{power}}}
Alignment{{{alignment}}}
Publication history
Editions{{{editions}}}
Source books{{{source}}}
First appearance{{{first}}}
Mythological origins{{{mythical}}}
Based on{{{based}}}
Image[{{{wizards_image_URL}}} Wizards.com image]
Stats[{{{OGL_stats_URL}}} OGL stats]

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

{{{name}}}
Dungeons & Dragons character class
{{{image}}}
{{{caption}}}
Characteristics
Publication history
Editions{{{editions}}}
Source books{{{source}}}
First appearance{{{first}}}
Mythological origins{{{mythical}}}
Based on{{{based}}}
[[Category:Infobox templates|Template:Remove first word]]

All fields except name are optional.

{{infobox D&D character class
| name              = <!-- Class name or names -->
| image             = 
| caption           = 
| editions          = <!-- All editions the class has appeared in -->
| standardeditions  = <!-- Editions as a standard class -->
| alternateeditions = <!-- Editions as an alternate class -->
| source            = <!-- Sourcebooks the class is presented in -->
| first             = <!-- First appearance of the class -->
| mythical          = <!-- Mythological basis of the class -->
| based             = <!-- Other creative origins of the class -->
}}
Edition parameters

If a class has only appeared as a standard class, only use the standardeditions parameter. If a class has only appeared as an alternate class, only use the alternateeditions paremeter. If a class has appeared in all editions, but was an alternate class in some of them, use both the editions and alternateeditions parameters. If a class has appeared as both a standard and alternate class but has not appeared in all editions, use the standardeditions and alternateeditions.

See also