Template:Infobox Character: Difference between revisions

The Emma M. Lion Wiki
No edit summary
added image box
 
(35 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="border:1px solid #ccc; background-color:#f9f9f9; width:300px; padding:10px; float:right; margin-left:10px;">
<noinclude>
  <strong>{{{name|Unknown}}}</strong>
Use this info box for all characters in the series. Each parameter is optional, and will only be displayed if provided.
  <table style="width:100%; font-size:90%; border:none;">
</noinclude><includeonly>
    <tr><td><strong>Alias</strong></td><td>{{{alias|Unknown}}}</td></tr>
{{Infobox|title={{{name}}}|type=character|
    <tr><td><strong>Occupation</strong></td><td>{{{age|Unknown}}}</td></tr>
{{#if:{{{image|}}}|{{IBR Picture|{{{image}}}|{{{caption|}}}}}}}
    <tr><td><strong>Related To</strong></td><td>{{{related_to|Unknown}}}</td></tr>
{{#if:{{{alias|}}}|{{IBR|Alias|{{{alias}}}}}}}
    <tr><td><strong>First Appearance</strong></td><td>{{{first_appearance|Unknown}}}</td></tr>
{{#if:{{{birthday|}}}|{{IBR|Born|{{Friendly Date|date={{{birthday}}} }} }} }}
  </table>
{{#if:{{{deathday|}}}|{{IBR|Died|{{Friendly Date|date={{{deathday}}} }} }} }}
</div>
{{#if: {{{birthday|}}}
| {{IBR|Age|{{#if: {{{deathday|}}}|{{Age|{{{birthday}}}|{{{deathday}}} }}|{{Age|{{{birthday}}} }} }} }}
| {{#if: {{{age|}}} | {{IBR|Age|{{{age}}} }} | }} }}
{{#if:{{{gender|}}}|{{IBR|Gender|{{{gender}}}}}}}
{{#if:{{{family|}}}|{{IBR|Family|{{{family}}}}}}}
{{#if:{{{occupation|}}}|{{IBR|Occupation|{{{occupation}}}}}}}
{{#if:{{{resides|}}}|{{IBR|Resides|{{{resides}}}}}}}
{{#if:{{{first_mentioned|}}}|{{IBR|First Mentioned|{{{first_mentioned}}}}}}}
{{#if:{{{first_appearance|}}}|{{IBR|First Appearance|{{{first_appearance}}}}}}}
}}</includeonly><noinclude>
<templatedata>
{
    "description": "Infobox for characters in the series. Displays information such as name, image, alias, birthday, and more.",
    "params": {
        "name": {
            "label": "Name",
            "description": "The name of the character (mandatory for the title, but can be left empty).",
            "type": "string",
            "required": true
        },
        "image": {
            "label": "Image",
            "description": "The image file for the character (e.g., 'CharacterImage.png').",
            "type": "string",
            "required": false
        },
        "caption": {
            "label": "Caption",
            "description": "A caption for the image.",
            "type": "string",
            "required": false
        },
        "alias": {
            "label": "Alias",
            "description": "Any known aliases of the character. Optional.",
            "type": "string",
            "required": false
        },
        "birthday": {
            "label": "Birthday",
            "description": "The birth date of the character. Optional.",
            "type": "string",
            "required": false
        },
        "deathday": {
            "label": "Death Date",
            "description": "The death date of the character. Optional.",
            "type": "string",
            "required": false
        },
        "age": {
            "label": "Age",
            "description": "The age of the character. Use only if the birthday is not known.",
            "type": "string",
            "required": false
        },
        "resides": {
            "label": "Resides",
            "description": "The location where the character resides.",
            "type": "string",
            "required": false
        },
        "occupation": {
            "label": "Occupation",
            "description": "The character's occupation.",
            "type": "string",
            "required": false
        },
        "family": {
            "label": "Family",
            "description": "Information about the character's family.",
            "type": "string",
            "required": false
        },
        "first_mentioned": {
            "label": "First Mentioned",
            "description": "The first mention of the character in the series.",
            "type": "string",
            "required": false
        },
        "first_appearance": {
            "label": "First Appearance",
            "description": "The first appearance of the character in the series.",
            "type": "string",
            "required": false
        }
    }
}
</templatedata>
 
'''Example'''
<pre>
{{Infobox Character
| name            = Emma M. Lion
| alias          =
| gender          =  Female
| birthday        = 1863-01-13
| family      = Declan Lion (father), Mirabel Lion (mother), [[Arabella Spencer]] (cousin), [[Damian Spencer]] (cousin), [[Lady Eugenia Spencer|Aunt Eugenia]] (aunt)
| first_appearance= {{Journal ref text|3|5|1883}}
| occupation =
| resides = [[Lapis Lazuli House]]
}}
</pre>
{{Infobox Character
| name            = Emma M. Lion
| alias          =
| gender          =  Female
| birthday        = 1863-01-13
| family      = Declan Lion (father), Mirabel Lion (mother), [[Arabella Spencer]] (cousin), [[Damian Spencer]] (cousin), [[Lady Eugenia Spencer|Aunt Eugenia]] (aunt)
| first_appearance= {{Journal ref text|3|5|1883}}
| occupation =
| resides = [[Lapis Lazuli House]]
}}
</noinclude>

Latest revision as of 04:50, 7 February 2025

Use this info box for all characters in the series. Each parameter is optional, and will only be displayed if provided.

Infobox for characters in the series. Displays information such as name, image, alias, birthday, and more.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

The name of the character (mandatory for the title, but can be left empty).

Stringrequired
Imageimage

The image file for the character (e.g., 'CharacterImage.png').

Stringoptional
Captioncaption

A caption for the image.

Stringoptional
Aliasalias

Any known aliases of the character. Optional.

Stringoptional
Birthdaybirthday

The birth date of the character. Optional.

Stringoptional
Death Datedeathday

The death date of the character. Optional.

Stringoptional
Ageage

The age of the character. Use only if the birthday is not known.

Stringoptional
Residesresides

The location where the character resides.

Stringoptional
Occupationoccupation

The character's occupation.

Stringoptional
Familyfamily

Information about the character's family.

Stringoptional
First Mentionedfirst_mentioned

The first mention of the character in the series.

Stringoptional
First Appearancefirst_appearance

The first appearance of the character in the series.

Stringoptional

Example

{{Infobox Character
| name            = Emma M. Lion
| alias           = 
| gender          =  Female
| birthday        = 1863-01-13
| family      = Declan Lion (father), Mirabel Lion (mother), [[Arabella Spencer]] (cousin), [[Damian Spencer]] (cousin), [[Lady Eugenia Spencer|Aunt Eugenia]] (aunt)
| first_appearance= {{Journal ref text|3|5|1883}}
| occupation = 
| resides = [[Lapis Lazuli House]]
}}
Emma M. Lion
Born January 13, 1863
Age 21
Gender Female
Family Declan Lion (father), Mirabel Lion (mother), Arabella Spencer (cousin), Damian Spencer (cousin), Aunt Eugenia (aunt)
Resides Lapis Lazuli House
First Appearance Mar. 5, 1883