Difference between revisions of "Template:Trainer"

From BITPlan Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-11-05T10:15:59Z)
 
m (created by WikiTask 2017-11-05T16:27:43Z)
Line 19: Line 19:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 28: Line 29:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 37: Line 39:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 47: Line 50:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 56: Line 60:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 65: Line 70:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 74: Line 80:
 
|picture=
 
|picture=
 
|description=
 
|description=
 +
|description_de=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 84: Line 91:
 
{{#if:{{{?picture|}}}|"{{{?picture}}}" is picture of it <br>|}}
 
{{#if:{{{?picture|}}}|"{{{?picture}}}" is picture of it <br>|}}
 
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
 
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
 +
{{#if:{{{?description_de|}}}|"{{{?description_de}}}" is description_de of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 91: Line 99:
 
|Trainer picture={{{picture|}}}
 
|Trainer picture={{{picture|}}}
 
|Trainer description={{{description|}}}
 
|Trainer description={{{description|}}}
 +
|Trainer description_de={{{description_de|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 97: Line 106:
 
|Trainer picture={{{picture|}}}
 
|Trainer picture={{{picture|}}}
 
|Trainer description={{{description|}}}
 
|Trainer description={{{description|}}}
 +
|Trainer description_de={{{description_de|}}}
 
}}
 
}}
 
}}
 
}}
Line 102: Line 112:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!picture!!description
+
!name!!picture!!description!!description_de
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{description|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{description_de|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>picture={{#if:{{{picture|}}}|[[{{{picture|}}}]]|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>picture={{#if:{{{picture|}}}|[[{{{picture|}}}]]|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>description_de={{#if:{{{description_de|}}}|{{{description_de|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Trainer
 
! colspan='2' {{!}}Trainer
 
{{!}}-
 
{{!}}-
Line 124: Line 134:
 
!description
 
!description
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 +
{{!}}-
 +
!description de
 +
{{!}}&nbsp;{{#if:{{{description_de|}}}|{{{description_de|}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 138: Line 151:
 
{{#if:{{{?picture|}}}|"{{{?picture}}}" is picture of it <br>|}}
 
{{#if:{{{?picture|}}}|"{{{?picture}}}" is picture of it <br>|}}
 
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
 
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
 +
{{#if:{{{?description_de|}}}|"{{{?description_de}}}" is description_de of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 145: Line 159:
 
|Trainer picture={{{picture|}}}
 
|Trainer picture={{{picture|}}}
 
|Trainer description={{{description|}}}
 
|Trainer description={{{description|}}}
 +
|Trainer description_de={{{description_de|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 151: Line 166:
 
|Trainer picture={{{picture|}}}
 
|Trainer picture={{{picture|}}}
 
|Trainer description={{{description|}}}
 
|Trainer description={{{description|}}}
 +
|Trainer description_de={{{description_de|}}}
 
}}
 
}}
 
}}
 
}}
Line 156: Line 172:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!picture!!description
+
!name!!picture!!description!!description_de
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{description|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{description_de|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>picture={{#if:{{{picture|}}}|[[{{{picture|}}}]]|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>picture={{#if:{{{picture|}}}|[[{{{picture|}}}]]|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>description_de={{#if:{{{description_de|}}}|{{{description_de|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Trainer
 
! colspan='2' {{!}}Trainer
 
{{!}}-
 
{{!}}-
Line 178: Line 194:
 
!description
 
!description
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 +
{{!}}-
 +
!description de
 +
{{!}}&nbsp;{{#if:{{{description_de|}}}|{{{description_de|}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Revision as of 17:27, 5 November 2017

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=
|storemode=subobject
}}

storemode property

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

storemode none

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


viewmode tableheader

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

viewmode tablerow

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

viewmode tablefooter

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

viewmode labelfield

{{Trainer
|name=
|picture=
|description=
|description_de=
|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>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Trainer
|Trainer name={{{name|}}}
|Trainer picture={{{picture|}}}
|Trainer description={{{description|}}}
|Trainer description_de={{{description_de|}}}
}}
|#default={{#set:
|isA=Trainer
|Trainer name={{{name|}}}
|Trainer picture={{{picture|}}}
|Trainer description={{{description|}}}
|Trainer description_de={{{description_de|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!picture!!description!!description_de
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{picture|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{description_de|}}}
{{!}}-
|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>|#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|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Trainer]]{{#default_form:Trainer}}

Source

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