Difference between revisions of "Template:CharacterTest"
Jump to navigation
Jump to search
(Experimental rewrite & enhancement of Template:Character) |
|||
| (10 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
</th> | </th> | ||
</tr> | </tr> | ||
| − | {{#if:{{{ | + | {{#if:{{{Title|}}}|<!--Title of the character, optional feature for a quick idea of the character's purpose--> |
| + | <tr> | ||
<th colspan="2" width="100%" style="color:black;background-color:#DCDCDC;font-size:110%" vertical-align= "middle" text-align="center"> | <th colspan="2" width="100%" style="color:black;background-color:#DCDCDC;font-size:110%" vertical-align= "middle" text-align="center"> | ||
<p style="margin:0">{{{Title|}}}</p> | <p style="margin:0">{{{Title|}}}</p> | ||
</th> | </th> | ||
| + | </tr> | ||
}} | }} | ||
{{#if:{{{Noimage|}}}||<!--Official art here--> | {{#if:{{{Noimage|}}}||<!--Official art here--> | ||
<tr> | <tr> | ||
<td colspan="2" align="center"> | <td colspan="2" align="center"> | ||
| − | <p style="margin:0">[[File:{{{Image|PAGENAME}}}.png|300px]]</p> | + | <p style="margin:0">[[File:{{{Image|{{PAGENAME}}}}}.png|300px]]</p> |
</td> | </td> | ||
</tr> | </tr> | ||
| − | |||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
| Line 26: | Line 27: | ||
</td> | </td> | ||
</tr> | </tr> | ||
| − | {{#if:{{{fullname|}}}| | + | }} |
| + | {{#if:{{{fullname|}}}|<!--Full name, nil when empty--> | ||
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Full Name</b></td> | <td style="padding-right:1em"><b>Full Name</b></td> | ||
| Line 33: | Line 35: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Alias|}}}| | + | {{#if:{{{Alias|}}}|<!--Alias, nil when empty--> |
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Alias(es)</b></td> | <td style="padding-right:1em"><b>Alias(es)</b></td> | ||
| Line 40: | Line 42: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Affiliation|}}}| | + | {{#if:{{{Affiliation|}}}|<!--Affiliation, shows None when empty--> |
{{#if:{{{AffiliationLink|}}}| | {{#if:{{{AffiliationLink|}}}| | ||
<tr> | <tr> | ||
| Line 59: | Line 61: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Role|}}}| | + | {{#if:{{{Role|}}}|<!--Role, shows Unknown when empty--> |
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Role</b></td> | <td style="padding-right:1em"><b>Role</b></td> | ||
| Line 71: | Line 73: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{# | + | {{#ifeq:{{{Location|}}}|???|<!--Compatibility--> |
<tr> | <tr> | ||
{{#if:{{{LocationSpecific|}}}| | {{#if:{{{LocationSpecific|}}}| | ||
| Line 78: | Line 80: | ||
}} | }} | ||
<td>{{{Location|}}} | <td>{{{Location|}}} | ||
| + | </td> | ||
| + | </tr>| | ||
| + | {{#if:{{{Location|}}}|<!--Location, shows Unknown when empty--> | ||
| + | <tr> | ||
| + | {{#if:{{{LocationSpecific|}}}| | ||
| + | <td style="padding-right:1em"><b>Location</b></td>| | ||
| + | <td style="padding-right:1em"><b>Usual Location</b></td> | ||
| + | }} | ||
| + | <td>{{#if:{{{LocationNoLink|}}}|{{{Location|}}}|[[{{{Location|}}}]]}} | ||
</td> | </td> | ||
</tr>| | </tr>| | ||
| Line 89: | Line 100: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Species|}}}| | + | }} |
| + | {{#if:{{{Species|}}}|<!--Species, shows Unknown when empty, uses Template:Species--> | ||
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Species</b></td> | <td style="padding-right:1em"><b>Species</b></td> | ||
| Line 101: | Line 113: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Gender|}}}| | + | {{#if:{{{Gender|}}}|<!--Gender, shows Unknown when empty--> |
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Gender</b></td> | <td style="padding-right:1em"><b>Gender</b></td> | ||
| Line 113: | Line 125: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Age|}}}| | + | {{#if:{{{Age|}}}|<!--Age, shows Unknown when empty--> |
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Age</b></td> | <td style="padding-right:1em"><b>Age</b></td> | ||
| Line 125: | Line 137: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{ | + | {{#if:{{{Trait|}}}|<!--Trait, shows Unknown when empty--> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Trait</b></td> | <td style="padding-right:1em"><b>Trait</b></td> | ||
| Line 161: | Line 149: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Nature|}}}| | + | {{#if:{{{Nature|}}}|<!--Nature, shows Unknown when empty--> |
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Nature</b></td> | <td style="padding-right:1em"><b>Nature</b></td> | ||
| Line 174: | Line 162: | ||
}} | }} | ||
{{#if:{{{Stories|}}}| | {{#if:{{{Stories|}}}| | ||
| + | <tr> | ||
| + | <td colspan="2"> | ||
| + | <hr> | ||
| + | </td> | ||
| + | </tr>| | ||
| + | {{#if:{{{Links|}}}| | ||
| + | <tr> | ||
| + | <td colspan="2"> | ||
| + | <hr> | ||
| + | </td> | ||
| + | </tr> | ||
| + | }}}} | ||
| + | {{#if:{{{Stories|}}}|<!--Related stories, nil when empty--> | ||
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Related Stories</b></td> | <td style="padding-right:1em"><b>Related Stories</b></td> | ||
| Line 180: | Line 181: | ||
</tr> | </tr> | ||
}} | }} | ||
| − | {{#if:{{{Links|}}}| | + | {{#if:{{{Links|}}}|<!--Other links, nil when empty--> |
<tr> | <tr> | ||
<td style="padding-right:1em"><b>Links</b></td> | <td style="padding-right:1em"><b>Links</b></td> | ||
<td>{{{Links}}} | <td>{{{Links}}} | ||
| + | </td> | ||
| + | </tr> | ||
| + | }} | ||
| + | {{#if:{{{NoMoveset|}}}|| <!--Moveset table, uses Template:Move--> | ||
| + | <tr> | ||
| + | <td colspan="2"> | ||
| + | <hr> | ||
| + | </td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td align="center" colspan="2"> | ||
| + | <table style="border-collapse:collapse"> | ||
| + | <tr> | ||
| + | <td style="<!--border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;-->width:150px"> | ||
| + | {{#if:{{{Move1|}}}| | ||
| + | <p style="margin:2px">Move 1: {{Move|{{{Move1|}}}}}</p>| | ||
| + | <p style="margin:2px">Move 1: None</p>| | ||
| + | }} | ||
| + | </td> | ||
| + | <td style="<!--border-left: 1px solid #aaa;border-bottom: 1px solid #aaa;-->width:150px"> | ||
| + | {{#if:{{{Move1|}}}| | ||
| + | <p style="margin:2px">Move 2: {{Move|{{{Move2|}}}}}</p>| | ||
| + | <p style="margin:2px">Move 2: None</p>| | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td style="<!--border-right: 1px solid #aaa;border-top: 1px solid #aaa;-->width:150px"> | ||
| + | {{#if:{{{Move1|}}}| | ||
| + | <p style="margin:2px">Move 3: {{Move|{{{Move3|}}}}}</p>| | ||
| + | <p style="margin:2px">Move 3: None</p>| | ||
| + | }} | ||
| + | </td> | ||
| + | <td style="<!--border-left: 1px solid #aaa;border-top: 1px solid #aaa;-->width:150px"> | ||
| + | {{#if:{{{Move1|}}}| | ||
| + | <p style="margin:2px">Move 4: {{Move|{{{Move4|}}}}}</p>| | ||
| + | <p style="margin:2px">Move 4: None</p>| | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
}} | }} | ||
</table> | </table> | ||
| + | <noinclude> | ||
| + | {{clr}} | ||
| + | ==Temporary Documentation== | ||
| + | Derived from [[Template:Locations]], [[Template:Groupevents]] and the old [[Template:Character]]. | ||
| + | |||
| + | Backward compatible with the old [[Template:Character]]. | ||
| + | |||
| + | Developmental version of [[Template:Character]] without auto-categorization. | ||
| + | |||
| + | Current functions: | ||
| + | <pre style="overflow:auto"> | ||
| + | {{CharacterTest | ||
| + | | Shortname = (If unset, defaults to pagename) | ||
| + | | Title = * (Similar to Role, e.g. Head of Tao Merchant's Guild for PK. Use as needed) | ||
| + | | Noimage = * (If set, no image will show in the infobox) | ||
| + | | Image = * (If unset, uses basepagename) (is overridden by Noimage) | ||
| + | | fullname = * (e.g. Payapa Kiwi Periy for PK) | ||
| + | | Affiliation = * (Shows None if unset, see Template:Guildheader for current ones, determines BG color of the first row, and additional category for Rescuers, Merchants, and Rogues) | ||
| + | | AffiliationLink = * (Wikiword link of the affiliation of the character, no link if unset) | ||
| + | | Role = * (Shows Unknown if unset) | ||
| + | | Location = (Shows Unknown if unset, automatically hotlinked by default) | ||
| + | | LocationNoLink = * (If set, Location would not be hotlinked) | ||
| + | | LocationSpecific = * (Shows "Location" instead of "Usual Location" if set) | ||
| + | | Species = * (Shows Unknown if unset -- Automatic hyperlink to veekun, leave empty if unknown) | ||
| + | | Gender = * (Shows Unknown if unset) | ||
| + | | Age = * (Shows Unknown if unset) | ||
| + | | Alias = * | ||
| + | | NoMoveset = * (No moveset section if set) | ||
| + | | Move1 = (Moves default to None, automatic hyperlink to veekun, set NoMoveset if unavailable) | ||
| + | | Move2 = | ||
| + | | Move3 = | ||
| + | | Move4 = | ||
| + | | Trait = * (Shows Unknown if unset) | ||
| + | | Nature = * (Shows Unknown if unset) | ||
| + | | Stories = * (Stories related to this character) | ||
| + | | Links = * (Other points of interest) | ||
| + | }} | ||
| + | </pre> | ||
| + | </noinclude> | ||
Latest revision as of 23:22, 8 July 2013
|
CharacterTest |
|||||
|---|---|---|---|---|---|
|
|
|||||
| Affiliation | None | ||||
| Role | Unknown | ||||
| Usual Location | Unknown | ||||
| Species | Unknown | ||||
| Gender | Unknown | ||||
| Age | Unknown | ||||
| Trait | Unknown | ||||
| Nature | Unknown | ||||
|
|
|||||
|
|||||
Temporary Documentation
Derived from Template:Locations, Template:Groupevents and the old Template:Character.
Backward compatible with the old Template:Character.
Developmental version of Template:Character without auto-categorization.
Current functions:
{{CharacterTest
| Shortname = (If unset, defaults to pagename)
| Title = * (Similar to Role, e.g. Head of Tao Merchant's Guild for PK. Use as needed)
| Noimage = * (If set, no image will show in the infobox)
| Image = * (If unset, uses basepagename) (is overridden by Noimage)
| fullname = * (e.g. Payapa Kiwi Periy for PK)
| Affiliation = * (Shows None if unset, see Template:Guildheader for current ones, determines BG color of the first row, and additional category for Rescuers, Merchants, and Rogues)
| AffiliationLink = * (Wikiword link of the affiliation of the character, no link if unset)
| Role = * (Shows Unknown if unset)
| Location = (Shows Unknown if unset, automatically hotlinked by default)
| LocationNoLink = * (If set, Location would not be hotlinked)
| LocationSpecific = * (Shows "Location" instead of "Usual Location" if set)
| Species = * (Shows Unknown if unset -- Automatic hyperlink to veekun, leave empty if unknown)
| Gender = * (Shows Unknown if unset)
| Age = * (Shows Unknown if unset)
| Alias = *
| NoMoveset = * (No moveset section if set)
| Move1 = (Moves default to None, automatic hyperlink to veekun, set NoMoveset if unavailable)
| Move2 =
| Move3 =
| Move4 =
| Trait = * (Shows Unknown if unset)
| Nature = * (Shows Unknown if unset)
| Stories = * (Stories related to this character)
| Links = * (Other points of interest)
}}