Difference between revisions of "Template:Infobox user"
Jump to navigation
Jump to search
Tag: Undo |
Pepperonipi (talk | contribs) (why is this here) |
||
(47 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | { | + | {{#css: |
+ | @media (max-width: 500px) { | ||
+ | table.infobox { | ||
+ | position: relative; | ||
+ | float: none; | ||
+ | left: 50%; | ||
+ | transform: translateX(-50%); | ||
+ | margin: 0; | ||
+ | width: auto; | ||
+ | width: -webkit-fit-content; | ||
+ | width: -moz-fit-content; | ||
+ | width: fit-content; | ||
+ | } | ||
+ | } | ||
+ | }}{|align="right" class="infobox" | ||
|- | |- | ||
− | ! colspan="2" style="font-size: larger; text-align: center;" | '''{{PAGENAME}}''' | + | ! colspan="2" style="font-size: larger; text-align: center;" | '''{{#if: {{{usernamestyle|}}}|{{{usernamestyle|}}}|{{PAGENAME}}}}''' |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{logo|}}}| |
+ | {{!}}colspan="2"{{!}}<center>[[{{{logo|}}}|75px]]</center> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{yearcount|}}}{{{team|}}}{{{past teams|}}}{{{state|}}}{{{division|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''General Information''' |
− | {{ | ||
− | {{!}}{{ | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{yearcount|}}}| |
{{!}}'''Years in SO''' | {{!}}'''Years in SO''' | ||
− | {{!}}{{{ | + | {{!}}{{{yearcount|}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{team|}}}| | {{#if: {{{team|}}}| | ||
− | {{!}}'''Team''' | + | {{!}}'''Current Team''' |
{{!}}{{{team|}}} | {{!}}{{{team|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{grade|}}}| | ||
+ | {{!}}'''Grade''' | ||
+ | {{!}}{{#iferror: {{#expr: {{{grade|}}}}} | ||
+ | | {{{grade|}}} | ||
+ | | {{{grade|}}}th | ||
+ | }} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 36: | Line 57: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{forum|}}}{{{staff|}}}{{{exalted|}}}| {{!}}colspan="2" | + | {{#if: {{{forum|}}}{{{staff|}}}{{{exalted|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Scioly.org Information''' |
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{forum|}}}| | {{#if: {{{forum|}}}| | ||
{{!}}'''Forum profile''' | {{!}}'''Forum profile''' | ||
− | {{!}}{{{forum|}}} | + | {{!}}{{#if: {{{usernamestyle|}}}|[{{{forum|}}} {{{usernamestyle|}}}]|{{{forum|}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 51: | Line 72: | ||
{{#if: {{{exalted|}}}| | {{#if: {{{exalted|}}}| | ||
{{!}}'''Exalted''' | {{!}}'''Exalted''' | ||
− | {{!}}{{{exalted|}}} | + | {{!}}{{{exalted|}}}x{{#switch: {{{exalted|}}}|1={{break}}[[File:Gold.gif]]|2={{break}}[[File:Gold.gif]][[File:Gold.gif]]|3={{break}}[[File:Gold.gif]][[File:Gold.gif]][[File:Gold.gif]]}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{medals_total|}}}{{{medals_invite|}}}{{{medals_regional|}}}{{{medals_state|}}}{{{medals_nationals|}}}{{{medals_myso|}}}{{{medals_1|}}}{{{medals_2|}}}{{{medals_3|}}}| {{!}}colspan="2" class="infobox-header" <hr>{{!}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{medals_total|}}}| |
{{!}}'''Total medals''' | {{!}}'''Total medals''' | ||
− | {{!}}{{{ | + | {{!}}{{{medals_total|}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{medals_invite|}}}| |
{{!}}'''Invitational medals''' | {{!}}'''Invitational medals''' | ||
− | {{!}}{{{ | + | {{!}}{{{medals_invite|}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{medals_regional|}}}| |
{{!}}'''Regional medals''' | {{!}}'''Regional medals''' | ||
− | {{!}}{{{ | + | {{!}}{{{medals_regional|}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{medals_state|}}}| |
{{!}}'''State medals''' | {{!}}'''State medals''' | ||
− | {{!}}{{{ | + | {{!}}{{{medals_state|}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{medals_nationals|}}}| |
{{!}}'''National medals''' | {{!}}'''National medals''' | ||
− | {{!}}{{{''' | + | {{!}}{{{medals_nationals|}}} |
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{medals_myso|}}}| | ||
+ | {{!}}''MYSO medals'' | ||
+ | {{!}}{{{medals_myso|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{medals_1|}}}| | ||
+ | {{!}}'''Gold medals''' | ||
+ | {{!}}{{{medals_1|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{medals_2|}}}| | ||
+ | {{!}}'''Silver medals''' | ||
+ | {{!}}{{{medals_2|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{medals_3|}}}| | ||
+ | {{!}}'''Bronze medals''' | ||
+ | {{!}}{{{medals_3|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_total|}}}{{{comp_invite|}}}{{{comp_regional|}}}{{{comp_state|}}}{{{comp_nationals|}}}{{{comp_events_total|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Competitor Info''' | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_total|}}}| | ||
+ | {{!}}'''Competitions attended''' | ||
+ | {{!}}{{{comp_total|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_invite|}}}| | ||
+ | {{!}}'''Invitationals attended''' | ||
+ | {{!}}{{{comp_invite|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_regional|}}}| | ||
+ | {{!}}'''Regionals attended''' | ||
+ | {{!}}{{{comp_regional|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_state|}}}| | ||
+ | {{!}}'''States attended''' | ||
+ | {{!}}{{{comp_state|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_nationals|}}}| | ||
+ | {{!}}'''Nationals attended''' | ||
+ | {{!}}{{{comp_nationals|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{comp_events_total|}}}| | ||
+ | {{!}}'''Events competed in''' | ||
+ | {{!}}{{{comp_events_total|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{volunteer_years|}}}{{{volunteer_comps|}}}{{{volunteer_tests_written|}}}{{{volunteer_events_ran|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Volunteering''' | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{volunteer_years|}}}| | ||
+ | {{!}}'''Years volunteered''' | ||
+ | {{!}}{{{volunteer_years|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{volunteer_comps|}}}| | ||
+ | {{!}}'''Number of competitions''' | ||
+ | {{!}}{{{volunteer_comps|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{volunteer_tests_written|}}}| | ||
+ | {{!}}'''Number of tests written''' | ||
+ | {{!}}{{{volunteer_tests_written|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{volunteer_events_ran|}}}| | ||
+ | {{!}}'''Number of events ran''' | ||
+ | {{!}}{{{volunteer_events_ran|}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{facebook|}}}{{{twitter|}}}{{{instagram|}}}{{{email|}}}{{{Website|}}}{{{discord|}}}| {{!}}colspan="2" class="infobox-header"{{!}}'''Social Media''' | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{email|}}}| | ||
+ | {{!}}'''Email''' | ||
+ | {{!}}[mailto:{{{email|}}} {{{email|}}}] | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | |} | + | {{#if: {{{facebook|}}}| {{!}}'''Facebook''' |
− | + | {{!}}{{Facebook|{{{facebook|}}}}} | |
− | + | {{!}}-}} | |
− | {{ | + | {{#if: {{{twitter|}}}| {{!}}'''Twitter''' |
− | + | {{!}}{{Twitter|{{{twitter|}}}}} | |
− | + | {{!}}-}} | |
+ | {{#if: {{{instagram|}}}| {{!}}'''Instagram''' | ||
+ | {{!}}{{Instagram|{{{instagram|}}}}} | ||
+ | {{!}}-}} | ||
+ | {{#if: {{{Website|}}}| {{!}}'''Website''' | ||
+ | {{!}}{{{Website|}}} | ||
+ | {{!}}-}} | ||
+ | {{#if: {{{discord|}}}| {{!}}'''Discord''' | ||
+ | {{!}}{{{discord|}}} | ||
+ | {{!}}-}} | ||
+ | |}<noinclude> | ||
+ | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 05:06, 2 February 2021
Infobox user |
---|
The Infobox user template is a template used to generate an infobox for a user.
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox user |yearcount=6}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |yearcount=6 |logo=File:BocaInvasive 1.png}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |yearcount=6 |state=[[Missouri|MO]]}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |yearcount=6 |state=[[Missouri|MO]] |grade=12}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |yearcount=6 |state=[[Missouri|MO]] |grade=Senior}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |yearcount=6 |state=[[Missouri|MO]] |division=C |medals_total=25}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |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}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |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}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox user |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}} |
|
The above documentation is transcluded from Template:Infobox user/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |