Template:Infobox Trait: Difference between revisions

From Echoes of Angmar
Content deleted Content added
Created page with "<onlyinclude><includeonly> {{#switch:{{{mode|}}} |link={{loot|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}} |imlink={{#if:{{{icon|}}}|[[Image:{{{icon}}}.png]] }}{{loot|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}} |arg={{{{{{arg|name}}}|--}}} |#default=<div class="itemtooltip" style="font-size: {{#ifeq:{{FULLPAGENAME}}|{{{disambigpage|{{{name}}}}}}|1em; float: {{{float|left}}}|1em; flo..."
 
No edit summary
Line 1: Line 1:
<onlyinclude><includeonly>
<includeonly>[[Category:Traits]]
{{#switch:{{{mode|}}}
{{ #if: {{{POTD|}}} |
|link={{loot|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}}
|imlink={{#if:{{{icon|}}}|[[Image:{{{icon}}}.png]]&nbsp;}}{{loot|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}}
|arg={{{{{{arg|name}}}|--}}}
|#default=<div class="itemtooltip" style="font-size: {{#ifeq:{{FULLPAGENAME}}|{{{disambigpage|{{{name}}}}}}|1em; float: {{{float|left}}}|1em; float: {{{float|left}}}}}; width: {{{width|25em}}};">
<!-- Icon -->{{#if:{{{icon|}}}|{{Icon|{{{icon}}}||{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage|{{{name}}}}}}|3|4}}|float=left|margin=1px}}}}&nbsp;&nbsp;
<!-- Trait Name --><span style="color:#C3B585; font-family:serif; font-stretch=narrower; font-variant:small-caps; font-size:2em; clear:all;">{{{name}}}</span>{{clr}}


{{ #switch: {{{type|}}}
<ul>
| Racial = [[Category:Racial Traits]]
<li style="vertical-align: top; color: #2AB51F; padding-top:0.5em;"> {{ #switch: {{{type|}}}
| Racial | racial = Race
| Virtue = [[Category:Virtues]]
| Virtue | virtue = Virtue
| Class = [[Category:Class Traits]]
| Legendary = [[Category:Legendary Traits]]
| Class | class = Class
| Corruption = [[Category:Corruptions]]
| Legendary | legendary = Legendary
| Appearance = [[Category:Appearance Traits]]
| Corruption | corruption = Corruption
}}
| Appearance | appearance = Appearance
}}


{{ #if: {{{race|}}} |
<!-- End Infobox --></ul></div>}}
{{ #switch: {{{race|}}}
</includeonly></onlyinclude>
| Monster
| Dwarf
| Elf
| Hobbit
| Race of Man = [[Category:{{{race}}} Traits]]
| Man = [[Category:Race of Man Traits]]
}}
}}


{{ #if: {{{class|}}} |
{{ #switch: {{{class|}}}
| Burglar
| Captain
| Champion
| Guardian
| Hunter
| Lore-master
| Minstrel
| Rune-keeper
| Warden = [[Category:{{{class}}} Traits]]
| Orc Reaver
| Orc Defiler
| Spider Weaver
| Uruk Blackarrow
| Uruk Warleader
| Warg Stalker = [[Category:{{{class}}} Traits]][[Category:Monster Play]]
| Reaver = [[Category:Orc Reaver Traits]][[Category:Monster Play]]
| Defiler = [[Category:Orc Defiler Traits]][[Category:Monster Play]]
| Weaver = [[Category:Spider Weaver Traits]][[Category:Monster Play]]
| Blackarrow = [[Category:Uruk Blackarrow Traits]][[Category:Monster Play]]
| Warleader = [[Category:Uruk Warleader Traits]][[Category:Monster Play]]
| Warg = [[Category:Warg Stalker Traits]][[Category:Monster Play]]
}}
}}


}}
<noinclude>
</includeonly>

= Usage =


{| class="skill-infobox" width=350px; style="background: #1F1F1F; font-family: sans-serif; border: 2px solid darkgrey;"
This template should be used for traits. All fields except 'name' and 'type' are optional. You can use <nowiki><br></nowiki> to force a line break on a field. Copy and paste this text to create a trait page:

<div style="float:left;">
<nowiki>{{Infobox Trait
| name = {{PAGENAME}}
| image = {{PAGENAMEE}}-icon.png
| type =
| race =
| class =
| rank =
| description =
| stats =
| requires =
| trait-set =
| dp-cost =
| min-rank =
| spirit-stones = {{Spirit Stones|d=|g=|l=}}
}}</nowiki>
</div>
<br clear=all>

{| class="altRows"
| width=100px | '''type'''
| Type of trait (either 'Virtue', 'Racial', 'Class', 'Legendary', 'Corruption', or 'Appearance')
|-
|-
{{#if:{{{POTD<includeonly>|</includeonly>}}}|
| '''race'''
{{!}} colspan="3" style="text-align: right;color:black;" {{!}} [[Talk:{{{name}}}|talk]]
| For racial traits, name of the race to which trait applies ('Dwarf', 'Elf', 'Hobbit', 'Race of Man', 'Orc', 'Spider', 'Uruk', 'Warg')
}}
|- class="skill-header"
{{#if:{{{image<includeonly>|</includeonly>}}}|
{{!}} width=32px style="text-align: left;" {{!}} [[Image:{{{image<noinclude>|-icon.png</noinclude>}}}]]
}}
! colspan="2" style="padding-top: 0.5em; " | <span style="font-size: 130%;color: #C3B585; font-family: serif; font-variant: small-caps;">{{{name|{{PAGENAME}}}}}</span><br>
|-
|-
| colspan="2" style="vertical-align: top; color: green;" | {{ #switch: {{{type|}}}
| '''class'''
| Racial = Race
| For class traits , name of the class to which trait applies ('Burglar', 'Captain', 'Champion', 'Guardian', 'Hunter', 'Lore-master', 'Minstrel', 'Rune-keeper', 'Warden', 'Orc Reaver', 'Orc Defiler', 'Spider Weaver', 'Uruk Blackarrow', 'Uruk Warleader', or 'Warg Stalker')
| Virtue
| Class
| Legendary
| Corruption
| Appearance = {{{type}}}
}}
{{#if:{{{rank<includeonly>|</includeonly>}}}|
{{!}} style="vertical-align: top; color: #C3B585; text-align: right;" {{!}} Rank: {{{rank}}}
}}
|-
|-
{{#if:{{{description<includeonly>|</includeonly>}}}|
| '''rank'''
{{!}} colspan="3" style="vertical-align: top; color: #C3B51F;" {{!}} {{{description}}}
| For virtues, the rank number of the trait
}}
|-
|-
{{#if:{{{stats<includeonly>|</includeonly>}}}|
| '''description'''
<!-- -->{{!}} colspan="3" style="vertical-align: top; color: yellowgreen;" {{!}} {{{stats}}}
| Text description of the trait
}}
|-
| '''stats'''
| Stats of the trait (in green text)
|-
|-
{{#if:{{{requires<includeonly>|</includeonly>}}}|
| '''requires'''
<!-- -->{{!}} colspan="3" style="vertical-align: top; color: red;" {{!}} Requires: {{{requires}}}
| Requirements for slotting the trait (in red text)
}}
|-
| '''trait-set'''
| For class traits, name of the trait set to which the trait belongs (there should be a page with the same name that includes a <nowiki>{{settip}}</nowiki> section)
|-
| '''dp-cost'''
| For monster player traits, cost in destiny points to acquire the trait
|-
| '''min-rank'''
| For monster player traits, the minimum rank required to acquire the trait
|-
| '''spirit-stones'''
| For monster player corruptions, the cost in spirit stones to acquire the trait (using [[Template:Spirit Stones]])
|}
|}


<noinclude>

This template should be used for traits. All fields except 'name' are optional. You can use <br> to force a line break on a field.

<div style="float:left;">
<nowiki>{{Infobox Trait
| name = {{PAGENAME}}
| image = {{PAGENAMEE}}-icon.png
| type =
| race =
| class =
| description =
| stats =
| requires =
| trait-set =
| level =
| deed =
| dp-cost =
}}</nowiki>
</div>
[[Category:General Wiki Templates|{{PAGENAME}}]][[Category:Infobox templates]]
[[Category:General Wiki Templates|{{PAGENAME}}]][[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 06:47, 2 June 2023


[[Talk:{{{name}}}|talk]]
Infobox Trait
Rank: {{{rank}}}
{{{description}}}
{{{stats}}}
Requires: {{{requires}}}


This template should be used for traits. All fields except 'name' are optional. You can use
to force a line break on a field.

{{Infobox Trait
| name           = {{PAGENAME}}
| image          = {{PAGENAMEE}}-icon.png
| type           = 
| race           = 
| class          = 
| description    = 
| stats          = 
| requires       = 
| trait-set      = 
| level          = 
| deed           =
| dp-cost        = 
}}