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
Zai (talk | contribs)
m fix tmx link on tm2 and 2020
make image not super big
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<!-- Params:
<!-- Params:
   trackId = required (MX TrackId)
   trackId = required (MX TrackId)
   site    = tmnf | tmuf | original | sunrise | nations | tm2 | tm2020  (default: tmnf)
   site    = tmnf | tmuf | original | tmo | sunrise | tms | nations | tmn | tm2 | tm2020  (default: tmnf)
   title, image, game = optional manual overrides (Game stays manual)
   title, image, game = optional manual overrides (Game stays manual)
-->
-->
Line 11: Line 11:
               | tmnf    = https://tmnf.exchange
               | tmnf    = https://tmnf.exchange
               | original = https://original.tm-exchange.com
               | original = https://original.tm-exchange.com
              | tmo      = https://original.tm-exchange.com
               | sunrise  = https://sunrise.tm-exchange.com
               | sunrise  = https://sunrise.tm-exchange.com
              | tms      = https://sunrise.tm-exchange.com
               | nations  = https://nations.tm-exchange.com
               | nations  = https://nations.tm-exchange.com
              | tmn      = https://nations.tm-exchange.com
               | tm2      = https://tm.mania.exchange
               | tm2      = https://tm.mania.exchange
               | tm2020  = https://trackmania.exchange
               | tm2020  = https://trackmania.exchange
Line 20: Line 23:
               | tmnf     
               | tmnf     
               | original
               | original
              | tmo   
               | sunrise  
               | sunrise  
               | nations = /api/tracks?id={{{trackId}}}&count=1&fields=TrackId%2CTrackName%2CUId%2CAuthorTime%2CAuthorScore%2CGoldTarget%2CSilverTarget%2CBronzeTarget%2CUploader.UserId%2CUploader.Name%2CAuthors%5B%5D%2CWRReplay.ReplayTime%2CWRReplay.User.Name%2CUploadedAt%2CUpdatedAt%2CActivityAt%2CPrimaryType%2CTrackValue%2CStyle%2CRoutes%2CDifficulty%2CEnvironment%2CCar%2CMood%2CAwards%2CComments%2CReplayType
              | tms   
               | nations  
              | tmn    = /api/tracks?id={{{trackId}}}&count=1&fields=TrackId%2CTrackName%2CUId%2CAuthorTime%2CAuthorScore%2CGoldTarget%2CSilverTarget%2CBronzeTarget%2CUploader.UserId%2CUploader.Name%2CAuthors%5B%5D%2CWRReplay.ReplayTime%2CWRReplay.ReplayScore%2CWRReplay.User.Name%2CUploadedAt%2CUpdatedAt%2CActivityAt%2CPrimaryType%2CTrackValue%2CStyle%2CRoutes%2CDifficulty%2CEnvironment%2CCar%2CMood%2CAwards%2CComments%2CReplayType
               | tm2     
               | tm2     
               | tm2020  = /api/maps?id={{{trackId}}}&count=1&fields=MapId%2CName%2CMapUid%2CMedals.Author%2CMedals.Gold%2CMedals.Silver%2CMedals.Bronze%2CUploader.UserId%2CUploader.Name%2CAuthors%5B%5D%2COnlineWR%2CUploadedAt%2CUpdatedAt%2CActivityAt%2CType%2CTrackValue%2CStyle%2CRoutes%2CDifficulty%2CEnvironment%2CVehicle%2CMood%2CAwardCount%2CCommentCount%2CReplayType
               | tm2020  = /api/maps?id={{{trackId}}}&count=1&fields=MapId%2CName%2CMapUid%2CMedals.Author%2CMedals.Gold%2CMedals.Silver%2CMedals.Bronze%2CUploader.UserId%2CUploader.Name%2CAuthors%5B%5D%2COnlineWR%2CUploadedAt%2CUpdatedAt%2CActivityAt%2CType%2CTrackValue%2CStyle%2CRoutes%2CDifficulty%2CEnvironment%2CVehicle%2CMood%2CAwardCount%2CCommentCount%2CReplayType
