Difference between revisions of "Template:Quest Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(new infobox)
 
(add autocategory for random quests)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
__NOTOC__
+
{| class="infobox" style="border-spacing:0; color:#626262; width:320px;"
−
{| style={{Infobox common style}} width="320px"
 
 
|-
 
|-
−
| colspan="2" style="text-align:center; font-weight:bold; font-size:127%; color:#AE5700;" | {{{name|Quest name}}}
+
| class="infobox-h1" colspan="2" | {{{name|Quest name}}}
  
−
|-
+
|- <!-- quest type is controlled with a switch, allowing for easy addition of quest types if necessary -->
−
| colspan="2" style="text-align:center;" | {{{type|Quest type (main/side)}}}<nowiki>
+
! colspan="2" | {{#switch:{{{type|}}}
 +
| main = Main Storyline
 +
| side = Sidequest
 +
| unmarked = Unmarked quest (No notes)
 +
| random = {{tooltip|This quest may not be present in every playthrough|Random quest}}<includeonly>[[Category:Random quests]]</includeonly>
 +
}}<noinclude>Quest type (main/side/unmarked/random)</noinclude><nowiki>
  
  
Line 13: Line 17:
 
{{#if:<noinclude>string</noinclude>{{{image|}}}
 
{{#if:<noinclude>string</noinclude>{{{image|}}}
 
|{{!}}-
 
|{{!}}-
−
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:2px;">
+
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:2px; margin:0 -8px 0 -8px;"/>
 +
 
 +
{{!}}- title="{{{name|(quest name)}}} image"
 +
! colspan="2" style="padding:6px 2px; position:relative;" {{!}} [[File:{{#if:{{{image|}}}|{{{image|}}}|Consul Oliver in Fort Apogee.png}}{{!}}300x200px]]<!--
  
−
{{!}}- title="{{{name|}}} image"
+
inset border shadow on top of the image
−
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{#if:{{{image|}}}|{{{image|}}}|misc_icon.png}}{{!}}300x200px]]<noinclude><br>(optional image, will be rescaled to 300x200px)</noinclude>
+
--><span style="position:absolute; top:6px; left:2px; pointer-events:none; box-shadow:inset 0 0 24px 8px #000; width:calc(100% - 3px); height:calc(100% - 12px)"></span>
 
|}}<nowiki>
 
|}}<nowiki>
  
Line 24: Line 31:
 
</nowiki>
 
</nowiki>
 
|-
 
|-
−
| colspan="2" | <hr style="background-color:#AE5700; height:2px;">
+
! colspan="2" class="infobox-th" | <span class="infobox-h2">Quest information</span>
  
 
|-
 
|-
−
| colspan="2" style="text-align:center; font-weight:bold; color:#AE5700;" | Quest data
+
| class="infobox-leftcol" | Location
 +
| class="infobox-rightcol" | {{{location|a place or<br>a list of places<br>must be set.}}}
  
 
|-
 
|-
−
| colspan="2" | <hr style="background-color:#AE5700; height:1px;">
+
| class="infobox-leftcol" | Given by
 +
| class="infobox-rightcol" | {{{givenby|quest giver<br>must be set.}}}
  
 
|-
 
|-
−
| width="30%" valign="top" align="right" | Location
+
| class="infobox-leftcol" | Rewards
−
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
| class="infobox-rightcol" | {{{rewards|quest rewards go here<br>XP, money, items, etc.<br>must be set.}}}<nowiki>
−
{{{location|a place or<br>a list of places<br>must be set.}}}
+
 
  
−
|-
 
−
| width="30%" valign="top" align="right" | Given by
 
−
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
 
−
{{{givenby|quest giver<br>must be set.}}}
 
  
−
|-
 
−
| width="30%" valign="top" align="right" | Rewards
 
−
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
 
−
{{{rewards|quest rewards go here<br>XP, money, items, etc.<br>must be set.}}}<nowiki>
 
  
  
Line 53: Line 54:
 
{{#if:<noinclude>string</noinclude>{{{related|}}}{{{previous|}}}{{{next|}}}
 
{{#if:<noinclude>string</noinclude>{{{related|}}}{{{previous|}}}{{{next|}}}
 
|{{!}}-
 
|{{!}}-
−
{{!}} colspan="3" {{!}}
+
! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Related quests</span><nowiki>
−
{{{!}} width="100%" <!-- open related quests table -->
 
−
{{!}}-
 
−
{{!}} colspan="3" {{!}} <hr style="background-color:#AE5700; height:2px;">
 
−
 
 
−
{{!}}-
 
−
{{!}} colspan="3" style="text-align:center; font-weight:bold; color:#AE5700;" {{!}} Related quests
 
−
 
 
−
{{!}}-
 
−
{{!}} colspan="3" {{!}} <hr style="background-color:#AE5700; height:1px;"><nowiki>
 
  
  
  
  
−
</nowiki><!-- if related is not set, omit section -->
+
</nowiki><!-- if related is not set, omit section --><nowiki>
−
{{#if:<noinclude>string</noinclude>{{{related|}}}
+
</nowiki>{{#if:<noinclude>string</noinclude>{{{related|}}}
−
|{{!}}-
+
|&#8203; <!-- zero-width space to stop mediawiki being silly -->
−
{{!}} colspan="3" style="text-align:center;" {{!}} {{{related|Related quest name or<br>a list of them (optional)}}}
+
{{!}}-
 +
! colspan="3" {{!}} {{{related|Related quest name or<br>a list of them (optional)}}}
 
|}}<nowiki>
 
|}}<nowiki>
  
Line 77: Line 70:
  
 
</nowiki>
 
</nowiki>
 +
{{!}}-
 +
{{!}} colspan="3" {{!}}
 +
{{{!}} cellspacing="0" cellpadding="0" width="100%" <!-- open related quests table -->
 
{{!}}- <!-- if previous is not set, omit section -->
 
{{!}}- <!-- if previous is not set, omit section -->
 
{{#if:<noinclude>string</noinclude>{{{previous|}}}
 
{{#if:<noinclude>string</noinclude>{{{previous|}}}
−
|{{!}} width="50%" style="text-align:center;" {{!}} Previous:
+
|! width="50%" valign="top" {{!}} '''Previous:'''
 
{{{previous|Previous quest name (optional)}}}
 
{{{previous|Previous quest name (optional)}}}
 
|}}<nowiki>
 
|}}<nowiki>
Line 89: Line 85:
 
{{#if:<noinclude>string</noinclude>{{{previous|}}}
 
{{#if:<noinclude>string</noinclude>{{{previous|}}}
 
   |{{#if:<noinclude>string</noinclude>{{{next|}}}
 
   |{{#if:<noinclude>string</noinclude>{{{next|}}}
−
     |{{!}} style="border-left:#AE5700 1px solid; border-right:#AE5700 1px solid; padding:0px;" {{!}}
+
     |! style="border-right:#AE5700 1px solid; padding:0px;" {{!}}
 
     |}}
 
     |}}
 
   |}}<nowiki>
 
   |}}<nowiki>
Line 98: Line 94:
 
</nowiki><!-- if next is not set, omit section -->
 
</nowiki><!-- if next is not set, omit section -->
 
{{#if:<noinclude>string</noinclude>{{{next|}}}
 
{{#if:<noinclude>string</noinclude>{{{next|}}}
−
|{{!}} width="50%" style="text-align:center;" {{!}} Follow-up:
+
|! width="50%" valign="top" {{!}} '''Follow-up:'''
 
{{{next|Next quest name (optional)}}}
 
{{{next|Next quest name (optional)}}}
 
|}}
 
|}}
−
{{!}}}}} <!-- close related quests table and the relevant #if -->
+
{{!}}}|}} <!-- close related quests table and the relevant #if -->
 
|}<noinclude>
 
|}<noinclude>
 +
 
<br style="clear:both;"/>{{documentation}}</noinclude>
 
<br style="clear:both;"/>{{documentation}}</noinclude>

Latest revision as of 12:13, 16 October 2020

Quest name
Quest type (main/side/unmarked/random)

Consul Oliver in Fort Apogee.png
Quest information
Location a place or
a list of places
must be set.
Given by quest giver
must be set.
Rewards quest rewards go here
XP, money, items, etc.
must be set.
Related quests ​
Related quest name or
a list of them (optional)
Previous:

Previous quest name (optional)

Follow-up:

Next quest name (optional)


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Quest_Infobox/doc to view this documentation. (edit) (How does this work?)


Usage

Paste the following code into the top of an article, filling all known fields:

{{Quest Infobox
| name     = 
| type     = main or side 
| image    = <!-- note: quest image MUST have 3:2 aspect ratio, typically 300x200 pixels -->
| location = 
| givenby  = 
| rewards  = 
| related  = 
| previous = previous quest in a chain
| next     = next quest in a chain
}}

Examples

Retake the outposts
Main Storyline

Outposts power generator.png
Quest information
Location South Gate Outposts
Given by Hadrian Tanner
Rewards 1000 classic XP / 1 oddity XP

Retook all 5 outposts:
450 SGS Credits

Retook only 3-4 outposts:
300 SGS Credits

Related quests
Previous:

Tutorial

Follow-up:

Bret's task

{{Quest Infobox
| name     = Retake the outposts
| type     = main
| image    = Outposts power generator.png
| location = [[South Gate Outposts]]
| givenby  = [[Hadrian Tanner]]
| rewards  = 1000 classic XP / 1 oddity XP

Retook all 5 outposts:<br>450 [[SGS Credits]]

Retook only 3-4 outposts:<br>300 [[SGS Credits]]
| related  = 
| previous = [[Tutorial]]
| next     = [[Bret's task]]
}}