Template:Infobox Character: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class=" | <div class="portable-infobox" style="float: right; clear: right; width: 320px; margin: 0 0 15px 20px; background: #f8f9fa; border: 1px solid #bcc2cb; border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-sizing: border-box;"> | ||
<div style="background: #1e90ff; color: white; text-align: center; font-weight: 700; font-size: 18px; padding: 10px 15px; letter-spacing: 0.5px;">{{{name|{{PAGENAME}}}}}</div> | |||
<table style="width: 100%; border-collapse: collapse;"> | {{#if:{{{image|}}}| | ||
{{#if:{{{species|}}}|<tr style="border-bottom: 1px solid #eaecf0;"><td style="font-weight: | <div style="background: #ffffff; padding: 10px; text-align: center; border-bottom: 1px solid #eaecf0;"> | ||
{{#if:{{{faction|}}}|<tr style="border-bottom: 1px solid #eaecf0;"><td style="font-weight: | [[File:{{{image}}}|300x400px|center|thumbnail|link=]] | ||
{{#if:{{{status|}}}|<tr style="border-bottom: 1px solid #eaecf0;"><td style="font-weight: | </div> | ||
{{#if:{{{abilities|}}}|<tr><td style="font-weight: | }} | ||
<table style="width: 100%; border-collapse: collapse; margin: 5px 0;"> | |||
{{#if:{{{species|}}}| | |||
<tr style="border-bottom: 1px solid #eaecf0;"> | |||
<td style="font-weight: 600; color: #54595d; padding: 8px 12px; width: 35%; vertical-align: top;">Species</td> | |||
<td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{species}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{faction|}}}| | |||
<tr style="border-bottom: 1px solid #eaecf0;"> | |||
<td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Faction</td> | |||
<td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{faction}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{status|}}}| | |||
<tr style="border-bottom: 1px solid #eaecf0;"> | |||
<td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Status</td> | |||
<td style="padding: 8px 12px; color: #202122; vertical-align: top;"> | |||
<span style="display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: bold; font-size: 12px; background: {{#switch:{{lower:{{{status}}}}}|alive=#e1f5fe|deceased=#ffebee|#f5f5f5}}; color: {{#switch:{{lower:{{{status}}}}}|alive=#0288d1|deceased=#c62828|#616161}};">{{{status}}}</span> | |||
</td> | |||
</tr> | |||
}} | |||
{{#if:{{{abilities|}}}| | |||
<tr> | |||
<td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Abilities</td> | |||
<td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{abilities}}}</td> | |||
</tr> | |||
}} | |||
</table> | </table> | ||
</div><noinclude> | </div><noinclude> | ||
Revision as of 21:21, 7 June 2026
TemplateData Documentation
This is the documentation for the VisualEditor form interface.
An infobox summarizing key details for a character in the universe.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Character Name | name | The name of the character. Defaults to the page title. | String | suggested |
| Image File | image | Just the filename, e.g., CharacterPortrait.png (do not type 'File:') | File | suggested |
| Species | species | The character's race or biological species. | String | suggested |
| Faction / Alignment | faction | The group, military unit, hivemind, or side they fight for. | String | suggested |
| Current Status | status | Alive, Deceased, Missing, Captured, Unknown, etc. | String | suggested |
| Powers / Abilities | abilities | Notable skills or unique powers. | String | optional |