Jump to content

Template:Infobox motorsport venue and Template:Infobox motorsport venue/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
add comment for #statements usage
 
move website parameter above the "layouts", to avoid it getting "buried" down the bottom of the infobox for circuits which have many layouts, e.g. Circuit de Spa-Francorchamps, Silverstone Circuit
 
Line 7: Line 7:
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Logo|{{{logo|}}}}}}|size={{{logo_size|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Logo|{{{logo|}}}}}}|size={{{logo_size|}}}}}
| caption = {{{Logo_caption|{{{logo-caption|{{{logo_caption|{{#if:{{{Image|{{{image|}}}}}}|<br/>|}}}}}}}}}}}
| caption = {{{Logo_caption|{{{logo-caption|{{{logo_caption|{{#if:{{{Image|{{{image|}}}}}}|<br/>|}}}}}}}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|}}}}}}|size={{{image_size|}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|}}}}}}|size={{{image_size|}}}}}
| caption2 = {{{Image_caption|{{{caption|{{{image_caption|}}}}}}}}}
| caption2 = {{{Image_caption|{{{caption|{{{image_caption|}}}}}}}}}
| image3 = {{#invoke:InfoboxImage|InfoboxImage|image={{{Track_map|{{{track_map|}}}}}}|size={{{track_map_size|}}}}}
| image3 = {{#invoke:InfoboxImage|InfoboxImage|image={{{Track_map|{{{track_map|}}}}}}|size={{{track_map_size|}}}}}
| caption3 = {{{Track_map_caption|{{{track_map_caption|}}}}}}
| caption3 = {{{Track_map_caption|{{{track_map_caption|}}}}}}
| headerstyle = background-color: #dedede
| headerstyle = background-color: #dedede


Line 49: Line 49:
|{{#ifeq:{{{homepage|{{{website|}}}}}}|hide||{{{homepage|{{{website|}}}}}} }}
|{{#ifeq:{{{homepage|{{{website|}}}}}}|hide||{{{homepage|{{{website|}}}}}} }}
|{{#if:{{#property:P856}}
|{{#if:{{#property:P856}}
|{{#statements:P856}} <!-- using #statements: instead of #property: so that it properly handles linking multiple URLs -->
|{{URL|{{#property:P856}}}}
}}
}}
}}
}}