Difference between revisions of "Template:Infobox character"

From Summertime Saga Wiki
Jump to: navigation, search
m (1 revision imported)
 
(44 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<infobox>
+
<onlyinclude><table style="float:right; clear:right; margin:0.5em 0 1.3em 1.4em; border-spacing:4px; background:#3F4454; color:white; text-align:left; font-size:small; line-height:1.4em; width:200px;">
<title source="name">
+
<tr>
    <default>{{PAGENAME}}</default>
+
<th colspan="2" style="text-align:center; font-size:x-large; background:#3F4562; border:thin solid #8B94AA; padding:3px 2px; line-height:1.4em;">{{#if:{{{color|}}}|{{font color|{{{color}}}|{{{name|Character full name}}}}}|{{{name|Character full name}}}}}</th>
</title>
+
</tr>
<image source="image">
+
{{#if:{{{image|}}}|
    <caption source="imagecaption" />
+
<tr>
</image>
+
<td colspan="2" style="text-align:center;">[[File:{{{image}}}|200px|alt="{{PAGENAME}} illustration"]]</td>
<group>
+
</tr>
    <data source="relatives"><label>Relatives</label><default>''Unknown''</default></data>
+
}}
</group>
+
{{#if:{{{gender|}}}{{{hair|}}}{{{eyes|}}}|
    <group> 
+
<tr>
        <header>Information</header>
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Appearance</th>
        <data source="gender"><label>Gender</label><default>''Unknown''</default></data>
+
</tr>
        <data source="eyes"><label>Eye color</label><default>''Unknown''</default></data>
+
{{#if:{{{gender|}}}|
        <data source="marital"><label>Marital status</label><default>''Unknown''</default></data>
+
<tr>
    </group>
+
<th scope="row" style="width:69px; vertical-align:top;">Gender</th>
    <group>
+
<td>{{{gender}}}</td>
        <header>Location</header>
+
</tr>
        <data source="Day"><label>Day</label><default>''Unknown''</default></data>
+
}}
        <data source="Night"><label>Night</label><default>''Unknown''</default></data>
+
{{#if:{{{hair|}}}|
    </group>
+
<tr>
   
+
<th scope="row" style="width:69px; vertical-align:top;">Hair color</th>
</infobox>
+
<td>{{{hair}}}</td>
 
+
</tr>
<noinclude>
+
}}
{{documentation}}
+
{{#if:{{{eyes|}}}|
</noinclude>
+
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Eye color</th>
 +
<td>{{{eyes}}}</td>
 +
</tr>
 +
}}
 +
}}
 +
{{#if:{{{pregnancy|}}}{{{dating|}}}{{{relatives|}}}|
 +
<tr>
 +
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Information</th>
 +
</tr>
 +
{{#if:{{{relatives|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Relatives</th>
 +
<td>{{{relatives}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{dating|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Dating</th>
 +
<td>{{{dating}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{pregnancy|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Pregnancy</th>
 +
<td>{{{pregnancy}}}</td>
 +
</tr>
 +
}}
 +
}}
 +
{{#if:{{{morning|}}}{{{afternoon|}}}{{{evening|}}}|
 +
<tr>
 +
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Schedule</th>
 +
</tr>
 +
{{#if:{{{morning|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Morning</th>
 +
<td>{{{morning}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{afternoon|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Afternoon</th>
 +
<td>{{{afternoon}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{evening|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Evening</th>
 +
<td>{{{evening}}}</td>
 +
</tr>
 +
}}
 +
}}
 +
</table></onlyinclude><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 21:25, 12 September 2023

Character full name