Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox class: Difference between revisions

Template page
m Prepare for rewrite to use meta template {{Infobox}}, move the File: prefix from the input to the template.
m Rewrite to use meta template {{Infobox}} as by project "Cleanup Infobox Templates"
Line 1: Line 1:
<includeonly>{| class="infoboxtable"
{{Infobox
|-
| name        = <!-- left empty, to NOT have edit links at the bottom of the box.-->
! colspan="2" class="infoboxnameorange" | [[{{{class page name}}}|{{{class name}}}]]
 
|- style="text-align:center"
| abovestyle  =
| colspan="2" style="padding:0.5em;" | [[File:{{{image}}}|{{#if: {{{size|}}} | {{{size}}}|250px}}|link={{{class page name}}}]]
  background: #d2801e;
|- style="text-align:center"
  background-image: -moz-linear-gradient(center top, #d2801e 0%, #653f03 100%);
{{#if: {{{caption|}}} | {{!}} colspan="2" style="padding:0.5em;" {{!}} ''{{{caption|}}}'' }}
  background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#d2801e), color-stop(100%,#653f03));
|-
  background-image: -webkit-linear-gradient(top, #d2801e 0%, #653f03 100%);
! colspan="2" class="infoboxdescriptionorange" | Details
  background-image: -o-linear-gradient(top, #d2801e 0%, #653f03 100%);
|-
  background-image: -ms-linear-gradient(top, #d2801e 0%, #653f03 100%);
{{#if: {{{summary|}}} | {{!}} width=80 {{!}} <div>Summary</div> {{!!}} {{{summary}}} }}
  background-image: linear-gradient(to bottom, #d2801e 0%, #653f03 100%);
|-
  color: #000000;
{{#if: {{{reading list|}}} | {{!}} <div>Reading list</div> {{!!}} {{{reading list}}} }}
 
|-
| title          =
{{#if: {{{slides link|}}} | {{!}} <div>Slides</div> {{!!}} [{{{slides link}}} PDF] }}
| above          = {{#if: {{{class name|}}}
|-
                    | {{#if: {{{class page name|}}}
{{#if: {{{video link|}}} | {{!}} <div>ToT Video</div> {{!!}} [{{{video link}}} YouTube] }}
                      | [[{{{class page name}}}|{{{class name}}}]]
|}{{InfoboxCSS}}</includeonly><noinclude>
                      | Class page name ?
                      }}
                    | Class name ?
                  }}
 
| image      = {{#if: {{{image|}}}
                | [[File:{{{image}}}|{{#if: {{{size|}}}
                                      | {{{size}}}
                                      | 250px
                                      }}|link={{{class page name}}}]]
                }}
| caption    = {{{caption}}}
 
| headerstyle =  
  background: #d2801e;
  background-image: -moz-linear-gradient(center top, #d2801e 0%, #653f03 100%);
  background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%,#d2801e), color-stop(100%,#653f03));  
  background-image: -webkit-linear-gradient(top, #d2801e 0%, #653f03 100%);
  background-image: -o-linear-gradient(top, #d2801e 0%, #653f03 100%);
  background-image: -ms-linear-gradient(top, #d2801e 0%, #653f03 100%);
  background-image: linear-gradient(to bottom, #d2801e 0%, #653f03 100%);
  color: #000000;
 
| header1    = Details
 
| label2    = Summary
|  data2    = {{{summary|}}}
 
| label3    = Reading list
|  data3    = {{{reading list|}}}
 
| label4    = Slides
|  data4    = {{#if: {{{slides link|}}}
                | [{{{slides link|}}} PDF]
                }}
 
| label5    = ToT video
|  data5    = {{#if: {{{video link|}}}
                | [{{{video link|}}} YouTube]
                }}
 
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>