Difference between revisions of "Partner"
From SmartHubs
(Created page with "{{Semorg-generator |template-id=PA |page-name=Partners |entity-name=Partner |form-page-name=Partners |form-unique-number=Yes |rows=name |list-headers=partner-name |template-fi...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
− | |template-id= | + | |template-id=PAR |
|page-name=Partners | |page-name=Partners | ||
|entity-name=Partner | |entity-name=Partner | ||
Line 11: | Line 11: | ||
|property-id=NA | |property-id=NA | ||
|name=Name | |name=Name | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=short-name | ||
+ | |property-id=SN | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=description | ||
+ | |property-id=DE | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=hub | ||
+ | |property-id=HU | ||
+ | |name=Hubs | ||
+ | |type=wpg | ||
+ | }}{{semorg-generator-field | ||
+ | |id=role | ||
+ | |property-id=RO | ||
+ | |name=Role | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=role-description | ||
+ | |property-id=RD | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=editor | ||
+ | |property-id=ED | ||
+ | |type=wpg | ||
+ | }}{{semorg-generator-field | ||
+ | |id=website | ||
+ | |property-id=WE | ||
+ | |type=uri | ||
+ | }}{{semorg-generator-field | ||
+ | |id=city | ||
+ | |property-id=CI | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=country | ||
+ | |property-id=CO | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=country-responsibility | ||
+ | |property-id=CR | ||
+ | |name=Country Responsibility | ||
|type=txt | |type=txt | ||
}} | }} | ||
}} | }} |
Latest revision as of 16:01, 13 October 2021
Messages
"semorg-partner-template": "semorg-partner", "semorg-partner-category": "semorg-partner", "semorg-partner-form": "semorg-partner", "semorg-partner-page-name": "Partners", "semorg-partner-entity-name": "Partner", "semorg-form-partner-create-title": "Create Partner", "semorg-form-partner-edit-title": "Edit Partner", "semorg-form-partner-page-name": "Partners", "semorg-form-partner-template": "partner", "semorg-form-partner-rows": "name", "semorg-list-partner-headers": "partner-name", "semorg-field-partner-country-responsibility-name": "Country Responsibility", "semorg-field-partner-country-responsibility-parameters": "", "semorg-field-partner-role-description-name": "", "semorg-field-partner-role-description-parameters": "", "semorg-field-partner-hub-name": "Hubs", "semorg-field-partner-hub-parameters": "", "semorg-field-partner-editor-name": "", "semorg-field-partner-editor-parameters": "", "semorg-field-partner-website-name": "", "semorg-field-partner-website-parameters": "", "semorg-field-partner-name-name": "Name", "semorg-field-partner-name-parameters": "", "semorg-field-partner-country-name": "", "semorg-field-partner-country-parameters": "", "semorg-field-partner-short-name-name": "", "semorg-field-partner-short-name-parameters": "", "semorg-field-partner-role-name": "Role", "semorg-field-partner-role-parameters": "", "semorg-field-partner-description-name": "", "semorg-field-partner-description-parameters": "", "semorg-field-partner-city-name": "", "semorg-field-partner-city-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-partner-create-title}} |edit title={{int:semorg-form-partner-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-partner-page-name}}/<unique number;start=1> }}} {{semorg-form-template|partner}} {{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|partner|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-partner-category}}]]{{#semorg-set:partner |country-responsibility={{{country-responsibility|}}} |role-description={{{role-description|}}} |hub={{{hub|}}} |editor={{{editor|}}} |website={{{website|}}} |name={{{name|}}} |country={{{country|}}} |short-name={{{short-name|}}} |role={{{role|}}} |description={{{description|}}} |city={{{city|}}} }}{{#semorg-detail:partner}}{{#semorg-table:partner |country-responsibility={{{country-responsibility|}}} |role-description={{{role-description|}}} |hub={{{hub|}}} |editor={{{editor|}}} |website={{{website|}}} |name={{{name|}}} |country={{{country|}}} |short-name={{{short-name|}}} |role={{{role|}}} |description={{{description|}}} |city={{{city|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{country-responsibility|}}}</td> <td>{{{role-description|}}}</td> <td>{{{hub|}}}</td> <td>{{{editor|}}}</td> <td>{{{website|}}}</td> <td>{{{name|}}}</td> <td>{{{country|}}}</td> <td>{{{short-name|}}}</td> <td>{{{role|}}}</td> <td>{{{description|}}}</td> <td>{{{city|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-partner-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:partner |heading={{int:semorg-partner-page-name}} |formlink={{#semorg-formlink:partner}} |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-partner-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['partner'] = [ "id" => "PAR","fields" => ["country-responsibility" => [ "id" => "CR","type" => "txt" ],"role-description" => [ "id" => "RD","type" => "txt" ],"hub" => [ "id" => "HU","type" => "wpg" ],"editor" => [ "id" => "ED","type" => "wpg" ],"website" => [ "id" => "WE","type" => "uri" ],"name" => [ "id" => "NA","type" => "txt" ],"country" => [ "id" => "CO","type" => "txt" ],"short-name" => [ "id" => "SN","type" => "txt" ],"role" => [ "id" => "RO","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ],"city" => [ "id" => "CI","type" => "txt" ], ] ];