Working-time

From SemanticOrganization
Jump to: navigation, search


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

Form:Semorg-working-time

<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

Category:Semorg-working-time

{{semorg-category}}

Template

Template:Semorg-working-time

<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" ], ] ];