We do not handle tikz images yet.
I propose copying the tikz code to a .tex file, generate the pdf, convert it to svg and link it in the mediawiki page.
then use the import bot to upload the image together with the mediawiki page
Create the svg
When in a tex file it is enountered a block of the form of
\begin{figure} \centering \begin{tikzpicture}[scale=.4,>=stealth] \draw[thick,->] (4,.2) -- (7,.2); \draw[thick] (6.8,.2) -- (10,.2); \draw[thick,->] (10,-.2) -- (6.5,-0.2); \draw[thick] (6.8,-.2) -- (4,-0.2); \draw[thick] (0,0) circle(10); \draw[thick] (3,0) circle(1); % % Axes % \draw[thin, dashed,->](-11,0) -- (11,0); \draw[thin, dashed,->](0,-11) -- (0,11); \draw[very thick, white] (4,-.2) -- (4,.2); \draw[very thick, white] (10,-.2) -- (10,.2); % % Labelling % \filldraw (0,0) circle(0.1); \draw (0,0.1) node[right,black] {$0$}; \filldraw (3,0) circle(0.1) ; \draw (3,0.3) node[right,black] {$a$}; \draw (10,.8) node[left,black] {$P$}; \draw (4,.8) node[right,black] {$Q $}; \draw (4,-.8) node[right,black] {$S$}; \draw (10,-.8) node[left,black] {$R$}; \end{tikzpicture} \caption{ Keyhole contour, for use in Proof of Theorem~\ref{t1.13.11.16} } \end{figure}
create a standalone tex document
\documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.4,>=stealth] \draw[thick,->] (4,.2) -- (7,.2); \draw[thick] (6.8,.2) -- (10,.2); \draw[thick,->] (10,-.2) -- (6.5,-0.2); \draw[thick] (6.8,-.2) -- (4,-0.2); \draw[thick] (0,0) circle(10); \draw[thick] (3,0) circle(1); % % Axes % \draw[thin, dashed,->](-11,0) -- (11,0); \draw[thin, dashed,->](0,-11) -- (0,11); \draw[very thick, white] (4,-.2) -- (4,.2); \draw[very thick, white] (10,-.2) -- (10,.2); % % Labelling % \filldraw (0,0) circle(0.1); \draw (0,0.1) node[right,black] {$0$}; \filldraw (3,0) circle(0.1) ; \draw (3,0.3) node[right,black] {$a$}; \draw (10,.8) node[left,black] {$P$}; \draw (4,.8) node[right,black] {$Q $}; \draw (4,-.8) node[right,black] {$S$}; \draw (10,-.8) node[left,black] {$R$}; \end{tikzpicture} \end{document}
compile it with
pdflatex imageN.tex
convert it to svg with
convert imageN.pdf imageN.svg
include it in the mediawiki page with:
[[File:Countour-complex-analisys.png|thumb]]
Importing the image inside mediawiki it is not trivial, every image must have a future-proof name, and include a proper caption. we have to research how to make the caption propagate from the tex file to the upload bot