diff --git a/docs/LOOT Metadata Syntax.html b/docs/LOOT Metadata Syntax.html index f4de804c..1d8c0880 100644 --- a/docs/LOOT Metadata Syntax.html +++ b/docs/LOOT Metadata Syntax.html @@ -83,7 +83,6 @@ h3{
  • Dirty Info Data Structure
  • Plugin Data Structure -
  • URL Hyperlinking
  • Condition Strings
    1. Functions @@ -92,6 +91,7 @@ h3{
  • Language Codes
  • License +
  • Feature Support

    Introduction

    @@ -179,7 +179,7 @@ condition: 'file("Mart''s Monster Mod for OOO.esm") or file("FCOM_Convergence.es Key NameRequiredNotes name✓An exact (ie. not regex) file path or name. - display✗A substitute string to be displayed instead of the file path in any generated messages, eg. the name of the mod the file belongs to. Double-quoted URLs will be hyperlinked in the LOOT report. See URL Hyperlinking for details. + display✗A substitute string to be displayed instead of the file path in any generated messages, eg. the name of the mod the file belongs to. condition✗A condition string that is evaluated to determine whether this file data should be used: if it evaluates to true, the data is used, otherwise it is ignored. See Condition Strings for details. @@ -199,6 +199,7 @@ display: 'OBSE v18+' typestring✓The type string can be one of three keywords, see the table below for their semantics. contentstring or localised content list✓Either simply a string, or a list of localised content data structures. If the latter, one of the structures must be for English. conditionstring✗A condition string that is evaluated to determine whether the message should be displayed: if it evaluates to true, the message is displayed, otherwise it is not. See Condition Strings for details. + subslist of strings✗A list of strings to be substituted into the message content string. The content string must use numbered specifiers (%1%, %2%, etc.), where the numbers correspond to the position of the substitution string in this list to use, to denote where these strings are to be substituted.

    There are three message types: @@ -213,9 +214,10 @@ display: 'OBSE v18+' -
    Key NameRequiredNotes
    strThe actual message content string. Double-quoted URLs will be hyperlinked in the LOOT report. See URL Hyperlinking for details. +
    strThe actual message content string.
    langThe language that str is written in, given as a POSIX language code. The languages LOOT supports are given in Language Codes.
    +

    LOOT supports formatting of messages using GitHub Flavored Markdown. Support is provided by the Marked library (v0.3.2). Strings that get substituted into messages, such as file display names and dirty info utility strings, also support the same formatting options.

    LOOT handles messages and languages as follows:

      @@ -223,7 +225,6 @@ display: 'OBSE v18+'
    1. If a message's content value is a list of localised content structures, then the first structure with a language that matches LOOT's current language will be used as the message's content if displayed. If there are no matches, then the first structure in English will be used.
    -

    Examples (translations by Google): type: say condition: 'file("foo.esp")' @@ -245,6 +246,17 @@ would be displayed as

    отмечать: An alternative example link, with no translations.
    +In English, +type: say +content: 'A newer version of %1% [is available](%2%). +subs: + - 'this plugin' + - 'http://www.example.com' + +would be displayed as +
    +Note: A newer version of this plugin is available. +

    Location Data Structure

    @@ -274,7 +286,7 @@ ver: Key NameData TypeRequiredNotes crchexadecimal integer✓The CRC checksum of the dirty plugin, before cleaning. LOOT displays the CRCs of installed plugins in its report. The 8-character CRC should be preceded by 0x so that it is correctly interpreted. - utilstring✓The utility that should be used to clean the plugin. This field supports URL Hyperlinking, and it is recommended that a URL to the game's cleaning guide is supplied. + utilstring✓The utility that should be used to clean the plugin. itminteger✗The number of identical-to-master records reported for the dirty plugin. If the number is unknown, this field should not be supplied. If the number is known and zero, this field should be supplied. udrinteger✗The number of undeleted records reported for the dirty plugin. If the number is unknown, this field should not be supplied. If the number is known and zero, this field should be supplied. navinteger✗The number of deleted navmeshes reported for the dirty plugin. If the number is unknown, this field should not be supplied. If the number is known and zero, this field should be supplied. @@ -331,22 +343,6 @@ msg: content: 'Do not clean. "Dirty" edits are intentional and required for the mod to function.'
    - - -

    File display strings and message content strings (including the strings in localised content structures) that contain recognised URLs have them displayed as hyperlinks in the LOOT report. -

    URLs must begin with file:, http: or https:, and be written according to the following subset of Markdown syntax. Note that LOOT does not recognise additional Markdown syntaxes to those given below. -

    For labelled URLs, the syntax is [label](url). A single optional space may be included between the closing square bracket and the opening parenthesis, ie. [label] (url). -

    For unlabelled URLs, the syntax is <url>. The URL shall be used as its own label. -

    Note that the URLs given as part of a location data structure should not be labelled or enclosed in less-than or greater-than signs, as they consist of raw URL data, rather than text to be displayed in a message. -

    Examples: -'This [string](https://en.wikipedia.org/wiki/String_(computer_science)) contains a labelled hyperlink.' -would be displayed as -

    This string contains a labelled hyperlink.
    -

    While -'This string (see: <https://en.wikipedia.org/wiki/String_(computer_science)>) contains an unlabelled hyperlink.' -both get displayed as -

    This string (see: https://en.wikipedia.org/wiki/String_(computer_science)) contains an unlabelled hyperlink.
    -

    Condition Strings

    Condition strings can be used to ensure that data is only acted on by LOOT under certain circumstances. They are very similar to boolean conditional expressions in programming languages such as Python, though more limited. Their EBNF grammar is: [ negator ], function, { junctor, [ negator ], function } ; @@ -454,3 +450,16 @@ both get displayed as

    This document is part of the LOOT documentation.
    Copyright (C) 2012—2014 WrinklyNinja
    See the file LOOT ReadMe.html for copying conditions. + +

    Feature Support

    +

    Different versions of LOOT may have varying levels of support for the syntax detailed in this document. Such variation in support is detailed in the table below. Unless otherwise noted, all syntax changes are backwards-compatible (ie. you can use the features without breaking the masterlist for users on older versions). + + + + +
    LOOT Version +
    Feature<= 0.6 0.7 +
    GitHub Flavored Markdown message formattingOnly URL hyperlinking is supported, for file:, http: and https: URLs, using the [label](url) and <url> syntaxes.LOOT uses the Marked library (v0.3.2) to provide support for most of GitHub Flavored Markdown, minus the GitHub-specific features (like @mentions, issue/repo linking and emoji). +
    Message string substitution (ie. sub:)Not supported.Support planned, but not yet implemented in the latest alpha release. +
    YAML merge keys (ie. <<:)Not supported.Support planned, but not yet implemented in the latest alpha release. +