Template:Infobox university: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Created page with '<includeonly>{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lig…'
 
mNo edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
{{#vardefine:liv1|{{colour|{{#if:{{{livery|}}}|{{{livery}}}|brick}}}}}}{{#vardefine:liv2|{{colour|{{#if:{{{headtext|}}}|{{{headtext}}}|white}}}}}}{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
|colspan=2 style="text-align: center; background:#{{#if:{{{livery|}}}|{{zhash|{{{livery}}}}}|CB4154}}; font-color: {{#ifeq:{{{headtext}}}|black|#000000|#ffffff}}; font-size: 100%"|<big class="fn org">{{#vardefine:type|university}}{{#if:{{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{latin| }}}| <br>''Latin:'' {{{latin}}} }}{{#if: {{{greek| }}}| <br>Greek: ''{{{greek}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}
|colspan=2 style="text-align: center; background:{{#var:liv1}}; color:{{#var:liv2}}; font-size: 100%"|<big class="fn org">{{#if:{{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{latin| }}}| <br>''Latin:'' {{{latin}}} }}{{#if: {{{greek| }}}| <br>Greek: ''{{{greek}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#vardefine:type|university}}
|-
|-
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}} }}[[{{#var:shire}}]][[Category:Universities in {{namefix 2|{{{county}}}}}]]}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}} }}[[{{#var:shire}}]][[Category:Universities in {{namefix 2|{{{bailiwick}}}}}]]}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}} }}[[{{#var:shire}}]][[Category:Universities in {{namefix 2|{{{territory}}}}}]]}}{{#if:{{{county 1|}}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}} }}[[{{namefix|{{{county 1}}}}}]][[Category:Universities in {{namefix 2|{{{county 1}}}}}]]}}{{#if:{{{county 2|}}}|, [[{{namefix|{{{county 2}}}}}]][[Category:Universities in {{namefix 2|{{{county 2}}}}}]]}}{{#if:{{{county 3|}}}|, [[{{namefix|{{{county 3}}}}}]][[Category:Universities in {{namefix 2|{{{county 3}}}}}]]}}{{#if:{{{county 4|}}}|, [[{{namefix|{{{county 4}}}}}]][[Category:Universities in {{namefix 2|{{{county 4}}}}}]]}}{{#ifeq:{{#expr:{{{foundation}}}<1914}}|1|[[Category:Universities founded before 1914]]|[[Category:Universities founded since 1914]]}}
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}{{#if:{{{city|}}}|{{#vardefine:city|{{{city}}} }}|{{#if:{{{town|}}}|{{#vardefine:city|{{{town}}} }} }}|{{#if:{{{village|}}}|{{#vardefine:city|{{{village}}} }} }} }}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}} }}{{#ifeq:{{#varexists:city}}|1||[[{{#var:shire}}]]}}[[Category:Universities in {{namefix 2|{{{county}}}}}]]}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}} }}{{#ifeq:{{#varexists:city}}|1||[[{{#var:shire}}]]}}[[Category:Universities in {{namefix 2|{{{bailiwick}}}}}]]}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}} }}{{#ifeq:{{#varexists:city}}|1||[[{{#var:shire}}]]}}[[Category:Universities in {{namefix 2|{{{territory}}}}}]]}}{{#if:{{{county 1|}}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}} }}[[{{namefix|{{{county 1}}}}}]][[Category:Universities in {{namefix 2|{{{county 1}}}}}]]}}{{#if:{{{county 2|}}}|, [[{{namefix|{{{county 2}}}}}]][[Category:Universities in {{namefix 2|{{{county 2}}}}}]]}}{{#if:{{{county 3|}}}|, [[{{namefix|{{{county 3}}}}}]][[Category:Universities in {{namefix 2|{{{county 3}}}}}]]}}{{#if:{{{county 4|}}}|, [[{{namefix|{{{county 4}}}}}]][[Category:Universities in {{namefix 2|{{{county 4}}}}}]]}}{{#ifeq:{{{founded}}}|{{#expr:{{{founded}}}/1}}|{{#ifeq:{{#expr:{{{founded}}}<1914}}|1|[[Category:Universities founded before 1914]]|[[Category:Universities founded since 1914]]}}}}
|-
|-
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
Line 8: Line 8:
|-
|-
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
{{#if:{{{city|}}}|{{{city}}}}}{{#if:{{{town|}}}|{{{town}}}}}{{#if:{{{village|}}}|{{{village}}}}} {{#ifeq:{{#varexist:shire}}|1|<br/>[[{{#var:shire}}]]}}
{{#ifeq:{{#varexists:city}}|1|[[{{#var:city}}]],<br />[[{{#var:shire}}]]}}
|- class="note"
|- class="note"
{{#if: {{{picture|}}} |
{{#if: {{{picture<includeonly>|</includeonly>}}} |
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}} [[File:{{{picture}}}|250px]]{{#if: {{{picture caption|}}}|<br />{{{picture caption|}}}}}}}
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}} [[File:{{{picture}}}|250px]]{{#if: {{{picture caption<includeonly>|</includeonly>}}}|<br />{{{picture caption<includeonly>|</includeonly>}}}}}}}
|-
|-
{{#if: {{{arms|}}} |
{{#if: {{{arms<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}}
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}}
{{!}} {{{arms}}} }}
{{!}} [[File:{{{arms}}}|center|80px]] }}
|-
|-
{{#if: {{{os grid ref|}}} |
{{#if: {{{founded<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Established:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Founded:
{{!}} {{{established}}} }}
{{!}} {{{founded}}} }}
|-
|-
{{#if: {{{chancellor|}}} |
{{#if: {{{chancellor<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Chancellor:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Chancellor:
{{!}} {{{chancellor}}} }}
{{!}} {{{chancellor}}} }}
|-
|-
{{#if: {{{campus|}}} |
{{#if: {{{campus<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Type:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Type:
{{!}} {{{campus}}} }}
{{!}} {{{campus}}} }}
|-
|-
{{#if: {{{colleges|}}} |
{{#if: {{{colleges<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} No. of colleges:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} No. of colleges:
{{!}} {{{colleges}}} }}
{{!}} {{{colleges}}} }}
|-
|-
{{#if: {{{faculty|}}} |
{{#if: {{{colleges<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Faculty:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} No. of students:
{{!}} {{{students}}} }}
|-
{{#if: {{{faculty<includeonly>|</includeonly>}}} |
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Faculty:
{{!}} {{{faculty}}} }}
{{!}} {{{faculty}}} }}
|-
|-
{{#if: {{{endowment|}}} |
{{#if: {{{endowment<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Endowment:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Endowment:
{{!}} {{{endowment}}} }}
{{!}} {{{endowment}}} }}
|-
|-
{{#if: {{{website|}}} |
{{#if: {{{website<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Website:
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Website:
{{!}} {{{website}}} }}
{{!}} {{{website}}} }}
|}</includeonly><noinclude>[[Category:Infoboxes|University]]
|-
| colspan="2" style="background: {{#var:liv1}}; color: {{#var:liv2}}; text-align: center;"|'''Location'''
|-
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Grid reference:
{{!}} {{#if:{{{os grid ref|}}}|{{map|{{{os grid ref}}}}} }} }}
|-
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Location:
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14|name={{#if: {{{name| }}}|{{{name}}}|{{PAGENAME}}}}}} }}
|-
{{#if: {{{town<includeonly>|</includeonly>}}} |
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} City:
{{!}} {{ifif|{{{city}}}}} }}
|-
{{#if: {{{town<includeonly>|</includeonly>}}} |
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Town:
{{!}} {{ifif|{{{town}}}}} }}
|-
{{#if: {{{village<includeonly>|</includeonly>}}} |
! style="background: {{#var:liv1}}; color: {{#var:liv2}};" {{!}} Village:
{{!}} {{ifif|{{{village}}}}} }}
|-
|}<!--Townsite code line-->{{#vardefine:town|{{extract name|{{#if:{{{city|}}}|{{{city}}}|{{#if:{{{town|}}}|{{{town}}}|{{#if:{{{village|}}}|{{{village}}}|0 }} }} }} }} }}{{town site|{{town fix|{{#var:town}}}}|{{#var:type}}}}<noinclude>[[Category:Infoboxes|University]]

Latest revision as of 17:06, 25 October 2024

Infobox university
[[File:{{{picture}}}|250px]]
{{{picture caption}}}
[[File:{{{arms}}}|center|80px]]
Founded: {{{founded}}}
Chancellor: {{{chancellor}}}
Type: {{{campus}}}
No. of colleges: {{{colleges}}}
No. of students: {{{students}}}
Faculty: {{{faculty}}}
Endowment: {{{endowment}}}
Website: {{{website}}}
Location
Grid reference:
Location: {{{latitude}}} {{{longitude}}}
City: {{{city}}}
Town: {{{town}}}
Village: {{{village}}}