Template:Webshare

From QED

Revision as of 03:41, 25 October 2008 by Peak (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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.

Faust+Quadrille.jpg

Note that the urlencode function should not be called on the full path, as the forward slashes would then be encoded.

See also

Personal tools