mediawiki-templates

Passing an url to a template


I am trying to pass a simple mwurl to a template, but this doesn't seem to work always.

Template:U:

my link: {{{1}}}

Calling code:

{{U|[https://www.istaria-lexica.de/index.php?title=User:Elteria_Shadowhand/sandbox&action=edit test link]}}

If I use google.com instead, the template works. I assume there's some problem with special characters? What am I doing wrong?


Solution

  • The problem is with the equal sign in the URL. It has a special meaning in the template parametre syntax: what is on the left of the equal sign is treated as the parametre's name, what is on the right, its value.

    You can either:

    In addition: