Difference between revisions of "Template:Infobox user/doc"

From Wiki - Scioly.org
Jump to navigation Jump to search
(Added categories)
m (→‎General Information: fixed unmatched parentheses)
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{TemplateDocStart}}
+
 
 
The '''UserInfoBox''' template is a template used to generate an infobox for a user.
 
The '''UserInfoBox''' template is a template used to generate an infobox for a user.
  
Line 10: Line 10:
 
:<code><nowiki>yearcount</nowiki></code> - the total number of years the User competed in SO (there is a separate category for volunteering)
 
:<code><nowiki>yearcount</nowiki></code> - the total number of years the User competed in SO (there is a separate category for volunteering)
 
:<code><nowiki>team</nowiki></code> - the team/school which the User currently attends
 
:<code><nowiki>team</nowiki></code> - the team/school which the User currently attends
:<code><nowiki>grade</nowiki></code> - grade or year the User is currently (values can be numerical (e.g. 7, 9, 12) or non-numerical (e.g. freshman, junior)
+
:<code><nowiki>grade</nowiki></code> - grade or year the User is currently (values can be numerical (e.g. 7, 9, 12) or non-numerical (e.g. freshman, junior))
 
:<code><nowiki>past teams</nowiki></code> - any past teams/schools which the User was a part of
 
:<code><nowiki>past teams</nowiki></code> - any past teams/schools which the User was a part of
 
:<code><nowiki>state</nowiki></code> - the State that the User competes in
 
:<code><nowiki>state</nowiki></code> - the State that the User competes in
 
:<code><nowiki>division</nowiki></code> - the Division that the User competes in
 
:<code><nowiki>division</nowiki></code> - the Division that the User competes in
 +
 
==== Scioly.org Information ====
 
==== Scioly.org Information ====
 
:<code><nowiki>forum</nowiki></code> - the link to the User's scioly.org profile
 
:<code><nowiki>forum</nowiki></code> - the link to the User's scioly.org profile
Line 23: Line 24:
 
:<code><nowiki>medals_regional</nowiki></code> - the total number of medals/awards from Regional tournaments the User has won
 
:<code><nowiki>medals_regional</nowiki></code> - the total number of medals/awards from Regional tournaments the User has won
 
:<code><nowiki>medals_state</nowiki></code> - the total number of medals/awards from State tournaments the User has won
 
:<code><nowiki>medals_state</nowiki></code> - the total number of medals/awards from State tournaments the User has won
:<code><nowiki>medals_nationals</nowiki></code> - the total number of medals/awards from National tournaments the User has won
+
:<code><nowiki>medals_myso</nowiki></code> - the total number of medals/awards from MYSO the User has won
 
==== Competitor Info ====
 
==== Competitor Info ====
 
:<code><nowiki>comp_total</nowiki></code> - the total number of SO competitions the User has competed in
 
:<code><nowiki>comp_total</nowiki></code> - the total number of SO competitions the User has competed in
Line 35: Line 36:
 
:<code><nowiki>volunteer_comps</nowiki></code> - the total number of competitions that the User has volunteered at
 
:<code><nowiki>volunteer_comps</nowiki></code> - the total number of competitions that the User has volunteered at
 
:<code><nowiki>volunteer_tests_written</nowiki></code> - the total number of tests written by the User
 
:<code><nowiki>volunteer_tests_written</nowiki></code> - the total number of tests written by the User
 +
==== Social media ====
 +
:<code><nowiki>email</nowiki></code> - the user's email address (reminder to not share too much personal information)
 +
:<code><nowiki>facebook</nowiki></code> - the user's facebook profile (reminder to not share too much personal information)
 +
:<code><nowiki>twitter</nowiki></code> - the user's twitter handle (reminder to not share too much personal information)
 +
:<code><nowiki>instagram</nowiki></code> - the user's instagram handle (reminder to not share too much personal information)
 +
:<code><nowiki>Website</nowiki></code> - the user's website (reminder to not share too much personal information)
 +
:<code><nowiki>discord</nowiki></code> - the user's discord handle (reminder to not share too much personal information)
  
 
== Usage ==
 
== Usage ==
Line 255: Line 263:
 
|-
 
|-
 
|}
 
|}
 +
<includeonly>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:User Templates]]
 
[[Category:User Templates]]
[[Category:Organization Templates]]
+
[[Category:Infobox Templates]]
 +
</includeonly>
 +
<noinclude>
 +
[[Category:Documentation]]
 +
</noinclude>

Revision as of 06:29, 29 May 2021

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
}}

Template:UserInfoBox

{{UserInfoBox
|yearcount=6
|logo=File:BocaInvasive 1.png
}}

Template:UserInfoBox

{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
}}

Template:UserInfoBox

{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
|grade=12
}}

Template:UserInfoBox

{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
|grade=Senior
}}

Template:UserInfoBox

{{UserInfoBox
|yearcount=6
|state=[[Missouri|MO]]
|division=C
|medals_total=25
}}

Template:UserInfoBox

{{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
}}

Template:UserInfoBox

{{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
}}

Template:UserInfoBox

{{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
}}

Template:UserInfoBox