Smart-network

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-smart-network-template": "semorg-smart-network",
"semorg-form-smart-network-add-button-text": "Add Stakeholder",

"semorg-form-smart-network-template": "",
"semorg-form-smart-network-rows": "milestone,stakeholder,note,engaged",
"semorg-list-smart-network-headers": "smart-network-stakeholder,smart-network-note,smart-network-engaged",
"semorg-field-smart-network-engaged-name": "Engaged", 
"semorg-field-smart-network-engaged-parameters": "input type=checkbox|label= engaged",
"semorg-field-smart-network-milestone-name": "Mileston", 
"semorg-field-smart-network-milestone-parameters": "input type=combobox|values from category=semorg-milestone|mapping property=semorg-milestone-name",
"semorg-field-smart-network-note-name": "Note", 
"semorg-field-smart-network-note-parameters": "input type=textarea|rows=1|autogrow|cols=60",
"semorg-field-smart-network-stakeholder-name": "Stakeholder", 
"semorg-field-smart-network-stakeholder-parameters": "input type=combobox|values form category=semorg-stakeholder|mapping-property=semorg-stakeholder-name",
"semorg-field-smart-network-type-name": "Type", 
"semorg-field-smart-network-type-parameters": "input type=dropdown|values=resource|competitors|complementary|beneficiaries|opponents|bystanders|mapping template=semorg-mapping-smart-network-type",

Form

Form:Semorg-smart-network

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

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

Category

Category:Semorg-smart-network

{{semorg-category}}

Template

Template:Semorg-smart-network

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-smart-network-category}}]]{{#semorg-set:smart-network 
  |note={{{note|}}} 
  |stakeholder={{{stakeholder|}}} 
  |type={{{type|}}} 
  |milestone={{{milestone|}}} 
  |engaged={{{engaged|}}}
}}{{#semorg-detail:smart-network}}{{#semorg-table:smart-network 
  |note={{{note|}}} 
  |stakeholder={{{stakeholder|}}} 
  |type={{{type|}}} 
  |milestone={{{milestone|}}} 
  |engaged={{{engaged|}}}
}}</includeonly>

Row Template

Template:Semorg-smart-network-row

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

Overview Page Template

Template:Semorg-smart-network-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['smart-network'] = [ "id" => "SN","fields" => ["note" => [ "id" => "NO","type" => "txt" ],"stakeholder" => [ "id" => "SH","type" => "wpg" ],"type" => [ "id" => "TY","type" => "txt" ],"milestone" => [ "id" => "MI","type" => "wpg" ],"engaged" => [ "id" => "EN","type" => "boo" ], ] ];