Jump to content

Template:Political party: Difference between revisions

From nUSA Wiki
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 4: Line 4:


     <group class="infobox-group">
     <group class="infobox-group">
        <header class="infobox-header">{{#if:{{Has short description}}|{{Short description}}|Political party}}</header>
         <data source="slogan"><label>Party Slogan</label></data>
         <data source="name"><label>{{#if:{{Has short description}}|Party Name|Party Name}}</label></data>
         <data source="founder"><label>Founder</label></data>
         <data source="founder"><label>Founder</label></data>
         <data source="founded"><label>Year Founded</label></data>
         <data source="founded">
            <label>Founded</label>
            {{#invoke:TimeAgo|timeAgo|{{{founded}}}}}
        </data>
         <data source="headquarters"><label>Headquarters</label></data>
         <data source="headquarters"><label>Headquarters</label></data>
         <data source="ideology"><label>Political Ideology</label></data>
         <data source="ideology"><label>Political Ideology</label></data>
         <data source="position"><label>Political Position</label></data>
         <data source="position"><label>Political Position</label></data>
        <data source="membership"><label>Number of Members</label></data>
        <data source="colors">
            <label>Party Colors</label>
            <div style="width: 50px; height: 25px; background-color: {{#ifeq:{{{colors}}}|Red|#FF0000|{{{colors}}}}};"></div>
        </data>
         <data source="international"><label>International Affiliation</label></data>
         <data source="international"><label>International Affiliation</label></data>
        <data source="colors"><label>Party Colors</label></data>
        <data source="slogan"><label>Party Slogan</label></data>
        <data source="membership"><label>Number of Members</label></data>
     </group>
     </group>


Line 27: Line 31:
     <group class="infobox-group collapsible">
     <group class="infobox-group collapsible">
         <header class="infobox-header">Legislative Seats</header>
         <header class="infobox-header">Legislative Seats</header>
 
         <data source="senate"><label>Senate</label></data>
         <!-- Use divs for layout instead of tables -->
        <data source="senate_current_and_total"><label>Seats (Current / Total)</label></data>
        <div style="display: flex; justify-content: space-between;">
         <data source="house"><label>House of Representatives</label></data>
            <div style="flex: 1;"><label>Senate</label></div>
        <data source="house_current_and_total"><label>Seats (Current / Total)</label></data>
            <div style="flex: 1; text-align: right;"><data source="senate">1</data></div>
         <data source="council"><label>D.C. City Council</label></data>
        </div>
        <data source="council_current_and_total"><label>D.C. City Council (Current / Total)</label></data>
       
         <div style="display: flex; justify-content: space-between;">
            <div style="flex: 1;"><label>House of Representatives</label></div>
            <div style="flex: 1; text-align: right;"><data source="house">1</data></div>
        </div>
 
         <div style="display: flex; justify-content: space-between;">
            <div style="flex: 1;"><label>State Governors</label></div>
            <div style="flex: 1; text-align: right;"><data source="governors">1</data></div>
        </div>
 
     </group>
     </group>



Latest revision as of 02:34, 14 January 2025