Template:Infobox politician: Difference between revisions

From Bhikitia Pro, An open encyclopedia
Blossom (talk | contribs)
Created page with "<div class="infobox vcard" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;"> <table style="width: 100%; border: none;"> <!-- Name and Image --> <tr> <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 16px; padding: 5px;">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}}}}</th> </tr> <tr> <td colspan="2" style="text-align..."
 
Blossom (talk | contribs)
No edit summary
Tag: Manual revert
 
(9 intermediate revisions by 2 users not shown)
Line 17: Line 17:
         }}
         }}


         <!-- Position as a Header -->
         <!-- Office 1 -->
         {{#if: {{{position|}}}
         {{#if: {{{office|}}}
             | <tr>
             | <tr>
                 <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 18px; padding: 5px;">{{{position}}}</th>
                 <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 18px; padding: 5px;">{{{office}}}</th>
            </tr>
        }}
        {{#if: {{{office_holder_since|}}} |
            <tr>
                <td style="text-align: center; font-size: 13px;">{{{office_holder_since}}}</td>
                <td style="text-align: center; font-size: 13px;">{{{office_holder_until}}}</td>
            </tr>
        }}
        {{#if: {{{predecessor|}}}
            | <tr>
                <th style="text-align: left;">Predecessor</th>
                <td>{{{predecessor}}}</td>
            </tr>
        }}
        {{#if: {{{successor|}}}
            | <tr>
                <th style="text-align: left;">Successor</th>
                <td>{{{successor}}}</td>
            </tr>
        }}
 
        <!-- Office 2 -->
        {{#if: {{{office2|}}}
            | <tr>
                <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 18px; padding: 5px;">{{{office2}}}</th>
            </tr>
        }}
        {{#if: {{{office_holder_since2|}}} |
            <tr>
                <td style="text-align: center; font-size: 13px;">{{{office_holder_since2}}}</td>
                <td style="text-align: center; font-size: 13px;">{{{office_holder_until2}}}</td>
            </tr>
        }}
        {{#if: {{{predecessor2|}}}
            | <tr>
                <th style="text-align: left;">Predecessor</th>
                <td>{{{predecessor2}}}</td>
            </tr>
        }}
        {{#if: {{{successor2|}}}
            | <tr>
                <th style="text-align: left;">Successor</th>
                <td>{{{successor2}}}</td>
            </tr>
        }}
 
        <!-- Office 3 -->
        {{#if: {{{office3|}}}
            | <tr>
                <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 18px; padding: 5px;">{{{office3}}}</th>
            </tr>
        }}
        {{#if: {{{office_holder_since3|}}} |
            <tr>
                <td style="text-align: center; font-size: 13px;">{{{office_holder_since3}}}</td>
                <td style="text-align: center; font-size: 13px;">{{{office_holder_until3}}}</td>
            </tr>
        }}
        {{#if: {{{predecessor3|}}}
            | <tr>
                <th style="text-align: left;">Predecessor</th>
                <td>{{{predecessor3}}}</td>
            </tr>
        }}
        {{#if: {{{successor3|}}}
            | <tr>
                <th style="text-align: left;">Successor</th>
                <td>{{{successor3}}}</td>
             </tr>
             </tr>
         }}
         }}


         <!-- Term Start and End in one line -->
         <!-- Office 4 -->
         {{#if: {{{office_holder_since|}}} |  
         {{#if: {{{office4|}}}
            | <tr>
                <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 18px; padding: 5px;">{{{office4}}}</th>
            </tr>
        }}
        {{#if: {{{office_holder_since4|}}} |  
             <tr>
             <tr>
                 <td style="text-align: center; font-size: 16px;">Term Start: {{{office_holder_since}}}</td>
                 <td style="text-align: center; font-size: 13px;">{{{office_holder_since4}}}</td>
                 <td style="text-align: center; font-size: 16px;">Term End: {{{office_holder_until}}}</td>
                 <td style="text-align: center; font-size: 13px;">{{{office_holder_until4}}}</td>
            </tr>
        }}
        {{#if: {{{predecessor4|}}}
            | <tr>
                <th style="text-align: left;">Predecessor</th>
                <td>{{{predecessor4}}}</td>
            </tr>
        }}
        {{#if: {{{successor4|}}}
            | <tr>
                <th style="text-align: left;">Successor</th>
                <td>{{{successor4}}}</td>
             </tr>
             </tr>
         }}
         }}


        <!-- Personal Info Section -->
         <tr>
         <tr>
             <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 16px; padding: 5px;">Personal Info</th>
             <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 16px; padding: 5px;">Personal Info</th>
