David Doria wrote:
Move the lang to the end {{#tag:source|{{VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx}}|lang=cpp}}
[{{fullurl:VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx|action=raw}} Download Cxx file]
Getting very close!
- This part is working:
[{{fullurl:VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx|action=raw}} Download Cxx file]
However, when I click the link it right away downloads the file as 'index.php'. Is there a way to set the default name of the file to the name of the page, or another specified file name?
I don't think so. It's not the right mime either.
- With this:
{{#tag:source|{{VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx}}|lang="cpp"}}
I see:
[[:Template:VTK/Examples/Cxx/SimpleOperations/DistancePointToLineCxx]]
displayed (you can see it here: http://www.vtk.org/Wiki/VTK/Examples/Cxx/SimpleOperations/DistancePointToLin... ), where it is supposed to display the text from DistancePointToLineCxx. One last tweak :) ?
Yes, add : after the {{ so it looks up the page in the main namespace instead of the template one.