Membership: Difference between revisions
From SemanticOrganization
(Created page with "{{Generator |template-id=MS |template-fields={{Generator-field |field-id=member |field-property-id=ME |field-type=wpg }}{{Generator-field |field-id=shares |field-property-id=S...") |
m (Text replacement - "{{Generator" to "{{Semorg-generator") |
||
Line 1: | Line 1: | ||
{{ | {{Semorg-generator | ||
|template-id=MS | |template-id=MS | ||
|template-fields={{ | |template-fields={{Semorg-generator-field | ||
|field-id=member | |field-id=member | ||
|field-property-id=ME | |field-property-id=ME | ||
|field-type=wpg | |field-type=wpg | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=shares | |field-id=shares | ||
|field-property-id=SH | |field-property-id=SH | ||
|field-type=num | |field-type=num | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=date | |field-id=date | ||
|field-property-id=DT | |field-property-id=DT | ||
|field-type=dat | |field-type=dat | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=type | |field-id=type | ||
|field-property-id=TY | |field-property-id=TY | ||
|field-type=txt | |field-type=txt | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=due-date | |field-id=due-date | ||
|field-property-id=DD | |field-property-id=DD | ||
|field-type=dat | |field-type=dat | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=pay-date | |field-id=pay-date | ||
|field-property-id=PD | |field-property-id=PD | ||
|field-type=dat | |field-type=dat | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=payed | |field-id=payed | ||
|field-property-id=PY | |field-property-id=PY |
Revision as of 08:04, 24 October 2018
Messages
"semorg-membership-template": "semorg-membership", "semorg-membership-category": "semorg-membership", "semorg-membership-form": "semorg-membership", "semorg-form-membership-create-title": "Create Membership", "semorg-form-membership-edit-title": "Edit Membership", "semorg-form-membership-template": "membership", "semorg-form-membership-rows": "shares, date, type, pay-date, member, payed, due-date", "semorg-list-membership-headers": "membership-shares, membership-date, membership-type, membership-pay-date, membership-member, membership-payed, membership-due-date", "semorg-field-membership-date-name": "", "semorg-field-membership-date-parameters": "", "semorg-field-membership-due-date-name": "", "semorg-field-membership-due-date-parameters": "", "semorg-field-membership-member-name": "", "semorg-field-membership-member-parameters": "", "semorg-field-membership-pay-date-name": "", "semorg-field-membership-pay-date-parameters": "", "semorg-field-membership-payed-name": "", "semorg-field-membership-payed-parameters": "", "semorg-field-membership-shares-name": "", "semorg-field-membership-shares-parameters": "", "semorg-field-membership-type-name": "", "semorg-field-membership-type-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-membership-create-title}} |edit title={{int:semorg-form-membership-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|membership}} {{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|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-membership-category}}]]{{#semorg-set:membership |shares={{{shares|}}} |date={{{date|}}} |type={{{type|}}} |pay-date={{{pay-date|}}} |member={{{member|}}} |payed={{{payed|}}} |due-date={{{due-date|}}} }}{{#semorg-detail:membership}}{{#semorg-table:membership |shares={{{shares|}}} |date={{{date|}}} |type={{{type|}}} |pay-date={{{pay-date|}}} |member={{{member|}}} |payed={{{payed|}}} |due-date={{{due-date|}}} }}</includeonly>
Row Template
Template:Semorg-membership-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{shares|}}}</td> <td>{{{date|}}}</td> <td>{{{type|}}}</td> <td>{{{pay-date|}}}</td> <td>{{{member|}}}</td> <td>{{{payed|}}}</td> <td>{{{due-date|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-membership-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:membership |heading={{int:semorg-membership-page-name}} |formlink={{#semorg-forminput:membership}} |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-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['membership'] = [ "id" => "MS","fields" => ["shares" => [ "id" => "SH","type" => "num" ],"date" => [ "id" => "DT","type" => "dat" ],"type" => [ "id" => "TY","type" => "txt" ],"pay-date" => [ "id" => "PD","type" => "dat" ],"member" => [ "id" => "ME","type" => "wpg" ],"payed" => [ "id" => "PY","type" => "boo" ],"due-date" => [ "id" => "DD","type" => "dat" ], ] ];