Difference between revisions of "Template:Context"

From BITPlan royal-family Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-10-03T17:58:22Z)
m (created by WikiTask 2019-10-11T04:57:05Z)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<!--
 
<!--
   -- Copyright (C) 2015-2016 BITPlan GmbH
+
   -- Copyright (C) 2015-2019 BITPlan GmbH
 
   --  
 
   --  
 
   -- Pater-Delp-Str. -- 1
 
   -- Pater-Delp-Str. -- 1
Line 100: Line 100:
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
{{#switch: {{{viewmode|}}}
 +
|hidden=
 
|masterdetail=
 
|masterdetail=
= topics =
 
{{#ask:[[Concept:Topic]][[Topic context::{{FULLPAGENAME}}]]
 
| ?Topic name = name
 
| ?Topic pluralName = pluralName
 
| ?Topic icon = icon
 
| ?Topic iconUrl = iconUrl
 
| ?Topic documentation = documentation
 
| ?Topic wikiDocumentation = wikiDocumentation
 
| ?Topic defaultstoremode = defaultstoremode
 
| ?Topic listLimit = listLimit
 
| ?Topic cargo = cargo
 
| ?Topic headerTabs = headerTabs
 
| ?Topic context = context
 
 
 
 
}}
 
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
 
!name!!since!!master
 
!name!!since!!master
Line 171: Line 155:
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
{{#switch: {{{viewmode|}}}
 +
|hidden=
 
|masterdetail=
 
|masterdetail=
= topics =
 
{{#ask:[[Concept:Topic]][[Topic context::{{FULLPAGENAME}}]]
 
| ?Topic name = name
 
| ?Topic pluralName = pluralName
 
| ?Topic icon = icon
 
| ?Topic iconUrl = iconUrl
 
| ?Topic documentation = documentation
 
| ?Topic wikiDocumentation = wikiDocumentation
 
| ?Topic defaultstoremode = defaultstoremode
 
| ?Topic listLimit = listLimit
 
| ?Topic cargo = cargo
 
| ?Topic headerTabs = headerTabs
 
| ?Topic context = context
 
 
 
 
}}
 
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
 
!name!!since!!master
 
!name!!since!!master

Latest revision as of 05:57, 11 October 2019

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

Usage

storemode subobject

{{Context
|name=
|since=
|master=
|storemode=subobject
}}

storemode property

{{Context
|name=
|since=
|master=
|storemode=property
}}

storemode none

{{Context
|name=
|since=
|master=
|storemode=none
}}


viewmode tableheader

{{Context
|name=
|since=
|master=
|viewmode=tableheader
}}

viewmode tablerow

{{Context
|name=
|since=
|master=
|viewmode=tablerow
}}

viewmode tablefooter

{{Context
|name=
|since=
|master=
|viewmode=tablefooter
}}

viewmode labelfield

{{Context
|name=
|since=
|master=
|viewmode=labelfield
}}

Source (pretty printed)

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

Source

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