It turns out that I wasn’t aware of a nifty little built in function to do something very similar when I wrote this article. I wanted to update this post to provide details on that.
If you use the built-in help function you will get very similar results to my function below. It is nearly always smarter to use a built in vs build your own so I would suggest doing this instead of what I metnion below. That said I’ll leave this up for reference to the individual attributes which might be useful in other applications