Difference between revisions of "Template:Quest Header"
From sureai
(Float TOC to the left) |
(Add Concurrent Quests) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style = "float: left; clear: left; margin | + | <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="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 29: | Line 46: | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
− | | style="text-align: right;" | + | {{#if: {{{difficulty|}}} | |
− | + | {{!}} style="text-align: right;" {{!}} '''Difficulty:''' | |
− | + | {{!}} style="text-align: left; max-width: 300px;" {{!}} {{Difficulty|{{{difficulty}}}|text=1}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}} | }} | ||
|} | |} | ||
− | <div | + | <div>{{#if: {{{screenshot|}}} | [[File:{{{screenshot}}}|300px|thumb|{{{screenshot caption|}}}]] |}}</div> |
− | < | + | </div></includeonly></onlyinclude> |
− | + | ||
− | + | ==Parameters== | |
''All parameters are optional.'' | ''All parameters are optional.'' | ||
− | * '''Text Parameters:''' | + | * '''Text Parameters:''' name, quest giver, locations, prerequisite, next, rewards, questid, concurrent |
− | * '''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), | + | * '''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]] | ||
+ | * '''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. | ||
− | === | + | ==Images== |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | === | + | ===Enderal=== |
<gallery mode="nolines" widths=250px heights=80px> | <gallery mode="nolines" widths=250px heights=80px> | ||
− | + | EN-Quest-Ornament-Mainquest-Left.png|<code>main</code> | |
− | + | EN-Quest-Ornament-Sidequest-Left.png|<code>side</code> | |
− | + | EN-Quest-Ornament-Bountyquest-Left.png|<code>bounty</code> | |
− | + | EN-Quest-Ornament-Characterquest-Left.png|<code>character</code> | |
− | + | EN-Quest-Ornament-Factionquest-Left.png|<code>faction</code> | |
</gallery> | </gallery> | ||
− | + | ==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 78: | 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 86: | 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 91: | 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 102: | Line 114: | ||
|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. | |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? | |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? | ||
− | |||
}} | }} | ||
</pre> | </pre> | ||
Line 110: | Line 121: | ||
|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. | |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? | |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? | ||
− | |||
}} | }} | ||
Line 121: | Line 131: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
− |
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 asmain
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 }}
Contents
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: | 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? }}
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 |