Template:MonsterInfoBox: Difference between revisions

From Ymirheim Wiki
No edit summary
No edit summary
Tag: Manual revert
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:MonsterInfoBox/styles.css"/>
<includeonly><templatestyles src="Template:InfoBox/styles.css"/><templatestyles src="Template:MonsterInfoBox/styles.css"/>
<div class="monster-infobox">
<div class="infobox-wrapper">
<div class="infobox monster-infobox">
<div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|GroupName}}</div>
<div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|GroupName}}</div>
<div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|Name}}</div>
<div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|Name}}</div>
{{#if:{{{image|}}}|<div class="monster-info-image">{{{image|}}}</div>|}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image|}}}|280px]]</div>|}}
<table class="monster-info-table">
<table class="infobox-table">
<tr>
<tr>
<th scope="row">Level range</th>
<th scope="row"><translate nowrap><!--T:1--> Level range</translate></th>
<td>{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|Level|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|Level|max}}</td>
<td>{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|Level|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|Level|max}}</td>
</tr>
</tr>
<tr>
<tr>
<th scope="row">Type</th>
<th scope="row"><translate nowrap><!--T:2--> Type</translate></th>
<td>{{#yh_data:npc_prototypes|{{{1}}}|Type}}</td>
<td>{{#yh_data:npc_types|{{#yh_data:npc_prototypes|{{{1}}}|Type}}|Type}}</td>
</tr>
</tr>
<tr>
<tr>
<th scope="row">Race</th>
<th scope="row"><translate nowrap><!--T:3--> Race</translate></th>
<td>{{#yh_data:npc_prototypes|{{{1}}}|Race}}</td>
<td>{{#yh_data:npc_races|{{#yh_data:npc_prototypes|{{{1}}}|Race}}|Race}}</td>
</tr>
</tr>
<tr>
<tr>
<th scope="row">Movement</th>
<th scope="row"><translate nowrap><!--T:4--> Size</translate></th>
<td>{{#switch: {{#yh_data:npc_prototypes|{{{1}}}|MoveType}}
<td>{{#yh_data:body_sizes|{{#yh_data:npc_prototypes|{{{1}}}|Size}}|Size}}</td>
| 1 = Ground
| 3 = Underwater (stationary)
| 4 = Underwater (swimming freely)
| 5 = Ground<br/>Underwater (seabed only)
| 6 = Ground<br/>Underwater (swimming freely)
}}</td>
</tr>
</tr>
<tr>
<tr>
<th scope="row">Size</th>
<th scope="row"><translate nowrap><!--T:5--> Role</translate></th>
<td>{{#yh_data:npc_prototypes|{{{1}}}|Size}}</td>
<td>{{#yh_data:npc_roles|{{#yh_data:npc_prototypes|{{{1}}}|Role}}|Role}}</td>
</tr>
</tr>
<tr>
<tr>
<th scope="row">Role</th>
<th scope="row"><translate nowrap><!--T:6--> Movement</translate></th>
<td>{{#yh_data:npc_prototypes|{{{1}}}|Role}}</td>
<td><ul>{{#switch: {{#yh_data:npc_prototypes|{{{1}}}|MoveType}}
| 1 = <li><translate nowrap><!--T:7--> Ground</translate></li>
| 2 = <li><translate nowrap><!--T:8--> Ground (flying)</translate></li>
| 3 = <li><translate nowrap><!--T:9--> Underwater (stationary)</translate></li>
| 4 = <li><translate nowrap><!--T:10--> Underwater (swimming freely)</translate></li>
| 5 = <li><translate nowrap><!--T:11--> Ground</translate></li><li><translate nowrap><!--T:12--> Underwater (seabed only)</translate></li>
| 6 = <li><translate nowrap><!--T:13--> Ground</translate></li><li><translate nowrap><!--T:14--> Underwater (swimming freely)</translate></li>
}}</ul></td>
</tr>
</tr>
<tr>
<tr>
<th scope="row">Experience</th>
<th scope="row"><translate nowrap><!--T:15--> Experience</translate></th>
<td><!--
<td><!--


--><strong>Base</strong>: {{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|BaseExp|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|BaseExp|max}}<br/><!--
--><strong><translate nowrap><!--T:16--> Base</translate></strong>: {{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|BaseExp|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|BaseExp|max}}<br/><!--


--><strong>Class</strong>: {{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|ClassExp|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|ClassExp|max}}<br/><!--
--><strong><translate nowrap><!--T:17--> Class</translate></strong>: {{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|ClassExp|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|ClassExp|max}}<br/><!--


--><strong>Weapon</strong>: {{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|WeaponExp|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|WeaponExp|max}}<!--
--><strong><translate nowrap><!--T:18--> Weapon</translate></strong>: {{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|WeaponExp|min}}~{{#yh_data_aggregate:npc_prototypes|SetId|{{{1}}}|WeaponExp|max}}<!--


--></td>
--></td>
</tr>
</tr>
<td colspan="2">
<th scope="row"><translate nowrap><!--T:19--> Features</translate></th>
<td>
<ul>
<ul>
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AggressionMode}}|1|<li>Aggressive</li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AggressionMode}}|1|<li><translate nowrap><!--T:20--> Aggressive</translate></li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AggressionMode}}|3|<li>Aggressive</li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AggressionMode}}|3|<li><translate nowrap><!--T:21--> Aggressive</translate></li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|CastSensor}}|1|<li>Cast sensor</li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|CastSensor}}|1|<li><translate nowrap><!--T:22--> Cast sensor</translate></li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AssistMode}}|1|<li>Assister</li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AssistMode}}|1|<li><translate nowrap><!--T:23--> Assister</translate></li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AssistMode}}|2|<li>Defender</li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|AssistMode}}|2|<li><translate nowrap><!--T:24--> Defender</translate></li>|}}
{{#ifeq:{{#yh_data:npc_prototypes|{{{1}}}|CowardnessHealthFactor}}|0||<li><translate nowrap><!--T:25--> Coward</translate></li>}}
</ul>
</ul>
</td>
</td>
Line 59: Line 63:
</table>
</table>
</div>
</div>
{{#if:{{{cardId|}}}| {{ItemInfoBox|{{{cardId|}}}|hint=[[Special:MyLanguage/Card|<translate nowrap><!--T:26--> (what is a card?)</translate>]]}} |}}
</div>
</includeonly><noinclude>
This template can be used to display an information box about a specific monster on a page.
== Usage ==
<nowiki>{{MonsterInfoBox|NPC_ID}}</nowiki>
<nowiki>{{MonsterInfoBox|NPC_ID|cardId=ITEM_ID|image=IMAGE_LINK}}</nowiki>
You have to supply the specific NPC ID, not the monster name.
[[File:NPC ID Search On Ymirheim Translate.png|thumb|How to find NPC ID]]
You can find the NPC ID by searching the NPC prototype in [https://translate.ymirheim.org/browse/ymirheim/npc_prototypes/en/ '''Ymirheim Translate'''] (npc_prototypes component).
The NPC ID is contained in the string key. There can be multiple monsters with the same name, those are variations. Please pick the first one.
For example, if you look up [https://translate.ymirheim.org/browse/ymirheim/npc_prototypes/en/?q=Poporing&sort_by=source&checksum= "Poporing"] in Ymirheim Translate, you will see the NPC ID in the "Key" column (the portion before the forward slash).
Optionally, you can supply the card item ID and the image as additional arguments of the template (see examples below).
== Examples ==
{{MonsterInfoBox|10071}}
<nowiki>{{MonsterInfoBox|10071}}</nowiki>
{{Clear}}
{{MonsterInfoBox|10000|cardId=1601000001|image=Unripe Pukui.png}}
<nowiki>{{MonsterInfoBox|10000|cardId=1601000001|image=Unripe Pukui.png}}</nowiki>
[[Category:Game Data Templates{{#translation:}}]]
</noinclude>

Latest revision as of 08:04, 12 July 2024

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


Usage

{{MonsterInfoBox|NPC_ID}}
{{MonsterInfoBox|NPC_ID|cardId=ITEM_ID|image=IMAGE_LINK}}

You have to supply the specific NPC ID, not the monster name.

How to find NPC ID

You can find the NPC ID by searching the NPC prototype in Ymirheim Translate (npc_prototypes component).

The NPC ID is contained in the string key. There can be multiple monsters with the same name, those are variations. Please pick the first one.

For example, if you look up "Poporing" in Ymirheim Translate, you will see the NPC ID in the "Key" column (the portion before the forward slash).

Optionally, you can supply the card item ID and the image as additional arguments of the template (see examples below).


Examples

Poporing
Level range 20~21
Type Formless
Race Poring
Size Medium
Role Monster
Movement
  • Ground
Experience Base: 125~136
Class: 50~54
Weapon: 10~11
Features
{{MonsterInfoBox|10071}}
Unripe Pukui
Unripe Pukui.png
Level range 1~2
Type Plant
Race Pukui
Size Medium
Role Monster
Movement
  • Ground
Experience Base: 0~4
Class: 0~1
Weapon: 0~1
Features
  • Coward
icon
Unripe Pukui Card
Card
Armor
Weight: 0.001
Max stack: 20
This item can't be sold.

A magic card enchanted with Unripe Pukui Spirit.
By casting the spell written on this card you can transfer the spirit into a piece of equipment.

When enchanted:
Maximum Health +100
Health Recovery Rate +25%
{{MonsterInfoBox|10000|cardId=1601000001|image=Unripe Pukui.png}}