Template:Webshare
From QED
https://webshare.princeton.edu/users/{{{1}}}
Syntax
{{webspace|PATH}}
- or {{webspace|PATH|STRING}}
{{webspace|PATH}} expands to https://webshare.princeton.edu/users/PATH
{{webspace|PATH|STRING}} expands to https://webshare.princeton.edu/users/PATH/ENCODEDSTRING
where ENCODEDSTRING is the URL-encoded form of STRING.
NOTE: If the webshare path contains spaces or other special characters, it should be properly encoded, as illustrated in the examples.
Examples
In these examples, the actual webspace pathname contains a space. In the first example, it is encoded manually as "%20":
{{transclude|width=155|{{webspace|peak/qed/Faust%20Quadrille.jpg}} }}
produces:
In the following two examples, the second form of this template is used to encode the space:
Click [{{webspace|peak/qed|Faust Quadrille.jpg}} here] to see the original image.
{{webspace|peak/qed|Faust Quadrille.jpg}}
produces:
Click here to see the original image.
Note that the urlencode function should not be called on the full path, as the forward slashes would then be encoded.













