Difference between revisions of "Template:Quest list header"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Added a parameter to split Rewards column into two, one with optional rewards)
(Undo revision 784351 by Dr Agon (talk))
Tag: Undo
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| {{STDT|quest}} {{#vardefine:quest-list-unlocks|}}{{#vardefine:quest-list-item-rewards|}}
{| {{STDT|quest}} {{#vardefine:quest-list-hide-type|}}{{#vardefine:quest-list-required-items|}}{{#vardefine:quest-list-unlocks|}}{{#vardefine:quest-list-item-rewards|}}{{#vardefine:quest-list-split-optional-rewards|}}
!| Quest
!| Quest
!| Type
{{#if:{{{hide-type|}}}|{{#vardefine:quest-list-hide-type|y}}|!! {{!}} Type}}
! style="width:40px"  | Level
! style="width:40px"  | Level
! | Quest Giver {{#if:{{{unlocks|}}}|{{#vardefine:quest-list-unlocks|y}}!! {{!}} Unlocks}} {{#if:{{{item-rewards|}}}|{{#vardefine:quest-list-item-rewards|y}}!!{{!}} Rewards {{#if:{{{split-optional-rewards|}}}|{{#vardefine:quest-list-split-optional-rewards|y}}!!{{!}} Optional Rewards}}}}  
! | Quest Giver<!--
-->{{#if:{{{required-items|}}}|{{#vardefine:quest-list-required-items|y}}!! {{!}} Required Items}}<!--
-->{{#if:{{{unlocks|}}}|{{#vardefine:quest-list-unlocks|y}}!! {{!}} Unlocks}}<!--
-->{{#if:{{{item-rewards|}}}|{{#vardefine:quest-list-item-rewards|y}}!!{{!}} Rewards {{#if:{{{split-optional-rewards|}}}|{{#vardefine:quest-list-split-optional-rewards|y}}!!{{!}} Optional Rewards}}}}  
|-<noinclude>
|-<noinclude>
{{quest list row|Lonely Vigil}}
{{quest list row|Lonely Vigil}}
Line 21: Line 24:
;Unnamed parameter 1
;Unnamed parameter 1
:[[Quest]]
:[[Quest]]
;hide-type
:Optional. Hides the quest type icon if set to anything except whitespace.
;required-items
:Optional. Shows the items required for the quest if set to anything expect whitespace.
;unlocks
:Optional. Shows the features the quest unlocks if set to anything expect whitespace.
;item-rewards
:Optional. Shows the item rewards from the quest if set to anything expect whitespace.


== Example ==
== Example ==

Latest revision as of 19:06, 14 July 2024

Quest Type Level Quest Giver
Lonely Vigil Sidequest 51 Spiteful Knight

Usage

The header for quest tables. Provides the header for {{quest list row}}, and related templates.

{{quest list header}}
{{quest list row|<Quest>}}
{{quest list row|<Quest>}}
|}

Parameters

Unnamed parameter 1
Quest
hide-type
Optional. Hides the quest type icon if set to anything except whitespace.
required-items
Optional. Shows the items required for the quest if set to anything expect whitespace.
unlocks
Optional. Shows the features the quest unlocks if set to anything expect whitespace.
item-rewards
Optional. Shows the item rewards from the quest if set to anything expect whitespace.

Example

{{quest list header}}
{{quest list row|<Quest>}}
{{quest list row|<Quest>}}
|}