Skip to content

template template

Alexander Chernyshev edited this page May 10, 2022 · 1 revision

A Template element is the root of any template XML. It contains general template information, directory matching, File rules. There must be at least 1 File rule, even for dummy templates, otherwise the template will be discarded.

XML syntax

<?xml version="1.0" encoding="utf-8"?>
<Template ID="OTLoV" Name="" Comment="" ScanDepth="#" DetectPercent="#">
    <Detect Match="" Exclude="" RO="#"/>
    <Detect … />
    <File … />
    <File … />
</Template>

XML attributes

Name Type Meaning
ID OTLoV Must be OTLoV or the XML file is ignored.
Name text Template name shown to the user. See naming conventions in Templates.
Comment text Just a comment.
ScanDepth 0...99 Default = 0. Integer number. Folders depth to scan for directory detection. 0 - only the direct directory. 1 - 1 level into subfolders, etc. Scanned tree is added as Template source using meaningful names (without parent directory) and Detect patterns are applied.
DetectPercent 0...100 Default = 100. Integer number. Percentage of Detect patterns that must match for directory detection to be considered successful.

XML children elements

Name Meaning
Detect A single Detect rule for directory detection. Multiple rules are allowed. If no Detect rules are defined - template won't be matched to directories - only to files using individual File rules.
File A single File rule, which defines specific files matching and processing. Multiple rules are allowed. At least 1 must be defined even for a dummy Template.

English Русский

End-user

Templates development

Clone this wiki locally