| | 131 | qr/\@INDEX_MAP\s+\[\[(Category|Locale)\s+([^\]|]+)\|?([^\]]+)?\]\]/ => |
| | 132 | sub { |
| | 133 | # We may be being called by Wiki::Toolkit::Plugin::Diff, |
| | 134 | # which doesn't know it has to pass us $wiki - and |
| | 135 | # we don't use it anyway. |
| | 136 | if ( UNIVERSAL::isa( $_[0], "Wiki::Toolkit" ) ) { |
| | 137 | shift; # just throw it away |
| | 138 | } |
| | 139 | my $link_title = $_[2] || "View map of stuff in $_[0] $_[1]"; |
| | 140 | return qq(<a href="$script_name?action=index;format=map;index_type=) . uri_escape(lc($_[0])) . qq(;index_value=) . uri_escape($_[1]) . qq(">$link_title</a>); |
| | 141 | }, |