Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8994395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:25:21+00:00 2026-06-15T23:25:21+00:00

Is it possible to escape and keep the nonstandard | character as is in

  • 0

Is it possible to escape and keep the nonstandard | character as is in an URL in a template Wiki Markup within a table?

{| class="wikitable"
|-
! Test in Table
|-
| [http://example.org/{var1}|{var2}|{var3} Example]
|}

Should render something like this in the table cell

[http://example.org/1|2|3 Example]

and link to

http://example.org/1|2|3

with the vertical bars as is and not encoded like this

http://example.org/1%7C2%7C3

The 3rd party website requires «|» in the URL, I would fix the URL handling on the server side but that is out of my hands for now.
Any help on a workaround?

I tried these:

[http://example.org/1|2|3 Example] doesn't work within a table   
[http://example.org/{var1}|{var2}|{var3} Example] works in tables

but both create valid standard URLs where the vertical bar is properly URL encoded as %7C like above which I would like to prevent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:25:22+00:00Added an answer on June 15, 2026 at 11:25 pm

    External links, without support from additional extensions, can only be produced by the [url description] syntax or a plain URL itself.
    Although as mentioned by skalee, you can use {{!}} or other methods to prevent the pipe symbol from being interpreted as part of the Wikitext syntax, the final link will always be encoded.

    Without help from extensions, a quick solution would be JavaScript. (If it is on your own MediaWiki site, that would be very simple. MediaWiki:Common.js contains JavaScript that will be loaded for all users).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Escape @ character in razor view engine how can i use '@'
Possible Duplicate: How do you escape strings for SQLite table/column names in Python? I
On Android Jellybean 4.1 is it possible to escape a LIKE wildcard character and
Possible Duplicate: How to escape text for regular expression in Java Is there a
cgi.escape seems like one possible choice. Does it work well? Is there something that
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
In my app I need to encode a string via base64, escape it's possible
Possible Duplicate: How to escape special characters like ' in sqlite in android I'm
I've been learned to keep my data in MySQL as raw as possible. Here's
Possible Duplicate: Why are escape characters being added to the value of the hidden

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.