From 097e80e1f56deba2a1be571e77e7a836825f1342 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sun, 3 Jul 2022 23:00:57 +0200 Subject: [PATCH] Include wr_page and weblink in template. --- wrpylib/templates/sledrun_wikitext.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index 91231da..f027a89 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -43,7 +43,11 @@ {%- endif %} {%- endif -%} {% for rental in sled_rental %} -** {{ rental.name }}{%if rental.note %} ({{ rental.note }}){% endif %}{% if rental.wr_page %}{{ wr_page(info) }}{% endif %} +** {% set space = joiner(" ") %} + {%- if rental.name %}{{ space() }}{{ rental.name }}{% endif %} + {%- if rental.wr_page %}{{ space() }}{{ wr_page(rental.wr_page) }}{% endif %} + {%- if rental.weblink %}{{ space() }}{{ weblink(rental.weblink) }}{% endif %} + {%- if rental.note %}{{ space() }}({{ rental.note }}){% endif %} {%- endfor %} * '''Schneelage - Auskunft''': {%- for info in info_phone %} -- 2.39.5