User:Csernica/Sandbox/Sumo/Sumo rank

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
 * O: Ōzeki
 * S: Sekiwake
 * K: Komosubi
 * M: Maegashira
 * J: Juryo
 * MA: Makushita
 * SA: Sandanme
 * JO: Jonidan
 * JK: Jonokuchi
 * BG: Banzuke-gai
 * SD: Shin-deshi

2: Number within division or rank

3: E or W for East or West