Action: Unterschied zwischen den Versionen
Aus Klimahaupstadt Linz
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
Zeile 54: | Zeile 54: | ||
|name=Category | |name=Category | ||
|type=txt | |type=txt | ||
}} | }} | ||
}} | }} |
Version vom 29. Oktober 2024, 11:17 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
<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
{{semorg-category}}
Template
<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
<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
{{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" ], ] ];