Account
From SemanticOrganization
Messages
"semorg-account-template": "semorg-account", "semorg-account-category": "semorg-account", "semorg-account-form": "semorg-account", "semorg-form-account-create-title": "Create Kostenstelle", "semorg-form-account-edit-title": "Edit Kostenstelle", "semorg-form-account-template": "account", "semorg-form-account-rows": "account-number,account-name", "semorg-list-account-headers": "account-number,account-name", "semorg-field-account-account-name-name": "Account Name", "semorg-field-account-account-name-parameters": "", "semorg-field-account-account-number-name": "Account Number", "semorg-field-account-account-number-parameters": "input type=text|size=3",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-account-create-title}}
|edit title={{int:semorg-form-account-edit-title}}<span class="d-none">: <page name></span>
|page name=Account #<semorg-account[account-number]>
}}}
{{semorg-form-template|account}}
{{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|account|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-account-category}}]]{{#semorg-set:account
|account-name={{{account-name|}}}
|account-number={{{account-number|}}}
}}{{#semorg-detail:account}}{{#semorg-table:account
|account-name={{{account-name|}}}
|account-number={{{account-number|}}}
}}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{account-name|}}}</td>
<td>{{{account-number|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-account-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:account
|heading={{int:semorg-account-page-name}}
|formlink={{#semorg-formlink:account}}
|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-account-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['account'] = [ "id" => "AC","fields" => ["account-name" => [ "id" => "NA","type" => "txt" ],"account-number" => [ "id" => "NU","type" => "num" ], ] ];