FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
fixed conversion of resized wiki images
m (→‎Feature Requests & Ideas: gitorious URLs could use the git link template ...)
(fixed conversion of resized wiki images)
Line 183: Line 183:
function img2link() {
function img2link() {
     return function(html) {
     return function(html) {
         html = html.replace(/<img.*?src="https?:\/\/wiki.flightgear.org\/images\/.*?\/([^\/]*?)".*?>/g, "[[File:$1|250px]]");
         html = html.replace(/<img.*?src="https?:\/\/wiki.flightgear.org\/images\/.*?\/(?:[0-9]+px-)?([^\/]*?)".*?>/g, "[[File:$1|250px]]");
         return html.replace(/<img.*?src="(.*?)".*?>/g, "(see the [$1 linked image])");
         return html.replace(/<img.*?src="(.*?)".*?>/g, "(see the [$1 linked image])");
     };
     };
573

edits

Navigation menu