Template:RecipeTable/Difficulty

From Warcraft Wiki
Jump to navigation Jump to search


Documentation

To reduce the size of the Alchemy/RecipeTable pages, this template permits one to replace four columns in each row with a single template.

Syntax

  • {{RecipeTable/Difficulty|A|B|C|D|rowspan=E}}
    • A, B, C and D will be output as table cells in the colors Orange, Yellow, Green, Grey.
    • Rowspan, if left blank, will default to 1. Use this to set rowspan to another value.
  • {{:Minor Mana Potion|tpl=RecipeTable/Difficulty|args=(optional, to pass rowspan)}}
    • The values will be automatically determined so long as the following attributes are set in the infobox of the item (mandatory):
      • createorange=
      • createyellow=
      • creategreen=
      • creategray=

Output

align=center rowspan=E | <span class="skill-orange">A</span>
| align=center rowspan=E | <span class="skill-yellow">B</span>
| align=center rowspan=E | <span class="skill-green">C</span>
| align=center rowspan=E | <span class="skill-gray">D</span>

Usage

{| class=darktable
|-
! {{RecipeTable/DifficultyHeader}}
|-
| {{RecipeTable/Difficulty|10|20|30|40}}
|-
| {{:Minor Mana Potion|tpl=RecipeTable/Difficulty}}
|}

Adding the rowspan property is optional. When left out, it will be defaulted to 1.

See Also

This template should be used with {{RecipeTable/DifficultyHeader}}