WIKIPAGE=$1
# Download a wikipage in HTML
curl https://pzwiki.wdka.nl/mediadesign/$WIKIPAGE?action=render > $WIKIPAGE.html
# Change the links in the images
sed -i "s/\/mw-mediadesign/https:\/\/pzwiki.wdka.nl\/mw-mediadesign/g" $WIKIPAGE.html
# Add stylesheet(s)
pandoc \
--standalone \
--css screen.css \
--css print.css \
$WIKIPAGE.html \
--output $WIKIPAGE.html