Template:Pod: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(add new template)
(Undo revision 7345 by Dustin (Talk))
 
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://github.com/zmanda/amanda/blob/master/{{{1}}} {{{1}}}]
</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/");
}