Permanently protected template

Template:Infobox UK feature

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Infobox UK feature
List of places
UK
Template documentation[view] [edit] [history] [purge]
Please use a more topic-specific template such as {{Infobox body of water}}, {{Infobox river}}, {{Infobox rail line}}, {{Infobox park}}, {{Infobox building}}, {{Infobox museum}}, {{Infobox bridge}}, {{Infobox mountain}}, {{Infobox UK place}}, {{Infobox artwork}}, {{Infobox religious building}} or {{Infobox church}}.

There is a sandbox and testcases for this template.

Usage

Basic usage

{{Infobox UK feature
| official_name = # [defaults to {{PAGENAME}}]
| old_english_name = optional - lists the name in Old English (only use where appropriate)
| scots_name = optional - lists the name in Lowland Scots
| welsh_name = optional - lists the name in Welsh
| gaelic_name = optional - lists the name in Scottish Gaelic
| irish_name = optional - lists the name in Irish (Gaelic)
| manx_name = optional - lists the name in Manx
| cornish_name = optional - lists the name in Cornish
| shire_county/state = #
| country = England #
| label_position = auto|top|bottom|left|right (label position relative to the mark on the map)
| nation = UK #
| map_name =
| map_relief =
| static_image_name = 
| static_image_caption = 
| static_image_alt = 
| static_image_2_name = 
| static_image_2_caption = 
| static_image_2_alt = 
| os_grid_reference = 
| irish_grid_reference =
| coordinates = see [[template:coord]] for parameters
}}
  • Items shown with a "#" are required
  • |country= and |nation= have the defaults shown
  • |coordinates= - standard usage is:
{{Coord|44.112|-87.913|type:landmark_country:GB|display=title,inline}}

or

{{Coord|44.112|N|87.913|W|type:landmark_country:GB|display=title,inline}}

These coordinates are in decimal degrees.

{{Coord|57|18|22|N|4|27|32|W|type:landmark_country:GB|display=title,inline}}

These coordinates are in degrees, minutes, and seconds of arc.

  • |map_name= may be used to select a map which has a different name to |country, see Template:Location map for more details. The map can be suppressed with 'nomap'.
  • |static_image_alt= is for an alternate text – see WP:ALT
  • |static_image_name= and |static_image_2_name have a default width of 240px. For smaller widths use the following options;
| static_image_width = [width as number (180) or size (180px)]
| static_image_2_width = [width as number (180) or size (180px)]

Official name

The heading (official_name) uses the same coding as Template:Infobox UK place including the style 'nowrap'. For long names this will force the infobox to expand sideways. To avoid this include <br /> (bottom rule; equivalent to break or newline) in official_name.

Embedded tables

It is, in theory, possible to embed any table or infobox in this infobox after the second caption - see the example. Although this should work for all tables most of the tables tested default to a greater width (typically 300px) making the application unsatisfactory – see poor example.

Examples

Undocumented options

UK articles should use the defaults so that the articles match with Template:Infobox UK place and other infoboxes. Other articles may wish to make use of the following options (defaults shown). See example.

| label = |official_name [which defaults to {{PAGENAME}}]
| marksize = 9
| mark = Red_pog.svg

Using the correct template

There are many other templates available which in some cases will be more suitable; see list at top of page.

Tracking category