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
capitalization
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{trackId|}}}
| {{#get_web_data:
    | source = tmnf
    | trackId = {{{trackId}}}
    | data = wr_time = $.Results[0].ReplayTime, wr_player = $.Results[0].User.Name
    | format = json with jsonpath
    | cache seconds = 300
  }}
}}
{| class="wikitable infobox-track" style="width:300px; float:right; clear:right; margin-left:10px;"
{| class="wikitable infobox-track" style="width:300px; float:right; clear:right; margin-left:10px;"
|-
|-
Line 10: Line 20:
! Author(s) || {{{author|Unknown}}}
! Author(s) || {{{author|Unknown}}}
|-
|-
! World record || {{{worldrecord|Unknown}}}
! World record || {{#invoke:TrackInfobox|formatWR|{{#external_value:wr_time}}{{#if:{{#external_value:wr_time}}|}}{{#external_value:wr_player}}{{#if:{{#external_value:wr_player}}|}}{{{worldrecord|Unknown}}}}}
|-
|-
! Author medal || {{{authormedal|Unknown}}}
! Author medal || {{{authormedal|Unknown}}}

Revision as of 12:25, 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