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