Membership-payment: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(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:
{{Generator
{{Semorg-generator
|template-id=MP
|template-id=MP
|template-fields={{Generator-field
|form-page-name=Zahlung
|field-id=ref
|form-unique-number=Yes
|field-property-id=RE
|template-fields={{semorg-generator-field
|field-type=wpg
|id=ref
}}{{Generator-field
|property-id=RE
|field-id=date
|type=wpg
|field-property-id=DT
}}{{semorg-generator-field
|field-type=dat
|id=date
}}{{Generator-field
|property-id=DT
|field-id=member
|type=dat
|field-property-id=ME
}}{{semorg-generator-field
|field-type=wpg
|id=member
}}{{Generator-field
|property-id=ME
|field-id=amount
|type=wpg
|field-property-id=AM
}}{{semorg-generator-field
|field-type=num
|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" ], ] ];