docs: add choice (#20139)
Some checks failed
Some checks failed
This commit is contained in:
parent
36e8dce048
commit
782db8f9f1
2 changed files with 10 additions and 3 deletions
|
|
@ -36,8 +36,8 @@ params:
|
|||
default: self-consumption
|
||||
advanced: true
|
||||
help:
|
||||
de: Standardmodus für die aktive Batteriesteuerung (self-consumption oder time-of-use)
|
||||
en: Default mode for active battery control (self-consumption or time-of-use)
|
||||
de: Standardmodus für die aktive Batteriesteuerung
|
||||
en: Default mode for active battery control
|
||||
usages: ["battery"]
|
||||
- name: chargepower
|
||||
default: 3300
|
||||
|
|
|
|||
|
|
@ -4,7 +4,14 @@
|
|||
- {{ . }}
|
||||
{{- end }}
|
||||
{{- $help := localize .Help | replace "\n" " " -}}
|
||||
{{- if $help }} # {{ $help }}{{- end }}{{- if not .IsRequired }}{{ if not $help }} # {{ else }} ({{ end }}optional{{ if $help }}){{ end }}{{ end }}
|
||||
{{- $choices := join ", " .Choice -}}
|
||||
{{- $optional := not .IsRequired -}}
|
||||
{{- if or $help $choices $optional }} # {{end}}
|
||||
{{- if $help }}{{ $help }} {{end}}
|
||||
{{- if $choices }}[{{ $choices }}] {{end}}
|
||||
{{- if $optional }}
|
||||
{{- if or $help $choices }}(optional){{ else }}optional{{end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "header" }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue