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

Revision as of 19:14, 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