Variables
Variables are used in directory and path patterns.
Standard
Usable everywhere
:date:
|
2000-01-01 |
Current date |
:isodate:
|
20170123T123040Z |
Current datetime as a UTC ISO8601 string |
:unixdate:
|
946684800 |
Current datetime as a Unix timestamp |
:year:
|
2000 |
Current year |
:month:
|
01 |
Current month |
:day:
|
24 |
Current day of month |
:hour:
|
13 |
Current hour (24-hour) |
:minute:
|
46 |
Current minute |
:second:
|
05 |
Current second |
:pageurl:
|
https://xyz.com/abc |
URL of the page |
:sourcedomain:
|
cdn.xyz.com |
Hostname of the source |
:sourceurl:
|
http://xyz.com/pic.jpg |
URL of the source |
:pagedomain:
|
xyz.com |
Hostname of the page |
:pagetitle:
|
My Webpage Title! |
Title of the page |
:linktext:
|
Direct link to image |
Firefox Text of the link, or
title attribute of element
|
:selectiontext:
|
A swan created using |
The currently selected text on the page
|
:naivefilename:
|
file.jpg |
The naive filename (URL-based). Use the routing feature if this fails.
|
:naivefileext:
|
jpg |
The naive file (URL-based). Use the routing feature if this fails.
|
Routing and Filenames Only
Only usable when routing and rewriting filenames
:filename:
|
my_image.jpg |
Full actual filename (after Content-Disposition)
|
:fileext:
|
jpg |
File extension, if available
|
:$1: ,
:$2: …
|
|
Capture group where
1 = the n
th capture group
|
Decorative
Only usable in menu items
---
|
Creates a separator in the context menu |