Difference between revisions of "Template:Collegebox"

From QBWiki
Jump to navigation Jump to search
(Standardized this template with Template:Highschoolteam)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| border=1 cellpadding=2 cellspacing=0 width=150 class="toccolours" style="float: right; margin: 0 0 0.75em 0.75em; background: #f9f9f9; border: 1px #c6c6c6 solid; border-collapse: collapse; font-size: 85%;"
+
<includeonly>
 
+
{| border=1 cellpadding=2 cellspacing=0 width=310 class="toccolours" style="float: right; margin: 0 0 0.75em 0.75em; background: #f9f9f9; border: 1px #c6c6c6 solid; border-collapse: collapse; font-size: 85%;"
| align="center" colspan="2"|
+
|-
{| border=0 align=right cellpadding=4 cellspacing=4 width=310 style="background:#f9f9f9; text-align:center;"
+
|align="center" colspan="2" | <font style="font-size:9pt">'''{{{College Name}}}'''</font>
| width="160px"| <font style="font-size:9pt">'''{{{College Name}}}'''</font>
 
 
|-
 
|-
! align=center colspan=2 | [[Image:{{{Image}}}]]
+
{{#if:{{{Image|}}}|
|}
+
{{!-}}
 +
! align=center colspan=2{{!}} [[Image:{{{Image}}}|200px]]
 +
{{!-}}
 +
}}
 
|-
 
|-
 
! align=center colspan=2| Location: <br> {{{citystate}}}
 
! align=center colspan=2| Location: <br> {{{citystate}}}
 
|-
 
|-
|'''Current President or Coach'''|| {{{president}}}
+
{{#if:{{{president|}}}|
 +
{{!-}}
 +
{{!}}'''Current President or Coach'''{{!!}} {{{president}}}
 +
{{!-}}
 +
}}
 
|-
 
|-
 
|'''National championships'''|| {{{nats|none}}}
 
|'''National championships'''|| {{{nats|none}}}
 
|-
 
|-
 +
|'''NAQT Page'''|| [https://www.naqt.com/stats/school/search.jsp?PASSBACK=SCHOOL_SEARCH&name={{#replace:{{#replace:{{{College Name}}}|-|+}}| |+}}&city=&state=&country= link]
 +
|-
 +
{{if|test={{{website|}}}|then=
 +
{{!-}}
 +
{{!}}'''Website'''{{!!}} [{{{website}}} link]
 +
{{!-}}
 +
}}
 
|-
 
|-
|}
+
|}[[Category: College clubs]]</includeonly><!--
<includeonly>[[Category: College clubs]]</includeonly>
+
--><noinclude>
 +
 
 +
==Usage==
 +
<pre style="overflow:auto">
 +
{{Collegebox|College Name = DePaul University
 +
|Image = DePaul Blue Demons Script Logo.png
 +
|citystate = Chicago, IL
 +
|president = Kyle Asta
 +
|nats = None
 +
|website = https://www.depaul.edu/
 +
|}}
 +
</pre>
 +
 
 +
==Output==
 +
{{Collegebox|College Name = DePaul University
 +
|Image = DePaul Blue Demons Script Logo.png
 +
|citystate = Chicago, IL
 +
|president = Kyle Asta
 +
|nats = None
 +
|website = https://www.depaul.edu/
 +
| }}
 +
 
 +
==Parameters==
 +
* '''College Name''': Full name of school
 +
* '''image''': Image of school or school logo (optional)
 +
* '''citystate''': Information about City, State/Province and country (if outside of North America).
 +
* '''president''': President or coach of the quizbowl team (optional)
 +
* '''nats''': National championships won; list years and tournament (optional)
 +
* '''website''': A link to the college's website (remember to begin the url with https://) (optional)
 +
 
 +
</noinclude>

Latest revision as of 15:05, 22 May 2021


Usage

{{Collegebox|College Name = DePaul University
 |Image = DePaul Blue Demons Script Logo.png
 |citystate = Chicago, IL
 |president = Kyle Asta
 |nats = None
 |website = https://www.depaul.edu/
|}}

Output

DePaul University
DePaul Blue Demons Script Logo.png
Location:
Chicago, IL
Current President or Coach Kyle Asta
National championships None
NAQT Page link
Website link

Parameters

  • College Name: Full name of school
  • image: Image of school or school logo (optional)
  • citystate: Information about City, State/Province and country (if outside of North America).
  • president: President or coach of the quizbowl team (optional)
  • nats: National championships won; list years and tournament (optional)
  • website: A link to the college's website (remember to begin the url with https://) (optional)