Template:Trait/doc

From Lotro-Wiki.com
Jump to navigation Jump to search
This is the template documentation for {{Trait}}. It is transcluded from Template:Trait/doc and may be directly edited there.

Using this Template

Create new trait should be used to create a Trait article (page), then fill in the appropriate parameters.
You will find sections along with pre-determined formatting and information for the created article. If you do not need a section, you don't have to keep it into your article.
Keep in mind, this is a general template for ALL Traits. Therefore not all parameters apply to any given trait.
It should allow one to duplicate the in-game tooltip!
Many parameters should simply use the same value as found in the in-game tooltip -- 10 s or 10 seconds
Most parameters simply insert the text you provide directly into the template according to position and color.
Template: Template: Trait - Category: General Wiki Templates
Documentation: Template: Trait/doc - Category: Template Documentation
Preload: Template: Trait/Preload - Category:Template Preloads
Naming Pattern:
Skill - if same name: gets name without suffix
Deed - if same name: <name> (Deed)
Effect - if same name: <name> (Effect)
Trait - if same name: <name> (Trait)

Usage

  • This template accepts the parameter | nocat = yes -- Blank or Yes. If yes, then do NOT perform automatic categorization for this article.

Syntax

__NOTOC__<onlyinclude>{{Trait
| mode={{{mode|}}}       Leave as is
| arg={{{arg|}}}         Leave as is
| nocat               =  Blank or y/Y -- special parameter used in testing to suppress automatic categorization
| name                =  The Trait name, as it appears in game.
| disambigpage        = {{subst:FULLPAGENAME}}
| icon                = Name of Trait-icon
| type                = MANDATORY, type of trait as read in-game (either 'Virtue', 'Racial', 'Class', 'Beorning', 'Legendary', 'Corruption',
                        'Appearance', 'Mount Appearance', or 'War-steed'
| race                = Blank or for racial traits, name of the race to which trait applies ('Beorning', 'Dwarf', 'Elf', 'High Elf', 'Hobbit', 'Race of Man', 'River Hobbit', 'Stout-axe', 'Orc', 'Spider', 'Uruk', 'Warg')
| race2               = second race if applicable
| class               = Blank or 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')
| class2              = second class if applicable
| class3              = third class if applicable
| rank                = Blank or for virtues, the rank number of the trait
| description         = Text description of the trait
| skills-earned1      = Blank or the skills earned from this trait (use if this section comes before 'stats')
| skills-earned2      = Blank or the skills earned from this trait
| skills-earned3      = Blank or the skills earned from this trait
| skills-earned4      = Blank or the skills earned from this trait
| skills-earned5      = Blank or the skills earned from this trait
| stats               = Blank or stats of the trait 
| passive             = Blank or passive bonus stat(s) of the trait
| skills-earned       = Blank or skills earned by slotting the trait (use if this section comes after 'stats')
| requires            = Blank or requirements for slotting the trait 
| trait-set           = Blank or 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 {{settip}} section)
| trait-tree          = Blank or the trait tree which the trait belongs to
| ranks-needed        = Blank or the amount of ranks in other traits needed to access this trait
| requires-traits     = Blank or the trait required to access this trait
| requires-rank       = Blank or the amount of ranks in the required trait to access this trait
| rank1               = Blank or the benefits gained from rank 1 (use extra formatting if necessary)
| rank2               = Blank or the benefits gained from rank 2
| rank3               = Blank or the benefits gained from rank 3
| rank4               = Blank or the benefits gained from rank 4
| rank5               = Blank or the benefits gained from rank 5
| rank6               = Blank or the benefits gained from rank 6
| rank7               = Blank or the benefits gained from rank 7
| min-rank            = Blank or for monster player traits, the minimum rank required to acquire the trait
| com-cost            = Blank or for monster player traits, cost in commendations to acquire the trait
| dp-cost             = Blank or for monster player traits, cost in destiny points to acquire the trait
| lp-cost             = Blank or for monster player traits, cost in LOTRO Points to acquire the trait
| sig-cost            = Blank or for monster player traits, cost in Sigils of Dedication to acquire the trait
| sigb-cost           = Blank or for monster player traits, cost in Sigils of Battle to acquire the trait
| sigbg-cost          = Blank or for monster player traits, cost in Greater Sigils of Battle to acquire the trait
| spirit-stones       = Blank or for monster player corruptions, the cost in spirit stones to acquire the trait 
                        (use: {{Spirit Stones|d=|g=|l=}} )
| nineyr-cost         = Blank or for monster player traits, the cost in Nine-year Tokens to acquire the trait  
| tenyr-cost          = Blank or for monster player traits, the cost in Ten-year Tokens to acquire the trait  
}}</onlyinclude>

