Difference between revisions of "Template:Quest Header"

From sureai
Jump to: navigation, search
(Use the new Difficulty template)
(Add pre-defined images)
Line 1: Line 1:
<div style = "float: left; clear: left; margin: .5em 0; ">__TOC__</div>
+
<onlyinclude><includeonly><div style = "float: left; clear: left; margin: .5em 0; ">__TOC__</div>
 
{| style="margin: 0 auto"
 
{| 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 34: Line 46:
 
}}
 
}}
 
|}
 
|}
<div style = "clear: left;"></div>
+
<div style = "clear: left;"></div></includeonly></onlyinclude>
<noinclude>
+
 
==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
 +
* '''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]]
  
 
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
Line 114: Line 117:
  
 
[[Category:Templates]]
 
[[Category:Templates]]
</noinclude>
 

Revision as of 12:17, 20 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

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

{{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