Bundesland-modell: Unterschied zwischen den Versionen
Aus bedarfsverkehr.at
(Die Seite wurde neu angelegt: „{{semorg-generator |template-id=BMO |form-unique-number=Nein |template-fields={{semorg-generator-field |id=bundesland |property-id=BU |type=wpg }}{{semorg-gene…“) |
|||
Zeile 9: | Zeile 9: | ||
|id=modell | |id=modell | ||
|property-id=MO | |property-id=MO | ||
+ | |name=Modell | ||
|type=wpg | |type=wpg | ||
+ | |input-type=combobox | ||
+ | |parameters=values from property=Semorg-modell,mapping property=Semorg-modell-name | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=position | |id=position |
Version vom 15. November 2022, 14:41 Uhr
Messages[ ]
"semorg-bundesland-modell-template": "semorg-bundesland-modell", "semorg-bundesland-modell-category": "semorg-bundesland-modell", "semorg-bundesland-modell-form": "semorg-bundesland-modell", "semorg-form-bundesland-modell-create-title": "Create Bundesland-modell", "semorg-form-bundesland-modell-edit-title": "Edit Bundesland-modell", "semorg-form-bundesland-modell-template": "bundesland-modell", "semorg-form-bundesland-modell-rows": "umsetzung-details, relevant, bundesland, unterstuetzung-details, modell, beschreibung, position, unterstuetzung", "semorg-list-bundesland-modell-headers": "bundesland-modell-umsetzung-details, bundesland-modell-relevant, bundesland-modell-bundesland, bundesland-modell-unterstuetzung-details, bundesland-modell-modell, bundesland-modell-beschreibung, bundesland-modell-position, bundesland-modell-unterstuetzung", "semorg-field-bundesland-modell-beschreibung-name": "bundeslandspezifische Ergänzung zur Beschreibung des Angebots", "semorg-field-bundesland-modell-beschreibung-parameters": "", "semorg-field-bundesland-modell-bundesland-name": "", "semorg-field-bundesland-modell-bundesland-parameters": "", "semorg-field-bundesland-modell-modell-name": "Modell", "semorg-field-bundesland-modell-modell-parameters": "values from property=Semorg-modell|mapping property=Semorg-modell-name", "semorg-field-bundesland-modell-modell-input-type": "combobox", "semorg-field-bundesland-modell-position-name": "", "semorg-field-bundesland-modell-position-parameters": "", "semorg-field-bundesland-modell-relevant-name": "", "semorg-field-bundesland-modell-relevant-parameters": "", "semorg-field-bundesland-modell-umsetzung-details-name": "Details zu den Schritten zur Umsetzung", "semorg-field-bundesland-modell-umsetzung-details-parameters": "", "semorg-field-bundesland-modell-unterstuetzung-name": "Unterstützungsangebote", "semorg-field-bundesland-modell-unterstuetzung-parameters": "", "semorg-field-bundesland-modell-unterstuetzung-details-name": "Details zur Unterstützung durch Land/Verkehrsverbund", "semorg-field-bundesland-modell-unterstuetzung-details-parameters": "",
Form[ ]
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-bundesland-modell-create-title}} |edit title={{int:semorg-form-bundesland-modell-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|bundesland-modell}} {{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|bundesland-modell|}}
Category[ ]
Category:Semorg-bundesland-modell
{{semorg-category}}
Template[ ]
Template:Semorg-bundesland-modell
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-bundesland-modell-category}}]]{{#semorg-set:bundesland-modell |umsetzung-details={{{umsetzung-details|}}} |relevant={{{relevant|}}} |bundesland={{{bundesland|}}} |unterstuetzung-details={{{unterstuetzung-details|}}} |modell={{{modell|}}} |beschreibung={{{beschreibung|}}} |position={{{position|}}} |unterstuetzung={{{unterstuetzung|}}} }}{{#semorg-detail:bundesland-modell}}{{#semorg-table:bundesland-modell |umsetzung-details={{{umsetzung-details|}}} |relevant={{{relevant|}}} |bundesland={{{bundesland|}}} |unterstuetzung-details={{{unterstuetzung-details|}}} |modell={{{modell|}}} |beschreibung={{{beschreibung|}}} |position={{{position|}}} |unterstuetzung={{{unterstuetzung|}}} }}</includeonly>
Row Template[ ]
Template:Semorg-bundesland-modell-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{umsetzung-details|}}}</td> <td>{{{relevant|}}}</td> <td>{{{bundesland|}}}</td> <td>{{{unterstuetzung-details|}}}</td> <td>{{{modell|}}}</td> <td>{{{beschreibung|}}}</td> <td>{{{position|}}}</td> <td>{{{unterstuetzung|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template[ ]
Template:Semorg-bundesland-modell-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:bundesland-modell |heading={{int:semorg-bundesland-modell-page-name}} |formlink={{#semorg-forminput:bundesland-modell}} |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-bundesland-modell-overview}}
Property Registration[ ]
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['bundesland-modell'] = [ "id" => "BMO","fields" => ["umsetzung-details" => [ "id" => "UMD","type" => "txt" ],"relevant" => [ "id" => "RE","type" => "boo" ],"bundesland" => [ "id" => "BU","type" => "wpg" ],"unterstuetzung-details" => [ "id" => "UND","type" => "txt" ],"modell" => [ "id" => "MO","type" => "wpg" ],"beschreibung" => [ "id" => "BE","type" => "txt" ],"position" => [ "id" => "PO","type" => "num" ],"unterstuetzung" => [ "id" => "UN","type" => "txt" ], ] ];