Group: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Generator
{{semorg-generator
|template-id=G
|template-id=G
|template-fields={{Generator-field
|form-page-name=Groups
|field-id=name
|form-unique-number=Yes
|field-property-id=NA
|placeholder=Name des Gremiums
|field-name=Name
|template-fields={{semorg-generator-field
|field-type=txt
|id=name
|field-parameters=input type=text,size=60
|property-id=NA
}}{{Generator-field
|name=Name
|field-id=description
|type=txt
|field-property-id=DE
|parameters=input type=text,size=60
|field-name=Beschreibung
}}{{semorg-generator-field
|field-type=txt
|id=description
|field-parameters=input type=textarea,autogrow,rows=1,columns=80
|property-id=DE
}}{{Generator-field
|name=Beschreibung
|field-id=permanent
|type=txt
|field-property-id=PM
|parameters=input type=textarea,autogrow,rows=1,columns=80
|field-name=permanent
}}{{semorg-generator-field
|field-type=boo
|id=permanent
|field-suffix= permanent
|property-id=PM
|field-parameters=input type=checkbox
|name=permanent
}}{{Generator-field
|type=boo
|field-id=active
|suffix= permanent
|field-property-id=AC
|parameters=input type=checkbox
|field-name=aktiv
}}{{semorg-generator-field
|field-type=boo
|id=active
|field-suffix=aktiv
|property-id=AC
|field-parameters=input type=checkbox
|name=aktiv
}}{{Generator-field
|type=boo
|field-id=host
|suffix=aktiv
|field-property-id=HO
|parameters=input type=checkbox
|field-name=Host
}}{{semorg-generator-field
|field-type=wpg
|id=host
|field-parameters=input type=combobox,values from property=semorg-person,mapping property=Semorg-person-name
|property-id=HO
}}{{Generator-field
|name=Host
|field-id=properties
|type=wpg
|field-name=Eigenschaften
|parameters=input type=combobox,values from property=semorg-person,mapping property=Semorg-person-name
}}{{semorg-generator-field
|id=co-host
|property-id=CO
|name=Co-Host
|type=wpg
|parameters=input type=combobox,values from property=semorg-person,mapping property=Semorg-person-name
}}{{semorg-generator-field
|id=properties
|name=Eigenschaften
|fields=permanent,active
}}{{semorg-generator-field
|id=goals
|property-id=GO
|name=Goals/Offers
|type=txt
|input-type=textarea
|parameters=rows=2
}}{{semorg-generator-field
|id=domain
|property-id=DO
|name=Domain
|type=txt
|input-type=textarea
|parameters=rows=2
}}
}}
|form-titles=Gremium
}}
}}

Latest revision as of 14:26, 10 October 2024


Messages

"semorg-group-template": "semorg-group",
"semorg-group-category": "semorg-group",
"semorg-group-form": "semorg-group",
"semorg-form-group-create-title": "Create Gremium",
"semorg-form-group-edit-title": "Edit Gremium", 
"semorg-form-group-page-name": "Groups",
"semorg-forminput-group-placeholder": "Name des Gremiums",
"semorg-form-group-template": "group",
"semorg-form-group-rows": "domain, co-host, description, properties, goals, name, host, permanent, active",
"semorg-list-group-headers": "group-domain, group-co-host, group-description, group-properties, group-goals, group-name, group-host, group-permanent, group-active",
"semorg-field-group-active-name": "aktiv", 
"semorg-field-group-active-parameters": "input type=checkbox", 
"semorg-field-group-active-suffix": "aktiv",
"semorg-field-group-co-host-name": "Co-Host", 
"semorg-field-group-co-host-parameters": "input type=combobox|values from property=semorg-person|mapping property=Semorg-person-name",
"semorg-field-group-description-name": "Beschreibung", 
"semorg-field-group-description-parameters": "input type=textarea|autogrow|rows=1|columns=80",
"semorg-field-group-domain-name": "Domain", 
"semorg-field-group-domain-parameters": "rows=2", 
"semorg-field-group-domain-input-type": "textarea",
"semorg-field-group-goals-name": "Goals/Offers", 
"semorg-field-group-goals-parameters": "rows=2", 
"semorg-field-group-goals-input-type": "textarea",
"semorg-field-group-host-name": "Host", 
"semorg-field-group-host-parameters": "input type=combobox|values from property=semorg-person|mapping property=Semorg-person-name",
"semorg-field-group-name-name": "Name", 
"semorg-field-group-name-parameters": "input type=text|size=60",
"semorg-field-group-permanent-name": "permanent", 
"semorg-field-group-permanent-parameters": "input type=checkbox", 
"semorg-field-group-permanent-suffix": " permanent",
"semorg-field-group-properties-name": "Eigenschaften", 
"semorg-field-group-properties-fields": "permanent,active",

Form

Form:Semorg-group

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

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

Category

Category:Semorg-group

{{semorg-category}}

Template

Template:Semorg-group

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-group-category}}]]{{#semorg-set:group 
  |domain={{{domain|}}} 
  |co-host={{{co-host|}}} 
  |description={{{description|}}} 
  |properties={{{properties|}}} 
  |goals={{{goals|}}} 
  |name={{{name|}}} 
  |host={{{host|}}} 
  |permanent={{{permanent|}}} 
  |active={{{active|}}}
}}{{#semorg-detail:group}}{{#semorg-table:group 
  |domain={{{domain|}}} 
  |co-host={{{co-host|}}} 
  |description={{{description|}}} 
  |properties={{{properties|}}} 
  |goals={{{goals|}}} 
  |name={{{name|}}} 
  |host={{{host|}}} 
  |permanent={{{permanent|}}} 
  |active={{{active|}}}
}}</includeonly>

Row Template

Template:Semorg-group-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{domain|}}}</td> 
<td>{{{co-host|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{properties|}}}</td> 
<td>{{{goals|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{host|}}}</td> 
<td>{{{permanent|}}}</td> 
<td>{{{active|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-group-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['group'] = [ "id" => "G","fields" => ["domain" => [ "id" => "DO","type" => "txt" ],"co-host" => [ "id" => "CO","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"goals" => [ "id" => "GO","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"host" => [ "id" => "HO","type" => "wpg" ],"permanent" => [ "id" => "PM","type" => "boo" ],"active" => [ "id" => "AC","type" => "boo" ], ] ];