From 0dcf2e99fdf01469248b536936fdacabcff4ef38 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 24 Jun 2015 14:00:33 +0100 Subject: [PATCH] Removed location `ver` key, added `name` key. Closes #457. --- docs/LOOT Metadata Syntax.html | 17 +++---- resources/report/html/editable-table.html | 2 +- resources/report/html/loot-plugin-editor.html | 24 ++-------- resources/report/js/l10n.js | 2 +- src/backend/metadata/location.cpp | 10 ++-- src/backend/metadata/location.h | 18 ++++---- src/tests/backend/metadata/test_location.h | 46 ++++++------------- 7 files changed, 43 insertions(+), 76 deletions(-) diff --git a/docs/LOOT Metadata Syntax.html b/docs/LOOT Metadata Syntax.html index f2a3ab3f..e2247eec 100644 --- a/docs/LOOT Metadata Syntax.html +++ b/docs/LOOT Metadata Syntax.html @@ -379,23 +379,22 @@ Note: A newer version of this plugin is availab

Location Data Structure

This data structure is used to hold information on where a plugin is hosted online. It is not currently used by LOOT, but it was suggested that since the LOOT team receives a considerable number of plugin URLs, they should be recorded in a standard format, as there is no existing store of such information and it could prove useful in the future. -

The data structure has two forms: the first is a simple string, and the second is a key-value map. The first form should be used for a URL without any associated version data, such as when it is not clear which version is found there, or when it is the only known hosting location for the plugin and as such hosts all available versions. The second form should be used when version data can be associated with the URL, such as when the URL only hosts a subset of the available versions of the plugin. +

The data structure has two forms: the first is a simple string, and the second is a key-value map. All values in the map are strings.

The simple form:

URL

where URL is a URL at which the plugin may be found.

The map form: - -
Key NameData TypeRequiredNotes +
Key NameRequiredNotes
linkstringA URL at which the plugin may be found. -
verstring listA list of versions that can be found at the URL. This key is deprecated, and it will be removed in a future version of the syntax. Do not use it. +
linkA URL at which the plugin may be found. +
nameA descriptive name for the URL, which may be used as hyperlink text.

Examples:

'http://skyrim.nexusmods.com/mods/19/'
or -
link: 'http://steamcommunity.com/sharedfiles/filedetails/?id=87144366'
-ver:
-  - '1.3.2c'
+
link: 'https://steamcommunity.com/sharedfiles/filedetails/?id=419668499'
+name: 'Unofficial Skyrim Patch on Steam Workshop'
 

Dirty Info Data Structure

@@ -590,11 +589,13 @@ msg: -
Feature Supported?v0.5v0.6v0.7 +
Feature Supported?v0.5v0.6v0.7v0.8
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) 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:)NoYes
YAML merge keys (ie. <<:)NoYes +
Location ver keyYesNo +
Location name keyNoYes

License

diff --git a/resources/report/html/editable-table.html b/resources/report/html/editable-table.html index f345e1c1..91d3af13 100644 --- a/resources/report/html/editable-table.html +++ b/resources/report/html/editable-table.html @@ -77,7 +77,7 @@