User:Mr rnddude/Userboxes
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
User Page |
Talk Page |
Userboxes |
Sources |
Research |
Articles |
Site Map |
Common.js |
Contributions |
Templates
- NHL Pre-season and Season Templates
- Template:NHL game log end (last piece to the puzzle)
- Template:NHL game log end/doc
- Template:NHL game log section
- Template:NHL game log section/doc
- Template:NHL game log start
- Template:NHL game log start/doc
- Template:NHL team color
- Template:NHL team color/doc
- Template:NHL color cell1 (G7 requested)
- Template:NHL color cell2 (G7 requested)
- Module:Hockey team color
- Module:Hockey team color/data
- Module:Hockey team color/doc
- Module:Hockey team color/data/doc
- Module:Hockey team color/contrast
- Module:Hockey team color/contrast/doc
Refer to:
- 2015-16 Montreal Canadiens season
- 2016-17 Montreal Canadiens season
- Template:NBA game log start
- Template:NBA game log section
- Template:NBA game log end
- Note: I'd like to condense the above three templates into a single overarching template but keep the basic functionality of those templates as well.
- Template:NBA color/doc
- Module:Basketball color
- Module:Basketball color/data
- Note: Having no experience with modules, I'd like to reference these as I develop the modules for the NHL teams.
- Created
Module and Template Coding in Progress
Template:NHL game log start
{{Game log start | style = {{#if:{{{bgcolor|}}}|background-color: {{{bgcolor}}}; border-top-color:{{{btcolor}}}|{{NHL color cell|{{{1}}}}}; border-bottom-color:{{{bbcolor}}}|{{NHL color cell2|{{{1}}}}}}} | title = <!-- -->{{#switch:yes |{{{pre-season}}}={{#expr:{{{end_year|2012}}} - 1}} Pre-season |{{{playoffs}}}={{{end_year|2013}}} Stanley Cup playoffs |{{#ifeq:{{{end_year}}}|2000|1999–2000|{{#expr:{{{end_year|2013}}}-1}}–{{padleft:{{#expr:{{{end_year|2013}}} mod 100}}|2|0}}}} }} game log<!-- -->{{#if:{{{home_wins|}}}|<br>Total: {{#expr:{{{home_wins|0}}} + {{{road_wins|0}}}}}–{{#expr:{{{home_losses|0}}} + {{{road_losses|0}}}}} (Home: {{{home_wins|0}}}–{{{home_losses|0}}}; Road: {{{road_wins|0}}}–{{{road_losses|0}}})}}<!-- -->{{#if:{{{record|}}}|<br>{{{record}}}}} }}<noinclude> {{end}} {{documentation}} </noinclude>
- Function to encode; I need to encode - a) border-top and border-bottom, b) color cell modules that will invoke the correct color to represent the background (cell 2), border-top (cell 1) and border-bottom (cell 3). I had not anticipated that this would require three additional modules and templates. Refer to Module:Basketball color, Template:NBA color, Template:NBA color cell and Template:NBA color cell2.
- For additional guidance refer to; Template:Canadian election result/hold, 2016-17 Boston Celtics season and Template:Game log start.
- Once the above is encoded I will make the template go live. I will need it to be live so that I can test it against a vital, for the purpose of the template, module.
Userboxes
- History