Template:DQB2Enemy: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
m container: allow more width on mobile
Day (talk | contribs)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
[[Category:Enemy templates|{{PAGENAME}}]]
</noinclude>
<includeonly>
<includeonly>
<div style="background-color: #0080ff; padding: 3px; border-radius: 7px; max-width: 63em;">
<div style="background-color: #0080ff; padding: 3px; border-radius: 7px; max-width: 63em;" >
<div style="display: flex; padding: 0.5em; height: 1.35em; justify-content: space-between; align-items: center;">
<div style="display: flex; padding: 0.5em; height: 1.35em; justify-content: space-between; align-items: center;">
     <div>{{#if: {{{name|}}} | '''{{{name}}}''' }} {{#if: {{{kanji|}}} | ({{{kanji}}}{{#if: {{{romanji|}}} | &nbsp;''{{{romanji}}}'' }})}}</div>
     <div>{{#if: {{{name|}}} | '''{{{name}}}''' }}</div>
     <div>[[File:Dragon-quest-builders-2-logo.png|150px|link=Dragon Quest Builders 2|alt=Dragon Quest Builders 2]]</div>
     <div>[[File:Dragon-quest-builders-2-logo.png|150px|link=Dragon Quest Builders 2|alt=Dragon Quest Builders 2]]</div>
</div>
</div>
<div style="background-color: #FFFFFF; border-radius: 5px; padding: 3px;">
<div style="background-color: #E4EFF0; border-radius: 5px; padding: 1px;">
    <table style="border: 1px solid brown; border-radius: 3px; width: 99%; margin-top: 5px; border-right: 1px solid brown; text-align: center; height: 32px;" cellspacing="0" cellpadding="0">
{{paired list grid
      <tr>
  | key background color = #0080ff
        <td style="text-align: center;">{{#if: {{{sprite|}}} | {{{sprite}}} }}</td>
| border color = black
      </tr>
| span 1  = 3
    </table>
| key 1    = Sprite
 
| value 1  = {{{sprite|}}}
    <div style="padding: 3px; ">
| span 2  = 3
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
| key 2    = [[List of monsters in Dragon Quest Builders 2|No.]]
      <tr>
| value 2  = {{{Number|}}}
        <td style="background-color:  #ffcc00; padding: 2px; width: 20%; text-align: center; border-right: 1px solid brown">'''{{HP}}'''</td>
| span 3  = 3
        <td style="background-color: #ffcc00; padding: 2px; width: 20%; text-align: center; border-right: 1px solid brown">'''{{Attack}}'''</td>
| key 3    = Family
        <td style="background-color:  #ffcc00; padding: 2px; width: 25%; text-align: center; border-right: 1px solid brown">'''{{Defense}}'''</td>
| value 3  = {{{family|}}}
        <td style="background-color: #ffcc00; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Item Dropped'''</td>
| span 4  = 3
        <td style="background-color: #ffcc00; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Tamable'''</td>
| key 4    = [[List of recruitable monsters in Dragon Quest Builders 2|Tameable]]
      </tr>
| value 4 = {{{tameable|}}}
      <tr>
| key 5    = {{Exp}}erience
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{hp|}}}|{{{hp}}}|?}}</td>
  | value 5 = {{{exp|?}}}
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{attack|}}|{{{attack}}}|?}}</td>
| key 6    = {{HP}}
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{defense|}}}|{{{defense}}}|?}}</td>
| value 6  = {{{hp|?}}}
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if: {{{item|}}} | {{{item}}}}}</td>
| key 7    = {{Attack}}
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if: {{{tamable|}}} | {{{tamable}}}}}</td>
| value 7  = {{{attack|?}}}
      </tr>
| key 8    = {{Defence}}
    </table>
