Source

From SmartHubs
Revision as of 10:04, 6 August 2021 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=SRC |form-add-button-text=Add source |form-unique-number=No |template-fields={{semorg-generator-field |id=hub |property-id=HU |name=Hub |type=w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-form-source-add-button-text": "Add source",

"semorg-form-source-template": "source",
"semorg-form-source-rows": "hub, description, title, link",
"semorg-list-source-headers": "source-hub, source-description, source-title, source-link",
"semorg-field-source-hub-name": "Hub", 
"semorg-field-source-hub-parameters": "",
"semorg-field-source-description-name": "Description", 
"semorg-field-source-description-parameters": "",
"semorg-field-source-title-name": "Title", 
"semorg-field-source-title-parameters": "",
"semorg-field-source-link-name": "Link", 
"semorg-field-source-link-parameters": "",

Form

Form:Semorg-source

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

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

Category

Category:Semorg-source

{{semorg-category}}

Template

Template:Semorg-source

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-source-category}}]]{{#semorg-set:source 
  |hub={{{hub|}}} 
  |description={{{description|}}} 
  |title={{{title|}}} 
  |link={{{link|}}}
}}{{#semorg-detail:source}}{{#semorg-table:source 
  |hub={{{hub|}}} 
  |description={{{description|}}} 
  |title={{{title|}}} 
  |link={{{link|}}}
}}</includeonly>

Row Template

Template:Semorg-source-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{hub|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{title|}}}</td> 
<td>{{{link|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-source-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['source'] = [ "id" => "SRC","fields" => ["hub" => [ "id" => "HU","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"title" => [ "id" => "TI","type" => "txt" ],"link" => [ "id" => "LI","type" => "uri" ], ] ];