Actor

From SmartHubs
Jump to: navigation, search


Messages

"semorg-actor-template": "semorg-actor",
"semorg-actor-category": "semorg-actor",
"semorg-actor-form": "semorg-actor",
"semorg-form-actor-create-title": "Create Actor",
"semorg-form-actor-edit-title": "Edit Actor",

"semorg-form-actor-template": "actor",
"semorg-form-actor-rows": "name",
"semorg-list-actor-headers": "actor-name",
"semorg-field-actor-name-name": "", 
"semorg-field-actor-name-parameters": "",

Form

Form:Semorg-actor

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

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

Category

Category:Semorg-actor

{{semorg-category}}

Template

Template:Semorg-actor

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-actor-category}}]]{{#semorg-set:actor 
  |name={{{name|}}}
}}{{#semorg-detail:actor}}{{#semorg-table:actor 
  |name={{{name|}}}
}}</includeonly>

Row Template

Template:Semorg-actor-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{name|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-actor-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['actor'] = [ "id" => "ACT","fields" => ["name" => [ "id" => "NA","type" => "txt" ], ] ];