Kekule

From BrineRIS Dataspace
EditorKekule
(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="div_kekule_view_edit" id="chemViewEdit_{{{file_name}}}" style="width:{{{width|600px}}};height:{{{height|500px}}};border:1px solid black;">{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}.kekule.{{{format|json}}}</div>
+
|content=<div class="div_kekule_view_edit" id="chemViewEdit_{{#if:{{{uuid|}}}|{{{uuid}}}|{{{file_name}}}}}" style="width:{{{width|600px}}};height:{{{height|500px}}};border:1px solid black;" data-config='{
 +
  "file_title": "{{#if:{{{uuid|}}}|OSW{{#replace:{{{uuid}}}|-|}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-{{{file_name}}}}}.kekule.{{{format|json}}}",
 +
  "file_label": "{{{file_name}}}"
 +
}'></div>
 
}}</includeonly>
 
}}</includeonly>
 
<noinclude>[[Category:OSL/Infrastructure/Template/User]]
 
<noinclude>[[Category:OSL/Infrastructure/Template/User]]
Line 39: Line 42:
 
},
 
},
 
"width": {
 
"width": {
"label": "Breite",
+
"label": {
"description": "Breite des Dokuments in Pixeln oder Prozent",
+
"en": "Width ",
 +
"de": "Breite"
 +
},
 +
"description": {
 +
"en": "Display width of the document in pixels or percent",
 +
"de": "Anzeigebreite des Dokuments in Pixeln oder Prozent"
 +
},
 
"type": "string",
 
"type": "string",
 
"autovalue": "600px"
 
"autovalue": "600px"
 
},
 
},
 
"height": {
 
"height": {
"label": "Höhe",
+
"label": {
"description": "Breite der Dokuments oder Prozent",
+
"en": "Height",
 +
"de": "Höhe"
 +
},
 +
"description": {
 +
"en": "Display height of the document in pixels",
 +
"de": "Anzeigehöhe des Dokuments in Pixeln"
 +
},
 
"type": "string",
 
"type": "string",
 
"autovalue": "500px"
 
"autovalue": "500px"
Line 61: Line 76:
 
"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 66: Line 94:
 
"en": "Adds a ChemEditor",
 
"en": "Adds a ChemEditor",
 
"de": "Erstellt ein Chemie-Editor (Kekule Composer Widget) zum bearbeiten der angegebenen Unterseite"
 
"de": "Erstellt ein Chemie-Editor (Kekule Composer Widget) zum bearbeiten der angegebenen Unterseite"
}
+
},
 +
"format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 08:49, 15 June 2023

Adds a ChemEditor

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namefile_name

ChemDoc name

Auto value
chemdoc-01
Stringrequired
File formatformat

Storage format for the document (currently only json available)

Auto value
json
Stringoptional
Width width

Display width of the document in pixels or percent

Auto value
600px
Stringoptional
Heightheight

Display height of the document in pixels

Auto value
500px
Stringoptional
Page namepage_name

is filled in automatically

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

Automatically generated and should not be changed

Auto value
{{subst:UUID}}
Stringrequired