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

           Summary: Recognition of local wiki links while inserting links
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: UsabilityInitiative
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]


Created an attachment (id=7427)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7427)
suggested code and some testing

Currently if I'll copy and paste wiki URL I get an information that it's an
external link. It would be better if it would (at a very least) recognize
standard URLs and change them local links.

It would be even better if it could recognize links to wikis in other
languages. I think this might be a bit trick to be made universal, along all
Mediawiki installations so you might want to skip that.

Anyway, I've attached the basic parser that would be (hopefully) uniwersal to
any Mediawiki installation. I've added some of test urls on the bottom along
with results on pl.wiki. Due to usage of wgServer it will of course return
other values on other wikis.

Note that I've added decoding of national letters. It was thoroughly tested due
to usage in a popular script on pl.wiki, so you can be sure of it.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to