Template:Character: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Character/styles.css" /> |
<templatestyles src="Character/styles.css" /> |
||
− | |||
<includeonly>{{Infobox/begin}} |
<includeonly>{{Infobox/begin}} |
||
− | {{Infobox/Header|title= |
+ | {{Infobox/Header|title={{{name|{{PAGENAME}}}}}|subtitle={{{known_for|}}}}} |
{{Infobox/Illustration|file={{#if:{{{photo|}}}|[[File:{{{photo}}}]]|}}|caption={{{photo_caption|}}}}} |
{{Infobox/Illustration|file={{#if:{{{photo|}}}|[[File:{{{photo}}}]]|}}|caption={{{photo_caption|}}}}} |
||
{{Infobox/SectionHeader|section=Personal Details}} |
{{Infobox/SectionHeader|section=Personal Details}} |
||
Line 13: | Line 12: | ||
{{Infobox/Item|key=Nicknames|value={{{nicknames|}}}}} |
{{Infobox/Item|key=Nicknames|value={{{nicknames|}}}}} |
||
{{Infobox/end}}</includeonly> |
{{Infobox/end}}</includeonly> |
||
− | |||
− | |
||
<noinclude> |
<noinclude> |
||
+ | {{Character}} |
||
+ | |||
{{Character |
{{Character |
||
| name=[name] |
| name=[name] |
||
| known_for=[known_for • known_for] |
| known_for=[known_for • known_for] |
||
− | | photo= |
+ | | photo=placeholderkerbal.png|photo_caption=[photo_caption] |
| birth_date=[birth_date]|birth_location=[birth_location] |
| birth_date=[birth_date]|birth_location=[birth_location] |
||
| death_date=[death_date]|death_location=[death_location] |
| death_date=[death_date]|death_location=[death_location] |
||
Line 47: | Line 46: | ||
}} |
}} |
||
}} |
}} |
||
− | |||
− | {{Character}} |
||
[[Category:Infoboxes]] |
[[Category:Infoboxes]] |
||
Line 56: | Line 53: | ||
{ |
{ |
||
"params": { |
"params": { |
||
− | "name": { |
+ | "name": { |
− | " |
+ | "label": "Name", |
+ | "description": "The character's usual name", |
||
− | "photo": {}, |
||
− | " |
+ | "autovalue": "{{PAGENAME}}", |
− | " |
+ | "required": true, |
− | " |
+ | "suggested": true, |
− | " |
+ | "type": "string" |
+ | }, |
||
− | "death_location": {}, |
||
− | " |
+ | "known_for": { |
− | " |
+ | "label": "Known For", |
+ | "description": "What the character is known for, position, status, etc...", |
||
− | "relatives": {}, |
||
+ | "example": "President of Example, Local Konigger, Avid warcrimes comitter", |
||
− | "signature": {}, |
||
− | " |
+ | "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> |
</templatedata> |
Latest revision as of 03:50, 7 May 2024
Character
|
|||||
---|---|---|---|---|---|
Personal Details | |||||
Nationality | {{{nationality}}} |
Infobox template for any character
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The character's usual name
| String | required |
Known For | known_for | What the character is known for, position, status, etc...
| String | suggested |
Photo | photo | A picture of the character | File | suggested |
Photo Caption | photo_caption | A caption, description or context for the character's picture, if included | String | suggested |
Nationality | nationality | no description | String | required |
Date of birth | birth_date | The character's birth date, if applicable | Date | suggested |
Birthplace | birth_location | The character's birth place | String | optional |
Status | status | The character's current status
| String | suggested |
Date of death | death_date | The character's date of death, if applicable | Date | suggested |
Deathplace | death_location | The character's place of death, if applicable | String | optional |
Cause of death | cause | The cause of their death, if applicable | String | optional |
Relatives | relatives | A set of character's relatives, if any (may include pages not yet created) | String | optional |
Signature | signature | The character's signature | File | optional |
Nickname(s) | nicknames | The character's nicknames | String | suggested |