Milestone
From SemanticOrganization
Messages
"semorg-milestone-template": "semorg-milestone", "semorg-milestone-category": "semorg-milestone", "semorg-milestone-form": "semorg-milestone", "semorg-milestone-page-name": "Milestones", "semorg-milestone-entity-name": "Milestone", "semorg-form-milestone-create-title": "Create Milestone", "semorg-form-milestone-edit-title": "Edit Milestone", "semorg-form-milestone-page-name": "Milestones", "semorg-form-milestone-template": "milestone", "semorg-form-milestone-rows": "plot,number,name,description", "semorg-list-milestone-headers": "milestone-milestone,milestone-plot,milestone-number,milestone-description", "semorg-field-milestone-description-name": "Description", "semorg-field-milestone-description-parameters": "input type=textarea|autogrow|rows=1|cols=60", "semorg-field-milestone-milestone-name": "Milestone", "semorg-field-milestone-milestone-parameters": "", "semorg-field-milestone-name-name": "Name", "semorg-field-milestone-name-parameters": "", "semorg-field-milestone-number-name": "Milestone Number", "semorg-field-milestone-number-parameters": "size=3", "semorg-field-milestone-plot-name": "Plot", "semorg-field-milestone-plot-parameters": "input type=combobox|values from category=semorg-plot|mapping property=Semorg-plot-name", "semorg-field-milestone-project-name": "Project", "semorg-field-milestone-project-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-milestone-create-title}} |edit title={{int:semorg-form-milestone-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-milestone-page-name}}/<unique number;start=1> }}} {{semorg-form-template|milestone}} {{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|milestone|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-milestone-category}}]]{{#semorg-set:milestone |number={{{number|}}} |project={{{project|}}} |description={{{description|}}} |name={{{name|}}} |plot={{{plot|}}} |milestone={{{milestone|}}} }}{{#semorg-detail:milestone}}{{#semorg-table:milestone |number={{{number|}}} |project={{{project|}}} |description={{{description|}}} |name={{{name|}}} |plot={{{plot|}}} |milestone={{{milestone|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{number|}}}</td> <td>{{{project|}}}</td> <td>{{{description|}}}</td> <td>{{{name|}}}</td> <td>{{{plot|}}}</td> <td>{{{milestone|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-milestone-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:milestone |heading={{int:semorg-milestone-page-name}} |formlink={{#semorg-formlink:milestone}} |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-milestone-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['milestone'] = [ "id" => "MI","fields" => ["number" => [ "id" => "NU","type" => "num" ],"project" => [ "id" => "PR","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"plot" => [ "id" => "PL","type" => "wpg" ], ] ];