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
test3
Tag: Reverted
test 4
Tag: Reverted
Line 84: Line 84:
|-
|-
| colspan="2" class="infobox-image" style="text-align:center; padding:5px;" |  
| 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: 280px; height: 160px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #eee;">
     <img src="{{ShowImage|https://{{#switch:{{lc:{{{site|tmnf}}}}}
     <img src="{{ShowImage|https://{{#switch:{{lc:{{{site|tmnf}}}}}
             | tmuf      = tmuf.exchange/trackshow/{{#external_value:id}}/image/1
             | tmuf      = tmuf.exchange/trackshow/{{#external_value:id}}/image/1
Line 98: Line 98:
             | #default  = tmnf.exchange/trackshow/{{#external_value:id}}/image/1
             | #default  = tmnf.exchange/trackshow/{{#external_value:id}}/image/1
         }}}}"  
         }}}}"  
     style="max-width: 100%; max-height: 100%; width: auto; height: auto;"  
     style="width: 100%; height: 100%; object-fit: contain; display: block;"  
     alt="{{{title|Track Image}}}" />
     alt="{{{title|Track Image}}}" />
</div>
</div>

Revision as of 22:12, 31 January 2026

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, tmo, sunrise, tms, nations, tmn, tm2, tm2020 (Default: tmnf)
| title         = Track Title (Optional)
| image         = Example.jpg (Optional)
| game          = TrackMania Game (Optional)
}}
Contents