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.
Sounds like a task for https://www.mediawiki.org/wiki/Extension:Graph
Il 30/11/2015 12:27, Adam Nielsen ha scritto:
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
Hello everyone!
I am having a silly problem and don't know exactly what is happening: In some pages the internal link format [[/link to subpage/]] is not rendered correct.
For example:
*Situation where it is working URL: mypersonalwiki.mydomain.com/index.php/examples Link text: [[/subpage/]] URL after click: mypersonalwiki/index.php/examples/subpage
*Situation where it is NOT working URL: mypersonalwiki.mydomain.com/index.php/projects Link text(the same, just copy and paste): [[/subpage/]] URL after click: mypersonalwiki/index.php//subpage/
I tested it on blank pages and it behaves randonly. I still not found any common behavior pattern. Also tried disabling all extensions without any change.
Any ideas?
Thanks in advance and sorry about my english.
Are both of your example pages in the same namespace? If not: not all namespaces have subpages enabled by default, which is required for this kind of links to work.
https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages#Enabling_for...
You are right!
Thank you so much!
Em 30/11/2015 21:42, Bartosz Dziewoński escreveu:
Are both of your example pages in the same namespace? If not: not all namespaces have subpages enabled by default, which is required for this kind of links to work.
https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages#Enabling_for...
mediawiki-l@lists.wikimedia.org