Template:BlogEntry

From BITPlan Wiki
Jump to navigation Jump to search

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

Usage

storemode subobject

{{BlogEntry
|date=
|title=
|author=
|pdf=
|storemode=subobject
}}

storemode property

{{BlogEntry
|date=
|title=
|author=
|pdf=
|storemode=property
}}

storemode none

{{BlogEntry
|date=
|title=
|author=
|pdf=
|storemode=none
}}


viewmode tableheader

{{BlogEntry
|date=
|title=
|author=
|pdf=
|viewmode=tableheader
}}

viewmode tablerow

{{BlogEntry
|date=
|title=
|author=
|pdf=
|viewmode=tablerow
}}

viewmode tablefooter

{{BlogEntry
|date=
|title=
|author=
|pdf=
|viewmode=tablefooter
}}

viewmode labelfield

{{BlogEntry
|date=
|title=
|author=
|pdf=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA BlogEntry<br>|}}
{{#if:{{{?date|}}}|"{{{?date}}}" is date of it <br>|}}
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
{{#if:{{{?author|}}}|"{{{?author}}}" is author of it <br>|}}
{{#if:{{{?pdf|}}}|"{{{?pdf}}}" is pdf of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=BlogEntry
|BlogEntry date={{{date|}}}
|BlogEntry title={{{title|}}}
|BlogEntry author={{{author|}}}
|BlogEntry pdf={{{pdf|}}}
}}
|#default={{#set:
|isA=BlogEntry
|BlogEntry date={{{date|}}}
|BlogEntry title={{{title|}}}
|BlogEntry author={{{author|}}}
|BlogEntry pdf={{{pdf|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
|tableheader={{{!}} class='wikitable'
!date!!title!!author!!pdf
{{!}}-
|tablerow=
{{!}}{{{date|}}}{{!}}{{!}}{{{title|}}}{{!}}{{!}}{{{author|}}}{{!}}{{!}}{{{pdf|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
date={{#if:{{{date|}}}|{{{date|}}}|}}<br>title={{#if:{{{title|}}}|{{{title|}}}|}}<br>author={{#if:{{{author|}}}|{{{author|}}}|}}<br>pdf={{#if:{{{pdf|}}}|[[{{{pdf|}}}]]|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}BlogEntry
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/BlogEntry/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!date
{{!}}&nbsp;{{#if:{{{date|}}}|{{{date|}}}|}}
{{!}}-
!title
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title|}}}|}}
{{!}}-
!author
{{!}}&nbsp;{{#if:{{{author|}}}|{{{author|}}}|}}
{{!}}-
!pdf
{{!}}&nbsp;{{#if:{{{pdf|}}}|[[{{{pdf|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:BlogEntry]]{{#default_form:BlogEntry}}

Source

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