Is there some way to simplify multiple templates like this in a way that one only needs to add tpl and expansion text? I.e. instead of these:
if tpl == "μτχχρ":
text = italic("μετοχή παθητικού παρακειμένου")
return text if data["0"] else f"({text})"
if tpl == "μυθολ":
text = italic("(μυθολογία)")
return text if data["0"] else f"({text})"
Something like
Some code here
"μτχχρ": "μετοχή παθητικού παρακειμένου"
"μυθολ": "μυθολογία"
Some code here
Is there some way to simplify multiple templates like this in a way that one only needs to add tpl and expansion text? I.e. instead of these:
Something like