This is a list of all the CF layout variables, loops and conditions, and accompanying descriptions.
See also: ComicFury Template System Documentation for general use of the layout engine.

Note: Any variables ([v:whatever]) can also be turned into conditions by replacing the ‘v’ with ‘c’, and comparing to something – eg, [v:comments] -> [c:comments>5] to have a section of code that only shows if there’s more than five comments.
These conditions generally work in both the HTML and the CSS for a comic.

A quick note on how conditions work: Conditions are either 'true' or 'false'. If a condition is true, then any code between the condition and its closing tag ([/]) will be visible. If the condition is false, then the code between the tags will be hidden.
For example:
[c:allowcomments]comments[/]

In this situation, if you have comments enabled, then 'comments' will be displayed.

Anyway, onto the variable reference. Loop variables ([v:l.whatever]) are shown here directly underneath the loop they are part of, and only work within that loop.

Profile Statistics
[v:lastupdatedmy]
Date of the last update, in dd/mm/yyyy format.

[v:lastupdate]
Date of the last update, in the format specified in Comic Settings.

[v:comicsnum]
Total number of comics you have posted.

[v:subscriptions]
Subscription count.

[v:pageviewsnum]
Total pageviews to the comic.

[v:visitsnum]
Total unique visits to the comic.

[v:webcomicid]
ComicFury ID of your webcomic.

[v:webcomicrating]
Sum of all ratings made on your comic.

Voluntary Advertisements
[v:toweradcode]
Replaced with the CF voluntary tower advertisement.

[v:banneradcode]
Replaced with the CF voluntary banner advertisement.

Comic Information
[v:webcomicname]
The name of your webcomic.

[v:webcomicsub]
Subdomain of your webcomic. For example, if your comic is at http://icannotdraw.thecomicseries.com/, [v:webcomicsub] will be replaced with ‘icannotdraw’. Please note that this is just an example, and you comic will not be at that url, because that is my comic.

[v:webcomicurl]
The URL of your webcomic, e.g., http://mywebcomic.thecomicseries.com

[v:webcomicdescription]
Description of your webcomic.

[v:webcomicactivitystatus]
The activity status of your webcomic (Active/Completed/On Hiatus)

[v:webcomicgenre]
The genre of your webcomic.

[v:webcomicslogan]
The slogan of your webcomic.

[v:copyrights]
Replaced with the “Copyrights” section of Comic Information.

Comic Settings
[c:allowcomments]
True if comments are enabled.

[c:showpermalinks]
True if permalinks are enabled.

[c:allowguestcomments]
True if guest comments are enabled.

[c:allowratings]
True if ratings are enabled.

[c:hidefromhost]
True if ‘Hide webcomic from ComicFury’ is checked in Comic Settings.

[c:usechapters]
True if chapters are enabled.

[c:searchon]
True if search is enabled.

[c:towerads]
True if CF voluntary tower advertisements are enabled – although there is currently no way to do this.

[c:bannerads]
True if CF voluntary banner advertisements are enabled.

Images
[v:banner]
The URL of your ComicFury banner. If no banner is present, this will be empty, and you can use it as a condition – for example, to display the title of the comic if you have no banner uploaded, you could do [c:!banner][v:webcomicname][/]

[v:webcomicavatar]
The URL of your ComicFury webcomic avatar. If no avatar is present, this will be empty, and you can use it as a condition

ComicFury
[v:comicprofile]
The URL of the ComicFury profile of your webcomic.

[v:addsubscriptionlink]
The URL allowing people to subscribe to your webcomic.

Meta-layout
[c:isarchive] [c:issearch] [c:isextrapage] [c:isblog] [c:isoverview] [c:iscomicpage] [c:iserrorpage] [c:isfrontpage]
True if the current page is an archive, search, extra, blog, overview, comic, error, or front page respectively.

[l:extrapages]
Loop which repeats for each extrapage with a page order that is not 0. If you are not making a layout template for other people to use, you can probably ignore this loop and add the pages manually.
[v:l.link]
Inside the extrapage loop, this will be replaced with the link to the page the loop is up to. For example, if you have a cast page at /cast, and this is included in the loop, then this tag will be replaced with "http://mywebcomic.thecomicseries.com/cast".
[v:l.title]
Title of the current extra page.
[v:l.foldername]
Just the name of the folder for this extra page, i.e. the value of the "Page URL" field for this extrapage. If you're trying to link to the page, use [v:l.link] instead, this is meant for comparisons or similar schenanigans.

<!--layout:[css]-->
Replaced with the layout CSS.

<!--layout:[content]-->
Replaced with the layout section that the current page should hold – for example, for comic pages, this will be replaced with the comic strip display layout section.

<script type="text/javascript" src="[v:cfscriptlink]"></script>
ComicFury-related Javascript. Contains the ‘save my place’ code, information about the current logged in user, dropdown navigation code, and hiding of edit and delete links for users who can't edit or delete comments.

Blog
[c:hasblogs]
True if there have been any blogs posted on the comic.

[v:pagetitle]
Title of the blog page.

[l:blogs]
Loop of blog posts.
[v:l.blog]
Contents of current blog post.
[v:l.blogtitle]
Title of current blog post.
[v:l.avatar]
Avatar of author of current blog post.
[v:l.authorname]
Author of current blog post.
[v:l.bloglink]
Link to current blog.
[v:l.posttime]
Time and date that the blog post was posted.
[v:l.authorid]
CF ID of the blog author.

Comic Strip Display
Note that these conditions are set by the current comic page.
[v:pagetitle] [v:comictitle]
Title of the comic page.

[c:islastcomic]
True if the current comic is the most recent comic page on the site.

[c:isfirstcomic]
True if the current comic is the first comic page on the site.

