Template:Editor/Kanban: Difference between revisions

Template page
(Update package: OSW Core)
 
(Update package: OSW Core)
 
Line 7: Line 7:
   "uuid": "{{{uuid|}}}",
   "uuid": "{{{uuid|}}}",
   "name":"{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}",
   "name":"{{#if: {{{page_name|}}}|{{#replace:{{#replace: {{{page_name}}}|/|-}}|:|-}}-|}}{{{file_name}}}",
   "edit":{{#ifeq: {{{edit|0}}}|1|true|false}},  
   "edit":{{#ifeq: {{{edit|0}}}|1|true|false}},
   "default_jsondata": {"related_to": ["{{FULLPAGENAME}}"]},
   "board_preset": "prio_backlog_inwork_done",
   {{#if: {{{smw_query|[[IsRelatedTo::{{FULLPAGENAME}}]]}}}|"query": {"type": "smw", "value": "{{{smw_query|[[IsRelatedTo::{{FULLPAGENAME}}]]}}}"}|}}
  "board": {
    "default_jsondata": {"related_to": ["{{FULLPAGENAME}}"]}
  }
   {{#if: {{{smw_query|[[IsRelatedTo::{{FULLPAGENAME}}]]}}}|,"query": {"type": "smw", "value": "{{{smw_query|[[IsRelatedTo::{{FULLPAGENAME}}]]}}}"}|}}
}'></div>
}'></div>
}}</includeonly><noinclude>[[Category:OSL/Infrastructure/Template/User]]
}}</includeonly><noinclude>[[Category:OSL/Infrastructure/Template/User]]

Latest revision as of 02:32, 15 November 2023

Adds a kanban board task viewer and editor

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Board namefile_name

Must be unique on this page

Auto value
kanban-01
Unknownrequired
SMW querysmw_query

Selects task by running an SMW query, default all task related to the current page

Auto value
[[IsRelatedTo::{{subst:FULLPAGENAME}}]]
Unknownoptional
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
1
Booleansuggested
Edit modusedit

Allows editing the board / task

Auto value
1
Booleansuggested
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.