Manual

From SemanticOrganization
Revision as of 15:29, 13 June 2019 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=MA |page-name=Manuals |entity-name=Manual |form-unique-number=No |placeholder=Name of manual entry |rows=title,summary,role |list-headers=manua...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:⧼semorg-generator-field-template⧽Template:⧼semorg-generator-field-template⧽Template:⧼semorg-generator-field-template⧽Template:⧼semorg-generator-field-template⧽

Messages

"semorg-manual-template": "semorg-manual",
"semorg-manual-category": "semorg-manual",
"semorg-manual-form": "semorg-manual",
"semorg-manual-page-name": "Manuals",
"semorg-manual-entity-name": "Manual",
"semorg-form-manual-create-title": "Create Manual",
"semorg-form-manual-edit-title": "Edit Manual",
"semorg-forminput-manual-placeholder": "Name of manual entry",
"semorg-form-manual-template": "manual",
"semorg-form-manual-rows": "title,summary,role",
"semorg-list-manual-headers": "manual-title,manual-summary,manual-role",
"semorg-field-manual-archived-name": "", 
"semorg-field-manual-archived-parameters": "",
"semorg-field-manual-checked-name": "Checked", 
"semorg-field-manual-checked-parameters": "",
"semorg-field-manual-role-name": "Responsible role", 
"semorg-field-manual-role-parameters": "input type=combobox|values from category=semorg-role|mapping property=semorg-role-name",
"semorg-field-manual-summary-name": "Summary", 
"semorg-field-manual-summary-parameters": "input type=textarea|cols=60|autogrow|rows=2",
"semorg-field-manual-tag-name": "Tags", 
"semorg-field-manual-tag-parameters": "input type=tokens|values from property=semorg-manual-tag",
"semorg-field-manual-title-name": "Title", 
"semorg-field-manual-title-parameters": "",
"semorg-field-manual-up-to-date-date-name": "Last Check", 
"semorg-field-manual-up-to-date-date-parameters": "",
"semorg-field-manual-up-to-date-person-name": "", 
"semorg-field-manual-up-to-date-person-parameters": "",

Form

Form:Semorg-manual

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

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

Category

Category:Semorg-manual

{{semorg-category}}

Template

Template:Semorg-manual

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-manual-category}}]]{{#semorg-set:manual 
  |title={{{title|}}} 
  |archived={{{archived|}}} 
  |role={{{role|}}} 
  |up-to-date-person={{{up-to-date-person|}}} 
  |checked={{{checked|}}} 
  |up-to-date-date={{{up-to-date-date|}}} 
  |summary={{{summary|}}} 
  |tag={{{tag|}}}
}}{{#semorg-detail:manual}}{{#semorg-table:manual 
  |title={{{title|}}} 
  |archived={{{archived|}}} 
  |role={{{role|}}} 
  |up-to-date-person={{{up-to-date-person|}}} 
  |checked={{{checked|}}} 
  |up-to-date-date={{{up-to-date-date|}}} 
  |summary={{{summary|}}} 
  |tag={{{tag|}}}
}}</includeonly>

Row Template

Template:Semorg-manual-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{title|}}}</td> 
<td>{{{archived|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{up-to-date-person|}}}</td> 
<td>{{{checked|}}}</td> 
<td>{{{up-to-date-date|}}}</td> 
<td>{{{summary|}}}</td> 
<td>{{{tag|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-manual-overview

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

Manuals

{{semorg-manual-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['manual'] = [ "id" => "MA","fields" => ["title" => [ "id" => "TI","type" => "txt" ],"archived" => [ "id" => "AR","type" => "boo" ],"role" => [ "id" => "RO","type" => "wpg" ],"up-to-date-person" => [ "id" => "UP","type" => "wpg" ],"checked" => [ "id" => "CH","type" => "boo" ],"up-to-date-date" => [ "id" => "UD","type" => "dat" ],"summary" => [ "id" => "SU","type" => "txt" ],"tag" => [ "id" => "TA","type" => "txt" ], ] ];