Difference between revisions of "Template:Slide"

From BITPlan profiwiki Wiki
Jump to navigation Jump to search
(transfered by WikiBackup wikiTask at 2015-11-05T19:46:06Z)
 
m (transfered by WikiBackup wikiTask at 2017-11-05T18:06:15Z)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->
 +
<!--
 +
  -- Copyright (C) 2015 BITPlan GmbH
 +
  --
 +
  -- Pater-Delp-Str. -- 1
 +
  -- D-47877 -- Willich-Schiefbahn
 +
  --
 +
  -- http://www.bitplan.com
 +
  --
 +
  --
 +
-->
 +
{{TemplateSequence
 +
|prev=Template:Sidif
 +
|next=Template:SlideSequence
 +
}}
 
This is the template {{Link|target=Template:Slide|title=Slide}}.
 
This is the template {{Link|target=Template:Slide|title=Slide}}.
It belongs to the concept {{Link|target=:Category:Slide}}<br>
+
It belongs to the concept/topic {{Link|target=:Concept:Slide}}<br>
 
You may find examples for the use of this template via the {{Link|target=List of Slides}}.
 
You may find examples for the use of this template via the {{Link|target=List of Slides}}.
 
=== Usage ===
 
=== Usage ===
==== viewmode plain ====
+
==== storemode subobject ====
 
<pre>{{Slide
 
<pre>{{Slide
|title=test title
+
|title=
|pageno=test pageno
+
|pageno=
|pages=test pages
+
|pages=
|next=test next
+
|prev=
|prev=test prev
+
|next=
|presentation=test presentation
+
|leftContent=
|viewmode=plain
+
|rightContent=
 +
|text=
 +
|notes=
 +
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|storemode=subobject
 
}}
 
}}
 
</pre>
 
</pre>
{{Slide
+
 
|title=test title
+
==== storemode property ====
|viewmode=plain
+
<pre>{{Slide
|pageno=test pageno
+
|title=
|viewmode=plain
+
|pageno=
|pages=test pages
+
|pages=
|viewmode=plain
+
|prev=
|next=test next
+
|next=
|viewmode=plain
+
|leftContent=
|prev=test prev
+
|rightContent=
|viewmode=plain
+
|text=
|presentation=test presentation
+
|notes=
|viewmode=plain
+
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|storemode=property
 
}}
 
}}
==== viewmode nice ====
+
</pre>
 +
 
 +
==== storemode none ====
 
<pre>{{Slide
 
<pre>{{Slide
|title=test title
+
|title=
|pageno=test pageno
+
|pageno=
|pages=test pages
+
|pages=
|next=test next
+
|prev=
|prev=test prev
+
|next=
|presentation=test presentation
+
|leftContent=
|viewmode=nice
+
|rightContent=
 +
|text=
 +
|notes=
 +
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|storemode=none
 
}}
 
}}
 
</pre>
 
</pre>
{{Slide
+
 
|title=test title
+
 
|viewmode=nice
+
==== viewmode tableheader ====
|pageno=test pageno
+
<pre>{{Slide
|viewmode=nice
+
|title=
|pages=test pages
+
|pageno=
|viewmode=nice
+
|pages=
|next=test next
+
|prev=
|viewmode=nice
+
|next=
|prev=test prev
+
|leftContent=
|viewmode=nice
+
|rightContent=
|presentation=test presentation
+
|text=
|viewmode=nice
+
|notes=
 +
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|viewmode=tableheader
 
}}
 
}}
==== viewmode master/detail ====
+
</pre>
 +
 
 +
==== viewmode tablerow ====
 
<pre>{{Slide
 
<pre>{{Slide
|title=test title
+
|title=
|pageno=test pageno
+
|pageno=
|pages=test pages
+
|pages=
|next=test next
+
|prev=
|prev=test prev
+
|next=
|presentation=test presentation
+
|leftContent=
|viewmode=master/detail
+
|rightContent=
 +
|text=
 +
|notes=
 +
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|viewmode=tablerow
 
}}
 
}}
 
</pre>
 
</pre>
{{Slide
+
 
|title=test title
+
==== viewmode tablefooter ====
|viewmode=master/detail
 
|pageno=test pageno
 
|viewmode=master/detail
 
|pages=test pages
 
|viewmode=master/detail
 
|next=test next
 
|viewmode=master/detail
 
|prev=test prev
 
|viewmode=master/detail
 
|presentation=test presentation
 
|viewmode=master/detail
 
}}
 
