Template:DQB2Villager: Difference between revisions

Day (talk | contribs)
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="background-color: #0080ff; float: left; padding: 3px 3px 3px 3px; border-radius: 7px; width: 50%;" >
{| 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; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;"
<div style="padding-left: 5px; padding-right: 5px; height: 36px; line-height: 32px;">
|-
<table style="width: 100%"><tr>
| colspan=5 style="text-align: center; font-size: 135%; border-top: 1px dotted #0080ff; background-color: #0080ff; margin:-7px -7px -1px -6px; -webkit-border-radius: 5px;border-radius: 5px; line-height:22px;" | '''{{#if:{{{Name|}}}|{{{Name}}}}}'''
<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="text-align:center; background-color: transparent; font-weight: normal;" |{{#if:{{{Image|}}}|{{{Image}}}|}}
</div>
| colspan=2 style="text-align:center; border-top: 1px dotted #56DDE8; background-color:#56DDE8; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Resident's Register information'''
<div style="background-color: #FFFFFF; border-radius: 5px; padding: 3px;">
| colspan=2 style="text-align:center; border-top: 1px dotted #56DDE8; background-color:#56DDE8; -moz-border-radius: 5px; -webkit-border-radius: 5px;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="text-align:center; border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Gender'''
        <td style="background-color: #000000; text-align: center;">{{#if: {{{Image|}}} | {{{Image}}} }}</td>
| width=25% style="text-align:left; background-color: white; font-weight: normal;" | {{{Gender}}}
      </tr>
| width=15% style="text-align:center; border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Size'''
    </table>
| width=25% style="text-align:center; background-color: white; font-weight: normal; color:#0080ff;" | {{{Size}}}
    <div style="padding: 3px; ">
|-
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
| style="text-align:center;border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Description'''
      <tr>
| style="text-align:left; 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="text-align:center; border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Fanciness'''
      </tr>
| style="text-align:center; background-color: white; font-weight: normal; color:#ffd11a;" | {{{Fanciness}}}
      <tr>
|-
    </table>
| style="text-align:center;border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Home island'''
    <table style="border: 1px solid brown; border-radius: 3px; width: 100%;" cellspacing="0" cellpadding="0">
| style="text-align:left; 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="text-align:center; border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Ambience'''
        <td style="background-color: #ffd11a; padding: 2x; width: 25%; text-align: center; border-right: 1px solid brown;">'''Description'''</td>
| style="text-align:center; background-color: white; font-weight: normal; color:Tomato;" | {{{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="text-align:center;border-top: 1px dotted #e1caac; background-color: #ffd11a; -moz-border-radius: 5px; -webkit-border-radius: 5px;border-radius: 5px;" |'''Weapon usage'''
      </tr>
| style="text-align:left; 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>
|
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Description|}}}|{{{Description}}}|?}}</td>
|}
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Home|}}}|{{{Home}}}|?}}</td>
{{clear}}</includeonly><noinclude>
        <td style="padding: 2px; width: 20%; height: 24px; text-align: center; border-right: 1px solid brown">{{#if:{{{Weapon|}}}|{{{Weapon}}}|?}}</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).
      </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==
Line 82: Line 45:
}}
}}
</pre>
</pre>
==Example==
Writing the following text will show the template this way:
<pre>{{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
}}</pre>
{{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
}}


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