Template:Trait infobox: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | |||
| name | <!-- | ||
| icon | Trait Infobox for Inzoi | ||
| description | --------------------------------------------------- | ||
| | Inspired by the FFXIV "Item infobox," but repurposed | ||
for use with character traits in the Inzoi game. | |||
| | |||
| | PARAMETERS: | ||
| name = Name of the trait (defaults to PAGENAME if omitted). | |||
| icon = File name for the trait’s icon (e.g. "Expert.png"); omit "File:" prefix. | |||
| group = The overarching group or personality category (e.g. "Wise and Logical"). | |||
| type = More specific sub-type or classification if applicable (optional). | |||
| release = For tracking expansions or major releases. (optional) | |||
| patch = For tracking patch version (optional). | |||
| description = Description of the trait. | |||
| synergy = Optional field to list synergy or related traits. | |||
| notes = Optional developer/extra notes. | |||
USAGE EXAMPLE (on a Trait page): | |||
{{Trait infobox | |||
| name = Expert | |||
| icon = ExpertTrait.png | |||
| group = Wise and Logical | |||
| type = Knowledge-Focused | |||
| release = | |||
| patch = | |||
| description = Pursues exceptional knowledge and skills, interested in theory... | |||
| synergy = Explorer | |||
| notes = This trait is especially useful for science-based careers. | |||
}} | |||
--> | |||
{{#switch:{{lc:{{{release|}}}}} | |||
| | |||
<!-- Example for future expansions; replace these with actual expansions if desired | |||
| expansion1 = <!-- some special category or banner --> | |||
| expansion2 = | |||
--> | |||
}}{{#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= | |||
| #default = [[Category:Missing release]] | |||
}}}} | |||
<div class="infobox-n trait"> | |||
<!-- Hidden "dot" to help with layout --> | |||
<div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | |||
< | <!-- Icon Section --> | ||
<div class="icon infobox-icon"> | <div class="icon infobox-icon"> | ||
{{#if: {{{icon|}}} | {{#if: {{{icon|}}} | ||
| [[File:{{{icon}}}|46px]] | |||
| [[File:DefaultTraitIcon.png|46px]] <!-- Fallback if icon not provided --> | |||
}} | }} | ||
</div> | </div> | ||
<p class="heading"> | <!-- Heading / Title --> | ||
<p class="heading"> | |||
[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]] | |||
</p> | |||
<div class="trait | <!-- Trait Classification --> | ||
< | <div class="statistics trait"> | ||
<!-- Group (e.g. "Wise and Logical") --> | |||
{{#if: {{{group|}}} | |||
| <span class="characteristic group" title="Personality Group/Category">{{{group}}}</span> | |||
}} | |||
< | <!-- Type (optional further classification) --> | ||
{{#if: {{{ | {{#if: {{{type|}}} | ||
| • <span class="characteristic type">{{{type}}}</span> | |||
}} | }} | ||
</div> | </div> | ||
{{#if: {{{ | <div class="wrapper"> | ||
<!-- Additional fields can be shown as a definition list --> | |||
{{#if: {{{release|}}} | |||
| ;Release | |||
:{{{release}}} | |||
}} | |||
{{#if: {{{patch|}}} | |||
| ;Patch | |||
:{{{patch}}} | |||
}} | |||
{{#if: {{{synergy|}}} | |||
| ;Related/Synergy | |||
:{{{synergy}}} | |||
}} | |||
{{#if: {{{notes|}}} | |||
| ;Notes | |||
:{{{notes}}} | |||
}} | |||
</div> | |||
{{#if: {{{ | <!-- Description --> | ||
{{#if: {{{description|}}} | |||
| {{Quotation|game| | |||
{{{description}}} | |||
}} | |||
}} | }} | ||
</div> | </div> | ||
[[Category:Traits]] | <!-- | ||
AUTOCATEGORIZATION (optional). | |||
For example, if you wish to auto-categorize by group, | |||
uncomment or extend the logic below: | |||
--> | |||
{{#if: {{{group|}}} | |||
| [[Category:{{{group}}} Traits]] | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
== Usage == | |||
Use this template to provide an infobox for an **Inzoi** trait page. | |||
'''Example:''' | |||
<pre> | |||
{{Trait infobox | |||
| name = Expert | |||
| icon = ExpertTrait.png | |||
| group = Wise and Logical | |||
| type = Knowledge-Focused | |||
| release = (Optional release info) | |||
| patch = (Optional patch info) | |||
| description = Pursues exceptional knowledge and skills, interested in theory, technology... | |||
| synergy = Explorer | |||
| notes = This trait is especially effective in research-related professions. | |||
}} | |||
</pre> | |||
== Parameters == | |||
; name | |||
: (Optional) The trait’s display name. Defaults to the page name if left blank. | |||
; icon | |||
: (Optional) The file name for the trait’s icon. If omitted, will display "DefaultTraitIcon.png". | |||
; group | |||
: (Optional) The trait’s main personality category or group (e.g. "Wise and Logical"). | |||
; type | |||
: (Optional) A secondary classification or sub-type (e.g. "Knowledge-Focused"). | |||
; release | |||
: (Optional) Expansion or major update in which this trait was introduced. | |||
; patch | |||
: (Optional) Specific patch version for the trait’s introduction or rework. | |||
; description | |||
: (Optional) Main descriptive text for the trait. | |||
; synergy | |||
: (Optional) Other traits it works well with or is closely related to. | |||
; notes | |||
: (Optional) Developer notes, additional mechanics, or tips. | |||
[[Category:Infobox templates|Trait infobox]] | |||
</noinclude> |
Revision as of 14:40, 12 February 2025
Usage
Use this template to provide an infobox for an **Inzoi** trait page.
Example:
{{Trait infobox | name = Expert | icon = ExpertTrait.png | group = Wise and Logical | type = Knowledge-Focused | release = (Optional release info) | patch = (Optional patch info) | description = Pursues exceptional knowledge and skills, interested in theory, technology... | synergy = Explorer | notes = This trait is especially effective in research-related professions. }}
Parameters
- name
- (Optional) The trait’s display name. Defaults to the page name if left blank.
- icon
- (Optional) The file name for the trait’s icon. If omitted, will display "DefaultTraitIcon.png".
- group
- (Optional) The trait’s main personality category or group (e.g. "Wise and Logical").
- type
- (Optional) A secondary classification or sub-type (e.g. "Knowledge-Focused").
- release
- (Optional) Expansion or major update in which this trait was introduced.
- patch
- (Optional) Specific patch version for the trait’s introduction or rework.
- description
- (Optional) Main descriptive text for the trait.
- synergy
- (Optional) Other traits it works well with or is closely related to.
- notes
- (Optional) Developer notes, additional mechanics, or tips.