==== viewmode link ====
 
 
<pre>{{Slide
 
<pre>{{Slide
|title=test title
+
|title=
|pageno=test pageno
+
|pageno=
|pages=test pages
+
|pages=
|next=test next
+
|prev=
|prev=test prev
+
|next=
|presentation=test presentation
+
|leftContent=
|viewmode=link
+
|rightContent=
 +
|text=
 +
|notes=
 +
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|viewmode=tablefooter
 
}}
 
}}
 
</pre>
 
</pre>
{{Slide
+
 
|title=test title
+
==== viewmode labelfield ====
|viewmode=link
 
|pageno=test pageno
 
|viewmode=link
 
|pages=test pages
 
|viewmode=link
 
|next=test next
 
|viewmode=link
 
|prev=test prev
 
|viewmode=link
 
|presentation=test presentation
 
|viewmode=link
 
}}
 
==== viewmode editable ====
 
 
<pre>{{Slide
 
<pre>{{Slide
|title=test title
+
|title=
|pageno=test pageno
+
|pageno=
|pages=test pages
+
|pages=
|next=test next
+
|prev=
|prev=test prev
+
|next=
|presentation=test presentation
+
|leftContent=
|viewmode=editable
+
|rightContent=
 +
|text=
 +
|notes=
 +
|print=
 +
|template=
 +
|state=
 +
|comment=
 +
|presentation=
 +
|viewmode=labelfield
 
}}
 
}}
 
</pre>
 
</pre>
{{Slide
+
 
|title=test title
 
|viewmode=editable
 
|pageno=test pageno
 
|viewmode=editable
 
|pages=test pages
 
|viewmode=editable
 
|next=test next
 
|viewmode=editable
 
|prev=test prev
 
|viewmode=editable
 
|presentation=test presentation
 
|viewmode=editable
 
}}
 
 
=== Source ===
 
=== Source ===
 
<source lang='html4strict'>
 
<source lang='html4strict'>
<!--
+
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Slide<br>|}}
 
+
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
  This is a "pretty printed" version of the template source code
