48 |
# after they have more than that many entries |
# after they have more than that many entries |
49 |
undef $SPLIT_INDEX; |
undef $SPLIT_INDEX; |
50 |
|
|
51 |
|
# Use preformatted menus. |
52 |
|
$SIMPLE_MENU = 1; |
53 |
|
|
54 |
################################################################### |
################################################################### |
55 |
# Layout of standard header and footer |
# Layout of standard header and footer |
555 |
. join ("", map {"<td>$_</td>\n"} @$nonalpha, @$alpha), |
. join ("", map {"<td>$_</td>\n"} @$nonalpha, @$alpha), |
556 |
. "</tr></table>\n"; |
. "</tr></table>\n"; |
557 |
} |
} |
558 |
|
|
559 |
|
|
560 |
|
|
561 |
|
# a simple menu entry ref in case we aren't in a standard menu context |
562 |
|
$simple_menu_link = \&mediawiki_simple_menu_link; |
563 |
|
|
564 |
|
sub mediawiki_simple_menu_link($$$$$$) |
565 |
|
{ |
566 |
|
my $entry = shift; |
567 |
|
my $preformatted = shift; # We assume this is true. |
568 |
|
my $href = shift; |
569 |
|
my $node = shift; |
570 |
|
my $name = shift; |
571 |
|
my $ending = shift; |
572 |
|
$ending = '' unless defined $ending; |
573 |
|
$entry = "</nowiki>"; |
574 |
|
$entry .= "$MENU_SYMBOL"; |
575 |
|
if ($href) |
576 |
|
{ |
577 |
|
$entry .= &$anchor ('', $href, $node); |
578 |
|
} |
579 |
|
else |
580 |
|
{ |
581 |
|
$name .= ":" if $name; |
582 |
|
$entry .= "$name$node"; |
583 |
|
} |
584 |
|
$entry .= $ending; |
585 |
|
$entry .= "<nowiki>"; |
586 |
|
return $entry; |
587 |
|
} |