Tool

From SemanticOrganization
Revision as of 18:21, 13 April 2020 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=TO |page-name=Tools |entity-name=Tool |form-add-button-text=Add Tool |form-unique-number=No |rows=type,note,how,pro,contra,stakeholder |list-he...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-tool-template": "semorg-tool",
"semorg-form-tool-add-button-text": "Add Tool",

"semorg-form-tool-template": "tool",
"semorg-form-tool-rows": "type,note,how,pro,contra,stakeholder",
"semorg-list-tool-headers": "tool-type,tool-how,tool-pro,tool-contra",
"semorg-field-tool-contra-name": "Contra", 
"semorg-field-tool-contra-parameters": "input type=textarea|rows=1|autogrow|cols=60",
"semorg-field-tool-how-name": "How it could help", 
"semorg-field-tool-how-parameters": "input type=textarea|rows=1|autogrow|cols=60",
"semorg-field-tool-milestone-name": "Milestone", 
"semorg-field-tool-milestone-parameters": "",
"semorg-field-tool-note-name": "Note", 
"semorg-field-tool-note-parameters": "input type=textarea|rows=1|autogrow|cols=60",
"semorg-field-tool-pro-name": "Pro", 
"semorg-field-tool-pro-parameters": "input type=textarea|rows=1|autogrow|cols=60",
"semorg-field-tool-stakeholder-name": "Stakeholder", 
"semorg-field-tool-stakeholder-parameters": "",
"semorg-field-tool-type-name": "Type", 
"semorg-field-tool-type-parameters": "input type=combobox|existing values only|values=",

Form

Form:Semorg-tool

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

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

Category

Category:Semorg-tool

{{semorg-category}}

Template

Template:Semorg-tool

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-tool-category}}]]{{#semorg-set:tool 
  |how={{{how|}}} 
  |contra={{{contra|}}} 
  |milestone={{{milestone|}}} 
  |type={{{type|}}} 
  |stakeholder={{{stakeholder|}}} 
  |note={{{note|}}} 
  |pro={{{pro|}}}
}}{{#semorg-detail:tool}}{{#semorg-table:tool 
  |how={{{how|}}} 
  |contra={{{contra|}}} 
  |milestone={{{milestone|}}} 
  |type={{{type|}}} 
  |stakeholder={{{stakeholder|}}} 
  |note={{{note|}}} 
  |pro={{{pro|}}}
}}</includeonly>

Row Template

Template:Semorg-tool-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{how|}}}</td> 
<td>{{{contra|}}}</td> 
<td>{{{milestone|}}}</td> 
<td>{{{type|}}}</td> 
<td>{{{stakeholder|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{pro|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-tool-overview

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

Tools

{{semorg-tool-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['tool'] = [ "id" => "TO","fields" => ["how" => [ "id" => "HO","type" => "txt" ],"contra" => [ "id" => "CO","type" => "txt" ],"milestone" => [ "id" => "MI","type" => "wpg" ],"type" => [ "id" => "TY","type" => "txt" ],"stakeholder" => [ "id" => "ST","type" => "wpg" ],"note" => [ "id" => "NO","type" => "txt" ],"pro" => [ "id" => "PR","type" => "txt" ], ] ];