Template:Trait compact table icon format

From Guild Wars 2 Wiki
Jump to: navigation, search


Used in {{Trait compact table icon}} to generate a trait icon with a clickable link to the icon page and a popup description. All trait icons are 32px.

Requires custom CSS in order to display the popup properly. This popup uses the class "popup" and subclass "trait".

  1. Icon Name
  2. ?has canonical name
  3. ?has game icon
  4. ?has game description.
{{Custom CSS|css=
.skill-link {
  display:inline-block;
  position:relative;
}

.skill-link div.popup {
  display: none;
}

.skill-link:hover .popup {
  display: block;
  position: absolute;
  margin-left: 25px;
  margin-top: -10px;
  box-shadow: 0px 0px 50px rgba(0,0,0,0.3);
  background-color: #FFF;
  border: 1px solid #AAA;
  padding: 10px 10px 0;
  font-weight: normal;
  z-index: 5;
}

.skill-link:hover .popup .default {
  width: 700px;
}

.skill-link:hover .popup .trait {
  width: 500px;
}

.skill-link:hover .popup .skill {
  width: 600px;
}

}}

Used by[edit]

{{Trait compact table}} with {{Trait compact table icon}}.

Example[edit]

{{Trait compact table icon format|Chemical Rounds|Chemical Rounds|File:Chemical_Rounds.png}}
{{Trait compact table icon format|Electric Discharge|Electric Discharge|File:Electric_Discharge.png}}
{{Trait compact table icon format|Doesn't matter|Bank|File:General_Merchant.png|Description goes here}}
{{Trait compact table icon format|Scrapper|Scrapper|File:Scrapper.png|More description}}
{{Trait compact table icon format|{{{1|Air}}}|{{#show:{{{1|Air}}}|?Has canonical name|link=none}}|{{#show:{{{1|Air}}}|?Has game icon|link=none}}}}
{{Trait compact table icon format|Scrapper|Error}}