Generator

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-generator-template": "semorg-generator",
"semorg-generator-category": "semorg-generator",
"semorg-generator-form": "semorg-generator",
"semorg-form-generator-create-title": "Create Generator",
"semorg-form-generator-edit-title": "Edit Generator",
"semorg-forminput-generator-placeholder": "Name",
"semorg-form-generator-template": "generator",
"semorg-form-generator-rows": "template-id, page-name, template-name",
"semorg-list-generator-headers": "generator-template-id, generator-page-name, generator-template-name",
"semorg-field-generator-page-name-name": "automatischer Seitenname", 
"semorg-field-generator-page-name-parameters": "",
"semorg-field-generator-template-id-name": "ID der Vorlage", 
"semorg-field-generator-template-id-parameters": "",
"semorg-field-generator-template-name-name": "Name des Vorlage", 
"semorg-field-generator-template-name-parameters": "",

Form

Form:Semorg-generator

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

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

Category

Category:Semorg-generator

{{semorg-category}}

Template

Template:Semorg-generator

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

Row Template

Template:Semorg-generator-row

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

Overview Page Template

Template:Semorg-generator-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['generator'] = [ "id" => "GE","fields" => ["template-id" => [ "id" => "TI","type" => "txt" ],"page-name" => [ "id" => "PN","type" => "" ],"template-name" => [ "id" => "TN","type" => "txt" ], ] ];