Difference between revisions of "Template:Quest Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(stupid dorf trick: add edge shadow to the image!)
(add autocategory for random quests)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
|- <!-- quest type is controlled with a switch, allowing for easy addition of quest types if necessary -->
 
|- <!-- quest type is controlled with a switch, allowing for easy addition of quest types if necessary -->
−
! colspan="2" | {{#switch:{{{type|}}}| main = Main Storyline | side = Sidequest | unmarked = Unmarked quest (No notes)}}<noinclude>Quest type (main/side/unmarked)</noinclude><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 18: Line 23:
  
 
inset border shadow on top of the image
 
inset border shadow on top of the image
−
--><span style="position:absolute; top:6px; left:2px; pointer-events:none;">[[File:border300x200.png|300x200|link=]]</span>
+
--><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>
  

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]]
}}