Role-metric

From SemanticOrganization
Revision as of 21:12, 12 March 2021 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=RM |page-name=Metrics |entity-name=Metric |form-page-name=Metrics |form-unique-number=Yes |rows=role,name,description,frequency,responsible,act...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-role-metric-template": "semorg-role-metric",
"semorg-role-metric-category": "semorg-role-metric",
"semorg-role-metric-form": "semorg-role-metric",
"semorg-role-metric-page-name": "Metrics",
"semorg-role-metric-entity-name": "Metric",
"semorg-form-role-metric-create-title": "Create Metric",
"semorg-form-role-metric-edit-title": "Edit Metric", 
"semorg-form-role-metric-page-name": "Metrics",

"semorg-form-role-metric-template": "role-metric",
"semorg-form-role-metric-rows": "role,name,description,frequency,responsible,active",
"semorg-list-role-metric-headers": "role-metric-name,role-metric-responsible,role-metric-values",
"semorg-field-role-metric-active-name": "active", 
"semorg-field-role-metric-active-parameters": "",
"semorg-field-role-metric-description-name": "Description", 
"semorg-field-role-metric-description-parameters": "",
"semorg-field-role-metric-frequency-name": "Frequency", 
"semorg-field-role-metric-frequency-parameters": "input type=dropdown|values=year|month|quarter|week|mapping-template=semorg-mapping-frequency",
"semorg-field-role-metric-name-name": "Name", 
"semorg-field-role-metric-name-parameters": "",
"semorg-field-role-metric-responsible-name": "Responsible", 
"semorg-field-role-metric-responsible-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=semorg-person-name",
"semorg-field-role-metric-role-name": "Role", 
"semorg-field-role-metric-role-parameters": "input type=combobx|values from category=semorg-role|mapping property=semorg-role-name",

Form

Form:Semorg-role-metric

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

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

Category

Category:Semorg-role-metric

{{semorg-category}}

Template

Template:Semorg-role-metric

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-role-metric-category}}]]{{#semorg-set:role-metric 
  |name={{{name|}}} 
  |active={{{active|}}} 
  |responsible={{{responsible|}}} 
  |role={{{role|}}} 
  |description={{{description|}}} 
  |frequency={{{frequency|}}}
}}{{#semorg-detail:role-metric}}{{#semorg-table:role-metric 
  |name={{{name|}}} 
  |active={{{active|}}} 
  |responsible={{{responsible|}}} 
  |role={{{role|}}} 
  |description={{{description|}}} 
  |frequency={{{frequency|}}}
}}</includeonly>

Row Template

Template:Semorg-role-metric-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{name|}}}</td> 
<td>{{{active|}}}</td> 
<td>{{{responsible|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{frequency|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-role-metric-overview

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

Metrics

{{semorg-role-metric-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['role-metric'] = [ "id" => "RM","fields" => ["name" => [ "id" => "NA","type" => "txt" ],"active" => [ "id" => "AC","type" => "boo" ],"responsible" => [ "id" => "RE","type" => "wpg" ],"role" => [ "id" => "RO","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"frequency" => [ "id" => "FR","type" => "txt" ], ] ];