Template:Infobox character: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Added TemplateData and parameters "Friends" and "Enemies".)
(Decided to do this.)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox>
{{Infobox
<title source="name"/>
| bodystyle  = {{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}
<image source="image">
| abovestyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}};|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}
<caption source="imagecaption"/>
| headerstyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}};|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}
</image>
 
<group>
| above      = {{{name|{{PAGENAME}}}}}
<data source="realName"><label>Real name</label></data>
| autoheaders = y
<data source="aliases"><label>Aliases</label></data>
 
<data source="relatives"><label>Relatives</label></data>
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imageSize|}}}|sizedefault=300px|upright={{{imageUpright|1}}}|alt={{{imageAlt|}}}}}
<data source="affiliation"><label>Affiliation</label></data>
| caption1    = {{{imageCaption|}}}
<data source="friends"><label>Friends</label></data>
 
<data source="enemies"><label>Enemies</label></data>
| label1      = Real name
</group>
| data1      = {{{realName|}}}
<group>
 
<header>General information</header>
| label2      = Aliases
<data source="age"><label>Age</label></data>
| data2      = {{{aliases|}}}
<data source="sex"><label>Sex</label></data>
 
<data source="gender"><label>Gender</label></data>
| label3      = Known for
<data source="sexualOrientation"><label>Sexual orientation</label></data>
| data3      = {{{knownFor|}}}
<data source="race"><label>Race</label></data>
 
<data source="nationality"><label>Country of origin</label></data>
| label4      = Family
<data source="residence"><label>City or country of residence</label></data>
| data4      = {{{family|}}}
<data source="marital"><label>Marital status</label></data>
 
<data source="birthDate"><label>Date of birth</label></data>
| label5      = Affiliations
<data source="birthPlace"><label>Place of birth</label></data>
| data5      = {{{affiliations|}}}
<data source="deathDate"><label>Date of death</label></data>
 
<data source="deathPlace"><label>Place of death</label></data>
| label6      = Friends
</group>
| data6      = {{{friends|}}}
<group>
 
<header>Physical description</header>
| label7      = Enemies
<data source="height"><label>Height</label></data>
| data7      = {{{enemies|}}}
<data source="weight"><label>Weight</label></data>
 
<data source="eyes"><label>Eye color</label></data>
| header8    = General information
</group>
 
<group>
| label9      = Age
<header>Socials</header>
| data9      = {{{age|}}}
<data source="webpage"><label>Webpage</label>
 
<data source="gdAcc"><label>Geometry Dash account</label>
| label10    = Sex
<data source="otherSocials"><label>Others</label>
| data10      = {{{sex|}}}
</group>
 
</infobox>
| label11    = Gender
<noinclude>
| data11      = {{{gender|}}}
<templatedata>
 
