Wasteland Wiki
Advertisement
Template documentation (for the template shown above, sometimes hidden or invisible)

Template for returning URLS to files on the wiki (or thumbnails of these files at specific sizes).

Usage

{{fileurl|name of page or file}}

Parameters

RequiredIcon required.png
<unnamed 1>

Name of file (without "File:").

OptionalIcon optional.png
<unnamed 2>

Dimensions of file in pixels.

OptionalIcon optional.png
(default: "absolute")
url type

Type of URL to return.

Available choices:

  • abs or absolute: Return absolute URL (i.e. URL including protocol and hostname).
  • rel or relative: Return relative URL (i.e. URL without protocol and hostname).

Examples

url type=absolute (default)
Input Result
{{fileurl|Icon cross.png}} latest?cb=20120317193912
{{fileurl|Icon cross.png|20px}} 20?cb=20120317193912
{{fileurl|Icon cross.png|x20px}} 20?cb=20120317193912
{{fileurl|Icon cross.png|10x20px}} 10?cb=20120317193912
{{fileurl|Icon cross.png|30x20px}} 20?cb=20120317193912
url type=relative
Input Result
{{fileurl|Icon cross.png|url type=relative}} .nocookie.net/wasteland_gamepedia/images/e/e4/Icon_cross.png/revision/latest?cb=20120317193912
{{fileurl|Icon cross.png|20px|url type=relative}} .nocookie.net/wasteland_gamepedia/images/e/e4/Icon_cross.png/revision/latest/scale-to-width-down/20?cb=20120317193912
{{fileurl|Icon cross.png|x20px|url type=relative}} .nocookie.net/wasteland_gamepedia/images/e/e4/Icon_cross.png/revision/latest/scale-to-width-down/20?cb=20120317193912
{{fileurl|Icon cross.png|10x20px|url type=relative}} .nocookie.net/wasteland_gamepedia/images/e/e4/Icon_cross.png/revision/latest/scale-to-width-down/10?cb=20120317193912
{{fileurl|Icon cross.png|30x20px|url type=relative}} .nocookie.net/wasteland_gamepedia/images/e/e4/Icon_cross.png/revision/latest/scale-to-width-down/20?cb=20120317193912

Technical

Documentation transcluded from Template:Fileurl/doc.
Advertisement