Шаблон:Steam workshop tokens

Материал из Dwarf Fortress Wiki
Версия от 08:43, 9 марта 2025; GeloMor (обсуждение | вклад) (Новая страница: «<includeonly> == Токены Steam Workshop== Эти токены необходимы для правильного функционирования мода в системе Steam Workshop. {| {{prettytable}} |- bgcolor="#DCCF99" ! Токен ! Тип ! Обязателен? ! Описание ! Пример ! Внешняя документация |- | {{text anchor|STEAM_TITLE}} | single string | {{tc|red|Req}} | The title of the mod on Steam Works...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигацииПерейти к поиску

[Перейти] [Изменить описание]Документация

Описание

Простой контейнер для таблицы токенов Steam Workshop. Даже не обязательно должен быть в пространстве имен шаблона. Размещено здесь, чтобы таблицу можно было включить на несколько страниц, но работать с ней в одном месте.

Использование

{{Steam workshop tokens}}

Результат

Токены Steam Workshop

Эти токены необходимы для правильного функционирования мода в системе Steam Workshop.

Токен Тип Обязателен? Описание Пример Внешняя документация
STEAM_TITLE single string Req The title of the mod on Steam Workshop. [STEAM_TITLE:Imani's Tweaks] SetItemTitle
STEAM_DESCRIPTION single string The description of the mod on Steam Workshop. Maximum size is 8000 bytes (about 400 words).

Will overwrite the existing description of the mod on the workshop, can be omitted to avoid this behavior.

[STEAM_DESCRIPTION:This is my collection of small changes and additional content.] SetItemDescription
STEAM_TAG multi string Any number can be used. Use a separate STEAM_TAG for each one. Each string must be under 255 chars. [STEAM_TAG:ui][STEAM_TAG:tweak] SetItemTags
STEAM_KEY_VALUE_TAG multi string1, string2 Any number can be used. SetReturnKeyValueTags
STEAM_METADATA multi string Sets arbitrary metadata for an item. This metadata can be returned from queries without having to download and install the actual content. Toady doesn't know what it does [1]. SetItemMetadata
STEAM_CHANGELOG single string A brief description of the changes made. (Optional, set to NULL for no change note). The log message is only for the version you're uploading. This should be different each time you update a mod, and only include the changes in the new version. Steam Workshop congregates all version changelogs, so a full changelog can be seen there. Initial example: [STEAM_CHANGELOG:Initial release]

Update example: [STEAM_CHANGELOG:Update the mod compatible with...]

STEAM_FILE_ID uint64 Req, autogen Connects the mod to an entry on the Steam Workshop.

Generated automatically the first time you upload a mod to Workshop, do not include it manually. If you upload a mod with an existing STEAM_FILE_ID token, it will update the Workshop entry connected to the ID. (Presumably only if you're the original uploader of said mod.)