Difference between revisions of "Template:Brainteaser"

From BITPlan Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-10-31T09:29:03Z)
 
m (created by WikiTask 2017-10-31T10:07:43Z)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<!--
 
<!--
   -- Copyright (C) 2015-2016 BITPlan GmbH
+
   -- Copyright (C) 2015-2017 BITPlan GmbH
 
   --  
 
   --  
 
   -- Pater-Delp-Str. -- 1
 
   -- Pater-Delp-Str. -- 1
Line 180: Line 180:
 
}}
 
}}
 
}}
 
}}
 
+
[[Category:Brainteaser]]{{#default_form:Brainteaser}}
 
</source>
 
</source>
 
=== Source ===
 
=== Source ===
Line 258: Line 258:
 
}}
 
}}
 
}}
 
}}
</includeonly>
+
[[Category:Brainteaser]]{{#default_form:Brainteaser}}</includeonly>

Latest revision as of 11:07, 31 October 2017

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

Usage

storemode subobject

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|storemode=subobject
}}

storemode property

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|storemode=property
}}

storemode none

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|storemode=none
}}


viewmode tableheader

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|viewmode=tableheader
}}

viewmode tablerow

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|viewmode=tablerow
}}

viewmode tablefooter

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|viewmode=tablefooter
}}

viewmode labelfield

{{Brainteaser
|issue=
|date=
|problem=
|solution=
|finishDate=
|pdf=
|page=
|viewmode=labelfield
}}

Source (pretty printed)

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

Source

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