Working-time: Difference between revisions
From SemanticOrganization
(Created page with "{{Generator |template-id=WT |template-fields={{Generator-field |field-id=person |field-property-id=PE |field-type=wpg }}{{Generator-field |field-id=day |field-property-id=DA |...") |
m (Text replacement - "{{Generator" to "{{Semorg-generator") |
||
Line 1: | Line 1: | ||
{{ | {{Semorg-generator | ||
|template-id=WT | |template-id=WT | ||
|template-fields={{ | |template-fields={{Semorg-generator-field | ||
|field-id=person | |field-id=person | ||
|field-property-id=PE | |field-property-id=PE | ||
|field-type=wpg | |field-type=wpg | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=day | |field-id=day | ||
|field-property-id=DA | |field-property-id=DA | ||
|field-type=num | |field-type=num | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=time | |field-id=time | ||
|field-property-id=TI | |field-property-id=TI | ||
|field-type=txt | |field-type=txt | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=note | |field-id=note | ||
|field-property-id=NO | |field-property-id=NO |
Revision as of 08:04, 24 October 2018
Messages
"semorg-working-time-template": "semorg-working-time", "semorg-working-time-category": "semorg-working-time", "semorg-working-time-form": "semorg-working-time", "semorg-form-working-time-create-title": "Create Working-time", "semorg-form-working-time-edit-title": "Edit Working-time", "semorg-form-working-time-template": "working-time", "semorg-form-working-time-rows": "day, time, person, note", "semorg-list-working-time-headers": "working-time-day, working-time-time, working-time-person, working-time-note", "semorg-field-working-time-day-name": "", "semorg-field-working-time-day-parameters": "", "semorg-field-working-time-note-name": "", "semorg-field-working-time-note-parameters": "", "semorg-field-working-time-person-name": "", "semorg-field-working-time-person-parameters": "", "semorg-field-working-time-time-name": "", "semorg-field-working-time-time-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-working-time-create-title}} |edit title={{int:semorg-form-working-time-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|working-time}} {{semorg-form-standard-inputs}} </includeonly>
as embedded:
Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template
. The second parameter of the semorg-form-template-embed
call should be the target field, specified with <feature>[<field>]
(e.g. meeting-group[files]
or {{int:semorg-meeting-group-template}}[files]
to respect template customization).
{{semorg-form-template-embed|working-time|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-working-time-category}}]]{{#semorg-set:working-time |day={{{day|}}} |time={{{time|}}} |person={{{person|}}} |note={{{note|}}} }}{{#semorg-detail:working-time}}{{#semorg-table:working-time |day={{{day|}}} |time={{{time|}}} |person={{{person|}}} |note={{{note|}}} }}</includeonly>
Row Template
Template:Semorg-working-time-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{day|}}}</td> <td>{{{time|}}}</td> <td>{{{person|}}}</td> <td>{{{note|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-working-time-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:working-time |heading={{int:semorg-working-time-page-name}} |formlink={{#semorg-forminput:working-time}} |links={{{links|}}} |query={{{query|}}} |sort={{{sort|}}} |order={{{order|}}} |limit={{{limit|}}} |filter links={{{filter links|}}} |filters={{{filters|}}} |category={{{category|}}} |headers={{{headers|}}} |row template={{{row template|}}} |tableclass={{{tableclass|}}} |title={{{title|}}} |sums={{{sums|}}} |csv={{{csv|}}} |default={{{default|}}} |returnto={{{returnto|}}} |help={{{help|}}} }}</includeonly>
Overview Page
[[]]
{{semorg-working-time-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['working-time'] = [ "id" => "WT","fields" => ["day" => [ "id" => "DA","type" => "num" ],"time" => [ "id" => "TI","type" => "txt" ],"person" => [ "id" => "PE","type" => "wpg" ],"note" => [ "id" => "NO","type" => "txt" ], ] ];