Difference between revisions of "Template:Infobox"

From QBWiki
Jump to navigation Jump to search
Line 44: Line 44:
 
|-
 
|-
 
|'''Stats'''||
 
|'''Stats'''||
{{#if:{{{firstname|}}}{{{lastname|}}}{{{naqtstats|}}}
+
{{#if:{{{stats|}}}
 +
<!---->|{{{stats}}}
 
<!---->|{{#if:{{{firstname|}}}{{{lastname|}}}
 
<!---->|{{#if:{{{firstname|}}}{{{lastname|}}}
<!----><!---->|[https://hdwhite.org/qb/stats/player/{{{firstname}}}+{{{lastname}}} HDWhite]<br>
+
<!----><!---->|[https://hdwhite.org/qb/stats/player/{{{firstname}}}+{{{lastname}}} HDWhite]
<!----><!---->{{#if:{{{naqtstats|}}}
 
<!----><!----><!---->|{{{naqtstats}}}
 
<!----><!----><!---->|[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{firstname}}}&last_name={{{lastname}}} NAQT page]
 
<!----><!---->}}
 
 
<!----><!---->|{{#if:{{{1|}}}
 
<!----><!---->|{{#if:{{{1|}}}
 
<!----><!----><!---->|{{#if:{{{2|}}}
 
<!----><!----><!---->|{{#if:{{{2|}}}
Line 56: Line 53:
 
<!----><!----><!----><!----><!---->|https://hdwhite.org/qb/stats/player/{{{1}}}+{{{3}}}
 
<!----><!----><!----><!----><!---->|https://hdwhite.org/qb/stats/player/{{{1}}}+{{{3}}}
 
<!----><!----><!----><!----><!---->|https://hdwhite.org/qb/stats/player/{{{1}}}+{{{2}}}
 
<!----><!----><!----><!----><!---->|https://hdwhite.org/qb/stats/player/{{{1}}}+{{{2}}}
<!----><!----><!----><!---->}} HDWhite]<br/>
+
<!----><!----><!----><!---->}} HDWhite]
 +
<!----><!----><!----><!---->|[https://hdwhite.org/qb/stats/player/{{#explode:{{{1}}}| |0}}+{{#explode:{{{1}}}| |-1}} HDWhite]
 
<!----><!----><!---->}}
 
<!----><!----><!---->}}
<!----><!---->}}{{{naqtstats}}}
+
<!----><!----><!---->|[https://hdwhite.org/qb/stats/player/{{#explode:{{{Name}}}| |0}}+{{#explode:{{{Name}}}| |-1}} HDWhite]
 +
<!----><!---->}}
 
<!---->}}
 
<!---->}}
<!---->|{{#if:{{{1|}}}
+
}}<br>
<!----><!---->|{{#if:{{{2|}}}
+
{{#if:{{{naqtstats|}}}
<!----><!----><!---->|[{{#if:{{{3|}}}
+
<!---->|{{{naqtstats}}}
<!----><!----><!----><!---->|https://hdwhite.org/qb/stats/player/{{{1}}}+{{{3}}}
+
<!---->|{{#if:{{{firstname|}}}{{{lastname|}}}
<!----><!----><!----><!---->|https://hdwhite.org/qb/stats/player/{{{1}}}+{{{2}}}
+
<!----><!---->|[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{firstname}}}&last_name={{{lastname}}} NAQT page]
<!----><!----><!---->}} HDWhite]<br/>
+
<!----><!---->|{{#if:{{{1|}}}
<!----><!----><!---->[{{#if:{{{3|}}}
+
<!----><!----><!---->|{{#if:{{{2|}}}
<!----><!----><!----><!---->|https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{1}}}&last_name={{{3}}}
+
<!----><!----><!----><!---->|[{{#if:{{{3|}}}
<!----><!----><!----><!---->|https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{1}}}&last_name={{{2}}}
+
<!----><!----><!----><!----><!---->|https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{1}}}&last_name={{{3}}}
<!----><!----><!---->}} NAQT page]
+
<!----><!----><!----><!----><!---->|https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{{1}}}&last_name={{{2}}}
<!----><!---->|n/a
+
<!----><!----><!----><!---->}} NAQT page]
 +
<!----><!----><!----><!---->|[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{#explode:{{{1}}}| |0}}&last_name={{#explode:{{{1}}}| |-1}} NAQT page]
 +
<!----><!----><!---->}}
 +
<!----><!----><!---->|[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{#explode:{{{Name}}}| |0}}&last_name={{#explode:{{{Name}}}| |-1}} NAQT page]
 
<!----><!---->}}
 
<!----><!---->}}
<!---->|[https://hdwhite.org/qb/stats/player/{{#explode:{{{Name}}}| |0}}+{{#explode:{{{Name}}}| |-1}} HDWhite]<br>[https://www.naqt.com/stats/player/search.jsp?PASSBACK=PLAYER_SEARCH&first_name={{#explode:{{{Name}}}| |0}}&last_name={{#explode:{{{Name}}}| |-1}} NAQT page]
 
 
<!---->}}
 
<!---->}}
 
}}
 
}}
Line 171: Line 172:
 
}}
 
}}
 
Box with full name passed in anonymous parameters and naqtstats.
 
Box with full name passed in anonymous parameters and naqtstats.
 +
<pre>{{Infobox
 +
  |Full|Name
 +
  |naqtstats = naqtstats
 +
}}</pre>
 +
 +
{{Infobox
 +
  |Full|Name
 +
  |stats = stats
 +
}}
 +
Box with full name passed in anonymous parameters and stats.
 
<pre>{{Infobox
 
<pre>{{Infobox
 
   |Full|Name
 
   |Full|Name

Revision as of 15:13, 17 March 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)
Elementary School Team elementaryschool (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)
  |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.

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


Full Name
Noted Subjects:
n/a
Stats

HDWhite
NAQT page

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

HDWhite
naqtstats

Box with naqtstats but no firstname/lastname:

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


Full Name
Noted Subjects:
n/a
Stats

HDWhite
NAQT page

Box with full name passed in anonymous parameters.

{{Infobox
  |Full|Name
}}


Full Middle Initials Name
Noted Subjects:
n/a
Stats

HDWhite
NAQT page

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

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


Explicitly specified full name
Noted Subjects:
n/a
Stats

HDWhite
NAQT page

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

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


Full Name
Noted Subjects:
n/a
Stats

HDWhite
naqtstats

Box with full name passed in anonymous parameters and naqtstats.

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


Full Name
Noted Subjects:
n/a
Stats

stats
NAQT page

Box with full name passed in anonymous parameters and stats.

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