Template:Character Profile: Difference between revisions
From The Green Hills Series
Jump to navigationJump to search
No edit summary Tag: Reverted |
m WikiSysop moved page Template:Character/Profile to Template:Character Profile: revert |
||
(93 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly>{{#switch:{{{type|}}} | ||
{{ | |minor=[[Category:Minor Characters]] | ||
|Minor=[[Category:Minor Characters]] | |||
|major=[[Category:Major Characters]] | |||
== | |Major=[[Category:Major Characters]] | ||
|off-page=[[Category:Off-Page Characters]] | |||
{{#if: {{{ | |Off-page=[[Category:Off-Page Characters]] | ||
|[[Category:Undefined Characters]] | |||
}}{{#switch:{{{status|}}} | |||
|stub=[[Category:Stub]] | |||
|empty=[[Category:Empty]] | |||
'' | }}{{Infobox | ||
|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|}}}| (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
Character Profile
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name name | no description | String | required |
Maiden | maiden maiden | no description | String | suggested |
Nickname | nickname nickname | no description | String | suggested |
A.K.A. | aka aka | no description | String | suggested |
Age/Birthyear | age age | Calculates age based on age or birthyear
| Number | suggested |
Height | height height | no description
| String | suggested |
Hair Color | hair hair | no description | String | suggested |
Eye color | eye eye | no description | String | suggested |
Occupation | occupation occupation | no description | String | suggested |
Image | image image | no description | File | suggested |
Alt | alt alt | Alternate Image Description | String | suggested |
Caption | caption caption | Caption for image | String | suggested |
Type of Character | type type | Type of Character
| String | required |
Status | status status | Stub, Empty, etc.
| String | required |
Dog(s) | dogs dogs | no description | File | suggested |
Genealogy | genealogy genealogy | Name genealogy link is under | Page name | suggested |