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
PJSans (talk | contribs)
Updated picture handling to (hopefully) pull from TMX page in question
Line 59: Line 59:
| colspan="2" class="infobox-image" | [[File:{{#if:{{{image|}}}
| colspan="2" class="infobox-image" | [[File:{{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | {{#if:{{#external_value:name|}}
   | {{#if:{{#external_value:id|}}  
       | {{#external_value:name}}.png
       | https://{{#switch:{{lc:{{{site|tmnf}}}}}
       | Unknown.png }} }}|250px]]
          | tmuf    = tmuf.exchange
          | tmnf    = tmnf.exchange
          | original = original.tm-exchange.com
          | sunrise  = sunrise.tm-exchange.com
          | nations  = nations.tm-exchange.com
          | #default = tmnf.exchange
        }}/trackshow/{{#external_value:id}}/image/1
       | Unknown.png
    }} }}|250px]]
|-
|-
! Game || {{{game|{{#switch: {{lc:{{{site|}}}}}
! Game || {{{game|{{#switch: {{lc:{{{site|}}}}}

Revision as of 19:11, 14 August 2025

Usage

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, sunrise, nations
| 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
| lastupdated   = YYYY-MM-DD
| activity      = YYYY-MM-DD
| awardscomments= XXX / YYY
| link          = TrackMania Exchange link
}}
Contents