Action-step: Unterschied zwischen den Versionen
Aus Klimahaupstadt Linz
Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „{{semorg-generator |template-id=ACS |entity-name=Action Step |form-add-button-text=Create Step |form-unique-number=Nein |template-fields={{semorg-generator-field |id=description |property-id=DE |name=Description |type=txt |input-type=textarea |parameters=rows=2 }} }}“) |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 11: | Zeile 11: | ||
|input-type=textarea | |input-type=textarea | ||
|parameters=rows=2 | |parameters=rows=2 | ||
}}{{semorg-generator-field | |||
|id=action | |||
|property-id=AC | |||
|name=Action | |||
|type=wpg | |||
}} | }} | ||
}} | }} |
Aktuelle Version vom 28. September 2024, 21:17 Uhr
Messages
"semorg-action-step-template": "semorg-action-step", "semorg-form-action-step-add-button-text": "Create Step", "semorg-form-action-step-template": "action-step", "semorg-form-action-step-rows": "description, action", "semorg-list-action-step-headers": "action-step-description, action-step-action", "semorg-field-action-step-action-name": "Action", "semorg-field-action-step-action-parameters": "", "semorg-field-action-step-description-name": "Description", "semorg-field-action-step-description-parameters": "rows=2", "semorg-field-action-step-description-input-type": "textarea",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-action-step-create-title}} |edit title={{int:semorg-form-action-step-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|action-step}} {{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|action-step|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-action-step-category}}]]{{#semorg-set:action-step |description={{{description|}}} |action={{{action|}}} }}{{#semorg-detail:action-step}}{{#semorg-table:action-step |description={{{description|}}} |action={{{action|}}} }}</includeonly>
Row Template
Template:Semorg-action-step-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{description|}}}</td> <td>{{{action|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-action-step-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:action-step |heading={{int:semorg-action-step-page-name}} |formlink={{#semorg-forminput:action-step}} |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-action-step-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['action-step'] = [ "id" => "ACS","fields" => ["description" => [ "id" => "DE","type" => "txt" ],"action" => [ "id" => "AC","type" => "wpg" ], ] ];