blob: e3ffb138b27880e302d37bb910793e79fcc89526 (
plain)
1
2
3
4
5
6
7
8
9
|
from django import template
register = template.Library()
@register.simple_tag
def wiki_url(article=""):
if article == "":
return "https://wiki.parabola.nu/"
else:
return "https://wiki.parabola.nu/"+article.replace(' ', '_')
|