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 |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template: | <includeonly><templatestyles src="Template:InfoBox/styles.css"/> | ||
<div class=" | <div class="infobox-wrapper"> | ||
<div class=" | <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=" | {{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image|}}}|280px]]</div>|}} | ||
<table class=" | <table class="infobox-table"> | ||
<tr> | <tr> | ||
<th scope="row"><translate nowrap>Quest Level</translate></th> | <th scope="row"><translate nowrap><!--T:1--> Quest Level</translate></th> | ||
<td>{{#yh_data:quests|{{{1}}}|QuestLevel}}</td> | <td>{{#yh_data:quests|{{{1}}}|QuestLevel}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th scope="row"><translate nowrap>Type</translate></th> | <th scope="row"><translate nowrap><!--T:2--> Type</translate></th> | ||
<td>{{#switch:{{#yh_data:quests|{{{1}}}|SlotType}} | <td>{{#switch:{{#yh_data:quests|{{{1}}}|SlotType}} | ||
| | | 1 = <translate nowrap><!--T:3--> General</translate> | ||
| 2 = <translate nowrap><!--T:4--> Personal</translate> | |||
| 3 = | |||
| 4 = <translate nowrap><!--T:5--> Event</translate> | |||
| 6 = <translate nowrap><!--T:6--> Main Story</translate> | |||
}}</td> | }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th scope="row"><translate nowrap> | <th scope="row"><translate nowrap><!--T:7--> Quest giver</translate></th> | ||
<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 | ||
| [[Special:MyLanguage/{{#yh_data_eng:npc_prototypes|{{#yh_data:quests|{{{1}}}|RequestNpcModelId}}|Name}}|{{#yh_data:npc_prototypes|{{#yh_data:quests|{{{1}}}|RequestNpcModelId}}|Name}}]] | |||
| {{NA}} | |||
}}</td> | |||
</tr> | |||
{{#if:{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeFrom}}{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeTo}}| | |||
<tr> | |||
<th scope="row"><abbr title="<translate nowrap><!--T:19--> The quest can be started during this time slot (in-game time).</translate>"><translate nowrap><!--T:8--> Availability</translate></abbr></th> | |||
<td><!-- | |||
--><span style="white-space: nowrap;">{{#time:<translate nowrap><!--T:21--> g:i a</translate>|{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeFrom}}}}</span><!-- | |||
--> ~ <!-- | |||
--><span style="white-space: nowrap;">{{#time:<translate nowrap><!--T:22--> g:i a</translate>|{{#yh_data:quests|{{{1}}}|AvailabilityGameTimeTo}}}}</span><!-- | |||
--></td> | |||
</tr> | |||
}} | |||
{{#ifexpr:{{#yh_data:quests|{{{1}}}|RepeatIntervalMinutes}} > 0| | |||
<tr> | |||
<th scope="row"><abbr title="<translate nowrap><!--T:20--> The quest becomes available again after this amount of time (real time).</translate>"><translate nowrap><!--T:9--> Can be repeated after</translate></abbr></th> | |||
<td><translate nowrap><!--T:10--> <tvar name="munutes">{{#yh_data:quests|{{{1}}}|RepeatIntervalMinutes}}</tvar> minutes</translate></td> | |||
</tr> | </tr> | ||
}} | |||
</table> | |||
<hr/> | |||
<table class="infobox-table"> | |||
<tr> | |||
<th colspan="2" style="text-align: center;"><translate nowrap><!--T:11--> Rewards</translate></th> | |||
</tr> | |||
<tr> | |||
<th scope="row"><translate nowrap><!--T:13--> Experience</translate></th> | |||
<td><!-- | |||
--><strong><translate nowrap><!--T:14--> Base</translate></strong>: {{#yh_data:quests|{{{1}}}|Reward_BaseExp}}<br/><!-- | |||
--><strong><translate nowrap><!--T:15--> Class</translate></strong>: {{#yh_data:quests|{{{1}}}|Reward_ClassExp}}<br/><!-- | |||
--><strong><translate nowrap><!--T:16--> Weapon</translate></strong>: {{#yh_data:quests|{{{1}}}|Reward_WeaponExp}}<br/><!-- | |||
--></td> | |||
</tr> | |||
{{#ifexpr:{{#yh_data:quests|{{{1}}}|Reward_Money}} > 0| | |||
<tr> | |||
<th><translate nowrap><!--T:12--> Money</translate></th> | |||
<td>{{PriceFormatted|{{#yh_data:quests|{{{1}}}|Reward_Money}}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
<table class="infobox-table"> | |||
<tr> | |||
<td colspan="2">{{QuestRewardItemList|{{{1}}}}}</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 | This template can be used to display an information box about a specific quest on a page. | ||
== Usage == | == Usage == | ||
<nowiki>{{ | <nowiki>{{QuestInfoBox|QUEST_ID}}</nowiki> | ||
== Examples == | == Examples == | ||
{{QuestInfoBox| | |||
{{QuestInfoBox| | <pre><nowiki>{{QuestInfoBox|3}}</nowiki></pre> | ||
{{QuestInfoBox|3}} | |||
{{Clear}} | |||
<pre><nowiki>{{QuestInfoBox|19}}</nowiki></pre> | |||
{{QuestInfoBox|19}} | |||
{{Clear}} | |||
<pre><nowiki>{{QuestInfoBox|13|image=Shelphy_Adriana.png}}</nowiki></pre> | |||
{{QuestInfoBox|13|image=Shelphy_Adriana.png}} | |||
Latest revision as of 11:23, 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 |
Worn Underwear[#1311100001] ×1 |
{{QuestInfoBox|19}}
The Mice Infestation
Quest Level | 10 |
---|---|
Type | General |
Quest giver | Henna |
Availability | 6:00 am ~ 6:00 pm |
Can be repeated after | 95 minutes |
Rewards | |
---|---|
Experience | Base: 750 Class: 250 Weapon: 0 |
Money | 600 Rupee |
{{QuestInfoBox|13|image=Shelphy_Adriana.png}}
Lunch Delivery
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 |
Averro Reinhold's Vegetable Sandwich ×1 |