Template:Quest: Difference between revisions

From HorizonXI Wiki
No edit summary
(used css classes to style, fixed some errors)
Line 1: Line 1:
<includeonly>{{Tocright}}
<includeonly>{{Tocright}}
{| width="50%"
{| class="horizon-infobox infobox-quest infobox-34-66"
|-
|-
{{#if: {{{Quest Name|}}}|
{{#if: {{{Quest Name|}}}|
! width="100px" class="infobox-quest-header horizon-table"{{!}} {{{PAGENAME}}
! {{!}} {{PAGENAME}}
{{!}}class="infobox-quest-header horizon-table"{{!}} {{{PAGENAME}}}}}
{{!}} {{!}} {{PAGENAME}}}}
|-
|-
{{#if:{{{startnpc|}}}|
{{#if:{{{startnpc|}}}|
! width="100px" class="infobox-quest-header horizon-table"{{!}} Start NPC
! Start NPC  
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{startnpc}}}}}
{{!}} {{{startnpc}}}}}
|-
|-
{{#if:{{{requirements|}}}|
{{#if:{{{requirements|}}}|
!class="infobox-quest-header horizon-table"{{!}} Requirements
! Requirements
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{requirements}}}}}
{{!}} {{{requirements}}}}}
|-
|-
{{#if:{{{items|}}}|
{{#if:{{{items|}}}|
!class="infobox-quest-header horizon-table"{{!}} Items Needed
! Items Needed
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{items}}}}}
{{!}} {{{items}}}}}
|-
|-
{{#if:{{{title|}}}|
{{#if:{{{title|}}}|
!class="infobox-quest-header horizon-table"{{!}} Title Granted
! Title Granted
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{title}}}}}
{{!}} {{{title}}}}}
|-
|-
{{#if:{{{repeatable|}}}|
{{#if:{{{repeatable|}}}|
!class="infobox-quest-header horizon-table"{{!}} Repeatable
! Repeatable
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{repeatable}}}}}
{{!}} {{{repeatable}}}}}
|-
|-
{{#if:{{{reward|}}}|
{{#if:{{{reward|}}}|
!class="infobox-quest-header horizon-table"{{!}} Reward
! Reward
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{reward}}}}}
{{!}} {{{reward}}}}}
|-
|-
{{#if:{{{description|}}}|
{{#if:{{{description|}}}|
!class="infobox-quest-header horizon-table"{{!}} Description
! Description
{{!}}class="infobox-quest-field horizon-table"{{!}} {{{description}}}}}
{{!}} {{{description}}}}}
|}
|}
<!-- end main box. start previous/next box -->
{{#if:{{{previous|}}}{{{next|}}}|
{{#if:{{{previous|}}}{{{next|}}}|
{{{!}} width="50%"
{<!--open table-->{{!}} class="horizon-infobox infobox-quest  infobox-50-50"
{{!}}- class="infobox-quest-header horizon-table"
{{!}}-
!width="50%" style="text-align:left;"{{!}} &larr; Previous Quest {{!}}{{!}} Next Quest &rarr;
!style="text-align:left;"{{!}} &larr; Previous Quest {{!}}{{!}} Next Quest &rarr;
{{!}}- class="infobox-quest-field horizon-table"
{{!}}-
{{!}} {{#if:{{{previous|}}}|{{{previous}}}|''None''}}
{{!}} {{#if:{{{previous|}}}|{{{previous}}}|''None''}}
{{!}}style="text-align:right"{{!}} {{#if:{{{next|}}}|{{{next}}}|''None''}}
{{!}}style="text-align:right"{{!}} {{#if:{{{next|}}}|{{{next}}}|''None''}}
{{!}}}
{{!}}<!--close table-->}
}}
}}
{{#if:{{{cutscenes|}}}
<!-- end previous/next box. start cutscene box -->
{{{!}} width=50%" class="mw-collapsible mw-collapsed"  
{{#if:{{{cutscenes|}}}|
{<!--open table-->{{!}} class="horizon-infobox infobox-quest infobox-34-66 mw-collapsible mw-collapsed"  
{{!}}- class="infobox-quest-cutscenes-header"
{{!}}- class="infobox-quest-cutscenes-header"
!colspan="2" class="mw-collapsible-content"{{!}}Replay Cutscenes
!colspan="2" style="text-align:center;" class="mw-collapsible-content"{{!}} Replay Cutscenes
{{{cutscenes}}}
{{{cutscenes}}}
{{!}}}
{{!}}<!--close table-->}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
Line 74: Line 76:
===Examples===
===Examples===


{{Quest
{{TestThisTemplate
| startnpc = [[Esha'ntarl]] (within Ru'Lude Gardens palace)
| startnpc = [[Esha'ntarl]] (within Ru'Lude Gardens palace)
| requirements =  Completion of [[Chains of Promathia]]
| requirements =  Completion of [[Chains of Promathia]]

Revision as of 23:51, 9 September 2023

Usage

{{Quest
| startnpc = 
| requirements =  
| items = 
| title = 
| repeatable = 
| reward = 
| previous = 
| next = 
| cutscenes = 
| description =
{{Quest/Cutscene|<name>|<NPC and location>}}
}}

See the talk page for an example of this template in use.

See Also

Examples