Difference between revisions of "Template:Infobox"

From QBWiki
Jump to navigation Jump to search
m (cleaner look attempt)
Line 11: Line 11:
 
}}
 
}}
 
|-
 
|-
! align=center colspan=2| Noted Subjects: <br> {{{Subjects|n/a}}}
+
{{if|test={{{Subjects|}}}|then=
 +
{{!-}}
 +
{{!}}'''Noted subjects'''{{!!}} {{{Subjects}}}
 +
{{!-}}
 
|-
 
|-
 
{{if|test={{{schoolcur|}}}|then=
 
{{if|test={{{schoolcur|}}}|then=
 
{{!-}}
 
{{!-}}
{{!}}'''Current Collegiate Team'''{{!!}} {{{schoolcur}}}
+
{{!}}'''Current college'''{{!!}} {{{schoolcur}}}
 
{{!-}}
 
{{!-}}
 
}}
 
}}
Line 21: Line 24:
 
{{if|test={{{schoolpast|}}}|then=
 
{{if|test={{{schoolpast|}}}|then=
 
{{!-}}
 
{{!-}}
{{!}}'''Past Collegiate Teams'''{{!!}} {{{schoolpast}}}
+
{{!}}'''Past colleges'''{{!!}} {{{schoolpast}}}
 
{{!-}}
 
{{!-}}
 
}}
 
}}
Line 27: Line 30:
 
{{if|test={{{highschool|}}}|then=
 
{{if|test={{{highschool|}}}|then=
 
{{!-}}
 
{{!-}}
{{!}}'''High School Team'''{{!!}} {{{highschool}}}
+
{{!}}'''High school'''{{!!}} {{{highschool}}}
 
{{!-}}
 
{{!-}}
 
}}
 
}}
Line 33: Line 36:
 
{{if|test={{{middleschool|}}}|then=
 
{{if|test={{{middleschool|}}}|then=
 
{{!-}}
 
{{!-}}
{{!}}'''Middle School Team'''{{!!}} {{{middleschool}}}
+
{{!}}'''Middle school'''{{!!}} {{{middleschool}}}
 
{{!-}}
 
{{!-}}
 
}}
 
}}
Line 39: Line 42:
 
{{if|test={{{elementaryschool|}}}|then=
 
{{if|test={{{elementaryschool|}}}|then=
 
{{!-}}
 
{{!-}}
{{!}}'''Elementary School Team'''{{!!}} {{{elementaryschool}}}
+
{{!}}'''Elementary school'''{{!!}} {{{elementaryschool}}}
 
{{!-}}
 
{{!-}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{forums|}}}|
 
{{#if:{{{forums|}}}|
{{!}}'''Forums Profile{{!!}}{{{forums}}}
+
{{!}}'''[[HSQB]] profile{{!!}}{{{forums}}}
 
}}
 
}}
 
|-
 
|-

Revision as of 10:55, 21 April 2021


{{if|test=Subjects (optional)|then=
Full Name
200px
Noted subjects Subjects (optional)
Current college schoolcur (optional)
Past colleges schoolpast (optional)
High school highschool (optional)
Middle school middleschool (optional)
Elementary school elementaryschool (optional)
HSQB profile forums (optional)
Stats

HDWhite
naqtstats (optional)

Usage:

{{Infobox
  |Name = Full Name
  |Image = Image (optional)
  |Subjects = Subjects (optional)
  |schoolcur = schoolcur (optional)
  |schoolpast = schoolpast (optional)
  |highschool = highschool (optional)
  |middleschool = middleschool (optional)
  |elementaryschool = elementaryschool (optional)
  |forums = forums (optional)
  |firstname = Full (optional)
  |lastname = Name (optional)
  |naqtstats = naqtstats (optional)
  |nostats = optional
}}

firstname and lastname should be their first and last name as it appears in stats and is used to look up the name on HDWhite. If an explicit link to naqt stats is not provided via naqtstats, it will use the firstname and lastname to search them up on NAQT's player search.

An alternative to firstname/lastname is {{{1}}}/{{{2}}}, the first two anonymous parameters. All named parameters will take precedence over these anonymous parameters, though.

nostats removes the entire stats section of the infobox. Using nostats requires setting it to any non-whitespace value (e.g. not " " or "").


{{if|test=|then=
Full Name
Noted subjects {{{Subjects}}}
Stats

HDWhite
NAQT page

Minimal box:

{{Infobox
  |Name = Full Name
}}


{{if|test=|then=
Full Name
Noted subjects {{{Subjects}}}
Stats

HDWhite
NAQT page

Box with firstname/lastname but no naqtstats:

{{Infobox
  |Name = Full Name
  |firstname = Full
  |lastname = Name
}}


{{if|test=|then=
Full Name
Noted subjects {{{Subjects}}}
Stats

HDWhite
naqtstats

Box with naqtstats but no firstname/lastname:

{{Infobox
  |Name = Full Name
  |naqtstats = naqtstats
}}


{{if|test=|then=
Full Name
Noted subjects {{{Subjects}}}
Stats

HDWhite
NAQT page

Box with full name passed in anonymous parameters.

{{Infobox
  |Full|Name
}}


{{if|test=|then=
Full Middle Initials Name
Noted subjects {{{Subjects}}}
Stats

HDWhite
NAQT page

Box with full name + middle name passed in anonymous parameters.

{{Infobox
  |Full|Middle Initials|Name
}}


{{if|test=|then=
Explicitly specified full name
Noted subjects {{{Subjects}}}
Stats

HDWhite
NAQT page

Box with full name passed in anonymous parameters and also manually specified.

{{Infobox
  |Name=Explicitly specified full name
  |Full|Name
}}


{{if|test=|then=
Full Name
Noted subjects {{{Subjects}}}
Stats

HDWhite
naqtstats

Box with full name passed in anonymous parameters and naqtstats.

{{Infobox
  |Full|Name
  |naqtstats = naqtstats
}}


{{if|test=|then=
Full Name
Noted subjects {{{Subjects}}}
Stats

stats

Box with full name passed in anonymous parameters and stats.

{{Infobox
  |Full|Name
  |naqtstats = naqtstats
}}