Template talk:UserInfoBox

From Scioly.org
Jump to: navigation, search

wow i really spelled invitationals wrong --Robotman09 00:58, 18 November 2009 (CET)

Volunteer stats

I want to put this out before I commit any additions to the template; I am wanting to add another section to the user infobox. On my userpage, I have some Div D stats in my info box, and I think it would be a nice touch to also include it in the info box template. Below is the wiki code that will implement this feature:


Volunteering v0.1 Wikicode
{{#if: {{{volunteer_years|}}}{{{volunteer_comps|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Volunteering'''
{{!}}-
}}
{{#if: {{{volunteer_years|}}}|
{{!}}'''Years volunteered'''
{{!}}{{{volunteer_years|}}}
{{!}}-
}}
{{#if: {{{volunteer_comps|}}}|
{{!}}'''Number of competitions volunteered at'''
{{!}}{{{volunteer_comps|}}}
{{!}}-
}}

Volunteering v0.2 Wikicode

{{#if: {{{volunteer_years|}}}{{{volunteer_comps|}}}{{{volunteer_tests_written|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Volunteering'''
{{!}}-
}}
{{#if: {{{volunteer_years|}}}|
{{!}}'''Years volunteered'''
{{!}}{{{volunteer_years|}}}
{{!}}-
}}
{{#if: {{{volunteer_comps|}}}|
{{!}}'''Number of competitions volunteered at'''
{{!}}{{{volunteer_comps|}}}
{{!}}-
}}
{{#if: {{{volunteer_tests_written|}}}|
{{!}}'''Number of tests written'''
{{!}}{{{volunteer_tests_written|}}}
{{!}}-
}}

The code allows for reverse-compatibility and should not break any previous versions. Please let me know if adding this is fine so that I can make the changes. --Nydauronchitchat 18:51, 21 April 2020 (UTC)

Support.png Support — I'm obviously not the end-all authority on this, but as someone who is fixing to start my final year of Div. C in the fall I really like the idea. You could also potentially include a parameter for "tests written" as well, since a lot of people in the Div. D scene seem to enjoy that sort of thing. --Jaspattack (talk) 20:34, 21 April 2020 (UTC)
Oooh that's true. I forgot about test writing (I'm not really a test writer :P). I have updated the code in the original post to include an option to display the number of tests written. --Nydauronchitchat 21:06, 21 April 2020 (UTC)
Support.png Support — Sure, go ahead. Just make labels smaller. ~ Pepperonipi talk 23:13, 21 April 2020 (UTC)