Difference between revisions of "Template:Infobox user/doc"
Jump to navigation
Jump to search
(testing) |
Jaspattack (talk | contribs) m |
||
(17 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
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. | ||
== Parameters == | == Parameters == | ||
− | :<code><nowiki> | + | All parameters are optional. Any unused parameters will not be displayed in the infobox. |
− | :<code><nowiki> | + | ==== Title ==== |
− | :<code><nowiki> | + | :<code><nowiki>usernamestyle</nowiki></code> - a styled version of your username to override the default capitalized title on MediaWiki (ex. "sciolyperson1" vs "Sciolyperson1") |
− | :<code><nowiki> | + | :<code><nowiki>logo</nowiki></code> - shows an image (that was uploaded to the SciOly wiki) that represents the User (i.e. a profile picture) |
− | :<code><nowiki>Website</nowiki></code> - website | + | ==== General Information ==== |
+ | :<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>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>state</nowiki></code> - the State that the User competes in | ||
+ | :<code><nowiki>division</nowiki></code> - the Division that the User competes in | ||
+ | ==== Scioly.org Information ==== | ||
+ | :<code><nowiki>forum</nowiki></code> - the link to the User's scioly.org profile | ||
+ | :<code><nowiki>staff</nowiki></code> - the User's staff role, if applicable | ||
+ | :<code><nowiki>exalted</nowiki></code> - the number of times the User has been exalted, if applicable | ||
+ | ==== Achievements ==== | ||
+ | :<code><nowiki>medals_total</nowiki></code> - the total number of medals/awards the User has won | ||
+ | :<code><nowiki>medals_invite</nowiki></code> - the total number of medals/awards from Invitational 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_nationals</nowiki></code> - the total number of medals/awards from National tournaments the User has won | ||
+ | ==== Competitor Info ==== | ||
+ | :<code><nowiki>comp_total</nowiki></code> - the total number of SO competitions the User has competed in | ||
+ | :<code><nowiki>comp_invite</nowiki></code> - the total number of Invitational tournaments the User has competed in | ||
+ | :<code><nowiki>comp_regional</nowiki></code> - the total number of Regional tournaments the User has competed in | ||
+ | :<code><nowiki>comp_state</nowiki></code> - the total number of State tournaments the User has competed in | ||
+ | :<code><nowiki>comp_nationals</nowiki></code> - the total number of National tournaments the User has competed in | ||
+ | :<code><nowiki>comp_events_total</nowiki></code> - the total number of events the User has competed in | ||
+ | ==== Volunteering ==== | ||
+ | :<code><nowiki>volunteer_years</nowiki></code> - the total number of years the User has volunteered for SO competitions | ||
+ | :<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 | ||
+ | ==== 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 == | ||
− | The template should be placed at the very top of an article, with no empty line breaks before or after the template | + | 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 == | == Examples == | ||
Line 19: | Line 53: | ||
|<pre> | |<pre> | ||
{{UserInfoBox | {{UserInfoBox | ||
− | | | + | |yearcount=6 |
+ | }} | ||
+ | </pre> | ||
+ | | | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | }} | ||
+ | |- | ||
+ | |<pre> | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |logo=File:BocaInvasive 1.png | ||
+ | }} | ||
+ | </pre> | ||
+ | | | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |logo=File:BocaInvasive 1.png | ||
+ | }} | ||
+ | |- | ||
+ | |<pre> | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | }} | ||
+ | </pre> | ||
+ | | | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | }} | ||
+ | |- | ||
+ | |<pre> | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | |grade=12 | ||
+ | }} | ||
+ | </pre> | ||
+ | | | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | |grade=12 | ||
+ | }} | ||
+ | |- | ||
+ | |<pre> | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | |grade=Senior | ||
+ | }} | ||
+ | </pre> | ||
+ | | | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | |grade=Senior | ||
+ | }} | ||
+ | |- | ||
+ | |<pre> | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | |division=C | ||
+ | |medals_total=25 | ||
+ | }} | ||
+ | </pre> | ||
+ | | | ||
+ | {{UserInfoBox | ||
+ | |yearcount=6 | ||
+ | |state=[[Missouri|MO]] | ||
+ | |division=C | ||
+ | |medals_total=25 | ||
+ | }} | ||
+ | |- | ||
+ | |<pre> | ||
+ | {{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 | ||
}} | }} | ||
</pre> | </pre> | ||
| | | | ||
{{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 | ||
}} | }} | ||
|- | |- | ||
|<pre> | |<pre> | ||
{{UserInfoBox | {{UserInfoBox | ||
− | | | + | |usernamestyle=username |
− | | | + | |yearcount=6 |
− | |state=[[ | + | |team=[[Ladue Horton Watkins High School]] |
− | |division= | + | |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 | ||
}} | }} | ||
</pre> | </pre> | ||
| | | | ||
{{UserInfoBox | {{UserInfoBox | ||
− | | | + | |usernamestyle=username |
− | | | + | |yearcount=6 |
− | |state=[[ | + | |team=[[Ladue Horton Watkins High School]] |
− | |division= | + | |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 | ||
}} | }} | ||
|- | |- | ||
|<pre> | |<pre> | ||
{{UserInfoBox | {{UserInfoBox | ||
− | | | + | |usernamestyle=username |
− | | | + | |yearcount=6 |
− | |state=[[ | + | |team=[[Ladue Horton Watkins High School]] |
− | |division= | + | |past teams=[[Ladue Middle School]] |
− | |exalted= | + | |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 | ||
}} | }} | ||
</pre> | </pre> | ||
| | | | ||
{{UserInfoBox | {{UserInfoBox | ||
− | | | + | |usernamestyle=username |
− | | | + | |yearcount=6 |
− | |state=[[ | + | |team=[[Ladue Horton Watkins High School]] |
− | |division= | + | |past teams=[[Ladue Middle School]] |
− | |exalted= | + | |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 | ||
}} | }} | ||
|- | |- | ||
|} | |} | ||
+ | <includeonly> | ||
+ | [[Category:Templates]] | ||
+ | [[Category:User Templates]] | ||
+ | [[Category:Infobox Templates]] | ||
+ | </includeonly> | ||
+ | <noinclude> | ||
+ | [[Category:Documentation]] | ||
+ | </noinclude> |
Revision as of 19:02, 3 August 2020
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 attendsgrade
- 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 ofstate
- the State that the User competes indivision
- the Division that the User competes in
Scioly.org Information
forum
- the link to the User's scioly.org profilestaff
- the User's staff role, if applicableexalted
- the number of times the User has been exalted, if applicable
Achievements
medals_total
- the total number of medals/awards the User has wonmedals_invite
- the total number of medals/awards from Invitational tournaments the User has wonmedals_regional
- the total number of medals/awards from Regional tournaments the User has wonmedals_state
- the total number of medals/awards from State tournaments the User has wonmedals_nationals
- the total number of medals/awards from National tournaments the User has won
Competitor Info
comp_total
- the total number of SO competitions the User has competed incomp_invite
- the total number of Invitational tournaments the User has competed incomp_regional
- the total number of Regional tournaments the User has competed incomp_state
- the total number of State tournaments the User has competed incomp_nationals
- the total number of National tournaments the User has competed incomp_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 competitionsvolunteer_comps
- the total number of competitions that the User has volunteered atvolunteer_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 |yearcount=6 |logo=File:BocaInvasive 1.png }} |
|
{{UserInfoBox |yearcount=6 |state=[[Missouri|MO]] }} |
|
{{UserInfoBox |yearcount=6 |state=[[Missouri|MO]] |grade=12 }} |
|
{{UserInfoBox |yearcount=6 |state=[[Missouri|MO]] |grade=Senior }} |
|
{{UserInfoBox |yearcount=6 |state=[[Missouri|MO]] |division=C |medals_total=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 }} |
|
{{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 }} |
|
{{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 }} |