This constructs a string for a sumotori's rank. It takes three unnamed parameters. All are optional, but if none are given the results are very uninteresting. It's primarily intended for use by other templates, but it may have a broader application.
1: A 1 or 2 letter code for the rikishi's division or makuuchi rank:
- Y: Yokozuna
- YO: Yokozuna-Ōzeki
- O: Ōzeki
- S: Sekiwake
- K: Komosubi
- M: Maegashira
- J: Jūryō
- MA: Makushita
- MT: Makushita tsukedashi
- SA: Sandanme
- ST: Sandanme tsukedashi
- JO: Jonidan
- JK: Jonokuchi
- BG: Banzuke-gai
- SD: Shin-deshi
- SJ: Shinjo
2: Number within division or rank, or H for sanyaku and maegashira haridashi
3: E or W for East or West