Template:Editor/DrawIO: Difference between revisions

Template page
(Update package: OSW Core)
 
(Update package: OSW Core)
Line 4: Line 4:
}}
}}
{{Template:Helper/UI/VE/Hidden  
{{Template:Helper/UI/VE/Hidden  
|content={{#drawio:{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}|type={{{type|svg}}}|max-width={{#ifeq: {{{full_width|0}}}|1|100%| {{{width|500px}}} }}}}
|content={{#drawio:{{#if:{{{uuid|}}}|OSW{{#replace:{{{uuid}}}|-|}}|{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}}}|type={{{type|svg}}}|max-width={{#ifeq: {{{full_width|0}}}|1|100%| {{{width|500px}}} }} |label={{{file_name|}}} }}
}}</includeonly><noinclude>[[Category:OSL/Infrastructure/Template/User]]
}}</includeonly><noinclude>[[Category:OSL/Infrastructure/Template/User]]
<templatedata>
<templatedata>
Line 10: Line 10:
"params": {
"params": {
"file_name": {
"file_name": {
"label": "Name",
"label": {
"description": "Name der Zeichnung",
"en": "Name",
"type": "wiki-file-name",
"de": "Name"
},
"description": {
"en": "Name of the diagram",
"de": "Name des Diagramms"
},
"type": "string",
"required": true
"required": true
},
},
"type": {
"type": {
"label": "Dateiformat",
"label": {
"description": "Die Zeichnung kann als Vektor- oder Rastergraphik gespeichert werden",
"en": "File format",
"de": "Dateiformat"
},
"description": {
"en": "The drawing can be saved as a vector or raster graphic",
"de": "Die Zeichnung kann als Vektor- oder Rastergraphik gespeichert werden"
},
"example": "svg oder png",
"example": "svg oder png",
"type": "string",
"type": "string",
Line 23: Line 35:
},
},
"width": {
"width": {
"label": "Breite",
"label": {
"description": "Breite der Graphik in Pixeln",
"en": "Width",
"de": "Breite"
},
"description": {
"en": "Display width of the graphic in pixels",
"de": "Anzeigebreite der Graphik in Pixeln"
},
"type": "string",
"type": "string",
"autovalue": "600px"
"autovalue": "600px"
Line 34: Line 52:
},
},
"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",
Line 52: Line 70:
"autovalue": "0",
"autovalue": "0",
"suggested": true
"suggested": true
},
"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": false
}
}
},
},

Revision as of 05:35, 6 April 2023

Adds a MS-Visio-like diagram editor

Template parameters

ParameterDescriptionTypeStatus
Namefile_name

Name of the diagram

Stringrequired
File formattype

The drawing can be saved as a vector or raster graphic

Example
svg oder png
Auto value
svg
Stringoptional
Widthwidth

Display width of the graphic in pixels

Auto value
600px
Stringoptional
Page namepage_name

is filled in automatically and should not be changed

Auto value
{{subst:FULLPAGENAME}}
Page nameoptional
Full widthfull_width

Used the full page width to display the diagram

Auto value
0
Booleansuggested
Unique IDuuid

Automatically generated and should not be changed

Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.