Template:Trait infobox: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- | ||
Trait Infobox for Inzoi | ===================================== | ||
Trait Infobox for Inzoi (Stylized) | |||
===================================== | |||
PARAMETERS: | PARAMETERS: | ||
| name = | | name = The displayed name of the trait (defaults to PAGENAME if omitted). | ||
| icon = File name | | icon = File name of the trait icon (e.g., "Expert.png"). | ||
| group = | | group = Parent category / personality group for the trait. | ||
| type = | | type = Secondary classification or type (optional). | ||
| release = | | release = Expansion/major release (optional). | ||
| patch = | | patch = Patch version (optional). | ||
| description = | | description = Main description of the trait (in-game flavor). | ||
| synergy = | | synergy = Related/synergistic traits (optional). | ||
| notes = | | notes = Additional notes, tips, or dev info (optional). | ||
--> | |||
<!-- Handle expansions and patch categories --> | |||
--> | |||
{{#switch:{{lc:{{{release|}}}}} | {{#switch:{{lc:{{{release|}}}}} | ||
| | | heavensward = {{Heavensward expansion content}} | ||
| stormblood = {{Stormblood expansion content}} | |||
| shadowbringers = {{Shadowbringers expansion content}} | |||
| endwalker = {{Endwalker expansion content}} | |||
| dawntrail = {{Dawntrail expansion content}} | |||
}}{{#if:{{{release|}}}||{{#switch:{{{patch|}}} | }}{{#if:{{{release|}}}||{{#switch:{{{patch|}}} | ||
| 1.0|2.0|2.05|2.1|2.15|2.16|2.2|2.21|2.25|2.28|2.3|2.35|2.38|2.4|2.41|2.45|2.5|2.51|2.55|2.56|2.57= | | 1.0|2.0|2.05|2.1|2.15|2.16|2.2|2.21|2.25|2.28|2.3|2.35|2.38|2.4|2.41|2.45|2.5|2.51|2.55|2.56|2.57= | ||
| #default = [[Category:Missing release]] | | #default=[[Category:Missing release]] | ||
}}}} | }}}} | ||
< | <!-- Start of the actual Infobox layout --> | ||
<!-- | <table class="infobox trait-infobox" style="border:1px solid #ccc; background:#f9f9f9; width:280px; margin:0 0 1em 1em; float:right;"> | ||
< | <!-- Header row (Trait Name) --> | ||
<tr> | |||
<th colspan="2" style="background:#cce; color:#000; padding:5px; font-size:120%; text-align:center;"> | |||
{{{name|{{#titleparts:{{PAGENAME}}}}}}} | |||
</th> | |||
</tr> | |||
<!-- Icon | <!-- Icon + Basic Info row --> | ||
< | <tr> | ||
<td style="width:60px; text-align:center; padding:5px;"> | |||
<!-- Icon (fallback if none) --> | |||
{{#if: {{{icon|}}} | |||
| [[File:{{{icon}}}|50px]] | |||
| [[File:DefaultTraitIcon.png|50px]] <!-- fallback icon --> | |||
}} | |||
</td> | |||
<td style="vertical-align:top; padding:5px; line-height:1.4;"> | |||
<!-- Group --> | |||
{{#if: {{{group|}}} | |||
| '''Group:''' {{{group}}}<br/> | |||
}} | |||
<!-- Type --> | |||
{{#if: {{{type|}}} | |||
| '''Type:''' {{{type}}}<br/> | |||
}} | |||
<!-- Release --> | |||
{{#if: {{{release|}}} | |||
| '''Release:''' {{{release}}}<br/> | |||
}} | |||
<!-- Patch --> | |||
</ | {{#if: {{{patch|}}} | ||
| '''Patch:''' {{{patch}}}<br/> | |||
}} | |||
<!-- Synergy --> | |||
{{#if: {{{synergy|}}} | |||
| '''Synergy:''' {{{synergy}}} | |||
}} | |||
</td> | |||
</tr> | |||
<!-- Description row --> | |||
<!-- Description --> | |||
{{#if: {{{description|}}} | {{#if: {{{description|}}} | ||
| {{Quotation|game| | | <tr> | ||
<td colspan="2" style="padding:8px;"> | |||
{{Quotation|game|{{{description}}}}} | |||
</td> | |||
</tr> | |||
}} | }} | ||
</ | <!-- Notes row (optional) --> | ||
{{#if: {{{notes|}}} | |||
| <tr> | |||
<td colspan="2" style="padding:8px; font-size:90%; font-style:italic;"> | |||
'''Notes:''' {{{notes}}} | |||
</td> | |||
</tr> | |||
}} | |||
</table> | |||
<!-- | <!-- Auto-categorization by group (optional) --> | ||
--> | |||
{{#if: {{{group|}}} | {{#if: {{{group|}}} | ||
| [[Category:{{{group}}} Traits]] | | [[Category:{{{group}}} Traits]] | ||
Line 111: | Line 97: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Use this template to | Use this template to place a styled infobox at the top-right of an Inzoi trait page. | ||
=== Basic Example === | |||
<pre> | <pre> | ||
{{Trait infobox | {{Trait infobox | ||
| name = Expert | | name = Expert | ||
| icon = | | icon = Expert.png | ||
| group = Wise and Logical | | group = Wise and Logical | ||
| type = Knowledge-Focused | | type = Knowledge-Focused | ||
| release = | | release = | ||
| patch = | | patch = | ||
| description = Pursues exceptional knowledge and skills | | description = Pursues exceptional knowledge and skills... | ||
| synergy = Explorer | | synergy = Explorer | ||
| notes = | | notes = Especially helpful for R&D tasks. | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | === Parameters === | ||
; name | ; name | ||
: (Optional) | : (Optional) Defaults to the page name if omitted. | ||
; icon | ; icon | ||
: (Optional) | : (Optional) File name of the trait’s icon. If omitted, uses "DefaultTraitIcon.png". | ||
; group | ; group | ||
: (Optional) | : (Optional) Main personality category (e.g., "Wise and Logical"). | ||
; type | ; type | ||
: (Optional) A | : (Optional) A sub-classification. | ||
; release | ; release | ||
: (Optional) Expansion or major update in which | : (Optional) Expansion or major update in which the trait was introduced. | ||
; patch | ; patch | ||
: (Optional) Specific patch version | : (Optional) Specific patch version. | ||
; description | ; description | ||
: (Optional) Main descriptive text for the trait. | : (Optional) Main descriptive text for the trait (displayed in a quote box). | ||
; synergy | ; synergy | ||
: (Optional) Other traits it | : (Optional) Other traits or mechanics it pairs well with. | ||
; notes | ; notes | ||
: (Optional) | : (Optional) Additional remarks or tips. | ||
[[Category:Infobox templates|Trait infobox]] | [[Category:Infobox templates|Trait infobox]] | ||
</noinclude> | </noinclude> |
Revision as of 14:43, 12 February 2025
Usage
Use this template to place a styled infobox at the top-right of an Inzoi trait page.
Basic Example
{{Trait infobox | name = Expert | icon = Expert.png | group = Wise and Logical | type = Knowledge-Focused | release = | patch = | description = Pursues exceptional knowledge and skills... | synergy = Explorer | notes = Especially helpful for R&D tasks. }}
Parameters
- name
- (Optional) Defaults to the page name if omitted.
- icon
- (Optional) File name of the trait’s icon. If omitted, uses "DefaultTraitIcon.png".
- group
- (Optional) Main personality category (e.g., "Wise and Logical").
- type
- (Optional) A sub-classification.
- release
- (Optional) Expansion or major update in which the trait was introduced.
- patch
- (Optional) Specific patch version.
- description
- (Optional) Main descriptive text for the trait (displayed in a quote box).
- synergy
- (Optional) Other traits or mechanics it pairs well with.
- notes
- (Optional) Additional remarks or tips.