Motorsport race overview
From Infobox Wiki
Template[edit | edit source]
Includes[edit | 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
Usage[edit | edit source]
{{Motorsport Race Overview | country = GBR | name = British Grand Prix | circuit = Silverstone | times held = 70 | first held = 1926 | most wins driver = {{GBR}} Jim Clark <br> {{FRA}} Alain Prost | most wins constructor = {{ITA}} Ferrari | current year = 2015 | winner = {{GBR}} Lewis Hamilton | winning team = Mercedes | second = {{GER}} Nico Rosberg | second team = Mercedes | third = {{GER}} Sebastian Vettel | third team = Ferrari }}