Difference between revisions of "Plan"

From SmartHubs
Jump to: navigation, search
(Created page with "{{Semorg-generator |template-id=PLA |form-unique-number=No |rows=title,url,author,date,time-frame,characteristics,policies |template-fields={{semorg-generator-field |id=hub |p...")
 
 
Line 3: Line 3:
 
|form-unique-number=No
 
|form-unique-number=No
 
|rows=title,url,author,date,time-frame,characteristics,policies
 
|rows=title,url,author,date,time-frame,characteristics,policies
 +
|list-headers=plan-title,plan-date
 
|template-fields={{semorg-generator-field
 
|template-fields={{semorg-generator-field
 
|id=hub
 
|id=hub

Latest revision as of 10:34, 19 November 2021


Messages

"semorg-plan-template": "semorg-plan",
"semorg-plan-category": "semorg-plan",
"semorg-plan-form": "semorg-plan",
"semorg-form-plan-create-title": "Create Plan",
"semorg-form-plan-edit-title": "Edit Plan",

"semorg-form-plan-template": "plan",
"semorg-form-plan-rows": "title,url,author,date,time-frame,characteristics,policies",
"semorg-list-plan-headers": "plan-title,plan-date",
"semorg-field-plan-link-name": "Link", 
"semorg-field-plan-link-parameters": "",
"semorg-field-plan-hub-name": "Hub", 
"semorg-field-plan-hub-parameters": "",
"semorg-field-plan-time-frame-name": "Time frame of document", 
"semorg-field-plan-time-frame-parameters": "",
"semorg-field-plan-author-name": "Author", 
"semorg-field-plan-author-parameters": "",
"semorg-field-plan-characteristics-name": "Main characteristics", 
"semorg-field-plan-characteristics-parameters": "",
"semorg-field-plan-year-name": "Year of Publication", 
"semorg-field-plan-year-parameters": "",
"semorg-field-plan-date-name": "Date", 
"semorg-field-plan-date-parameters": "",
"semorg-field-plan-title-name": "Official title of document", 
"semorg-field-plan-title-parameters": "",
"semorg-field-plan-policies-name": "Policies regarding multimodality or mobility hubs", 
"semorg-field-plan-policies-parameters": "",

Form

Form:Semorg-plan

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

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

Category

Category:Semorg-plan

{{semorg-category}}

Template

Template:Semorg-plan

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-plan-category}}]]{{#semorg-set:plan 
  |link={{{link|}}} 
  |hub={{{hub|}}} 
  |time-frame={{{time-frame|}}} 
  |author={{{author|}}} 
  |characteristics={{{characteristics|}}} 
  |year={{{year|}}} 
  |date={{{date|}}} 
  |title={{{title|}}} 
  |policies={{{policies|}}}
}}{{#semorg-detail:plan}}{{#semorg-table:plan 
  |link={{{link|}}} 
  |hub={{{hub|}}} 
  |time-frame={{{time-frame|}}} 
  |author={{{author|}}} 
  |characteristics={{{characteristics|}}} 
  |year={{{year|}}} 
  |date={{{date|}}} 
  |title={{{title|}}} 
  |policies={{{policies|}}}
}}</includeonly>

Row Template

Template:Semorg-plan-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{link|}}}</td> 
<td>{{{hub|}}}</td> 
<td>{{{time-frame|}}}</td> 
<td>{{{author|}}}</td> 
<td>{{{characteristics|}}}</td> 
<td>{{{year|}}}</td> 
<td>{{{date|}}}</td> 
<td>{{{title|}}}</td> 
<td>{{{policies|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-plan-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['plan'] = [ "id" => "PLA","fields" => ["link" => [ "id" => "LI","type" => "uri" ],"hub" => [ "id" => "HU","type" => "wpg" ],"time-frame" => [ "id" => "TF","type" => "txt" ],"author" => [ "id" => "AU","type" => "txt" ],"characteristics" => [ "id" => "CH","type" => "txt" ],"year" => [ "id" => "YE","type" => "num" ],"date" => [ "id" => "DA","type" => "dat" ],"title" => [ "id" => "TI","type" => "txt" ],"policies" => [ "id" => "PO","type" => "txt" ], ] ];