Template

How to use options

Options are variables that represent your current Template settings and are generally accessed in the same way as standard variables.

Definitions
Name Description
anchorTarget Whether or not the option to include the anchor tags target attribute is enabled
anchorTitle Whether or not the option to include the anchor tags title attribute is enabled
bitly Whether or not bit.ly is the enabled URL shortener
bitlyAccount Whether or not you are currently logged in to your bit.ly account
googl Whether or not goo.gl is the enabled URL shortener
googlAccount Whether or not you are currently logged in to your goo.gl account
menu Whether or not the option to show the context (right-click) menu is enabled
menuOptions Whether or not the Options item is displayed at the bottom of the context (right-click) menu
menuPasteNew Whether or not the Template output is automatically pasted into the field where the context (right-click) menu was activated
notificationDuration The number of seconds desktop notifications are displayed for
notifications Whether or not the option to show desktop notifications is enabled
shortcuts Whether or not the option to allow keyboard shortcuts is enabled
shortcutsPasteNew Whether or not the Template output is automatically pasted into the field where the keyboard shortcut was detected
toolbarClose Whether or not the popup is closed immediately after a template is selected
toolbarKey The unique key of the template activated when the toolbar button is clicked
toolbarOptions Whether or not the Options link is displayed at the bottom of the popup
toolbarPopup Whether or not the popup is shown when the toolbar button is clicked
yourls Whether or not YOURLS is the enabled URL shortener
yourlsAuthentication The authentication used for the YOURLS service (e.g. advanced, basic, or nothing if none)
yourlsPassword The password for the YOURLS service
yourlsSignature The signature for the YOURLS service (e.g. 3002a61584)
yourlsUrl The URL of the YOURLS service (e.g. http://example.com/yourls-api.php)
yourlsUsername The username for the YOURLS service

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

To include the title attribute in an anchor tag only if you have enabled the corresponding option;

<a href="{{url}}"{#anchorTitle} title="{{title}}"{/anchorTitle}>This is a test!</a>

This would output the following if you've enabled the option;

<a href="http://neocotic.com/template/guide/options" title="Options · Guide · Template · neocotic">This is a test!</a>

However, if you have disabled the option it will output this;

<a href="http://neocotic.com/template/guide/options">This is a test!</a>