Difference between revisions of "Templates"

From QBWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Put the code for all useful '''templates''' on here in the manner I have done.
 
Put the code for all useful '''templates''' on here in the manner I have done.
  
 +
=Boxes=
 
==Template:Infobox==
 
==Template:Infobox==
 
{{Infobox|Name = Name
 
{{Infobox|Name = Name
Line 10: Line 11:
 
| }}
 
| }}
  
Template for quizbowl player pages.
+
Template for quizbowl player pages.<br>
 
[[Template:Infobox]]
 
[[Template:Infobox]]
 
:''See: [[Matt Weiner]]''
 
:''See: [[Matt Weiner]]''
Line 20: Line 21:
 
| }}
 
| }}
  
Template for a picture with a caption.
+
Template for a picture with a caption.<br>
 
[[Template:Pic]]
 
[[Template:Pic]]
 
:''See: [[Negstorm]]''
 
:''See: [[Negstorm]]''
Line 33: Line 34:
 
| }}
 
| }}
  
Template for use on college club pages.
+
Template for use on college club pages.<br>
 
[[Template:Collegebox]]
 
[[Template:Collegebox]]
 
:''See: [[Harvard]]''
 
:''See: [[Harvard]]''
Line 49: Line 50:
 
| }}
 
| }}
  
Template for use on pages for concluded tournaments.
+
Template for use on pages for concluded tournaments.<br>
 
[[Template:Tourneybox]]
 
[[Template:Tourneybox]]
 
:''See: [[2007 ACF Nationals]]
 
:''See: [[2007 ACF Nationals]]
Line 69: Line 70:
 
| }}
 
| }}
  
Template for use on pages for concluded collegiate national championships.
+
Template for use on pages for concluded collegiate national championships.<br>
 
[[Template:College Nat Tourneybox]]
 
[[Template:College Nat Tourneybox]]
 
:''See: [[2017 ICT]]''
 
:''See: [[2017 ICT]]''
Line 82: Line 83:
 
| }}
 
| }}
  
Template for tournaments listing only first and second place.
+
Template for tournaments listing only first and second place.<br>
 
[[Template:Tourneybox short]]
 
[[Template:Tourneybox short]]
 
:''No known examples''
 
:''No known examples''
Line 102: Line 103:
 
| }}
 
| }}
  
Template for use on pages for upcoming tournaments.
+
Template for use on pages for upcoming tournaments.<br>
 
[[Template:Upcoming]]
 
[[Template:Upcoming]]
 
:''No known examples''
 
:''No known examples''
Line 108: Line 109:
  
 
==Template:Succession_box==
 
==Template:Succession_box==
For use on year-by-year team pages for teams who have won a particular tournament.
+
For use on year-by-year team pages for teams who have won a particular tournament.<br>
 
[[Template:Succession_box]]
 
[[Template:Succession_box]]
 
:''See: [[2006 Byram Hills]]
 
:''See: [[2006 Byram Hills]]
Line 119: Line 120:
  
 
==Template:Browse box==
 
==Template:Browse box==
For use on year-by-year concluded tournament pages.
+
For use on year-by-year concluded tournament pages.<br>
 
[[Template:Browse box]]
 
[[Template:Browse box]]
 
:''See: [[2007 NAC]]
 
:''See: [[2007 NAC]]
Line 136: Line 137:
 
| }}
 
| }}
  
Template for use on company pages.
+
Template for use on company pages.<br>
 
[[Template:Companybox]]
 
[[Template:Companybox]]
 
:''See: [[Play Quiz Bowl]]''
 
:''See: [[Play Quiz Bowl]]''
 +
 +
=General Use=
 +
==Template:If==
 +
An if/then statement with optional else based on whether test parameter is null or not.<br>
 +
[[Template:If]]
 +
<pre>{{if
 +
  |test=VARIABLE_OR_PARAMETER_TO_TEST
 +
  |then=code if 'test' is not empty
 +
  |else=code if 'test' is empty (optional)
 +
}}</pre>
 +
 +
==Template:Tl==
 +
Template for a shortened link to a template's page.<br>
 +
{{Tl|Tl}}
 +
 +
==Template:dot==
 +
Template for a dot.<br>
 +
[[Template:dot]]<br>
 +
{{dot}}
  
 
[[Category:Wiki maintenance]]
 
[[Category:Wiki maintenance]]
 
[[Category:Original QBWiki Page]]
 
[[Category:Original QBWiki Page]]

Revision as of 12:29, 18 December 2020

Put the code for all useful templates on here in the manner I have done.

Boxes

Template:Infobox

Name
200px
Noted subjects Subjects
Current college schoolcur
Past colleges schoolpast
High school highschool
Stats HDWhite • NAQT

Template for quizbowl player pages.
Template:Infobox

See: Matt Weiner






Template:Pic

300px
Above:
Caption

Template for a picture with a caption.
Template:Pic

See: Negstorm


Template:Collegebox

College Name
200px
Location:
citystate
Current President or Coach president
National championships nats
NAQT Page link

Template for use on college club pages.
Template:Collegebox

See: Harvard






Template:Tourneybox

Tournament Name
Edited by editors
Champion champion
Runner-up second
Third third
Fourth fourth
High scorer scorer
Site site
Field
Stats


Template for use on pages for concluded tournaments.
Template:Tourneybox

See: 2007 ACF Nationals









Template:College Nat TourneyBox

Tournament Name
Champion champion
Runner-up second
Third third
Fourth fourth
High scorer scorer
Undergrad Champion undergrad
Undergrad Runner-up undergradsecond
Undergrad High scorer undergradscorer
Site site
Field field
Stats stats

Template for use on pages for concluded collegiate national championships.
Template:College Nat Tourneybox

See: 2017 ICT











Template: Tourneybox short

Tournament Name
Champion champion
Runner-up runner-up
Site site
Date date

Template for tournaments listing only first and second place.
Template:Tourneybox short

No known examples







Template:Upcoming

Tournament Name
Date date
Time time
Location location
Editor editor
Contact: email
Format format
First Discount Deadline deadline1
Second Discount Deadline deadline2
No Packet Penalty Deadline deadline3
First Penalty Deadline deadline4
Second Penalty Deadline deadline5

Template for use on pages for upcoming tournaments.
Template:Upcoming

No known examples












Template:Succession_box

For use on year-by-year team pages for teams who have won a particular tournament.
Template:Succession_box

See: 2006 Byram Hills
Tournament Champion
Preceded by
Year
Succeeded by
previous
year
next

Template:Browse box

For use on year-by-year concluded tournament pages.
Template:Browse box

See: 2007 NAC
Tournament
Previous
Next
previous
next

Template:Companybox

Company Name
200px
President or CEO president
Location: citystate
Status status


Template for use on company pages.
Template:Companybox

See: Play Quiz Bowl

General Use

Template:If

An if/then statement with optional else based on whether test parameter is null or not.
Template:If

{{if
  |test=VARIABLE_OR_PARAMETER_TO_TEST
  |then=code if 'test' is not empty
  |else=code if 'test' is empty (optional)
}}

Template:Tl

Template for a shortened link to a template's page.
{{Tl}}


Template:dot

Template for a dot.
Template:dot
 ·