Membership: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
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=member
|id=member
|field-property-id=ME
|property-id=ME
|field-type=wpg
|type=wpg
}}{{Semorg-generator-field
}}{{Semorg-generator-field
|id=shares
|id=shares
|field-property-id=SH
|property-id=SH
|field-type=num
|type=num
}}{{Semorg-generator-field
}}{{Semorg-generator-field
|id=date
|id=date
|field-property-id=DT
|property-id=DT
|field-type=dat
|type=dat
}}{{Semorg-generator-field
}}{{Semorg-generator-field
|id=type
|id=type
|field-property-id=TY
|property-id=TY
|field-type=txt
|type=txt
}}{{Semorg-generator-field
}}{{Semorg-generator-field
|id=due-date
|id=due-date
|field-property-id=DD
|property-id=DD
|field-type=dat
|type=dat
}}{{Semorg-generator-field
}}{{Semorg-generator-field
|id=pay-date
|id=pay-date
|field-property-id=PD
|property-id=PD
|field-type=dat
|type=dat
}}{{Semorg-generator-field
}}{{Semorg-generator-field
|id=payed
|id=payed
|field-property-id=PY
|property-id=PY
|field-type=boo
|type=boo
}}
}}
}}
}}

Latest revision as of 14:24, 22 November 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

Form:Semorg-membership

<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

Category:Semorg-membership

{{semorg-category}}

Template

Template:Semorg-membership

<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" ], ] ];