Bundesland: Unterschied zwischen den Versionen
Aus mobil-am-land.at
intern>Tobias |
K (1 Version importiert) |
(kein Unterschied)
|
Aktuelle Version vom 4. November 2022, 15:55 Uhr
Messages[ ]
"semorg-bundesland-template": "semorg-bundesland", "semorg-bundesland-category": "semorg-bundesland", "semorg-bundesland-form": "semorg-bundesland", "semorg-bundesland-entity-name": "Bundesland", "semorg-form-bundesland-create-title": "Create Bundesland", "semorg-form-bundesland-edit-title": "Edit Bundesland", "semorg-form-bundesland-template": "bundesland", "semorg-form-bundesland-rows": "ansprechpersonen, webseite, beratungseinrichtungen, name, foerderungen, uebersicht", "semorg-list-bundesland-headers": "bundesland-ansprechpersonen, bundesland-webseite, bundesland-beratungseinrichtungen, bundesland-name, bundesland-foerderungen, bundesland-uebersicht", "semorg-field-bundesland-ansprechpersonen-name": "Ansprechpersonen", "semorg-field-bundesland-ansprechpersonen-parameters": "", "semorg-field-bundesland-beratungseinrichtungen-name": "Beratungseinrichtungen", "semorg-field-bundesland-beratungseinrichtungen-parameters": "holds template", "semorg-field-bundesland-foerderungen-name": "Förderungen", "semorg-field-bundesland-foerderungen-parameters": "holds template", "semorg-field-bundesland-name-name": "Name", "semorg-field-bundesland-name-parameters": "", "semorg-field-bundesland-uebersicht-name": "Übersicht", "semorg-field-bundesland-uebersicht-parameters": "rows=1", "semorg-field-bundesland-uebersicht-input-type": "textarea", "semorg-field-bundesland-webseite-name": "Webseite", "semorg-field-bundesland-webseite-parameters": "",
Form[ ]
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-bundesland-create-title}} |edit title={{int:semorg-form-bundesland-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|bundesland}} {{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|}}
Category[ ]
{{semorg-category}}
Template[ ]
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-bundesland-category}}]]{{#semorg-set:bundesland |ansprechpersonen={{{ansprechpersonen|}}} |webseite={{{webseite|}}} |beratungseinrichtungen={{{beratungseinrichtungen|}}} |name={{{name|}}} |foerderungen={{{foerderungen|}}} |uebersicht={{{uebersicht|}}} }}{{#semorg-detail:bundesland}}{{#semorg-table:bundesland |ansprechpersonen={{{ansprechpersonen|}}} |webseite={{{webseite|}}} |beratungseinrichtungen={{{beratungseinrichtungen|}}} |name={{{name|}}} |foerderungen={{{foerderungen|}}} |uebersicht={{{uebersicht|}}} }}</includeonly>
Row Template[ ]
Template:Semorg-bundesland-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{ansprechpersonen|}}}</td> <td>{{{webseite|}}}</td> <td>{{{beratungseinrichtungen|}}}</td> <td>{{{name|}}}</td> <td>{{{foerderungen|}}}</td> <td>{{{uebersicht|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template[ ]
Template:Semorg-bundesland-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:bundesland |heading={{int:semorg-bundesland-page-name}} |formlink={{#semorg-forminput:bundesland}} |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-overview}}
Property Registration[ ]
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['bundesland'] = [ "id" => "BL","fields" => ["webseite" => [ "id" => "WE","type" => "uri" ],"beratungseinrichtungen" => [ "id" => "BE","type" => "" ],"name" => [ "id" => "NA","type" => "txt" ],"foerderungen" => [ "id" => "FO","type" => "" ],"uebersicht" => [ "id" => "UE","type" => "txt" ], ] ];