+
{{#if:{{{?pageno|}}}|"{{{?pageno}}}" is pageno of it <br>|}}
  due to MediaWiki's way of handling whitespace in templates the original source code can not be nicely
+
{{#if:{{{?pages|}}}|"{{{?pages}}}" is pages of it <br>|}}
  indented and looks somewhat "ugly". Unfortunately you should therefore not cut&paste this pretty printed version between
+
{{#if:{{{?prev|}}}|"{{{?prev}}}" is prev of it <br>|}}
  the <includeonly></includeonly> tag pair,
+
{{#if:{{{?next|}}}|"{{{?next}}}" is next of it <br>|}}
 +
{{#if:{{{?leftContent|}}}|"{{{?leftContent}}}" is leftContent of it <br>|}}
 +
{{#if:{{{?rightContent|}}}|"{{{?rightContent}}}" is rightContent of it <br>|}}
 +
{{#if:{{{?text|}}}|"{{{?text}}}" is text of it <br>|}}
 +
{{#if:{{{?notes|}}}|"{{{?notes}}}" is notes of it <br>|}}
 +
{{#if:{{{?print|}}}|"{{{?print}}}" is print of it <br>|}}
 +
{{#if:{{{?template|}}}|"{{{?template}}}" is template of it <br>|}}
 +
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
 +
{{#if:{{{?comment|}}}|"{{{?comment}}}" is comment of it <br>|}}
 +
{{#if:{{{?presentation|}}}|"{{{?presentation}}}" is presentation of it <br>|}}
 +
|#default={{#switch:{{{storemode|}}}
 +
|none=
  
  parameters may be either positional or by name
+
|{{#set:
  define named variables to normalize this
+
|isA=Slide
-->
+
|Slide title={{{title|}}}
{{#if:{{{1|}}}
+
|Slide pageno={{{pageno|}}}
|{{#vardefine:title|{{{1|}}}}}
+
|Slide pages={{{pages|}}}
|{{#vardefine:title|{{{title|}}}}}
+
|Slide prev={{{prev|}}}
}}{{#if:{{{2|}}}
+
|Slide next={{{next|}}}
|{{#vardefine:pageno|{{{2|}}}}}
+
|Slide leftContent={{{leftContent|}}}
|{{#vardefine:pageno|{{{pageno|}}}}}
+
|Slide rightContent={{{rightContent|}}}
}}{{#if:{{{3|}}}
+
|Slide text={{{text|}}}
|{{#vardefine:pages|{{{3|}}}}}
+
|Slide notes={{{notes|}}}
|{{#vardefine:pages|{{{pages|}}}}}
+
|Slide print={{{print|}}}
}}{{#if:{{{4|}}}
+
|Slide template={{{template|}}}
|{{#vardefine:next|{{{4|}}}}}
+
|Slide state={{{state|}}}
|{{#vardefine:next|{{{next|}}}}}
+
|Slide comment={{{comment|}}}
}}{{#if:{{{5|}}}
+
|Slide presentation={{{presentation|}}}
|{{#vardefine:prev|{{{5|}}}}}
+
}}
|{{#vardefine:prev|{{{prev|}}}}}
 
}}{{#if:{{{6|}}}
 
|{{#vardefine:presentation|{{{6|}}}}}
 
|{{#vardefine:presentation|{{{presentation|}}}}}
 
 
}}
 
}}
<!--  
+
{{#switch: {{{viewmode|}}}
      set the semantic properties from the named variables
+
|masterdetail=
      each property having the same name as the variable with the concept name as a prefix
+
|tableheader={{{!}} class='wikitable'
-->
+
!title!!pageno!!pages!!prev!!next!!leftContent!!rightContent!!text!!notes!!print!!template!!state!!comment!!presentation
{{#set:
+
{{!}}-
|Slide title={{#var:title}}
+
|tablerow=
|Slide pageno={{#var:pageno}}
+
{{!}}{{{title|}}}{{!}}{{!}}{{{pageno|}}}{{!}}{{!}}{{{pages|}}}{{!}}{{!}}{{{prev|}}}{{!}}{{!}}{{{next|}}}{{!}}{{!}}{{{leftContent|}}}{{!}}{{!}}{{{rightContent|}}}{{!}}{{!}}{{{text|}}}{{!}}{{!}}{{{notes|}}}{{!}}{{!}}{{{print|}}}{{!}}{{!}}{{{template|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{comment|}}}{{!}}{{!}}{{{presentation|}}}
|Slide pages={{#var:pages}}
+
{{!}}-
|Slide next={{#var:next}}
+
|tablefooter={{!}}}
|Slide prev={{#var:prev}}
+
|labelfield=
|Slide presentation={{#var:presentation}}
+
title={{#if:{{{title|}}}|{{{title|}}}|}}<br>pageno={{#if:{{{pageno|}}}|{{{pageno|}}}|}}<br>pages={{#if:{{{pages|}}}|{{{pages|}}}|}}<br>prev={{#if:{{{prev|}}}|[[{{{prev|}}}]]|}}<br>next={{#if:{{{next|}}}|[[{{{next|}}}]]|}}<br>leftContent={{#if:{{{leftContent|}}}|{{{leftContent|}}}|}}<br>rightContent={{#if:{{{rightContent|}}}|{{{rightContent|}}}|}}<br>text={{#if:{{{text|}}}|{{{text|}}}|}}<br>notes={{#if:{{{notes|}}}|{{{notes|}}}|}}<br>print={{#if:{{{print|}}}|{{{print|}}}|}}<br>template={{#if:{{{template|}}}|{{{template|}}}|}}<br>state={{#if:{{{state|}}}|{{{state|}}}|}}<br>comment={{#if:{{{comment|}}}|{{{comment|}}}|}}<br>presentation={{#if:{{{presentation|}}}|[[{{{presentation|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 +
! colspan='2' {{!}}Slide
 +
{{!}}-
 +
{{#switch:{{{storemode|}}}|property=
 +
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Slide/{{FULLPAGENAME}}|title=edit}}
 +
{{!}}-
 
}}
 
}}
<!--
 
      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
 
!title
{{!}}{{#var:title}}
+
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title|}}}|}}
 
{{!}}-
 
{{!}}-
 
!#
 
!#
{{!}}{{#var:pageno}}
+
{{!}}&nbsp;{{#if:{{{pageno|}}}|{{{pageno|}}}|}}
 +
{{!}}-
 +
! ##
 +
{{!}}&nbsp;{{#if:{{{pages|}}}|{{{pages|}}}|}}
 
{{!}}-
 
{{!}}-
!##
+
!prev
{{!}}{{#var:pages}}
+
{{!}}&nbsp;{{#if:{{{prev|}}}|[[{{{prev|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
!next
 
!next
{{!}}{{#var:next}}
+
{{!}}&nbsp;{{#if:{{{next|}}}|[[{{{next|}}}]]|}}
 +
{{!}}-
 +
!left
 +
{{!}}&nbsp;{{#if:{{{leftContent|}}}|{{{leftContent|}}}|}}
 +
{{!}}-
 +
!right
 +
{{!}}&nbsp;{{#if:{{{rightContent|}}}|{{{rightContent|}}}|}}
 +
{{!}}-
 +
!text
 +
{{!}}&nbsp;{{#if:{{{text|}}}|{{{text|}}}|}}
 +
{{!}}-
 +
!notes
 +
{{!}}&nbsp;{{#if:{{{notes|}}}|{{{notes|}}}|}}
 +
{{!}}-
 +
!print
 +
{{!}}&nbsp;{{#if:{{{print|}}}|{{{print|}}}|}}
 +
{{!}}-
 +
!template
 +
{{!}}&nbsp;{{#if:{{{template|}}}|{{{template|}}}|}}
 +
{{!}}-
 +
!state
 +
{{!}}&nbsp;{{#if:{{{state|}}}|{{{state|}}}|}}
 
{{!}}-
 
{{!}}-
!prev
+
!comment
{{!}}{{#var:prev}}
+
{{!}}&nbsp;{{#if:{{{comment|}}}|{{{comment|}}}|}}
 
{{!}}-
 
{{!}}-
 
!presentation
 
!presentation
{{!}}{{#var:presentation}}
+
{{!}}&nbsp;{{#if:{{{presentation|}}}|[[{{{presentation|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
<!--
+
}}
    add an edit icon to not have to move the mouse so far for editing
+
}}
-->
 
{{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Slide/{{FULLPAGENAME}}|title=edit this Slide}}<br>
 
<!--
 
    add the category
 
-->
 
 
[[Category:Slide]]
 
[[Category:Slide]]
 
</source>
 
</source>
Click on "Edit" to edit the Source of this Template.</noinclude><includeonly>{{#if:{{{1|}}}
+
Click on "Edit" to edit the Source of this Template.
|{{#vardefine:title|{{{1|}}}}}
+
 
|{{#vardefine:title|{{{title|}}}}}
+
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Slide<br>|}}
}}{{#if:{{{2|}}}
+
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
|{{#vardefine:pageno|{{{2|}}}}}
+
{{#if:{{{?pageno|}}}|"{{{?pageno}}}" is pageno of it <br>|}}
|{{#vardefine:pageno|{{{pageno|}}}}}
+
{{#if:{{{?pages|}}}|"{{{?pages}}}" is pages of it <br>|}}
}}{{#if:{{{3|}}}
+
{{#if:{{{?prev|}}}|"{{{?prev}}}" is prev of it <br>|}}
|{{#vardefine:pages|{{{3|}}}}}
+
{{#if:{{{?next|}}}|"{{{?next}}}" is next of it <br>|}}
|{{#vardefine:pages|{{{pages|}}}}}
+
{{#if:{{{?leftContent|}}}|"{{{?leftContent}}}" is leftContent of it <br>|}}
}}{{#if:{{{4|}}}
+
{{#if:{{{?rightContent|}}}|"{{{?rightContent}}}" is rightContent of it <br>|}}
|{{#vardefine:next|{{{4|}}}}}
+
{{#if:{{{?text|}}}|"{{{?text}}}" is text of it <br>|}}
|{{#vardefine:next|{{{next|}}}}}
+
{{#if:{{{?notes|}}}|"{{{?notes}}}" is notes of it <br>|}}
}}{{#if:{{{5|}}}
+
{{#if:{{{?print|}}}|"{{{?print}}}" is print of it <br>|}}
|{{#vardefine:prev|{{{5|}}}}}
+
{{#if:{{{?template|}}}|"{{{?template}}}" is template of it <br>|}}
|{{#vardefine:prev|{{{prev|}}}}}
+
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
}}{{#if:{{{6|}}}
+
{{#if:{{{?comment|}}}|"{{{?comment}}}" is comment of it <br>|}}
|{{#vardefine:presentation|{{{6|}}}}}
+
{{#if:{{{?presentation|}}}|"{{{?presentation}}}" is presentation of it <br>|}}
|{{#vardefine:presentation|{{{presentation|}}}}}
+
|#default={{#switch:{{{storemode|}}}
}}{{#set:
+
|none=
|Slide title={{#var:title}}
+
 
|Slide pageno={{#var:pageno}}
+
|{{#set:
|Slide pages={{#var:pages}}
+
|isA=Slide
|Slide next={{#var:next}}
+
|Slide title={{{title|}}}
|Slide prev={{#var:prev}}
+
|Slide pageno={{{pageno|}}}
|Slide presentation={{#var:presentation}}
+
|Slide pages={{{pages|}}}
}}{{{!}} class="wikitable"
+
|Slide prev={{{prev|}}}
 +
|Slide next={{{next|}}}
 +
|Slide leftContent={{{leftContent|}}}
 +
|Slide rightContent={{{rightContent|}}}
 +
|Slide text={{{text|}}}
 +
|Slide notes={{{notes|}}}
 +
|Slide print={{{print|}}}
 +
|Slide template={{{template|}}}
 +
|Slide state={{{state|}}}
 +
|Slide comment={{{comment|}}}
 +
|Slide presentation={{{presentation|}}}
 +
}}
 +
}}
 +
{{#switch: {{{print|}}}
 +
|wiki={{SlideSequence|prev={{{prev|}}}|presentation={{{presentation|}}}|next={{{next|}}}}}
 +
|template={{{{{template|PPTTemplate}}}|content={{{leftContent|}}}|title={{{title|}}}|leftContent={{{leftContent|}}}|rightContent={{{rightContent|}}}|text={{{text|}}}|notes={{{notes|}}}|comment={{{comment|}}}|prev={{{prev|}}}|presentation={{{presentation|}}}|next={{{next|}}}}}
 +
|#default={{#switch: {{{viewmode|}}}
 +
|masterdetail=
 +
|tableheader={{{!}} class='wikitable'
 +
!title!!pageno!!pages!!prev!!next!!leftContent!!rightContent!!text!!notes!!print!!template!!state!!comment!!presentation
 +
{{!}}-
 +
|tablerow=
 +
{{!}}{{{title|}}}{{!}}{{!}}{{{pageno|}}}{{!}}{{!}}{{{pages|}}}{{!}}{{!}}{{{prev|}}}{{!}}{{!}}{{{next|}}}{{!}}{{!}}{{{leftContent|}}}{{!}}{{!}}{{{rightContent|}}}{{!}}{{!}}{{{text|}}}{{!}}{{!}}{{{notes|}}}{{!}}{{!}}{{{print|}}}{{!}}{{!}}{{{template|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{comment|}}}{{!}}{{!}}{{{presentation|}}}
 +
{{!}}-
 +
|tablefooter={{!}}}
 +
|labelfield=
 +
title={{#if:{{{title|}}}|{{{title|}}}|}}<br>pageno={{#if:{{{pageno|}}}|{{{pageno|}}}|}}<br>pages={{#if:{{{pages|}}}|{{{pages|}}}|}}<br>prev={{#if:{{{prev|}}}|[[{{{prev|}}}]]|}}<br>next={{#if:{{{next|}}}|[[{{{next|}}}]]|}}<br>leftContent={{#if:{{{leftContent|}}}|{{{leftContent|}}}|}}<br>rightContent={{#if:{{{rightContent|}}}|{{{rightContent|}}}|}}<br>text={{#if:{{{text|}}}|{{{text|}}}|}}<br>notes={{#if:{{{notes|}}}|{{{notes|}}}|}}<br>print={{#if:{{{print|}}}|{{{print|}}}|}}<br>template={{#if:{{{template|}}}|{{{template|}}}|}}<br>state={{#if:{{{state|}}}|{{{state|}}}|}}<br>comment={{#if:{{{comment|}}}|{{{comment|}}}|}}<br>presentation={{#if:{{{presentation|}}}|[[{{{presentation|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 +
! colspan='2' {{!}}Slide
 +
{{!}}-
 +
{{#switch:{{{storemode|}}}|property=
 +
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Slide/{{FULLPAGENAME}}|title=edit}}
 +
{{!}}-
 +
}}
 
!title
 
!title
{{!}}{{#var:title}}
+
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title|}}}|}}
 
{{!}}-
 
{{!}}-
 
!#
 
!#
{{!}}{{#var:pageno}}
+
{{!}}&nbsp;{{#if:{{{pageno|}}}|{{{pageno|}}}|}}
 +
{{!}}-
 +
! ##
 +
{{!}}&nbsp;{{#if:{{{pages|}}}|{{{pages|}}}|}}
 
{{!}}-
 
{{!}}-
!##
+
!prev
{{!}}{{#var:pages}}
+
{{!}}&nbsp;{{#if:{{{prev|}}}|[[{{{prev|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
!next
 
!next
{{!}}{{#var:next}}
+
{{!}}&nbsp;{{#if:{{{next|}}}|[[{{{next|}}}]]|}}
 +
{{!}}-
 +
!left
 +
{{!}}&nbsp;{{#if:{{{leftContent|}}}|{{{leftContent|}}}|}}
 +
{{!}}-
 +
!right
 +
{{!}}&nbsp;{{#if:{{{rightContent|}}}|{{{rightContent|}}}|}}
 +
{{!}}-
 +
!text
 +
{{!}}&nbsp;{{#if:{{{text|}}}|{{{text|}}}|}}
 +
{{!}}-
 +
!notes
 +
{{!}}&nbsp;{{#if:{{{notes|}}}|{{{notes|}}}|}}
 
{{!}}-
 
{{!}}-
!prev
+
!print
{{!}}{{#var:prev}}
+
{{!}}&nbsp;{{#if:{{{print|}}}|{{{print|}}}|}}
 +
{{!}}-
 +
!template
 +
{{!}}&nbsp;{{#if:{{{template|}}}|{{{template|}}}|}}
 +
{{!}}-
 +
!state
 +
{{!}}&nbsp;{{#if:{{{state|}}}|{{{state|}}}|}}
 +
{{!}}-
 +
!comment
 +
{{!}}&nbsp;{{#if:{{{comment|}}}|{{{comment|}}}|}}
 
{{!}}-
 
{{!}}-
 
!presentation
 
!presentation
{{!}}{{#var:presentation}}
+
{{!}}&nbsp;{{#if:{{{presentation|}}}|[[{{{presentation|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
{{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Slide/{{FULLPAGENAME}}|title=edit this Slide}}<br>
+
}}
[[Category:Slide]]
+
}}
</includeonly>
+
}}
 +
[[Category:Slide]]</includeonly>

Latest revision as of 19:06, 5 November 2017


This is the template Slide. It belongs to the concept/topic Concept:Slide
You may find examples for the use of this template via the List of Slides.

Usage

storemode subobject

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|storemode=subobject
}}

storemode property

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|storemode=property
}}

storemode none

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|storemode=none
}}


viewmode tableheader

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|viewmode=tableheader
}}

viewmode tablerow

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|viewmode=tablerow
}}

viewmode tablefooter

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|viewmode=tablefooter
}}

viewmode labelfield

{{Slide
|title=
|pageno=
|pages=
|prev=
|next=
|leftContent=
|rightContent=
|text=
|notes=
|print=
|template=
|state=
|comment=
|presentation=
|viewmode=labelfield
}}

Source

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Slide<br>|}}
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
{{#if:{{{?pageno|}}}|"{{{?pageno}}}" is pageno of it <br>|}}
{{#if:{{{?pages|}}}|"{{{?pages}}}" is pages of it <br>|}}
{{#if:{{{?prev|}}}|"{{{?prev}}}" is prev of it <br>|}}
{{#if:{{{?next|}}}|"{{{?next}}}" is next of it <br>|}}
{{#if:{{{?leftContent|}}}|"{{{?leftContent}}}" is leftContent of it <br>|}}
{{#if:{{{?rightContent|}}}|"{{{?rightContent}}}" is rightContent of it <br>|}}
{{#if:{{{?text|}}}|"{{{?text}}}" is text of it <br>|}}
{{#if:{{{?notes|}}}|"{{{?notes}}}" is notes of it <br>|}}
{{#if:{{{?print|}}}|"{{{?print}}}" is print of it <br>|}}
{{#if:{{{?template|}}}|"{{{?template}}}" is template of it <br>|}}
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
{{#if:{{{?comment|}}}|"{{{?comment}}}" is comment of it <br>|}}
{{#if:{{{?presentation|}}}|"{{{?presentation}}}" is presentation of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=

|{{#set:
|isA=Slide
|Slide title={{{title|}}}
|Slide pageno={{{pageno|}}}
|Slide pages={{{pages|}}}
|Slide prev={{{prev|}}}
|Slide next={{{next|}}}
|Slide leftContent={{{leftContent|}}}
|Slide rightContent={{{rightContent|}}}
|Slide text={{{text|}}}
|Slide notes={{{notes|}}}
|Slide print={{{print|}}}
|Slide template={{{template|}}}
|Slide state={{{state|}}}
|Slide comment={{{comment|}}}
|Slide presentation={{{presentation|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!title!!pageno!!pages!!prev!!next!!leftContent!!rightContent!!text!!notes!!print!!template!!state!!comment!!presentation
{{!}}-
|tablerow=
{{!}}{{{title|}}}{{!}}{{!}}{{{pageno|}}}{{!}}{{!}}{{{pages|}}}{{!}}{{!}}{{{prev|}}}{{!}}{{!}}{{{next|}}}{{!}}{{!}}{{{leftContent|}}}{{!}}{{!}}{{{rightContent|}}}{{!}}{{!}}{{{text|}}}{{!}}{{!}}{{{notes|}}}{{!}}{{!}}{{{print|}}}{{!}}{{!}}{{{template|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{comment|}}}{{!}}{{!}}{{{presentation|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
title={{#if:{{{title|}}}|{{{title|}}}|}}<br>pageno={{#if:{{{pageno|}}}|{{{pageno|}}}|}}<br>pages={{#if:{{{pages|}}}|{{{pages|}}}|}}<br>prev={{#if:{{{prev|}}}|[[{{{prev|}}}]]|}}<br>next={{#if:{{{next|}}}|[[{{{next|}}}]]|}}<br>leftContent={{#if:{{{leftContent|}}}|{{{leftContent|}}}|}}<br>rightContent={{#if:{{{rightContent|}}}|{{{rightContent|}}}|}}<br>text={{#if:{{{text|}}}|{{{text|}}}|}}<br>notes={{#if:{{{notes|}}}|{{{notes|}}}|}}<br>print={{#if:{{{print|}}}|{{{print|}}}|}}<br>template={{#if:{{{template|}}}|{{{template|}}}|}}<br>state={{#if:{{{state|}}}|{{{state|}}}|}}<br>comment={{#if:{{{comment|}}}|{{{comment|}}}|}}<br>presentation={{#if:{{{presentation|}}}|[[{{{presentation|}}}]]|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Slide
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Slide/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!title
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title|}}}|}}
{{!}}-
!#
{{!}}&nbsp;{{#if:{{{pageno|}}}|{{{pageno|}}}|}}
{{!}}-
! ##
{{!}}&nbsp;{{#if:{{{pages|}}}|{{{pages|}}}|}}
{{!}}-
!prev
{{!}}&nbsp;{{#if:{{{prev|}}}|[[{{{prev|}}}]]|}}
{{!}}-
!next
{{!}}&nbsp;{{#if:{{{next|}}}|[[{{{next|}}}]]|}}
{{!}}-
!left
{{!}}&nbsp;{{#if:{{{leftContent|}}}|{{{leftContent|}}}|}}
{{!}}-
!right
{{!}}&nbsp;{{#if:{{{rightContent|}}}|{{{rightContent|}}}|}}
{{!}}-
!text
{{!}}&nbsp;{{#if:{{{text|}}}|{{{text|}}}|}}
{{!}}-
!notes
{{!}}&nbsp;{{#if:{{{notes|}}}|{{{notes|}}}|}}
{{!}}-
!print
{{!}}&nbsp;{{#if:{{{print|}}}|{{{print|}}}|}}
{{!}}-
!template
{{!}}&nbsp;{{#if:{{{template|}}}|{{{template|}}}|}}
{{!}}-
!state
{{!}}&nbsp;{{#if:{{{state|}}}|{{{state|}}}|}}
{{!}}-
!comment
{{!}}&nbsp;{{#if:{{{comment|}}}|{{{comment|}}}|}}
{{!}}-
!presentation
{{!}}&nbsp;{{#if:{{{presentation|}}}|[[{{{presentation|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Slide]]

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