Difference between revisions of "Template:CBB Standings Entry"

From blackwiki
Jump to navigation Jump to search
imported>X96lee15
(made template display "-" for the case when no games have been played...div by zero)
imported>X96lee15
(Undid revision 326430165 by X96lee15 (talk) - didn't handle the 1.000 case correctly)
Line 1: Line 1:
 
|-
 
|-
| align="left" | {{{1}}} || {{{2|0}}} || {{{3|0}}} || {{#ifeq:{{#expr:{{{2|0}}}+{{{3|0}}}}} | 0 | | .{{padleft:{{#expr:(({{{2|0}}} / ({{{2|0}}}+{{{3|1}}}))*1000) round 0}}|3|0}} }} || {{{4|0}}} || {{{5|0}}} || {{#ifeq:{{#expr:{{{4|0}}}+{{{5|0}}}}} | 0 | | .{{padleft:{{#expr:(({{{4|0}}} / ({{{4|0}}}+{{{5|1}}}))*1000) round 0}}|3|0}} }}
+
| align="left" | {{{1}}} || {{{2|0}}} || {{{3|0}}} || {{#ifeq: {{{2|0}}}|0| .000 | {{#ifeq: {{{3|0}}}|0|1.000|.{{padleft:{{#expr:(({{{2}}}/({{{2}}}+{{{3}}}))*1000) round 0}}|3|0}}}}}}|| {{{4|0}}} || {{{5|0}}} || {{#ifeq: {{{4|0}}}|0| .000 | {{#ifeq: {{{5|0}}}|0|1.000|.{{padleft:{{#expr:(({{{4}}}/({{{4}}}+{{{5}}}))*1000) round 0}}|3|0}}}}}}
 
<noinclude>
 
<noinclude>
 
|}{{documentation}}
 
|}{{documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 22:58, 17 November 2009

|- | align="left" | {{{1}}} || 0 || 0 || .000|| 0 || 0 || .000

|}

50px Template documentation[view] [edit] [history] [purge]

Usage

This template is used to show each team entry in a college basketball conference standings template box. It should be used in conjunction with the templates in the #See also section.

Fields for use of a team entry (copy and paste text below and then fill in the fields)
{{CBB Standings Entry | | | | | }}

In order, the five blank fields for display of a team entry in the standings:

1: Team name
This is to be a direct link to the team's season, piped to show only the school's name, when the article exists. When the individual team's season article does not exist then apply {{Cbb link}}.
2: Intra-conference wins
3: Intra-conference losses
4: Total wins
5: Total losses

Complete table example

2008–09 Big East men's basketball standings
Conf     Overall
Team W   L   PCT     W   L   PCT
No. 1 Connecticut 10 1 .909 21 1 .955
No. 8 Marquette 9 1 .900 20 3 .870
No. 5 Louisville 9 1 .900 18 4 .818
As of February 8, 2009; Rankings from AP Poll
{{CBB Standings Start|2008–09 Big East men's basketball standings}}
{{CBB Standings Entry|{{abbr|No.|Number}} 1 {{cbb link|2008|sex=men|school=University of Connecticut|team=Connecticut Huskies|title=Connecticut}}|10|1|21|1}}
{{CBB Standings Entry|{{abbr|No.|Number}} 8 [[2008–09 Marquette Golden Eagles men's basketball team|Marquette]]|9|1|20|3}}
{{CBB Standings Entry|{{abbr|No.|Number}} 5 [[2008–09 Louisville Cardinals men's basketball team|Louisville]]|9|1|18|4}}
{{CBB Standings End|date=February 8, 2009}}

See also