Skip to main content

Web module

This modules contains every internal variable / function related to the web (using web requests).

Templater doesn't escape characters by default. When doing web requests, it may be useful to escape dangerous characters. You can escape a command's response characters using the <%~ opening tag. More informations here.



Function documentation is using a specific syntax. More informations here

Internal Variable / FunctionArgumentsDescriptionExample Output
tp.web.daily_quote()NoneRetrieves and parses the daily quote from the API
tp.web.random_picture(size?: string, query?: string)- size: Image size in the format <width>x<height>.
- query: Limits selection to photos matching a search term. Multiple search terms can be passed separated by a comma ,
Gets a random image from![image](


Web Daily quote:
<% tp.web.daily_quote() %>
Web Random picture:
<% tp.web.random_picture() %>
Web Random picture with size:
<% tp.web.random_picture("200x200") %>
Web random picture with size + query:
<% tp.web.random_picture("200x200", "landscape,water") %>