Difference between revisions of "Template:Quest Header"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
m (A little extra spacing between header text and body)
 
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><cleanspace>
+
<includeonly><!--
{{#define:addbelow|case=any}}
+
-->{{#if:{{{image|}}}||{{NeedsImage|2=Quest}}}}<!--
{{#define:description|case=any}}
+
-->{{#ifeq:{{{description|}}}||[[Category:{{NAMESPACE}} Quests Needing Descriptions]]}}<!--
{{#define:ID|case=any}}
+
-->{{#ifeq:{{lc:{{{radiant|}}}}}|yes|[[Category:{{NAMESPACE}}-Quests-Radiant]]}}<!--
{{#define:image|case=any}}
+
-->
{{#define:imgdesc|case=any}}
 
{{#define:mod|case=any}}
 
{{#define:radiant|case=any}}
 
{{#define:IconSize|case=any}}
 
{{#save:ID|description|radiant}}
 
{{#local:innerhdstyle|style="text-align:right; padding-right:0.5em;"}}
 
{{#local:Icon|SR-qico-Miscellaneous.png|if={{#ifeq:{{NS_PARENT}}-{{{Icon|}}}|Skyrim-|1}}}}
 
{{#if:{{{image|}}}||{{NeedsImage|2=Quest}}}}
 
{{#unset:image|ifnot={{#ifeq:{{{image|}}}|none||{{{image|}}}}}}}
 
{{#switch:{{SUBJECTSPACE}}
 
  |User|Template|UESPWiki=
 
  |#default={{#if:{{{image|}}}|
 
    {{#local:imgwidth|{{#mediawidth:{{{image}}}}}}}
 
    {{#local:imgheight|{{#mediaheight:{{{image}}}}}}}
 
    {{#local:imgratio|{{#expr:{{{imgwidth}}}/{{{imgheight}}}}}|if={{#iferror:{{#expr:{{{imgwidth}}} * 1}}|0|1}}}}
 
    {{#ifexpr:({{{imgratio|0}}} >= 1.3) and ({{{imgratio|0}}} <=1.35)||[[Category:{{NS_NAME}} Quests with non-4:3 Images]]}}
 
    {{#ifeq:{{NS_ID}}quest|{{#explode:{{{image}}}|-|0}}{{#explode:{{{image}}}|-|1}}||[[Category:{{NS_NAME}} Quests with incorrectly-named Images]]}}
 
  }}
 
  {{#ifeq:{{{description|}}}||[[Category:{{NS_NAME}} Quests Needing Descriptions]]}}
 
  {{#ifeq:{{lc:{{{radiant|}}}}}|yes|[[Category:Skyrim-Quests-Radiant]]}}
 
}}
 
</cleanspace>
 
 
{| class="hiddentable vtop" style="width:100%;"
 
{| class="hiddentable vtop" style="width:100%;"
 
| style="width:25%" | {{TOClimit|{{{TOClimit|}}}}}
 
| style="width:25%" | {{TOClimit|{{{TOClimit|}}}}}
Line 34: Line 12:
 
| {{#if:{{{Icon|}}}||colspan=2}} style="vertical-align:middle; padding-bottom:0.5em;" {{!}} '''<span style="font-size:110%;">{{#if:{{{description|}}}|{{{description}}}|Please add a description for this quest}}</span>'''
 
| {{#if:{{{Icon|}}}||colspan=2}} style="vertical-align:middle; padding-bottom:0.5em;" {{!}} '''<span style="font-size:110%;">{{#if:{{{description|}}}|{{{description}}}|Please add a description for this quest}}</span>'''
 
|}
 
|}
<cleantable>
 
 
{| class="hiddentable" style="border-collapse:collapse; margin:0 auto;"  
 
{| class="hiddentable" style="border-collapse:collapse; margin:0 auto;"  
! {{{innerhdstyle}}} | Quest&nbsp;Giver:
+
! style="text-align:right; padding-right:0.5em;" | Quest&nbsp;Giver:
| {{{Giver|}}}
+
| {{{Giver|{{huh}}}}}
 
|-
 
|-
! {{{innerhdstyle}}} | Location(s):
+
! style="text-align:right; padding-right:0.5em;" | Location(s):
| {{#if:{{{Loc|}}}|{{{Loc}}}|None}}
+
| {{{Loc|{{huh}}}}}
 
|-
 
|-
! {{{innerhdstyle}}} | Prerequisite&nbsp;Quest:
+
{{#if:{{{Prev|}}}|
| {{{Prev}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Prerequisite&nbsp;Quest:
 +
{{!}} {{{Prev}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Next&nbsp;Quest:
+
{{#if:{{{Next|}}}|
| {{{Next}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Next&nbsp;Quest:
 +
{{!}} {{{Next}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Concurrent&nbsp;Quest:
+
{{#if:{{{Conc|}}}|
| {{{Conc}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Concurrent&nbsp;Quest:
 +
{{!}} {{{Conc}}} }}
 +
{{!}}-
 +
! style="text-align:right; padding-right:0.5em;" {{!}} Reward:
 +
{{!}} {{{Reward|{{huh}}}}}
 
|-
 
|-
! {{{innerhdstyle}}} | Reward:
+
{{#if:{{{Disp|}}}|
| {{#if:{{{Reward|}}}|{{{Reward}}}|None}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} [[Disposition|Disposition]]:
 +
{{!}} {{{Disp}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | {{#if:{{{Disp|}}}|[[{{NS_PARENT}}:Disposition|Disposition]]:}}
+
{{#if:{{{ID|}}}|
| {{{Disp}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} ID:
 +
{{!}} {{{ID}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | {{#if:{{{Rep|}}}|[[{{NS_PARENT}}:Reputation|Reputation&nbsp;Gain]]:}}
+
{{#if:{{{ReqRank|}}}|
| {{{Rep}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Required&nbsp;Rank:
 +
{{!}} {{{ReqRank}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | {{#if:{{{Fame|}}}|[[{{NS_PARENT}}:Fame|Fame]]/[[{{NS_PARENT}}:Infamy|Infamy]]:}}
+
{{#if:{{{ReqItem|}}}|
| {{{Fame}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Required&nbsp;Items:
 +
{{!}} {{{ReqItem}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | ID:
+
{{#if:{{{SuggItem|}}}|
| {{{ID}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Suggested&nbsp;Items:
 +
{{!}} {{{SuggItem}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Required&nbsp;Rank:
+
{{#if:{{{SuggSpell|}}}|
| {{{ReqRank}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Suggested&nbsp;Spells:
 +
{{!}} {{{SuggSpell}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Required&nbsp;Reputation:
+
{{#if:{{{ReqLevel|}}}|
| {{{ReqRep}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Required&nbsp;Level:
 +
{{!}} {{{ReqLevel}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Required&nbsp;Items:
+
{{#if:{{{Prereq|}}}|
| {{{ReqItem}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Prerequisites:
 +
{{!}} {{{Prereq}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Suggested&nbsp;Items:
+
{{#if:{{{SuggLevel|}}}|
| {{{SuggItem}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Suggested&nbsp;Level:
 +
{{!}} {{{SuggLevel}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Suggested&nbsp;Spells:
+
{{#if:{{{Time|}}}|
| {{{SuggSpell}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Time:
 +
{{!}} {{{Time}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Required&nbsp;Level:
+
{{#if:{{{Difficulty|}}}|
| {{{ReqLevel}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Difficulty:
 +
{{!}} {{{Difficulty}}} }}
 
|-
 
|-
! {{{innerhdstyle}}} | Prerequisites:
+
{{#if:{{{mod|}}}|
| {{{Prereq}}}
+
! style="text-align:right; padding-right:0.5em;" {{!}} Added by:
|-
+
{{!}} {{{mod}}} }}
! {{{innerhdstyle}}} | Suggested&nbsp;Level:
+
|}
| {{{SuggLevel}}}
 
|-
 
! {{{innerhdstyle}}} | Time:
 
| {{{Time}}}
 
|-
 
! {{{innerhdstyle}}} | Difficulty:
 
| {{{Difficulty}}}
 
|-
 
! {{{innerhdstyle}}} | Added by:
 
| {{{mod}}}
 
|}</cleantable>
 
 
{{{addbelow|}}}
 
{{{addbelow|}}}
 
| style="width:5%;" | &nbsp;
 
| style="width:5%;" | &nbsp;
 
| style="text-align:right; width:25%;" | {{#if: {{{image|}}}|[[File:{{{image}}}|right{{#if:{{{nothumb|}}}||{{!}}thumb}}|{{{imgdesc|}}}]]|&nbsp;}}
 
| style="text-align:right; width:25%;" | {{#if: {{{image|}}}|[[File:{{{image}}}|right{{#if:{{{nothumb|}}}||{{!}}thumb}}|{{{imgdesc|}}}]]|&nbsp;}}
 
|}</includeonly><noinclude>{{/Doc}}</noinclude>
 
|}</includeonly><noinclude>{{/Doc}}</noinclude>

Latest revision as of 15:34, 1 July 2017

Summary[edit]

This template displays an informative table about a given quest and should be applied at the top of all quests pages.

Parameters[edit]

Please note that currently, some parameters are lower-case, others are mixed-case. The parameters below indicate the correct case used by the template. It may be desirable in future to convert these all to lower-case for consistency with most other templates.

Quest Header
Parameter Scope Description
description required A description of the quest.
image required A thumbnail image of some part of the quest. If this parameter is missing, a NeedsImage banner will automatically be added to the quest article. In cases where an image is truly never needed, set image to "none".
TOClimit optional Limit the header levels displayed in the table of contents.
Icon optional The in-game icon for the quest. The name of the image is all that is needed — do not use [[File:...]] or [[Image:...]].
addbelow optional Anything that should be added below the quest information table.
Giver required Whoever gives you the quest, and where to find them.
Loc required The locations you travel to in order to complete the quest. There is no need to include the location of the Giver in this list if it was already provided there.
Prev optional If a series quest, the quest that needs to be completed before this one.
Next optional If a series quest, the quest that is presented to the player after completion.
Conc optional If a series quest, any quest that can be done at the same time.
Reward required Any gifts given to the player after a quest is completed.
Disp optional Any Disposition bonuses earned by completing the quest.
ID optional The editor identification of a quest.
ReqRank optional The required faction rank needed to begin the quest.
ReqItem optional Any items that are required during the duration of the quest.
Prereq optional Any prerequisites not covered by other parameters.
SuggItem optional Any items that may be of use to the player during the quest.
SuggSpell optional Any spells that may be of use to the player during the quest.
ReqLevel optional The level the player must be in order to begin the quest.
SuggLevel optional The level the player should be before beginning the quest.
Time optional The time it takes to do the quest, or time limit if there is one.
Difficulty optional The difficulty of the quest.
imgdesc optional A description of the thumbnail image.
mod optional Name of mod that adds the quest.
nothumb optional Set nothumb=yes to force the image to be shown at full size rather than thumbnailed. This should only be used in exceptional cases, such as when the source image is an animated image.

Example[edit]

{{Quest Header
|Giver=[[Skyrim:Esbern|Esbern]]
|Reward=[[Skyrim:Dragonbane|Dragonbane]]
|Rep=
|Prev=[[Skyrim:A Cornered Rat|A Cornered Rat]]
|Conc=
|Next=[[Skyrim:The Throat of the World|The Throat of the World]]
|Loc=
|Image=SR-quest-Alduin's Wall.jpg
|ImgDesc=Alduin's Wall
|description=Locate the prophecy within [[Skyrim:Sky Haven Temple|Sky Haven Temple]].
|ID=MQ203
|Icon=SR-qico-Main.png
}}
This article could benefit from an image.
See Help:Images for information on how to upload images. Please remove this template from the page when finished.
 
Locate the prophecy within Sky Haven Temple.
Quest Giver: Esbern
Location(s):
Prerequisite Quest: A Cornered Rat
Next Quest: The Throat of the World
Reward: Dragonbane
ID: MQ203