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

From blackwiki
Jump to navigation Jump to search
imported>Gordon Ecker
m (shrinking "as a standard class" and "as an alternate class" labels)
imported>Frietjes
(move doc to doc)
Line 1: Line 1:
 
{{ infobox
 
{{ infobox
  
| title  = {{{name<includeonly>|{{PAGENAME}}</includeonly>}}}
+
| title  = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| image  = {{{image<includeonly>|</includeonly>}}}
+
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=frameless|alt={{{alt|}}}}}
| caption = {{{caption<includeonly>|</includeonly>}}}
+
| caption = {{{caption|}}}
 
| labelstyle = white-space: nowrap
 
| labelstyle = white-space: nowrap
  
| header1 = Characteristics
+
| header1 = {{#if:{{{role|}}}{{{secondaryrole|}}}{{{power|}}}{{{alignment|}}}|Characteristics}}
  
| label2  = {{#if:{{{secondaryrole<includeonly>|</includeonly>}}}|Primary r|R}}ole
+
| label2  = {{#if:{{{secondaryrole|}}}|Primary r|R}}ole
| data2  = {{{role<includeonly>|</includeonly>}}}
+
| data2  = {{{role|}}}
 
| label3  = Secondary role
 
| label3  = Secondary role
| data3  = {{{secondaryrole<includeonly>|</includeonly>}}}
+
| data3  = {{{secondaryrole|}}}
 
| label4  = Power source
 
| label4  = Power source
| data4  = {{{power<includeonly>|</includeonly>}}}
+
| data4  = {{{power|}}}
 
| label5  = Alignment
 
| label5  = Alignment
| data5  = {{{alignment<includeonly>|</includeonly>}}}
+
| data5  = {{{alignment|}}}
  
| header6 = {{#if:{{{first<includeonly>|</includeonly>}}}|Publication history}}
+
| header6 = {{#if:{{{editions|}}}{{{source|}}}{{{first|}}}|Publication history}}
  
 
| label7  = Editions
 
| label7  = Editions
| data7  = {{{editions<includeonly>|</includeonly>}}}
+
| data7  = {{{editions|}}}{{#if:{{{standardeditions|}}}{{{alternateeditions|}}}|<nowiki />}}
 
| label8  = <small>(as a standard class)</small>
 
| label8  = <small>(as a standard class)</small>
| data8  = {{{standardeditions<includeonly>|</includeonly>}}}
+
| data8  = {{{standardeditions|}}}
 
| label9  = <small>(as an alternate class)</small>
 
| label9  = <small>(as an alternate class)</small>
| data9  = {{{alternateeditions<includeonly>|</includeonly>}}}
+
| data9  = {{{alternateeditions|}}}
 
| label10 = Source books
 
| label10 = Source books
| data10  = {{{source<includeonly>|</includeonly>}}}
+
| data10  = {{{source|}}}
 
| label11 = First appearance
 
| label11 = First appearance
| data11  = {{{first<includeonly>|</includeonly>}}}
+
| data11  = {{{first|}}}
 
| label12 = Mythological origins
 
| label12 = Mythological origins
| data12  = {{{mythical<includeonly>|</includeonly>}}}
+
| data12  = {{{mythical|}}}
 
| label13 = Based on
 
| label13 = Based on
| data13  = {{{based<includeonly>|</includeonly>}}}
+
| data13  = {{{based|}}}
 
| label14 = Image
 
| label14 = Image
| data14  = {{#if:{{{wizards_image_URL<includeonly>|</includeonly>}}}|[{{{wizards_image_URL}}} Wizards.com image]}}
+
| data14  = {{#if:{{{wizards_image_URL|}}}|[{{{wizards_image_URL}}} Wizards.com image]}}
 
| label15 = Stats
 
| label15 = Stats
| data15  = {{#if:{{{OGL_stats_URL<includeonly>|</includeonly>}}}|[{{{OGL_stats_URL}}} OGL stats]}}
+
| data15  = {{#if:{{{OGL_stats_URL|}}}|[{{{OGL_stats_URL}}} OGL stats]}}
  
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Revision as of 14:03, 29 September 2013

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

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

Usage

{{{name}}}
[[File:{{{image}}}|frameless]]
{{{caption}}}
Publication history
Editions{{{editions}}}
(as a standard class){{{standardeditions}}}
(as an alternate class){{{alternateeditions}}}
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