Module:Teamnames

From NBA 2K Esports Wiki
Jump to: navigation, search
To edit the documentation or categories for this module, click here.

Inputs & Outputs

Everything on the left side of an = is an input, i.e. if you write {{Team|<input>}}, it will resolve. You need one line per input that you want to work with the template. These inputs power a lot of different templates, including {{MatchMaps}}, {{GameSchedule5}}, {{Crossbox}}, and more. All inputs you define here must be written in lowercase.

Everything on the right side of an = is an output, i.e. what the template does with your input code. How to define outputs properly is explained in the next sections.

How to add a team with one valid input

This input should be the link variable, written in lowercase.

Example

	["jin air green wings falcons (korean team)"] = { link = "Jin Air Green Wings Falcons (Korean Team)", long = "Jin Air Green Wings Falcons", medium = "Jin Air Falcons", short = "JAF"  },

In this scenario, imagine there are two different teams called Jin Air Green Wings Falcons. One is a Korean team, and one is a European team. We will look at the Korean team.

  • link, the exact name of the team's page, for example "Jin Air Green Wings Falcons (Korean Team)"
  • long, the full name of the team for normal display, for example "Jin Air Green Wings Falcons"
  • medium, a fully descriptive name of the team that's shorter than about 13 characters, for example "Jin Air Falcons"
  • short, a very short abbreviation for a team, at most 5-7 characters and usually 3 characters long, for example "Falcons" or "JAF"

Copyable Code

	[""] = { link = "", long = "", medium = "", short = ""  },

How to add additional vald inputs for a team

The line with variable definitions will be the last line in the section of inputs for that particular team, so the following will go on lines immediately preceding the variable defnitions themselves.

Make sure that everything on these lines is lowercase!

Example

	["jaf"] = "jin air green wings falcons (korean team)]",
	["jag falcons"] = "jin air green wings falcons (korean team)",
	["jagw falcons"] = "jin air green wings falcons (korean team)",
	["jin air greenwings falcons"] = "jin air green wings falcons (korean team)",
	["jinair falcons"] = "jin air green wings falcons (korean team)",
	["jinair green wings falcons"] = "jin air green wings falcons (korean team)",
	["jinair greenwings falcons"] = "jin air green wings falcons (korean team)",

In this case, "jin air green wings falcons (korean team)" is the original valid input we defined above, and we are additionally adding "jaf" as a valid input on the line BEFORE the full variable definition line. Again, remember everything here is lowercase!

Copyable Code

	[""] = "",

Additional Syntax

You may add a comment with:

	--COMMENT

If a team has the character ` or \ in its name, you need to escape the character by writing \` or \\.

Style Guide

  • Please keep the tab at the start of each line.
  • Teams are sorted alphabetically by link, and all names for a team go consecutively (unlike the old way with Teamnames/* templates).

return {

        ["76ers"] = "76ers gc",
	    ["76ers gc"] = { link = "76ers GC", long = "76ers GC", medium = "76ers GC", short = "SGC"  },

        ["blazer5"] = "blazer5 gaming",
        ["blazer5 gaming"] = { link = "Blazer5 Gaming", long = "Blazer5 Gaming", medium = "Blazer5 Gaming", short = "BZG"  },

	    ["bucks"] = "bucks gaming",
	    ["bucks gaming"] = { link = "Bucks Gaming", long = "Bucks Gaming", medium = "Bucks Gaming", short = "BCG"  },

        ["cavs"] = "cavs legion gc",
        ["cavs legion gc"] = { link = "Cavs Legion GC", long = "Cavs Legion GC", medium = "Cavs Legion GC", short = "CLG"  },

        ["celtics"] = "celtics crossover gaming",
        ["celtics crossover gaming"] = { link = "Celtics Crossover Gaming", long = "Celtics Crossover Gaming", medium = "Celtics Crossover", short = "CCG"  },
        
        ["grizz"] = "grizz gaming",
        ["grizz gaming"] = { link = "Grizz Gaming", long = "Grizz Gaming", medium = "Grizz Gaming", short = "GZG"  },
        
        ["hawks"] = "hawks talon gc",
        ["hawks talon gc"] = { link = "Hawks Talon GC", long = "Hawks Talon GC", medium = "Hawks Talon GC", short = "HTG"  },

        ["heat"] = "heat check gaming",
        ["heat check gaming"] = { link = "Heat Check Gaming", long = "Heat Check Gaming", medium = "Heat Check", short = "HCG"  },

        ["jazz"] = "jazz gaming",
        ["jazz gaming"] = { link = "Jazz Gaming", long = "Jazz Gaming", medium = "Jazz Gaming", short = "JZG"  },
        
        ["kings"] = "kings guard gaming",
        ["kings guard gaming"] = { link = "Kings Guard Gaming", long = "Kings Guard Gaming", medium = "Kings Guard", short = "KGG"  },

        ["knicks"] = "knicks gaming",
        ["knicks gaming"] = { link = "Knicks Gaming", long = "Knicks Gaming", medium = "Knicks Gaming", short = "KNX"  },
        
        ["lakers"] = "lakers gaming",
        ["lakers gaming"] = { link = "Lakers Gaming", long = "Lakers Gaming", medium = "Lakers Gaming", short = "LKG"  },

        ["magic"] = "magic gaming",
        ["magic gaming"] = { link = "Magic Gaming", long = "Magic Gaming", medium = "Magic Gaming", short = "MGG"  },

        ["mavs"] = "mavs gaming",
        ["mavs gaming"] = { link = "Mavs Gaming", long = "Mavs Gaming", medium = "Mavs Gaming", short = "MVG"  },
        
        ["nets"] = "nets gc",
        ["nets gc"] = { link = "Nets GC", long = "Nets GC", medium = "Nets GC", short = "NGC"  },

        ["pacers"] = "pacers gaming",
        ["pacers gaming"] = { link = "Pacers Gaming", long = "Pacers Gaming", medium = "Pacers Gaming", short = "PCG"  },

        ["pistons"] = "pistons gt",
        ["pistons gt"] = { link = "Pistons GT", long = "Pistons GT", medium = "Pistons GT", short = "PGT"  },

        ["raptors"] = "raptors uprising gc",
        ["raptors uprising gc"] = { link = "Raptors Uprising GC", long = "Raptors Uprising GC", medium = "Raptors Uprising", short = "RUG"  },
        
        ["t-wolves"] = "t-wolves gaming",
        ["t-wolves gaming"] = { link = "T-Wolves Gaming", long = "T-Wolves Gaming", medium = "T-Wolves Gaming", short = "TWG"  },

        ["warriors"] = "warriors gaming squad",
        ["warriors gaming squad"] = { link = "Warriors Gaming Squad", long = "Warriors Gaming Squad", medium = "Warriors Gaming", short = "WGS"  },

        ["wizards"] = "wizards district gaming",
        ["wizards district gaming"] = { link = "Wizards District Gaming", long = "Wizards District Gaming", medium = "Wizards District", short = "WDG"  },

}