Publication

From Dreams Knowledge Platform
Revision as of 14:58, 3 March 2026 by Admin (talk | contribs) (Created page with "{{semorg-generator |template-id=PB |entity-name=Publication |page-name=Publications |form-page-name=Publications |form-unique-number=Yes |template-fields={{semorg-generator-field |id=name |property-id=NM |name=Name |type=txt }}{{semorg-generator-field |id=File |property-id=FI |name=File |type=txt }} }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-publication-template": "semorg-publication",
"semorg-publication-category": "semorg-publication",
"semorg-publication-form": "semorg-publication",
"semorg-publication-page-name": "Publications",
"semorg-publication-entity-name": "Publication",
"semorg-form-publication-create-title": "Create Publication",
"semorg-form-publication-edit-title": "Edit Publication", 
"semorg-form-publication-page-name": "Publications",

"semorg-form-publication-template": "publication",
"semorg-form-publication-rows": "title, external-link, authors, description, category, file, date",
"semorg-list-publication-headers": "publication-title, publication-external-link, publication-authors, publication-description, publication-category, publication-file, publication-date",
"semorg-field-publication-authors-name": "Authors", 
"semorg-field-publication-authors-parameters": "",
"semorg-field-publication-category-name": "Category", 
"semorg-field-publication-category-parameters": "",
"semorg-field-publication-date-name": "Date", 
"semorg-field-publication-date-parameters": "",
"semorg-field-publication-description-name": "Description", 
"semorg-field-publication-description-parameters": "",
"semorg-field-publication-external-link-name": "External Link", 
"semorg-field-publication-external-link-parameters": "", 
"semorg-field-publication-external-link-input-type": "textarea",
"semorg-field-publication-file-name": "File", 
"semorg-field-publication-file-parameters": "",
"semorg-field-publication-title-name": "Title", 
"semorg-field-publication-title-parameters": "",

Form

Form:Semorg-publication

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

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

Category

Category:Semorg-publication

{{semorg-category}}

Template

Template:Semorg-publication

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-publication-category}}]]{{#semorg-set:publication 
  |title={{{title|}}} 
  |external-link={{{external-link|}}} 
  |authors={{{authors|}}} 
  |description={{{description|}}} 
  |category={{{category|}}} 
  |file={{{file|}}} 
  |date={{{date|}}}
}}{{#semorg-detail:publication}}{{#semorg-table:publication 
  |title={{{title|}}} 
  |external-link={{{external-link|}}} 
  |authors={{{authors|}}} 
  |description={{{description|}}} 
  |category={{{category|}}} 
  |file={{{file|}}} 
  |date={{{date|}}}
}}</includeonly>

Row Template

Template:Semorg-publication-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{title|}}}</td> 
<td>{{{external-link|}}}</td> 
<td>{{{authors|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{category|}}}</td> 
<td>{{{file|}}}</td> 
<td>{{{date|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-publication-overview

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

Publications

{{semorg-publication-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['publication'] = [ "id" => "PB","fields" => ["title" => [ "id" => "TI","type" => "txt" ],"external-link" => [ "id" => "EL","type" => "uri" ],"authors" => [ "id" => "AU","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ],"category" => [ "id" => "CA","type" => "txt" ],"file" => [ "id" => "FI","type" => "txt" ],"date" => [ "id" => "DA","type" => "dat" ], ] ];