Expert: Difference between revisions
From Unlock15
Created page with "{{semorg-generator |template-id=EX |entity-name=Expert |page-name=Experts |form-page-name=Experts |form-unique-number=Yes |template-fields={{semorg-generator-field |id=name |property-id=NA |name=Name |type=txt }}{{semorg-generator-field |id=institution |property-id=IN |name=Institution |type=txt |help=Which institution are you mainly representing? }}{{semorg-generator-field |id=languages |property-id=LA |name=Languages |type=txt |help=In which languages are you able to g..." |
No edit summary |
||
| Line 44: | Line 44: | ||
|parameters=mandatory,default=No,show on select=Yes=>semorg-row-expert-lll-relation | |parameters=mandatory,default=No,show on select=Yes=>semorg-row-expert-lll-relation | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id= | |id=lll-relation | ||
|property-id=LLL | |property-id=LLL | ||
|name= | |name=In which UNLOCK15 Learning Living Lab are you mainly involved? | ||
|type=txt | |type=txt | ||
|input-type=checkboxes | |input-type=checkboxes | ||
Latest revision as of 13:02, 15 May 2026
Messages
"semorg-expert-template": "semorg-expert", "semorg-expert-category": "semorg-expert", "semorg-expert-form": "semorg-expert", "semorg-expert-page-name": "Experts", "semorg-expert-entity-name": "Expert", "semorg-form-expert-create-title": "Create Expert", "semorg-form-expert-edit-title": "Edit Expert", "semorg-form-expert-page-name": "Experts", "semorg-form-expert-template": "expert", "semorg-form-expert-rows": "name, country, unlock, languages, institution, email, lll-relation", "semorg-list-expert-headers": "expert-name, expert-country, expert-unlock, expert-languages, expert-institution, expert-email, expert-lll-relation", "semorg-field-expert-country-name": "Main Work location (country)", "semorg-field-expert-country-parameters": "", "semorg-field-expert-country-help": "In which country are you mainly working?", "semorg-field-expert-email-name": "E-Mail", "semorg-field-expert-email-parameters": "", "semorg-field-expert-email-help": "Which mail-adress can be displayed for interested persons?", "semorg-field-expert-institution-name": "Institution", "semorg-field-expert-institution-parameters": "", "semorg-field-expert-institution-help": "Which institution are you mainly representing?", "semorg-field-expert-languages-name": "Languages", "semorg-field-expert-languages-parameters": "", "semorg-field-expert-languages-help": "In which languages are you able to give advice regarding the tools you are an expert for?", "semorg-field-expert-languages-input-type": "tokens", "semorg-field-expert-lll-relation-name": "In which UNLOCK15 Learning Living Lab are you mainly involved?", "semorg-field-expert-lll-relation-parameters": "", "semorg-field-expert-lll-relation-input-type": "checkboxes", "semorg-field-expert-lll-relation-values": "Vienna,Augsburg,Sete,Almere,Porto", "semorg-field-expert-name-name": "Name", "semorg-field-expert-name-parameters": "", "semorg-field-expert-unlock-name": "Are you project partner in the UNLOCK15 project?", "semorg-field-expert-unlock-parameters": "mandatory|default=No|show on select=Yes=>semorg-row-expert-lll-relation", "semorg-field-expert-unlock-input-type": "radiobutton", "semorg-field-expert-unlock-values": "Yes,No",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-expert-create-title}}
|edit title={{int:semorg-form-expert-edit-title}}<span class="d-none">: <page name></span>
|page name={{int:semorg-form-expert-page-name}}/<unique number;start=1>
}}}
{{semorg-form-template|expert}}
{{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|expert|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-expert-category}}]]{{#semorg-set:expert
|name={{{name|}}}
|country={{{country|}}}
|unlock={{{unlock|}}}
|languages={{{languages|}}}
|institution={{{institution|}}}
|email={{{email|}}}
|lll-relation={{{lll-relation|}}}
}}{{#semorg-detail:expert}}{{#semorg-table:expert
|name={{{name|}}}
|country={{{country|}}}
|unlock={{{unlock|}}}
|languages={{{languages|}}}
|institution={{{institution|}}}
|email={{{email|}}}
|lll-relation={{{lll-relation|}}}
}}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{name|}}}</td>
<td>{{{country|}}}</td>
<td>{{{unlock|}}}</td>
<td>{{{languages|}}}</td>
<td>{{{institution|}}}</td>
<td>{{{email|}}}</td>
<td>{{{lll-relation|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-expert-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:expert
|heading={{int:semorg-expert-page-name}}
|formlink={{#semorg-formlink:expert}}
|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-expert-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['expert'] = [ "id" => "EX","fields" => ["name" => [ "id" => "NA","type" => "txt" ],"country" => [ "id" => "CO","type" => "txt" ],"unlock" => [ "id" => "UL","type" => "boo" ],"languages" => [ "id" => "LA","type" => "txt" ],"institution" => [ "id" => "IN","type" => "txt" ],"email" => [ "id" => "EM","type" => "ema" ],"lll-relation" => [ "id" => "LLL","type" => "txt" ], ] ];