Difference between revisions of "Template:Infobox DeadCharData"

From BattleMaster Wiki
Jump to navigation Jump to search
m
m (Undo revision 152484 by Indirik (talk)wups, messed that up)
Line 13: Line 13:
 
|-  
 
|-  
 
| style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" | Class
 
| style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" | Class
| style="padding: 5px;" | {{{Class}}} {{#if: {{{Subclass|}}} |/ {{{Subclass}}}|}}{{#if: {{{Age|}}} |
+
| style="padding: 5px;" | {{{Class}}} {{#if: {{{Subclass|}}} |/ {{{Subclass}}}|}}
 +
{{#if: {{{Age|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Age
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Age
{{!}} style="padding: 5px;" {{!}} {{{Age}}} years|}}{{#if: {{{Honor|}}} |
+
{{!}} style="padding: 5px;" {{!}} {{{Age}}} years|}}
 +
{{#if: {{{Honor|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Honour
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Honour
{{!}} style="padding: 5px;" {{!}} {{{Honor}}}|}}{{#if: {{{Prestige|}}} |
+
{{!}} style="padding: 5px;" {{!}} {{{Honor}}}|}}
 +
{{#if: {{{Prestige|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Prestige
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Prestige
{{!}} style="padding: 5px;" {{!}} {{{Prestige}}}|}}{{#if: {{{Rank|}}} |
+
{{!}} style="padding: 5px;" {{!}} {{{Prestige}}}|}}
 +
{{#if: {{{Rank|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Rank
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Rank
{{!}} style="padding: 5px;" {{!}} {{{Rank}}}|}}{{#if: {{{Region|}}} |
+
{{!}} style="padding: 5px;" {{!}} {{{Rank}}}|}}
 +
{{#if: {{{Region|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Region
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Region
{{!}} style="padding: 5px;" {{!}} {{{Region}}}|}}{{#if: {{{Duchy|}}} |
+
{{!}} style="padding: 5px;" {{!}} {{{Region}}}|}}
 +
{{#if: {{{Duchy|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Duchy
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Duchy
{{!}} style="padding: 5px;" {{!}} {{{Duchy}}}|}}{{#if: {{{Realm|}}} |
+
{{!}} style="padding: 5px;" {{!}} {{{Duchy}}}|}}
 +
{{#if: {{{Realm|}}} |
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Realm
 
{{!}} style="padding: 5px; background: {{{SideColor|#ddf}}}; font-weight:bold;" {{!}} Realm

Revision as of 18:16, 26 May 2011

Template-info.svg Template Documentation
This documentation is transcluded from Template:Infobox DeadCharData/doc.

ExamplesSandbox

Intro

This template is for use on the character pages of dead characters. It matches the formatting and data presented in the semantic template for living characters: Template:Infobox CharData. The difference being that this template lets you specify all the data, because dead characters are not present in the external data feeds.

Usage

Simply copy the template sample given below, and provide whatever data you want to give. Anything you don't provide will be omitted completely.

 {{Infobox DeadCharData
 | Background = 
 | TitleColor = 
 | SideColor = 
 | Name = 
 | Banner = 
 | BannerTag = 
 | Continent = 
 | Family = 
 | Class = 
 | Subclass = 
 | Age = 
 | Honor = 
 | Prestige = 
 | Rank = 
 | Region = 
 | Duchy = 
 | Realm = 
 }}

Details

  • Background = Background color for the entire box. Defaults to #eee.
  • TitleColor = Background color for the character's name. Defaults to #ddf.
  • SideColor = Background color for the statistics tiles on the left side. Defaults to #cce.
  • Name = Character name. Required.
  • Banner = Optional image. See below.
  • BannerTag = Optional caption for the image. See below.
  • Continent = Island on which the character died.
  • Family = Character's family name. Will be semantically tagged with "part of".
  • Class = Characters main class at time of death.
  • Subclass = Optional subclass at time of death.
  • Age = Age at time of death.
  • Honor = Honor at time of death.
  • Prestige = Prestige at time of death.
  • Rank = Rank at time of death.
  • Region = Regional allegiance.
  • Duchy = Duchy allegiance.
  • Realm = Realm allegiance.


Colors

You can optionally specify background colors for the different areas of the infobox by using the Background, TitleColor, and SideColor parameters. You can use color names, or any valid color code used in HTML. Experiment with the different colors to get the effect desired.

Graphics

You can optionally include a graphic to be displayed between the character name and the statistics. The image must be uploaded to the wiki, you cannot use external graphics. Note that if you use a wide graphic, the entire box will be as wide as the graphic, and may look awkward. If you have a large graphic, you may not want to include it as part of the infobox. To add the graphic, and an optional caption, include the image name (only the name, do not include the "Image:" part) and optional caption using the "Banner" and "BannerTag" parameters.

Note
If you add a graphic, you must specify background colors, or all the backgrounds will be white.