Hypothesis

From SemanticOrganization
Revision as of 12:42, 1 April 2021 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=HY |page-name=Hypotheses |entity-name=Hypothesis |form-page-name=Hypotheses |form-unique-number=Yes |display-title=<nowiki>{{{name|}}}</nowiki>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-hypothesis-template": "semorg-hypothesis",
"semorg-hypothesis-category": "semorg-hypothesis",
"semorg-hypothesis-form": "semorg-hypothesis",
"semorg-hypothesis-page-name": "Hypotheses",
"semorg-hypothesis-entity-name": "Hypothesis",
"semorg-form-hypothesis-create-title": "Create Hypothesis",
"semorg-form-hypothesis-edit-title": "Edit Hypothesis", 
"semorg-form-hypothesis-page-name": "Hypotheses",

"semorg-form-hypothesis-template": "hypothesis",
"semorg-form-hypothesis-rows": "system,name,description,plausibility,evidence,validation",
"semorg-list-hypothesis-headers": "hypothesis-plausibility, hypothesis-name, hypothesis-validation, hypothesis-system, hypothesis-description, hypothesis-evidence",
"semorg-field-hypothesis-description-name": "Description", 
"semorg-field-hypothesis-description-parameters": "rows=1",
"semorg-field-hypothesis-evidence-name": "Evidence", 
"semorg-field-hypothesis-evidence-parameters": "rows=1",
"semorg-field-hypothesis-name-name": "Name", 
"semorg-field-hypothesis-name-parameters": "",
"semorg-field-hypothesis-plausibility-name": "Plausibility", 
"semorg-field-hypothesis-plausibility-parameters": "size=3",
"semorg-field-hypothesis-system-name": "System", 
"semorg-field-hypothesis-system-parameters": "input type=combobox|values from category=semorg-system|mapping property=Semorg-system-name",
"semorg-field-hypothesis-validation-name": "Validation", 
"semorg-field-hypothesis-validation-parameters": "rows=1",

Form

Form:Semorg-hypothesis

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-hypothesis-create-title}}
   |edit title={{int:semorg-form-hypothesis-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-hypothesis-page-name}}/<unique number;start=1>
}}}

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

Category

Category:Semorg-hypothesis

{{semorg-category}}

Template

Template:Semorg-hypothesis

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-hypothesis-category}}]]{{#semorg-set:hypothesis 
  |plausibility={{{plausibility|}}} 
  |name={{{name|}}} 
  |validation={{{validation|}}} 
  |system={{{system|}}} 
  |description={{{description|}}} 
  |evidence={{{evidence|}}}
}}{{#semorg-detail:hypothesis
  |heading={{{name|}}}
}}{{#semorg-table:hypothesis 
  |plausibility={{{plausibility|}}} 
  |name={{{name|}}} 
  |validation={{{validation|}}} 
  |system={{{system|}}} 
  |description={{{description|}}} 
  |evidence={{{evidence|}}}
}}</includeonly>

Row Template

Template:Semorg-hypothesis-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{plausibility|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{validation|}}}</td> 
<td>{{{system|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{evidence|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-hypothesis-overview

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

Hypotheses

{{semorg-hypothesis-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['hypothesis'] = [ "id" => "HY","fields" => ["plausibility" => [ "id" => "PL","type" => "num" ],"name" => [ "id" => "NA","type" => "txt" ],"validation" => [ "id" => "VA","type" => "txt" ],"system" => [ "id" => "SY","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"evidence" => [ "id" => "EV","type" => "txt" ], ] ];