{
| label12    = Sexual orientation
"params": {
| data12      = {{{sexualOrientation|}}}
"name": {
 
"aliases": [
| label13    = Race
"Display name",
| data13      = {{{race|}}}
"Name"
 
],
| label14    = Religion
"label": "Username",
| data14      = {{{religion|}}}
"description": "Their Uvias account's display name.",
 
"example": "lime.owot",
| label15    = Country of origin
"type": "string",
| data15      = {{{nationality|}}}
"required": true
 
},
| label16    = City or country of residence
"image": {
| data16      = {{{residence|}}}
"label": "Image",
 
"description": "A link to an image of their persona, if any",
| label17    = Marital status
"type": "url"
| data17      = {{{marital|}}}
},
 
"imagecaption": {
| label18    = Significant other
"aliases": [
| data18      = {{{significantOther|}}}
"Caption"
 
],
| label19    = Occupation
"label": "Image caption",
| data19      = {{{occupation|}}}
"description": "A caption of the image shown at the top of the infobox.",
 
"example": "User's persona, called namehere.",
| label20    = Employer
"type": "string"
| data20      = {{{employer|}}}
},
 
"realName": {
| label21    = Organization
"label": "Real name",
| data21      = {{{organization|}}}
"description": "Legal name. Please do not fill this in unless they have stated they are comfortable with this on their wiki page.",
 
"example": "What \"Da\" Hell",
| label22    = Date of birth
"type": "string"
| data22      = {{{birthDate|}}}
},
 
"aliases": {
| label23    = Place of birth
"label": "Aliases",
| data23      = {{{birthPlace|}}}
"description": "Names they go by, other than their username.",
 
"example": "lime.person, LimeSlime888",
| label24    = Date of death
"type": "string"
| data24      = {{{deathDate|}}}
},
 
"relatives": {
| label25    = Place of death
"description": "(Close) relatives of the user. Please do not fill this in unless they have stated they are comfortable with this on their wiki page.",
| data25      = {{{deathPlace|}}}
"example": "Oh \"Mah\" Gawd, Hell Nah",
 
"type": "string"
| header26    = Physical description
},
 
"affiliation": {
| label27    = Height
"label": "Affiliation",
| data27      = {{{height|}}}
"description": "On Wikipedia it's stated that it's for groups and teams the user belongs to, but most use it for friends and enemies the user has.",
 
"type": "string",
| label28    = Weight
"deprecated": "Use Friends and Enemies instead."
| data28      = {{{weight|}}}
},
 
"friends": {
| label29    = Eye color
"label": "Friends",
| data29      = {{{eyes|}}}
"description": "People this user has a positive relationship with.",
 
"example": "user2 [close in real life], Name_less",
| header30    = Socials
"type": "string",
 
"suggested": true
| label31    = Webpage
},
| data31      = {{{webpage|}}}
"enemies": {
 
"label": "Enemies",
| label32    = Others
"description": "People that the user has a negative relationship with.",
| data32      = {{{otherSocials|}}}
"example": "antiuser, slashblockuseruser",
}}<noinclude>
"type": "string",
{{Documentation}}
"suggested": true
},
"age": {
"label": "Age",
"description": "Years since this user was born. A range of possible ages or an age up to the year can be given. Please do not fill this in if they have stated they are not comfortable with this on their wiki page.",
"example": "14.7",
"type": "number"
},
"sex": {
"label": "Sex",
"description": "The biological sex of the user.",
"example": "Female",
"type": "string"
},
"gender": {
"aliases": [
"Gender identity"
],
"label": "Gender",
"description": "If different to Sex, the gender identity of the user.",
"example": "Demigirl (transgender)",
"type": "string"
},
"sexualOrientation": {
"label": "Sexual orientation",
"example": "Heterosexual (or use straight)",
"type": "string"
},
"race": {
"label": "Race",
"example": "Japanese",
"type": "string"
},
"nationality": {
"aliases": [
"Nationality"
],
"label": "Country of origin",
"description": "Please do not fill this in if they have stated they are not comfortable with this on their wiki page.",
"example": "Russia",
"type": "string"
},
"residence": {
"aliases": [
"Residence",
"Abode"
],
"label": "City or country of residence",
"description": "Please do not fill this in unless they have stated they are comfortable with this on their wiki page.",
"example": "Bristol, England, United Kingdom",
"type": "string"
},
"marital": {
"aliases": [
"Married"
],
"label": "Marital status",
"description": "Please do not fill this in unless they have stated they are comfortable with this on their wiki page.",
"example": "Engaged with _someuser",
"type": "string"
},
"birthDate": {
"aliases": [
"Birth date"
],
"label": "Date of birth",
"description": "Please do not fill this in if they have stated they are not comfortable with this on their wiki page.",
"type": "date"
},
"birthPlace": {
"label": "Place of birth",
"description": "Please do not fill this in unless they have stated they are comfortable with this on their wiki page.",
"example": "Seattle, Washington, USA"
},
"deathDate": {
"aliases": [
"Death date"
],
"label": "Date of death",
"description": "It would be wild if this were used and would be telling the truth.",
"example": "3rd September, 2075",
"type": "date"
},
"deathPlace": {
"aliases": [
"Death place"
],
"label": "Place of death",
"example": "Moog City, Maxecraf, Mars",
"type": "string"
},
"height": {
"aliases": [
"Vertical length"
],
"label": "Height",
"description": "Height standing upright with heels and toes touching a flat ground. Recommended unit: centimeters",
"example": "166 cm",
"type": "number"
},
"weight": {
"aliases": [
"Mass"
],
"label": "Weight",
"description": "It's actually mass, by the way. Recommended unit: kilograms",
"example": "76 kg"
},
"eyes": {
"aliases": [
"Eye colour"
],
"label": "Eye color",
"description": "A rough description of the eye color."
},
"webpage": {
"aliases": [
"Web page",
"Website",
"Personal website"
],
"label": "Webpage",
"description": "The user's personal website.",
"example": "https://lime-textgrid.neocities.org",
"type": "url"
},
"gdAcc": {
"aliases": [
"GD account",
"GD username"
],
"label": "Geometry Dash account",
"description": "The username of the user's Geometry Dash account.",
"example": "AndreiXYZ"
},
"otherSocials": {
"label": "Others",
"description": "Socials other than the ones captured by other parameters.",
"type": "string"
}
},
"description": "Infobox for OWoT users (Uvias accounts).",
"format": "block",
"paramOrder": [
"name",
"image",
"imagecaption",
"realName",
"aliases",
"relatives",
"affiliation",
"friends",
"enemies",
"age",
"sex",
"gender",
"sexualOrientation",
"race",
"nationality",
"residence",
"marital",
"birthDate",
"birthPlace",
"deathDate",
"deathPlace",
"height",
"weight",
"eyes",
"webpage",
"gdAcc",
"otherSocials"
]
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 11:07, 22 November 2024

Infobox character