Difference between revisions of "Template:CBB game log section entry/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>McVahl
(align updates from base)
imported>McVahl
(sync)
Line 12: Line 12:
 
{{#ifeq:{{{rank|}}}|no||{{!}} {{nowrap|{{#if:{{{seed|}}}|(#{{{seed}}}) }} }} }} {{#ifeq:{{{rank|}}}|no||{{#if:{{{rank|}}}|{{nowrap|№ {{{rank}}} }} }} }}
 
{{#ifeq:{{{rank|}}}|no||{{!}} {{nowrap|{{#if:{{{seed|}}}|(#{{{seed}}}) }} }} }} {{#ifeq:{{{rank|}}}|no||{{#if:{{{rank|}}}|{{nowrap|№ {{{rank}}} }} }} }}
 
| align="left"|{{#if:{{{away|}}}|at&nbsp;}}{{#if:{{{neutral|}}}|vs.&nbsp;}}{{#if:{{{oppseed|}}}|(#{{{oppseed}}})&nbsp;}}{{#if:{{{opprank|}}}|&#8470; {{{opprank}}}&nbsp;}}{{nowrap|{{{opponent}}}}} {{#if:{{{gamename|}}}|<br/>{{nowrap|<small>''{{{gamename}}}''</small>}}}}
 
| align="left"|{{#if:{{{away|}}}|at&nbsp;}}{{#if:{{{neutral|}}}|vs.&nbsp;}}{{#if:{{{oppseed|}}}|(#{{{oppseed}}})&nbsp;}}{{#if:{{{opprank|}}}|&#8470; {{{opprank}}}&nbsp;}}{{nowrap|{{{opponent}}}}} {{#if:{{{gamename|}}}|<br/>{{nowrap|<small>''{{{gamename}}}''</small>}}}}
{{#switch: {{lc:{{{status|}}}}}
+
{{#switch: {{lc:{{{score|{{{status|tbd}}}}}}}}
 
   | c | cancelled = {{!}} colspan="5" {{!}} ''{{{status_detail|Cancelled}}}''
 
   | c | cancelled = {{!}} colspan="5" {{!}} ''{{{status_detail|Cancelled}}}''
 
   | p | postponed = {{!}} colspan="5" {{!}} ''{{{status_detail|Postponed}}}''
 
   | p | postponed = {{!}} colspan="5" {{!}} ''{{{status_detail|Postponed}}}''
 +
  | tbd = {{!}} colspan="5" {{!}} {{TBD}}
 
   | #default = {{!}} align="left" {{!}} {{#switch: {{lc:{{{status|}}}}}
 
   | #default = {{!}} align="left" {{!}} {{#switch: {{lc:{{{status|}}}}}
       | w | win  = '''W'''
+
       | w | win  = '''W''' {{!!}} {{replace|{{{record|}}}|-|–}}
       | l | loss = '''L'''
+
       | l | loss = '''L''' {{!!}} {{replace|{{{record|}}}|-|–}}
       | #default = {{#iferror:{{#ifexpr:{{str number/trim|{{{score}}}}} > {{str right|{{{score}}}|{{strfind short|{{{score}}}|{{#ifexpr:{{str find|{{{score}}}|-}}>0|-|–}}}}}} | <span style="display:inline-block; width:1em">'''W'''</span> | <span style="display:inline-block; width:1em">'''L'''</span> }}|}} {{ifnotempty|{{{score|}}}|{{ifnotempty|{{{boxscore|}}}|[{{{boxscore}}} {{replace|{{{score}}}|-|–}}]|{{replace|{{{score}}}|-|–}}}}|{{TBD}} }}<sup>{{{overtime|}}}</sup>}}
+
       | #default = {{#iferror:{{#ifexpr:{{str number/trim|{{{score}}}}} > {{str right|{{{score}}}|{{strfind short|{{{score}}}|{{#ifexpr:{{str find|{{{score}}}|-}}>0|-|–}}}}}}
{{!}} {{replace|{{{record|}}}|-|–}}
+
| <span style="display:inline-block; width:1em">'''W'''</span>
 +
| <span style="display:inline-block; width:1em">'''L'''</span>}} {{ifnotempty|{{{boxscore|}}}|[{{{boxscore}}} {{replace|{{{score}}}|-|–}}]|{{replace|{{{score}}}|-|–}} }}<sup>{{{overtime|}}}</sup>
 +
| &nbsp; <!-- parse error --> }}
 +
{{!}} {{replace|{{{record|}}}|-|–}} }}
 
{{!}} {{{highscorer|}}} {{ifnotempty|{{{points|}}}|({{{points}}})}}
 
{{!}} {{{highscorer|}}} {{ifnotempty|{{{points|}}}|({{{points}}})}}
 
{{!}} {{{highrebounder|}}} {{ifnotempty|{{{rebounds|}}}|({{{rebounds}}})}}
 
{{!}} {{{highrebounder|}}} {{ifnotempty|{{{rebounds|}}}|({{{rebounds}}})}}
 
{{!}} {{{highassister|}}} {{ifnotempty|{{{assists|}}}|({{{assists}}})}} }}
 
{{!}} {{{highassister|}}} {{ifnotempty|{{{assists|}}}|({{{assists}}})}} }}
 
| {{{site_stadium}}}<noinclude>
 
| {{{site_stadium}}}<noinclude>
{{Game log section end}}
+
{{end}}
 
{{Game log end}}
 
{{Game log end}}
 
{{documentation|content=
 
{{documentation|content=

Revision as of 08:02, 4 June 2020

{{{2}}}
Game Date • Time Rank Opponent Result Record High points High rebounds High assists Location
1 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
50px Template documentation

Related sandboxes