Template:L/nspace: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<phptag>$out="{{ NSpaceToPath | {{{1}}} }}";</phptag>
{{#tag:phptag |
[[ <phptag>echo $out;</phptag> | {{{1}}} ]]
$sNS="{{{1}}}";
 
  $arFP = explode('\\',$sNS);
  $sFP = NULL;
  foreach($arFP as $sSeg) {
    if (!is_null($sFP)) {
      $sFP .= '/';
    }
    $sFP .= $sSeg;
  }
echo "[[$sFP|$sNS]]";
}}

Latest revision as of 20:47, 4 June 2023

[[{{{1}}}|{{{1}}}]]