Line 15: | Line 15: | ||
|Slot=ws-base-props | |Slot=ws-base-props | ||
|Multiple=false | |Multiple=false | ||
+ | }}{{Parameter definition | ||
+ | |Name=Meeting type | ||
+ | |Formfield type=text | ||
+ | |Slot=ws-class-props | ||
}}{{Parameter definition | }}{{Parameter definition | ||
|Name=Date | |Name=Date |
Latest revision as of 16:45, 13 July 2023
Class
Meeting report with pagetitle format next_available
Allowed namespaces:
- (Main)
Has version history: false
Layout
- Areas : 'sub-header sidebar' 'main sidebar'
- Columns : 3fr 1fr
- Rows : auto 1fr
Storage templates
- Base properties: Template:Base properties
- Page properties: Template:Meeting report properties
Component templates
- Sidebar template: Template:Meeting report sidebar
Defined parameters
Name | Property | Slot | Formfield type | Allowed values | Required | Multiple |
---|---|---|---|---|---|---|
Title | Property:Title | ws-base-props | text | Yes | No | |
Absentees | Property:Absentees | ws-class-props | token | No | Yes | |
Attendees | Property:Attendees | ws-class-props | token | No | Yes | |
Date | Property:Date | ws-class-props | date | No | No | |
Meeting chair | Property:Meeting chair | ws-class-props | text | No | No | |
Meeting type | Property:Meeting type | ws-class-props | text | No | No | |
Automatically generated template code
Open one of the tabs to view automatically generated template code. This is meant to be used when creating new templates.
If you are modifying an existing template, it might still be useful to update the parameter definitions and use parts of the generated code, but be careful not to completely overwrite existing templates. Existing templates will likely have had other modifications that are not included in the automatically generated code.
Template:Meeting report properties
<noinclude> This is the '''Meeting report properties''' template. It should be called in the following format: <pre> {{Meeting report properties |Absentees= (optional: text) |Attendees= (optional: text) |Date= (optional: text) |Meeting chair= (optional: text) |Meeting type= (optional: text) }} </pre> </noinclude><includeonly>{{#set: |Absentees={{{Absentees|}}}|+sep=, |Attendees={{{Attendees|}}}|+sep=, |Date={{{Date|}}} |Meeting chair={{{Meeting chair|}}} |Meeting type={{{Meeting type|}}} }}</includeonly>
Template:Meeting report sidebar
<noinclude> This is the '''Meeting report sidebar''' template. It should be called in the following format: <pre> {{Meeting report sidebar}} </pre> </noinclude><includeonly><!-- -->{{#vardefine:@allow sidebar edit |{{#ifingroup:user |{{#if:{{#urlget:veaction}}{{#urlget:action}}||yes}} }} }}<!-- --><div class="tab-content"><!-- -->{{#tag:_input||type=radio|id=sidebar-view|name=toggle-sidebar|checked=checked|class=d-none sidebar-view}}<!-- --><div class="card sidebar-view-tab"> <div class="card-header">{{#ifeq:{{#var:@allow sidebar edit}} |yes |<span style="float:right">{{#tag:label|Edit|for=sidebar-edit|class=btn btn-secondary}}</span>}} <b class="d-block">{{#caprint:$base[Base properties][Class]}}</b> {{#caprint:$base[Base properties][Title]}} </div><!-- end of .card-header --> <div class="card-body"> {{Sidebar item |Label=Title |Value={{#caprint:$base[Base properties][Title]}} }}{{Sidebar item |Label=Meeting type |Value={{#caprint:$class[Meeting report properties][Meeting type]}} }}{{Sidebar item |Label=Date |Value={{#if:{{#caprint:$class[Meeting report properties][Date]}} |{{#time: j M Y |{{#caprint:$class[Meeting report properties][Date]}} }} }} }}{{Sidebar item |Label=Meeting chair |Value={{#caprint:$class[Meeting report properties][Meeting chair]}} }}{{Sidebar item |Label=Attendees |Value={{#caprint:$class[Meeting report properties][Attendees]}} }}{{Sidebar item |Label=Absentees |Value={{#caprint:$class[Meeting report properties][Absentees]}} }} </div><!-- end of .card-body --> </div><!-- end of .card -->{{#ifeq:{{#var:@allow sidebar edit}} |yes |<!-- -->{{#tag:_input||type=radio|id=sidebar-edit|name=toggle-sidebar|class=d-none sidebar-edit}}<!-- --><div class="card sidebar-edit-tab"><!-- --><form action="addToWiki"><!-- // _edits for base properties -->{{#tag:_edit ||target={{PAGEID}} |template=Base properties |formfield=Title |mwslot=ws-base-props}}<!-- // _create or _edits for page properties // use casize to check if the slot already exists. Then _edit, else _create. -->{{#if:{{#casize:$class}} |{{#tag:_edit ||target={{PAGEID}} |template=Meeting report properties |formfield=Meeting type |mwslot=ws-class-props}} {{#tag:_edit ||target={{PAGEID}} |template=Meeting report properties |formfield=Date |mwslot=ws-class-props}} {{#tag:_edit ||target={{PAGEID}} |template=Meeting report properties |formfield=Meeting chair |mwslot=ws-class-props}} {{#tag:_edit ||target={{PAGEID}} |template=Meeting report properties |formfield=Attendees |mwslot=ws-class-props}} {{#tag:_edit ||target={{PAGEID}} |template=Meeting report properties |formfield=Absentees |mwslot=ws-class-props}} |<_create mwwrite="{{FULLPAGENAME}}" mwtemplate="Meeting report properties" mwslot="ws-class-props" mwfields="Meeting type,Date,Meeting chair,Attendees,Absentees" /> }}<!-- end of #if --> <div class="card-header"><span style="float:right">{{#tag:label|Close|for=sidebar-view|class=btn btn-secondary}}</span> <b class="d-block">{{#caprint:$base[Base properties][Class]}}</b> {{#caprint:$base[Base properties][Title]}} </div><!-- end of .card-header --> <div class="card-body"> {{Sidebar item |Label=Title |Value={{#tag:input ||type=text |name=Title |required=required |class=form-control |value={{#caprint:$base[Base properties][Title]}} }} }} {{Sidebar item |Label=Meeting type |Value={{#tag:input ||type=text |name=Meeting type |class=form-control |value={{#caprint:$class[Meeting report properties][Meeting type]}} }} }} {{Sidebar item |Label=Date |Value={{#tag:input ||type=date |name=Date |class=form-control |value={{#caprint:$class[Meeting report properties][Date]}} }} }} {{Sidebar item |Label=Meeting chair |Value={{#tag:input ||type=text |name=Meeting chair |class=form-control |value={{#caprint:$class[Meeting report properties][Meeting chair]}} }} }} {{Sidebar item |Label=Attendees |Value={{#cadefine:$value settings | }} {{#cadefine:$values selected |{{#caprint:$class[Meeting report properties][Attendees]}} }} {{#camerge:$value options |$value settings |$values selected }} {{#caunique:$value options}} {{#tag:_token |{{#tag:input|(none)|type=option|value=}} {{#camap:$value options |__Value__|{{#tag:input|__Value__|type=option|value=__Value__|selected={{#if:{{#casearch:$values selected|__Value__}}|selected}} }} |}} |name=Attendees[] |class=form-control |id=attendees-field |multiple=multiple }} }} {{Sidebar item |Label=Absentees |Value={{#cadefine:$value settings | }} {{#cadefine:$values selected |{{#caprint:$class[Meeting report properties][Absentees]}} }} {{#camerge:$value options |$value settings |$values selected }} {{#caunique:$value options}} {{#tag:_token |{{#tag:input|(none)|type=option|value=}} {{#camap:$value options |__Value__|{{#tag:input|__Value__|type=option|value=__Value__|selected={{#if:{{#casearch:$values selected|__Value__}}|selected}} }} |}} |name=Absentees[] |class=form-control |id=absentees-field |multiple=multiple }} }} <div class="text-right"> {{#tag:label|Close|for=sidebar-view|class=btn btn-secondary}} <input type="submit" value="Save" class="btn btn-primary" /> </div> </div><!-- end of .card-body --> </form> </div><!-- end of .card --> |}}<!-- end of #ifeq @allow sidebar edit == yes --> </div><!-- end of .tab-content --></includeonly>