Template:Presentation

From BITPlan profiwiki Wiki
Jump to navigation Jump to search

This is the template Presentation. It belongs to the concept Category:Presentation
You may find examples for the use of this template via the List of Presentations.

Usage

viewmode plain

{{Presentation
|title=test title
|author=test author
|start=test start
|noofpages=test noofpages
|viewmode=plain
}}
title test title
author test author
start test start
# of pages test noofpages

edit this Presentation

Slides

Numer of slides in this presentation: 0 create a new slide for this presentation this Slide one step


viewmode nice

{{Presentation
|title=test title
|author=test author
|start=test start
|noofpages=test noofpages
|viewmode=nice
}}
title test title
author test author
start test start
# of pages test noofpages

edit this Presentation

Slides

Numer of slides in this presentation: 0 create a new slide for this presentation this Slide one step


viewmode master/detail

{{Presentation
|title=test title
|author=test author
|start=test start
|noofpages=test noofpages
|viewmode=master/detail
}}
title test title
author test author
start test start
# of pages test noofpages

edit this Presentation

Slides

Numer of slides in this presentation: 0 create a new slide for this presentation this Slide one step


viewmode link

{{Presentation
|title=test title
|author=test author
|start=test start
|noofpages=test noofpages
|viewmode=link
}}
title test title
author test author
start test start
# of pages test noofpages

edit this Presentation

Slides

Numer of slides in this presentation: 0 create a new slide for this presentation this Slide one step


viewmode editable

{{Presentation
|title=test title
|author=test author
|start=test start
|noofpages=test noofpages
|viewmode=editable
}}
title test title
author test author
start test start
# of pages test noofpages

edit this Presentation

Slides

Numer of slides in this presentation: 0 create a new slide for this presentation this Slide one step


Source

<!-- 
   
   This is a "pretty printed" version of the template source code
   due to MediaWiki's way of handling whitespace in templates the original source code can not be nicely
   indented and looks somewhat "ugly". Unfortunately you should therefore not cut&paste this pretty printed version between
   the <includeonly></includeonly> tag pair,

  parameters may be either positional or by name 
  define named variables to normalize this
-->
{{#if:{{{1|}}}
|{{#vardefine:title|{{{1|}}}}}
|{{#vardefine:title|{{{title|}}}}}
}}{{#if:{{{2|}}}
|{{#vardefine:author|{{{2|}}}}}
|{{#vardefine:author|{{{author|}}}}}
}}{{#if:{{{3|}}}
|{{#vardefine:start|{{{3|}}}}}
|{{#vardefine:start|{{{start|}}}}}
}}{{#if:{{{4|}}}
|{{#vardefine:noofpages|{{{4|}}}}}
|{{#vardefine:noofpages|{{{noofpages|}}}}}
}}
<!-- 
      set the semantic properties from the named variables
      each property having the same name as the variable with the concept name as a prefix
-->
{{#set:
|Presentation title={{#var:title}}
|Presentation author={{#var:author}}
|Presentation start={{#var:start}}
|Presentation noofpages={{#var:noofpages}}
}}
<!-- 
      this is almost the same table that the Page Schemas extension would generate except
      the pipe symbols are escaped to allow the addition of further template logic with
      e.g. parser functions
-->
{{{!}} class="wikitable"
!title
{{!}}[[Presentation title::{{{title|}}}]]
{{!}}-
!author
{{!}}[[Presentation author::{{{author|}}}]]
{{!}}-
!start
{{!}}[[Presentation start::{{{start|}}}]]
{{!}}-
!# of pages
{{!}}[[Presentation noofpages::{{{noofpages|}}}]]
{{!}}-
{{!}}}
<!-- 
    add an edit icon to not have to move the mouse so far for editing
-->
{{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Presentation/{{FULLPAGENAME}}|title=edit this Presentation}}<br>
<!-- 
    add the category 
-->
[[Category:Presentation]]

Click on "Edit" to edit the Source of this Template.