Membership-payment: Difference between revisions
From SemanticOrganization
m (Text replacement - "|field-id=" to "|id=") |
m (Text replacement - "|field-" to "|") |
||
Line 3: | Line 3: | ||
|template-fields={{Semorg-generator-field | |template-fields={{Semorg-generator-field | ||
|id=ref | |id=ref | ||
| | |property-id=RE | ||
| | |type=wpg | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
|id=date | |id=date | ||
| | |property-id=DT | ||
| | |type=dat | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
|id=member | |id=member | ||
| | |property-id=ME | ||
| | |type=wpg | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
|id=amount | |id=amount | ||
| | |property-id=AM | ||
| | |type=num | ||
}} | }} | ||
}} | }} |
Revision as of 14:24, 22 November 2018
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-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= }}} {{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-forminput: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" ], ] ];