More actions
Added mentortype toggle to consolidate templates. |
m Rewrite to use meta template {{Infobox}} as by project "Cleanup Infobox Templates" |
||
| Line 1: | Line 1: | ||
< | {{Infobox | ||
| name = <!-- left empty, to NOT have edit links at the bottom of the box.--> | |||
| bodystyle = width: 26em; | |||
| title = | |||
| | | above = {{#if: {{{mentor name|}}} | ||
| {{#ifexist: User:{{{mentor page name|}}} | |||
|- | | [[User:{{{mentor page name}}}|<span {{#ifeq: {{lc: {{{mentortype}}} }}| officer | style="color: #FFD200;"}}>{{{mentor name}}}</span>]] | ||
| | | {{{mentor name}}} | ||
}} | |||
| Mentor name? | |||
}} | |||
| abovestyle = {{#switch: {{lc: {{{mentortype|}}} }} | |||
| | | #default = background: #172489; | ||
background-image: -moz-linear-gradient(center top, #172489 0%, #3D85C6 100%); | |||
background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#172489), color-stop(100%,#3D85C6)); | |||
{{#if: {{{ | background-image: -webkit-linear-gradient(top, #172489 0%, #3D85C6 100%); | ||
| | background-image: -o-linear-gradient(top, #172489 0%, #3D85C6 100%); | ||
background-image: -ms-linear-gradient(top, #172489 0%, #3D85C6 100%); | |||
background-image: linear-gradient(to bottom, #172489 0%, #3D85C6 100%); | |||
color: lightgrey; | |||
| manager = background: #3DAC00; | |||
background-image: -moz-linear-gradient(center top, #3DAC00 0%, #2E8100 100%); | |||
background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#3DAC00), color-stop(100%,#2E8100)); | |||
background-image: -webkit-linear-gradient(top, #3DAC00 0%, #2E8100 100%); | |||
background-image: -o-linear-gradient(top, #3DAC00 0%, #2E8100 100%); | |||
background-image: -ms-linear-gradient(top, #3DAC00 0%, #2E8100 100%); | |||
| | background-image: linear-gradient(to bottom, #3DAC00 0%, #2E8100 100%); | ||
color: lightgrey; | |||
| | | officer = background: #C1C100; | ||
{{#if: {{{skillset|}}} | | background-image: -moz-linear-gradient(center top, #C1C100 0%, #919100 100%); | ||
< | background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#C1C100), color-stop(100%,#919100)); | ||
background-image: -webkit-linear-gradient(top, #C1C100 0%, #919100 100%); | |||
| | background-image: -o-linear-gradient(top, #C1C100 0%, #919100 100%); | ||
{{#if: {{{playtimesed | background-image: -ms-linear-gradient(top, #C1C100 0%, #919100 100%); | ||
| | background-image: linear-gradient(to bottom, #C1C100 0%, #919100 100%); | ||
{{#if: {{{playtimes | color: lightgrey; | ||
< | }} | ||
| | | image = {{#if: {{{imagecorp|}}} | ||
{{#if: {{{biography | | <div style="float: right;">[[File:{{{imagecorp}}}|64px]]{{#if: {{{imagealliance|}}} | ||
< | | <br>[[File:{{{imagealliance}}}|64px]] | ||
}}</div>}}{{#if: {{{image|}}} | |||
| [[File:{{{image}}}|200px|link= {{#ifexist: User:{{{mentor page name|}}} | User:{{{mentor page name}}} }}|{{{mentor name}}}]] | |||
}} | |||
| | |||
| headerstyle = {{#switch: {{lc: {{{mentortype|}}} }} | |||
| | | #default = background: #172489; | ||
background-image: -moz-linear-gradient(center top, #172489 0%, #3D85C6 100%); | |||
| | background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#172489), color-stop(100%,#3D85C6)); | ||
background-image: -webkit-linear-gradient(top, #172489 0%, #3D85C6 100%); | |||
background-image: -o-linear-gradient(top, #172489 0%, #3D85C6 100%); | |||
background-image: -ms-linear-gradient(top, #172489 0%, #3D85C6 100%); | |||
background-image: linear-gradient(to bottom, #172489 0%, #3D85C6 100%); | |||
color: white; | |||
| manager = background: #3DAC00; | |||
background-image: -moz-linear-gradient(center top, #3DAC00 0%, #2E8100 100%); | |||
background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#3DAC00), color-stop(100%,#2E8100)); | |||
background-image: -webkit-linear-gradient(top, #3DAC00 0%, #2E8100 100%); | |||
background-image: -o-linear-gradient(top, #3DAC00 0%, #2E8100 100%); | |||
background-image: -ms-linear-gradient(top, #3DAC00 0%, #2E8100 100%); | |||
background-image: linear-gradient(to bottom, #3DAC00 0%, #2E8100 100%); | |||
color: white; | |||
| officer = background: #C1C100; | |||
background-image: -moz-linear-gradient(center top, #C1C100 0%, #919100 100%); | |||
background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#C1C100), color-stop(100%,#919100)); | |||
background-image: -webkit-linear-gradient(top, #C1C100 0%, #919100 100%); | |||
background-image: -o-linear-gradient(top, #C1C100 0%, #919100 100%); | |||
background-image: -ms-linear-gradient(top, #C1C100 0%, #919100 100%); | |||
background-image: linear-gradient(to bottom, #C1C100 0%, #919100 100%); | |||
color: white; | |||
}} | |||
| header1 = Details | |||
| label2 = Experience | |||
| data2 = {{{time|}}} | |||
| label3 = Skillpoints | |||
| data3 = {{{skillpoints|}}} | |||
| label4 = Skillset | |||
| data4 = {{#if: {{{skillset|}}}|<div class="mw-collapsible mw-collapsed"><br>{{{skillset}}}</div>}} | |||
| label5 = Playtimes | |||
| data5 = {{#if: {{{playtimesed|}}} | |||
| {{{playtimesed}}} | |||
| {{#if: {{{playtimes|}}} | |||
| <div class="mw-collapsible mw-collapsed"><br>{{{playtimes}}}</div> | |||
}} | |||
}} | |||
| label6 = Biography | |||
| data6 = {{#if: {{{biography|}}}|<div class="mw-collapsible mw-collapsed"><br>{{{biography}}}</div>}} | |||
| label7 = Primary community | |||
| data7 = {{{primary community|}}} | |||
| label8 = Contact | |||
| data8 = {{{contact|}}} | |||
| label9 = Language | |||
| data9 = {{{language|}}} | |||
| below = {{#switch: {{lc: {{{mentortype|}}} }} | |||
| manager = [[Mentor Department|Mentor manager]] | |||
| officer = [[Mentor Department|Mentor officer]] | |||
}} | |||
}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||