Hi all,
Does anyone know whether there is a way to construct an SVG from
MediaWiki templates?
I'd like to include diagrams in my wiki pages, but to preserve the edit
history I'd like to have each diagram as a wiki page in its own right.
Rather than force people to use SVG code directly, I'd like to "hide"
it in templates, so that you can create a page like this:
{{Diagram Start}}
{{Diagram Object
| Type = Arrow
| X = 0
| Y = 0
| Direction = Left
}}
{{Diagram End}}
The templates would then expand into SVG code using the site's style,
and you could embed that SVG in the articles you want as if it's any
other image, e.g. with [[Image:Example.svg]].
Is there any way this could be achieved with existing extensions?
Many thanks,
Adam.
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l