Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!

Template:Feat Brief

From DDO wiki
Jump to navigation Jump to search

Usage[edit]

{{Feat Brief
 | Icon=
 | Feat=
 | Type= <!--Active/Passive-->
 | Description=
 | Prereqs=
<!-- optionally -->
 | repeats= <!-- A number -->
 | nocolor= <!-- true/false -->
}}
  • Icon is the name of the file (without the "File:" part)
  • Feat is the feat name. It is automatically linked. You can change display name from the link name by using |Feat=link_name {{!}}display_name
  • Type is usually Active or Passive.
  • Description is a concise description of the feat.
  • Prerequisites
  • repeats is an optional integer number. It sets the repeat counter of the template. The background color of the template will change if the number is odd or even.
  • nocolor is an optional boolean value. If true, the default table background color will be used. If this is true, the |repeats= parameter does nothing.

You can use the template alone, or between the {{Feat Brief/Top}} - {{Feat Brief/Bottom}} templates.

If used inside the Top and Bottom templates, the background color of the table rows will alternate from default color (gray) to #EEE8AA (yellowish). Using the |repeats= parameter in one of those templates will override this behavior by setting the color allowing you to have multiple yellow or multiple grey lines. When the parameter stops being used, the alternating behavior will continue from the last used color.

Setting |nocolor= to true means that the default color will be applied and the internal counter will not change. When the parameter stops being used, the colors will alternate again from the last time "nocolor" was not set.

The alternating color behavior only applies when used between the Top/Bottom templates and persists through tables. If the template is used alone, the color will be the default (unless "repeats" is set) and the counter is set to 0, meaning that the next color will be the default again.

Examples[edit]

Use this template when you just wanna list one feat.

{{Feat_Brief
 |Icon=
 |Feat=
 |Type=
 |Description=
 |Prereqs= 
}}

Use the following combo when you need to list a series of feats.

{{Feat_Brief/Top}}
{{Feat_Brief
 |Icon=
 |Feat=
 |Type=
 |Description=
 |Prereqs= 
}}
{{Feat_Brief
 |Icon=
 |Feat=
 |Type=
 |Description=
 |Prereqs= 
}}
{{Feat_Brief
 |Icon=
 |Feat=
 |Type=
 |Description=
 |Prereqs= 
}}
...
{{Feat_Brief/Bottom}}

Setting the color:

{{Feat_Brief
 |Icon=
 |Feat=
 |Type=
 |Description=
 |Prereqs=
 |repeats=1
}}

CODE[edit]