Role-subpage

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-role-subpage-template": "semorg-role-subpage",
"semorg-role-subpage-category": "semorg-role-subpage",
"semorg-role-subpage-form": "semorg-role-subpage",
"semorg-role-subpage-page-name": "Role Subpages",
"semorg-role-subpage-entity-name": "Role Subpage",
"semorg-form-role-subpage-create-title": "Create Role Subpage",
"semorg-form-role-subpage-edit-title": "Edit Role Subpage",
"semorg-forminput-role-subpage-placeholder": "Name of the subpage",
"semorg-form-role-subpage-template": "role-subpage",
"semorg-form-role-subpage-rows": "subpage, archived, role, description",
"semorg-list-role-subpage-headers": "role-subpage-subpage, role-subpage-archived, role-subpage-role, role-subpage-description",
"semorg-field-role-subpage-archived-name": "archived", 
"semorg-field-role-subpage-archived-parameters": "",
"semorg-field-role-subpage-description-name": "Description", 
"semorg-field-role-subpage-description-parameters": "rows=2",
"semorg-field-role-subpage-role-name": "Role", 
"semorg-field-role-subpage-role-parameters": "",
"semorg-field-role-subpage-subpage-name": "Subpage", 
"semorg-field-role-subpage-subpage-parameters": "",

Form

Form:Semorg-role-subpage

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

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

Category

Category:Semorg-role-subpage

{{semorg-category}}

Template

Template:Semorg-role-subpage

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-role-subpage-category}}]]{{#semorg-set:role-subpage 
  |subpage={{{subpage|}}} 
  |archived={{{archived|}}} 
  |role={{{role|}}} 
  |description={{{description|}}}
}}{{#semorg-detail:role-subpage}}{{#semorg-table:role-subpage 
  |subpage={{{subpage|}}} 
  |archived={{{archived|}}} 
  |role={{{role|}}} 
  |description={{{description|}}}
}}</includeonly>

Row Template

Template:Semorg-role-subpage-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{subpage|}}}</td> 
<td>{{{archived|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{description|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-role-subpage-overview

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

Role Subpages

{{semorg-role-subpage-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['role-subpage'] = [ "id" => "RS","fields" => ["subpage" => [ "id" => "SU","type" => "txt" ],"archived" => [ "id" => "AR","type" => "boo" ],"role" => [ "id" => "RO","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ], ] ];