Systemic-consensing-score
From SemanticOrganization
Messages
"semorg-systemic-consensing-score-template": "semorg-systemic-consensing-score", "semorg-systemic-consensing-score-category": "semorg-systemic-consensing-score", "semorg-systemic-consensing-score-form": "semorg-systemic-consensing-score", "semorg-systemic-consensing-score-entity-name": "Systemic Consensing Score", "semorg-form-systemic-consensing-score-create-title": "Create Systemic Consensing Score", "semorg-form-systemic-consensing-score-edit-title": "Edit Systemic Consensing Score", "semorg-form-systemic-consensing-score-page-name": "Systemic Consensing Scores", "semorg-form-systemic-consensing-score-template": "systemic-consensing-score", "semorg-form-systemic-consensing-score-rows": "comment, option, score, user", "semorg-list-systemic-consensing-score-headers": "systemic-consensing-score-comment, systemic-consensing-score-option, systemic-consensing-score-score, systemic-consensing-score-user", "semorg-field-systemic-consensing-score-comment-name": "Comment", "semorg-field-systemic-consensing-score-comment-parameters": "rows=1", "semorg-field-systemic-consensing-score-comment-input-type": "textarea", "semorg-field-systemic-consensing-score-option-name": "Option", "semorg-field-systemic-consensing-score-option-parameters": "hidden", "semorg-field-systemic-consensing-score-score-name": "Score", "semorg-field-systemic-consensing-score-score-parameters": "existing values only|mandatory", "semorg-field-systemic-consensing-score-score-input-type": "combobox", "semorg-field-systemic-consensing-score-score-values": "0,1,2,3,4,5,6,7,8,9,10", "semorg-field-systemic-consensing-score-score-size": "3", "semorg-field-systemic-consensing-score-user-name": "User", "semorg-field-systemic-consensing-score-user-parameters": "hidden",
Form
Form:Semorg-systemic-consensing-score
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-systemic-consensing-score-create-title}} |edit title={{int:semorg-form-systemic-consensing-score-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-systemic-consensing-score-page-name}}/<unique number;start=1> }}} {{semorg-form-template|systemic-consensing-score}} {{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|systemic-consensing-score|}}
Category
Category:Semorg-systemic-consensing-score
{{semorg-category}}
Template
Template:Semorg-systemic-consensing-score
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-systemic-consensing-score-category}}]]{{#semorg-set:systemic-consensing-score |comment={{{comment|}}} |option={{{option|}}} |score={{{score|}}} |user={{{user|}}} }}{{#semorg-detail:systemic-consensing-score}}{{#semorg-table:systemic-consensing-score |comment={{{comment|}}} |option={{{option|}}} |score={{{score|}}} |user={{{user|}}} }}</includeonly>
Row Template
Template:Semorg-systemic-consensing-score-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{comment|}}}</td> <td>{{{option|}}}</td> <td>{{{score|}}}</td> <td>{{{user|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-systemic-consensing-score-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:systemic-consensing-score |heading={{int:semorg-systemic-consensing-score-page-name}} |formlink={{#semorg-formlink:systemic-consensing-score}} |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-systemic-consensing-score-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['systemic-consensing-score'] = [ "id" => "SCS","fields" => ["comment" => [ "id" => "CO","type" => "txt" ],"option" => [ "id" => "OP","type" => "wpg" ],"score" => [ "id" => "SC","type" => "num" ],"user" => [ "id" => "US","type" => "wpg" ], ] ];