printf "[[%s|Next]], [[%s|Previous]], [[../|Up]]\n" "$link_next" "$link_prev";
elif [[ -z "$lnext" ]]; then
printf "[[%s|Previous]], [[../|Up]]\n" "$link_prev";
printf "[[%s|Next]], [[%s|Previous]], [[../|Up]]\n" "$link_next" "$link_prev";
elif [[ -z "$lnext" ]]; then
printf "[[%s|Previous]], [[../|Up]]\n" "$link_prev";