Template:Trainer

From BITPlan Wiki
Revision as of 11:11, 10 November 2017 by Wf (talk | contribs) (created by WikiTask 2017-11-10T10:11:57Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Usage

storemode subobject

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|storemode=subobject
}}

storemode property

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|storemode=property
}}

storemode none

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|storemode=none
}}


viewmode tableheader

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|viewmode=tableheader
}}

viewmode tablerow

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|viewmode=tablerow
}}

viewmode tablefooter

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|viewmode=tablefooter
}}

viewmode labelfield

{{Trainer
|name=
|picture=
|description=
|description_de=
|rank=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Trainer<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?picture|}}}|"{{{?picture}}}" is picture of it <br>|}}
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
{{#if:{{{?description_de|}}}|"{{{?description_de}}}" is description_de of it <br>|}}
{{#if:{{{?rank|}}}|"{{{?rank}}}" is rank of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Trainer
|Trainer name={{{name|}}}
|Trainer picture={{{picture|}}}
|Trainer description={{{description|}}}
|Trainer description_de={{{description_de|}}}
|Trainer rank={{{rank|}}}
}}
|#default={{#set:
|isA=Trainer
|Trainer name={{{name|}}}
|Trainer picture={{{picture|}}}
|Trainer description={{{description|}}}
|Trainer description_de={{{description_de|}}}
|Trainer rank={{{rank|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
= seminars =
{{#ask:[[Concept:Seminar]][[Seminar trainer::{{FULLPAGENAME}}]]
| ?Seminar kind = kind
| ?Seminar lang = lang
| ?Seminar year = year
| ?Seminar month = month
| ?Seminar inHouse = inHouse
| ?Seminar from = from
| ?Seminar to = to
| ?Seminar title = title
| ?Seminar contact = contact
| ?Seminar customer = customer
| ?Seminar documentation = documentation
| ?Seminar trainer = trainer
| ?Seminar city = city
| ?Seminar thema = thema

|sort=Seminar year,Seminar month
|order=descending,descending
}}
|tableheader={{{!}} class='wikitable'
!name!!picture!!description!!description_de!!rank
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{description_de|}}}{{!}}{{!}}{{{rank|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>picture={{#if:{{{picture|}}}|[[{{{picture|}}}]]|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>description_de={{#if:{{{description_de|}}}|{{{description_de|}}}|}}<br>rank={{#if:{{{rank|}}}|{{{rank|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Trainer
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Trainer/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!picture
{{!}}&nbsp;{{#if:{{{picture|}}}|[[{{{picture|}}}]]|}}
{{!}}-
!description
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
{{!}}-
!description de
{{!}}&nbsp;{{#if:{{{description_de|}}}|{{{description_de|}}}|}}
{{!}}-
!rank
{{!}}&nbsp;{{#if:{{{rank|}}}|{{{rank|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Trainer]]{{#default_form:Trainer}}

Source

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