AutomatedLinks

From S23Wiki
Jump to: navigation, search


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)