Template:TestThisTemplate: Difference between revisions

From HorizonXI Wiki
No edit summary
(testing quest infobox class styling)
Line 1: Line 1:
<div style="background-color: salmon; padding: 60px; font-weight: bold; text-align: center; border-radius: 8px;">This is only a testing template</div>
<!--
.infobox-quest th {
  background-color: #867ab8;
}
.infobox-quest td {
  background-color: #f0eef6;
}
 
.horizon-infobox {
    margin: 1em 0;
    border: 1px #aaa solid;
    border-collapse: collapse;
    color: black;
    max-width: 400px;
};
 
.horizon-infobox th {
  border: 1px #aaa solid;
  padding: 0.3em 0.4em;
  font-weight: bold;
  width: 150px;
  text-align: right;
  vertical-align: top;
};
 
.horizon-infobox td {
  border: 1px #aaa solid;
  padding: 0.3em 0.4em;
  vertical-align:top;
};
 
 
-->
<includeonly>{{Tocright}}
{| class="horizon-infobox infobox-quest"
|-
{{#if: {{{Quest Name|}}}|
! {{!}} {{PAGENAME}}
{{!}} {{!}} {{PAGENAME}}}}
|-
{{#if:{{{startnpc|}}}|
! Start NPC
{{!}} {{{startnpc}}}}}
|-
{{#if:{{{requirements|}}}|
! Requirements
{{!}} {{{requirements}}}}}
|-
{{#if:{{{items|}}}|
! Items Needed
{{!}} {{{items}}}}}
|-
{{#if:{{{title|}}}|
! Title Granted
{{!}} {{{title}}}}}
|-
{{#if:{{{repeatable|}}}|
! Repeatable
{{!}} {{{repeatable}}}}}
|-
{{#if:{{{reward|}}}|
! Reward
{{!}} {{{reward}}}}}
|-
{{#if:{{{description|}}}|
! Description
{{!}} {{{description}}}}}
|}
{{#if:{{{previous|}}}{{{next|}}}|
{{{!}} class="horizon-infobox infobox-quest"
{{!}}-
!width="50%" style="text-align:left;"{{!}} &larr; Previous Quest {{!}}{{!}} Next Quest &rarr;
{{!}}-
{{!}} {{#if:{{{previous|}}}|{{{previous}}}|''None''}}
{{!}}style="text-align:right"{{!}} {{#if:{{{next|}}}|{{{next}}}|''None''}}
{{!}}}
}}
{{#if:{{{cutscenes|}}}
{{{!}} width=50%" class="mw-collapsible mw-collapsed"
{{!}}- class="infobox-quest-cutscenes-header"
!colspan="2" class="mw-collapsible-content"{{!}}Replay Cutscenes
{{{cutscenes}}}
{{!}}}
}}
</includeonly><noinclude>
[[Category:Templates|{{PAGENAME}}]]
==Usage==
<pre>
{{Quest
| startnpc =
| requirements = 
| items =
| title =
| repeatable =
| reward =
| previous =
| next =
| cutscenes =
| description =
{{Quest/Cutscene|<name>|<NPC and location>}}
}}
</pre>
''See the [[Template talk:Quest#Example|talk page]] for an example of this template in use.
==See Also==
*[[Template:Quest/Cutscene]]
 
===Examples===
 
{{TestThisTemplate
| startnpc = [[Esha'ntarl]] (within Ru'Lude Gardens palace)
| requirements =  Completion of [[Chains of Promathia]]
| items = [[Giant Scale]]
| title = Conqueror of Fate
| repeatable = No (Can reenter to assist others)
| reward = {{KeyItem}} [[Whisper of the Wyrmking]]
| previous = [[Dawn]]
| next = [[Shadows of the Departed]]
| cutscenes =
{{Quest/Cutscene|<name>|<NPC and location>}}
}}
 
</noinclude>

Revision as of 23:12, 2 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

Start NPC Esha'ntarl (within Ru'Lude Gardens palace)
Requirements Completion of Chains of Promathia
Items Needed Giant Scale
Title Granted Conqueror of Fate
Repeatable No (Can reenter to assist others)
Reward Key Item Whisper of the Wyrmking
← Previous Quest Next Quest →
Dawn Shadows of the Departed