Ddcorkum13374@legacy41534370 (talk | contribs) (Added optional property rowspan) |
Ddcorkum13374@legacy41534370 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
− | <includeonly>align=center rowspan={{{rowspan |
+ | <includeonly>align=center rowspan={{{rowspan|1}}} | <span style="color:orange">{{{1}}}</span> |
− | | align=center rowspan={{{rowspan |
+ | | align=center rowspan={{{rowspan|1}}} | <span style="color:yellow">{{{2}}}</span> |
− | | align=center rowspan={{{rowspan |
+ | | align=center rowspan={{{rowspan|1}}} | <span style="color:green">{{{3}}}</span> |
− | | align=center rowspan={{{rowspan |
+ | | align=center rowspan={{{rowspan|1}}} | <span style="color:gray">{{{4}}}</span></includeonly><noinclude> |
== Documentation == |
== Documentation == |
Revision as of 21:05, 21 November 2010
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.
Output
align=center rowspan=E | <span style="color:orange">A</span> | align=center rowspan=E | <span style="color:yellow">B</span> | align=center rowspan=E | <span style="color:green">C</span> | align=center rowspan=E | <span style="color:gray">D</span>
Usage
{| class=darktable |- ! {{RecipeTable/DifficultyHeader}} |- | {{RecipeTable/Difficulty|10|20|30|40}} |}
Adding the rowspan property is optional. When left out, it will be defaulted to 1.
Result
Orange | Yellow | Green | Gray |
---|---|---|---|
10 | 20 | 30 | 40 |
See Also
This template should be used with {{RecipeTable/DifficultyHeader}}