Template:SportIcon

From NationStates Sports Wiki
Jump to navigation Jump to search

[[Sports in {{{1}}}|๐Ÿ…]]

Usage

Useful for summarising sports in a nation, or series of nations within a table or infobox without cluttering things up with lengthy links. See here for an example usage.

The nation is required, while the sport passed determines which icon is linked.
If no sport is passed, the link will default to a medal icon (๐Ÿ…) and "Sports in NATION".

For example: {{SportIcon|sport=Football|nation=Osarius}} produces โšฝ, which links to "Association Football in Osarius".

The default link value is usually the sport, but some exceptions exist.
Regardless of the default behaviour, this can also be overridden with the override parameter.
So passing override="Team Sports" when using sport="Football" will link to "Team Sports in NATION" but show the soccer ball icon.

For example: {{SportIcon|sport=Athletics|nation=Aquillian|override=Track & Field Athletics Competitions}} produces ๐Ÿ…, which displays the "Athletics" symbol (as seen in the table below), but links to "Track & Field Athletics Competitions in Aquillian" because of the value passed to override.

Unnamed parameters

You can also use the template without labelling your parameters. It expects them to be in the order: nation, sport, override. Only nation is mandatory.

For example: {{SportIcon|Football|Osarius}} will produce the same output as {{SportIcon|sport=Football|nation=Osarius}}: ๐Ÿ…, linking to "Association Football in Osarius".

{{SportIcon|Athletics|Aquillian|Track & Field Athletics Competitions}} will produce the same output as {{SportIcon|sport=Athletics|nation=Aquillian|override=Track & Field Athletics Competitions}} : ๐Ÿ…

{{SportIcon|Cobrio}} will produce generic link to "Sports in NATION", using the default icon, like so: ๐Ÿ…
This final case is because the other two values are not mandatory. When no sport is present, the template defaults to "Sports in" and uses the medal icon. With no override, the default link remains unchanged.

Supported Values

Icon Sport Values
๐Ÿ… Athletics, Track & Field, (default)
โšฝ Soccer, Football
๐ŸฅŠ Boxing, Kickboxing, Combat
๐Ÿฅ‹ Judo, Taekwondo, Karate, Martial Arts
๐Ÿˆ Gridiron, American Football
๐Ÿ’ Hockey, Ice Hockey
๐Ÿ‰ Rugby
๐Ÿ Cricket
๐Ÿ‡ Horse Racing
โšพ Baseball
๐ŸŽฏ Archery
๐Ÿ Racing
๐ŸŽ Motor Racing
๐Ÿ Motorcycles
๐Ÿคผ Wrestling
๐ŸŽพ Tennis
โ™Ÿ๏ธ Chess
๐Ÿ‚ Snowboarding
๐Ÿ„ Surfing
๐ŸŽฟ Skiing
๐ŸŠ Swimming
โ›ณ Golf
๐Ÿ Volleyball
๐Ÿ‘ Field Hockey
๐Ÿ“ Table Tennis
๐Ÿธ Badminton
๐ŸŽฎ Esports
๐Ÿคพ Handball
๐Ÿฅ Lacrosse
๐Ÿšฒ Cycling
๐Ÿ›น Skateboarding
โ›ต Sailing
โ›ธ๏ธ Ice Skating
๐Ÿ‘น Pro Wrestling

Different Default Values

The following values can be passed as the sport parameter, but default to a different link value

Sport Value Icon Default Link
Football โšฝ Association Football
Gridiron ๐Ÿˆ Gridiron Football
Combat ๐ŸฅŠ Combat Sports
Hockey ๐Ÿ’ Ice Hockey
Racing ๐Ÿ Motor Sports
Motorcycles ๐Ÿ Motorcycle Racing
Pro Wrestling ๐Ÿ‘น Professional Wrestling