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...")
 
m (Text replacement - "{{Generator" to "{{Semorg-generator")
Line 1: Line 1:
{{Generator
{{Semorg-generator
|template-id=MP
|template-id=MP
|template-fields={{Generator-field
|template-fields={{Semorg-generator-field
|field-id=ref
|field-id=ref
|field-property-id=RE
|field-property-id=RE
|field-type=wpg
|field-type=wpg
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=date
|field-id=date
|field-property-id=DT
|field-property-id=DT
|field-type=dat
|field-type=dat
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=member
|field-id=member
|field-property-id=ME
|field-property-id=ME
|field-type=wpg
|field-type=wpg
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=amount
|field-id=amount
|field-property-id=AM
|field-property-id=AM

Revision as of 09:18, 31 October 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" ], ] ];