Membership-payment: Difference between revisions
From SemanticOrganization
(Created page with "{{Generator |template-id=MP |template-fields={{Generator-field |field-id=ref |field-property-id=RE |field-type=wpg }}{{Generator-field |field-id=date |field-property-id=DT |fi...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Semorg-generator | ||
|template-id=MP | |template-id=MP | ||
|template-fields={{ | |form-page-name=Zahlung | ||
| | |form-unique-number=Yes | ||
| | |template-fields={{semorg-generator-field | ||
| | |id=ref | ||
}}{{ | |property-id=RE | ||
| | |type=wpg | ||
| | }}{{semorg-generator-field | ||
| | |id=date | ||
}}{{ | |property-id=DT | ||
| | |type=dat | ||
| | }}{{semorg-generator-field | ||
| | |id=member | ||
}}{{ | |property-id=ME | ||
| | |type=wpg | ||
| | }}{{semorg-generator-field | ||
| | |id=amount | ||
|property-id=AM | |||
|type=num | |||
}} | }} | ||
}} | }} |
Latest revision as of 14:40, 31 January 2019
Messages
"semorg-membership-payment-template": "semorg-membership-payment", "semorg-membership-payment-category": "semorg-membership-payment", "semorg-membership-payment-form": "semorg-membership-payment", "semorg-form-membership-payment-create-title": "Create Membership-payment", "semorg-form-membership-payment-edit-title": "Edit Membership-payment", "semorg-form-membership-payment-page-name": "Zahlung", "semorg-form-membership-payment-template": "membership-payment", "semorg-form-membership-payment-rows": "member, date, amount, ref", "semorg-list-membership-payment-headers": "membership-payment-member, membership-payment-date, membership-payment-amount, membership-payment-ref", "semorg-field-membership-payment-amount-name": "", "semorg-field-membership-payment-amount-parameters": "", "semorg-field-membership-payment-date-name": "", "semorg-field-membership-payment-date-parameters": "", "semorg-field-membership-payment-member-name": "", "semorg-field-membership-payment-member-parameters": "", "semorg-field-membership-payment-ref-name": "", "semorg-field-membership-payment-ref-parameters": "",
Form
Form:Semorg-membership-payment
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-membership-payment-create-title}} |edit title={{int:semorg-form-membership-payment-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-membership-payment-page-name}}/<unique number;start=1> }}} {{semorg-form-template|membership-payment}} {{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|membership-payment|}}
Category
Category:Semorg-membership-payment
{{semorg-category}}
Template
Template:Semorg-membership-payment
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-membership-payment-category}}]]{{#semorg-set:membership-payment |member={{{member|}}} |date={{{date|}}} |amount={{{amount|}}} |ref={{{ref|}}} }}{{#semorg-detail:membership-payment}}{{#semorg-table:membership-payment |member={{{member|}}} |date={{{date|}}} |amount={{{amount|}}} |ref={{{ref|}}} }}</includeonly>
Row Template
Template:Semorg-membership-payment-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{member|}}}</td> <td>{{{date|}}}</td> <td>{{{amount|}}}</td> <td>{{{ref|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-membership-payment-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:membership-payment |heading={{int:semorg-membership-payment-page-name}} |formlink={{#semorg-formlink:membership-payment}} |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-membership-payment-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['membership-payment'] = [ "id" => "MP","fields" => ["member" => [ "id" => "ME","type" => "wpg" ],"date" => [ "id" => "DT","type" => "dat" ],"amount" => [ "id" => "AM","type" => "num" ],"ref" => [ "id" => "RE","type" => "wpg" ], ] ];