Person-user: Difference between revisions
From SemanticOrganization
(Created page with "{{Generator}}") |
m (Text replacement - "{{Generator" to "{{Semorg-generator") |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Semorg-generator | ||
|form-titles=Benutzer | |||
|form-page-name=Benutzer | |||
|form-unique-number=Yes | |||
|placeholder=Benutzername | |||
|custom-overview-list=<nowiki>{{#semorg-list:person | |||
|category=semorg-person-user | |||
|row template=person-user | |||
}}</nowiki> | |||
|display-title=<nowiki>{{{firstname|}}} {{{lastname|}}}</nowiki> | |||
}} |
Latest revision as of 09:18, 31 October 2018
Messages
"semorg-person-user-template": "semorg-person-user", "semorg-person-user-category": "semorg-person-user", "semorg-person-user-form": "semorg-person-user", "semorg-form-person-user-create-title": "Create Benutzer", "semorg-form-person-user-edit-title": "Edit Benutzer", "semorg-form-person-user-page-name": "Benutzer", "semorg-forminput-person-user-placeholder": "Benutzername", "semorg-form-person-user-template": "person-user", "semorg-form-person-user-rows": "", "semorg-list-person-user-headers": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-person-user-create-title}} |edit title={{int:semorg-form-person-user-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-person-user-page-name}}/<unique number;start=1> }}} {{semorg-form-template|person-user}} {{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|person-user|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-person-user-category}}]]{{#semorg-set:person-user }}{{#semorg-detail:person-user |heading={{{firstname|}}} {{{lastname|}}} }}{{#semorg-table:person-user }}</includeonly>
Row Template
Template:Semorg-person-user-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-person-user-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:person |category=semorg-person-user |row template=person-user }}</includeonly>
Overview Page
[[]]
{{semorg-person-user-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['person-user'] = [ "id" => "","fields" => [ ] ];