Template:Motorsport race overview
From Infobox Wiki
{{ {{{country}}} }}{{{name}}} | |
[[File:{{{circuit}}}.png|250px]] {{{circuit}}} | |
Number of times held | {{{times held}}} |
First held | {{{first held}}} |
Most wins (drivers) | {{{most wins driver}}} |
Most wins (constructors) | {{{most wins constructor}}} |
Last Race ({{{current year}}}) Podium | |
First | {{{winner}}} {{{winning team}}} |
---|---|
Second | {{{second}}} {{{second team}}} |
Third | {{{third}}} {{{third team}}} |
Original[edit source]
Includes[edit source]
- The flag image in the header is picto infobox sport auto.png from Wikimedia. It does not require uploading to the wiki. Instead it is added to MediaWiki:Common.css. Giving it a class name of "motorsport", this is added to MediaWiki:Common.css
.motorsport { background: transparent url('https://upload.wikimedia.org/wikipedia/commons/a/af/Picto_infobox_sport_auto.png') no-repeat scroll right top; }
- In the header row of the infobox, the class is included to retrieve the image
! colspan=2 class="motorsport" | {{{name}}}
- The country variable uses the country icons and requires entering the 3 letter code
Clean template[edit source]
{{Motorsport Race Overview | country = | name = | circuit = | times held = | first held = | most wins driver = | most wins constructor = | current year = | winner = | winning team = | second = | second team = | third = | third team = }}