Template:Pod: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(try this)
(Undo revision 7345 by Dustin (Talk))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Use this template like this:
Use this template like this:
  <nowiki>{{pod|Amanda/Changer|Amanda::Changer}}</nowiki> -> {{pod|Amanda/Changer|Amanda::Changer}}
  <nowiki>{{pod|Amanda::Changer}}</nowiki> -> {{pod|Amanda::Changer}}
<nowiki>{{pod|Amanda/Changer}}</nowiki> -> {{pod|Amanda/Changer}}
<nowiki>{{pod|Amanda/Changer}}</nowiki> -> {{pod|Amanda/Changer}}
  <nowiki>{{pod}}</nowiki> -> {{pod}}
  <nowiki>{{pod}}</nowiki> -> {{pod}}
Do '''not''' use
</noinclude>[http://wiki.zmanda.com/pod/redirect.php?pod={{{1}}} {{{1}}}]<noinclude>
<nowiki>{{pod|Amanda::Changer}}</nowiki>
Note that the contents of <tt>redirect.php</tt> are:
because it won't work.
<pre>
</noinclude>[http://wiki.zmanda.com/pod/{{#if:{{{1}}}|{{{1}}}.html {{#if:{{{2}}}|{{{2}}}|{{{1}}}.pm}}}}]
<?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/");
}