Line 4: |
Line 4: |
| }} | | }} |
| {{Template:Helper/UI/VE/Hidden | | {{Template:Helper/UI/VE/Hidden |
− | |content=<div class="WellplateEditor" style="display:hide;">{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}.wellplate.svg</div> | + | |content=<div class="WellplateEditor" style="display:hide;" data-config='{ |
| + | "file_title": "{{#if:{{{uuid|}}}|OSW{{#replace:{{{uuid}}}|-|}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}}}.wellplate.svg", |
| + | "file_label": "{{{file_name}}}" |
| + | }'></div> |
| }}</includeonly> | | }}</includeonly> |
| <noinclude>[[Category:OSL/Infrastructure/Template/User]] | | <noinclude>[[Category:OSL/Infrastructure/Template/User]] |
Line 35: |
Line 38: |
| "type": "wiki-page-name", | | "type": "wiki-page-name", |
| "autovalue": "{{subst:FULLPAGENAME}}" | | "autovalue": "{{subst:FULLPAGENAME}}" |
| + | }, |
| + | "uuid": { |
| + | "label": { |
| + | "en": "Unique ID", |
| + | "de": "Eindeutige ID" |
| + | }, |
| + | "description": { |
| + | "en": "Automatically generated and should not be changed", |
| + | "de": "Wird automatisch generiert und sollte nicht verändert werden" |
| + | }, |
| + | "type": "string", |
| + | "required": true, |
| + | "autovalue": "{{subst:UUID}}" |
| } | | } |
| }, | | }, |
Line 40: |
Line 56: |
| "en": "Adds a wellplate editor", | | "en": "Adds a wellplate editor", |
| "de": "Fügt einen Wellplatten-Editor hinzu " | | "de": "Fügt einen Wellplatten-Editor hinzu " |
− | } | + | }, |
| + | "format": "block" |
| } | | } |
| </templatedata> | | </templatedata> |
| </noinclude> | | </noinclude> |