https://bugzilla.wikimedia.org/show_bug.cgi?id=27916

           Summary: Add optional parameter to mw.util.wikiGetlink to allow
                    creation of relative links (without server)
           Product: MediaWiki
           Version: wikimedia-deployment
          Platform: All
               URL: https://secure.wikimedia.org/wikibooks/pt/wiki/Predefi
                    ni%C3%A7%C3%A3o:Lista_de_cap%C3%ADtulos/Otimiza%C3%A7%
                    C3%A3o
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Javascript
        AssignedTo: d...@ucsc.edu
        ReportedBy: mybugs.m...@gmail.com
                CC: tpars...@wikimedia.org


Created attachment 8258
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8258
Enhanced version

Sometimes it is needed to create local links in a wiki and with the current
implementation of mw.util.wikiGetlink, the url includes the server name.
Consequently, the CSS matched by

 div#content a[href ^="https://";] {...}

will add the lock icon[1] on links whose href is defined by the function (for
an example, see the above url). 

It would be useful to be able to specify whether the link should be local or
not. In the attached file there is an example of how this could be done.

[1] https://secure.wikimedia.org/skins-1.17/vector/images/lock-icon.png

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to