Template:Quest infobox: Difference between revisions
From Corsair Cove Official Wiki
WIP |
Generates an infobox with the specified quest data |
||
| Line 1: | Line 1: | ||
<div class="cc-infobox-quest cc-infobox-quest-background- | <includeonly><!-- | ||
--><div class="cc-infobox-quest cc-infobox-quest-background-{{#if: {{{path|}}} <!-- | |||
---->|{{lc:{{{path}}}}}<!-- | |||
---->|generic}}" style="max-width: 360px;"><!-- | |||
** TITLE ** | |||
----><div class="cc-infobox-quest-title"><!-- | |||
<div class="cc-infobox-quest- | ------><span>{{#if: {{{title|}}}|{{{title}}}|Unnamed Quest}}</span><!-- | ||
----></div><!-- | |||
** PATH BANNER ** | |||
<div class="cc-infobox-quest- | ---->{{#if: {{{path|}}}<!-- | ||
------>| <div class="cc-infobox-quest-path-banner cc-panel-recolor-{{lc:{{{path}}}}}"><!-- | |||
-----------><span>{{{path}}}</span><!-- | |||
--------></div><!-- | |||
---->}}<!-- | |||
** ILLUSTRATION ** | |||
<div class="cc-infobox-quest- | ---->{{#if: {{{image_filename|}}}<!-- | ||
------>| <div class="cc-infobox-quest-illustration-well"><!-- | |||
-------->[[File:{{{image_filename}}}]]<!-- | |||
--------></div><!-- | |||
---->}}<!-- | |||
** DESCRIPTION ** | |||
</div> | ----><div class="cc-infobox-quest-section-description"><!-- | ||
------>{{#if: {{{description|}}}<!-- | |||
-------->|{{{description}}}<!-- | |||
-------->|{{#if: {{{path|}}}|{{{path}}}|Generic }}Quest<!-- | |||
------>}}<!-- | |||
----></div><!-- | |||
<br /><br /><br /> | ** RECOMMENDED SHIP / DIFFICULTY ** | ||
---->{{#if: {{{recommended_ship_tier|}}}<!-- | |||
------>| <div class="cc-infobox-quest-section-difficulty"><!-- | |||
----------><span>Recommended Ship</span><!-- | |||
----------><hr><!-- | |||
----------><div style="display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center;"><!-- | |||
------------>{{Ship tier icon|{{{recommended_ship_tier|}}}|path={{{recommended_ship_class|}}}|size=md}}<!-- | |||
------------>{{#if: {{{recommended_ship_gun_damage|}}}<!-- | |||
-------------->| <div>{{Gun damage icon|size=sm}}<br />{{{recommended_ship_gun_damage}}}</div><!-- | |||
------------>}}<!-- | |||
------------>{{#if: {{{recommended_ship_boarding_damage|}}}<!-- | |||
-------------->| <div>{{Boarding damage icon|size=sm}}<br />{{{recommended_ship_boarding_damage}}}</div><!-- | |||
------------>}}<!-- | |||
------------>{{#if: {{{recommended_ship_speed|}}}<!-- | |||
-------------->| <div>{{Speed icon|size=sm}}<br />{{{recommended_ship_speed}}}</div><!-- | |||
------------>}}<!-- | |||
------------>{{#if: {{{recommended_ship_manoeuvrability|}}}<!-- | |||
-------------->| <div>{{Manoeuvrability icon|size=sm}}<br />{{{recommended_ship_manoeuvrability}}}</div><!-- | |||
------------>}}<!-- | |||
------------>{{#if: {{{recommended_ship_armour|}}}<!-- | |||
-------------->| <div>{{Armour icon|size=sm}}<br />{{{recommended_ship_armour}}}</div><!-- | |||
------------>}}<!-- | |||
----------></div><!-- | |||
--------></div><!-- | |||
---->}}<!-- | |||
** REWARDS ** | |||
---->{{#if: {{{reward_1_type|}}}{{{reward_1_name|}}}{{{reward_1_qty|}}}<!-- | |||
------>| <div class="cc-infobox-quest-section-rewards"><!-- | |||
----------><span>Rewards</span><!-- | |||
----------><hr><!-- | |||
----------><div style="display: flex; justify-content: center; gap: 16px;"><!-- | |||
------------>{{Reward card|type={{{reward_1_type}}}|{{{reward_1_name|}}}|qty={{{reward_1_qty}}}}}<!-- | |||
------------>{{#if: {{{reward_2_type|}}}{{{reward_2_name|}}}{{{reward_2_qty|}}}<!-- | |||
-------------->| {{Reward card|type={{{reward_2_type}}}|{{{reward_2_name|}}}|qty={{{reward_2_qty}}}}}<!-- | |||
------------>}}<!-- | |||
------------>{{#if: {{{reward_3_type|}}}{{{reward_3_name|}}}{{{reward_3_qty|}}}<!-- | |||
-------------->| {{Reward card|type={{{reward_3_type}}}|{{{reward_3_name|}}}|qty={{{reward_3_qty}}}}}<!-- | |||
------------>}}<!-- | |||
----------></div><!-- | |||
--------></div><!-- | |||
---->}}<!-- | |||
** END ** | |||
--></div></includeonly><noinclude> | |||
Generates an infobox with the specified information about the quest. | |||
== Usage == | |||
{|class=wikitable | |||
! Parameter !! Purpose | |||
|- | |||
| <code>title=</code> || the name or title of the quest | |||
|- | |||
| <code>path=</code> || One of the Principle Path names, or omit for a generic quest | |||
* <code>Notoriety</code> | |||
* <code>Empire</code> | |||
* <code>Seafaring</code> | |||
* <code>Wealth</code> | |||
|- | |||
| <code>image_filename=</code> || The filename of an optional thematic illustration or image, including the extension | |||
|- | |||
| <code>description=</code> || The story, the in-game flavor text of the quest | |||
|- | |||
| <code>recommended_ship_tier=</code> || If there's a recommended ship, you must specify the tier | |||
|- | |||
| <code>recommended_ship_class=</code> || If there's a particular class of ship, identify it by its color according to one of the Principle Path names, or omit for a generic class. Same values as above. | |||
|- | |||
| <code>recommended_ship_gun_damage=</code> || Recommended ship stat | |||
|- | |||
| <code>recommended_ship_boarding_damage=</code> || ''"'' | |||
|- | |||
| <code>recommended_ship_speed=</code> || ''"'' | |||
|- | |||
| <code>recommended_ship_manoeuvrability=</code> || ''"'' | |||
|- | |||
| <code>recommended_ship_armour=</code> || ''"'' | |||
|- | |||
| <code>reward_1_type=</code> || First reward's type, see [[Template:Reward card]] | |||
|- | |||
| <code>reward_1_name=</code> || First reward's name | |||
|- | |||
| <code>reward_1_qty=</code> || First reward's quantity | |||
|- | |||
| <code>reward_2_type=</code> || ''"'' | |||
|- | |||
| <code>reward_2_name=</code> || ''"'' | |||
|- | |||
| <code>reward_2_qty=</code> || ''"'' | |||
|- | |||
| <code>reward_3_type=</code> || ''"'' | |||
|- | |||
| <code>reward_3_name=</code> || ''"'' | |||
|- | |||
| <code>reward_3_qty=</code> || ''"'' | |||
|} | |||
=== Examples === | |||
<pre>{{Quest infobox | |||
|title=The Secret of Prosperity | |||
|path=Wealth | |||
|image_filename=T BloodSail.png | |||
|description=Months ago, the exploring vessel Prosperity disappeared without a trace. She was last seen in this region. Find out what happened to the ship and her crew. | |||
|recommended_ship_tier=2 | |||
|recommended_ship_class=Wealth | |||
|recommended_ship_gun_damage= | |||
|recommended_ship_boarding_damage= | |||
|recommended_ship_speed=12 | |||
|recommended_ship_manoeuvrability=12 | |||
|recommended_ship_armour= | |||
|reward_1_type=path | |||
|reward_1_name=Wealth | |||
|reward_1_qty=3 | |||
|reward_2_type= | |||
|reward_2_name= | |||
|reward_2_qty=15 | |||
|reward_3_type= | |||
|reward_3_name= | |||
|reward_3_qty= | |||
}}</pre> | |||
{{Quest infobox | |||
|title=The Secret of Prosperity | |||
|path=Wealth | |||
|image_filename=T BloodSail.png | |||
|description=Months ago, the exploring vessel Prosperity disappeared without a trace. She was last seen in this region. Find out what happened to the ship and her crew. | |||
|recommended_ship_tier=2 | |||
|recommended_ship_class=Wealth | |||
|recommended_ship_gun_damage= | |||
|recommended_ship_boarding_damage= | |||
|recommended_ship_speed=12 | |||
|recommended_ship_manoeuvrability=12 | |||
|recommended_ship_armour= | |||
|reward_1_type=path | |||
|reward_1_name=Wealth | |||
|reward_1_qty=3 | |||
|reward_2_type= | |||
|reward_2_name= | |||
|reward_2_qty=15 | |||
|reward_3_type= | |||
|reward_3_name= | |||
|reward_3_qty= | |||
}} | |||
<hr style="clear: both;"> | |||
<pre><!-- Template parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Quest_infobox --> | |||
{{Quest infobox | |||
|title=Amara's Scouting Vessel | |||
|path= | |||
|image_filename= | |||
|description=Sailors reported an unfamiliar vessel roaming the Keys, flying no flag. Amara perhaps? | |||
|recommended_ship_tier=2 | |||
|recommended_ship_class= | |||
|recommended_ship_gun_damage=4 | |||
|recommended_ship_boarding_damage=4 | |||
|recommended_ship_speed=4 | |||
|recommended_ship_manoeuvrability=4 | |||
|recommended_ship_armour= | |||
|reward_1_type=resource | |||
|reward_1_name=Coin | |||
|reward_1_qty=30 | |||
|reward_2_type= | |||
|reward_2_name= | |||
|reward_2_qty= | |||
|reward_3_type= | |||
|reward_3_name= | |||
|reward_3_qty= | |||
}}</pre> | |||
{{Quest infobox | |||
|title=Amara's Scouting Vessel | |||
|path= | |||
|image_filename= | |||
|description=Sailors reported an unfamiliar vessel roaming the Keys, flying no flag. Amara perhaps? | |||
|recommended_ship_tier=2 | |||
|recommended_ship_class= | |||
|recommended_ship_gun_damage=4 | |||
|recommended_ship_boarding_damage=4 | |||
|recommended_ship_speed=4 | |||
|recommended_ship_manoeuvrability=4 | |||
|recommended_ship_armour= | |||
|reward_1_type=resource | |||
|reward_1_name=Coin | |||
|reward_1_qty=30 | |||
|reward_2_type= | |||
|reward_2_name= | |||
|reward_2_qty= | |||
|reward_3_type= | |||
|reward_3_name= | |||
|reward_3_qty= | |||
}} | |||
== Copypasta == | |||
Copy and paste this at the top of any article on a specific building: | |||
<pre><!-- Template parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Quest_infobox --> | |||
{{Quest infobox | |||
|title= | |||
|path= | |||
|image_filename= | |||
|description= | |||
|recommended_ship_tier= | |||
|recommended_ship_class= | |||
|recommended_ship_gun_damage= | |||
|recommended_ship_boarding_damage= | |||
|recommended_ship_speed= | |||
|recommended_ship_manoeuvrability= | |||
|recommended_ship_armour= | |||
|reward_1_type= | |||
|reward_1_name= | |||
|reward_1_qty= | |||
|reward_2_type= | |||
|reward_2_name= | |||
|reward_2_qty= | |||
|reward_3_type= | |||
|reward_3_name= | |||
|reward_3_qty= | |||
}}</pre> | |||
<hr style="clear: both;"> | |||
[[Category: Infobox templates]] | [[Category: Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 18:55, 1 August 2026
Generates an infobox with the specified information about the quest.
Usage
| Parameter | Purpose |
|---|---|
title= |
the name or title of the quest |
path= |
One of the Principle Path names, or omit for a generic quest
|
image_filename= |
The filename of an optional thematic illustration or image, including the extension |
description= |
The story, the in-game flavor text of the quest |
recommended_ship_tier= |
If there's a recommended ship, you must specify the tier |
recommended_ship_class= |
If there's a particular class of ship, identify it by its color according to one of the Principle Path names, or omit for a generic class. Same values as above. |
recommended_ship_gun_damage= |
Recommended ship stat |
recommended_ship_boarding_damage= |
" |
recommended_ship_speed= |
" |
recommended_ship_manoeuvrability= |
" |
recommended_ship_armour= |
" |
reward_1_type= |
First reward's type, see Template:Reward card |
reward_1_name= |
First reward's name |
reward_1_qty= |
First reward's quantity |
reward_2_type= |
" |
reward_2_name= |
" |
reward_2_qty= |
" |
reward_3_type= |
" |
reward_3_name= |
" |
reward_3_qty= |
" |
Examples
{{Quest infobox
|title=The Secret of Prosperity
|path=Wealth
|image_filename=T BloodSail.png
|description=Months ago, the exploring vessel Prosperity disappeared without a trace. She was last seen in this region. Find out what happened to the ship and her crew.
|recommended_ship_tier=2
|recommended_ship_class=Wealth
|recommended_ship_gun_damage=
|recommended_ship_boarding_damage=
|recommended_ship_speed=12
|recommended_ship_manoeuvrability=12
|recommended_ship_armour=
|reward_1_type=path
|reward_1_name=Wealth
|reward_1_qty=3
|reward_2_type=
|reward_2_name=
|reward_2_qty=15
|reward_3_type=
|reward_3_name=
|reward_3_qty=
}}
The Secret of Prosperity
Months ago, the exploring vessel Prosperity disappeared without a trace. She was last seen in this region. Find out what happened to the ship and her crew.
<!-- Template parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Quest_infobox -->
{{Quest infobox
|title=Amara's Scouting Vessel
|path=
|image_filename=
|description=Sailors reported an unfamiliar vessel roaming the Keys, flying no flag. Amara perhaps?
|recommended_ship_tier=2
|recommended_ship_class=
|recommended_ship_gun_damage=4
|recommended_ship_boarding_damage=4
|recommended_ship_speed=4
|recommended_ship_manoeuvrability=4
|recommended_ship_armour=
|reward_1_type=resource
|reward_1_name=Coin
|reward_1_qty=30
|reward_2_type=
|reward_2_name=
|reward_2_qty=
|reward_3_type=
|reward_3_name=
|reward_3_qty=
}}
Amara's Scouting Vessel
Sailors reported an unfamiliar vessel roaming the Keys, flying no flag. Amara perhaps?
Copypasta
Copy and paste this at the top of any article on a specific building:
<!-- Template parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Quest_infobox -->
{{Quest infobox
|title=
|path=
|image_filename=
|description=
|recommended_ship_tier=
|recommended_ship_class=
|recommended_ship_gun_damage=
|recommended_ship_boarding_damage=
|recommended_ship_speed=
|recommended_ship_manoeuvrability=
|recommended_ship_armour=
|reward_1_type=
|reward_1_name=
|reward_1_qty=
|reward_2_type=
|reward_2_name=
|reward_2_qty=
|reward_3_type=
|reward_3_name=
|reward_3_qty=
}}





