Block Template Filters
Twig FilterWhen creating stablocks you have access to a series of filters. Most these filters can be found on Twig's Filters page. Filters can be used to alter the display or properties of variables for example the upper filter allows you to convert the following variable to upper case
World Anvil Custom FiltersThe following filters are custom to World Anvil and specialised to work on your statblocks and custom article templates.
Warning: DO NOT use this code in Block Templates, this is meant to be used only when creating custom article templates
variables.table_content|BBcodeParse BBcode allows the parser to render BBcode (World Anvil Tags) in your templates.
variables.table_content|ParseTableParse table receives a string which is separated by "|" (pipe) delimiters and new lines in order to create a html table. The first line of the table will automatically become a table header (using <th> ) Example String
Longsword|1d8|Versatile The string above will be formatted into a table with the first line being displayed as a table header while all consecutive lines will be rendered as rows of that table.
variables.table_content|ParseListParse list receives a string which is separated by "|" (pipe) delimiters and new lines in order to create a key/value unordered list. This is a very special case that is needed for some types of sheets to display information in an organized fashion Example string