Template:DQB2Villager: Difference between revisions

Day (talk | contribs)
mNo edit summary
Day (talk | contribs)
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="background-color: #0080ff; float: left; padding: 3px 3px 3px 3px; border-radius: 7px; width: 50%;" >
{| class="shrink-to-fit" style="padding: 0.5em; margin: 0.5em; border: 3px solid #0080ff; background: transparent; font-size: 90%; font-weight: regular; font-family: Trebuchet MS, Arial, Helvetica, sans-serif; border-radius: 5px; text-align:center"
<div style="padding-left: 5px; padding-right: 5px; height: 36px; line-height: 32px;">
|-
<table style="width: 100%"><tr>
| colspan=5 style="font-size: 135%; border-top: 1px dotted #0080ff; background-color: #0080ff; margin:-7px -7px -1px -6px; border-radius: 5px; line-height:22px;" | '''{{{Name|&nbsp;}}}'''
<td valign="top">{{#if: {{{Name|}}} | {{{Name}}} }}</td><td style="text-align:right">[[File:Dragon-quest-builders-2-logo.png|150px|link=Dragon Quest Builders 2]]</td>
|-
</tr></table>
| rowspan=5 style="background-color: transparent;" |{{{Image|&nbsp;}}}
</div>
| colspan=2 style="border-top: 1px dotted #1ACDFF; background-color:#1ACDFF; border-radius: 5px;" |'''[[Residents' Register]] Information'''
<div style="background-color: #FFFFFF; border-radius: 5px; padding: 3px;">
| colspan=2 style="border-top: 1px dotted #1ACDFF; background-color:#1ACDFF; border-radius: 5px;" |'''[[Room preference|Room Preferences]]'''
    <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">
|-
      <tr>
| width=15% style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Gender'''
        <td style="background-color: #000000; text-align: center;">{{#if: {{{Image|}}} | {{{Image}}} }}</td>
| width=25% style="background-color: white; font-weight: normal;" | {{{Gender}}}
      </tr>
| width=15% style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Size'''
    </table>
| width=25% style="background-color: white; font-weight: normal; color:#4EE6E3;" | {{{Size}}}
    <div style="padding: 3px; ">
|-
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
| style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Description'''
      <tr>
| style="background-color: white; font-weight: normal;" | {{{Description}}}
        <td colspan="4" style="background-color:#56DDE8; height: 24px; padding: 2px; width: 20%; text-align: center; border-right: 1px solid brown">'''[[Residents' Register]]'''</td>
| style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Fanciness'''
      </tr>
| style="background-color: white; font-weight: normal; color:#F0DA23;" | {{{Fanciness}}}
      <tr>
|-
    </table>
| style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Home Island'''
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
| style="background-color: white; font-weight: normal;" | {{{Home}}}
        <td style="background-color: #ffd11a; padding: 2px; width: 25%; text-align: center; border-right: 1px solid brown">'''Gender'''</td>
| style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Ambience'''
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Description'''</td>
| style="background-color: white; font-weight: normal; color:#ED555A;" | {{{Ambience}}}
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Home Island'''</td>
|-
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Uses Weapons?'''</td>
| style="border-top: 1px dotted #e1caac; background-color: #ffd11a; border-radius: 5px;" |'''Wields<br>Weapons'''
      </tr>
| style="background-color: white; font-weight: normal;" | {{{Weapon}}}
      <tr>
|}
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Gender|}}}|{{{Gender}}}|?}}</td>
{{clear}}</includeonly><noinclude>
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Description|}}}|{{{Description}}}|?}}</td>
This is a template for villagers as they appear in {{DQB2}}. For appearances in other games, please add the information as plain text or use the corresponding template (if one exists).
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Home|}}}|{{{Home}}}|?}}</td>
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Weapon|}}}|{{{Weapon}}}|?}}</td>
      </tr>
    </table>
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="3" style="background-color:#56DDE8; height: 24px; padding: 2px; width: 20%; text-align: center; border-right: 1px solid brown">'''[[Room preference|Room Preferences]]'''</td>
      </tr>
      <tr>
    </table>
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Size'''</td>
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Fanciness'''</td>
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Ambience'''</td>
      </tr>
      <tr>
        <td style="padding: 2px; width: 20%; height: 24px; color:#0080ff; text-align: center; border-right: 1px solid brown">{{#if:{{{Size|}}}|{{{Size}}}|?}}</td>
        <td style="padding: 2px; width: 20%; height: 24px; color:#ffd11a; text-align: center; border-right: 1px solid brown">{{#if:{{{Fanciness|}}}|{{{Fanciness}}}|?}}</td>
        <td style="padding: 2px; width: 20%; height: 24px; color:Tomato; text-align: center; border-right: 1px solid brown">{{#if:{{{Ambience|}}}|{{{Ambience}}}|?}}</td>
      </tr>
    </table>
    </div>
</div>
</div>
</div>{{clear}}</includeonly><noinclude>
This is a template for human villagers as they appear in {{DQB2}}. For appearances in other games, please use the corresponding template.
 
== Example ==
{{DQB2Villager
|Name={{Translation|'''Malroth'''|シドー|Shidō}}
|Image=[[File:DQB2_Villagers_Malroth.jpg]]
|Gender=Male
|Description=Enigma
|Home= -
|Weapon=Yes*<sup><br>(Only Malroth-exclusive weapons)</sup>
|Size=♥♥♥♥
|Fanciness=♥♥♥♥
|Ambience=Cool
}}


==Usage==
==Usage==
<pre>
<pre>
{{DQB2Villager
{{DQB2Villager
|Name={{Translation|'''  '''| | }}
|Name={{Translation| | | }}
|Image=[[File: ]]
|Image=[[File: |130px]]
|Gender=
|Gender=
|Description=
|Description=
Line 82: Line 43:
}}
}}
</pre>
</pre>
It's recommended that images for this template make around 130 pixels wide. (Simply add "|130px" next to the file name.)
==Example==
Writing the following text will show the template this way:
<pre>{{DQB2Villager
|Name={{Translation|Malroth|シドー|Shidō}}
|Image=[[File:DQB2_Villagers_Malroth.jpg|130px]]
|Gender=Male
|Description=Enigma
|Home= -
|Weapon=Yes*<br><small>(Only Malroth-exclusive weapons)</small>
|Size=❤︎❤︎❤︎❤︎
|Fanciness=❤︎❤︎❤︎❤︎
|Ambience=Cool
}}</pre>
{{DQB2Villager
|Name={{Translation|Malroth|シドー|Shidō}}
|Image=[[File:DQB2_Villagers_Malroth.jpg|130px]]
|Gender=Male
|Description=Enigma
|Home= -
|Weapon=Yes*<br><small>(Only Malroth-exclusive weapons)</small>
|Size=❤︎❤︎❤︎❤︎
|Fanciness=❤︎❤︎❤︎❤︎
|Ambience=Cool
}}


[[Category:Character templates|{{PAGENAME}}]]
[[Category:Character templates]]
</noinclude>
</noinclude>