Difference between revisions of "Template:Quest Header"

From sureai
Jump to: navigation, search
(Made quest title white & Added quest decorators to usage)
(Made image sizes more consistent & limited input fields' widths)
Line 1: Line 1:
 
{| style="margin: 0 auto"
 
{| style="margin: 0 auto"
| {{#if: {{{image|}}} | [[File:{{{image}}}|right|250px]] |}}
+
| {{#if: {{{image|}}} | [[File:{{{image}}}|right|250x80px]] |}}
| style="text-align: left; font-size: 150%; color: white;" | '''{{{name|{{PAGENAME}}}}}'''
+
| style="text-align: left; max-width: 400px; font-size: 150%; color: white;" | '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
 
| style="text-align: right;" | '''Quest Giver:'''
 
| style="text-align: right;" | '''Quest Giver:'''
| style="text-align: left;" | {{{quest giver|-}}}
+
| style="text-align: left; max-width: 300px;" | {{{quest giver|-}}}
 
|-
 
|-
 
| style="text-align: right;" | '''Location(s):'''
 
| style="text-align: right;" | '''Location(s):'''
| style="text-align: left;" | {{{locations|-}}}
+
| style="text-align: left; max-width: 300px;" | {{{locations|-}}}
 
|-
 
|-
 
| style="text-align: right;" | '''Prerequisite Quest:'''
 
| style="text-align: right;" | '''Prerequisite Quest:'''
| style="text-align: left;" | {{{prerequisite|-}}}
+
| style="text-align: left; max-width: 300px;" | {{{prerequisite|-}}}
 
|-
 
|-
 
| style="text-align: right;" | '''Next Quest:'''
 
| style="text-align: right;" | '''Next Quest:'''
| style="text-align: left;" | {{{next|-}}}
+
| style="text-align: left; max-width: 300px;" | {{{next|-}}}
 
|-
 
|-
 
| style="text-align: right;" | '''Rewards:'''
 
| style="text-align: right;" | '''Rewards:'''
| style="text-align: left;" | {{{rewards|-}}}
+
| style="text-align: left; max-width: 300px;" | {{{rewards|-}}}
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 24: Line 24:
  
 
image, name, quest giver, locations, prerequisite, next, rewards
 
image, name, quest giver, locations, prerequisite, next, rewards
 +
 +
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===
 
===Available Quest Decorators===
  
 
====Left-Facing====
 
====Left-Facing====
<gallery mode="nolines" widths=250px>
+
<gallery mode="nolines" widths=250px heights=80px>
 
File:EN-Quest-Ornament-Mainquest-Left.png|EN-Quest-Ornament-Mainquest-Left.png
 
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-Sidequest-Left.png|EN-Quest-Ornament-Sidequest-Left.png
Line 37: Line 39:
  
 
====Right-Facing====
 
====Right-Facing====
<gallery mode="nolines" widths=250px>
+
<gallery mode="nolines" widths=250px heights=80px>
 
File:EN-Quest-Ornament-Mainquest-Right.png|EN-Quest-Ornament-Mainquest-Right.png
 
File:EN-Quest-Ornament-Mainquest-Right.png|EN-Quest-Ornament-Mainquest-Right.png
 
File:EN-Quest-Ornament-Sidequest-Right.png|EN-Quest-Ornament-Sidequest-Right.png
 
File:EN-Quest-Ornament-Sidequest-Right.png|EN-Quest-Ornament-Sidequest-Right.png
Line 71: Line 73:
 
  <nowiki>{{Quest Header
 
  <nowiki>{{Quest Header
 
|image = EN-Quest-Ornament-Sidequest-Left.png
 
|image = EN-Quest-Ornament-Sidequest-Left.png
|name = The Emptiness
+
|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 = Sadness
+
|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?
 
}}
 
}}
 
</nowiki>
 
</nowiki>
Line 78: Line 80:
 
{{Quest Header
 
{{Quest Header
 
|image = EN-Quest-Ornament-Sidequest-Left.png
 
|image = EN-Quest-Ornament-Sidequest-Left.png
|name = The Emptiness
+
|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 = Sadness
+
|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?
 
}}
 
}}
  

Revision as of 23:36, 23 August 2016

Quest Header
Quest Giver: -
Location(s): -
Prerequisite Quest: -
Next Quest: -
Rewards: -

Usage

Parameters

All parameters are optional.

image, name, quest giver, locations, prerequisite, next, rewards

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

Left-Facing

Right-Facing

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

EN-Quest-Ornament-Mainquest-Left.png
The Wiki Resistance
Quest Giver: Davipb
Location(s): SureAI Wiki, Internet
Prerequisite Quest: The Wiki Creation
Next Quest: The Wiki Blossoming
Rewards: 1 000 000 Gold Bars

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