blob: b1b8dd55ae33225fccc8cd4d92f840e7df3faa5c (
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.archlinux.org/"
else:
return "https://wiki.archlinux.org/index.php/"+article.replace(' ', '_')
|