| value 8  = {{{defence| {{{defense|}}} }}}</span>
 
}}
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%; margin-top: 5px; border-right: 1px solid brown; text-align: center; height: 32px;" cellspacing="0" cellpadding="0">
{{paired list stack
      <tr>
| key background color = #0080ff
        <td style="width: 25%; height: 24px; background-color: #ffcc00; border-bottom: 1px solid brown; border-right: 1px solid brown">'''Locations'''</td>
| border color = black
        <td style="text-align: center; border-bottom: 1px solid brown;">{{#if: {{{locations|}}} | '''{{{Locations}}}''' }}</td>
| key 1  = Spell(s)
      </tr>
| value 1 = {{{spells|}}}
      <tr>
| key 2  = Skill(s)
      </tr>
| value 2 = {{{skills|}}}
    </table>
  | key 3  = Location(s)
    </div>
  | value 3 = {{{locations|}}}
</div>
| key 4  = Item(s) Dropped
| value 4 = {{{items|}}}
}}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
This is a template for enemies as they appear in {{DQB2}}. For appearances in other games, please use the corresponding enemy template.  
This is a template for enemies as they appear in {{DQB2}}. For appearances in other games, please use the corresponding enemy template.  
 
== Usage ==
<pre>
{{DQB2Enemy
|name={{Translation| | | }}
|Number=#
|family={{}}
|tameable=
|sprite=[[File:DQB2 MON .png]]
|hp=
|attack=
|defence=
|exp=
|spells=
|skills=
|items=[[|]]
|locations=[[]]
}}
</pre>
Note that all locations that it appears in should be logged (unless it is there in the form of an NPC, in which it should be stated before the use of the template). If it does not naturally respawn (see [[List of monsters in Dragon Quest Builders 2|here]]), then write an asterisk with a transcription (e.g. <nowiki>[[Furrowfield]] {{tt|*|Only in monster raids}}</nowiki>). If there are multiple versions with differing stats, a subheading should be written under either "Event" or "Large".
== Example ==
== Example ==
Writing the following text will show the template this way:
<pre>
{{DQB2Enemy
{{DQB2Enemy
|name=Slime
|name={{Translation|Slime|スライム|Suraimu}}
|kanji=????
|Number=#001
|romanji=suraimu
|family={{Slime}}
|sprite=[[File:DQB Slime.png]]
|tameable=Yes
|sprite=[[File:DQB2 MON 1.png]]
|hp=8
|hp=8
|attack=9
|attack=9
|defense=5
|defence=5
|item=[[List of raw materials in Dragon Quest Builders 2|Oil]] (★☆☆)
|exp=1
|tamable=Yes
|spells=None
|skills=None
|items=[[List of raw materials in Dragon Quest Builders 2|Oil]]
|locations=[[Furrowfield]]<br>[[Isle of Awakening]]{{tt|*|On grassy earth blocks; in an event at the beginning of the game}}<br>[[Explorer's shores]]{{tt|*|Blossom Bay}}
}}
}}
</pre>
{{DQB2Enemy
|name={{Translation|Slime|スライム|Suraimu}}
|Number=#001
|family={{Slime}}
|tameable=Yes
|sprite=[[File:DQB2 MON 1.png]]
|hp=8
|attack=9
|defence=5
|exp=1
|spells=None
|skills=None
|items=[[List of raw materials in Dragon Quest Builders 2|Oil]]
|locations=[[Furrowfield]]<br>[[Isle of Awakening]]{{tt|*|On grassy earth blocks; in an event at the beginning of the game}}<br>[[Explorer's shores]]{{tt|*|Blossom Bay}}
}}
[[Category:Enemy templates]]
</noinclude>

Latest revision as of 04:19, 13 April 2026

This is a template for enemies as they appear in Dragon Quest Builders 2. For appearances in other games, please use the corresponding enemy template.

Usage[edit source]

{{DQB2Enemy
|name={{Translation| | | }}
|Number=#
|family={{}}
|tameable=
|sprite=[[File:DQB2 MON .png]]
|hp=
|attack=
|defence=
|exp=
|spells=
|skills=
|items=[[|]]
|locations=[[]]
}}

Note that all locations that it appears in should be logged (unless it is there in the form of an NPC, in which it should be stated before the use of the template). If it does not naturally respawn (see here), then write an asterisk with a transcription (e.g. [[Furrowfield]] {{tt|*|Only in monster raids}}). If there are multiple versions with differing stats, a subheading should be written under either "Event" or "Large".

Example[edit source]

Writing the following text will show the template this way:

{{DQB2Enemy
|name={{Translation|Slime|スライム|Suraimu}}
|Number=#001
|family={{Slime}}
|tameable=Yes
|sprite=[[File:DQB2 MON 1.png]]
|hp=8
|attack=9
|defence=5
|exp=1
|spells=None
|skills=None
|items=[[List of raw materials in Dragon Quest Builders 2|Oil]]
|locations=[[Furrowfield]]<br>[[Isle of Awakening]]{{tt|*|On grassy earth blocks; in an event at the beginning of the game}}<br>[[Explorer's shores]]{{tt|*|Blossom Bay}}
}}
Slime (スライム, Suraimu?)
Dragon Quest Builders 2
Sprite
No.
#001
Family
Slime
Tameable
Yes
HP
8
Attack
9
Spell(s)
None
Skill(s)
None
Item(s) Dropped
Oil