Topic-category
From SemanticOrganization
Messages
"semorg-topic-category-template": "semorg-topic-category", "semorg-topic-category-category": "semorg-topic-category", "semorg-topic-category-form": "semorg-topic-category", "semorg-topic-category-page-name": "Topic Categories", "semorg-topic-category-entity-name": "Topic Category", "semorg-form-topic-category-create-title": "Create Topic Category", "semorg-form-topic-category-edit-title": "Edit Topic Category", "semorg-form-topic-category-page-name": "Topic Categories", "semorg-form-topic-category-template": "", "semorg-form-topic-category-rows": "name,description", "semorg-list-topic-category-headers": "topic-category-name,topic-category-description", "semorg-field-topic-category-description-name": "Description", "semorg-field-topic-category-description-parameters": "input type=textarea|cols=60|autogrow|rows=1", "semorg-field-topic-category-name-name": "Name", "semorg-field-topic-category-name-parameters": "input type=text|size=60|mandatory",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-topic-category-create-title}} |edit title={{int:semorg-form-topic-category-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-topic-category-page-name}}/<unique number;start=1> }}} {{semorg-form-template|topic-category}} {{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|topic-category|}}
Category
Category:Semorg-topic-category
{{semorg-category}}
Template
Template:Semorg-topic-category
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-topic-category-category}}]]{{#semorg-set:topic-category |name={{{name|}}} |description={{{description|}}} }}{{#semorg-detail:topic-category |heading={{{name}}} }}{{#semorg-table:topic-category |name={{{name|}}} |description={{{description|}}} }}</includeonly>
Row Template
Template:Semorg-topic-category-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{name|}}}</td> <td>{{{description|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-topic-category-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:topic-category |heading={{int:semorg-topic-category-page-name}} |formlink={{#semorg-formlink:topic-category}} |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-topic-category-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['topic-category'] = [ "id" => "TC","fields" => ["name" => [ "id" => "NA","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ], ] ];