Topic on Project:Support desk

Internal Link with Url Parameters?

5
Johnywhy (talkcontribs)

this article says:

"To add a link to a page on the same wiki using URL query parameters, you may need to use external link syntax."

In what case can you add a link with URL query parameters, without external link syntax? How is it done?

TheDJ (talkcontribs)

There are some Special pages that can have a parameter as a subpage. For instance Special:Contributions/TheDJ. There are a few more of those. But in general you would have to use external link syntax.

Johnywhy (talkcontribs)

"parameter as a subpage",

meaning:

"parameter passed with subpage syntax"?

TheDJ (talkcontribs)

correct

Bertux (talkcontribs)

When inserting a page as a template, one can add query parameters, e.g.:

  1. {{Special:contributions/B222|limit=1}}
  2. {{Special:contributions/B222|limit=5|namespace=12}}
  3. {{Special:RecentChangesLinked/Syrian Civil War|limit=5}}

However, this will work different on mobile pages than on desktop pages. On mobile pages link 1 will show up as Special:contributions/B222 but on desktop pages my latest contribution will be shown. Link 2 and 3 show no such differences.

See:

Reply to "Internal Link with Url Parameters?"