lundi 1 décembre 2014

Mediawiki: How to escape '=' in Template parameter values


I want to pass an URL to my Mediawiki template as a parameter, but if it contains =, it treats the URL as a named parameter. Therefore, the following does not find and replace the template parameter {{{1}}}:



{{MyUrl|http://ift.tt/1wdJr5P}}


Escaping = with %3D leads to problems of passing the link in the browser (Chrome) — the server responds with 404.


Also, installing extensions on this Mediawiki server is not recommended. Can this be done in Vanilla Mediawiki?





Aucun commentaire:

Enregistrer un commentaire