Template:Editor/Graph: Difference between revisions

Template page
(fix height)
Tag: 2017 source edit
(Update package: OSW Core)
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
}}
}}
{{Template:Helper/UI/VE/Hidden  
{{Template:Helper/UI/VE/Hidden  
|content=<div id="{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}" style="width: {{#ifeq: {{{full_width|0}}}|1|100%| {{{width|600px}}} }}; height: {{{height|800px}}};" class="InteractiveSemanticGraph" data-config='{  
|content=<div id="{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}" style="width: {{#ifeq: {{{full_width|0}}}|1|100%| {{{width|600px}}} }};" class="InteractiveSemanticGraph" data-config='{  
   "uuid": "{{{uuid|}}}",
   "uuid": "{{{uuid|}}}",
   "name":"{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}",
   "name":"{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}",
Line 95: Line 95:
"autovalue": "0",
"autovalue": "0",
"suggested": true
"suggested": true
},
        "height": {
"label": {
"en": "Height",
"de": "Höhe"
},
"description": {
"en": "Height of the graph in pixels",
"de": "Höhe des Graphen in Pixeln"
},
"type": "string",
"autovalue": "800px"
},
},
"edit": {
"edit": {
Line 182: Line 170:
},
},
"type": "string",
"type": "string",
"required": false
"required": true,
"autovalue": "{{subst:UUID}}"
}
}
},
},

Latest revision as of 09:03, 27 June 2023

Adds a semantic graph viewer and editor

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Graph namefile_name

Must be unique on this page

Auto value
graph-01
Unknownrequired
Root page nameroot

Dafault value is the current page

Auto value
{{subst:FULLPAGENAME}}
Page namerequired
Propertiesproperties

Semicolon separated property list used to expand the root node

Auto value
IsA; HasPart
Unknownrequired
Expansion depthdepth

Defines how far the graph is unfolded automatically with the given properties

Auto value
2
Unknownsuggested
Widthwidth

Width of the graph in pixels

Auto value
600px
Stringoptional
Full widthfull_width

Used the full page width to display the graph

Auto value
0
Booleansuggested
Edit modusedit

Allows editing the graph

Auto value
0
Booleansuggested
Edge labelsedge_labels

Displays edge labels

Auto value
1
Booleanoptional
Permalinkpermalink

Creates a permalink for the state of the graph

Auto value
0
Booleanoptional
Show hintshint

Shows additional information beside the graph

Auto value
0
Booleanoptional
Page namepage_name

is filled in automatically

Auto value
{{subst:FULLPAGENAME}}
Page nameoptional
Unique IDuuid

Automatically generated and should not be changed

Auto value
{{subst:UUID}}
Stringrequired
Cookies help us deliver our services. By using our services, you agree to our use of cookies.