Difference between revisions of "Template:Quest Header"

From sureai
Jump to: navigation, search
(Add pre-defined images)
(Add support for screenshots)
Line 1: Line 1:
<onlyinclude><includeonly><div style = "float: left; clear: left; margin: .5em 0; ">__TOC__</div>
+
<onlyinclude><includeonly><div style="display: flex; flex-flow: row nowrap; justify-content: space-between; clear: both; "><div style = "float: left; clear: left; margin: .5em 0; ">__TOC__</div>
{| style="margin: 0 auto"
+
{|  
 
| style="vertical-align: top; " | {{#if: {{{image|}}} | {{#switch: {{NAMESPACE}}
 
| style="vertical-align: top; " | {{#if: {{{image|}}} | {{#switch: {{NAMESPACE}}
  
Line 46: Line 46:
 
}}
 
}}
 
|}
 
|}
<div style = "clear: left;"></div></includeonly></onlyinclude>
+
<div>{{#if: {{{screenshot|}}} | [[File:{{{screenshot}}}|300px|thumb|{{{screenshot caption|}}}]] |}}</div>
 +
</div></includeonly></onlyinclude>
  
 
==Parameters==
 
==Parameters==
Line 54: Line 55:
 
* '''image:''' This should be the image used as a quest ornament. This can either be the full name of the file (such as <code>EN-Quest-Ornament-Mainquest-Left.png</code>), or a shorthand value that depends on the current namespace of the page (such as <code>main</code> in the Enderal namespace). For a list of available shorthands, see [[#Images|the Images section below]].
 
* '''image:''' This should be the image used as a quest ornament. This can either be the full name of the file (such as <code>EN-Quest-Ornament-Mainquest-Left.png</code>), or a shorthand value that depends on the current namespace of the page (such as <code>main</code> in the Enderal namespace). For a list of available shorthands, see [[#Images|the Images section below]].
 
* '''difficulty:''' This should be the average difficulty of the quest (On Enderal, can be thought of as the average number of asterisks on the quest objectives), with the same limitations as the [[:Template:Difficulty|Difficulty template]]
 
* '''difficulty:''' This should be the average difficulty of the quest (On Enderal, can be thought of as the average number of asterisks on the quest objectives), with the same limitations as the [[:Template:Difficulty|Difficulty template]]
 +
* '''screenshot:''' The name of the file, without the initial <code>File:</code>, that represents the quest.
 +
** '''screenshot caption:''' The text that will appear beneath the screenshot
  
 
If the parameter "name" is left empty, the quest header will use the current page's title (without the namespace) as the quest name.
 
If the parameter "name" is left empty, the quest header will use the current page's title (without the namespace) as the quest name.
Line 71: Line 74:
 
<pre>{{Quest Header
 
<pre>{{Quest Header
 
|image = EN-Quest-Ornament-Mainquest-Left.png
 
|image = EN-Quest-Ornament-Mainquest-Left.png
 +
|screenshot = EN-Quest-A_Nice_Day_in_Summer.png
 +
|screenshot caption = Hello World!
 
|name  = The Wiki Resistance
 
|name  = The Wiki Resistance
 
|quest giver = [[User:Davipb|]]
 
|quest giver = [[User:Davipb|]]
Line 84: Line 89:
 
{{Quest Header
 
{{Quest Header
 
|image = EN-Quest-Ornament-Mainquest-Left.png
 
|image = EN-Quest-Ornament-Mainquest-Left.png
 +
|screenshot = EN-Quest-A_Nice_Day_in_Summer.png
 +
|screenshot caption = Hello World!
 
|name  = The Wiki Resistance
 
|name  = The Wiki Resistance
 
|quest giver = [[User:Davipb|Davipb]]
 
|quest giver = [[User:Davipb|Davipb]]

Revision as of 00:38, 23 December 2018


Parameters

All parameters are optional.

  • Text Parameters: name, quest giver, locations, prerequisite, next, rewards, questid
  • image: This should be the image used as a quest ornament. This can either be the full name of the file (such as EN-Quest-Ornament-Mainquest-Left.png), or a shorthand value that depends on the current namespace of the page (such as main in the Enderal namespace). For a list of available shorthands, see the Images section below.
  • difficulty: This should be the average difficulty of the quest (On Enderal, can be thought of as the average number of asterisks on the quest objectives), with the same limitations as the Difficulty template
  • screenshot: The name of the file, without the initial File:, that represents the quest.
    • screenshot caption: The text that will appear beneath the screenshot

If the parameter "name" is left empty, the quest header will use the current page's title (without the namespace) as the quest name.

Images

Enderal

Examples

{{Quest Header
|image = EN-Quest-Ornament-Mainquest-Left.png
|screenshot = EN-Quest-A_Nice_Day_in_Summer.png
|screenshot caption = Hello World!
|name  = The Wiki Resistance
|quest giver = [[User:Davipb|]]
|locations = [[Main Page|SureAI Wiki]], Internet
|prerequisite = The Wiki Creation
|next = The Wiki Blossoming
|rewards = 1 000 000 Gold Bars
|questid = WIKI01B
|difficulty = 4
}}
EN-Quest-Ornament-Mainquest-Left.png
The Wiki Resistance
(WIKI01B)
Quest Giver: Davipb
Location(s): SureAI Wiki, Internet
Prerequisite Quest: The Wiki Creation
Next Quest: The Wiki Blossoming
Rewards: 1 000 000 Gold Bars
Difficulty: Quest-Difficulty-4.png Very Hard
Hello World!

{{Quest Header
|image = EN-Quest-Ornament-Sidequest-Left.png
|name = The quest with the name so long all computers exploded and all narrators died trying to speak its name, and even then the universe could not comprehend it.
|rewards = This is a very long reward field, as you can see. But don't worry! Long lines will automatically wrap to keep a properly consistent and centered look. Look, some more words: Fungibility. Awesomeness. Programming. Wikis. Enderal. Skyrim. Power. Force. Let's just add a few more words in here for good mesure, why not?
}}
EN-Quest-Ornament-Sidequest-Left.png
The quest with the name so long all computers exploded and all narrators died trying to speak its name, and even then the universe could not comprehend it.
Rewards: This is a very long reward field, as you can see. But don't worry! Long lines will automatically wrap to keep a properly consistent and centered look. Look, some more words: Fungibility. Awesomeness. Programming. Wikis. Enderal. Skyrim. Power. Force. Let's just add a few more words in here for good mesure, why not?

{{Quest Header}}
Quest Header