Agenda: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
m (Text replacement - "{{Generator" to "{{Semorg-generator")
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Semorg-generator
{{Semorg-generator
|template-id=AG
|template-id=AG
|template-fields={{Semorg-generator-field
|form-unique-number=No
|field-id=meeting
|template-fields={{semorg-generator-field
|field-property-id=ME
|id=meeting
|field-type=wpg
|property-id=ME
}}{{Semorg-generator-field
|type=wpg
|field-id=title
}}{{semorg-generator-field
|field-property-id=TT
|id=title
|field-type=txt
|property-id=TT
}}{{Semorg-generator-field
|type=txt
|field-id=person
}}{{semorg-generator-field
|field-property-id=PE
|id=person
|field-type=wpg
|property-id=PE
}}{{Semorg-generator-field
|type=wpg
|field-id=type
}}{{semorg-generator-field
|field-property-id=TY
|id=type
|field-type=txt
|property-id=TY
}}{{Semorg-generator-field
|type=txt
|field-id=time
}}{{semorg-generator-field
|field-property-id=TI
|id=time
|field-type=num
|property-id=TI
}}{{Semorg-generator-field
|type=num
|field-id=priority
}}{{semorg-generator-field
|field-property-id=PR
|id=priority
|field-type=txt
|property-id=PY
}}{{Semorg-generator-field
|type=txt
|field-id=description
}}{{semorg-generator-field
|field-property-id=DE
|id=description
|field-type=txt
|property-id=DE
}}{{Semorg-generator-field
|type=txt
|field-id=proposal
}}{{semorg-generator-field
|field-property-id=PR
|id=proposal
|field-type=txt
|property-id=PR
}}{{Semorg-generator-field
|type=txt
|field-id=tag
}}{{semorg-generator-field
|field-property-id=TA
|id=tag
|field-type=txt
|property-id=TA
|type=txt
}}{{semorg-generator-field
|id=start
|property-id=ST
|name=Start Time
|type=num
|parameters=input type=hidden
}}{{semorg-generator-field
|id=end
|property-id=ET
|name=End Time
|type=num
|parameters=input type=hidden
}}{{semorg-generator-field
|id=time-real
|property-id=TR
|name=Time (real)
|type=num
}}{{semorg-generator-field
|id=project
|property-id=PJ
|name=Project
|type=wpg
|parameters=input type=combobox,values from category=semorg-project
}}
}}
}}
}}

Latest revision as of 15:37, 25 September 2020


Messages

"semorg-agenda-template": "semorg-agenda",
"semorg-agenda-category": "semorg-agenda",
"semorg-agenda-form": "semorg-agenda",
"semorg-form-agenda-create-title": "Create Agenda",
"semorg-form-agenda-edit-title": "Edit Agenda",

"semorg-form-agenda-template": "agenda",
"semorg-form-agenda-rows": "title, end, description, time, project, tag, person, proposal, time-real, start, priority, meeting, type",
"semorg-list-agenda-headers": "agenda-title, agenda-end, agenda-description, agenda-time, agenda-project, agenda-tag, agenda-person, agenda-proposal, agenda-time-real, agenda-start, agenda-priority, agenda-meeting, agenda-type",
"semorg-field-agenda-description-name": "", 
"semorg-field-agenda-description-parameters": "",
"semorg-field-agenda-end-name": "End Time", 
"semorg-field-agenda-end-parameters": "input type=hidden",
"semorg-field-agenda-meeting-name": "", 
"semorg-field-agenda-meeting-parameters": "",
"semorg-field-agenda-person-name": "", 
"semorg-field-agenda-person-parameters": "",
"semorg-field-agenda-priority-name": "", 
"semorg-field-agenda-priority-parameters": "",
"semorg-field-agenda-project-name": "Project", 
"semorg-field-agenda-project-parameters": "input type=combobox|values from category=semorg-project",
"semorg-field-agenda-proposal-name": "", 
"semorg-field-agenda-proposal-parameters": "",
"semorg-field-agenda-start-name": "Start Time", 
"semorg-field-agenda-start-parameters": "input type=hidden",
"semorg-field-agenda-tag-name": "", 
"semorg-field-agenda-tag-parameters": "",
"semorg-field-agenda-time-name": "", 
"semorg-field-agenda-time-parameters": "",
"semorg-field-agenda-time-real-name": "Time (real)", 
"semorg-field-agenda-time-real-parameters": "",
"semorg-field-agenda-title-name": "", 
"semorg-field-agenda-title-parameters": "",
"semorg-field-agenda-type-name": "", 
"semorg-field-agenda-type-parameters": "",

Form

Form:Semorg-agenda

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

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

Category

Category:Semorg-agenda

{{semorg-category}}

Template

Template:Semorg-agenda

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-agenda-category}}]]{{#semorg-set:agenda 
  |title={{{title|}}} 
  |end={{{end|}}} 
  |description={{{description|}}} 
  |time={{{time|}}} 
  |project={{{project|}}} 
  |tag={{{tag|}}} 
  |person={{{person|}}} 
  |proposal={{{proposal|}}} 
  |time-real={{{time-real|}}} 
  |start={{{start|}}} 
  |priority={{{priority|}}} 
  |meeting={{{meeting|}}} 
  |type={{{type|}}}
}}{{#semorg-detail:agenda}}{{#semorg-table:agenda 
  |title={{{title|}}} 
  |end={{{end|}}} 
  |description={{{description|}}} 
  |time={{{time|}}} 
  |project={{{project|}}} 
  |tag={{{tag|}}} 
  |person={{{person|}}} 
  |proposal={{{proposal|}}} 
  |time-real={{{time-real|}}} 
  |start={{{start|}}} 
  |priority={{{priority|}}} 
  |meeting={{{meeting|}}} 
  |type={{{type|}}}
}}</includeonly>

Row Template

Template:Semorg-agenda-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{title|}}}</td> 
<td>{{{end|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{time|}}}</td> 
<td>{{{project|}}}</td> 
<td>{{{tag|}}}</td> 
<td>{{{person|}}}</td> 
<td>{{{proposal|}}}</td> 
<td>{{{time-real|}}}</td> 
<td>{{{start|}}}</td> 
<td>{{{priority|}}}</td> 
<td>{{{meeting|}}}</td> 
<td>{{{type|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-agenda-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['agenda'] = [ "id" => "AG","fields" => ["title" => [ "id" => "TT","type" => "txt" ],"end" => [ "id" => "ET","type" => "num" ],"description" => [ "id" => "DE","type" => "txt" ],"time" => [ "id" => "TI","type" => "num" ],"project" => [ "id" => "PJ","type" => "wpg" ],"tag" => [ "id" => "TA","type" => "txt" ],"person" => [ "id" => "PE","type" => "wpg" ],"proposal" => [ "id" => "PR","type" => "txt" ],"time-real" => [ "id" => "TR","type" => "num" ],"start" => [ "id" => "ST","type" => "num" ],"priority" => [ "id" => "PY","type" => "txt" ],"meeting" => [ "id" => "ME","type" => "wpg" ],"type" => [ "id" => "TY","type" => "txt" ], ] ];