System
From SemanticOrganization
Messages
"semorg-system-template": "semorg-system", "semorg-system-category": "semorg-system", "semorg-system-form": "semorg-system", "semorg-system-page-name": "Systems", "semorg-system-entity-name": "System", "semorg-form-system-create-title": "Create System", "semorg-form-system-edit-title": "Edit System", "semorg-form-system-page-name": "Systems", "semorg-form-system-template": "system", "semorg-form-system-rows": "name,description,resources,rules,results", "semorg-list-system-headers": "system-name,system-resources,system-rules,system-results", "semorg-field-system-description-name": "Description", "semorg-field-system-description-parameters": "", "semorg-field-system-name-name": "Name", "semorg-field-system-name-parameters": "", "semorg-field-system-resources-name": "Resources", "semorg-field-system-resources-parameters": "", "semorg-field-system-results-name": "Results", "semorg-field-system-results-parameters": "", "semorg-field-system-rules-name": "Rules", "semorg-field-system-rules-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-system-create-title}} |edit title={{int:semorg-form-system-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-system-page-name}}/<unique number;start=1> }}} {{semorg-form-template|system}} {{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|system|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-system-category}}]]{{#semorg-set:system |description={{{description|}}} |results={{{results|}}} |name={{{name|}}} |rules={{{rules|}}} |resources={{{resources|}}} }}{{#semorg-detail:system |heading={{{name|}}} }}{{#semorg-table:system |description={{{description|}}} |results={{{results|}}} |name={{{name|}}} |rules={{{rules|}}} |resources={{{resources|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{description|}}}</td> <td>{{{results|}}}</td> <td>{{{name|}}}</td> <td>{{{rules|}}}</td> <td>{{{resources|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-system-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:system |heading={{int:semorg-system-page-name}} |formlink={{#semorg-formlink:system}} |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-system-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['system'] = [ "id" => "SY","fields" => ["description" => [ "id" => "DE","type" => "txt" ],"results" => [ "id" => "RT","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"rules" => [ "id" => "RU","type" => "txt" ],"resources" => [ "id" => "RS","type" => "txt" ], ] ];