Difference between revisions of "Template:Infobox"

From QBWiki
Jump to navigation Jump to search
Line 17: Line 17:
 
|'''Middle School Team'''|| {{{middleschool|None}}}
 
|'''Middle School Team'''|| {{{middleschool|None}}}
 
|-
 
|-
|'''Stats'''||{{if|test={{{SplitName|}}}{{{naqtstats|}}}|then={{if|test={{{SplitName|}}}|then=[https://hdwhite.org/qb/stats/player/{{{SplitName}}}]<br>}}{{{naqtstats|}}}|else=n/a}}
+
|'''Stats'''||{{if|test={{{firstname|}}}{{{lastname|}}}{{{naqtstats|}}}|then={{if|test={{{firstname|}}}{{{lastname|}}}|then=[https://hdwhite.org/qb/stats/player/{{{firstname}}}+{{{lastname}}}]<br>}}{{if|test={{{naqtstats|}}}|then={{{naqtstats}}}|else=[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{firstname}}}&last_name={{{lastname}}}}}|else=n/a}}
 
|-
 
|-
 
|}
 
|}
Line 30: Line 30:
 
   |highschool = highschool
 
   |highschool = highschool
 
   |middleschool = middleschool
 
   |middleschool = middleschool
   |SplitName = Full+Name
+
   |firstname = Full
 +
  |lastname = Name
 
   |naqtstats = naqtstats
 
   |naqtstats = naqtstats
 
}}
 
}}
Line 41: Line 42:
 
   |highschool = highschool
 
   |highschool = highschool
 
   |middleschool = middleschool
 
   |middleschool = middleschool
   |SplitName = Full+Name
+
   |firstname = Full
 +
  |lastname = Name
 
   |naqtstats = naqtstats
 
   |naqtstats = naqtstats
 
}}</pre>
 
}}</pre>
  
SplitName should be their name as it appears in stats, formatted with +'s in place of spaces so as to be appended to 'hdwhite.org/qb/stats/player/'.
+
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.
  
 
{{Infobox
 
{{Infobox

Revision as of 11:56, 19 December 2020


Full Name
Noted Subjects:
Subjects
Current Collegiate Team schoolcur
Past Collegiate Teams schoolpast
High School Team highschool
Middle School Team middleschool
Stats [1]
naqtstats

Usage:

{{Infobox
  |Name = Full Name
  |Image =
  |Subjects = Subjects
  |schoolcur = schoolcur
  |schoolpast = schoolpast
  |highschool = highschool
  |middleschool = middleschool
  |firstname = Full
  |lastname = Name
  |naqtstats = naqtstats
}}

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.


Full Name
Noted Subjects:
n/a
Current Collegiate Team None
Past Collegiate Teams None
High School Team None
Middle School Team None
Stats n/a

Minimal box:

{{Infobox
  |Name = Full Name
}}