Template:Editor/DrawIO: Difference between revisions

Update package: OSW Core
(Update package: OSW Core)
(Update package: OSW Core)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
|icon=browser
|icon=browser
|content=Diagram ''{{{file_name}}}''
|content=Diagram ''{{{file_name}}}''
|css_class=drawio-editor-container
}}
}}
{{Template:Helper/UI/VE/Hidden  
{{Template:Helper/UI/VE/Hidden  
|css_class=drawio-editor-container
|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|}}} }}
|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]]
Line 40: Line 42:
},
},
"description": {
"description": {
"en": "Display width of the graphic in pixels",
"en": "Display width of the graphic in pixels or percent",
"de": "Anzeigebreite der Graphik in Pixeln"
"de": "Anzeigebreite der Graphik in Pixeln oder Prozent"
},
},
"type": "string",
"type": "string",
Line 81: Line 83:
},
},
"type": "string",
"type": "string",
"required": false
"required": true,
"autovalue": "{{subst:UUID}}"
}
}
},
},
Line 87: Line 90:
"en": "Adds a MS-Visio-like diagram editor",
"en": "Adds a MS-Visio-like diagram editor",
"de": "Fügt einen MS Visio ähnlichen Graphikeditor ein"
"de": "Fügt einen MS Visio ähnlichen Graphikeditor ein"
}
},
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>