DrawIO

From KIproBatt Wiki
ELNEditorDrawIO
(Updated with content from Extension:OpenSemanticLab version 0.0.3)
 
(Updated with content from Extension:OpenSemanticLab version 0.0.3)
 
Line 4: Line 4:
 
}}
 
}}
 
{{OslTemplate:Helper/UI/VE/Hidden  
 
{{OslTemplate:Helper/UI/VE/Hidden  
|content={{#drawio:{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}|type={{{type|svg}}}|max-width={{{width|500px}}}}}
+
|content={{#drawio:{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}|type={{{type|svg}}}|max-width={{#ifeq: {{{full_width|0}}}|1|100%| {{{width|500px}}} }}}}
 
}}</includeonly><noinclude>[[Category:OSL/Infrastructure/Template/User]]
 
}}</includeonly><noinclude>[[Category:OSL/Infrastructure/Template/User]]
 
<templatedata>
 
<templatedata>
Line 39: Line 39:
 
"type": "wiki-page-name",
 
"type": "wiki-page-name",
 
"autovalue": "{{subst:FULLPAGENAME}}"
 
"autovalue": "{{subst:FULLPAGENAME}}"
 +
},
 +
"full_width": {
 +
"label": {
 +
"en": "Full width",
 +
"de": "Gesamte Seitenbreite"
 +
},
 +
"description": {
 +
"en": "Used the full page width to display the diagram",
 +
"de": "Nutzt die gesamte Seitenbreite zur Darstellung des Diagramms"
 +
},
 +
"type": "boolean",
 +
"autovalue": "0",
 +
"suggested": true
 
}
 
}
 
},
 
},

Latest revision as of 05:23, 17 May 2022

Adds a MS-Visio-like diagram editor

Template parameters

ParameterDescriptionTypeStatus
Namefile_name

Name der Zeichnung

Filerequired
Dateiformattype

Die Zeichnung kann als Vektor- oder Rastergraphik gespeichert werden

Example
svg oder png
Auto value
svg
Stringoptional
Breitewidth

Breite der Graphik in Pixeln

Auto value
600px
Stringoptional
Page namepage_name

is filled in automatically

Auto value
{{subst:FULLPAGENAME}}
Pageoptional
Full widthfull_width

Used the full page width to display the diagram

Auto value
0
Booleansuggested