From 87826f9a71c5f1a1c10d368029074df5f7280192 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sat, 11 Jun 2022 14:03:27 +0200 Subject: [PATCH] Omit forum_id if it is not given. --- wrpylib/templates/sledrun_wikitext.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index 98f1025..e153344 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -135,7 +135,7 @@ ** {{ distance_info.route }}: {{ distance_info.km }} km {% endfor %} -{% raw %}{{Rodelbahnzustand|Forumlink={% endraw %}{{ sledrun_json.forum_id }}}} +{{ h.key_value_template('Rodelbahnzustand', {'Forumlink': sledrun_json.forum_id}) }} [[Kategorie:Rodelbahn]] {% if sledrun_json.entry_under_construction %}[[Kategorie:In Arbeit]]{% endif -%} -- 2.39.5