Template:Pod: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(pod link with redirect)
m (fix)
Line 13: Line 13:
}
}
</pre>
</pre>
</nowiki>
</noinclude>

Revision as of 19:42, 26 June 2008

Use this template like this:

{{pod|Amanda::Changer}} -> Amanda::Changer
{{pod}} -> {{{1}}}

{{{1}}} Note that the contents of redirect.php are:

<?php
if ($_GET['pod']) {
        header("Location: /pod/" . str_replace("::", "/", $_GET['pod']) . ".html");
} else {
        header("Location: /pod/");
}