Gdpr-category: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
m (Text replacement - "{{Generator" to "{{Semorg-generator")
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Semorg-generator
{{Semorg-generator
|template-id=GC
|template-id=GC
|template-fields={{Semorg-generator-field
|form-page-name=Datenkategorie
|field-id=name
|form-unique-number=Yes
|field-property-id=NA
|template-fields={{semorg-generator-field
|field-type=txt
|id=name
}}{{Semorg-generator-field
|property-id=NA
|field-id=affected
|type=txt
|field-property-id=AF
}}{{semorg-generator-field
|field-type=wpg
|id=affected
}}{{Semorg-generator-field
|property-id=AF
|field-id=sensitive
|type=wpg
|field-property-id=SE
}}{{semorg-generator-field
|field-type=boo
|id=sensitive
}}{{Semorg-generator-field
|property-id=SE
|field-id=prosecution
|type=boo
|field-property-id=PR
}}{{semorg-generator-field
|field-type=boo
|id=prosecution
}}{{Semorg-generator-field
|property-id=PR
|field-id=erase-time
|type=boo
|field-property-id=ET
}}{{semorg-generator-field
|field-type=txt
|id=erase-time
|property-id=ET
|type=txt
}}
}}
}}
}}

Latest revision as of 13:46, 11 December 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-page-name": "Datenkategorie",

"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

Form:Semorg-gdpr-category

<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={{int:semorg-form-gdpr-category-page-name}}/<unique number;start=1>
}}}

{{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

Category:Semorg-gdpr-category

{{semorg-category}}

Template

Template:Semorg-gdpr-category

<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-formlink: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" ], ] ];