Difference between revisions of "Template:Infobox"

From QBWiki
Jump to navigation Jump to search
m (Reverted edits by Jonah Greenthal (talk) to last revision by Kevin Wang)
Tag: Rollback
Line 37: Line 37:
 
}}
 
}}
 
|-
 
|-
{{if|test={{{firstname|}}}{{{lastname|}}}{{{naqtstats|}}}|then={{if|test={{{firstname|}}}{{{lastname|}}}|then=
+
{{if
 +
|test={{{firstname|}}}{{{lastname|}}}{{{naqtstats|}}}
 +
|then={{if
 +
      |test={{{firstname|}}}{{{lastname|}}}
 +
      |then=
 
{{!-}}
 
{{!-}}
{{!}}'''Stats'''{{!!}}[https://hdwhite.org/qb/stats/player/{{{firstname}}}+{{{lastname}}} HDWhite]}}{{if|test={{{naqtstats|}}}|then={{{naqtstats}}}|else=[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{firstname}}}&last_name={{{lastname}}} NAQT page]}}
+
{{!}}'''Stats'''{{!!}}[https://hdwhite.org/qb/stats/player/{{{firstname}}}+{{{lastname}}} HDWhite]<br>{{if
 +
            |test={{{naqtstats|}}}
 +
            |then={{{naqtstats}}}
 
{{!-}}
 
{{!-}}
 +
            |else=[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{firstname}}}&last_name={{{lastname}}} NAQT page]
 +
{{!-}}
 +
}}
 +
      |else=
 +
{{!-}}
 +
{{!}}'''Stats'''{{!!}}{{{naqtstats}}}
 +
{{!-}}
 +
}}
 
|else=
 
|else=
 
{{!-}}
 
{{!-}}
Line 84: Line 98:
 
}}</pre>
 
}}</pre>
  
 +
{{Infobox
 +
  |Name = Full Name
 +
  |firstname = Full
 +
  |lastname = Name
 +
}}
 +
Box with firstname/lastname but no naqtstats:<pre>{{Infobox
 +
  |Name = Full Name
 +
  |firstname = Full
 +
  |lastname = Name
 +
}}</pre>
 +
 +
{{Infobox
 +
  |Name = Full Name
 +
  |naqtstats = naqtstats
 +
}}
 +
Box with naqtstats but no firstname/lastname:<pre>{{Infobox
 +
  |Name = Full Name
 +
  |naqtstats = naqtstats
 +
}}</pre>
 
</noinclude>
 
</noinclude>

Revision as of 10:23, 8 January 2021


Full Name
200px
Noted Subjects:
Subjects (optional)
Current Collegiate Team schoolcur (optional)
Past Collegiate Teams schoolpast (optional)
High School Team highschool (optional)
Middle School Team middleschool (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)
  |firstname = Full (optional)
  |lastname = Name (optional)
  |naqtstats = naqtstats (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.


Full Name
Noted Subjects:
n/a
Stats n/a

Minimal box:

{{Infobox
  |Name = Full Name
}}


Full Name
Noted Subjects:
n/a
Stats HDWhite
NAQT page

Box with firstname/lastname but no naqtstats:

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


Full Name
Noted Subjects:
n/a
Stats naqtstats

Box with naqtstats but no firstname/lastname:

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