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.
Change background color to design-token.
 
(4 intermediate revisions by the same user not shown)
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-color: var(--background-color-warning-subtle);
|- style="text-align:center"
 
{{#if: {{{caption|}}} | {{!}} colspan="2" style="padding:0.5em;" {{!}} ''{{{caption|}}}'' }}
| above          = {{#if: {{{class name|}}}
|-
                    | {{#if: {{{class page name|}}}
! colspan="2" class="infoboxdescriptionorange" | Details
                      | [[{{{class page name}}}|{{{class name}}}]]
|-
                      | Class page name ?
{{#if: {{{summary|}}} | {{!}} width=80 {{!}} <div>Summary</div> {{!!}} {{{summary}}} }}
                      }}
|-
                    | Class name ?
{{#if: {{{reading list|}}} | {{!}} <div>Reading list</div> {{!!}} {{{reading list}}} }}
                  }}
|-
 
{{#if: {{{slides link|}}} | {{!}} <div>Slides</div> {{!!}} [{{{slides link}}} PDF] }}
| image      = {{#if: {{{image|}}}
|-
                | [[File:{{{image}}}|{{#if: {{{size|}}}
{{#if: {{{video link|}}} | {{!}} <div>ToT Video</div> {{!!}} [{{{video link}}} YouTube] }}
                                      | {{{size}}}
|}{{InfoboxCSS}}</includeonly><noinclude>
                                      | 250px
{{documentation}}
                                      }}|link={{{class page name}}}]]
                }}
 
| headerstyle =
  background: var(--background-color-warning-subtle);
 
| header1    = {{#if: {{{image|}}}|Details}}
 
|  label2    = Summary
|  data2    = {{{summary|}}}
 
|  label3    = Reading list
|  data3    = {{{reading list|}}}
 
| label4    = Slides
|   data4    = {{#if: {{{slides link|}}} <!-- Deprecated parameter to keep old versions functioning -->
                | [{{{slides link}}} PDF]
                | {{#if: {{{slides pdf|}}}  
                    | [{{{slides pdf}}} PDF]
                  }} {{#if: {{{slides ppt|}}}
                      | [{{{slides ppt}}} PPT]
                      }} {{#if: {{{slides version|}}}
                          | ({{{slides version}}})
                        }}
                }}
 
| label5    = Video
|  data5    = {{#if: {{{video link|}}}
                | [{{{video link|}}} YouTube]
                }}
 
}}<noinclude>
{{Documentation}}  
</noinclude>
</noinclude>