# Left aligned sidebar with rotated text

I'm looking to get a sidebar on every page of an a4 doc with rotated text inside, sort of like below.

I saw this question but I can't quite achieve what I'm after with the solutions there.

It needs to:

• Feature on every page
• Stretch to the top/left edges of the page

I've seen a few ideas using the tikz or background packages but again, I'm struggling to make it work.

• Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass and ending with \end{document}. Related: tex.stackexchange.com/a/126156/124842 – Bobyandbob Aug 11 '17 at 13:08

This works. You'll still have to make manual adjustments, like change the color and put in the desired text. Also, you may want to include an on/off switch in case you want to turn off the box on some pages.

\documentclass{article}

\usepackage{tikzpagenodes}
\usepackage{lipsum}
\usepackage{everypage}

\begin{document}