Action: Unterschied zwischen den Versionen

Aus Klimahaupstadt Linz
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 19: Zeile 19:
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=time
|id=time
|property-id=TI
|property-id=TM
|name=Expenditure of Time
|name=Expenditure of Time
|type=txt
|type=txt
Zeile 61: Zeile 61:
|input-type=radiobutton
|input-type=radiobutton
|values=leicht,mittel,schwierig
|values=leicht,mittel,schwierig
}}{{semorg-generator-field
|id=out-of-date
|property-id=OOD
|type=boo
|label=diese Aktion ist nicht mehr aktuell
}}{{semorg-generator-field
|id=position
|property-id=PO
|name=Position
|type=num
}}
}}
}}
}}

Aktuelle Version vom 13. November 2024, 13:32 Uhr


Messages

"semorg-action-template": "semorg-action",
"semorg-action-category": "semorg-action",
"semorg-action-form": "semorg-action",
"semorg-action-page-name": "Actions",
"semorg-action-entity-name": "Action",
"semorg-form-action-create-title": "Create Action",
"semorg-form-action-edit-title": "Edit Action",

"semorg-form-action-template": "action",
"semorg-form-action-rows": "out-of-date, difficulty, topic, category, type, title, steps, ref, time, website, description, position",
"semorg-list-action-headers": "action-out-of-date, action-difficulty, action-topic, action-category, action-type, action-title, action-steps, action-ref, action-time, action-website, action-description, action-position",
"semorg-field-action-category-name": "Category", 
"semorg-field-action-category-parameters": "",
"semorg-field-action-description-name": "Description", 
"semorg-field-action-description-parameters": "rows=2", 
"semorg-field-action-description-input-type": "textarea",
"semorg-field-action-difficulty-name": "Schwierigkeitsgrad", 
"semorg-field-action-difficulty-parameters": "", 
"semorg-field-action-difficulty-input-type": "radiobutton", 
"semorg-field-action-difficulty-values": "leicht,mittel,schwierig",
"semorg-field-action-out-of-date-name": "", 
"semorg-field-action-out-of-date-parameters": "", 
"semorg-field-action-out-of-date-label": "diese Aktion ist nicht mehr aktuell",
"semorg-field-action-position-name": "Position", 
"semorg-field-action-position-parameters": "",
"semorg-field-action-ref-name": "Verweis", 
"semorg-field-action-ref-parameters": "",
"semorg-field-action-steps-name": "Steps", 
"semorg-field-action-steps-parameters": "holds template",
"semorg-field-action-time-name": "Expenditure of Time", 
"semorg-field-action-time-parameters": "", 
"semorg-field-action-time-values": "5min,15min,30min,1h,2h,3h,5-10h,10-20h,>20h",
"semorg-field-action-title-name": "Title", 
"semorg-field-action-title-parameters": "",
"semorg-field-action-topic-name": "Topic", 
"semorg-field-action-topic-parameters": "",
"semorg-field-action-type-name": "Typ", 
"semorg-field-action-type-parameters": "", 
"semorg-field-action-type-input-type": "checkboxes", 
"semorg-field-action-type-values": "Verstehen,Unterstützen,Fußabdruck,Handabdruck",
"semorg-field-action-website-name": "Webseite", 
"semorg-field-action-website-parameters": "",

Form

Form:Semorg-action

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

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

Category

Category:Semorg-action

{{semorg-category}}

Template

Template:Semorg-action

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-action-category}}]]{{#semorg-set:action 
  |out-of-date={{{out-of-date|}}} 
  |difficulty={{{difficulty|}}} 
  |topic={{{topic|}}} 
  |category={{{category|}}} 
  |type={{{type|}}} 
  |title={{{title|}}} 
  |steps={{{steps|}}} 
  |ref={{{ref|}}} 
  |time={{{time|}}} 
  |website={{{website|}}} 
  |description={{{description|}}} 
  |position={{{position|}}}
}}{{#semorg-detail:action}}{{#semorg-table:action 
  |out-of-date={{{out-of-date|}}} 
  |difficulty={{{difficulty|}}} 
  |topic={{{topic|}}} 
  |category={{{category|}}} 
  |type={{{type|}}} 
  |title={{{title|}}} 
  |steps={{{steps|}}} 
  |ref={{{ref|}}} 
  |time={{{time|}}} 
  |website={{{website|}}} 
  |description={{{description|}}} 
  |position={{{position|}}}
}}</includeonly>

Row Template

Template:Semorg-action-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{out-of-date|}}}</td> 
<td>{{{difficulty|}}}</td> 
<td>{{{topic|}}}</td> 
<td>{{{category|}}}</td> 
<td>{{{type|}}}</td> 
<td>{{{title|}}}</td> 
<td>{{{steps|}}}</td> 
<td>{{{ref|}}}</td> 
<td>{{{time|}}}</td> 
<td>{{{website|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{position|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-action-overview

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

Actions

{{semorg-action-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['action'] = [ "id" => "ACT","fields" => ["out-of-date" => [ "id" => "OOD","type" => "boo" ],"difficulty" => [ "id" => "DI","type" => "txt" ],"topic" => [ "id" => "TO","type" => "wpg" ],"category" => [ "id" => "CA","type" => "txt" ],"type" => [ "id" => "TY","type" => "txt" ],"title" => [ "id" => "TI","type" => "txt" ],"ref" => [ "id" => "RE","type" => "wpg" ],"time" => [ "id" => "TM","type" => "txt" ],"website" => [ "id" => "WE","type" => "uri" ],"description" => [ "id" => "DE","type" => "txt" ],"position" => [ "id" => "PO","type" => "num" ], ] ];