Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox university: Difference between revisions

Template page
No edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
<includeonly>
    <table style="width: 100%; border: none;">
<table class="infobox" style="width:280px; float:right; font-size:90%; line-height:1.4em; border:1px solid #aaa; background:#f9f9f9; padding:0.4em;">
        <tr>
  {{#if:{{{name|}}}|
            <th colspan="2" style="background: #e9e9e9; text-align: center;">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}}}}</th>
    <tr>
        </tr>
      <th colspan="2" style="text-align:center; font-size:125%; background:#e6e6e6;">{{{name}}}</th>
        <tr>
    </tr>
            <td colspan="2" style="text-align: center;">
  }}
                {{#if: {{{logo|}}}
 
                    | [[File:{{{logo}}}|thumb|150px|center]] }}
  {{#if:{{{image|}}}|
            </td>
    <tr>
        </tr>
      <td colspan="2" style="text-align:center;">[[File:{{{image}}}|{{{image_size|250px}}}]]</td>
        {{#if: {{{logo_caption|}}}
    </tr>
            | <tr>
  }}
                <td colspan="2" style="text-align: center; font-style: italic;">{{{logo_caption}}}</td>
 
            </tr>
  {{#if:{{{caption|}}}|
        }}
    <tr>
        {{#if: {{{motto|}}}
      <td colspan="2" style="text-align:center; font-size:90%; font-style:italic;">{{{caption}}}</td>
            | <tr>
    </tr>
                <th style="text-align: left;">Motto</th>
  }}
                <td>{{{motto}}}</td>
 
            </tr>
  {{#if:{{{motto|}}}|
        }}
    <tr>
        {{#if: {{{established|}}}
      <td colspan="2" style="text-align:center; font-style:italic;">{{{motto}}}</td>
            | <tr>
    </tr>
                <th style="text-align: left;">Established</th>
  }}
                <td>{{{established}}}</td>
 
            </tr>
  {{#if:{{{established|}}}|
        }}
    <tr>
        {{#if: {{{type|}}}
      <th scope="row">Established</th>
            | <tr>
      <td>{{{established}}}</td>
                <th style="text-align: left;">Type</th>
    </tr>
                <td>{{{type}}}</td>
  }}
            </tr>
 
        }}
  {{#if:{{{type|}}}|
        {{#if: {{{endowment|}}}
    <tr>
            | <tr>
      <th scope="row">Type</th>
                <th style="text-align: left;">Endowment</th>
      <td>{{{type}}}</td>
                <td>{{{endowment}}}</td>
    </tr>
            </tr>
  }}
        }}
 
        {{#if: {{{president|}}}
  {{#if:{{{affiliation|}}}|
            | <tr>
    <tr>
                <th style="text-align: left;">President</th>
      <th scope="row">Affiliation</th>
                <td>{{{president}}}</td>
      <td>{{{affiliation}}}</td>
            </tr>
    </tr>
        }}
  }}
        {{#if: {{{students|}}}
 
            | <tr>
  {{#if:{{{rector|}}}|
                <th style="text-align: left;">Students</th>
    <tr>
                <td>{{{students}}}</td>
      <th scope="row">Rector</th>
            </tr>
      <td>{{{rector}}}</td>
        }}
    </tr>
        {{#if: {{{undergraduates|}}}
  }}
            | <tr>
 
                <th style="text-align: left;">Undergraduates</th>
  {{#if:{{{president|}}}|
                <td>{{{undergraduates}}}</td>
    <tr>
            </tr>
      <th scope="row">President</th>
        }}
      <td>{{{president}}}</td>
        {{#if: {{{postgraduates|}}}
    </tr>
            | <tr>
  }}
                <th style="text-align: left;">Postgraduates</th>
 
                <td>{{{postgraduates}}}</td>
  {{#if:{{{students|}}}|
            </tr>
    <tr>
        }}
      <th scope="row">Students</th>
        {{#if: {{{faculty|}}}
      <td>{{{students}}}</td>
            | <tr>
    </tr>
                <th style="text-align: left;">Faculty</th>
  }}
                <td>{{{faculty}}}</td>
 
            </tr>
  {{#if:{{{undergrad|}}}|
        }}
    <tr>
        {{#if: {{{location|}}}
      <th scope="row">Undergraduates</th>
            | <tr>
      <td>{{{undergrad}}}</td>
                <th style="text-align: left;">Location</th>
    </tr>
                <td>{{{location}}}</td>
  }}
            </tr>
 
        }}
  {{#if:{{{postgrad|}}}|
        {{#if: {{{campus|}}}
    <tr>
            | <tr>
      <th scope="row">Postgraduates</th>
                <th style="text-align: left;">Campus</th>
      <td>{{{postgrad}}}</td>
                <td>{{{campus}}}</td>
    </tr>
            </tr>
  }}
        }}
 
        {{#if: {{{colors|}}}
  {{#if:{{{city|}}}{{{state|}}}{{{country|}}}|
            | <tr>
    <tr>
                <th style="text-align: left;">Colors</th>
      <th scope="row">Location</th>
                <td>{{{colors}}}</td>
      <td>{{#if:{{{city|}}}|{{{city}}}, }}{{#if:{{{state|}}}|{{{state}}}, }}{{{country|}}}</td>
            </tr>
    </tr>
        }}
  }}
        {{#if: {{{nickname|}}}
 
            | <tr>
  {{#if:{{{campus|}}}|
                <th style="text-align: left;">Nickname</th>
    <tr>
                <td>{{{nickname}}}</td>
      <th scope="row">Campus</th>
            </tr>
      <td>{{{campus}}}</td>
        }}
    </tr>
        {{#if: {{{website|}}}
  }}
            | <tr>
 
                <th style="text-align: left;">Website</th>
  {{#if:{{{language|}}}|
                <td>[{{{website}}} {{{website}}}]</td>
    <tr>
            </tr>
      <th scope="row">Language</th>
        }}
      <td>{{{language}}}</td>
        {{#if: {{{affiliations|}}}
    </tr>
            | <tr>
  }}
                <th style="text-align: left;">Affiliations</th>
 
                <td>{{{affiliations}}}</td>
  {{#if:{{{colours|}}}|
            </tr>
    <tr>
        }}
      <th scope="row">Colours</th>
    </table>
      <td>{{{colours}}}</td>
</div>  
    </tr>
  }}
 
  {{#if:{{{website|}}}|
    <tr>
      <th scope="row">Website</th>
      <td>[{{{website}}} {{{website}}}]</td>
    </tr>
  }}
 
</table>
</includeonly>
<noinclude>
<noinclude>
{{Infobox university
==Usage==
| name             = University of Example
<pre>{{Infobox university
| logo            = University_logo.png
| name         = Example University
| logo_caption    = Official logo
| image        = ExampleBuilding.jpg
| motto           = "Knowledge is Power"
| image_size  = 250px
| established     = 1831
| caption      = Main campus building
| type             = Public university
| motto       = "Knowledge is power"
| endowment        = $1 billion
| established = 1900
| president       = Dr. Jane Doe
| type         = Public
| students         = 30,000
| affiliation  = Ministry of Education
| undergraduates  = 20,000
| rector      = Dr. John Doe
| postgraduates    = 10,000
| president   = Prof. Jane Smith
| faculty          = 1,500
| students     = 25,000
| location        = Example City, Example Country
| undergrad    = 15,000
| campus           = Urban
| postgrad    = 10,000
| colors          = Crimson and White
| city        = Baku
| nickname        = The Crimson Scholars
| state        = Absheron
| website         = https://www.exampleuniversity.edu
| country      = Azerbaijan
| affiliations    = [[Association of Universities]], [[Research Association]]
| campus       = Urban
| language    = Azerbaijani, English
| colours      = Blue and White
| website     = https://www.example.edu
}}
}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 04:02, 3 June 2025


Usage

{{Infobox university
| name         = Example University
| image        = ExampleBuilding.jpg
| image_size   = 250px
| caption      = Main campus building
| motto        = "Knowledge is power"
| established  = 1900
| type         = Public
| affiliation  = Ministry of Education
| rector       = Dr. John Doe
| president    = Prof. Jane Smith
| students     = 25,000
| undergrad    = 15,000
| postgrad     = 10,000
| city         = Baku
| state        = Absheron
| country      = Azerbaijan
| campus       = Urban
| language     = Azerbaijani, English
| colours      = Blue and White
| website      = https://www.example.edu
}}
Contents