Difference between revisions of "Template:Tutorial Syllabus"

From HPC Wiki
Jump to navigation Jump to search
m (Add support for a license)
m (Add <nowiki /> to suppress linebreak)
 
(17 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
  | title = Introduction to HPC
 
  | title = Introduction to HPC
 
  | provider = [https://institute.org/ Some Institution]
 
  | provider = [https://institute.org/ Some Institution]
 +
| contact = contact@provider.org
 
  | type = Multi-part video
 
  | type = Multi-part video
 
  | topic = Platform
 
  | topic = Platform
 
  | license = {{License_CCBYSA}}
 
  | license = {{License_CCBYSA}}
 +
| intro = Tutorial
 
  | part1 = [[Tutorial/Part1 | Part 1 ]]
 
  | part1 = [[Tutorial/Part1 | Part 1 ]]
 
  | part2 = [[Tutorial/Part2 | Part 2 ]]
 
  | part2 = [[Tutorial/Part2 | Part 2 ]]
Line 19: Line 21:
 
| title = Introduction to HPC
 
| title = Introduction to HPC
 
| provider = [https://institute.org/ Some Institution]
 
| provider = [https://institute.org/ Some Institution]
 +
| contact = contact@provider.org
 
| type = Multi-part video
 
| type = Multi-part video
 
| topic = Platform
 
| topic = Platform
 
| license = {{License_CCBYSA}}
 
| license = {{License_CCBYSA}}
 +
| intro = Tutorial
 
| part1 = [[Tutorial/Part1 | Part 1 ]]
 
| part1 = [[Tutorial/Part1 | Part 1 ]]
 
| part2 = [[Tutorial/Part2 | Part 2 ]]
 
| part2 = [[Tutorial/Part2 | Part 2 ]]
Line 27: Line 31:
  
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly>{| align="right" cellpadding="5" style="border-spacing: 0px; background-color: #fbfbff; font-size: 95%; margin: 0 0 0.5em 1em; width: 25em; border: 1pt solid #dddddd; {{#ifeq:{{NAMESPACE}}|Template||float: right;}}"
{| align="right" cellpadding="5" border="0" style="border-spacing: 0px; background-color: #fbfbff; font-size: 95%; margin: 0 0 0.5em 1em; width: 25em; border: 1pt; {{#ifeq:{{NAMESPACE}}|Template||float: right;}}"
 
 
|-
 
|-
 
  ! colspan="2" style="background-color:#2e3871; color:white" | Tutorial
 
  ! colspan="2" style="background-color:#2e3871; color:white" | Tutorial
 
|-  
 
|-  
 
| style="font-weight: bold;" | Title:
 
| style="font-weight: bold;" | Title:
| {{#if: {{{title|}}} | {{{title}}} | Unknown }}  
+
| {{#if: {{{title|}}} | {{#if: {{{intro|}}} | [[{{{intro}}} | {{{title}}}]] | {{{title}}} }} | Unknown }}  
 
|-  
 
|-  
 
| style="font-weight: bold;" | Provider:
 
| style="font-weight: bold;" | Provider:
 
| {{#if: {{{provider|}}} | {{{provider}}} | Unknown }}  
 
| {{#if: {{{provider|}}} | {{{provider}}} | Unknown }}  
 +
{{#if: {{{contact|}}} | <nowiki />
 +
  {{!}}-
 +
  {{!}} style="font-weight: bold;" {{!}} Contact:
 +
  {{!}} [mailto:{{{contact}}} {{{contact}}}]
 +
}}
 
|-  
 
|-  
 
| style="font-weight: bold;" | Type:
 
| style="font-weight: bold;" | Type:
Line 49: Line 57:
 
{{!}}-
 
{{!}}-
 
  ! colspan="2" style="background-color:#2e3871; color:white" {{!}} Syllabus }}
 
  ! colspan="2" style="background-color:#2e3871; color:white" {{!}} Syllabus }}
{{#if: {{{part1|}}} |
+
{{#if: {{{part1|}}} | <nowiki />
{{!}}-  
+
  {{!}}-  
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 1. {{{part1}}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">1.</span> {{{part1}}}
}}
+
}}{{#if: {{{part2|}}} | <nowiki />
{{#if: {{{part2|}}} |
+
  {{!}}-  
{{!}}-  
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">2.</span> {{{part2}}}
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 2. {{{part2}}}
+
}}{{#if: {{{part3|}}} | <nowiki />
}}
+
  {{!}}-  
{{#if: {{{part3|}}} |
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">3.</span> {{{part3}}}
{{!}}-  
+
}}{{#if: {{{part4|}}} | <nowiki />
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 3. {{{part3}}}
+
  {{!}}-  
}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">4.</span> {{{part4}}}
{{#if: {{{part4|}}} |
+
}}{{#if: {{{part5|}}} | <nowiki />
{{!}}-  
+
  {{!}}-  
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 4. {{{part4}}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">5.</span> {{{part5}}}
}}
+
}}{{#if: {{{part6|}}} | <nowiki />
{{#if: {{{part5|}}} |
+
  {{!}}-  
{{!}}-  
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">6.</span> {{{part6}}}
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 5. {{{part5}}}
+
}}{{#if: {{{part7|}}} | <nowiki />
}}
+
  {{!}}-  
{{#if: {{{part6|}}} |
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">7.</span> {{{part7}}}
{{!}}-  
+
}}{{#if: {{{part8|}}} | <nowiki />
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 6. {{{part6}}}
+
  {{!}}-  
}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">8.</span> {{{part8}}}
{{#if: {{{part7|}}} |
+
}}{{#if: {{{part9|}}} | <nowiki />
{{!}}-  
+
  {{!}}-  
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 7. {{{part7}}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">9.</span> {{{part9}}}
}}
+
}}{{#if: {{{part10|}}} | <nowiki />
{{#if: {{{part8|}}} |
+
  {{!}}-  
{{!}}-  
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">10.</span> {{{part10}}}
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 8. {{{part8}}}
+
}}{{#if: {{{part11|}}} | <nowiki />
}}
+
  {{!}}-  
{{#if: {{{part9|}}} |
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">11.</span> {{{part11}}}
{{!}}-  
+
}}{{#if: {{{part12|}}} | <nowiki />
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 9. {{{part9}}}
+
  {{!}}-  
}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">12.</span> {{{part12}}}
{{#if: {{{part10|}}} |
+
}}{{#if: {{{part13|}}} | <nowiki />
{{!}}-  
+
  {{!}}-  
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 10. {{{part10}}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">13.</span> {{{part13}}}
}}
+
}}{{#if: {{{part14|}}} | <nowiki />
{{#if: {{{part11|}}} |
+
  {{!}}-  
{{!}}-  
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">14.</span> {{{part14}}}
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 11. {{{part11}}}
+
}}{{#if: {{{part15|}}} | <nowiki />
}}
+
  {{!}}-  
{{#if: {{{part12|}}} |
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">15.</span> {{{part15}}}
{{!}}-  
+
}}{{#if: {{{part16|}}} | <nowiki />
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 12. {{{part12}}}
+
  {{!}}-  
}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">16.</span> {{{part16}}}
{{#if: {{{part13|}}} |
+
}}{{#if: {{{part17|}}} | <nowiki />
{{!}}-  
+
  {{!}}-  
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 13. {{{part13}}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">17.</span> {{{part17}}}
}}
+
}}{{#if: {{{part18|}}} | <nowiki />
{{#if: {{{part14|}}} |
+
  {{!}}-  
{{!}}-  
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">18.</span> {{{part18}}}
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 14. {{{part14}}}
+
}}{{#if: {{{part19|}}} | <nowiki />
}}
+
  {{!}}-  
{{#if: {{{part15|}}} |
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">19.</span> {{{part19}}}
{{!}}-  
+
}}{{#if: {{{part20|}}} | <nowiki />
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 15. {{{part15}}}
+
  {{!}}-  
}}
+
  {{!}} colspan="2" style="text-align:left" {{!}} <span style="font-weight:bold">20.</span> {{{part20}}}
{{#if: {{{part16|}}} |
 
{{!}}-  
 
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 16. {{{part16}}}
 
}}
 
{{#if: {{{part17|}}} |
 
{{!}}-  
 
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 17. {{{part17}}}
 
}}
 
{{#if: {{{part18|}}} |
 
{{!}}-  
 
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 18. {{{part18}}}
 
}}
 
{{#if: {{{part19|}}} |
 
{{!}}-  
 
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 19. {{{part19}}}
 
}}
 
{{#if: {{{part20|}}} |
 
{{!}}-  
 
{{!}} colspan="2" style="text-align:left; font-weight: bold;" {{!}} 20. {{{part20}}}
 
 
}}
 
}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Latest revision as of 17:06, 21 December 2020

This template can be used to typeset the specific syllabus of an online tutorial including some meta information.

As the syllabus should be on the page of every part, one should create a specific template with the details of the tutorial as shown below.

 {{Tutorial Syllabus
 | title = Introduction to HPC
 | provider = [https://institute.org/ Some Institution]
 | contact = contact@provider.org
 | type = Multi-part video
 | topic = Platform
 | license = {{License_CCBYSA}}
 | intro = Tutorial
 | part1 = [[Tutorial/Part1 | Part 1 ]]
 | part2 = [[Tutorial/Part2 | Part 2 ]]
 }}

Then, the specific template can be included on each part of the tutorial, without having to repeat the arguments on each part.


Tutorial
Title: Introduction to HPC
Provider: Some Institution

Contact: contact@provider.org
Type: Multi-part video
Topic Area: Platform
License: CC-BY-SA
Syllabus

1. Part 1
2. Part 2