Difference between revisions of "Template:CBB roster/Player/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Ruslik0
(attempting to fix)
imported>Frietjes
(potential fix for whitespace issue)
Line 22: Line 22:
 
| {{sort|{{#expr:{{{ft}}} * 12 + {{{in|0}}}}}|{{{ft}}} <small>ft</small> {{{in|0}}} <small>in</small>}} <span style="font-size:80%;">({{#expr:({{{ft}}} * 12 + {{{in|0}}}) * 0.0254 round 2}}&nbsp;m)</span>
 
| {{sort|{{#expr:{{{ft}}} * 12 + {{{in|0}}}}}|{{{ft}}} <small>ft</small> {{{in|0}}} <small>in</small>}} <span style="font-size:80%;">({{#expr:({{{ft}}} * 12 + {{{in|0}}}) * 0.0254 round 2}}&nbsp;m)</span>
 
| <center>—</center>
 
| <center>—</center>
}}
+
}} {{#switch:{{lc:{{{sex}}}}}|f|female|w|women|womens|women's=|#default=
{{#switch:{{lc:{{{sex}}}}}|f|female|w|women|womens|women's=|#default={{!}} style="text-align:right; white-space:nowrap; font-size:90%; {{!}} {{#if:{{{lbs|}}}
+
{{!!}} style="text-align:right; white-space:nowrap; font-size:90%; {{!}} {{#if:{{{lbs|}}}
 
| {{{lbs}}} <small>lb</small> <span style="font-size:80%;">({{#expr:{{{lbs}}} * 0.45359237 round 0}}&nbsp;kg)</span>
 
| {{{lbs}}} <small>lb</small> <span style="font-size:80%;">({{#expr:{{{lbs}}} * 0.45359237 round 0}}&nbsp;kg)</span>
 
| <center>—</center>}}
 
| <center>—</center>}}
Line 49: Line 49:
 
| GRADUATE = {{sort|5.0|GS}}
 
| GRADUATE = {{sort|5.0|GS}}
 
| #default =
 
| #default =
}}
+
}} {{#if:{{{high_school|<noinclude>{{!}}</noinclude>}}}|
{{#if:{{{high_school|<noinclude>{{!}}</noinclude>}}}|
+
{{!!}} style="text-align:left; font-size:90%;" {{!}} {{{high_school}}}
{{!}} style="text-align:left; font-size:90%;" {{!}} {{{high_school}}}
 
 
}}
 
}}
 
| style="text-align:left; font-size:90%;" | {{{home}}}
 
| style="text-align:left; font-size:90%;" | {{{home}}}

Revision as of 17:50, 31 August 2013

Pos Num Name Height Weight Year High school Hometown
{{{first}}} {{{last}}}
{{{high_school}}} {{{home}}}
Template documentation[view] [edit] [history] [purge]
click to view ?
{{CBB roster/Header
| year = the starting year of the season for this template; the ending year will be calculated.
| team = name of team.
| sex = sex of the team; default to men's. use w for women's, which changes the title and suppresses the weight column
| hdr_bgcolor= background color of the main template header.
| subhdr_bgcolor= background color of the sub headers.
| hdr_txtcolor= text color of the main template header.
| subhdr_txtcolor= text color of the sub headers.
| teamcolors= if teamcolors=y, then the colors from Template:CollegePrimaryStyle and Template:CollegeSecondaryStyle will be used and all color fields mentioned above will be ignored.
| high_school= inputting anything in the field will activate the high school column; must then use the high_school parameter in every entry of the player template
}}
{{CBB roster/Player
| first =
| last =
player's first and last name are all you'd need to enter in most cases
| dab = e.g. "basketball" if the title of the player's bio ends with "...(basketball)".
| alt= use in complex cases instead of the above,
e.g. "alt = John T. Smith (basketball born 1980)"
| link = set link=y if the name should be wikilinked
| num = number on player's uniform, e.g. "23"
| pos = See basketball positions.
Acceptable values are (PG|G|SG|GF|SF|F|PF|FC|C).
Column will sort in this order.
| ft =
| in =
| lbs =
height and weight.
feet and inches are separated so that 6'10-11" players will sort properly in relation to 6'2" players.
| sex = sex of the team; default to men's. use w for women's, which suppresses the weight column
| class = FR|FRESH|FRESHMAN|SO|SOPH|SOPHOMORE|J|JR|JNR|JUNIOR|S|SR|SNR|SENIOR|G|GS|GRAD|GRADUATE
| rs = whether the player has had redshirt year; any character will activate this field.
| cur_rs = whether the player is in a redshirt year; acceptable value is "yes"
| home = hometown of the player. Wikilinks are accepted in this field
| high_school= high school or junior college of the player; must have used the high_school parameter in the header template.
| note = FA, DP, etc. appears in parentheses after player's name
| inj = If inj=y, injury symbol appears by player's name.
}}
{{CBB roster/Footer
| head_coach =
| asst_coach =
coaching staff
| roster_url= URL where official roster can be found.
| accessdate= last date the team template is known to have been updated from above URLs
ISO (YYYY-MM-DD) format please, just like "cite" templates.
}}

The most commonly used parameters to copy/paste into article for population:

{{CBB roster/Header|year=|team=|sex=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Player|first=|last=|dab=|num=|pos=|ft=|in=|lbs=|class=|rs=|home=}}
{{CBB roster/Footer|roster_url=|accessdate=
|head_coach=
|asst_coach=}}