[v:nextcomic]
The URL of the next comic.

[v:prevcomic]
The URL of the previous comic.

[v:nextcomicpermalink]
Permalink to the next comic – a permalink is a link that is not modified by adding or removing comics posted before the current comic, i.e., /comics/pl/comicid instead of /comics/comicnumber

[v:prevcomicpermalink]
Permalink to the previous comic.

[v:nextcomictitle]
Comic title of next comic.

[v:prevcomictitle]
Comic title of previous comic.

[v:comicimage]
Replaced with an <img> tag containing the comic itself, including the alt text where applicable. If the image is a .swf, replaced with the appropriate embedding.

[v:comicimagetype]
‘image’, ‘flash’ or ‘html’, depending on the file type of the comic image (or it being embedded HTML).

[v:comicimageurl]
URL of the comic image.

[v:comicdescription]
Alt text of the comic.

[v:comicwidth]
Width of the comic image.

[v:comicheight]
Height of the comic image.

[v:comicid]
CF ID of the current comic (used in permalinks).

[v:permalink]
Permalink to the current comic.

[v:comicnumber]
The number of the current comic.

[v:rating]
Average rating of the current comic.

[v:ratingpercentage]
Average rating of the current comic, as a whole number out of 100. Can be combined with CSS to achieve effects such as a ‘rating bar’, which is partially filled to an amount depending on the rating.

[v:ratingpercentage_c]
Average rating of the current comic as a percentage to two decimal places.

[v:totalrating]
Sum of all ratings on the displayed comic.

[v:votecount]
Number of ratings made on this comic.

[v:comickeywords]
Keywords of the current comic.

[v:ratelink]
URL of the rating box for the current comic.

[v:commentlink]
URL of the comment box for the current comic.

[v:posttime]
Time that the current comic was posted.

[c:isimage]
True if the file type of the displayed comic is an image.

[c:haschapter]
True if the current comic is part of a chapter.

[v:chaptername]
Name of the chapter that the current comic is part of.

[v:transcript]
Transcript of the current comic.

[v:chapterlink]
Link to the comic archive page for the chapter that the displayed comic is part of.

[v:chapterdescription]
Description of the chapter the current comic is part of.

[l:comments]
Comments loop.
The loop variables are the same as for author notes, with the exception of [v:l.depth] and [v:l.is_reply] (which don't do anything for author notes).
[v:l.depth]
Number of reply layers the current comment is, starting from 0. Can be used for variable reply formatting, such as having more than one indentation level.
[v:l.is_reply]
True if this comment is a reply to another comment.
[v:l.profilelink]
Replaced with the URL to the profile of the comment author.
[v:l.authorname]
Author of the comment.
[v:l.posttime]
Time of comment posting, formatted according to Webcomic Settings.
[v:l.editlink]
Link to edit this comment.
[v:l.deletelink]
Link to delete this comment.
[v:l.avatar]
URL of the comment author’s avatar. Can be used as a conditional, i.e., [c:l.avatar] to check if a user has an avatar (or not).
[v:l.comment]
Contents of the current comment.
[v:l.commenttitle]
Title of the current comment.

[c:comments]
True if there are comments on the current comic, false otherwise. You can also use it comparatively - for example, you can have
[c:comments>5]I'm so popular![/]
and your popularity will only be shown off if you have more than five comments.

[l:authornotes]
Author notes loop. Functionally identical to the comments loop, except with authornotes.

[v:commentsandnotes]
Contains the total number of comments and author notes.

Archive
[c:ischapterarchive]
CF’s archive system can either loop through each comic, or each comic in a chapter if you visit the link provided by [v:chapterlink]. This variable is true if the current page is a chapter-specific archive.

[v:chaptername]
If you are on a chapter archive, [v:chaptername] will contain the title of the chapter.

[v:chapterdescription]
Contains the description of the current chapter if you are on a chapter archive.

[l:archive]
Archive loop, sorted chronologically. Loop variables (e.g., [v:l.comictitle]) correspond to the comic strip variables, so you have access to all the details about the current comic.

[l:chapteredarchive]
Archive loop, sorted by chapter, and then chronologically. Access to all the loop variables from within the archive loop.
[c:l.newchapter]
[l:chapteredarchive] is split up into chapters, which are included as part of the loop. Use [c:l.newchapter] for adding chapter titles at the start of each chapter – i.e.,
[c:l.newchapter][v:l.chaptername][/]
.

Extra Pages
[v:extrapageurl]
The URL of the extra page – http://yourcomic.thecomicseries.com/extrapageurl

Error Pages
[v:errortitle]
Title of the error, e.g., “No such page”.

[v:errormessage]
Description of the error.

Search
[c:searched]
True if the user actually searched for something to reach the search page, and didn’t just go to /search.

[c:foundresults]
True if there are comics matching the search term. Use this to display a ‘no results’ error – e.g.,
[c:!foundresults]Sorry, but there were no results for your search.[/]


[l:searchresults]
Loop of matching comics. Loop variables are the same as for the archive loop.

[v:resultnum]
Number of comics found

Miscellaneous
[v:year]
Current year.

[v:month]
Current month.

[v:day]
Current day.

[v:currentdate]
Current date, in the format specified in Comic Settings.

[f:randomnumber|min|max]
Random number between min and max. This should only be used in cases where javascript cannot produce the same results, because this function disables webcomic caching, and thus makes your page load slower than usual.

[f:rawhtml|v:foo]
outputs [v:foo] as raw HTML.

[f:js|v:foo]
outputs [v:foo] as an escaped javascript string, with quotes already around it.

[f:add|a|b]
Adds a to b. Similar functions exist for multiply, divide, and subtract.
_______________________
OnlyFoolsAndVikings:god, upon creating life: [matthewja voice] its a feature