MZ I need help with some plugin meta tags (@noteParam et al.)

Okay, long story short, I saw some meta plugin stuff in the japanese documentation (english one isn't available yet) that I don't know what they do and couldn't find. The translation is pretty unclear.

Funny fact, there are already some plugins that already use it, and I have found stuff from past years, so it's not anything new per se (maybe it leaked in the past or was a feature under development at the time? I dunno).

I'm talking about these little guys, that have something to do with Notes, but I don't know what they do.

@noteParam
@noteDir
@noteType
@noteData


Any help will be greatly appreciated!
There are a few different ways to use note tags, but the simplest is to create a notetag like this:

<KeyName:Value>

In that context, the KeyName would be the variable name, and the Value would be the value of the variable. To access it, reference the data object and use 'meta'.

As an example, I may want to designate a weapon as legendary, rare, etc. In the data notebox, I would use <Rarity:Rare>. Then I would access the access that info by using the following code:

var rarity = $dataWeapons[weaponId].meta.Rarity || "Common";

Using that code would set the variable rarity to the notetag created in the data, or if the notetag doesn't exist, it sets the rarity to "Common". It's a good idea to have such a failsafe option to prevent errors in the game. This works with most data objects, but as a general rule, you want to try creating such a variable in the item, battler, etc when the object is first created.
I found one of the dlc plugins using it and understood what they are for. It is used to tell the deployer that your plugin uses some file that mustn't be deleted.
For example: if your plugin has a notetag like this: <fileName:something>, you can use those params to tell the deployer that the file something.png must not be deleted.
It would be something like this:

Code:
@noteParam fileName
@noteDir img/someFolder/
@noteType file
@noteData maps

this setting will tell the deployer that if any map has a note in the format
Code:
<fileName:value>
then it mustn't delete the file
Code:
img/someFolder/value.png
Kinda gotcha that, but that's confusing. Why use all these tags if only two would suffice? Hard to tell.

If someone can explain it better, or provide some more example or context, I would be grateful.

Gonna write about these, so I can't use incorrect or imprecise info.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-with-some-plugin-meta-tags-noteparam-et-al.126987/