Template:Rank
This provides the rank format as seen in-game, with a link to the corresponding one on the Ranks page – invoke this via:
{{rank|<rankname>}}
where <rankname>
is self explanatory.
{{rank|wanderer}}
outputs
[Wanderer].
⚠️ Warning: Only lowercase rank names are accepted as Noggisoggi didn't, doesn't and will not want to spend over 9000 hours adding every permuation of rank names in terms of capitalisation.