Template

Standard variables are generally accessed using simple tags. However, sections (including inverted) can also be used to add conditions.

Definitions
Name Description
author ¹ The author from the page's meta information
base The base domain (e.g. https://www.example.com:443)
browser The name of the browser (i.e. Chrome)
browserVersion The current version of the browser (e.g. 16.0.912.77)
characterSet ¹ The character set used by the page (e.g. UTF-8)
cookiesEnabled Whether or not cookies are enabled
count The total number of templates
customCount The total number of user-defined templates
dateTime The current date & time in RFC 2822 format
depth The colour depth in bits (e.g. 24)
description ¹ The description from the page's meta information
directory The directory part of the path (e.g. /folder/dir/)
favicon The whole URL of the page's favicon
file The basename of the file (e.g. index.html)
fragment/anchor The entire string after the hash (#) symbol
host For example; www.example.com, localhost
html ¹New The entire HTML contents of the page
java Whether or not Java is enabled
lastModified ¹ The last modified date & time of the page in RFC 2822 format
The HTML behind the contextual (right-clicked) link
The contents of the contextual (right-clicked) link formatted as Markdown
The contextual (right-clicked) link text
locale New The ISO 639 code for the detected page language
markdown ¹New The entire contents of the page as Markdown
offline Whether or not you are currently offline
originalTitle The original title of the page (may be different than title if a supported extension was detected and the value of title was extracted from this)
originalUrl The original whole URL being parsed (may be different than url if a supported extension was detected and the value of url was extracted from this)
os The family of your operating system (i.e. Windows, Mac, Linux)
pageHeight ¹ The height of the page
pageWidth ¹ The width of the page
path The path to the file (e.g. /folder/dir/index.html)
port For example; 80, 443
protocol For example; http, https, file
query The entire query string if it exists (e.g. item=value&item2=value2)
referrer ¹ The URL of the referring page
relative The relative path to the file including the query string (e.g. /folder/dir/index.html?item=value)
screenHeight The height of the screen
screenWidth The width of the screen
selection ¹ The currently selected text
selectionHTML ¹ The HTML behind the current selection
selectionMarkdown ¹ The current selection formatted as Markdown
text ¹New The entire text of the page
title The title of the page or url if the title could not be detected (e.g. page had not finished loading)
url The whole URL being parsed
version The installed version of Template (e.g. 1.2.9)
  • ¹ Not available on internal Chrome pages or the Chrome Web Store
  • ² Only available when Template is accessed via the context menu of a link

This page's information will be used in the following examples.

A great of example of using standard variables is showing the title of the current page along with its meta description, where possible;

Title:
{title}
Description:
{#description}{description}{/description}
{^description}N/A{/description}

Since this page contains a meta description it will output something like this;

Title:
Standard · Guide · Template
Description:
Get to grips with using standard variables in the Template extension

However, if it didn't you can expect to the see the following;

Title:
Standard · Guide · Template
Description:
N/A