]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/tips/convert_mediawiki_to_ikiwiki/discussion.mdwn
Asking for a repost of page, as the link is broken.
[ikiwiki.git] / doc / tips / convert_mediawiki_to_ikiwiki / discussion.mdwn
index 15ddccb92e53540bc8b5daa39aefaed3d9f25d09..1e6fc94a7a7223dd5e30c32af499d6630b1d776e 100644 (file)
@@ -63,6 +63,8 @@ The iki-fast-load ruby script from the u32 page is given below:
            pipe.puts
         end
 
+> Would be nice to know where you could get "node-callbacks"... this thing is useless without it. --[[users/simonraven]]
+
 
 Mediawiki.pm - A plugin which supports mediawiki format.
 
@@ -284,7 +286,7 @@ Mediawiki.pm - A plugin which supports mediawiki format.
        }
        
        
-       # Called to handle bookmarks like [[#heading]] or <span class="createlink"><a href="http://u32.net/cgi-bin/ikiwiki.cgi?page=%20text%20&amp;from=Mediawiki_Plugin%2Fmediawiki&amp;do=create" rel="nofollow">?</a>#a</span>
+       # Called to handle bookmarks like \[[#heading]] or <span class="createlink"><a href="http://u32.net/cgi-bin/ikiwiki.cgi?page=%20text%20&amp;from=Mediawiki_Plugin%2Fmediawiki&amp;do=create" rel="nofollow">?</a>#a</span>
        sub generate_fragment_link
        {
           my $url = shift;
@@ -314,10 +316,10 @@ Mediawiki.pm - A plugin which supports mediawiki format.
        
           # Ikiwiki's link link plugin wrecks this line when displaying on the site.
           # Until the code highlighter plugin can turn off link finding,
-          # always escape double brackets in double quotes: [[
+          # always escape double brackets in double quotes: \[[
           if($inlink eq '..') {
-             # Mediawiki doesn't touch links like [[..#hi|ho]].
-             return "[[" . $inlink . ($anchor?"#$anchor":"") .
+             # Mediawiki doesn't touch links like \[[..#hi|ho]].
+             return "\[[" . $inlink . ($anchor?"#$anchor":"") .
                 ($title?"|$title":"") . "]]" . $trailing;
           }
        
@@ -378,7 +380,7 @@ Mediawiki.pm - A plugin which supports mediawiki format.
              add_depends($page, $redir_page);
              my $link=bestlink($page, underscorize(translate_path($page,$redir_page)));
              if (! length $link) {
-                return "<b>Redirect Error:</b> <nowiki>[[$redir_page]] not found.</nowiki>";
+                return "<b>Redirect Error:</b> <nowiki>\[[$redir_page]] not found.</nowiki>";
              }
        
              $value=urlto($link, $page);
@@ -391,7 +393,7 @@ Mediawiki.pm - A plugin which supports mediawiki format.
              my %seen;
              while (exists $pagestate{$at}{mediawiki}{redir}) {
                 if ($seen{$at}) {
-                   return "<b>Redirect Error:</b> cycle found on <nowiki>[[$at]]</nowiki>";
+                   return "<b>Redirect Error:</b> cycle found on <nowiki>\[[$at]]</nowiki>";
                 }
                 $seen{$at}=1;
                 $at=$pagestate{$at}{mediawiki}{redir};
@@ -610,3 +612,5 @@ Mediawiki.pm - A plugin which supports mediawiki format.
        }
        
        1
+
+Hello. Got ikiwiki running and I'm planning to convert my personal Mediawiki wiki to ikiwiki so I can take offline copies around. If anyone has an old copy of the instructions, or any advice on where to start I'd be glad to hear it. Otherwise I'm just going to chronicle my journey on the page.--[[users/Chadius]]