Template:QuestInfoBox: Difference between revisions

From Ymirheim Wiki
(Created page with "<includeonly><templatestyles src="Template:NpcInfoBox/styles.css"/> <div class="npc-infobox-wrapper"> <div class="npc-infobox"> <div class="heading">{{#yh_data:quests|{{{1}}}|Title}}</div> {{#if:{{{image|}}}|<div class="npc-info-image">[[File:{{{image|}}}|280px]]</div>|}} <table class="npc-info-table"> <tr> <th scope="row"><translate nowrap>Quest Level</translate></th> <td>{{#yh_data:quests|{{{1}}}|QuestLevel}}</td> </tr> <tr> <th scope="row"><translate nowrap>Type</tran...")
 
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Template:NpcInfoBox/styles.css"/>
<includeonly><templatestyles src="Template:InfoBox/styles.css"/>
<div class="npc-infobox-wrapper">
<div class="infobox-wrapper">
<div class="npc-infobox">
<div class="infobox">
<div class="heading">{{#yh_data:quests|{{{1}}}|Title}}</div>
<div class="heading">{{#yh_data:quests|{{{1}}}|Title}}</div>
{{#if:{{{image|}}}|<div class="npc-info-image">[[File:{{{image|}}}|280px]]</div>|}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image|}}}|280px]]</div>|}}
<table class="npc-info-table">
<table class="infobox-table">
<tr>
<tr>
<th scope="row"><translate nowrap>Quest Level</translate></th>
<th scope="row"><translate nowrap>Quest Level</translate></th>
Line 12: Line 12:
<th scope="row"><translate nowrap>Type</translate></th>
<th scope="row"><translate nowrap>Type</translate></th>
<td>{{#switch:{{#yh_data:quests|{{{1}}}|SlotType}}
<td>{{#switch:{{#yh_data:quests|{{{1}}}|SlotType}}
|  
| 1 = <translate nowrap>General</translate>
| 2 = <translate nowrap>Personal</translate>
| 3 =
| 4 = <translate nowrap>Event</translate>
| 6 = <translate nowrap>Main Story</translate>
}}</td>
}}</td>
</tr>
</tr>
Line 19: Line 23:
<td>{{#ifexpr:{{#yh_data:quests|{{{1}}}|RequestNpcModelId}} > 0 | {{#yh_data:npc_prototypes|{{#yh_data:quests|{{{1}}}|RequestNpcModelId}}|Name}} | {{NA}} }}</td>
<td>{{#ifexpr:{{#yh_data:quests|{{{1}}}|RequestNpcModelId}} > 0 | {{#yh_data:npc_prototypes|{{#yh_data:quests|{{{1}}}|RequestNpcModelId}}|Name}} | {{NA}} }}</td>
</tr>
</tr>
{{#if:{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeFrom}}{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeTo}}|
<tr>
<th scope="row"><translate nowrap>Availability</translate></th>
<td>
{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeFrom}} ~ {{#yh_data:quests|{{{1}}}|AvailabilityGameTimeTo}}
</td>
</tr>
}}
{{#ifexpr:{{#yh_data:quests|{{{1}}}|RepeatIntervalMinutes}} > 0|
<tr>
<th scope="row"><translate nowrap>Can be repeated after</translate></th>
<td>
<translate nowrap><tvar name="munutes">{{#yh_data:quests|{{{1}}}|RepeatIntervalMinutes}}</tvar> minutes</translate>
</td>
</tr>
}}
</table>
<hr/>
<table class="infobox-table">
<tr>
<th colspan="2" style="text-align: center;"><translate nowrap>Rewards</translate></th>
</tr>
{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_Money}} > 0|
<tr>
<th colspan="2"><translate nowrap>Money</translate></th>
<td>{{PriceFormatted|{{#yh_data:quests|{{{1}}}|Reward_Money}}}}</td>
</tr>
}}
<tr>
<th scope="row"><translate nowrap>Experience</translate></th>
<td><!--
--><strong><translate nowrap>Base</translate></strong>: {{#yh_data:quests|{{{1}}}|Reward_BaseExp}}<br/><!--
--><strong><translate nowrap>Class</translate></strong>: {{#yh_data:quests|{{{1}}}|Reward_ClassExp}}<br/><!--
--><strong><translate nowrap>Weapon</translate></strong>: {{#yh_data:quests|{{{1}}}|Reward_WeaponExp}}<br/><!--
--></td>
</tr>
<tr>
<td colspan="2"><!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_Item1_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward_Item1_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward_Item1_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_Item2_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward_Item2_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward_Item2_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_Item3_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward_Item3_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward_Item3_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_Item4_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward_Item4_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward_Item4_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_ChoiceEnabled}} > 0|
<div class="text-align: center;"><translate nowrap>Available choices:</translate></div><!--
--><div><!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward1_Item1_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward1_Item1_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward1_Item1_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward1_Item2_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward1_Item2_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward1_Item2_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward1_Item3_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward1_Item3_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward1_Item3_Num}}<br/>
}}<!--
--></div><!--
--><div class="text-align: center;"><translate nowrap>- or -</translate></div><!--
--><div><!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward2_Item1_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward2_Item1_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward2_Item1_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward2_Item2_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward2_Item2_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward2_Item2_Num}}<br/>
}}<!--
-->{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward2_Item3_Id}} > 0|
{{ItemLink|{{#yh_data:quests|{{{1}}}|Reward2_Item3_Id}}}}&nbsp;&times;{{#yh_data:quests|{{{1}}}|Reward2_Item3_Num}}<br/>
}}<!--
--></div>
}}<!--
--></td>
</tr>
</table>
</table>
</div>
</div>
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
This template can be used to display an information box about a specific NPC on a page.  
This template can be used to display an information box about a specific quest on a page.  




== Usage ==
== Usage ==


  <nowiki>{{NpcInfoBox|NPC_ID}}</nowiki>
  <nowiki>{{QuestInfoBox|QUEST_ID}}</nowiki>




== Examples ==
== Examples ==
{{QuestInfoBox|14}}
 
{{QuestInfoBox|2}}
<pre><nowiki>{{QuestInfoBox|3}}</nowiki></pre>
{{QuestInfoBox|3}}
 
{{Clear}}
<pre><nowiki>{{QuestInfoBox|13|image=Shelphy_Adriana.png}}</nowiki></pre>
{{QuestInfoBox|13|image=Shelphy_Adriana.png}}





Revision as of 08:15, 9 July 2024

This template can be used to display an information box about a specific quest on a page.


Usage

{{QuestInfoBox|QUEST_ID}}


Examples

{{QuestInfoBox|3}}
Moritz Needs a Hand
Quest Level 1
Type Personal
Quest giver Moritz

Rewards
Experience Base: 5
Class: 0
Weapon: 0
icon Worn Underwear[!#1311100001] ×1


{{QuestInfoBox|13|image=Shelphy_Adriana.png}}
Lunch Delivery
Shelphy Adriana.png
Quest Level 1
Type General
Quest giver Averro Reinhold
Availability 10:00 am ~ 3:00 pm
Can be repeated after 95 minutes

Rewards
Experience Base: 65
Class: 25
Weapon: 0
Money 260 Rupee
icon Averro Reinhold's Vegetable Sandwich ×1