It is currently April 18th, 2024, 3:53 pm

Understanding [Metadata] section

Get help with creating, editing & fixing problems with skins
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Understanding [Metadata] section

Post by oZone »

I have noticed that some skins in Metadata section have some of these options

Code: Select all

Config=
Description= 
Instructions=
Credits=
Tags=
Variant=
Preview=
Does Rainmeter use them or they are just description/labels from skin author.
I think that Description= and Instructions= are deprecated options, and we should use Information= instead, but I didn't find about it in documentation.
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Understanding [Metadata] section

Post by CyberTheWorm »

The only source of knowledge is experience. Albert Einstein
Deviant Art Page
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: Understanding [Metadata] section

Post by oZone »

I know about this. But there is no information about Description= and Instructions=. You can use them instead of Information=. This is why I am asking if there some other "hidden" options in metadata section.

I am asking here so I don't have to look through rainmeter source code.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Understanding [Metadata] section

Post by jsmorley »

oZone wrote: November 29th, 2019, 2:12 pm I know about this. But there is no information about Description= and Instructions=. You can use them instead of Information=. This is why I am asking if there some other "hidden" options in metadata section.

I am asking here so I don't have to look through rainmeter source code.
There are some previous and deprecated options for Metadata. Just use the ones in the documentation, the others are just there for backwards compatibility reasons. Description and Instructions, if found, are just moved to Information when the skin is displayed in Manage. Any other deprecated options are just ignored.
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: Understanding [Metadata] section

Post by oZone »

jsmorley wrote: November 29th, 2019, 2:14 pm There are some previous and deprecated options for Metadata. Just use the ones in the documentation, the others are just there for backwards compatibility reasons. Description and Instructions, if found, are just moved to Information when the skin is displayed in Manage.
Ok thanks
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Understanding [Metadata] section

Post by jsmorley »

oZone wrote: November 29th, 2019, 2:20 pmOk thanks
One last note, if Information is found, then Description and Instructions are ignored. If Information is not found, than any Description and Instructions are moved to become the Information entry, with a linefeed between them.

Any of the other deprecated options:

Config=
Credits=
Tags=
Variant=
Preview=

Are all just ignored.

I often use a format like this:

Code: Select all

[Metadata]
Name=ClockWeather
Author=JSMorley
Information=Description:|Digital Clock / Date - Speaks the time and current weather when clicked.||Instructions:|Middle-click to edit variables files.||Set text and other speech variables in @Resources\ClockWeatherSpeech.inc|Set weather location code in @Resources\WXDataWeatherVars.inc|Set font and color and other shared variables in @Resources\GeneralVariables.inc
Version=Feb 7, 2017
License=Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International

GIF.gif



None of it is "required", but it's useful information for your users.
You do not have the required permissions to view the files attached to this post.