Last modified: 2014-09-20 19:32:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28623, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26623 - Add a magic word for the document protocol
Add a magic word for the document protocol
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.23.0
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: design
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-07 14:01 UTC by The Evil IP address
Modified: 2014-09-20 19:32 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description The Evil IP address 2011-01-07 14:01:53 UTC
A magic word, like {{PROTOCOL}}, which shows if we use http or https would be quite useful. For links to the own site, this isn't necessary, since we have fullurl, but for certain external links. For example, there are sites which have a http and a https version, and with the magic word the user could then be directed to the https version if they prefer this protocol.
Comment 1 Quim Gil 2014-04-10 20:00:36 UTC
If I understand your request properly, you want to see different styles for http and https links?

Why a magic word? The parser can see whether http or https is being used.

Currently there is no visual difference in links. Test:

[http://test.org http] - [https://test.org https]
Comment 2 Jackmcbarn 2014-09-20 19:32:15 UTC
It sounds like you're asking for a parser function that emits "http" when viewed from "http://wiki.example/Some_page", and "https" from "https://wiki.example/Some_page". This would break parser caching, and so can't be done. However, if your goal is just to make links use the same protocol you're currently on, you can use the syntax [//google.com Google], and the protocol used will be the one the page was viewed with.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links