Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Undo revision 1187 by Schmoney schase (talk)) Tag: Undo |
||
(34 intermediate revisions by 2 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: 5px 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 5px 5px;> | <div style="margin: 0 5px 5px;> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<div style="margin: | <div style="margin: 5px 0 0; text-align: center;">[[File:{{{image}}}|270px]]</div> | ||
}} | }} | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{imageDesc|}}} | | display: none; }}"> | ||
<div | <small><div style="margin: 5px 0 0; padding: 0 2px 0; text-align: center; max-width:270px">''{{{imageDesc}}}''</div></small> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{name|}}} | | display: none; }}"> | ||
<div | <div style="margin: 5px 0 0; padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Name</b>: {{{name}}}</div> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{Knownas|}}} | | display: none; }}"> | ||
<div | <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Also known as</b>: {{{Knownas}}}</div> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{EnemyStatus|}}} | | display: none; }}"> | ||
<div>< | <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> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{DOB|}}} | | display: none; }}"> | ||
<div><b> | <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>DOB</b>: {{{DOB}}}</div> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{Sex|}}} | | display: none; }}"> | ||
<div><b> | <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Biological Gender</b>: {{{Sex}}}</div> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{Gender|}}} | | display: none; }}"> | ||
<div><b> | <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Gender Identity</b>: {{{Gender}}}</div> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{Nationality|}}} | | display: none; }}"> | ||
<div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Nationality</b>: {{{Nationality}}}</div> | |||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{Religion|}}} | | display: none; }}"> | ||
<div><b> | <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Religion</b>: {{{Religion}}}</div> | ||
</div> | </div> | ||
<div style="{{#if: {{{ | <div style="{{#if: {{{Parents|}}} | | display: none; }}"> | ||
<div><b> | <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Parents</b>: {{{Parents}}}</div> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 51: | Line 45: | ||
"example": "Tony_Chase.png", | "example": "Tony_Chase.png", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggested": true | "suggested": true, | ||
"label": "Image" | |||
}, | }, | ||
"name": { | "name": { | ||
"description": "The name of whoever this is", | "description": "The name of whoever this is", | ||
"example": "Tony Chase", | "example": "Tony Chase", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true, | ||
"label": "Name" | |||
}, | }, | ||
"Knownas": { | "Knownas": { | ||
Line 87: | Line 65: | ||
"description": "In M-D-Y format, please", | "description": "In M-D-Y format, please", | ||
"suggested": true | "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", | "description": "This is a template meant to easily display information about a given person/character", | ||
"paramOrder": [ | "paramOrder": [ | ||
"maxwidth", | |||
"infoboxHeader", | |||
"image", | "image", | ||
"imageDesc", | |||
"name", | "name", | ||
"Knownas", | "Knownas", | ||
"EnemyStatus", | |||
"DOB", | "DOB", | ||
" | "Sex", | ||
" | "Gender", | ||
" | "Nationality", | ||
" | "Parents", | ||
" | "Religion" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 06:25, 3 February 2024
Infobox
This is a template meant to easily display information about a given person/character
Parameter | Description | Type | Status | |
---|---|---|---|---|
Max Width | maxwidth | The maximum width of the infobox
| Unknown | optional |
Infobox Header | infoboxHeader | This is the header of the infobox, will just be the pagename if left blank | String | optional |
Image | image | Image
| File | suggested |
Image Description | imageDesc | no description | Unknown | suggested |
Name | name | The name of whoever this is
| String | required |
Aliases/Also Known As | Knownas | Other names for a person
| String | optional |
Enemy Status | EnemyStatus | If or if not this person is an enemy of Tony Chase
| Unknown | suggested |
Date of Birth | DOB | In M-D-Y format, please | Unknown | suggested |
Sex | Sex | The biological gender of the given character
| String | optional |
Gender | Gender | The expressed gender of the given character, such as if someone is transgender
| String | optional |
Nationality | Nationality | Place of origin | String | optional |
Parents | Parents | If they're unconfirmed to be parents, then explain that in parenthesis after the name.
| String | optional |
Religion | Religion | no description | Unknown | optional |