Difference between revisions of "Template:Quest Header"

From sureai
Jump to: navigation, search
(Use the new Difficulty template)
(Add Concurrent Quests)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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; "><div style = "float: left; clear: left; margin: .5em 0; ">__TOC__</div>
{| style="margin: 0 auto"
+
{|  
| style="vertical-align: top; " | {{#if: {{{image|}}} | [[File:{{{image}}}|right|250x80px]] |}}
+
| style="vertical-align: top; " | {{#if: {{{image|}}} | {{#switch: {{NAMESPACE}}
 +
 
 +
| Enderal = {{#switch: {{{image}}}
 +
| main = [[File:EN-Quest-Ornament-Mainquest-Left.png|right|250x80px|link=]]
 +
| side = [[File:EN-Quest-Ornament-Sidequest-Left.png|right|250x80px|link=]]
 +
| bounty = [[File:EN-Quest-Ornament-Bountyquest-Left.png|right|250x80px|link=]]
 +
| character = [[File:EN-Quest-Ornament-Characterquest-Left.png|right|250x80px|link=]]
 +
| faction = [[File:EN-Quest-Ornament-Factionquest-Left.png|right|250x80px|link=]]
 +
| #default = [[File:{{{image}}}|right|250x80px|link=]]
 +
}}
 +
 
 +
| #default = [[File:{{{image}}}|right|250x80px|link=]]
 +
}} |}}
 
| style="text-align: left; max-width: 400px; font-size: 150%; color: white;" | '''{{{name|{{PAGENAME}}}}}''' {{#if: {{{questid|}}} | <br/>(<span style="font-family: monospace;">{{{questid}}}</span>) |}}
 
| style="text-align: left; max-width: 400px; font-size: 150%; color: white;" | '''{{{name|{{PAGENAME}}}}}''' {{#if: {{{questid|}}} | <br/>(<span style="font-family: monospace;">{{{questid}}}</span>) |}}
 
|-
 
|-
Line 22: Line 34:
 
{{!}} style="text-align: right; vertical-align: top; " {{!}} '''Next Quest:'''
 
{{!}} style="text-align: right; vertical-align: top; " {{!}} '''Next Quest:'''
 
{{!}} style="text-align: left; max-width: 300px;" {{!}} {{{next}}}
 
{{!}} style="text-align: left; max-width: 300px;" {{!}} {{{next}}}
 +
{{!}}-
 +
|}}
 +
{{#if: {{{concurrent|}}} |
 +
{{!}} style="text-align: right; vertical-align: top; " {{!}} '''Concurrent Quest:'''
 +
{{!}} style="text-align: left; max-width: 300px;" {{!}} {{{concurrent}}}
 
{{!}}-
 
{{!}}-
 
|}}
 
|}}
Line 34: Line 51:
 
}}
 
}}
 
|}
 
|}
<div style = "clear: left;"></div>
+
<div>{{#if: {{{screenshot|}}} | [[File:{{{screenshot}}}|300px|thumb|{{{screenshot caption|}}}]] |}}</div>
<noinclude>
+
</div></includeonly></onlyinclude>
==Usage==
+
 
===Parameters===
+
==Parameters==
 
''All parameters are optional.''
 
''All parameters are optional.''
  
* '''Text Parameters:''' image, name, quest giver, locations, prerequisite, next, rewards, questid
+
* '''Text Parameters:''' name, quest giver, locations, prerequisite, next, rewards, questid, concurrent
 +
* '''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.
  
===Available Quest Decorators===
+
==Images==
 
+
====Left-Facing====
+
<gallery mode="nolines" widths=250px heights=80px>
+
File:EN-Quest-Ornament-Mainquest-Left.png|EN-Quest-Ornament-Mainquest-Left.png
+
File:EN-Quest-Ornament-Sidequest-Left.png|EN-Quest-Ornament-Sidequest-Left.png
+
File:EN-Quest-Ornament-Bountyquest-Left.png|EN-Quest-Ornament-Bountyquest-Left.png
+
File:EN-Quest-Ornament-Characterquest-Left.png|EN-Quest-Ornament-Characterquest-Left.png
+
File:EN-Quest-Ornament-Factionquest-Left.png|EN-Quest-Ornament-Factionquest-Left.png
+
</gallery>
+
  
====Right-Facing====
+
===Enderal===
 
<gallery mode="nolines" widths=250px heights=80px>
 
<gallery mode="nolines" widths=250px heights=80px>
File:EN-Quest-Ornament-Mainquest-Right.png|EN-Quest-Ornament-Mainquest-Right.png
+
EN-Quest-Ornament-Mainquest-Left.png|<code>main</code>
File:EN-Quest-Ornament-Sidequest-Right.png|EN-Quest-Ornament-Sidequest-Right.png
+
EN-Quest-Ornament-Sidequest-Left.png|<code>side</code>
File:EN-Quest-Ornament-Bountyquest-Right.png|EN-Quest-Ornament-Bountyquest-Right.png
+
EN-Quest-Ornament-Bountyquest-Left.png|<code>bounty</code>
File:EN-Quest-Ornament-Characterquest-Right.png|EN-Quest-Ornament-Characterquest-Right.png
+
EN-Quest-Ornament-Characterquest-Left.png|<code>character</code>
File:EN-Quest-Ornament-Factionquest-Right.png|EN-Quest-Ornament-Factionquest-Right.png
+
EN-Quest-Ornament-Factionquest-Left.png|<code>faction</code>
 
</gallery>
 
</gallery>
  
===Examples===
+
==Examples==
 
<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 73: Line 86:
 
|prerequisite = The Wiki Creation
 
|prerequisite = The Wiki Creation
 
|next = The Wiki Blossoming
 
|next = The Wiki Blossoming
 +
|concurrent = The Wiki Editing, Mediawiki 101
 
|rewards = 1 000 000 Gold Bars
 
|rewards = 1 000 000 Gold Bars
 
|questid = WIKI01B
 
|questid = WIKI01B
Line 81: Line 95:
 
{{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]]
Line 86: Line 102:
 
|prerequisite = The Wiki Creation
 
|prerequisite = The Wiki Creation
 
|next = The Wiki Blossoming
 
|next = The Wiki Blossoming
 +
|concurrent = The Wiki Editing, Mediawiki 101
 
|rewards = 1 000 000 Gold Bars
 
|rewards = 1 000 000 Gold Bars
 
|questid = WIKI01B
 
|questid = WIKI01B
Line 114: Line 131:
  
 
[[Category:Templates]]
 
[[Category:Templates]]
</noinclude>
 

Latest revision as of 11:37, 26 December 2018


Parameters

All parameters are optional.

  • Text Parameters: name, quest giver, locations, prerequisite, next, rewards, questid, concurrent
  • 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
|concurrent = The Wiki Editing, Mediawiki 101
|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
Concurrent Quest: The Wiki Editing, Mediawiki 101
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