Template:Infobox: Difference between revisions

From Daniel Larson Wiki
Jump to navigation Jump to search
(Undo)
(Bewm)
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;">
<noinclude><!-- Do not change the formatting of the code! It makes the infobox look weird for some reason! ---> </noinclude>
     <div style="font-size: 110%; font-weight: bold; background-color: #ccc; text-align: center; padding: 0.4em 0;">{{PAGENAME}}</div>
 
     <div style="margin: 0.5em;">
<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|}}} |
         {{#if: {{{image|}}} |
             <div style="text-align: center;" style="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>Aliases</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: {{{Alignment|}}} | | 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;"><b>Alignment</b>: {{{Alignment}}}{{#ifeq: {{{Alignment}}}|Management|[[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>Siblings</b>: {{{Race}}}</div>
         </div>
        <div style="{{#if: {{{Nationality|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Siblings</b>: {{{Race}}}</div>
         </div>
        <div style="{{#if: {{{HeightnWeight|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Siblings</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>
     </div>
</div>
</div>
<noinclude>
<templatedata>
{
"params": {
"image": {
"description": "Image, width and height is automatically assigned",
"example": "Danderson.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
},
"Gender": {
"type": "string",
"description": "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)"
},
"infoboxHeader": {
"label": "Infobox Header",
"description": "This is the header of the infobox. This is not required as it 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"
},
"imageDesc": {
"label": "Image Description",
"suggested": true,
"description": "The description of the image"
},
"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"
},
"Alignment": {
"label": "Alignment",
"description": "The alignment of this character in relation to Daniel Larson,",
"example": "(You need these if you want them to be automatically categorized) Troll, Management, White Knight, Enabler",
"type": "unknown",
"suggestedvalues": [
"Enabler",
"Troll",
"White Knight",
"Management"
],
"suggested": true
},
"Race": {
"label": "Race"
},
"HeightnWeight": {
"label": "Weight and Weight",
"example": "#'#\" (# cm), # lbs (# kg)"
},
"Siblings": {}
},
"description": "This is a template meant to easily display information about a given person/character",
"paramOrder": [
"maxwidth",
"infoboxHeader",
"image",
"imageDesc",
"name",
"Knownas",
"Alignment",
"DOB",
"HeightnWeight",
"Nationality",
"Race",
"Gender",
"Parents",
"Siblings"
]
}
</templatedata>
</noinclude>

Revision as of 20:31, 23 December 2023


Infobox
{{{imageDesc}}}
Name: {{{name}}}
Aliases: {{{Knownas}}}
Alignment: {{{Alignment}}}
DOB: {{{DOB}}}
Gender: {{{Gender}}}
Siblings: {{{Race}}}
Siblings: {{{Race}}}
Siblings: {{{HeightnWeight}}}
Parents: {{{Parents}}}
Siblings: {{{Siblings}}}

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