Template:Character Profile: Difference between revisions

From The Green Hills Series
Jump to navigationJump to search
Tag: Manual revert
m WikiSysop moved page Template:Character/Profile to Template:Character Profile: revert
 
(92 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
<includeonly>{{#switch:{{{type|}}}
{{Character Profile|Name=Alex Malcolm Kellan|Age=26|Height=6'2"|Hair color=Dark brown|Eye color=Steel grey|Occupation=Mechanic}}
  |minor=[[Category:Minor Characters]]
-->
  |Minor=[[Category:Minor Characters]]
 
  |major=[[Category:Major Characters]]
== Character Stats ==
  |Major=[[Category:Major Characters]]
'''Full Name:''' {{{Name}}}<br />
  |off-page=[[Category:Off-Page Characters]]
'''Age:''' {{{Age}}}<br />
  |Off-page=[[Category:Off-Page Characters]]
'''Height:''' {{{Height}}}<br />
  |[[Category:Undefined Characters]]
'''Hair Color:''' {{{Hair color}}}<br />
}}{{#switch:{{{status|}}}
'''Eye Color:''' {{{Eye color}}}<br />
  |stub=[[Category:Stub]]
'''Occupation:''' {{{Occupation}}}
  |empty=[[Category:Empty]]
 
}}{{Infobox
Back to [[List of Characters]]
|genealogy={{{genealogy|}}}
|title={{#if:{{{name|}}}|{{{name}}}}}
|image={{#if:{{{image|}}}|{{{image}}}}}
|alt={{#if:{{{alt|}}}|{{{alt}}}|{{#if:{{{name|}}}|{{{name}}}}}}}
|caption={{#if:{{{caption|}}}|{{{caption}}}|{{#if:{{{name|}}}|{{{name}}}}}|}}
|table={{#if:{{{name|}}}|<tr>
<th>Full Name:</th>
<td>{{{name}}}{{#if:{{{maiden|}}}|&nbsp;(née {{{maiden}}})}}</td>
</tr>}}{{#if:{{{nickname|}}}|<tr>
<th>Nickname(s):</th>
<td>{{#arraydefine:nickname|{{{nickname}}}}}{{#arrayprint:nickname |<br />}}</td>
</tr>}}{{#if:{{{aka|}}}|<tr>
<th>Other Name(s):</th>
<td>{{#arraydefine:aka|{{{aka}}}}}{{#arrayprint:aka |<br />}}</td>
</tr>}}{{#if:{{{age|}}}|<tr>
<th>Age:</th>
<td>{{Calculate/Age|{{{age}}}}}</td>
</tr>}}{{#if:{{{height|}}}|<tr>
<th>Height:</th>
<td>{{Calculate/Height|{{{height}}}}}</td>
</tr>}}{{#if:{{{hair|}}}|<tr>
<th>Hair Color:</th>
<td>{{{hair}}}</td>
</tr>}}{{#if:{{{eye|}}}|<tr>
<th>Eye Color:</th>
<td>{{{eye}}}</td>
</tr>}}{{#if:{{{occupation|}}}|<tr>
<th>Occupation:</th>
<td>{{#arraydefine:occupation|{{{occupation}}}}}{{#arrayprint:occupation |<br />}}</td>
</tr>}}{{#if:{{{dogs|}}}|<tr>
{{#arraydefine:dogs|{{{dogs}}}}}
<th>{{#switch:{{#arraysize:dogs}}|0=|1=Dog:|Dogs:}}</th>
<td>{{#loop:i
|0
|{{#arraysize:dogs}}
|[[{{#arrayindex:dogs|{{#var:i}}}}]]<br />
}}</td>
</tr>}}<!--/dogs
-->}}<!--/table
}}<!--/Infobox
--></includeonly>
<noinclude>
==TEST==
{{Character/Profile|name=Test|maiden=Maiden|nickname=Nickname|aka=AKA|height=6'2"|hair=brown|eye=blue|occupation=Tester|dogs=Dog1, Dog2}}
<templatedata>
{
"params": {
"name": {
"required": true,
"aliases": [
"name"
],
"label": "Name",
"type": "string"
},
"maiden": {
"aliases": [
"maiden"
],
"label": "Maiden",
"type": "string",
"suggested": true
},
"nickname": {
"aliases": [
"nickname"
],
"label": "Nickname",
"type": "string",
"suggested": true
},
"aka": {
"aliases": [
"aka"
],
"label": "A.K.A.",
"type": "string",
"suggested": true
},
"age": {
"aliases": [
"age"
],
"label": "Age/Birthyear",
"description": "Calculates age based on age or birthyear",
"type": "number",
"suggestedvalues": [
"43, 1943"
],
"suggested": true
},
"height": {
"aliases": [
"height"
],
"label": "Height",
"example": "6'2\"",
"type": "string",
"suggested": true
},
"hair": {
"aliases": [
"hair"
],
"label": "Hair Color",
"type": "string",
"suggested": true
},
"eye": {
"aliases": [
"eye"
],
"label": "Eye color",
"type": "string",
"suggested": true
},
"occupation": {
"aliases": [
"occupation"
],
"label": "Occupation",
"type": "string",
"suggested": true
},
"image": {
"aliases": [
"image"
],
"label": "Image",
"type": "wiki-file-name",
"suggested": true
},
"alt": {
"aliases": [
"alt"
],
"label": "Alt",
"description": "Alternate Image Description",
"type": "string",
"suggested": true
},
"caption": {
"aliases": [
"caption"
],
"label": "Caption",
"description": "Caption for image",
"type": "string",
"suggested": true
},
"type": {
"aliases": [
"type"
],
"label": "Type of Character",
"description": "Type of Character",
"type": "string",
"suggestedvalues": [
"major",
"minor",
"off-page"
],
"required": true
},
"status": {
"aliases": [
"status"
],
"label": "Status",
"description": "Stub, Empty, etc.",
"example": "Stub, Empty, etc.",
"type": "string",
"suggestedvalues": [
"stub",
"empty",
"filled"
],
"default": "empty",
"required": true
},
"dogs": {
"aliases": [
"dogs"
],
"label": "Dog(s)",
"type": "wiki-file-name",
"suggested": true
},
"genealogy": {
"aliases": [
"genealogy"
],
"label": "Genealogy",
"description": "Name genealogy link is under",
"type": "wiki-page-name",
"suggested": true
}
},
"description": "Character Profile",
"paramOrder": [
"name",
"maiden",
"nickname",
"aka",
"age",
"height",
"hair",
"eye",
"occupation",
"image",
"alt",
"caption",
"type",
"status",
"dogs",
"genealogy"
]
}
</templatedata>
</noinclude>

Latest revision as of 21:51, 1 February 2024


TEST

Template:Character/Profile

Character Profile

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename name

no description

Stringrequired
Maidenmaiden maiden

no description

Stringsuggested
Nicknamenickname nickname

no description

Stringsuggested
A.K.A.aka aka

no description

Stringsuggested
Age/Birthyearage age

Calculates age based on age or birthyear

Suggested values
43, 1943
Numbersuggested
Heightheight height

no description

Example
6'2"
Stringsuggested
Hair Colorhair hair

no description

Stringsuggested
Eye coloreye eye

no description

Stringsuggested
Occupationoccupation occupation

no description

Stringsuggested
Imageimage image

no description

Filesuggested
Altalt alt

Alternate Image Description

Stringsuggested
Captioncaption caption

Caption for image

Stringsuggested
Type of Charactertype type

Type of Character

Suggested values
major minor off-page
Stringrequired
Statusstatus status

Stub, Empty, etc.

Suggested values
stub empty filled
Default
empty
Example
Stub, Empty, etc.
Stringrequired
Dog(s)dogs dogs

no description

Filesuggested
Genealogygenealogy genealogy

Name genealogy link is under

Page namesuggested