Do we have a convenient way, in a MediaWiki page, to convert a local path
to a URL?

For example, a corporate wiki might want to have a template that links via
URL to a file on the shared drive (file://...), but shows on the wiki page
the local path (A:\...) One way to do that is to have template parameters 1
and 2 be the two different formats, but I'd prefer to just automatically
convert the local path.

The spaces in filenames have to be converted to %20 and whatnot, as
described in https://en.wikipedia.org/wiki/File_URI_scheme Thanks.
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to