Template:Pod: Difference between revisions
Jump to navigation
Jump to search
(add new template) |
|||
Line 3: | Line 3: | ||
<nowiki>{{pod|Amanda::Changer}}</nowiki> -> {{pod|Amanda::Changer}} | <nowiki>{{pod|Amanda::Changer}}</nowiki> -> {{pod|Amanda::Changer}} | ||
<nowiki>{{pod}}</nowiki> -> {{pod}} | <nowiki>{{pod}}</nowiki> -> {{pod}} | ||
</noinclude>[http:// | </noinclude>[http://wiki.zmanda.com/pod/redirect.php?pod={{{1}}} {{{1}}}]<noinclude> | ||
Note that the contents of <tt>redirect.php</tt> are: | |||
<pre> | |||
<?php | |||
if ($_GET['pod']) { | |||
header("Location: /pod/" . str_replace("::", "/", $_GET['pod']) . ".html"); | |||
} else { | |||
header("Location: /pod/"); | |||
} | |||
</pre> | |||
</noinclude> |
Latest revision as of 16:18, 12 April 2010
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/"); }