Group-member: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
m (Text replacement - "|field-" to "|")
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Generator
{{Semorg-generator
|template-id=GM
|template-id=GM
|form-add-button-text=Mitglied hinzufügen
|form-add-button-text=Mitglied hinzufügen
|form-unique-number=No
|form-unique-number=No
|template-fields={{Generator-field
|template-fields={{Semorg-generator-field
|field-id=group
|id=group
|field-property-id=GR
|property-id=GR
|field-name=Gruppe
|name=Gruppe
|field-type=wpg
|type=wpg
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=member
|id=member
|field-property-id=ME
|property-id=ME
|field-name=Mitglied
|name=Mitglied
|field-type=wpg
|type=wpg
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=start-date
|id=start-date
|field-property-id=SD
|property-id=SD
|field-name=Mitglied seit
|name=Mitglied seit
|field-type=dat
|type=dat
|field-prefix=von
|prefix=von
|field-parameters=input type=datepicker,size=10
|parameters=input type=datepicker,size=10
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=end-date
|id=end-date
|field-property-id=ED
|property-id=ED
|field-name=Mitglied bis
|name=Mitglied bis
|field-type=dat
|type=dat
|field-prefix=bis
|prefix=bis
|field-parameters=input type=datepicker,size=10
|parameters=input type=datepicker,size=10
}}{{Generator-field
}}{{Semorg-generator-field
|field-id=open-end
|id=open-end
|field-property-id=OE
|property-id=OE
|field-type=boo
|type=boo
}}
}}
}}
}}

Latest revision as of 14:24, 22 November 2018


Messages

"semorg-group-member-template": "semorg-group-member",
"semorg-form-group-member-add-button-text": "Mitglied hinzufügen",

"semorg-form-group-member-template": "group-member",
"semorg-form-group-member-rows": "group, member, open-end, end-date, start-date",
"semorg-list-group-member-headers": "group-member-group, group-member-member, group-member-open-end, group-member-end-date, group-member-start-date",
"semorg-field-group-member-end-date-name": "Mitglied bis", 
"semorg-field-group-member-end-date-parameters": "input type=datepicker|size=10", 
"semorg-field-group-member-end-date-prefix": "bis",
"semorg-field-group-member-group-name": "Gruppe", 
"semorg-field-group-member-group-parameters": "",
"semorg-field-group-member-member-name": "Mitglied", 
"semorg-field-group-member-member-parameters": "",
"semorg-field-group-member-open-end-name": "", 
"semorg-field-group-member-open-end-parameters": "",
"semorg-field-group-member-start-date-name": "Mitglied seit", 
"semorg-field-group-member-start-date-parameters": "input type=datepicker|size=10", 
"semorg-field-group-member-start-date-prefix": "von",

Form

Form:Semorg-group-member

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-group-member-create-title}}
   |edit title={{int:semorg-form-group-member-edit-title}}<span class="d-none">: <page name></span>
   |page name=
}}}

{{semorg-form-template|group-member}}
 
{{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|group-member|}}

Category

Category:Semorg-group-member

{{semorg-category}}

Template

Template:Semorg-group-member

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-group-member-category}}]]{{#semorg-set:group-member 
  |group={{{group|}}} 
  |member={{{member|}}} 
  |open-end={{{open-end|}}} 
  |end-date={{{end-date|}}} 
  |start-date={{{start-date|}}}
}}{{#semorg-detail:group-member}}{{#semorg-table:group-member 
  |group={{{group|}}} 
  |member={{{member|}}} 
  |open-end={{{open-end|}}} 
  |end-date={{{end-date|}}} 
  |start-date={{{start-date|}}}
}}</includeonly>

Row Template

Template:Semorg-group-member-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{group|}}}</td> 
<td>{{{member|}}}</td> 
<td>{{{open-end|}}}</td> 
<td>{{{end-date|}}}</td> 
<td>{{{start-date|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-group-member-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:group-member
  |heading={{int:semorg-group-member-page-name}}
  |formlink={{#semorg-forminput:group-member}}
  |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-group-member-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['group-member'] = [ "id" => "GM","fields" => ["group" => [ "id" => "GR","type" => "wpg" ],"member" => [ "id" => "ME","type" => "wpg" ],"open-end" => [ "id" => "OE","type" => "boo" ],"end-date" => [ "id" => "ED","type" => "dat" ],"start-date" => [ "id" => "SD","type" => "dat" ], ] ];