Difference between revisions of "Templates"
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m (→Template:!) |
||
| Line 228: | Line 228: | ||
{{dot}} | {{dot}} | ||
| − | ==Template:!== | + | ==Template:!/!-== |
| − | + | Templates for inserting a | or |- inside of another template. Useful for adding optional rows to a table. Examples of "magic words" built into MediaWiki.<br/> | |
<pre>|- | <pre>|- | ||
{{if|test={{{variable_x|}}} | {{if|test={{{variable_x|}}} | ||
| − | |then={{!}} | + | |then={{!-}} |
{{!}}'''optional_row_name''' {{!}}{{!}} {{{variable_x|}}} | {{!}}'''optional_row_name''' {{!}}{{!}} {{{variable_x|}}} | ||
}} | }} | ||
Revision as of 08:47, 25 January 2022
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 • naqtstats |
Template for quizbowl player pages.
Template:Infobox
- See: Matt Weiner
Template:Coachbox
| ||||
| Current Team Coached | currentschool | |||
| Past Teams Coached | schoolpast | |||
| College | colpast | |||
| High School | hspast | |||
| Stats | HDWhite NAQT page | |||
Template for coaches.
Template:Coachbox
- See: John Barnes
Template:Infobox question set
| Name AltNames (optional) | |
|---|---|
| Competition season | Season |
| Series | Series (optional) |
| School(s) | School (optional) |
| Head editor(s) | HeadEd |
| Difficulty | Difficulty |
| First mirror | First |
| Announcement | [Announcement link] |
| Packets | [Packets link] |
Template for question sets. For college nationals with undergrad championships, Collegiate Nat Tourneybox is recommended.
Template:Infobox question set
Template:Pic
| |||
| 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 |
| Website | link |
Template for use on college club pages.
Template:Collegebox
- See: Harvard
Template:Highschoolteam
| Name | |
| 250px | |
|---|---|
| Location: citystate | |
| Club Presidents | currentpres |
| Coaches | currentcoach |
| State Championships | state |
| National Championships | nats |
| National Appearances | nats appearances |
| Program Status | status |
| School Size | size |
| NAQT Page | link |
| Website | link |
Template for use on high-school club pages.
Template:Highschoolteam
- See: Ladue
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
| ||
| Champion | champion | |
| Runner-up | second | |
| Third | third (optional) | |
| Fourth | fourth (optional) | |
| High scorer | scorer | |
| Undergrad Champion | undergrad (optional) | |
| Undergrad Runner-up | undergradsecond (optional) | |
| Undergrad High scorer | undergradscorer (optional) | |
| DII Champion | dii (optional) | |
| DII Runner-up | diisecond (optional) | |
| 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
| ||
| 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
| ||
| Date | date | |
| Time | time | |
| Location | location | |
| Editor | editor | |
| Contact: | ||
| 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
| |||
| |
| ||
Template:Browse box
For use on year-by-year concluded tournament pages.
Template:Browse box
- See: 2007 NAC
| ||
| | ||
Template:Companybox
| ||||
| President or CEO | president | |||
| Location: | citystate | |||
| Status | status | |||
Template for use on company pages.
Template:Companybox
- See: Play Quiz Bowl
Template:Left/Right quote box
| Template for embedding quotes in a box on the left. |
| Template for embedding quotes in a box on the right. |
Brackets
Template:SuperSeven(A/B)
| Quarterfinals | Semifinals | Advantaged Finals Unbeaten team has advantage | ||||||||||||
| 4 | ||||||||||||||
| 5 | 1 | |||||||||||||
| 3 | ||||||||||||||
| 6 | ||||||||||||||
| Third place | ||||||||||||||
| 2 | ||||||||||||||
| 7 | ||||||||||||||
NOTE: Seeds represent seeds at the start of bracket play.
| Quarterfinals | Semifinals | Super Semifinal Loser is 3rd place |
One-Game Final | |||||||||||||||||||
| 4 | 1 | |||||||||||||||||||||
| 5 | ||||||||||||||||||||||
| 3 | ||||||||||||||||||||||
| 6 | ||||||||||||||||||||||
| 2 | ||||||||||||||||||||||
| 7 | ||||||||||||||||||||||
| ||||||||||||||||||||||
NOTE: Numbers represent seeds at the start of bracket play.
Templates for the NAQT Super Seven playoff format. Template:SuperSevenA is for when the undefeated team wins their semi, while Template:SuperSevenB is for when they lose it.
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)
}}
This is no longer necessary, as it exactly replicates the behavior of {{#if:test||}}.
Template:Tl
Template for a shortened link to a template's page that can be transcluded.
{{Tl}}
Template:dot
Template for a dot.
Template:dot
·
Template:!/!-
Templates for inserting a | or |- inside of another template. Useful for adding optional rows to a table. Examples of "magic words" built into MediaWiki.
|-
{{if|test={{{variable_x|}}}
|then={{!-}}
{{!}}'''optional_row_name''' {{!}}{{!}} {{{variable_x|}}}
}}
|-
In this example, the if statement checks if the variable_x has been assigned a value and then adds in an optional row (shown below) to the table with variable_x as a parameter. Because additional row enders ("|-") can be added without changing the formatting, it is recommended that you wrap any optional rows created this way with |-.
|-
|-
|'''optional_row_name''' || {{{variable_x|}}}
|-