/obsidian-lineup-builder

An Obsidian plugin that lets you build football lineups

Primary LanguageTypeScriptMIT LicenseMIT

Obsidian Lineup Builder Plugin

This plugin allows you to build football lineups in Obsidian by specifying a formation and a list of players.

The lineup is defined in a codeblock and is visible in Preview mode.

Using the Plugin

To create a lineup you need to define a lineup codeblock with the following options:

Formation

The formation option is one of the currently available formations:

  • 433
  • 4231
  • 442
  • 442-diamond
  • 523
  • 532
  • 541
  • 352
  • 343

Players

The players option defines the starting 11, ordered from bottom to top and left to right.

i.e. for a 433: Mendy,Chilwell,Silva,Rudiger,James,Mount,Jorginho,Kante,Werner,Lukaku,Havertz

Example

```lineup
formation: 4231
players: Kepa,Chilwell,Silva,Rudi,Azpi,Kante,Kovacic,CHO,Mount,Havertz,Lukaku
```

Example

SVG Images

The images used are generated from SVGs from the Wikimedia Commons with positions moved around to create new formations, and position names replaced by custom player names.

© 433 / Wikimedia Commons User:Threner / CC-BY-SA-3.0

© 4231 / Wikimedia Commons User:Threner / CC-BY-SA-3.0

© 442 / Wikimedia Commons User:MaxDZ8 / CC-BY-SA-3.0

© 442-diamond / Wikimedia Commons User:Threner / CC-BY-SA-3.0

Special Thanks

This wouldn't have been possible without using THeK3nger's Chess Plugin as a reference.

TODO

  • Add 5ATB Formations
  • Cleanup SVG code to reuse duplicated elements
  • Add wikimedia credit lines
  • Submit PR to get it added to the Community Plugins list
  • Investigate different input methods for list of players
  • Custom team colours
  • Custom pitches