Role-metric-measurement

From SemanticOrganization
Revision as of 21:46, 12 March 2021 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-role-metric-measurement-template": "semorg-role-metric-measurement",
"semorg-role-metric-measurement-category": "semorg-role-metric-measurement",
"semorg-role-metric-measurement-form": "semorg-role-metric-measurement",
"semorg-role-metric-measurement-entity-name": "Measurement",
"semorg-form-role-metric-measurement-create-title": "Create Measurement",
"semorg-form-role-metric-measurement-edit-title": "Edit Measurement", 
"semorg-form-role-metric-measurement-page-name": "Measurements",

"semorg-form-role-metric-measurement-template": "role-metric-measurement",
"semorg-form-role-metric-measurement-rows": "date,value,author",
"semorg-list-role-metric-measurement-headers": "role-metric-measurement-date,role-metric-measurement-value,role-metric-measurement-author",
"semorg-field-role-metric-measurement-author-name": "Author", 
"semorg-field-role-metric-measurement-author-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name",
"semorg-field-role-metric-measurement-date-name": "Date", 
"semorg-field-role-metric-measurement-date-parameters": "",
"semorg-field-role-metric-measurement-metric-name": "Metric", 
"semorg-field-role-metric-measurement-metric-parameters": "",
"semorg-field-role-metric-measurement-note-name": "Note", 
"semorg-field-role-metric-measurement-note-parameters": "",
"semorg-field-role-metric-measurement-value-name": "Value", 
"semorg-field-role-metric-measurement-value-parameters": "",

Form

Form:Semorg-role-metric-measurement

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-role-metric-measurement-create-title}}
   |edit title={{int:semorg-form-role-metric-measurement-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-role-metric-measurement-page-name}}/<unique number;start=1>
}}}

{{semorg-form-template|role-metric-measurement}}
 
{{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|role-metric-measurement|}}

Category

Category:Semorg-role-metric-measurement

{{semorg-category}}

Template

Template:Semorg-role-metric-measurement

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-role-metric-measurement-category}}]]{{#semorg-set:role-metric-measurement 
  |date={{{date|}}} 
  |author={{{author|}}} 
  |note={{{note|}}} 
  |value={{{value|}}} 
  |metric={{{metric|}}}
}}{{#semorg-detail:role-metric-measurement}}{{#semorg-table:role-metric-measurement 
  |date={{{date|}}} 
  |author={{{author|}}} 
  |note={{{note|}}} 
  |value={{{value|}}} 
  |metric={{{metric|}}}
}}</includeonly>

Row Template

Template:Semorg-role-metric-measurement-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{date|}}}</td> 
<td>{{{author|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{value|}}}</td> 
<td>{{{metric|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-role-metric-measurement-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:role-metric-measurement
  |heading={{int:semorg-role-metric-measurement-page-name}}
  |formlink={{#semorg-formlink:role-metric-measurement}}
  |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-role-metric-measurement-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['role-metric-measurement'] = [ "id" => "MM","fields" => ["date" => [ "id" => "DA","type" => "dat" ],"author" => [ "id" => "AU","type" => "wpg" ],"note" => [ "id" => "NO","type" => "txt" ],"value" => [ "id" => "VA","type" => "num" ],"metric" => [ "id" => "ME","type" => "wpg" ], ] ];