Template:Infobox: Difference between revisions

From Daniel Larson Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude><!-- Do not change the formatting of the code! It makes the infobox look weird for some reason! ---> </noinclude>
<noinclude><!-- Do not change the formatting of the code! It makes the infobox look weird for some reason! ---> </noinclude>


<div class="infobox" style="float:right; min-width: 22em; max-width: {{{maxwidth|280px}}}; font-size: 88%; line-height: 1.5em; margin: 5px; text-align: left;  
<div class="infobox" style="float:right; min-width: 22em; max-width: {{{maxwidth|280px}}}; font-size: 88%; line-height: 1.5em; margin: 5px; text-align: left; border: 1px solid #aaa; background-color: #f9f9f9;">
    <div style="font-size: 110%; font-weight: bold; background-color: #ccc; text-align: center; padding: 5px 0;">{{{infoboxHeader|{{PAGENAME}}}}}</div>
    <div style="margin: 0 5px 5px;>
        {{#if: {{{image|}}} |
            <div style="margin: 5px 0 0; text-align: center;">[[File:{{{image}}}|270px]]</div>
        }}
        <div style="{{#if: {{{imageDesc|}}} | | display: none; }}">
            <small><div style="margin: 5px 0 0; padding: 0 2px 0; text-align: center; max-width:270px">''{{{imageDesc}}}''</div></small>
        </div>
        <div style="{{#if: {{{name|}}} | | display: none; }}">
            <div style="margin: 5px 0 0; padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Name</b>: {{{name}}}</div>
        </div>
        <div style="{{#if: {{{Knownas|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Aliases</b>: {{{Knownas}}}</div>
        </div>
        <div style="{{#if: {{{timeActive|}}} | | display: none; }}">
            <div style="margin: 5px 0 0; text-align: center; border-top: 1px solid #aaa;">'''Time Active''': {{{timeActive}}}</div>
        </div>
        <div style="{{#if: {{{Alignment|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Alignment</b>: {{{Alignment}}}{{#ifeq: {{{Alignment}}}|Management|[[Category:Management]]|}}{{#ifeq: {{{Alignment}}}|Manager|[[Category:Management]]|}}{{#ifeq: {{{Alignment}}}|Troll|[[Category:Trolls]]|}}{{#ifeq: {{{Alignment}}}|Enabler|[[Category:Enablers]]|}}{{#ifeq: {{{Alignment}}}|White Knight|[[Category:Enablers]]|}}</div>
        </div>
        <div style="{{#if: {{{DOB|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>DOB</b>: {{{DOB}}}</div>
        </div>
        <div style="{{#if: {{{Gender|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Gender</b>: {{{Gender}}}</div>
        </div>
        <div style="{{#if: {{{Race|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Race</b>: {{{Race}}}</div>
        </div>
        <div style="{{#if: {{{Nationality|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Nationality</b>: {{{Nationality}}}</div>
        </div>
        <div style="{{#if: {{{HeightnWeight|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Height and Weight</b>: {{{HeightnWeight}}}</div>
        </div>
        <div style="{{#if: {{{Parents|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Parents</b>: {{{Parents}}}</div>
        </div>
        <div style="{{#if: {{{Siblings|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Siblings</b>: {{{Siblings}}}</div>
        </div>
        <div style="{{#if: {{{signature|}}} | | display: none; }}">
            <div style="margin: 5px 0 0; text-align: center; border-top: 1px solid #aaa;">'''Signature''':<br>[[File:Daniel Larson Signature.png|160px]]</br></div>
        </div>
        <div style="{{#if: {{{signature|}}} | | display: none; }}">
            <div style="margin: 5px 0 0; text-align: center; border-top: 1px solid #aaa;">'''Arcs Involved''': {{{Arcs}}}</div>
        </div>
    </div>
</div>
<noinclude>
<templatedata>
<templatedata>
{
{
Line 84: Line 134:
"example": "#'#\" (# cm), # lbs (# kg)"
"example": "#'#\" (# cm), # lbs (# kg)"
},
},
"Siblings": {}
"Siblings": {},
"signature": {
"example": "Signature.jpg",
"type": "wiki-file-name"
},
"timeActive": {
"label": "Time Active",
"description": "When this person was active",
"example": "April 3rd, 2023 - June 5th, 2143",
"suggested": true
},
"Arcs": {
"description": "The arcs in which this person was active during, listed in chronological order. If a person is active for the entirety of an Era, just list that Era instead of each individual arc.",
"type": "string",
"required": true,
"suggested": true
}
},
},
"description": "This is a template meant to easily display information about a given person/character",
"description": "This is a template meant to easily display information about a given person/character",
Line 94: Line 160:
"name",
"name",
"Knownas",
"Knownas",
"timeActive",
"Alignment",
"Alignment",
"DOB",
"DOB",
Line 101: Line 168:
"Gender",
"Gender",
"Parents",
"Parents",
"Siblings"
"Siblings",
"signature",
"Arcs"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 02:43, 8 February 2024


Infobox
{{{imageDesc}}}
Name: {{{name}}}
Aliases: {{{Knownas}}}
Time Active: {{{timeActive}}}
Alignment: {{{Alignment}}}
DOB: {{{DOB}}}
Gender: {{{Gender}}}
Race: {{{Race}}}
Nationality: {{{Nationality}}}
Height and Weight: {{{HeightnWeight}}}
Parents: {{{Parents}}}
Siblings: {{{Siblings}}}
Signature:
Daniel Larson Signature.png
Arcs Involved: {{{Arcs}}}

This is a template meant to easily display information about a given person/character

Template parameters

ParameterDescriptionTypeStatus
Max Widthmaxwidth

The maximum width of the infobox

Suggested values
280px 30em
Default
280px
Unknownoptional
Infobox HeaderinfoboxHeader

This is the header of the infobox. This is not required as it will just be the pagename if left blank

Stringoptional
Imageimage

Image, width and height is automatically assigned

Example
Danderson.png
Filesuggested
Image DescriptionimageDesc

The description of the image

Unknownsuggested
Namename

The name of whoever this is

Example
Tony Chase
Stringrequired
Aliases/Also Known AsKnownas

Other names for a person

Example
Prince Rockefeller Hughes
Stringoptional
Time ActivetimeActive

When this person was active

Example
April 3rd, 2023 - June 5th, 2143
Unknownsuggested
AlignmentAlignment

The alignment of this character in relation to Daniel Larson,

Suggested values
Enabler Troll White Knight Management
Example
(You need these if you want them to be automatically categorized) Troll, Management, White Knight, Enabler
Unknownsuggested
Date of BirthDOB

In M-D-Y format, please

Unknownsuggested
Weight and WeightHeightnWeight

no description

Example
#'#" (# cm), # lbs (# kg)
Unknownoptional
NationalityNationality

Place of origin

Stringoptional
RaceRace

no description

Unknownoptional
GenderGender

This is exclusively the biological gender of a given character. If a character is transgender, put their expressed gender in parenthesis formatted like the example below.

Example
Male (transitioned to female)
Stringoptional
ParentsParents

If they're unconfirmed to be parents, then explain that in parenthesis after the name.

Example
Melissa, Jack (claimed), Jason (unconfirmed)
Stringoptional
SiblingsSiblings

no description

Unknownoptional
signaturesignature

no description

Example
Signature.jpg
Fileoptional
ArcsArcs

The arcs in which this person was active during, listed in chronological order. If a person is active for the entirety of an Era, just list that Era instead of each individual arc.

Stringrequired