From: Philipp Spitzer Date: Sun, 22 May 2022 14:11:12 +0000 (+0200) Subject: Generate correct "under construction" markup. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/118e9b76c6b6f0908e15e334505fd5aac09b54f7 Generate correct "under construction" markup. --- diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index 5e70760..9a59db2 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -5,6 +5,9 @@ {%- macro wr_page(value) -%} [[{{ value.title }}{% if value.text %}|{{ value.text }}{% endif %}]] {%- endmacro -%} +{% if sledrun_json.entry_under_construction %}{% raw %}{{In Arbeit|Rodelbahn}}{% endraw %} + +{% endif -%} == Allgemeines == {{ rodelbahnbox }} {{ description | default("''Hier wird die Rodelbahn allgemein beschrieben.''") | trim }} @@ -113,4 +116,5 @@ {% raw %}{{Rodelbahnzustand|Forumlink={% endraw %}{{ sledrun_json.forum_id }}}} [[Kategorie:Rodelbahn]] +{% if sledrun_json.entry_under_construction %}[[Kategorie:In Arbeit]]{% endif -%} {% endblock %}