Jump to content

Template:Infobox Quest: Difference between revisions

From Blockgame Wiki
No edit summary
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{| class="infobox" style="float: right; background: rgb(255, 255, 240, 0.5); margin-left: 10px; border: 1px solid #333; border-radius: 8px; padding: 4px; width: 18em;" cellpadding="2" cellspacing="1"
<templatedata>
|-
{
{{BG_Infobox_Header|bgcolor1=#5e3c99|bgcolor2=#b79ced}}
"params": {
|-
"test": {
| colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}|160px]] | [[File:Site-community-image.png|150px]]}}
"type": "string",
|-
"required": true
| colspan="2" style="height: 0.5rem" |
}
{{BG_Infobox_Subheader|title=Quest Details|bgcolor1=#5e3c99|bgcolor2=#b79ced}}
},
{{#if:
"format": "inline"
  {{{type|}}}
}
  |<tr><td><b>Type</b></td><td>[[:Category:{{{type}}}|{{{type}}}]]</td></tr>|
</templatedata>
}}{{#if:
</noinclude>
  {{{subtype|}}}
{{{test}}}
  |<tr><td><b>Subtype</b></td><td>[[:Category:{{{subtype}}}|{{{subtype}}}]]</td></tr>|
}}{{#if:
  {{{rarity|}}}
  |<tr><td><b>Rarity</b></td><td>{{Rarity|rarity={{{rarity}}}}}</td></tr>|
}}{{#if:
  {{{giver|}}}
  |<tr><td><b>Quest Giver: </b></td><td>[[{{{giver}}}]]</td></tr>|
}}{{#if:
  {{{receiver|}}}
  |<tr><td><b>Quest Receiver: </b></td><td>[[{{{receiver}}}]]</td></tr>|
}}{{#if:
  {{{lvl_req|}}}
  |<tr><td><b>Level Requirement: </b></td><td>{{{lvl_req}}}</td></tr>|
}}{{#if:
  {{{skill_req|}}}
  |<tr><td><b>Skill Requirement: </b></td><td>{{{skill_req}}}</td></tr>|
}}{{#if:
  {{{reward|}}}
  |{{BG_Infobox_Subheader|title=Rewards|bgcolor1=#5e3c99|bgcolor2=#b79ced}}|
}}{{#if:
  {{{reward|}}}
  |<tr><td><b>Reward for completion: </b></td><td style="white-space: nowrap">{{{reward}}}</td></tr>|
}}{{#if:
  {{{ID|}}}
  |{{BG_Infobox_Subheader|title=MMO ID|bgcolor1=#5e3c99|bgcolor2=#b79ced}}|
}}{{#if:
  {{{ID|}}}
  |<tr><td colspan="2"><code>'''{{{ID}}}'''</code></td></tr>|
}}{{#if:
  {{{lore|}}}
  |{{BG_Infobox_Subheader|title=Lore|bgcolor1=#5e3c99|bgcolor2=#b79ced}}|
}}{{#if:
  {{{lore|}}}
  |<tr><td colspan="2"><code>'''{{{lore}}}'''</code></td></tr>|
}}{{#if:
  {{{tooltip|}}}{{{tooltip_green|}}}{{{tooltip_red|}}}
  |{{BG_Infobox_Subheader|title=Tooltip|bgcolor1=#5e3c99|bgcolor2=#b79ced}}|
}}{{#if:
  {{{tooltip|}}}
  |<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>|
}}{{#if:
  {{{tooltip_green|}}}
  |<tr><td colspan="2"><code><span style="color:#00e600;">'''{{{tooltip_green}}}'''</span></code></td></tr>|
}}{{#if:
  {{{tooltip_red|}}}
  |<tr><td colspan="2"><code><span style="color:red;">'''{{{tooltip_red}}}'''</span></code></td></tr>|
}}
|-
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Quest]]</includeonly><noinclude>[[Category:Infobox templates]]{{doc}}</noinclude>

Latest revision as of 17:46, 2 March 2025

Documentation

{{Infobox Quest}} is used to create a uniform Infobox for Quest.

This infobox adds Category:Quest to the page and subsequential type Categories.


Template parameters

Attribute Description Required? Default
image Set the Image of the Infobox. Optional [[File:Site-community-image.png]]
type Set Quest Type, will result in Category Required -
subtype Set Quest Sub Type, will result in Category Optional -
rarity Set Quest Rarity, not useful for now since all are Quest Optional -
giver Specifies the Quest Giver Optional -
receiver Specifies the Quest Receiver Optional -
lvl_req Specifies the Main Level Required to start the Quest Optional -
skill_req Specifies the Skill Level Required to start the Quest, best to specify the Profession e.g
[[Mining]] 50
Optional -
reward Specifies Quest Reward, work best with Template {{plainlist}} Optional -
ID Specifies Quest ID, currently not in the game Optional -
lore Specifies possible lore Optional -
tooltip Specifies Tooltips during the Quest Optional -
tooltip_green Specifies Tooltips during the Quest but in green Optional -
tooltip_red Specifies Tooltips during the Quest but in red Optional -


Example

Example Result
{{Infobox_Quest
|image=Questitem Chalky Geode - Amethyst Blocks.gif
|type=Daily Quest
|subtype=Fetch Quest
|rarity=Quest
|giver=Miner George
|receiver=Miner George
|lvl_req=99
|skill_req=[[Alchemy]] 20
|reward={{plainlist|
*	2500 [[Classes|Class EXP]]
*	5000 [[Mining]] EXP
*	100 [[Currency|Coins]]}}
|ID=TEST_QUEST
|lore=Someone carved some strange runes along the inside. You can only decipher some of it...
|tooltip=Use this item to start a quest! YOU CAN ONLY DO ONE QUEST AT A TIME! USING THIS WILL REMOVE YOUR ACTIVE QUEST!
|tooltip_green=Use this item to start a quest! YOU CAN ONLY DO ONE QUEST AT A TIME! USING THIS WILL REMOVE YOUR ACTIVE QUEST! NOW IN GREEN!
|tooltip_red=Use this item to start a quest! YOU CAN ONLY DO ONE QUEST AT A TIME! USING THIS WILL REMOVE YOUR ACTIVE QUEST! NOW IN RED!
}}
Infobox Quest
Quest Details
TypeDaily Quest
SubtypeFetch Quest
RarityQuest
Quest Giver: Miner George
Quest Receiver: Miner George
Level Requirement: 99
Skill Requirement: Alchemy 20
Rewards
Reward for completion:
MMO ID
TEST_QUEST
Lore
Someone carved some strange runes along the inside. You can only decipher some of it...
Tooltip
Use this item to start a quest! YOU CAN ONLY DO ONE QUEST AT A TIME! USING THIS WILL REMOVE YOUR ACTIVE QUEST!
Use this item to start a quest! YOU CAN ONLY DO ONE QUEST AT A TIME! USING THIS WILL REMOVE YOUR ACTIVE QUEST! NOW IN GREEN!
Use this item to start a quest! YOU CAN ONLY DO ONE QUEST AT A TIME! USING THIS WILL REMOVE YOUR ACTIVE QUEST! NOW IN RED!