Difference between revisions of "Template:Infobox"
Line 49: | Line 49: | ||
--></td></tr><tr><td></td></tr><!-- | --></td></tr><tr><td></td></tr><!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Image and caption. The image width is defined by the width of the map, if there is no map, or the mapwidth is not given, it will default to 250px | |
− | + | -->{{#if: {{{image|}}} | <tr><td colspan="2">[[Image:{{{image}}}|{{{mapwidth|250}}}px]]</td></tr>|<includeonly></includeonly>}}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{{gallery| {{PAGENAME}} }}} | {{{gallery| {{PAGENAME}} }}} | ||
}} | }} | ||
Line 204: | Line 179: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 18:53, 29 October 2015
This template is used on approximately 3,480,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
Documentation: Infobox
The Infobox is the big template down the right hand side of every single page on the Wiki, other than those that relate to a road. This template is almost never used by itself, but is instead called by other templates.
Do not edit this template unnecessarily as it is included in about 7,000 pages. This causes issues regarding the Job Queue, after an update it takes 7,000 page views to clear the job queue. If edited twice, that number doubles to 14,000 (etc..) Smaller updates to other templates then need to wait for the job queue to clear before they take full effect, which can cause problems for other editors. Test all edits on Template:Infobox sandbox first.
The template calls the following sub-templates, which format specific sections consistently:
- {{InfoboxPartA}}
- {{InfoboxPartB}}
- {{Get bg colour}}
- {{Get text colour}}
- {{Get welsh colour}}
- {{Get irish colour}}
- {{Get gaelic colour}}
This template is called by the following templates, which set up various parameters appropriate for each use. Changes here will affect all of the below templates:
- {{Primary Destination}}
- {{Place}}
- {{County}}
- {{Highway Authority}}
- {{Airport}}
- {{Services}}
- {{Crossing}}
- {{Junction Box}}
- {{Road Scheme}}
To use this template, copy the code below, replacing anything within <tags> as appropriate.
{{Infobox | <lots> }}
<lots> - There are literally hundreds of different options available. See the Help:Routeboxes page for details of how to use this template, though please bear in mind that the specific templates should be used in nearly every case rather than this master template.
Infobox | |