Template:Character: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
m (Fixed typo)
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<templatestyles src="Corporation/style.css" />
+
<templatestyles src="Character/styles.css" />
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{{name}}}|subtitle={{{known_for}}}}}
+
{{Infobox/Header|title={{{name|{{PAGENAME}}}}}|subtitle={{{known_for|}}}}}
{{Infobox/Illustration|file=[[File:{{{photo}}}]]|caption={{{photoodesc}}}}}
+
{{Infobox/Illustration|file={{#if:{{{photo|}}}|[[File:{{{photo}}}]]|}}|caption={{{photo_caption|}}}}}
 
{{Infobox/SectionHeader|section=Personal Details}}
 
{{Infobox/SectionHeader|section=Personal Details}}
{{Infobox/Item|key=born|value={{{birth_date}}}</br>{{{birth_location}}}}}
+
{{Infobox/Item|key=Born|value={{#if:{{{birth_date|}}}|{{#if:{{{birth_location|}}}|{{{birth_date}}}</br>{{{birth_location}}}|{{{status}}}}}|}}}}
{{Infobox/Item|key=died|value={{{death_date}}}</br>{{{death_location}}}}}
+
{{Infobox/Item|key=Died|value={{#if:{{{death_date|}}}|{{#if:{{{death_location|}}}|{{{death_date}}}</br>{{{death_location}}}|{{{status}}}}}|}}}}
 
{{Infobox/Item|key=Nationality|value={{{nationality}}}}}
 
{{Infobox/Item|key=Nationality|value={{{nationality}}}}}
{{Infobox/Item|key=Cause|value={{{cause}}}}}
+
{{Infobox/Item|key=Cause of Death|value={{{cause|}}}}}
  +
{{Infobox/Item|key=Relatives|value={{{relatives|}}}}}
  +
{{Infobox/Item|key=Signature|value={{#if:{{{signature|}}}|[[Image:{{{signature}}}|left|130px]]|}}}}
  +
{{Infobox/Item|key=Nicknames|value={{{nicknames|}}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
 
 
 
 
<noinclude>{{Infobox/begin}}
+
<noinclude>
  +
{{Character}}
{{Infobox/Header|title={{{name}}}|subtitle={{{known_for}}}}}
 
  +
{{Infobox/Illustration|file=[[File:KP_dark.png]]|caption={{{photoodesc}}}}}
 
  +
{{Character
{{Infobox/SectionHeader|section=Personal Details}}
 
  +
| name=[name]
{{Infobox/Item|key=born|value={{{birth_date}}}</br>{{{birth_location}}}}}
 
  +
| known_for=[known_for • known_for]
{{Infobox/Item|key=died|value={{{death_date}}}</br>{{{death_location}}}}}
 
  +
| photo=placeholderkerbal.png|photo_caption=[photo_caption]
{{Infobox/Item|key=Nationality|value={{{nationality}}}}}
 
  +
| birth_date=[birth_date]|birth_location=[birth_location]
{{Infobox/Item|key=Cause|value={{{cause}}}}}
 
  +
| death_date=[death_date]|death_location=[death_location]
{{Infobox/end}}
 
  +
| nationality=[nationality]
  +
| cause=[cause of death]
  +
| relatives=[relatives]
  +
| signature=KP_dark.png
  +
| nicknames=[nicknames]
  +
{{Character/Government Position
  +
| position_title=[position]
  +
| start_date=[start]|end_date=[end]
  +
| predecessor=[predecessor]
  +
| sucessor=[successor]
  +
}}
  +
{{Character/Military Service
  +
| alligiance=[nation]
  +
| branch=[branch]
  +
| periods=[periods]
  +
| rank=[rank]
  +
| conflicts=[wars in]
  +
| awards=[medals/etc]
  +
}}
  +
{{Character/Criminal Conviction
  +
|criminal_status=[released/pardoned/executed/etc]
  +
|convictions=[convictions]
  +
|penalty=[penalty]
  +
}}
  +
}}
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
[[Category:Templates]]
 
[[Category:Templates]]
   
  +
<templatedata>
  +
{
  +
"params": {
  +
"name": {
  +
"label": "Name",
  +
"description": "The character's usual name",
  +
"autovalue": "{{PAGENAME}}",
  +
"required": true,
  +
"suggested": true,
  +
"type": "string"
  +
},
  +
"known_for": {
  +
"label": "Known For",
  +
"description": "What the character is known for, position, status, etc...",
  +
"example": "President of Example, Local Konigger, Avid warcrimes comitter",
  +
"type": "string",
  +
"suggested": true
  +
},
  +
"photo": {
  +
"label": "Photo",
  +
"description": "A picture of the character",
  +
"type": "wiki-file-name",
  +
"suggested": true
  +
},
  +
"birth_date": {
  +
"label": "Date of birth",
  +
"description": "The character's birth date, if applicable",
  +
"type": "date",
  +
"suggested": true
  +
},
  +
"birth_location": {
  +
"label": "Birthplace",
  +
"description": "The character's birth place",
  +
"type": "string"
  +
},
  +
"death_date": {
  +
"label": "Date of death",
  +
"description": "The character's date of death, if applicable",
  +
"type": "date",
  +
"suggested": true
  +
},
  +
"death_location": {
  +
"label": "Deathplace",
  +
"description": "The character's place of death, if applicable",
  +
"type": "string"
  +
},
  +
"nationality": {
  +
"label": "Nationality",
  +
"type": "string",
  +
"required": true
  +
},
  +
"cause": {
  +
"label": "Cause of death",
  +
"description": "The cause of their death, if applicable ",
  +
"type": "string"
  +
},
  +
"relatives": {
  +
"label": "Relatives",
  +
"description": "A set of character's relatives, if any (may include pages not yet created)",
  +
"type": "string"
  +
},
  +
"signature": {
  +
"label": "Signature",
  +
"description": "The character's signature",
  +
"type": "wiki-file-name"
  +
},
  +
"nicknames": {
  +
"label": "Nickname(s)",
  +
"description": "The character's nicknames",
  +
"type": "string",
  +
"suggested": true
  +
},
  +
"photo_caption": {
  +
"label": "Photo Caption",
  +
"description": "A caption, description or context for the character's picture, if included",
  +
"type": "string",
  +
"suggested": true
  +
},
  +
"status": {
  +
"label": "Status",
  +
"description": "The character's current status",
  +
"example": "Alive, Missing in Action, Reigning...",
  +
"type": "string",
  +
"suggested": true
  +
}
  +
},
  +
"description": "Infobox template for any character",
  +
"paramOrder": [
  +
"name",
  +
"known_for",
  +
"photo",
  +
"photo_caption",
  +
"nationality",
  +
"birth_date",
  +
"birth_location",
  +
"status",
  +
"death_date",
  +
"death_location",
  +
"cause",
  +
"relatives",
  +
"signature",
  +
"nicknames"
  +
],
  +
"format": "block"
  +
}
  +
</templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 06:52, 26 January 2023


Character

Personal Details
Nationality {{{nationality}}}


[name]
[known_for • known_for]
Placeholderkerbal.png
[photo_caption]
Personal Details
Born [birth_date]
[birth_location]
Died [death_date]
[death_location]
Nationality [nationality]
Cause of Death [cause of death]
Relatives [relatives]
Signature
KP dark.png
Nicknames [nicknames]
[position]
In Office
[start] - [end]
Preceded by [predecessor]
Succeeded by [successor]
Military Service
Allegiance [nation]
Branch/Service [branch]
Years of Service
[periods]
Rank [rank]
Conflicts [wars in]
Awards [medals/etc]
Criminal Conviction
Status [released/pardoned/executed/etc]
Convictions [convictions]
Penalty [penalty]

Infobox template for any character

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The character's usual name

Auto value
{{PAGENAME}}
Stringrequired
Known Forknown_for

What the character is known for, position, status, etc...

Example
President of Example, Local Konigger, Avid warcrimes comitter
Stringsuggested
Photophoto

A picture of the character

Filesuggested
Photo Captionphoto_caption

A caption, description or context for the character's picture, if included

Stringsuggested
Nationalitynationality

no description

Stringrequired
Date of birthbirth_date

The character's birth date, if applicable

Datesuggested
Birthplacebirth_location

The character's birth place

Stringoptional
Statusstatus

The character's current status

Example
Alive, Missing in Action, Reigning...
Stringsuggested
Date of deathdeath_date

The character's date of death, if applicable

Datesuggested
Deathplacedeath_location

The character's place of death, if applicable

Stringoptional
Cause of deathcause

The cause of their death, if applicable

Stringoptional
Relativesrelatives

A set of character's relatives, if any (may include pages not yet created)

Stringoptional
Signaturesignature

The character's signature

Fileoptional
Nickname(s)nicknames

The character's nicknames

Stringsuggested