Meaning Behind the Parameters

Note: Regarding "blank or 'Yes'" for many parameters -- blank will not enable the feature of that parameter, but "Yes" or any other text will enable it, as will a single character, digit, or anything other than a space. Hence, blank means "off" (which is default), while any text means "on".

| mode ={{{mode|}}}
Leave as is
| arg ={{{arg|}}}
Leave as is
| nocat = yes
Blank or Yes. If yes, then do NOT perform automatic categorization for this article.

Name:

name
The Effect name, as it appears in game. Exact page name is required here to avoid issues with names containing diacritics and apostrophes (do not use {{PAGENAME}}). {{subst:PAGENAME}} usually works correctly, but if the item name does not equal the page name, replace the code with the item name spelled exactly as in-game. Example : the page is named "Chainsaw (Level 33)" but the item is simply named "Chainsaw" in-game (and assumingly other Chainsaw pages for other levels exist on the wiki).
disambigpage
name of Lotro-Wiki page for this item. Please retain {{subst:FULLPAGENAME}} in the disambigpage field. Otherwise you must use &#39; instead of any apostrophe ( ' ).
icon
The icon to display on the tooltip; omit the "File:" prefix and the filename extension ".png," but include "-icon;" passed to {{icon}}. Preferably this is a generic icon, see Category:Icons for further details. Should an icon not exist, use the exact page name to avoid issues with names containing diacritics and apostrophes (do not use {{PAGENAME}}). Example : "Cloak 1 (incomparable)-icon"
type
MANDATORY : green text "type" as read in-game. Displayed in lightgreen left aligned in box - Virtue Inserts entry into the appropriate category based on type.
Values: 'Virtue', 'Racial', 'Class', 'Legendary', 'Set Bonus', 'Corruption', 'Appearance', 'Mount Appearance', or 'War-steed'.
race
Blank or for racial traits, name of the race to which trait applies. Does not display in Tooltip, creates an entry under "Trait Information" heading," inserts entry into the appropriate category based on race.
Values: 'Beorning', 'Dwarf', 'Elf', 'High Elf', 'Hobbit', 'Race of Man', 'River Hobbit', 'Stout-axe', 'Orc', 'Spider', 'Uruk', 'Warg.'
race2
Blank or for racial traits, name of the race to which trait applies. Does not display in Tooltip, creates an entry under "Trait Information" heading," inserts entry into the appropriate category based on race.
Values: 'Beorning', 'Dwarf', 'Elf', 'High Elf', 'Hobbit', 'Race of Man', 'River Hobbit', 'Stout-axe', 'Orc', 'Spider', 'Uruk', 'Warg.'
class
Blank or for class traits, name of the class to which trait applies. Does not display in Tooltip, creates an entry under "Trait Information" heading," inserts entry into the appropriate category based on class.
Values: 'Burglar', 'Captain', 'Champion', 'Guardian', 'Hunter', 'Lore-master', 'Minstrel', 'Rune-keeper', 'Warden', 'Orc Reaver', 'Orc Defiler', 'Spider Weaver', 'Uruk Blackarrow', 'Uruk Warleader', or 'Warg Stalker.'
class2
Blank or for class traits, name of the class to which trait applies. Does not display in Tooltip, creates an entry under "Trait Information" heading," inserts entry into the appropriate category based on class.
Values: 'Burglar', 'Captain', 'Champion', 'Guardian', 'Hunter', 'Lore-master', 'Minstrel', 'Rune-keeper', 'Warden', 'Orc Reaver', 'Orc Defiler', 'Spider Weaver', 'Uruk Blackarrow', 'Uruk Warleader', or 'Warg Stalker.'
class3
Blank or for class traits, name of the class to which trait applies. Does not display in Tooltip, creates an entry under "Trait Information" heading," inserts entry into the appropriate category based on class.
Values: 'Burglar', 'Captain', 'Champion', 'Guardian', 'Hunter', 'Lore-master', 'Minstrel', 'Rune-keeper', 'Warden', 'Orc Reaver', 'Orc Defiler', 'Spider Weaver', 'Uruk Blackarrow', 'Uruk Warleader', or 'Warg Stalker.'
rank
Blank or for virtues, the rank number of the trait. Displays in beige, right aligned in box prefixed with "Rank:" - Rank =: 7
description
Text description of the trait. Displays in gold left aligned in the box. - This is a description
skills-earned1-5
Blank or skills earned from this trait - enter each skill name without wikification ([[ ]]). Displays in magenta with the prefix "Skills Earned:" -
Skills Earned:
Defiant Challenge
stats
Blank or stats modified by the trait. Displays in yellowgreen left aligned in the box - +7 Morale
passive
Blank or passive bonus stats modified by the trait (for Virtues only). Displays in yellowgreen left aligned in the box after the text "Passive bonus(es):"- +200 Maximum Morale
skills-earned
Blank or skills earned by slotting the trait - enter skill name without wikification ([[ ]]). Displays in purple left aligned in box prefixed with "Skills Earned:" - Skills Earned =: Press Onward. Note : Skill name appears in white, as a "mode =link" pop-up.
requires
Blank or requirements for slotting the trait. Displays in red, left aligned in the box prefixed with "Requires:" - Requires : Press Onward
trait-set
Blank or for class traits, name of the trait set to which the trait belongs. This transcludes the trait-set information into the tool-tip (there should be a page with the same name that includes a {{settip}} section.)
trait-tree
Blank or the trait tree which the trait belongs to. Use this for all class traits after Update 12 : Helm's Deep. Epic Battle traits should use either "Engineer", "Officer" or "Vanguard". Class traits should use the named tree title. For example, appropriate values for a Hunter would be "Huntsman", "Bowmaster" or "Trapper of Foes".
ranks-needed
Blank or the amount of ranks in other traits needed to access this trait. This places a message in the tooltip in red stating the amount of points or ranks needed to access the trait. The message changes if 'trait-tree' is an Epic Battle tree or a class trait and if 'type' equals "Set Bonus".
requires-traits
Blank or the trait required to access this trait. This places a message in the tooltip in red stating if the trait in 'requires-traits' is needed to access the current trait and at what rank, indicated by 'requires-rank'.
requires-rank
Blank or the amount of ranks in the required trait to access this trait. Use this trait in conjunction with 'requires-traits' to indicate how many ranks in that trait are needed.
rank1-5
Blank or the benefits gained from rank 1-5 (use extra formatting if necessary). Automatically adds the "Rank #" header in dark green; the text in the parameter becomes light green unless overwritten.
min-rank
Blank or for monster player traits, the minimum rank required to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
com-cost
Blank or for monster player traits, cost in commendations to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
dp-cost
Blank or for monster player traits, cost in destiny points to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading," inserts entry into Category: Destiny Points.
lp-cost
Blank or for monster player traits, cost in LOTRO Points to acquire the trait Does not display in Tooltip, creates an entry under "Trait Information" heading."
sig-cost
Blank or for monster player traits, cost in Sigils of Dedication to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
sigb-cost
Blank or for monster player traits, cost in Sigils of Battle to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
sigbg-cost
Blank or for monster player traits, cost in Greater Sigils of Battle to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
spirit-stones
Blank or for monster player corruptions, the cost in spirit stones to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
(Use {{Spirit Stones|d =|g =|l =}} ).
This parameter should no longer be used except in special cases.
nine-year token
Blank or for monster player traits, cost in Nine-year Token to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."
ten-year token
Blank or for monster player traits, cost in Nine-year Token to acquire the trait. Does not display in Tooltip, creates an entry under "Trait Information" heading."

Transclusion Information

Linking to a Trait from, for example, Class Trait pages, may be done by the following example, also showing the result:

:{{:Stun Dust (Trait)|mode=imlink}} -- Displays Icon and link and "effect-text"
:{{:Stun Dust (Trait)|mode=link}}   -- Displays link only -- no icon.
 Stun Dust
Stun Dust

Supplemental Formatting

== Trait Information ==
: * Race: [[Race]]

: * Class: [[Class]]

=== PvMP Information ===
:* Minimum Rank:
:* Destiny Point Cost: [[Destiny Point]]
:* Commendation Cost:
:* LOTRO Point Cost:
:* Sigil of Dedication:
:* Sigil of Battle
:* Greater Sigil of Battle:
:* Nine-year Token
:* Ten-year Token