Difference between revisions of "Template:EndeavorTable"
Jump to navigation
Jump to search
>Canim44 (Creating Template:EndeavorTable) |
>Yvsdrop m (allow table to take an optional styling attribute) |
||
| (11 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{#vardefine:endeavorTotal|0}} | + | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{#vardefine:endeavorTotal|0}}{| class="wikitable sortable" style="{{{style|width:100%}}}" |
| − | {| class="wikitable sortable" | ||
! # || Description || Reward | ! # || Description || Reward | ||
{{{endeavors|}}} | {{{endeavors|}}} | ||
| − | |} | + | |}</includeonly> |
| − | </includeonly> | ||
Latest revision as of 04:03, 21 January 2020
Usage
{{EndeavorTable|endeavors=
{{EndeavorRow|Gift (no quantity given)|Four-Leaf Clover}}
{{EndeavorRow|Material|Oceanic Fin|1,500}}
{{EndeavorRow|Currency|Mana|1,500}}
{{EndeavorRow|Consumable|Tenfold Summon Voucher|1}}
{{EndeavorRow|ERROR|Epithet w/o Rank}}
{{EndeavorRow|ERROR|Epithet w/o Rank assigned|Rank=}}
{{EndeavorRow|Description|Epithet with Quantity|2|Rank=2}}
}}
Template Fields
1: Description of Endeavor.
- Default is blank.
2: Item or Epithet rewarded.
- Default is blank.
- This will call the quick icon template if Rank is not assigned.
3: Quantity rewarded.
- Default is 1.
Rank: Rank of Epithet.
- Must be assigned a value with Epithets to work as intended.
Style: CSS attributes for table element.
- Default is
width:100%.
Example
| # | Description | Reward |
|---|---|---|
| 1 | Gift (no quantity given) | Error: Table Gifts not found. x1
|
| 2 | Material | Error: Table Materials not found. x1,500
|
| 3 | Currency | |
| 4 | Consumable | Error: Table Consumables not found. x1
|
| 5 | ERROR | Template:Epithet w/o Rank- x1 |
| 6 | ERROR | Template:Epithet w/o Rank assigned- x1 |
| 7 | Description |