Participation: Unterschied zwischen den Versionen

Aus Klimahaupstadt Linz
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 28: Zeile 28:
|input-type=radiobutton
|input-type=radiobutton
|values=5min,15min,30min,1h,2h,3h,5-10h,10-20h,>20h
|values=5min,15min,30min,1h,2h,3h,5-10h,10-20h,>20h
}}{{semorg-generator-field
|id=website
|property-id=WE
|name=Webseite
|type=uri
}}
}}
}}
}}

Version vom 30. September 2024, 12:07 Uhr


Messages

"semorg-participation-template": "semorg-participation",
"semorg-form-participation-add-button-text": "Mitmachmöglichkeit hinzufügen",

"semorg-form-participation-template": "participation",
"semorg-form-participation-rows": "ref, description, time, type, difficulty, website, title",
"semorg-list-participation-headers": "participation-ref, participation-description, participation-time, participation-type, participation-difficulty, participation-website, participation-title",
"semorg-field-participation-description-name": "Beschreibung", 
"semorg-field-participation-description-parameters": "rows=2", 
"semorg-field-participation-description-input-type": "textarea",
"semorg-field-participation-difficulty-name": "Schwierigkeitsgrad", 
"semorg-field-participation-difficulty-parameters": "", 
"semorg-field-participation-difficulty-input-type": "radiobutton", 
"semorg-field-participation-difficulty-values": "leicht,mittel,schwierig",
"semorg-field-participation-ref-name": "Verweis", 
"semorg-field-participation-ref-parameters": "",
"semorg-field-participation-time-name": "zeitlicher Aufwand", 
"semorg-field-participation-time-parameters": "", 
"semorg-field-participation-time-input-type": "radiobutton", 
"semorg-field-participation-time-values": "5min,15min,30min,1h,2h,3h,5-10h,10-20h,>20h",
"semorg-field-participation-title-name": "Titel", 
"semorg-field-participation-title-parameters": "",
"semorg-field-participation-type-name": "Typ", 
"semorg-field-participation-type-parameters": "", 
"semorg-field-participation-type-input-type": "combobox", 
"semorg-field-participation-type-values": "Verstehen,Unterstützen,Fußabdruck,Handabdruck",
"semorg-field-participation-website-name": "Webseite", 
"semorg-field-participation-website-parameters": "",

Form

Form:Semorg-participation

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

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

Category

Category:Semorg-participation

{{semorg-category}}

Template

Template:Semorg-participation

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-participation-category}}]]{{#semorg-set:participation 
  |ref={{{ref|}}} 
  |description={{{description|}}} 
  |time={{{time|}}} 
  |type={{{type|}}} 
  |difficulty={{{difficulty|}}} 
  |website={{{website|}}} 
  |title={{{title|}}}
}}{{#semorg-detail:participation}}{{#semorg-table:participation 
  |ref={{{ref|}}} 
  |description={{{description|}}} 
  |time={{{time|}}} 
  |type={{{type|}}} 
  |difficulty={{{difficulty|}}} 
  |website={{{website|}}} 
  |title={{{title|}}}
}}</includeonly>

Row Template

Template:Semorg-participation-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{ref|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{time|}}}</td> 
<td>{{{type|}}}</td> 
<td>{{{difficulty|}}}</td> 
<td>{{{website|}}}</td> 
<td>{{{title|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-participation-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['participation'] = [ "id" => "PA","fields" => ["ref" => [ "id" => "RE","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"time" => [ "id" => "TM","type" => "txt" ],"type" => [ "id" => "TY","type" => "txt" ],"difficulty" => [ "id" => "DI","type" => "txt" ],"website" => [ "id" => "WE","type" => "uri" ],"title" => [ "id" => "TI","type" => "txt" ], ] ];