Line 40: Line 124:
             | <tr>
             | <tr>
                 <th style="text-align: left;">Born</th>
                 <th style="text-align: left;">Born</th>
                 <td>{{{birth_date}}} in {{{birth_place}}}</td>
                 <td>{{{birth_date}}} </br> {{{birth_place}}}</td>
             </tr>
             </tr>
         }}
         }}
Line 46: Line 130:
             | <tr>
             | <tr>
                 <th style="text-align: left;">Died</th>
                 <th style="text-align: left;">Died</th>
                 <td>{{{death_date}}} in {{{death_place}}}</td>
                 <td>{{{death_date}}} </br> {{{death_place}}}</td>
             </tr>
             </tr>
         }}
         }}
Line 59: Line 143:
                 <th style="text-align: left;">Occupation</th>
                 <th style="text-align: left;">Occupation</th>
                 <td>{{{occupation}}}</td>
                 <td>{{{occupation}}}</td>
            </tr>
        }}
{{#if: {{{Party|}}}
            | <tr>
                <th style="text-align: left;">Political Party</th>
                <td>{{{Party}}}</td>
             </tr>
             </tr>
         }}
         }}
Line 99: Line 189:
     </table>
     </table>
</div>
</div>
<noinclude>
<noinclude>
{{Infobox politician
{{Infobox politician
Line 105: Line 194:
| image            = Example_Image.jpg
| image            = Example_Image.jpg
| caption          = Example caption text
| caption          = Example caption text
| position          = Example Position
| office            = Example Position
| office_holder_since = January 1, 1950
| office_holder_since = January 1, 1950
| office_holder_until = December 31, 1960
| office_holder_until = December 31, 1960
| predecessor      = Previous Officeholder
| predecessor      = Previous Officeholder
| successor        = Next Officeholder
| successor        = Next Officeholder
| birth_date        = January 1, 1900
| office2          = Second Position
| birth_place      = Example birth place
| office_holder_since2 = January 1, 1961
| nationality      = Example nationality
| office_holder_until2 = December 31, 1970
| occupation        = Politician
| predecessor2      = Previous Second Position
| alma_mater        = Example University
| successor2        = Next Second Position
| spouse            = Example Spouse
| office3          = Third Position
| children          = 2
| office_holder_since3 = January 1, 1971
| notable_works    = Example works
| office_holder_until3 = December 31, 1980
| awards            = Example awards
| predecessor3      = Previous Third Position
| website          = https://example.com
| successor3        = Next Third Position
| office4          = Fourth Position
| office_holder_since4 = January 1, 1981
| office_holder_until4 = December 31, 1990
| predecessor4      = Previous Fourth Position
| successor4        = Next Fourth Position
| birth_date        = January 1, 1920
| birth_place      = Birth City
| death_date        = January 1, 2000
| death_place      = Death City
| nationality      = Nationality
| occupation        = Occupation
| alma_mater        = Alma Mater
| children          = Children Info
| spouse            = Spouse Info
| notable_works    = Notable Works
| awards            = Awards Info
| website          = Website Info
}}
}}
</noinclude>
</noinclude>

Latest revision as of 17:30, 10 November 2024

Infobox politician
Personal Info
Example Officeholder
File:Example Image.jpg
Example caption text
Example Position
January 1, 1950 December 31, 1960
Predecessor Previous Officeholder
Successor Next Officeholder
Second Position
January 1, 1961 December 31, 1970
Predecessor Previous Second Position
Successor Next Second Position
Third Position
January 1, 1971 December 31, 1980
Predecessor Previous Third Position
Successor Next Third Position
Fourth Position
January 1, 1981 December 31, 1990
Predecessor Previous Fourth Position
Successor Next Fourth Position
Personal Info
Born January 1, 1920
Birth City
Died January 1, 2000
Death City
Nationality Nationality
Occupation Occupation
Alma Mater Alma Mater
Children Children Info
Spouse Spouse Info
Notable Works Notable Works
Awards Awards Info
Website Website Info