Difference between revisions of "Template:Course"

From its-wiki.no
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#set:Course_Image=[[File:{{PAGENAME}}.jpg|350px|right]]}}
+
__NOTITLE__
 +
<span style="font-size: 180%;" >  '''{{PAGENAME}} -  [[Title::{{{Title|}}}]]''' </span>
 +
{{#set:Course_Image=[[File:{{PAGENAME}}.png|350px|right]]}}
 
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
 
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
Line 28: Line 30:
 
| {{#arraymap:{{{Lecturer|}}}|,|x|[[Lecturer::x]]}}
 
| {{#arraymap:{{{Lecturer|}}}|,|x|[[Lecturer::x]]}}
 
|}
 
|}
{{#ifexist: File:{{PAGENAME}}.png | [[File:{{PAGENAME}}.png|350px]] | [[File:Course.png|330px|right]] }}
+
{{#ifexist: File:{{PAGENAME}}.png | [[File:{{PAGENAME}}.png|330px|right]] | [[File:Course.png|330px|right]] }}
 
{| style="width:28em; padding: 10px; float: right; clear: right; background: lightgray; border: 2px"
 
{| style="width:28em; padding: 10px; float: right; clear: right; background: lightgray; border: 2px"
 
! style="text-align: center; background-color:#ccccff;" colspan="1" |<big>Keywords</big>
 
! style="text-align: center; background-color:#ccccff;" colspan="1" |<big>Keywords</big>
Line 38: Line 40:
 
}}
 
}}
 
|}
 
|}
<span style="font-size: 180%;" >  '''{{PAGENAME}} - [[Title::{{{Title|}}}]]''' </span>
+
{{DISPLAYTITLE:{{PAGENAME}} - {{{Title|}}}}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 56: Line 58:
 
| [[Type of course::{{{Type of course|}}}]]
 
| [[Type of course::{{{Type of course|}}}]]
 
|}
 
|}
{{#ifexist: File:{{PAGENAME}}.png | | ''Upload {{PAGENAME}}.jpg to see a course picture instead of the banner picture. ''}}
+
{{#ifexist: File:{{PAGENAME}}.png | | ''Upload {{PAGENAME}}.png to see a course picture instead of the banner picture. ''}}
 
''Edit the page by  [[Special:FormEdit/Course/{{SUBJECTPAGENAME}}]]''.
 
''Edit the page by  [[Special:FormEdit/Course/{{SUBJECTPAGENAME}}]]''.
  

Latest revision as of 12:57, 2 September 2017

This is the "Course" template. It should be called in the following format:

{{Course
|Title=
|News=
|Lecturer=
|Organisation=
|Keywords
|Objective
}}

Edit the page to see the template text.