Transfer-list: Difference between revisions
From SemanticOrganization
(Created page with "{{Semorg-generator |template-id=TL |form-titles=Umbuchungsliste |form-page-name=Umbuchungslisten |form-unique-number=Yes |display-title-message=<nowiki>Umbuchungsliste vom {{#...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
|template-id=TL | |template-id=TL | ||
|form-page-name=Umbuchungslisten | |form-page-name=Umbuchungslisten | ||
|form-unique-number=Yes | |form-unique-number=Yes | ||
Line 10: | Line 9: | ||
|name=Datum | |name=Datum | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | |||
|id=transfer-date | |||
|property-id=TD | |||
|name=Transferred at | |||
|type=dat | |||
}}{{semorg-generator-field | |||
|id=transferred | |||
|property-id=TR | |||
|name=Transferred | |||
|type=boo | |||
}}{{semorg-generator-field | |||
|id=note | |||
|property-id=NO | |||
|name=Note | |||
|type=txt | |||
}} | }} | ||
}} | }} |
Latest revision as of 17:14, 11 May 2020
Messages
"semorg-transfer-list-template": "semorg-transfer-list", "semorg-transfer-list-category": "semorg-transfer-list", "semorg-transfer-list-form": "semorg-transfer-list", "semorg-form-transfer-list-create-title": "Create Transfer-list", "semorg-form-transfer-list-edit-title": "Edit Transfer-list", "semorg-form-transfer-list-page-name": "Umbuchungslisten", "semorg-form-transfer-list-template": "transfer-list", "semorg-form-transfer-list-rows": "transfer-date, date, note, transferred", "semorg-list-transfer-list-headers": "transfer-list-transfer-date, transfer-list-date, transfer-list-note, transfer-list-transferred", "semorg-field-transfer-list-date-name": "Datum", "semorg-field-transfer-list-date-parameters": "", "semorg-field-transfer-list-note-name": "Note", "semorg-field-transfer-list-note-parameters": "", "semorg-field-transfer-list-transfer-date-name": "Transferred at", "semorg-field-transfer-list-transfer-date-parameters": "", "semorg-field-transfer-list-transferred-name": "Transferred", "semorg-field-transfer-list-transferred-parameters": "",, "semorg-transfer-list-displaytitle": "Umbuchungsliste vom {{#timel:j. F Y|$1}}"
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-transfer-list-create-title}} |edit title={{int:semorg-form-transfer-list-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-transfer-list-page-name}}/<unique number;start=1> }}} {{semorg-form-template|transfer-list}} {{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|transfer-list|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-transfer-list-category}}]]{{#semorg-set:transfer-list |transfer-date={{{transfer-date|}}} |date={{{date|}}} |note={{{note|}}} |transferred={{{transferred|}}} }}{{#semorg-detail:transfer-list}}{{#semorg-table:transfer-list |transfer-date={{{transfer-date|}}} |date={{{date|}}} |note={{{note|}}} |transferred={{{transferred|}}} }}</includeonly>
Row Template
Template:Semorg-transfer-list-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{transfer-date|}}}</td> <td>{{{date|}}}</td> <td>{{{note|}}}</td> <td>{{{transferred|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-transfer-list-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:transfer-list |heading={{int:semorg-transfer-list-page-name}} |formlink={{#semorg-formlink:transfer-list}} |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-transfer-list-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['transfer-list'] = [ "id" => "TL","fields" => ["transfer-date" => [ "id" => "TD","type" => "dat" ],"date" => [ "id" => "DT","type" => "dat" ],"note" => [ "id" => "NO","type" => "txt" ],"transferred" => [ "id" => "TR","type" => "boo" ], ] ];