Difference between revisions of "Template:UserInfoBox"

From Wiki - Scioly.org
Jump to: navigation, search
m (=) Reordering medal list to match competitions attended list :)
 
(14 intermediate revisions by 5 users not shown)
Line 55: Line 55:
 
{{!}}'''Division'''
 
{{!}}'''Division'''
 
{{!}}{{{division|}}}
 
{{!}}{{{division|}}}
{{!}}-
 
}}
 
{{#if: {{{State|}}}|
 
{{!}}colspan="2"{{!}}<center>[[File:{{{State|}}}.svg|200px]]</center>
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 79: Line 75:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{medals_total|}}}{{{medals_invite|}}}{{{medals_regional|}}}{{{medals_state|}}}{{{medals_nationals|}}}{{{medals_myso|}}}{{{medals_1|}}}{{{medals_2|}}}{{{medals_3|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Achievements'''
+
{{#if: {{{medals_total|}}}{{{medals_invite|}}}{{{medals_regional|}}}{{{medals_state|}}}{{{medals_nationals|}}}{{{medals_myso|}}}{{{medals_1|}}}{{{medals_2|}}}{{{medals_3|}}}| {{!}}colspan="2" class="infobox-header" {{!}}'''Medals'''
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{medals_total|}}}|  
+
{{#if: {{{medals_total|}}}{{{medals_invite|}}}{{{medals_regional|}}}{{{medals_state|}}}{{{medals_nationals|}}}{{{medals_myso|}}}{{{medals_1|}}}{{{medals_2|}}}{{{medals_3|}}}|  
 
{{!}}'''Total medals'''
 
{{!}}'''Total medals'''
{{!}}{{{medals_total|}}}
+
{{!}}{{#if: {{{medals_total|}}}|{{{medals_total|}}}|{{#if: {{{medals_invite|}}}{{{medals_regional|}}}{{{medals_state|}}}{{{medals_nationals|}}}{{{medals_myso|}}}|{{#invoke: Math|sum|{{{medals_invite|0}}}|{{{medals_regional|0}}}|{{{medals_state|0}}}|{{{medals_nationals|0}}}|{{{medals_myso|0}}}}}|{{#invoke: Math|sum|{{{medals_1|0}}}|{{{medals_2|0}}}|{{{medals_3|0}}}}}}}}}
{{!}}-
+
{{#if: {{{medals_invite|}}}{{{medals_regional|}}}{{{medals_state|}}}{{{medals_nationals|}}}{{{medals_myso|}}}|
 +
{{Bulleted list
 +
|{{#if:{{{medals_invite|}}}|
 +
{{#ifeq:{{{medals_invite|}}} | 1 |{{{medals_invite}}} invitational medal|{{{medals_invite}}} invitational medals}}
 +
}}
 +
|{{#if:{{{medals_regional|}}}|
 +
{{#ifeq:{{{medals_regional|}}} | 1 |{{{medals_regional}}} regional medal|{{{medals_regional}}} regional medals}}
 +
}}
 +
|{{#if:{{{medals_state|}}}|
 +
{{#ifeq:{{{medals_state|}}} | 1 |{{{medals_state}}} state medal|{{{medals_state}}} state medals}}
 +
}}
 +
|{{#if:{{{medals_nationals|}}}|
 +
{{#ifeq:{{{medals_nationals|}}} | 1 |{{{medals_nationals}}} national medal|{{{medals_nationals}}} national medals}}
 +
}}
 +
|{{#if:{{{medals_myso|}}}|
 +
{{#ifeq:{{{medals_myso|}}} | 1 |{{{medals_myso}}} [[MY SO]] medal|{{{medals_myso}}} [[MY SO]] medals}}
 
}}
 
}}
{{#if: {{{medals_invite|}}}|
 
{{!}}'''Invitational medals'''
 
{{!}}{{{medals_invite|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{medals_regional|}}}|
 
{{!}}'''Regional medals'''
 
{{!}}{{{medals_regional|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{medals_state|}}}|  
+
{{#if: {{{medals_1|}}}{{{medals_2|}}}{{{medals_3|}}}|
{{!}}'''State medals'''
+
{{Bulleted list
{{!}}{{{medals_state|}}}
+
|{{#if:{{{medals_1|}}}|
{{!}}-
+
{{#ifeq:{{{medals_1|}}} | 1 |{{{medals_1}}} gold medal|{{{medals_1}}} gold medals}}
 
}}
 
}}
{{#if: {{{medals_nationals|}}}|  
+
|{{#if:{{{medals_2|}}}|
{{!}}'''National medals'''
+
{{#ifeq:{{{medals_2|}}} | 1 |{{{medals_2}}} silver medal|{{{medals_2}}} silver medals}}
{{!}}{{{medals_nationals|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{medals_myso|}}}|  
+
|{{#if:{{{medals_3|}}}|
{{!}}''MYSO medals''
+
{{#ifeq:{{{medals_3|}}} | 1 |{{{medals_3}}} bronze medal|{{{medals_3}}} bronze medals}}
{{!}}{{{medals_myso|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{medals_1|}}}|
 
{{!}}'''Gold medals'''
 
{{!}}{{{medal_1|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{medals_2|}}}|
 
{{!}}'''Silver medals'''
 
{{!}}{{{medal_2|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{medals_3|}}}|
 
{{!}}'''Bronze medals'''
 
{{!}}{{{medal_3|}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 130: Line 118:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{comp_total|}}}|
+
{{#if: {{{comp_total|}}}{{{comp_invite|}}}{{{comp_regional|}}}{{{comp_state|}}}{{{comp_nationals|}}}|
{{!}}'''Competitons attended'''
+
{{!}}'''Competitions attended'''
{{!}}{{{comp_total|}}}
+
{{!}}{{#if: {{{comp_total|}}}|{{{comp_total|}}}|{{#if: {{{comp_regional|}}}{{{comp_invite|}}}{{{comp_state|}}}{{{comp_nationals|}}}|{{#invoke: Math|sum|{{{comp_regional|0}}}|{{{comp_invite|0}}}|{{{comp_state|0}}}|{{{comp_nationals|0}}}}}}}}}
{{!}}-
+
{{#if: {{{comp_invite|}}}{{{comp_regional|}}}{{{comp_state|}}}{{{comp_nationals|}}}|
 +
{{Bulleted list
 +
 
 +
|{{#if:{{{comp_invite|}}}|
 +
{{#ifeq:{{{comp_invite|}}} | 1 |{{{comp_invite}}} invitational|{{{comp_invite}}} invitationals}}
 +
}}
 +
|{{#if:{{{comp_regional|}}}|
 +
{{#ifeq:{{{comp_regional|}}} | 1 |{{{comp_regional}}} regional|{{{comp_regional}}} regionals}}
 +
}}
 +
|{{#if:{{{comp_state|}}}|
 +
{{#ifeq:{{{comp_state|}}} | 1 |{{{comp_state}}} state|{{{comp_state}}} states}}
 
}}
 
}}
{{#if: {{{comp_invite|}}}|
+
|{{#if:{{{comp_nationals|}}}|
{{!}}'''Invitationals attended'''
+
{{#ifeq:{{{comp_nationals|}}} | 1 |{{{comp_nationals}}} national|{{{comp_nationals}}} nationals}}
{{!}}{{{comp_invite|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{comp_regional|}}}|
 
{{!}}'''Regionals attended'''
 
{{!}}{{{comp_regional|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{comp_state|}}}|
 
{{!}}'''States attended'''
 
{{!}}{{{comp_state|}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{comp_nationals|}}}|
 
{{!}}'''Nationals attended'''
 
{{!}}{{{comp_nationals|}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 160: Line 145:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{volunteer_years|}}}{{{volunteer_comps|}}}{{{volunteer_tests_written|}}}{{{volunteer_events_ran}}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Volunteering'''
+
{{#if: {{{volunteer_years|}}}{{{volunteer_comps|}}}{{{volunteer_tests_written|}}}{{{volunteer_events_ran|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Volunteering'''
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 188: Line 173:
 
{{#if: {{{email|}}}|
 
{{#if: {{{email|}}}|
 
{{!}}'''Email'''
 
{{!}}'''Email'''
{{!}}[mailto:{{{email|}}} {{{email|}}}]
+
{{!}}{{mailto|{{{email|}}}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Latest revision as of 20:11, 9 April 2021

UserInfoBox
Template documentation[view] [edit] [history] [purge]

The UserInfoBox template is a template used to generate an infobox for a user.

Parameters

All parameters are optional. Any unused parameters will not be displayed in the infobox.

Title

usernamestyle - a styled version of your username to override the default capitalized title on MediaWiki (ex. "sciolyperson1" vs "Sciolyperson1")
logo - shows an image (that was uploaded to the SciOly wiki) that represents the User (i.e. a profile picture)

General Information

yearcount - the total number of years the User competed in SO (there is a separate category for volunteering)
team - the team/school which the User currently attends
grade - grade or year the User is currently (values can be numerical (e.g. 7, 9, 12) or non-numerical (e.g. freshman, junior)
past teams - any past teams/schools which the User was a part of
state - the State that the User competes in
division - the Division that the User competes in

Scioly.org Information

forum - the link to the User's scioly.org profile
staff - the User's staff role, if applicable
exalted - the number of times the User has been exalted, if applicable

Achievements

medals_total - the total number of medals/awards the User has won
medals_invite - the total number of medals/awards from Invitational tournaments the User has won
medals_regional - the total number of medals/awards from Regional tournaments the User has won
medals_state - the total number of medals/awards from State tournaments the User has won
medals_myso - the total number of medals/awards from MYSO the User has won

Competitor Info

comp_total - the total number of SO competitions the User has competed in
comp_invite - the total number of Invitational tournaments the User has competed in
comp_regional - the total number of Regional tournaments the User has competed in
comp_state - the total number of State tournaments the User has competed in
comp_nationals - the total number of National tournaments the User has competed in
comp_events_total - the total number of events the User has competed in

Volunteering

volunteer_years - the total number of years the User has volunteered for SO competitions
volunteer_comps - the total number of competitions that the User has volunteered at
volunteer_tests_written - the total number of tests written by the User

Social media

email - the user's email address (reminder to not share too much personal information)
facebook - the user's facebook profile (reminder to not share too much personal information)
twitter - the user's twitter handle (reminder to not share too much personal information)
instagram - the user's instagram handle (reminder to not share too much personal information)
Website - the user's website (reminder to not share too much personal information)
discord - the user's discord handle (reminder to not share too much personal information)

Usage

The template should be placed at the very top of an article, with no empty line breaks before or after the template. Note that it is not necessary to use all parameters. Unused parameters will not be displayed in the infobox.

Examples

Code Result
{{UserInfoBox
|yearcount=6
}}
UserInfoBox
General Information
Years in SO 6
{{UserInfoBox
|yearcount=6
|logo=File:BocaInvasive 1.png
}}
UserInfoBox
BocaInvasive 1.png
General Information
Years in SO 6
{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
}}
UserInfoBox
General Information
Years in SO 6
State MO
{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
|grade=12
}}
UserInfoBox
General Information
Years in SO 6
Grade 12th
State MO
{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
|grade=Senior
}}
UserInfoBox
General Information
Years in SO 6
Grade Senior
State MO
{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
|division=C
|medals_total=25
}}
UserInfoBox
General Information
Years in SO 6
State MO
Division C
Medals
Total medals 25


{{UserInfoBox
|usernamestyle=username
|yearcount=6
|team=[[Ladue Horton Watkins High School]]
|past teams=[[Ladue Middle School]]
|state=[[Missouri|MO]]
|division=C
|staff=Global Moderator
|exalted=3
|forum=https://scioly.org
|medals_total=25
|medals_invite=15
|medals_regional=5
|medals_state=4
|medals_nationals=1
}}
username
General Information
Years in SO 6
Current Team Ladue Horton Watkins High School
Past Team(s) Ladue Middle School
State MO
Division C
Scioly.org Information
Forum profile username
Staff Position Global Moderator
Exalted 3x
Gold.gifGold.gifGold.gif
Medals
Total medals 25
  • 15 invitational medals
  • 5 regional medals
  • 4 state medals
  • 1 national medal
{{UserInfoBox
|usernamestyle=username
|yearcount=6
|team=[[Ladue Horton Watkins High School]]
|past teams=[[Ladue Middle School]]
|state=[[Missouri|MO]]
|division=C
|staff=Global Moderator
|exalted=3
|forum=https://scioly.org
|medals_total=25
|medals_invite=15
|medals_regional=5
|medals_state=4
|medals_nationals=1
|volunteer_years=2
|volunteer_comps=3
|volunteer_tests_written=2
}}
username
General Information
Years in SO 6
Current Team Ladue Horton Watkins High School
Past Team(s) Ladue Middle School
State MO
Division C
Scioly.org Information
Forum profile username
Staff Position Global Moderator
Exalted 3x
Gold.gifGold.gifGold.gif
Medals
Total medals 25
  • 15 invitational medals
  • 5 regional medals
  • 4 state medals
  • 1 national medal
Volunteering
Years volunteered 2
Number of competitions 3
Number of tests written 2
{{UserInfoBox
|usernamestyle=username
|yearcount=6
|team=[[Ladue Horton Watkins High School]]
|past teams=[[Ladue Middle School]]
|state=[[Missouri|MO]]
|division=C
|staff=Global Moderator
|exalted=3
|forum=https://scioly.org
|medals_total=25
|medals_invite=15
|medals_regional=5
|medals_state=4
|medals_nationals=1
|volunteer_years=2
|volunteer_comps=3
|volunteer_tests_written=2
|comp_total=27
|comp_invite=16
|comp_regional=6
|comp_state=4
|comp_nationals=1
|comp_events_total=9
}}
username
General Information
Years in SO 6
Current Team Ladue Horton Watkins High School
Past Team(s) Ladue Middle School
State MO
Division C
Scioly.org Information
Forum profile username
Staff Position Global Moderator
Exalted 3x
Gold.gifGold.gifGold.gif
Medals
Total medals 25
  • 15 invitational medals
  • 5 regional medals
  • 4 state medals
  • 1 national medal
Competitor Info
Competitions attended 27
  • 16 invitationals
  • 6 regionals
  • 4 states
  • 1 national
Events competed in 9
Volunteering
Years volunteered 2
Number of competitions 3
Number of tests written 2