Template:Infobox Character: Difference between revisions

The Emma M. Lion Wiki
added template date
added image box
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Use this info box for all characters in the series. Each parameter is optional, and will only be displayed if provided.
Use this info box for all characters in the series. Each parameter is optional, and will only be displayed if provided.
</noinclude>
</noinclude><includeonly>
{| class="infobox" style="width: 23em; text-align: left; border: 1px solid #ddd; background-color: #f9f9f9; font-size: 90%; float: right;"
{{Infobox|title={{{name}}}|type=character|
|+ align="center" style="font-size: 120%; font-weight: bold;" | {{{name}}}
{{#if:{{{image|}}}|{{IBR Picture|{{{image}}}|{{{caption|}}}}}}}
|-
{{#if:{{{alias|}}}|{{IBR|Alias|{{{alias}}}}}}}
| align="center" colspan="2" | {{#if:{{{image|}}}|[[File:{{{image}}}|250px|thumb|{{{caption|}}}]]}}
{{#if:{{{birthday|}}}|{{IBR|Born|{{Friendly Date|date={{{birthday}}} }} }} }}
|-
{{#if:{{{deathday|}}}|{{IBR|Died|{{Friendly Date|date={{{deathday}}} }} }} }}
| {{#if:{{{alias|}}}|'''Alias:''' {{{alias}}}}}
{{#if: {{{birthday|}}}
|-
| {{IBR|Age|{{#if: {{{deathday|}}}|{{Age|{{{birthday}}}|{{{deathday}}} }}|{{Age|{{{birthday}}} }} }} }}
| align="center" | {{#if:{{{birthday|}}}|&nbsp;{{Age|birthday={{{birthday}}}|deathdate={{{deathdate|}}}}}}}
| {{#if: {{{age|}}} | {{IBR|Age|{{{age}}} }} | }} }}
|-
{{#if:{{{gender|}}}|{{IBR|Gender|{{{gender}}}}}}}
| {{#if:{{{age_year|}}}|'''Age:''' {{{age_year}}}}}
{{#if:{{{family|}}}|{{IBR|Family|{{{family}}}}}}}
|-
{{#if:{{{occupation|}}}|{{IBR|Occupation|{{{occupation}}}}}}}
| {{#if:{{{gender|}}}|'''Gender:''' {{{gender}}}}}
{{#if:{{{resides|}}}|{{IBR|Resides|{{{resides}}}}}}}
|-
{{#if:{{{first_mentioned|}}}|{{IBR|First Mentioned|{{{first_mentioned}}}}}}}
| {{#if:{{{resides|}}}|'''Resides:''' {{{resides}}}}}
{{#if:{{{first_appearance|}}}|{{IBR|First Appearance|{{{first_appearance}}}}}}}
|-
}}</includeonly><noinclude>
| {{#if:{{{occupation|}}}|'''Occupation:''' {{{occupation}}}}}
|-
| {{#if:{{{family|}}}|'''Family:''' {{{family}}}}}
|-
| {{#if:{{{notable_relations|}}}|'''Notable Relations:''' {{{notable_relations}}}}}
|-
| {{#if:{{{first_appearance|}}}|<p style="margin: 0;">'''First Appearance:''' {{{first_appearance}}}</p> }}  
|-
| {{#if:{{{first_mentioned|}}}|<p style="margin: 0;">'''First Mentioned:''' {{{first_mentioned}}}</p> }}
|-
| {{#if:{{{lives_in|}}}|'''Lives In:''' {{{lives_in}}}}}
|}
<noinclude>
<templatedata>
<templatedata>
{
{
Line 64: Line 51:
             "required": false
             "required": false
         },
         },
         "deathdate": {
         "deathday": {
             "label": "Death Date",
             "label": "Death Date",
             "description": "The death date of the character. Optional.",
             "description": "The death date of the character. Optional.",
Line 70: Line 57:
             "required": false
             "required": false
         },
         },
         "age_year": {
         "age": {
             "label": "Age",
             "label": "Age",
             "description": "The age of the character. Use only if the birthday is not known.",
             "description": "The age of the character. Use only if the birthday is not known.",
Line 94: Line 81:
             "required": false
             "required": false
         },
         },
         "notable_relations": {
         "first_mentioned": {
             "label": "Notable Relations",
             "label": "First Mentioned",
             "description": "Notable relationships the character has (e.g., friends, enemies).",
             "description": "The first mention of the character in the series.",
             "type": "string",
             "type": "string",
             "required": false
             "required": false
Line 103: Line 90:
             "label": "First Appearance",
             "label": "First Appearance",
             "description": "The first appearance of the character in the series.",
             "description": "The first appearance of the character in the series.",
            "type": "string",
            "required": false
        },
        "first_mentioned": {
            "label": "First Mentioned",
            "description": "The first mention of the character in the series.",
            "type": "string",
            "required": false
        },
        "significant_events": {
            "label": "Significant Events",
            "description": "Key events that are notable in the character's life.",
            "type": "string",
            "required": false
        },
        "lives_in": {
            "label": "Lives In",
            "description": "Where the character lives.",
             "type": "string",
             "type": "string",
             "required": false
             "required": false
Line 127: Line 96:
}
}
</templatedata>
</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>
</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