Line 28: Line 34:
     | cache seconds = 300
     | cache seconds = 300
     | data =
     | data =
         id            = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].TrackId | tm2 | tm2020 = $.Results[0].MapId}},
         id            = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].TrackId | tm2 | tm2020 = $.Results[0].MapId}},
         name          = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].TrackName | tm2 | tm2020 = $.Results[0].Name}},
         name          = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].TrackName | tm2 | tm2020 = $.Results[0].Name}},
         uid          = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].UId | tm2 | tm2020 = $.Results[0].MapName}},
         uid          = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].UId | tm2 | tm2020 = $.Results[0].MapName}},
         time_author  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].AuthorTime | tm2 | tm2020 = $.Results[0].Medals.Author}},
         time_author  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].AuthorTime | tm2 | tm2020 = $.Results[0].Medals.Author}},
         score_author  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].AuthorScore | tm2 | tm2020 = $.Results[0].Medals.Author}},
         score_author  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].AuthorScore | tm2 | tm2020 = $.Results[0].Medals.Author}},
         time_gold    = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].GoldTarget | tm2 | tm2020 = $.Results[0].Medals.Gold}},
         time_gold    = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].GoldTarget | tm2 | tm2020 = $.Results[0].Medals.Gold}},
         time_silver  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].SilverTarget | tm2 | tm2020 = $.Results[0].Medals.Silver}},
         time_silver  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].SilverTarget | tm2 | tm2020 = $.Results[0].Medals.Silver}},
         time_bronze  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].BronzeTarget | tm2 | tm2020 = $.Results[0].Medals.Bronze}},
         time_bronze  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn= $.Results[0].BronzeTarget | tm2 | tm2020 = $.Results[0].Medals.Bronze}},
         uploader_id  = $.Results[0].Uploader.UserId,
         uploader_id  = $.Results[0].Uploader.UserId,
         uploader_name = $.Results[0].Uploader.Name,
         uploader_name = $.Results[0].Uploader.Name,
         wr_time      = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].WRReplay.ReplayTime | tm2 | tm2020 = $.Results[0].OnlineWR.RecordTime}},  
         wr_time      = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn= $.Results[0].WRReplay.ReplayTime | tm2 | tm2020 = $.Results[0].OnlineWR.RecordTime}},
         wr_player    = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].WRReplay.User.Name | tm2 | tm2020 = $.Results[0].OnlineWR.DisplayName}},  
        wr_score      = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].WRReplay.ReplayScore | tm2 | tm2020 = $.Results[0].OnlineWR.RecordTime}},  
         wr_player    = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].WRReplay.User.Name | tm2 | tm2020 = $.Results[0].OnlineWR.DisplayName}},  
         uploaded_at  = $.Results[0].UploadedAt,
         uploaded_at  = $.Results[0].UploadedAt,
         updated_at    = $.Results[0].UpdatedAt,
         updated_at    = $.Results[0].UpdatedAt,
         activity_at  = $.Results[0].ActivityAt,
         activity_at  = $.Results[0].ActivityAt,
         primary_type  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].PrimaryType | tm2 | tm2020 = $.Results[0].Type}},  
         primary_type  = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].PrimaryType | tm2 | tm2020 = $.Results[0].Type}},  
         track_value  = $.Results[0].TrackValue,
         track_value  = $.Results[0].TrackValue,
         style        = $.Results[0].Style,
         style        = $.Results[0].Style,
Line 49: Line 56:
         difficulty    = $.Results[0].Difficulty,
         difficulty    = $.Results[0].Difficulty,
         environment  = $.Results[0].Environment,
         environment  = $.Results[0].Environment,
         car          = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].Car | tm2 | tm2020 = $.Results[0].Vehicle}},  
         car          = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].Car | tm2 | tm2020 = $.Results[0].Vehicle}},  
         mood          = $.Results[0].Mood,
         mood          = $.Results[0].Mood,
         awards        = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].Awards | tm2 | tm2020 = $.Results[0].AwardCount}},  
         awards        = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].Awards | tm2 | tm2020 = $.Results[0].AwardCount}},  
         comments      = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | sunrise | nations = $.Results[0].Comments | tm2 | tm2020 = $.Results[0].CommentCount}},  
         comments      = {{#switch:{{lc:{{{site|tmnf}}}}}| tmuf | tmnf | original | tmo | sunrise | tms | nations | tmn = $.Results[0].Comments | tm2 | tm2020 = $.Results[0].CommentCount}},  
         replay_type  = $.Results[0].ReplayType,
         replay_type  = $.Results[0].ReplayType,
         authors_json  = $.Results[0].Authors[*].User.Name
         authors_json  = $.Results[0].Authors[*].User.Name
Line 64: Line 71:
   | data =
   | data =
       wr_time  = $.Results[0].ReplayTime,
       wr_time  = $.Results[0].ReplayTime,
      wr_score  = $.Results[0].ReplayPoints,
       wr_player = $.Results[0].User.Name
       wr_player = $.Results[0].User.Name
   }}
   }}
