Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox track: Difference between revisions

Template page
No edit summary
No edit summary
Line 2: Line 2:
{{#if:{{{trackId|}}}
{{#if:{{{trackId|}}}
  | {{#get_web_data:
  | {{#get_web_data:
     | source = tmnf
     | url = https://tmnf.exchange/api/replays?trackId={{{trackId}}}&count=1&fields=User,ReplayTime&best=1
    | trackId = {{{trackId}}}
     | data = wr_time = $.Results[0].ReplayTime, wr_player = $.Results[0].User.Name
     | data = wr_time = $.Results[0].ReplayTime, wr_player = $.Results[0].User.Name
     | format = json with jsonpath
     | format = json with jsonpath

Revision as of 12:30, 14 August 2025

Usage

This is the infobox template for video games. To use it, copy and paste the following code into an article:

{{Infobox video game
| title         = Track Title
| image         = Example.jpg
| game          = TrackMania Game
| author        = Track Author
| worldrecord   = XX.YY by Player
| authormedal   = Author Medal
| goldmedal     = Gold Medal
| silvermedal   = Silver Medal
| bronzemedal   = Bronze Medal
| release_date  = YYYY-MM-DD
| link          = TrackMania Exchange link
}}
Contents