How to pass a parameter on an internal link?

I am interested in the same topic, at least tell me if it is possible or not ?
I mean for example [[note1?key=books]] I click a link and when note1 is loaded in dataviewjs script the value of key variable is read and it loads for example table with books based on it

maybe it is possible to at least somehow read and send to dataviewjs the name of the header which is passed by internal link ?
like this
[[note1#Title1]]