Project-subpage: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(Created page with "{{Semorg-generator |template-id=PS |page-name=Project Subpages |entity-name=Project Subpage |form-unique-number=No |placeholder=Name of the subpage |template-fields={{semorg-g...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
|name=Project
|name=Project
|type=wpg
|type=wpg
}}{{semorg-generator-field
|id=subpage
|property-id=SU
|name=Subpage
|type=txt
}}{{semorg-generator-field
|id=description
|property-id=DE
|name=Description
|type=txt
|parameters=rows=2
}}{{semorg-generator-field
|id=archived
|property-id=AR
|name=archived
|type=boo
}}
}}
}}
}}

Latest revision as of 07:23, 8 April 2022


Messages

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

Form

Form:Semorg-project-subpage

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

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

Category

Category:Semorg-project-subpage

{{semorg-category}}

Template

Template:Semorg-project-subpage

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

Row Template

Template:Semorg-project-subpage-row

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

Overview Page Template

Template:Semorg-project-subpage-overview

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

Project Subpages

{{semorg-project-subpage-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['project-subpage'] = [ "id" => "PS","fields" => ["description" => [ "id" => "DE","type" => "txt" ],"project" => [ "id" => "PR","type" => "wpg" ],"archived" => [ "id" => "AR","type" => "boo" ],"subpage" => [ "id" => "SU","type" => "txt" ], ] ];