Gdpr-category: Difference between revisions
From SemanticOrganization
(Created page with "{{Generator |template-id=GC |template-fields={{Generator-field |field-id=name |field-property-id=NA |field-type=txt }}{{Generator-field |field-id=affected |field-property-id=A...") |
m (Text replacement - "{{Generator" to "{{Semorg-generator") |
||
Line 1: | Line 1: | ||
{{ | {{Semorg-generator | ||
|template-id=GC | |template-id=GC | ||
|template-fields={{ | |template-fields={{Semorg-generator-field | ||
|field-id=name | |field-id=name | ||
|field-property-id=NA | |field-property-id=NA | ||
|field-type=txt | |field-type=txt | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=affected | |field-id=affected | ||
|field-property-id=AF | |field-property-id=AF | ||
|field-type=wpg | |field-type=wpg | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=sensitive | |field-id=sensitive | ||
|field-property-id=SE | |field-property-id=SE | ||
|field-type=boo | |field-type=boo | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=prosecution | |field-id=prosecution | ||
|field-property-id=PR | |field-property-id=PR | ||
|field-type=boo | |field-type=boo | ||
}}{{ | }}{{Semorg-generator-field | ||
|field-id=erase-time | |field-id=erase-time | ||
|field-property-id=ET | |field-property-id=ET |
Revision as of 09:18, 31 October 2018
Messages
"semorg-gdpr-category-template": "semorg-gdpr-category", "semorg-gdpr-category-category": "semorg-gdpr-category", "semorg-gdpr-category-form": "semorg-gdpr-category", "semorg-form-gdpr-category-create-title": "Create Gdpr-category", "semorg-form-gdpr-category-edit-title": "Edit Gdpr-category", "semorg-form-gdpr-category-template": "gdpr-category", "semorg-form-gdpr-category-rows": "affected, prosecution, name, erase-time, sensitive", "semorg-list-gdpr-category-headers": "gdpr-category-affected, gdpr-category-prosecution, gdpr-category-name, gdpr-category-erase-time, gdpr-category-sensitive", "semorg-field-gdpr-category-affected-name": "", "semorg-field-gdpr-category-affected-parameters": "", "semorg-field-gdpr-category-erase-time-name": "", "semorg-field-gdpr-category-erase-time-parameters": "", "semorg-field-gdpr-category-name-name": "", "semorg-field-gdpr-category-name-parameters": "", "semorg-field-gdpr-category-prosecution-name": "", "semorg-field-gdpr-category-prosecution-parameters": "", "semorg-field-gdpr-category-sensitive-name": "", "semorg-field-gdpr-category-sensitive-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-gdpr-category-create-title}} |edit title={{int:semorg-form-gdpr-category-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|gdpr-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|gdpr-category|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-gdpr-category-category}}]]{{#semorg-set:gdpr-category |affected={{{affected|}}} |prosecution={{{prosecution|}}} |name={{{name|}}} |erase-time={{{erase-time|}}} |sensitive={{{sensitive|}}} }}{{#semorg-detail:gdpr-category}}{{#semorg-table:gdpr-category |affected={{{affected|}}} |prosecution={{{prosecution|}}} |name={{{name|}}} |erase-time={{{erase-time|}}} |sensitive={{{sensitive|}}} }}</includeonly>
Row Template
Template:Semorg-gdpr-category-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{affected|}}}</td> <td>{{{prosecution|}}}</td> <td>{{{name|}}}</td> <td>{{{erase-time|}}}</td> <td>{{{sensitive|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-gdpr-category-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:gdpr-category |heading={{int:semorg-gdpr-category-page-name}} |formlink={{#semorg-forminput:gdpr-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-gdpr-category-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['gdpr-category'] = [ "id" => "GC","fields" => ["affected" => [ "id" => "AF","type" => "wpg" ],"prosecution" => [ "id" => "PR","type" => "boo" ],"name" => [ "id" => "NA","type" => "txt" ],"erase-time" => [ "id" => "ET","type" => "txt" ],"sensitive" => [ "id" => "SE","type" => "boo" ], ] ];