Template:Trait infobox: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- | ||
============================= | |||
TEMPLATE: Trait Infobox | |||
============================= | |||
This template combines both the simple trait display and optional extra fields. | |||
PARAMETER NOTES: | |||
| trait = The trait’s name (e.g. "Expert"). If left empty, 'name' is used instead. | |||
| icon = Filename for the trait’s icon (e.g. "Trait_Expert.png"). | |||
| personality = The trait’s personality group (e.g. "Wise and Logical"). If left empty, 'category' is used. | |||
| description = A brief or detailed description of the trait. | |||
| tagline = A short tagline or flavor text for the trait. | |||
| gameplaytips = Optional gameplay tips or notes. | |||
| conflicts = Optional list or brief explanation of conflicting traits. | |||
| synergy = Optional list of complementary traits or synergy notes. | |||
| introduced = Optional mention of when/how the trait was introduced (e.g. "Base Game" or version number). | |||
USAGE EXAMPLE: | |||
{{Trait infobox | |||
| trait = Expert | |||
| icon = Trait_Expert.png | |||
| personality = Wise and Logical | |||
| description = Pursues exceptional knowledge and skills... | |||
| tagline = "Pursuing knowledge and skill" | |||
| gameplaytips = Great for skill-building... | |||
| conflicts = May clash with traits that discourage study | |||
| synergy = Explorer, Go-Getter | |||
| introduced = Base Game | |||
}} | |||
--> | --> | ||
<div style="float:right; margin:0 0 1em 1em; width:auto;"> | <div style="float:right; margin:0 0 1em 1em; width:auto;"> | ||
{| class="infobox" style="width: | {| class="infobox" style="width:300px; border:1px solid #aaa; background:#fff; font-size:90%; text-align:left;" | ||
|+ style="text-align:center; font-size: | |+ style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait|{{{name|}}}}} | ||
|- | |- | ||
| | | style="text-align:center; vertical-align:middle; width:64px;" | | ||
[[File:{{{icon|Placeholder.png}}}|64px|alt={{{alttext|}}}]] | |||
| style="vertical-align:middle; padding:4px;" | '''Personality:''' {{{personality|{{{category|}}}}} | |||
{{#if: {{{tagline|}}}| | |||
|- | |- | ||
! style=" | ! colspan="2" style="background:#f8f8f8; padding:6px; text-align:center; border-top:1px solid #ddd;" | {{{tagline}}} | ||
}} | |||
|- | |- | ||
| colspan="2" style="padding:6px;" | '''Description:''' {{{description|}}} | |||
{{#if: {{{gameplaytips|}}}| | {{#if: {{{gameplaytips|}}}| | ||
|- | |- | ||
| colspan="2" style="padding:6px;" | '''Gameplay Tips:''' {{{gameplaytips}}} | |||
}} | }} | ||
{{#if: {{{conflicts|}}}| | {{#if: {{{conflicts|}}}| | ||
|- | |- | ||
| colspan="2" style="padding:6px;" | '''Conflicts:''' {{{conflicts}}} | |||
}} | }} | ||
{{#if: {{{synergy|}}}| | {{#if: {{{synergy|}}}| | ||
|- | |- | ||
| colspan="2" style="padding:6px;" | '''Synergy:''' {{{synergy}}} | |||
}} | }} | ||
{{#if: {{{introduced|}}}| | {{#if: {{{introduced|}}}| | ||
|- | |- | ||
| colspan="2" style="padding:6px;" | '''Introduced:''' {{{introduced}}} | |||
}} | }} | ||
|} | |} | ||
Line 68: | Line 74: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Create or edit a page for a specific trait and add: | |||
<pre> | <pre> | ||
{{Trait infobox | {{Trait infobox | ||
| trait = | |||
| icon = | |||
| personality = | |||
| description = | |||
| tagline = | |||
| gameplaytips = | |||
| conflicts = | |||
| synergy = | |||
| introduced = | |||
}} | }} | ||
</pre> | </pre> | ||
See the code comments in this template for further parameter details. | |||
</noinclude> | </noinclude> |
Revision as of 14:57, 12 February 2025
Usage
Create or edit a page for a specific trait and add:
{{Trait infobox | trait = | icon = | personality = | description = | tagline = | gameplaytips = | conflicts = | synergy = | introduced = }}
See the code comments in this template for further parameter details.