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

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(recat)
imported>Oknazevad
(Removed image and OGL stats links. Inappropriate use of external links per WP:EL, and 5e is also OGL-licensed, so it's misleading for it to be only the 3.5 version.)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%" cellspacing="2"
+
{{Infobox
|-
 
! style="font-size: 115%;" align="center" colspan="2" | '''''[[Dungeons & Dragons|D&D]]'' [[:Category:Dungeons & Dragons character classes|character class''']]
 
|-
 
! style="background-color: #000000; color: #FFFFFF; font-size: 120%;" align="center" colspan="2" | {{{name}}}
 
|-
 
{{#if:{{{editions|}}} |
 
{{!}} '''Editions''' {{!}}{{!}} {{{editions}}}
 
}}
 
|-
 
{{#if:{{{role|}}} |
 
{{!}} '''Role''' {{!}}{{!}} {{{role}}}
 
}}
 
|-
 
{{#if:{{{power|}}} |
 
{{!}} '''Power source''' {{!}}{{!}} {{{power}}}
 
}}
 
|-
 
{{#if:{{{alignment|}}} |
 
{{!}} '''Alignment''' {{!}}{{!}} {{{alignment}}}
 
}}
 
|-
 
{{#if:{{{source|}}} |
 
{{!}} '''Source books''' {{!}}{{!}} {{{source}}}
 
}}
 
|-
 
{{#if:{{{first|}}} |
 
{{!}} '''First appearance''' {{!}}{{!}} {{{first}}}
 
}}
 
|-
 
{{#if:{{{mythical|}}} |
 
{{!}} '''Mythological origins''' {{!}}{{!}} {{{mythical}}}
 
}}
 
|-
 
{{#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>
 
{{-}}
 
<nowiki>{{</nowiki>Infobox D&D creature
 
  |name=
 
  |editions=
 
  |role=
 
  |power=
 
  |alignment=
 
  |source=
 
  |first=
 
  |mythical=
 
  |based=
 
  |wizards_image_URL=
 
  |OGL_stats_URL=
 
}}
 
  
[[Category:Dungeons & Dragons templates|D&D character class]]
+
| title  = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
</noinclude>
+
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 +
| caption = {{{caption|}}}
 +
| labelstyle = white-space: nowrap
 +
 
 +
| header1 = A ''Dungeons & Dragons'' character class
 +
 
 +
| header6 = {{#if:{{{editions|}}}{{{source|}}}{{{first|}}}|Publication history}}
 +
 
 +
| label7 = First appearance
 +
| data7 = {{{first|}}}
 +
| label8  = Editions
 +
| data8  = {{{editions|}}}{{#if:{{{standardeditions|}}}{{{alternateeditions|}}}|<nowiki />}}
 +
| label9 = <small>(as a standard class)</small>
 +
| data9 = {{{standardeditions|}}}
 +
| label10  = <small>(as an alternate class)</small>
 +
| data10  = {{{alternateeditions|}}}
 +
| label11 = Source books
 +
| data11  = {{{source|}}}
 +
| label12 = Mythological origins
 +
| data12  = {{{mythical|}}}
 +
| label13 = Based on
 +
| data13  = {{{based|}}}
 +
 
 +
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 18:03, 29 March 2019

A Dungeons & Dragons character class

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

Usage

{{{name}}}
[[File:{{{image}}}|frameless]]
{{{caption}}}
A Dungeons & Dragons character class
Publication history
First appearance{{{first}}}
Editions{{{editions}}}
(as a standard class){{{standardeditions}}}
(as an alternate class){{{alternateeditions}}}
Source books{{{source}}}
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