SvgEdit

From BrineRIS Dataspace
EditorSvgEdit
(Install package: OSW Core)
 
(Update package: OSW Core)
 
Line 4: Line 4:
 
}}
 
}}
 
{{Template:Helper/UI/VE/Hidden  
 
{{Template:Helper/UI/VE/Hidden  
|content=<div class="SvgEdit" style="width: {{{width|100%}}}; height: 500px;">{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}.svg</div>
+
|content=<div class="SvgEdit" style="width: {{{width|100%}}}; height: 500px;" data-config='{
}}<div style="display:none">[[Media:{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}.svg]]</div></includeonly><!-- Hidden link to file to include file in page images-->
+
  "file_title": "{{#if:{{{uuid|}}}|OSW{{#replace:{{{uuid}}}|-|}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}}}.svg",
 +
  "file_label": "{{{file_name}}}"
 +
}'></div>
 +
}}<div style="display:none">[[Media:{{#if:{{{uuid|}}}|OSW{{#replace:{{{uuid}}}|-|}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}}}.svg]]</div></includeonly><!-- Hidden link to file to include file in page images-->
 
<noinclude>[[Category:OSL/Infrastructure/Template/User]]
 
<noinclude>[[Category:OSL/Infrastructure/Template/User]]
 
<templatedata>
 
<templatedata>
Line 46: Line 49:
 
},
 
},
 
"description": {
 
"description": {
"en": "is filled in automatically",
+
"en": "is filled in automatically and should not be changed",
"de": "wird automatisch ausgefüllt"
+
"de": "wird automatisch ausgefüllt und sollte nicht verändert werden"
 
},
 
},
 
"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 57: Line 73:
 
"de": "Fügt einen Freihand-Grafik-Editor hinzu"
 
"de": "Fügt einen Freihand-Grafik-Editor hinzu"
 
},
 
},
"format": "\n{{_\n| _ = _\n}}\n"
+
"format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 08:49, 15 June 2023

Adds a freehand graphic editor

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namefile_name

Sketch name

Auto value
sketch-01
Stringrequired
Breitewidth

Width of the graphic

Example
600px or 100%
Auto value
100%
Stringoptional
Page namepage_name

is filled in automatically and should not be changed

Auto value
{{subst:FULLPAGENAME}}
Pageoptional
Unique IDuuid

Automatically generated and should not be changed

Auto value
{{subst:UUID}}
Stringrequired