Line 75: Line 83:
       | Unknown }} }}
       | Unknown }} }}
|-
|-
| colspan="2" class="infobox-image" | {{ShowImage|https://{{#switch:{{lc:{{{site|tmnf}}}}}
| colspan="2" class="infobox-image" style="text-align:center; padding:5px;" | <div style="width: 280px; height: 160px; margin: 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center;">
<div style="width: 100%;">
{{ShowImage|https://{{#switch:{{lc:{{{site|tmnf}}}}}
         | tmuf    = tmuf.exchange/trackshow/{{#external_value:id}}/image/1
         | tmuf    = tmuf.exchange/trackshow/{{#external_value:id}}/image/1
         | tmnf    = tmnf.exchange/trackshow/{{#external_value:id}}/image/1
         | tmnf    = tmnf.exchange/trackshow/{{#external_value:id}}/image/1
         | original = original.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
         | original = original.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
        | tmo      = original.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
         | sunrise  = sunrise.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
         | sunrise  = sunrise.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
        | tms      = sunrise.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
         | nations  = nations.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
         | nations  = nations.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
        | tmn      = nations.tm-exchange.com/trackshow/{{#external_value:id}}/image/1
         | tm2      = tm.mania.exchange/mapimage/{{#external_value:id}}/1
         | tm2      = tm.mania.exchange/mapimage/{{#external_value:id}}/1
         | tm2020  = trackmania.exchange/mapimage/{{#external_value:id}}/1
         | tm2020  = trackmania.exchange/mapimage/{{#external_value:id}}/1
         | #default = tmnf.exchange/trackshow/{{#external_value:id}}/image/1
         | #default = tmnf.exchange/trackshow/{{#external_value:id}}/image/1
       }}}}
       }}}}</div>
</div>
|-
|-
! Game || {{{game|{{#switch: {{lc:{{{site|}}}}}
! Game || {{{game|{{#switch: {{lc:{{{site|}}}}}
Line 90: Line 104:
   | tmnf    = TrackMania Nations Forever
   | tmnf    = TrackMania Nations Forever
   | original = TrackMania Original
   | original = TrackMania Original
  | tmo      = TrackMania Original
   | sunrise  = TrackMania Sunrise
   | sunrise  = TrackMania Sunrise
  | tms      = TrackMania Sunrise
   | nations  = TrackMania Nations
   | nations  = TrackMania Nations
   | #default = TrackMania Nations Forever
   | tmn      = TrackMania Nations
   | tm2      = TrackMania²
   | tm2      = TrackMania²
   | tm2020  = Trackmania 2020
   | tm2020  = Trackmania 2020
  | #default = TrackMania Nations Forever
}}}}}
}}}}}
|-
|-
Line 107: Line 124:
! World record || {{#if:{{{worldrecord|}}}
! World record || {{#if:{{{worldrecord|}}}
   | {{{worldrecord}}}
   | {{{worldrecord}}}
   | {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
   | {{#switch:{{lc:{{{site|tmnf}}}}}
    | tmuf
    | tmnf
    | original
    | tmo
    | sunrise
    | tms
    | nations
    | tmn = {{#switch:{{#external_value:primary_type}}
      | 0 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 2 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 3 = {{#external_value:wr_score|}} points by {{#external_value:wr_player|Unknown}}
      | {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      }}
    | tm2
    | tm2020 = {{#switch:{{#external_value:primary_type}}
      | 0 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 1 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 3 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 4 = {{#external_value:wr_score|}} points by {{#external_value:wr_player|Unknown}}
      | 7 = {{Time|{{#external_value:time_author}}}}
      | {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      }}
    }}
    | #default = {{#switch:{{#external_value:primary_type}}
      | 0 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 2 = {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      | 3 = {{#external_value:wr_score|}} points by {{#external_value:wr_player|Unknown}}
      | {{Time|{{#external_value:wr_time|}}}} by {{#external_value:wr_player|Unknown}}
      }}
}}
}}
|-
|-
Line 113: Line 159:
   | {{{authormedal}}}
   | {{{authormedal}}}
   | {{#if:{{#external_value:time_author|}}
   | {{#if:{{#external_value:time_author|}}
       | {{Time|{{#external_value:time_author}}}}
       | {{#switch:{{lc:{{{site|tmnf}}}}}
        | tmuf
        | tmnf
        | original
        | tmo
        | sunrise
        | tms
        | nations
        | tmn = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_author}}}}
          | 2 = {{#external_value:time_author}} respawns
          | 3 = {{#external_value:score_author}} points
          | {{Time|{{#external_value:time_author}}}}
          }}
        | tm2
        | tm2020 = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_author}}}}
          | 1 = {{Time|{{#external_value:time_author}}}}
          | 3 = {{#external_value:time_author}} respawns
          | 4 = {{#external_value:time_author}} points
          | 7 = {{Time|{{#external_value:time_author}}}}
          | {{Time|{{#external_value:time_author}}}}
          }}
        }}
        | #default = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_author}}}}
          | 2 = {{#external_value:time_author}} respawns
          | 3 = {{#external_value:time_author}} points
          | {{Time|{{#external_value:time_author}}}}
          }}
       | N/A
       | N/A
     }} }}
     }} }}
Line 120: Line 195:
   | {{{goldmedal}}}
   | {{{goldmedal}}}
   | {{#if:{{#external_value:time_gold|}}
   | {{#if:{{#external_value:time_gold|}}
       | {{Time|{{#external_value:time_gold}}}}
       | {{#switch:{{lc:{{{site|tmnf}}}}}
        | tmuf
        | tmnf
        | original
        | tmo
        | sunrise
        | tms
        | nations
        | tmn = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_gold}}}}
          | 2 = {{#external_value:time_gold}} respawns
          | 3 = {{#external_value:time_gold}} points
          | {{Time|{{#external_value:time_gold}}}}
          }}
        | tm2
        | tm2020 = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_gold}}}}
          | 1 = {{Time|{{#external_value:time_gold}}}}
          | 3 = {{#external_value:time_gold}} respawns
          | 4 = {{#external_value:time_gold}} points
          | 7 = {{Time|{{#external_value:time_gold}}}}
          | {{Time|{{#external_value:time_gold}}}}
          }}
        }}
        | #default = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_gold}}}}
          | 2 = {{#external_value:time_gold}} respawns
          | 3 = {{#external_value:time_gold}} points
          | {{Time|{{#external_value:time_gold}}}}
          }}
       | N/A
       | N/A
     }} }}
     }} }}
Line 127: Line 231:
   | {{{silvermedal}}}
   | {{{silvermedal}}}
   | {{#if:{{#external_value:time_silver|}}
   | {{#if:{{#external_value:time_silver|}}
       | {{Time|{{#external_value:time_silver}}}}
       | {{#switch:{{lc:{{{site|tmnf}}}}}
        | tmuf
        | tmnf
        | original
        | tmo
        | sunrise
        | tms
        | nations
        | tmn = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_silver}}}}
          | 2 = {{#external_value:time_silver}} respawns
          | 3 = {{#external_value:time_silver}} points
          | {{Time|{{#external_value:time_silver}}}}
          }}
        | tm2
        | tm2020 = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_silver}}}}
          | 1 = {{Time|{{#external_value:time_silver}}}}
          | 3 = {{#external_value:time_silver}} respawns
          | 4 = {{#external_value:time_silver}} points
          | 7 = {{Time|{{#external_value:time_silver}}}}
          | {{Time|{{#external_value:time_silver}}}}
          }}
        }}
        | #default = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_silver}}}}
          | 2 = {{#external_value:time_silver}} respawns
          | 3 = {{#external_value:time_silver}} points
          | {{Time|{{#external_value:time_silver}}}}
          }}
       | N/A
       | N/A
     }} }}
     }} }}
Line 134: Line 267:
   | {{{bronzemedal}}}
   | {{{bronzemedal}}}
   | {{#if:{{#external_value:time_bronze|}}
   | {{#if:{{#external_value:time_bronze|}}
       | {{Time|{{#external_value:time_bronze}}}}
       | {{#switch:{{lc:{{{site|tmnf}}}}}
        | tmuf
        | tmnf
        | original
        | tmo
        | sunrise
        | tms
        | nations
        | tmn = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_bronze}}}}
          | 2 = {{#external_value:time_bronze}} respawns
          | 3 = {{#external_value:time_bronze}} points
          | {{Time|{{#external_value:time_bronze}}}}
          }}
        | tm2
        | tm2020 = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_bronze}}}}
          | 1 = {{Time|{{#external_value:time_bronze}}}}
          | 3 = {{#external_value:time_bronze}} respawns
          | 4 = {{#external_value:time_bronze}} points
          | 7 = {{Time|{{#external_value:time_bronze}}}}
          | {{Time|{{#external_value:time_bronze}}}}
          }}
        }}
        | #default = {{#switch:{{#external_value:primary_type}}
          | 0 = {{Time|{{#external_value:time_bronze}}}}
          | 2 = {{#external_value:time_bronze}} respawns
          | 3 = {{#external_value:time_bronze}} points
          | {{Time|{{#external_value:time_bronze}}}}
          }}
       | N/A
       | N/A
     }} }}
     }} }}
Line 173: Line 335:
           | tmnf    = https://tmnf.exchange
           | tmnf    = https://tmnf.exchange
           | original = https://original.tm-exchange.com
           | original = https://original.tm-exchange.com
          | tmo      = https://original.tm-exchange.com
           | sunrise  = https://sunrise.tm-exchange.com
           | sunrise  = https://sunrise.tm-exchange.com
          | tms      = https://sunrise.tm-exchange.com
           | nations  = https://nations.tm-exchange.com
           | nations  = https://nations.tm-exchange.com
          | tmn      = https://nations.tm-exchange.com
           | tm2      = https://tm.mania.exchange
           | tm2      = https://tm.mania.exchange
           | tm2020  = https://trackmania.exchange
           | tm2020  = https://trackmania.exchange
           | #default = https://tmnf.exchange
           | #default = https://tmnf.exchange
         }}{{#switch:{{lc:{{{site|tmnf}}}}}
         }}{{#switch:{{lc:{{{site|tmnf}}}}}
         | tmuf    
         | tmuf    
         | tmnf       
         | tmnf       
         | original   
         | original   
        | tmo     
         | sunrise   
         | sunrise   
         | nations  = /trackshow/{{#external_value:id|{{{trackId|}}}}} TrackMania Exchange]  
        | tms     
         | nations  
        | tmn = /trackshow/{{#external_value:id|{{{trackId|}}}}} TrackMania Exchange]  
         | tm2       
         | tm2       
         | tm2020  = /mapshow/{{#external_value:id|{{{trackId|}}}}} TrackMania Exchange]
         | tm2020  = /mapshow/{{#external_value:id|{{{trackId|}}}}} TrackMania Exchange]
Line 197: Line 365:
   | tmnf    = TMNF
   | tmnf    = TMNF
   | original = TMO
   | original = TMO
  | tmo      = TMO
   | sunrise  = TMS
   | sunrise  = TMS
  | tms      = TMS
   | nations  = TMN
   | nations  = TMN
  | tmn      = TMN
   | tm2      = TM²
   | tm2      = TM²
   | tm2020  = TM2020
   | tm2020  = TM2020
Line 210: Line 381:
{{Infobox track
{{Infobox track
| trackId      = 123456
| trackId      = 123456
| site          = tmuf, tmnf, original, sunrise, nations, tm2, tm2020 (Default: tmnf)
| site          = tmuf, tmnf, original, tmo, sunrise, tms, nations, tmn, tm2, tm2020 (Default: tmnf)
| title        = Track Title (Optional)
| title        = Track Title (Optional)
| image        = Example.jpg (Optional)
| image        = Example.jpg (Optional)
Line 216: Line 387:
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 19:55, 28 January 2026

Usage[edit]

This is the infobox template for tracks. To use it, copy and paste the following code into an article (trackId is required, site is tmnf by default):

{{Infobox track
| trackId       = 123456
| site          = tmuf, tmnf, original, tmo, sunrise, tms, nations, tmn, tm2, tm2020 (Default: tmnf)
| title         = Track Title (Optional)
| image         = Example.jpg (Optional)
| game          = TrackMania Game (Optional)
}}
Contents