Template:Infobox Position: Difference between revisions

Undo revision 955 by Parvej Husen Talukder (talk)
Tag: Undo
No edit summary
Line 1: Line 1:
<div class="infobox vcard" style="width: 22em; border: 1px solid #FF5722; margin: 10px; float: right; background: #f9f9f9;">
<infobox>
    <title source="name">
        <default>{{PAGENAME}}</default>
    </title>


<table style="width:100%; border-collapse: collapse;">
    <!-- Image -->
    <image source="image">
        <caption source="caption">
            <default></default>
        </caption>
    </image>


<!-- Title -->
    <!-- Header Fields -->
<tr>
    <data source="holder" label="Holder" />
<th colspan="2" style="background:#FF5722; color:white; text-align:center; font-size:16px; padding:6px;">
    <data source="time" label="Time" />
{{{name|{{PAGENAME}}}}}
</th>
</tr>


<!-- Image -->
    <!-- Official Information -->
{{#if:{{{image|}}}|
    <group label="Official Information">
<tr>
<td colspan="2" style="text-align:center;">
[[File:{{{image}}}|250px]]
</td>
</tr>
}}


<!-- Caption -->
        <data source="style" label="Style" />
{{#if:{{{caption|}}}|
        <data source="type" label="Type" />
<tr>
        <data source="abbreviation" label="Abbreviation" />
<td colspan="2" style="text-align:center; font-style:italic; padding:4px;">
        <data source="member_of" label="Member of" />
{{{caption}}}
        <data source="office" label="Office" />
</td>
        <data source="appointer" label="Appointer" />
</tr>
        <data source="first_holder" label="First holder" />
}}
        <data source="succession" label="Succession" />
        <data source="salary" label="Salary" />


<!-- Holder -->
    </group>
{{#if:{{{holder|}}}|
<tr>
<th colspan="2" style="background:#ff7043; color:white; text-align:center;">
{{{holder}}}
</th>
</tr>
}}


<!-- Time -->
    <!-- Additional Information -->
{{#if:{{{time|}}}|
    <group label="Additional Information">
<tr>
<td colspan="2" style="text-align:center;">
{{{time}}}
</td>
</tr>
}}


<!-- Section header -->
        <data source="known_for" label="Known for" />
<tr>
        <data source="notable_works" label="Notable works" />
<th colspan="2" style="background:#FF5722; color:white; text-align:center;">
        <data source="website" label="Website" />
Official Information
</th>
</tr>


<!-- Fields -->
    </group>
{{#if:{{{style|}}}|
<tr><th style="text-align:left;">Style</th><td>{{{style}}}</td></tr>
}}


{{#if:{{{type|}}}|
</infobox>
<tr><th style="text-align:left;">Type</th><td>{{{type}}}</td></tr>
}}


{{#if:{{{abbreviation|}}}|
<noinclude>
<tr><th style="text-align:left;">Abbreviation</th><td>{{{abbreviation}}}</td></tr>
{{Documentation}}
}}
</noinclude>
 
{{#if:{{{member_of|}}}|
<tr><th style="text-align:left;">Member of</th><td>{{{member_of}}}</td></tr>
}}
 
{{#if:{{{office|}}}|
<tr><th style="text-align:left;">Office</th><td>{{{office}}}</td></tr>
}}
 
{{#if:{{{appointer|}}}|
<tr><th style="text-align:left;">Appointer</th><td>{{{appointer}}}</td></tr>
}}
 
{{#if:{{{first_holder|}}}|
<tr><th style="text-align:left;">First holder</th><td>{{{first_holder}}}</td></tr>
}}
 
{{#if:{{{succession|}}}|
<tr><th style="text-align:left;">Succession</th><td>{{{succession}}}</td></tr>
}}
 
{{#if:{{{salary|}}}|
<tr><th style="text-align:left;">Salary</th><td>{{{salary}}}</td></tr>
}}
 
{{#if:{{{known_for|}}}|
<tr><th style="text-align:left;">Known for</th><td>{{{known_for}}}</td></tr>
}}
 
{{#if:{{{notable_works|}}}|
<tr><th style="text-align:left;">Notable works</th><td>{{{notable_works}}}</td></tr>
}}
 
{{#if:{{{website|}}}|
<tr><th style="text-align:left;">Website</th><td>{{{website}}}</td></tr>
}}
 
</table>
</div>