×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    AutomatedLinks: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
    imported>mutante
    m (Reverted edits by 200.238.102.162 (Talk); changed back to last version by mutante)
     
    (5 intermediate revisions by 3 users not shown)
    Line 1: Line 1:
    {{UseMod}}

    In this wiki nobody has written about AutomatedLinks yet ,but we give you a few automatically created links:
    In this wiki nobody has written about AutomatedLinks yet ,but we give you a few automatically created links:
    Google:AutomatedLinks
    Google:AutomatedLinks
    Line 59: Line 61:


    idea: mutante technical help: markus (both of s23)
    idea: mutante technical help: markus (both of s23)

    [[Category:Wiki]]
    [[Category:Internal]]

    Latest revision as of 08:47, 11 April 2007


    In this wiki nobody has written about AutomatedLinks yet ,but we give you a few automatically created links:

    Google:AutomatedLinks 
    Dictionary:AutomatedLinks 
    UseMod:AutomatedLinks 
    MeatBall:AutomatedLinks 
    C4:AutomatedLinks 
    InfoAnarchy:AutomatedLinks 
    C2:AutomatedLinks 
    

    ...these should help if you are lucky.. try to make this page better,please.


    <-what you see above you will see on every new wiki-URL which hasnt been created yet.

    This is how you change UseMod wiki for this feature:

    a) the simple way

    from wiki.pl config (about row 96)
    ...
    $NewText     = "In this Wiki nobody has written about $ENV{"QUERY_STRING"} yet.
     A few auto-created search links:  
     
     Google:$ENV{"QUERY_STRING"} 
     Dictionary:$ENV{"QUERY_STRING"} Just click 'Edit text of this page' below.";
    ...
    
    

    b) more sophisticated

    
    added to wiki.pl (about row 2359)
    ..
    sub OpenNewText {
      my ($name) = @_;  # Name of text (usually "default")
      %Text = ();
    $NewText = "In this wiki nobody has written about $OpenPageName yet ,but we give you a few automatically created links:
     Google:$OpenPageName 
     C2:$OpenPageName ... 
    ...these should help if you are lucky.. try to make this page better,please. ";
      if ($NewText ne '') {
        $Text{'text'} = T($NewText);
      } else {
        $Text{'text'} = T('Describe the new page here.') . "
    ";
      }
      $Text{'text'} .= "
    "  if (substr($Text{'text'}, -1, 1) ne "
    ");
      $Text{'minor'} = 0;      # Default as major edit
      $Text{'newauthor'} = 1;  # Default as new author
      $Text{'summary'} = '';
      &OpenNewSection("text_$name", join($FS3, %Text));
    }
    ..
    

    idea: mutante technical help: markus (both of s23)

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.