Template:Infobox: Difference between revisions

From Tony Chase
Jump to navigation Jump to search
No edit summary
(Undo revision 1187 by Schmoney schase (talk))
Tag: Undo
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="infobox" style="float:right; width: 22em; font-size: 88%; line-height: 1.5em; text-align: left; border: 1px solid #aaa; background-color: #f9f9f9;">
<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: 0.4em 0;">{{PAGENAME}}</div>
     <div style="font-size: 110%; font-weight: bold; background-color: #ccc; text-align: center; padding: 5px 0;">{{{infoboxHeader|{{PAGENAME}}}}}</div>
     <div style="margin: 0.5em;">
     <div style="margin: 0 5px 5px;>
    {{#if: {{{image|}}} |
        {{#if: {{{image|}}} |
          <div style="text-align: center; max-width:100%; height:auto;">{{{image|250x250px}}}</div>
            <div style="margin: 5px 0 0; text-align: center;">[[File:{{{image}}}|270px]]</div>
         }}
         }}
         {{#if: {{{label1|}}}{{{value1|}}} | <div><b>{{{label1}}}</b>: {{{value1}}}</div> }}
         <div style="{{#if: {{{imageDesc|}}} | | display: none; }}">
         {{#if: {{{label2|}}}{{{value2|}}} | <div><b>{{{label2}}}</b>: {{{value2}}}</div> }}
            <small><div style="margin: 5px 0 0; padding: 0 2px 0; text-align: center; max-width:270px">''{{{imageDesc}}}''</div></small>
         {{#if: {{{label3|}}}{{{value3|}}} | <div><b>{{{label3}}}</b>: {{{value3}}}</div> }}
        </div>
         {{#if: {{{label4|}}}{{{value4|}}} | <div><b>{{{label4}}}</b>: {{{value4}}}</div> }}
         <div style="{{#if: {{{name|}}} | | display: none; }}">
        {{#if: {{{label5|}}}{{{value5|}}} | <div><b>{{{label5}}}</b>: {{{value5}}}</div> }}
            <div style="margin: 5px 0 0; padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Name</b>: {{{name}}}</div>
         {{#if: {{{label6|}}}{{{value6|}}} | <div><b>{{{label6}}}</b>: {{{value6}}}</div> }}
         </div>
         {{#if: {{{label7|}}}{{{value7|}}} | <div><b>{{{label7}}}</b>: {{{value7}}}</div> }}
        <div style="{{#if: {{{Knownas|}}} | | display: none; }}">
         {{#if: {{{label8|}}}{{{value8|}}} | <div><b>{{{label8}}}</b>: {{{value8}}}</div> }}
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Also known as</b>: {{{Knownas}}}</div>
         {{#if: {{{label9|}}}{{{value9|}}} | <div><b>{{{label9}}}</b>: {{{value9}}}</div> }}
         </div>
         {{#if: {{{label10|}}}{{{value10|}}} | <div><b>{{{label10}}}</b>: {{{value10}}}</div> }}
        <div style="{{#if: {{{EnemyStatus|}}} | | display: none; }}">
         <!-- Add more label/value pairs as needed -->
            <div style="border-top: 1px solid #aaa;"></div><div style="padding: 0 3px 0; margin-top: 5px; margin-bottom: 5px; background-color:{{#switch: {{{EnemyStatus}}}| Ally = green| Enemy = red| #default = gray /* Change this to the default color for neutral */}};"><b>Tony Alignment</b>: {{{EnemyStatus}}}{{#ifeq: {{{EnemyStatus}}}|Ally|[[Category:Allies]]|}}{{#ifeq: {{{EnemyStatus}}}|Enemy|[[Category:Enemies]]|}}</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: {{{Sex|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Biological Gender</b>: {{{Sex}}}</div>
         </div>
        <div style="{{#if: {{{Gender|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Gender Identity</b>: {{{Gender}}}</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: {{{Religion|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Religion</b>: {{{Religion}}}</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>
     </div>
</div>
</div>
<noinclude>
<templatedata>
{
"params": {
"image": {
"description": "Image",
"example": "Tony_Chase.png",
"type": "wiki-file-name",
"suggested": true,
"label": "Image"
},
"name": {
"description": "The name of whoever this is",
"example": "Tony Chase",
"type": "string",
"required": true,
"label": "Name"
},
"Knownas": {
"label": "Aliases/Also Known As",
"description": "Other names for a person",
"example": "Prince Rockefeller Hughes",
"type": "string"
},
"DOB": {
"label": "Date of Birth",
"description": "In M-D-Y format, please",
"suggested": true
},
"Sex": {
"label": "Sex",
"description": "The biological gender of the given character",
"example": "Male, Female, Hermaphrodite",
"type": "string"
},
"Gender": {
"description": "The expressed gender of the given character, such as if someone is transgender",
"example": "Male, female, non-binary",
"type": "string"
},
"infoboxHeader": {
"label": "Infobox Header",
"description": "This is the header of the infobox, will just be the pagename if left blank",
"type": "string"
},
"Nationality": {
"description": "Place of origin",
"type": "string"
},
"maxwidth": {
"label": "Max Width",
"description": "The maximum width of the infobox",
"type": "unknown",
"suggestedvalues": [
"280px",
"30em"
],
"default": "280px"
},
"EnemyStatus": {
"label": "Enemy Status",
"description": "If or if not this person is an enemy of Tony Chase",
"suggestedvalues": [
"Enemy",
"Ally",
"Neutral"
],
"suggested": true
},
"imageDesc": {
"label": "Image Description",
"suggested": true
},
"Religion": {},
"Parents": {
"description": "If they're unconfirmed to be parents, then explain that in parenthesis after the name.",
"example": "Melissa, Jack (claimed), Jason (unconfirmed)",
"type": "string"
}
},
"description": "This is a template meant to easily display information about a given person/character",
"paramOrder": [
"maxwidth",
"infoboxHeader",
"image",
"imageDesc",
"name",
"Knownas",
"EnemyStatus",
"DOB",
"Sex",
"Gender",
"Nationality",
"Parents",
"Religion"
]
}
</templatedata>
</noinclude>

Latest revision as of 06:25, 3 February 2024

Infobox
{{{imageDesc}}}
Name: {{{name}}}
Also known as: {{{Knownas}}}
Tony Alignment: {{{EnemyStatus}}}
DOB: {{{DOB}}}
Biological Gender: {{{Sex}}}
Gender Identity: {{{Gender}}}
Nationality: {{{Nationality}}}
Religion: {{{Religion}}}
Parents: {{{Parents}}}

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

[Edit template data]

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, will just be the pagename if left blank

Stringoptional
Imageimage

Image

Example
Tony_Chase.png
Filesuggested
Image DescriptionimageDesc

no description

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
Enemy StatusEnemyStatus

If or if not this person is an enemy of Tony Chase

Suggested values
Enemy Ally Neutral
Unknownsuggested
Date of BirthDOB

In M-D-Y format, please

Unknownsuggested
SexSex

The biological gender of the given character

Example
Male, Female, Hermaphrodite
Stringoptional
GenderGender

The expressed gender of the given character, such as if someone is transgender

Example
Male, female, non-binary
Stringoptional
NationalityNationality

Place of origin

Stringoptional
ParentsParents

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

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

no description

Unknownoptional