Difference between revisions of "Template:Infobox class"

From EVE University Wiki
Jump to: navigation, search
m (Rewrite to use meta template {{Infobox}} as by project "Cleanup Infobox Templates")
(Add option for PDF and/or PPT slides. Add visible slide version parameter.)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
| abovestyle  =
 
| abovestyle  =
 
   background: #d2801e;  
 
   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%);  
 
   background-image: linear-gradient(to bottom, #d2801e 0%, #653f03 100%);  
 
   color: #000000;
 
   color: #000000;
  
| title          =
 
 
| above          = {{#if: {{{class name|}}}
 
| above          = {{#if: {{{class name|}}}
 
                     | {{#if: {{{class page name|}}}
 
                     | {{#if: {{{class page name|}}}
Line 27: Line 21:
 
                                       }}|link={{{class page name}}}]]
 
                                       }}|link={{{class page name}}}]]
 
                 }}
 
                 }}
| caption    = {{{caption}}}
 
  
 
| headerstyle =  
 
| headerstyle =  
 
   background: #d2801e;  
 
   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%);  
 
   background-image: linear-gradient(to bottom, #d2801e 0%, #653f03 100%);  
 
   color: #000000;
 
   color: #000000;
  
| header1    = Details
+
| header1    = {{#if: {{{image|}}}|Details}}
  
 
|  label2    = Summary
 
|  label2    = Summary
Line 48: Line 36:
  
 
|  label4    = Slides
 
|  label4    = Slides
|  data4    = {{#if: {{{slides link|}}}
+
|  data4    = {{#if: {{{slides link|}}} <!-- Deprecated parameter to keep old versions functioning -->
                 | [{{{slides link|}}} PDF]
+
                 | [{{{slides link}}} PDF]
 +
                | {{#if: {{{slides pdf|}}}
 +
                    | [{{{slides pdf}}} PDF]
 +
                  }} {{#if: {{{slides ppt|}}}
 +
                      | [{{{slides ppt}}} PPT]
 +
                      }} {{#if: {{{slides version|}}}
 +
                          | ({{{slides version}}})
 +
                        }}
 
                 }}
 
                 }}
  
|  label5    = ToT video
+
|  label5    = Video
 
|  data5    = {{#if: {{{video link|}}}
 
|  data5    = {{#if: {{{video link|}}}
 
                 | [{{{video link|}}} YouTube]
 
                 | [{{{video link|}}} YouTube]
Line 58: Line 53:
  
 
}}<noinclude>
 
}}<noinclude>
{{documentation}}
+
{{Documentation}}  
 
</noinclude>
 
</noinclude>

Latest revision as of 17:13, 14 December 2024

Class name ?
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create an Infobox for classes.
Dependencies
Uses
{{Infobox}}
Syntax
{{Infobox class
| class name      = 
| class page name = 
| image           = 
| summary         = 
| reading list    = 
| slides pdf      = 
| slides ppt      = 
| slides version  = 
| video link      = 
}}
Required parameters
class name
The name of the class.
class page name
The name of the class article page.
Optional parameters
Omitted or empty optional parameters will not be shown.
image
The name of class image, with extension and without parenthesis.
summary
A short description of the class, its goals and desired outcomes.
reading list
A list of links to related wiki articles; a recommended reading list. When multiple separate by ,<space>
slides pdf
URI pointing to the Google Drive slides (PDF version) without parenthesis.
slides ppt
URI pointing to the Google Drive slides (PPT version) without parenthesis.
slides version
Version date of the slides.
video link
URI pointing to the YouTube video without parenthesis.
Sample
Exploration
Core class EXPLORATION.png
Details
Summary Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec convallis dignissim varius. Pellentesque molestie arcu mattis nisi condimentum congue. Curabitur ut arcu vel ante blandit tincidunt.
Reading list Exploration, Wormhole
Slides PDF (20241213)
Video YouTube
{{Infobox class
| class name      = Exploration
| class page name = Exploration (CORE class)
| image           = Core class EXPLORATION.png
| summary         = Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec convallis dignissim varius. Pellentesque molestie arcu mattis nisi condimentum congue. Curabitur ut arcu vel ante blandit tincidunt.
| reading list    = [[Exploration]], [[Wormhole]]
| slides pdf      = https://drive.google.com/file/d/1olAOEw_P_2WYlPbWaNo5KBuUTYzFh3NN/view?usp=sharing
| slides ppt      = 
| slides version  = 20241213
| video link      = https://www.youtube.com/watch?v=WX_XGqLJ6y4
}}

If the summary, slides, video or any other component is missing, feel free to leave it blank.

Gas Mining
Class Wiki Gas Mining v1.png
Details
Reading list Gas cloud harvesting
{{Infobox class
| class name      = Gas Mining
| class page name = Gas Mining (Class)
| image           = Class Wiki Gas Mining v1.png
| summary         = 
| reading list    = [[Gas cloud harvesting]]
| slides pdf      = 
| slides ppt      = 
| slides version  = 
| video link      = 
}}
Visit Template:Infobox class/doc to edit this text! (How does this work?) (Refresh this text - why?)